@antseed/payments 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/dist/crypto-context.d.ts +2 -1
  2. package/dist/crypto-context.js +3 -13
  3. package/dist/crypto-context.js.map +1 -1
  4. package/dist/routes.d.ts +1 -0
  5. package/dist/routes.js +135 -23
  6. package/dist/routes.js.map +1 -1
  7. package/dist/server.js +10 -3
  8. package/dist/server.js.map +1 -1
  9. package/dist/web/assets/add-DeN46V-4.js +15 -0
  10. package/dist/web/assets/all-wallets-BELrsAXU.js +6 -0
  11. package/dist/web/assets/app-store-BHfvYJ2P.js +17 -0
  12. package/dist/web/assets/apple-C9HKzybj.js +18 -0
  13. package/dist/web/assets/arrow-bottom-DuMDwAYL.js +8 -0
  14. package/dist/web/assets/arrow-bottom-circle-DdNuYZn6.js +11 -0
  15. package/dist/web/assets/arrow-left-B9xRq1OP.js +8 -0
  16. package/dist/web/assets/arrow-right-D_-RivXc.js +8 -0
  17. package/dist/web/assets/arrow-top-C9l-DRlu.js +8 -0
  18. package/dist/web/assets/bank-Cjnq2Ry5.js +14 -0
  19. package/dist/web/assets/basic-B85OfNxa.js +2128 -0
  20. package/dist/web/assets/browser-Bls9q8f9.js +14 -0
  21. package/dist/web/assets/card-Bqg4Czbg.js +14 -0
  22. package/dist/web/assets/{ccip-CM_YDd5S.js → ccip-DGmcqTDL.js} +1 -1
  23. package/dist/web/assets/checkmark-BjLUQm79.js +11 -0
  24. package/dist/web/assets/checkmark-bold-BkJWuo_o.js +8 -0
  25. package/dist/web/assets/chevron-bottom-H6deplaJ.js +8 -0
  26. package/dist/web/assets/chevron-left-zhlRa-c_.js +8 -0
  27. package/dist/web/assets/chevron-right-yDG_wOET.js +8 -0
  28. package/dist/web/assets/chevron-top-nC4T8feK.js +8 -0
  29. package/dist/web/assets/chrome-store-CcmWkyJu.js +61 -0
  30. package/dist/web/assets/clock-DmgcFnf2.js +8 -0
  31. package/dist/web/assets/close-h-k_hJfG.js +8 -0
  32. package/dist/web/assets/coinPlaceholder-CD9x_nYL.js +8 -0
  33. package/dist/web/assets/compass-BeYSF_sG.js +8 -0
  34. package/dist/web/assets/copy-DC4ChyuN.js +15 -0
  35. package/dist/web/assets/core-CFVPCXsS.js +908 -0
  36. package/dist/web/assets/cursor-Co0ewq3k.js +3 -0
  37. package/dist/web/assets/cursor-transparent-DJT9-MAB.js +12 -0
  38. package/dist/web/assets/desktop-NN3pMhXj.js +9 -0
  39. package/dist/web/assets/disconnect-CU8ex8w9.js +8 -0
  40. package/dist/web/assets/discord-BWZL9ol-.js +17 -0
  41. package/dist/web/assets/etherscan-CN6ewNx8.js +6 -0
  42. package/dist/web/assets/events-DQ172AOg.js +1 -0
  43. package/dist/web/assets/exclamation-triangle-B5LZOY03.js +4 -0
  44. package/dist/web/assets/extension-FP3sPwTB.js +8 -0
  45. package/dist/web/assets/external-link-hoWSw8K3.js +8 -0
  46. package/dist/web/assets/facebook-DDEJ_asn.js +26 -0
  47. package/dist/web/assets/farcaster-BV608uhf.js +12 -0
  48. package/dist/web/assets/filters-CeQfIov1.js +8 -0
  49. package/dist/web/assets/github-Dqysw-3x.js +18 -0
  50. package/dist/web/assets/google-CFdyk1hB.js +18 -0
  51. package/dist/web/assets/help-circle-BcD3ZM7t.js +12 -0
  52. package/dist/web/assets/id-DXy43FoM.js +12 -0
  53. package/dist/web/assets/image-1SnJPN6l.js +4 -0
  54. package/dist/web/assets/index-BIyC7YhM.js +47 -0
  55. package/dist/web/assets/index-C6-x1f-N.js +1 -0
  56. package/dist/web/assets/index-Cx3espT_.js +1727 -0
  57. package/dist/web/assets/index-DKS1QV9i.js +16 -0
  58. package/dist/web/assets/index-kzlEvkEN.js +1 -0
  59. package/dist/web/assets/index-uIeUEaVl.js +395 -0
  60. package/dist/web/assets/index.es-wX32Bxfk.js +39 -0
  61. package/dist/web/assets/info-BxOTkr-B.js +3 -0
  62. package/dist/web/assets/info-circle-Cg5w3G9B.js +12 -0
  63. package/dist/web/assets/lightbulb-B16_pmm3.js +3 -0
  64. package/dist/web/assets/mail-CQWyoSzO.js +8 -0
  65. package/dist/web/assets/{metamask-sdk-mx1KHMGY.js → metamask-sdk-JLexzI6e.js} +15 -15
  66. package/dist/web/assets/mobile-C6gppXC_.js +9 -0
  67. package/dist/web/assets/more-Dmsa0x_H.js +11 -0
  68. package/dist/web/assets/network-placeholder-Doimij1R.js +14 -0
  69. package/dist/web/assets/nftPlaceholder-CYPQpVJm.js +8 -0
  70. package/dist/web/assets/off-CFChDI5-.js +8 -0
  71. package/dist/web/assets/play-store-CMQGde_g.js +32 -0
  72. package/dist/web/assets/plus-DOpIsJwa.js +13 -0
  73. package/dist/web/assets/qr-code-DzFgJO8e.js +6 -0
  74. package/dist/web/assets/recycle-horizontal-CQYnFIx5.js +9 -0
  75. package/dist/web/assets/refresh-Bx9yOdPq.js +8 -0
  76. package/dist/web/assets/reown-logo-CABG1yzm.js +12 -0
  77. package/dist/web/assets/search-B_-TMAmf.js +8 -0
  78. package/dist/web/assets/secp256k1-Cvtpmbtj.js +1 -0
  79. package/dist/web/assets/secp256k1-Qs7OA2cx.js +1 -0
  80. package/dist/web/assets/send-B3BSPwOG.js +15 -0
  81. package/dist/web/assets/swapHorizontal-CYoh2yo-.js +8 -0
  82. package/dist/web/assets/swapHorizontalBold-D02Qwl8X.js +8 -0
  83. package/dist/web/assets/swapHorizontalMedium-BnQ9Ao0n.js +16 -0
  84. package/dist/web/assets/swapHorizontalRoundedBold-CpPz7IYH.js +8 -0
  85. package/dist/web/assets/swapVertical-C6BmnNJz.js +8 -0
  86. package/dist/web/assets/telegram-DxqJf27e.js +16 -0
  87. package/dist/web/assets/three-dots-4_McqY1I.js +5 -0
  88. package/dist/web/assets/twitch-B219wGgL.js +18 -0
  89. package/dist/web/assets/twitterIcon-zB9O5JYS.js +6 -0
  90. package/dist/web/assets/verify-C9qlmvL1.js +8 -0
  91. package/dist/web/assets/verify-filled-CU0B_PY6.js +8 -0
  92. package/dist/web/assets/w3m-modal-DvgKZgpU.js +642 -0
  93. package/dist/web/assets/wallet-BJafjJP_.js +8 -0
  94. package/dist/web/assets/wallet-placeholder-PqUzGxI6.js +14 -0
  95. package/dist/web/assets/walletconnect-Cm6QWX_i.js +30 -0
  96. package/dist/web/assets/warning-circle-BECxJkh3.js +12 -0
  97. package/dist/web/assets/x-CeJlfAEO.js +12 -0
  98. package/dist/web/index.html +1 -1
  99. package/package.json +9 -10
  100. package/dist/web/assets/connectors-BIqtKyuJ.js +0 -1
  101. package/dist/web/assets/connectors-BkiAkXrA.js +0 -1
  102. package/dist/web/assets/connectors-DAWtxdNk.js +0 -1
  103. package/dist/web/assets/connectors-mXb62Iam.js +0 -1
  104. package/dist/web/assets/index-DMM40kDk.js +0 -1727
@@ -0,0 +1,1727 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-C6-x1f-N.js","assets/index-kzlEvkEN.js","assets/index-BIyC7YhM.js","assets/events-DQ172AOg.js","assets/index.es-wX32Bxfk.js"])))=>i.map(i=>d[i]);
2
+ var L8=Object.defineProperty;var rv=e=>{throw TypeError(e)};var F8=(e,t,n)=>t in e?L8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Eo=(e,t,n)=>F8(e,typeof t!="symbol"?t+"":t,n),D0=(e,t,n)=>t.has(e)||rv("Cannot "+n);var M=(e,t,n)=>(D0(e,t,"read from private field"),n?n.call(e):t.get(e)),Ae=(e,t,n)=>t.has(e)?rv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),fe=(e,t,n,r)=>(D0(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Te=(e,t,n)=>(D0(e,t,"access private method"),n);var ku=(e,t,n,r)=>({set _(i){fe(e,t,i,n)},get _(){return M(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var HN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function t6(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function VN(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var L0={exports:{}},Ka={},F0={exports:{}},Re={};/**
3
+ * @license React
4
+ * react.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var ov;function z8(){if(ov)return Re;ov=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.iterator;function m(L){return L===null||typeof L!="object"?null:(L=g&&L[g]||L["@@iterator"],typeof L=="function"?L:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,b={};function C(L,ee,we){this.props=L,this.context=ee,this.refs=b,this.updater=we||y}C.prototype.isReactComponent={},C.prototype.setState=function(L,ee){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,ee,"setState")},C.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function A(){}A.prototype=C.prototype;function I(L,ee,we){this.props=L,this.context=ee,this.refs=b,this.updater=we||y}var k=I.prototype=new A;k.constructor=I,w(k,C.prototype),k.isPureReactComponent=!0;var S=Array.isArray,j=Object.prototype.hasOwnProperty,P={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function T(L,ee,we){var oe,ce={},he=null,Ce=null;if(ee!=null)for(oe in ee.ref!==void 0&&(Ce=ee.ref),ee.key!==void 0&&(he=""+ee.key),ee)j.call(ee,oe)&&!_.hasOwnProperty(oe)&&(ce[oe]=ee[oe]);var _e=arguments.length-2;if(_e===1)ce.children=we;else if(1<_e){for(var Oe=Array(_e),Ve=0;Ve<_e;Ve++)Oe[Ve]=arguments[Ve+2];ce.children=Oe}if(L&&L.defaultProps)for(oe in _e=L.defaultProps,_e)ce[oe]===void 0&&(ce[oe]=_e[oe]);return{$$typeof:e,type:L,key:he,ref:Ce,props:ce,_owner:P.current}}function D(L,ee){return{$$typeof:e,type:L.type,key:ee,ref:L.ref,props:L.props,_owner:L._owner}}function Q(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function H(L){var ee={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(we){return ee[we]})}var Z=/\/+/g;function G(L,ee){return typeof L=="object"&&L!==null&&L.key!=null?H(""+L.key):ee.toString(36)}function le(L,ee,we,oe,ce){var he=typeof L;(he==="undefined"||he==="boolean")&&(L=null);var Ce=!1;if(L===null)Ce=!0;else switch(he){case"string":case"number":Ce=!0;break;case"object":switch(L.$$typeof){case e:case t:Ce=!0}}if(Ce)return Ce=L,ce=ce(Ce),L=oe===""?"."+G(Ce,0):oe,S(ce)?(we="",L!=null&&(we=L.replace(Z,"$&/")+"/"),le(ce,ee,we,"",function(Ve){return Ve})):ce!=null&&(Q(ce)&&(ce=D(ce,we+(!ce.key||Ce&&Ce.key===ce.key?"":(""+ce.key).replace(Z,"$&/")+"/")+L)),ee.push(ce)),1;if(Ce=0,oe=oe===""?".":oe+":",S(L))for(var _e=0;_e<L.length;_e++){he=L[_e];var Oe=oe+G(he,_e);Ce+=le(he,ee,we,Oe,ce)}else if(Oe=m(L),typeof Oe=="function")for(L=Oe.call(L),_e=0;!(he=L.next()).done;)he=he.value,Oe=oe+G(he,_e++),Ce+=le(he,ee,we,Oe,ce);else if(he==="object")throw ee=String(L),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.");return Ce}function $(L,ee,we){if(L==null)return L;var oe=[],ce=0;return le(L,oe,"","",function(he){return ee.call(we,he,ce++)}),oe}function X(L){if(L._status===-1){var ee=L._result;ee=ee(),ee.then(function(we){(L._status===0||L._status===-1)&&(L._status=1,L._result=we)},function(we){(L._status===0||L._status===-1)&&(L._status=2,L._result=we)}),L._status===-1&&(L._status=0,L._result=ee)}if(L._status===1)return L._result.default;throw L._result}var te={current:null},F={transition:null},J={ReactCurrentDispatcher:te,ReactCurrentBatchConfig:F,ReactCurrentOwner:P};function Y(){throw Error("act(...) is not supported in production builds of React.")}return Re.Children={map:$,forEach:function(L,ee,we){$(L,function(){ee.apply(this,arguments)},we)},count:function(L){var ee=0;return $(L,function(){ee++}),ee},toArray:function(L){return $(L,function(ee){return ee})||[]},only:function(L){if(!Q(L))throw Error("React.Children.only expected to receive a single React element child.");return L}},Re.Component=C,Re.Fragment=n,Re.Profiler=i,Re.PureComponent=I,Re.StrictMode=r,Re.Suspense=d,Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,Re.act=Y,Re.cloneElement=function(L,ee,we){if(L==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+L+".");var oe=w({},L.props),ce=L.key,he=L.ref,Ce=L._owner;if(ee!=null){if(ee.ref!==void 0&&(he=ee.ref,Ce=P.current),ee.key!==void 0&&(ce=""+ee.key),L.type&&L.type.defaultProps)var _e=L.type.defaultProps;for(Oe in ee)j.call(ee,Oe)&&!_.hasOwnProperty(Oe)&&(oe[Oe]=ee[Oe]===void 0&&_e!==void 0?_e[Oe]:ee[Oe])}var Oe=arguments.length-2;if(Oe===1)oe.children=we;else if(1<Oe){_e=Array(Oe);for(var Ve=0;Ve<Oe;Ve++)_e[Ve]=arguments[Ve+2];oe.children=_e}return{$$typeof:e,type:L.type,key:ce,ref:he,props:oe,_owner:Ce}},Re.createContext=function(L){return L={$$typeof:c,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},L.Provider={$$typeof:a,_context:L},L.Consumer=L},Re.createElement=T,Re.createFactory=function(L){var ee=T.bind(null,L);return ee.type=L,ee},Re.createRef=function(){return{current:null}},Re.forwardRef=function(L){return{$$typeof:u,render:L}},Re.isValidElement=Q,Re.lazy=function(L){return{$$typeof:p,_payload:{_status:-1,_result:L},_init:X}},Re.memo=function(L,ee){return{$$typeof:f,type:L,compare:ee===void 0?null:ee}},Re.startTransition=function(L){var ee=F.transition;F.transition={};try{L()}finally{F.transition=ee}},Re.unstable_act=Y,Re.useCallback=function(L,ee){return te.current.useCallback(L,ee)},Re.useContext=function(L){return te.current.useContext(L)},Re.useDebugValue=function(){},Re.useDeferredValue=function(L){return te.current.useDeferredValue(L)},Re.useEffect=function(L,ee){return te.current.useEffect(L,ee)},Re.useId=function(){return te.current.useId()},Re.useImperativeHandle=function(L,ee,we){return te.current.useImperativeHandle(L,ee,we)},Re.useInsertionEffect=function(L,ee){return te.current.useInsertionEffect(L,ee)},Re.useLayoutEffect=function(L,ee){return te.current.useLayoutEffect(L,ee)},Re.useMemo=function(L,ee){return te.current.useMemo(L,ee)},Re.useReducer=function(L,ee,we){return te.current.useReducer(L,ee,we)},Re.useRef=function(L){return te.current.useRef(L)},Re.useState=function(L){return te.current.useState(L)},Re.useSyncExternalStore=function(L,ee,we){return te.current.useSyncExternalStore(L,ee,we)},Re.useTransition=function(){return te.current.useTransition()},Re.version="18.3.1",Re}var iv;function Kc(){return iv||(iv=1,F0.exports=z8()),F0.exports}/**
11
+ * @license React
12
+ * react-jsx-runtime.production.min.js
13
+ *
14
+ * Copyright (c) Facebook, Inc. and its affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var sv;function U8(){if(sv)return Ka;sv=1;var e=Kc(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function c(u,d,f){var p,g={},m=null,y=null;f!==void 0&&(m=""+f),d.key!==void 0&&(m=""+d.key),d.ref!==void 0&&(y=d.ref);for(p in d)r.call(d,p)&&!a.hasOwnProperty(p)&&(g[p]=d[p]);if(u&&u.defaultProps)for(p in d=u.defaultProps,d)g[p]===void 0&&(g[p]=d[p]);return{$$typeof:t,type:u,key:m,ref:y,props:g,_owner:i.current}}return Ka.Fragment=n,Ka.jsx=c,Ka.jsxs=c,Ka}var av;function W8(){return av||(av=1,L0.exports=U8()),L0.exports}var W=W8(),Su={},z0={exports:{}},en={},U0={exports:{}},W0={};/**
19
+ * @license React
20
+ * scheduler.production.min.js
21
+ *
22
+ * Copyright (c) Facebook, Inc. and its affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var cv;function $8(){return cv||(cv=1,(function(e){function t(F,J){var Y=F.length;F.push(J);e:for(;0<Y;){var L=Y-1>>>1,ee=F[L];if(0<i(ee,J))F[L]=J,F[Y]=ee,Y=L;else break e}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var J=F[0],Y=F.pop();if(Y!==J){F[0]=Y;e:for(var L=0,ee=F.length,we=ee>>>1;L<we;){var oe=2*(L+1)-1,ce=F[oe],he=oe+1,Ce=F[he];if(0>i(ce,Y))he<ee&&0>i(Ce,ce)?(F[L]=Ce,F[he]=Y,L=he):(F[L]=ce,F[oe]=Y,L=oe);else if(he<ee&&0>i(Ce,Y))F[L]=Ce,F[he]=Y,L=he;else break e}}return J}function i(F,J){var Y=F.sortIndex-J.sortIndex;return Y!==0?Y:F.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var d=[],f=[],p=1,g=null,m=3,y=!1,w=!1,b=!1,C=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(F){for(var J=n(f);J!==null;){if(J.callback===null)r(f);else if(J.startTime<=F)r(f),J.sortIndex=J.expirationTime,t(d,J);else break;J=n(f)}}function S(F){if(b=!1,k(F),!w)if(n(d)!==null)w=!0,X(j);else{var J=n(f);J!==null&&te(S,J.startTime-F)}}function j(F,J){w=!1,b&&(b=!1,A(T),T=-1),y=!0;var Y=m;try{for(k(J),g=n(d);g!==null&&(!(g.expirationTime>J)||F&&!H());){var L=g.callback;if(typeof L=="function"){g.callback=null,m=g.priorityLevel;var ee=L(g.expirationTime<=J);J=e.unstable_now(),typeof ee=="function"?g.callback=ee:g===n(d)&&r(d),k(J)}else r(d);g=n(d)}if(g!==null)var we=!0;else{var oe=n(f);oe!==null&&te(S,oe.startTime-J),we=!1}return we}finally{g=null,m=Y,y=!1}}var P=!1,_=null,T=-1,D=5,Q=-1;function H(){return!(e.unstable_now()-Q<D)}function Z(){if(_!==null){var F=e.unstable_now();Q=F;var J=!0;try{J=_(!0,F)}finally{J?G():(P=!1,_=null)}}else P=!1}var G;if(typeof I=="function")G=function(){I(Z)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,$=le.port2;le.port1.onmessage=Z,G=function(){$.postMessage(null)}}else G=function(){C(Z,0)};function X(F){_=F,P||(P=!0,G())}function te(F,J){T=C(function(){F(e.unstable_now())},J)}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(F){F.callback=null},e.unstable_continueExecution=function(){w||y||(w=!0,X(j))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(F){switch(m){case 1:case 2:case 3:var J=3;break;default:J=m}var Y=m;m=J;try{return F()}finally{m=Y}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,J){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var Y=m;m=F;try{return J()}finally{m=Y}},e.unstable_scheduleCallback=function(F,J,Y){var L=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?L+Y:L):Y=L,F){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=Y+ee,F={id:p++,callback:J,priorityLevel:F,startTime:Y,expirationTime:ee,sortIndex:-1},Y>L?(F.sortIndex=Y,t(f,F),n(d)===null&&F===n(f)&&(b?(A(T),T=-1):b=!0,te(S,Y-L))):(F.sortIndex=ee,t(d,F),w||y||(w=!0,X(j))),F},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(F){var J=m;return function(){var Y=m;m=J;try{return F.apply(this,arguments)}finally{m=Y}}}})(W0)),W0}var lv;function q8(){return lv||(lv=1,U0.exports=$8()),U0.exports}/**
27
+ * @license React
28
+ * react-dom.production.min.js
29
+ *
30
+ * Copyright (c) Facebook, Inc. and its affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var uv;function H8(){if(uv)return en;uv=1;var e=Kc(),t=q8();function n(o){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+o,l=1;l<arguments.length;l++)s+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+o+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function a(o,s){c(o,s),c(o+"Capture",s)}function c(o,s){for(i[o]=s,o=0;o<s.length;o++)r.add(s[o])}var u=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,p={},g={};function m(o){return d.call(g,o)?!0:d.call(p,o)?!1:f.test(o)?g[o]=!0:(p[o]=!0,!1)}function y(o,s,l,h){if(l!==null&&l.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return h?!1:l!==null?!l.acceptsBooleans:(o=o.toLowerCase().slice(0,5),o!=="data-"&&o!=="aria-");default:return!1}}function w(o,s,l,h){if(s===null||typeof s>"u"||y(o,s,l,h))return!0;if(h)return!1;if(l!==null)switch(l.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function b(o,s,l,h,v,x,B){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=h,this.attributeNamespace=v,this.mustUseProperty=l,this.propertyName=o,this.type=s,this.sanitizeURL=x,this.removeEmptyString=B}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(o){C[o]=new b(o,0,!1,o,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(o){var s=o[0];C[s]=new b(s,1,!1,o[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(o){C[o]=new b(o,2,!1,o.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(o){C[o]=new b(o,2,!1,o,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(o){C[o]=new b(o,3,!1,o.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(o){C[o]=new b(o,3,!0,o,null,!1,!1)}),["capture","download"].forEach(function(o){C[o]=new b(o,4,!1,o,null,!1,!1)}),["cols","rows","size","span"].forEach(function(o){C[o]=new b(o,6,!1,o,null,!1,!1)}),["rowSpan","start"].forEach(function(o){C[o]=new b(o,5,!1,o.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function I(o){return o[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(o){var s=o.replace(A,I);C[s]=new b(s,1,!1,o,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(o){var s=o.replace(A,I);C[s]=new b(s,1,!1,o,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(o){var s=o.replace(A,I);C[s]=new b(s,1,!1,o,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(o){C[o]=new b(o,1,!1,o.toLowerCase(),null,!1,!1)}),C.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(o){C[o]=new b(o,1,!1,o.toLowerCase(),null,!0,!0)});function k(o,s,l,h){var v=C.hasOwnProperty(s)?C[s]:null;(v!==null?v.type!==0:h||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(w(s,l,v,h)&&(l=null),h||v===null?m(s)&&(l===null?o.removeAttribute(s):o.setAttribute(s,""+l)):v.mustUseProperty?o[v.propertyName]=l===null?v.type===3?!1:"":l:(s=v.attributeName,h=v.attributeNamespace,l===null?o.removeAttribute(s):(v=v.type,l=v===3||v===4&&l===!0?"":""+l,h?o.setAttributeNS(h,s,l):o.setAttribute(s,l))))}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,j=Symbol.for("react.element"),P=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),Q=Symbol.for("react.provider"),H=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),te=Symbol.for("react.offscreen"),F=Symbol.iterator;function J(o){return o===null||typeof o!="object"?null:(o=F&&o[F]||o["@@iterator"],typeof o=="function"?o:null)}var Y=Object.assign,L;function ee(o){if(L===void 0)try{throw Error()}catch(l){var s=l.stack.trim().match(/\n( *(at )?)/);L=s&&s[1]||""}return`
35
+ `+L+o}var we=!1;function oe(o,s){if(!o||we)return"";we=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(K){var h=K}Reflect.construct(o,[],s)}else{try{s.call()}catch(K){h=K}o.call(s.prototype)}else{try{throw Error()}catch(K){h=K}o()}}catch(K){if(K&&h&&typeof K.stack=="string"){for(var v=K.stack.split(`
36
+ `),x=h.stack.split(`
37
+ `),B=v.length-1,O=x.length-1;1<=B&&0<=O&&v[B]!==x[O];)O--;for(;1<=B&&0<=O;B--,O--)if(v[B]!==x[O]){if(B!==1||O!==1)do if(B--,O--,0>O||v[B]!==x[O]){var z=`
38
+ `+v[B].replace(" at new "," at ");return o.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",o.displayName)),z}while(1<=B&&0<=O);break}}}finally{we=!1,Error.prepareStackTrace=l}return(o=o?o.displayName||o.name:"")?ee(o):""}function ce(o){switch(o.tag){case 5:return ee(o.type);case 16:return ee("Lazy");case 13:return ee("Suspense");case 19:return ee("SuspenseList");case 0:case 2:case 15:return o=oe(o.type,!1),o;case 11:return o=oe(o.type.render,!1),o;case 1:return o=oe(o.type,!0),o;default:return""}}function he(o){if(o==null)return null;if(typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case _:return"Fragment";case P:return"Portal";case D:return"Profiler";case T:return"StrictMode";case G:return"Suspense";case le:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case H:return(o.displayName||"Context")+".Consumer";case Q:return(o._context.displayName||"Context")+".Provider";case Z:var s=o.render;return o=o.displayName,o||(o=s.displayName||s.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case $:return s=o.displayName||null,s!==null?s:he(o.type)||"Memo";case X:s=o._payload,o=o._init;try{return he(o(s))}catch{}}return null}function Ce(o){var s=o.type;switch(o.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return o=s.render,o=o.displayName||o.name||"",s.displayName||(o!==""?"ForwardRef("+o+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return he(s);case 8:return s===T?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function _e(o){switch(typeof o){case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Oe(o){var s=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Ve(o){var s=Oe(o)?"checked":"value",l=Object.getOwnPropertyDescriptor(o.constructor.prototype,s),h=""+o[s];if(!o.hasOwnProperty(s)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var v=l.get,x=l.set;return Object.defineProperty(o,s,{configurable:!0,get:function(){return v.call(this)},set:function(B){h=""+B,x.call(this,B)}}),Object.defineProperty(o,s,{enumerable:l.enumerable}),{getValue:function(){return h},setValue:function(B){h=""+B},stopTracking:function(){o._valueTracker=null,delete o[s]}}}}function Cn(o){o._valueTracker||(o._valueTracker=Ve(o))}function En(o){if(!o)return!1;var s=o._valueTracker;if(!s)return!0;var l=s.getValue(),h="";return o&&(h=Oe(o)?o.checked?"true":"false":o.value),o=h,o!==l?(s.setValue(o),!0):!1}function Mt(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}function An(o,s){var l=s.checked;return Y({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??o._wrapperState.initialChecked})}function zn(o,s){var l=s.defaultValue==null?"":s.defaultValue,h=s.checked!=null?s.checked:s.defaultChecked;l=_e(s.value!=null?s.value:l),o._wrapperState={initialChecked:h,initialValue:l,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function kn(o,s){s=s.checked,s!=null&&k(o,"checked",s,!1)}function da(o,s){kn(o,s);var l=_e(s.value),h=s.type;if(l!=null)h==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+l):o.value!==""+l&&(o.value=""+l);else if(h==="submit"||h==="reset"){o.removeAttribute("value");return}s.hasOwnProperty("value")?Gi(o,s.type,l):s.hasOwnProperty("defaultValue")&&Gi(o,s.type,_e(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(o.defaultChecked=!!s.defaultChecked)}function Jo(o,s,l){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var h=s.type;if(!(h!=="submit"&&h!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+o._wrapperState.initialValue,l||s===o.value||(o.value=s),o.defaultValue=s}l=o.name,l!==""&&(o.name=""),o.defaultChecked=!!o._wrapperState.initialChecked,l!==""&&(o.name=l)}function Gi(o,s,l){(s!=="number"||Mt(o.ownerDocument)!==o)&&(l==null?o.defaultValue=""+o._wrapperState.initialValue:o.defaultValue!==""+l&&(o.defaultValue=""+l))}var Un=Array.isArray;function eo(o,s,l,h){if(o=o.options,s){s={};for(var v=0;v<l.length;v++)s["$"+l[v]]=!0;for(l=0;l<o.length;l++)v=s.hasOwnProperty("$"+o[l].value),o[l].selected!==v&&(o[l].selected=v),v&&h&&(o[l].defaultSelected=!0)}else{for(l=""+_e(l),s=null,v=0;v<o.length;v++){if(o[v].value===l){o[v].selected=!0,h&&(o[v].defaultSelected=!0);return}s!==null||o[v].disabled||(s=o[v])}s!==null&&(s.selected=!0)}}function Zo(o,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return Y({},s,{value:void 0,defaultValue:void 0,children:""+o._wrapperState.initialValue})}function to(o,s){var l=s.value;if(l==null){if(l=s.children,s=s.defaultValue,l!=null){if(s!=null)throw Error(n(92));if(Un(l)){if(1<l.length)throw Error(n(93));l=l[0]}s=l}s==null&&(s=""),l=s}o._wrapperState={initialValue:_e(l)}}function no(o,s){var l=_e(s.value),h=_e(s.defaultValue);l!=null&&(l=""+l,l!==o.value&&(o.value=l),s.defaultValue==null&&o.defaultValue!==l&&(o.defaultValue=l)),h!=null&&(o.defaultValue=""+h)}function yl(o){var s=o.textContent;s===o._wrapperState.initialValue&&s!==""&&s!==null&&(o.value=s)}function fa(o){switch(o){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ki(o,s){return o==null||o==="http://www.w3.org/1999/xhtml"?fa(s):o==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":o}var It,Ar=(function(o){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,l,h,v){MSApp.execUnsafeLocalFunction(function(){return o(s,l,h,v)})}:o})(function(o,s){if(o.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in o)o.innerHTML=s;else{for(It=It||document.createElement("div"),It.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=It.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;s.firstChild;)o.appendChild(s.firstChild)}});function sr(o,s){if(s){var l=o.firstChild;if(l&&l===o.lastChild&&l.nodeType===3){l.nodeValue=s;return}}o.textContent=s}var Pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Fe=["Webkit","ms","Moz","O"];Object.keys(Pe).forEach(function(o){Fe.forEach(function(s){s=s+o.charAt(0).toUpperCase()+o.substring(1),Pe[s]=Pe[o]})});function Be(o,s,l){return s==null||typeof s=="boolean"||s===""?"":l||typeof s!="number"||s===0||Pe.hasOwnProperty(o)&&Pe[o]?(""+s).trim():s+"px"}function qe(o,s){o=o.style;for(var l in s)if(s.hasOwnProperty(l)){var h=l.indexOf("--")===0,v=Be(l,s[l],h);l==="float"&&(l="cssFloat"),h?o.setProperty(l,v):o[l]=v}}var Wn=Y({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Qt(o,s){if(s){if(Wn[o]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,o));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function Le(o,s){if(o.indexOf("-")===-1)return typeof s.is=="string";switch(o){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 Ie=null;function Gt(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Xo=null,kr=null,Yi=null;function b1(o){if(o=Ra(o)){if(typeof Xo!="function")throw Error(n(280));var s=o.stateNode;s&&(s=zl(s),Xo(o.stateNode,o.type,s))}}function x1(o){kr?Yi?Yi.push(o):Yi=[o]:kr=o}function C1(){if(kr){var o=kr,s=Yi;if(Yi=kr=null,b1(o),s)for(o=0;o<s.length;o++)b1(s[o])}}function E1(o,s){return o(s)}function A1(){}var Xd=!1;function k1(o,s,l){if(Xd)return o(s,l);Xd=!0;try{return E1(o,s,l)}finally{Xd=!1,(kr!==null||Yi!==null)&&(A1(),C1())}}function ha(o,s){var l=o.stateNode;if(l===null)return null;var h=zl(l);if(h===null)return null;l=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(o=o.type,h=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!h;break e;default:o=!1}if(o)return null;if(l&&typeof l!="function")throw Error(n(231,s,typeof l));return l}var ef=!1;if(u)try{var pa={};Object.defineProperty(pa,"passive",{get:function(){ef=!0}}),window.addEventListener("test",pa,pa),window.removeEventListener("test",pa,pa)}catch{ef=!1}function qx(o,s,l,h,v,x,B,O,z){var K=Array.prototype.slice.call(arguments,3);try{s.apply(l,K)}catch(ie){this.onError(ie)}}var ma=!1,vl=null,wl=!1,tf=null,Hx={onError:function(o){ma=!0,vl=o}};function Vx(o,s,l,h,v,x,B,O,z){ma=!1,vl=null,qx.apply(Hx,arguments)}function Qx(o,s,l,h,v,x,B,O,z){if(Vx.apply(this,arguments),ma){if(ma){var K=vl;ma=!1,vl=null}else throw Error(n(198));wl||(wl=!0,tf=K)}}function ei(o){var s=o,l=o;if(o.alternate)for(;s.return;)s=s.return;else{o=s;do s=o,(s.flags&4098)!==0&&(l=s.return),o=s.return;while(o)}return s.tag===3?l:null}function S1(o){if(o.tag===13){var s=o.memoizedState;if(s===null&&(o=o.alternate,o!==null&&(s=o.memoizedState)),s!==null)return s.dehydrated}return null}function I1(o){if(ei(o)!==o)throw Error(n(188))}function Gx(o){var s=o.alternate;if(!s){if(s=ei(o),s===null)throw Error(n(188));return s!==o?null:o}for(var l=o,h=s;;){var v=l.return;if(v===null)break;var x=v.alternate;if(x===null){if(h=v.return,h!==null){l=h;continue}break}if(v.child===x.child){for(x=v.child;x;){if(x===l)return I1(v),o;if(x===h)return I1(v),s;x=x.sibling}throw Error(n(188))}if(l.return!==h.return)l=v,h=x;else{for(var B=!1,O=v.child;O;){if(O===l){B=!0,l=v,h=x;break}if(O===h){B=!0,h=v,l=x;break}O=O.sibling}if(!B){for(O=x.child;O;){if(O===l){B=!0,l=x,h=v;break}if(O===h){B=!0,h=x,l=v;break}O=O.sibling}if(!B)throw Error(n(189))}}if(l.alternate!==h)throw Error(n(190))}if(l.tag!==3)throw Error(n(188));return l.stateNode.current===l?o:s}function j1(o){return o=Gx(o),o!==null?B1(o):null}function B1(o){if(o.tag===5||o.tag===6)return o;for(o=o.child;o!==null;){var s=B1(o);if(s!==null)return s;o=o.sibling}return null}var _1=t.unstable_scheduleCallback,P1=t.unstable_cancelCallback,Kx=t.unstable_shouldYield,Yx=t.unstable_requestPaint,rt=t.unstable_now,Jx=t.unstable_getCurrentPriorityLevel,nf=t.unstable_ImmediatePriority,T1=t.unstable_UserBlockingPriority,bl=t.unstable_NormalPriority,Zx=t.unstable_LowPriority,O1=t.unstable_IdlePriority,xl=null,ar=null;function Xx(o){if(ar&&typeof ar.onCommitFiberRoot=="function")try{ar.onCommitFiberRoot(xl,o,void 0,(o.current.flags&128)===128)}catch{}}var $n=Math.clz32?Math.clz32:nC,eC=Math.log,tC=Math.LN2;function nC(o){return o>>>=0,o===0?32:31-(eC(o)/tC|0)|0}var Cl=64,El=4194304;function ga(o){switch(o&-o){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: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 o&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return o&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return o}}function Al(o,s){var l=o.pendingLanes;if(l===0)return 0;var h=0,v=o.suspendedLanes,x=o.pingedLanes,B=l&268435455;if(B!==0){var O=B&~v;O!==0?h=ga(O):(x&=B,x!==0&&(h=ga(x)))}else B=l&~v,B!==0?h=ga(B):x!==0&&(h=ga(x));if(h===0)return 0;if(s!==0&&s!==h&&(s&v)===0&&(v=h&-h,x=s&-s,v>=x||v===16&&(x&4194240)!==0))return s;if((h&4)!==0&&(h|=l&16),s=o.entangledLanes,s!==0)for(o=o.entanglements,s&=h;0<s;)l=31-$n(s),v=1<<l,h|=o[l],s&=~v;return h}function rC(o,s){switch(o){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64: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 s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function oC(o,s){for(var l=o.suspendedLanes,h=o.pingedLanes,v=o.expirationTimes,x=o.pendingLanes;0<x;){var B=31-$n(x),O=1<<B,z=v[B];z===-1?((O&l)===0||(O&h)!==0)&&(v[B]=rC(O,s)):z<=s&&(o.expiredLanes|=O),x&=~O}}function rf(o){return o=o.pendingLanes&-1073741825,o!==0?o:o&1073741824?1073741824:0}function R1(){var o=Cl;return Cl<<=1,(Cl&4194240)===0&&(Cl=64),o}function of(o){for(var s=[],l=0;31>l;l++)s.push(o);return s}function ya(o,s,l){o.pendingLanes|=s,s!==536870912&&(o.suspendedLanes=0,o.pingedLanes=0),o=o.eventTimes,s=31-$n(s),o[s]=l}function iC(o,s){var l=o.pendingLanes&~s;o.pendingLanes=s,o.suspendedLanes=0,o.pingedLanes=0,o.expiredLanes&=s,o.mutableReadLanes&=s,o.entangledLanes&=s,s=o.entanglements;var h=o.eventTimes;for(o=o.expirationTimes;0<l;){var v=31-$n(l),x=1<<v;s[v]=0,h[v]=-1,o[v]=-1,l&=~x}}function sf(o,s){var l=o.entangledLanes|=s;for(o=o.entanglements;l;){var h=31-$n(l),v=1<<h;v&s|o[h]&s&&(o[h]|=s),l&=~v}}var He=0;function N1(o){return o&=-o,1<o?4<o?(o&268435455)!==0?16:536870912:4:1}var M1,af,D1,L1,F1,cf=!1,kl=[],ro=null,oo=null,io=null,va=new Map,wa=new Map,so=[],sC="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 submit".split(" ");function z1(o,s){switch(o){case"focusin":case"focusout":ro=null;break;case"dragenter":case"dragleave":oo=null;break;case"mouseover":case"mouseout":io=null;break;case"pointerover":case"pointerout":va.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":wa.delete(s.pointerId)}}function ba(o,s,l,h,v,x){return o===null||o.nativeEvent!==x?(o={blockedOn:s,domEventName:l,eventSystemFlags:h,nativeEvent:x,targetContainers:[v]},s!==null&&(s=Ra(s),s!==null&&af(s)),o):(o.eventSystemFlags|=h,s=o.targetContainers,v!==null&&s.indexOf(v)===-1&&s.push(v),o)}function aC(o,s,l,h,v){switch(s){case"focusin":return ro=ba(ro,o,s,l,h,v),!0;case"dragenter":return oo=ba(oo,o,s,l,h,v),!0;case"mouseover":return io=ba(io,o,s,l,h,v),!0;case"pointerover":var x=v.pointerId;return va.set(x,ba(va.get(x)||null,o,s,l,h,v)),!0;case"gotpointercapture":return x=v.pointerId,wa.set(x,ba(wa.get(x)||null,o,s,l,h,v)),!0}return!1}function U1(o){var s=ti(o.target);if(s!==null){var l=ei(s);if(l!==null){if(s=l.tag,s===13){if(s=S1(l),s!==null){o.blockedOn=s,F1(o.priority,function(){D1(l)});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){o.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Sl(o){if(o.blockedOn!==null)return!1;for(var s=o.targetContainers;0<s.length;){var l=uf(o.domEventName,o.eventSystemFlags,s[0],o.nativeEvent);if(l===null){l=o.nativeEvent;var h=new l.constructor(l.type,l);Ie=h,l.target.dispatchEvent(h),Ie=null}else return s=Ra(l),s!==null&&af(s),o.blockedOn=l,!1;s.shift()}return!0}function W1(o,s,l){Sl(o)&&l.delete(s)}function cC(){cf=!1,ro!==null&&Sl(ro)&&(ro=null),oo!==null&&Sl(oo)&&(oo=null),io!==null&&Sl(io)&&(io=null),va.forEach(W1),wa.forEach(W1)}function xa(o,s){o.blockedOn===s&&(o.blockedOn=null,cf||(cf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,cC)))}function Ca(o){function s(v){return xa(v,o)}if(0<kl.length){xa(kl[0],o);for(var l=1;l<kl.length;l++){var h=kl[l];h.blockedOn===o&&(h.blockedOn=null)}}for(ro!==null&&xa(ro,o),oo!==null&&xa(oo,o),io!==null&&xa(io,o),va.forEach(s),wa.forEach(s),l=0;l<so.length;l++)h=so[l],h.blockedOn===o&&(h.blockedOn=null);for(;0<so.length&&(l=so[0],l.blockedOn===null);)U1(l),l.blockedOn===null&&so.shift()}var Ji=S.ReactCurrentBatchConfig,Il=!0;function lC(o,s,l,h){var v=He,x=Ji.transition;Ji.transition=null;try{He=1,lf(o,s,l,h)}finally{He=v,Ji.transition=x}}function uC(o,s,l,h){var v=He,x=Ji.transition;Ji.transition=null;try{He=4,lf(o,s,l,h)}finally{He=v,Ji.transition=x}}function lf(o,s,l,h){if(Il){var v=uf(o,s,l,h);if(v===null)If(o,s,h,jl,l),z1(o,h);else if(aC(v,o,s,l,h))h.stopPropagation();else if(z1(o,h),s&4&&-1<sC.indexOf(o)){for(;v!==null;){var x=Ra(v);if(x!==null&&M1(x),x=uf(o,s,l,h),x===null&&If(o,s,h,jl,l),x===v)break;v=x}v!==null&&h.stopPropagation()}else If(o,s,h,null,l)}}var jl=null;function uf(o,s,l,h){if(jl=null,o=Gt(h),o=ti(o),o!==null)if(s=ei(o),s===null)o=null;else if(l=s.tag,l===13){if(o=S1(s),o!==null)return o;o=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;o=null}else s!==o&&(o=null);return jl=o,null}function $1(o){switch(o){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Jx()){case nf:return 1;case T1:return 4;case bl:case Zx:return 16;case O1:return 536870912;default:return 16}default:return 16}}var ao=null,df=null,Bl=null;function q1(){if(Bl)return Bl;var o,s=df,l=s.length,h,v="value"in ao?ao.value:ao.textContent,x=v.length;for(o=0;o<l&&s[o]===v[o];o++);var B=l-o;for(h=1;h<=B&&s[l-h]===v[x-h];h++);return Bl=v.slice(o,1<h?1-h:void 0)}function _l(o){var s=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&s===13&&(o=13)):o=s,o===10&&(o=13),32<=o||o===13?o:0}function Pl(){return!0}function H1(){return!1}function dn(o){function s(l,h,v,x,B){this._reactName=l,this._targetInst=v,this.type=h,this.nativeEvent=x,this.target=B,this.currentTarget=null;for(var O in o)o.hasOwnProperty(O)&&(l=o[O],this[O]=l?l(x):x[O]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Pl:H1,this.isPropagationStopped=H1,this}return Y(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Pl)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Pl)},persist:function(){},isPersistent:Pl}),s}var Zi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ff=dn(Zi),Ea=Y({},Zi,{view:0,detail:0}),dC=dn(Ea),hf,pf,Aa,Tl=Y({},Ea,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gf,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Aa&&(Aa&&o.type==="mousemove"?(hf=o.screenX-Aa.screenX,pf=o.screenY-Aa.screenY):pf=hf=0,Aa=o),hf)},movementY:function(o){return"movementY"in o?o.movementY:pf}}),V1=dn(Tl),fC=Y({},Tl,{dataTransfer:0}),hC=dn(fC),pC=Y({},Ea,{relatedTarget:0}),mf=dn(pC),mC=Y({},Zi,{animationName:0,elapsedTime:0,pseudoElement:0}),gC=dn(mC),yC=Y({},Zi,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),vC=dn(yC),wC=Y({},Zi,{data:0}),Q1=dn(wC),bC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xC={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"},CC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function EC(o){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(o):(o=CC[o])?!!s[o]:!1}function gf(){return EC}var AC=Y({},Ea,{key:function(o){if(o.key){var s=bC[o.key]||o.key;if(s!=="Unidentified")return s}return o.type==="keypress"?(o=_l(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?xC[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gf,charCode:function(o){return o.type==="keypress"?_l(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?_l(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),kC=dn(AC),SC=Y({},Tl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),G1=dn(SC),IC=Y({},Ea,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gf}),jC=dn(IC),BC=Y({},Zi,{propertyName:0,elapsedTime:0,pseudoElement:0}),_C=dn(BC),PC=Y({},Tl,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),TC=dn(PC),OC=[9,13,27,32],yf=u&&"CompositionEvent"in window,ka=null;u&&"documentMode"in document&&(ka=document.documentMode);var RC=u&&"TextEvent"in window&&!ka,K1=u&&(!yf||ka&&8<ka&&11>=ka),Y1=" ",J1=!1;function Z1(o,s){switch(o){case"keyup":return OC.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function X1(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Xi=!1;function NC(o,s){switch(o){case"compositionend":return X1(s);case"keypress":return s.which!==32?null:(J1=!0,Y1);case"textInput":return o=s.data,o===Y1&&J1?null:o;default:return null}}function MC(o,s){if(Xi)return o==="compositionend"||!yf&&Z1(o,s)?(o=q1(),Bl=df=ao=null,Xi=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return K1&&s.locale!=="ko"?null:s.data;default:return null}}var DC={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 eg(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s==="input"?!!DC[o.type]:s==="textarea"}function tg(o,s,l,h){x1(h),s=Dl(s,"onChange"),0<s.length&&(l=new ff("onChange","change",null,l,h),o.push({event:l,listeners:s}))}var Sa=null,Ia=null;function LC(o){wg(o,0)}function Ol(o){var s=os(o);if(En(s))return o}function FC(o,s){if(o==="change")return s}var ng=!1;if(u){var vf;if(u){var wf="oninput"in document;if(!wf){var rg=document.createElement("div");rg.setAttribute("oninput","return;"),wf=typeof rg.oninput=="function"}vf=wf}else vf=!1;ng=vf&&(!document.documentMode||9<document.documentMode)}function og(){Sa&&(Sa.detachEvent("onpropertychange",ig),Ia=Sa=null)}function ig(o){if(o.propertyName==="value"&&Ol(Ia)){var s=[];tg(s,Ia,o,Gt(o)),k1(LC,s)}}function zC(o,s,l){o==="focusin"?(og(),Sa=s,Ia=l,Sa.attachEvent("onpropertychange",ig)):o==="focusout"&&og()}function UC(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Ol(Ia)}function WC(o,s){if(o==="click")return Ol(s)}function $C(o,s){if(o==="input"||o==="change")return Ol(s)}function qC(o,s){return o===s&&(o!==0||1/o===1/s)||o!==o&&s!==s}var qn=typeof Object.is=="function"?Object.is:qC;function ja(o,s){if(qn(o,s))return!0;if(typeof o!="object"||o===null||typeof s!="object"||s===null)return!1;var l=Object.keys(o),h=Object.keys(s);if(l.length!==h.length)return!1;for(h=0;h<l.length;h++){var v=l[h];if(!d.call(s,v)||!qn(o[v],s[v]))return!1}return!0}function sg(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function ag(o,s){var l=sg(o);o=0;for(var h;l;){if(l.nodeType===3){if(h=o+l.textContent.length,o<=s&&h>=s)return{node:l,offset:s-o};o=h}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=sg(l)}}function cg(o,s){return o&&s?o===s?!0:o&&o.nodeType===3?!1:s&&s.nodeType===3?cg(o,s.parentNode):"contains"in o?o.contains(s):o.compareDocumentPosition?!!(o.compareDocumentPosition(s)&16):!1:!1}function lg(){for(var o=window,s=Mt();s instanceof o.HTMLIFrameElement;){try{var l=typeof s.contentWindow.location.href=="string"}catch{l=!1}if(l)o=s.contentWindow;else break;s=Mt(o.document)}return s}function bf(o){var s=o&&o.nodeName&&o.nodeName.toLowerCase();return s&&(s==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||s==="textarea"||o.contentEditable==="true")}function HC(o){var s=lg(),l=o.focusedElem,h=o.selectionRange;if(s!==l&&l&&l.ownerDocument&&cg(l.ownerDocument.documentElement,l)){if(h!==null&&bf(l)){if(s=h.start,o=h.end,o===void 0&&(o=s),"selectionStart"in l)l.selectionStart=s,l.selectionEnd=Math.min(o,l.value.length);else if(o=(s=l.ownerDocument||document)&&s.defaultView||window,o.getSelection){o=o.getSelection();var v=l.textContent.length,x=Math.min(h.start,v);h=h.end===void 0?x:Math.min(h.end,v),!o.extend&&x>h&&(v=h,h=x,x=v),v=ag(l,x);var B=ag(l,h);v&&B&&(o.rangeCount!==1||o.anchorNode!==v.node||o.anchorOffset!==v.offset||o.focusNode!==B.node||o.focusOffset!==B.offset)&&(s=s.createRange(),s.setStart(v.node,v.offset),o.removeAllRanges(),x>h?(o.addRange(s),o.extend(B.node,B.offset)):(s.setEnd(B.node,B.offset),o.addRange(s)))}}for(s=[],o=l;o=o.parentNode;)o.nodeType===1&&s.push({element:o,left:o.scrollLeft,top:o.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<s.length;l++)o=s[l],o.element.scrollLeft=o.left,o.element.scrollTop=o.top}}var VC=u&&"documentMode"in document&&11>=document.documentMode,es=null,xf=null,Ba=null,Cf=!1;function ug(o,s,l){var h=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Cf||es==null||es!==Mt(h)||(h=es,"selectionStart"in h&&bf(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Ba&&ja(Ba,h)||(Ba=h,h=Dl(xf,"onSelect"),0<h.length&&(s=new ff("onSelect","select",null,s,l),o.push({event:s,listeners:h}),s.target=es)))}function Rl(o,s){var l={};return l[o.toLowerCase()]=s.toLowerCase(),l["Webkit"+o]="webkit"+s,l["Moz"+o]="moz"+s,l}var ts={animationend:Rl("Animation","AnimationEnd"),animationiteration:Rl("Animation","AnimationIteration"),animationstart:Rl("Animation","AnimationStart"),transitionend:Rl("Transition","TransitionEnd")},Ef={},dg={};u&&(dg=document.createElement("div").style,"AnimationEvent"in window||(delete ts.animationend.animation,delete ts.animationiteration.animation,delete ts.animationstart.animation),"TransitionEvent"in window||delete ts.transitionend.transition);function Nl(o){if(Ef[o])return Ef[o];if(!ts[o])return o;var s=ts[o],l;for(l in s)if(s.hasOwnProperty(l)&&l in dg)return Ef[o]=s[l];return o}var fg=Nl("animationend"),hg=Nl("animationiteration"),pg=Nl("animationstart"),mg=Nl("transitionend"),gg=new Map,yg="abort auxClick 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(" ");function co(o,s){gg.set(o,s),a(s,[o])}for(var Af=0;Af<yg.length;Af++){var kf=yg[Af],QC=kf.toLowerCase(),GC=kf[0].toUpperCase()+kf.slice(1);co(QC,"on"+GC)}co(fg,"onAnimationEnd"),co(hg,"onAnimationIteration"),co(pg,"onAnimationStart"),co("dblclick","onDoubleClick"),co("focusin","onFocus"),co("focusout","onBlur"),co(mg,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _a="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(" "),KC=new Set("cancel close invalid load scroll toggle".split(" ").concat(_a));function vg(o,s,l){var h=o.type||"unknown-event";o.currentTarget=l,Qx(h,s,void 0,o),o.currentTarget=null}function wg(o,s){s=(s&4)!==0;for(var l=0;l<o.length;l++){var h=o[l],v=h.event;h=h.listeners;e:{var x=void 0;if(s)for(var B=h.length-1;0<=B;B--){var O=h[B],z=O.instance,K=O.currentTarget;if(O=O.listener,z!==x&&v.isPropagationStopped())break e;vg(v,O,K),x=z}else for(B=0;B<h.length;B++){if(O=h[B],z=O.instance,K=O.currentTarget,O=O.listener,z!==x&&v.isPropagationStopped())break e;vg(v,O,K),x=z}}}if(wl)throw o=tf,wl=!1,tf=null,o}function Ge(o,s){var l=s[Of];l===void 0&&(l=s[Of]=new Set);var h=o+"__bubble";l.has(h)||(bg(s,o,2,!1),l.add(h))}function Sf(o,s,l){var h=0;s&&(h|=4),bg(l,o,h,s)}var Ml="_reactListening"+Math.random().toString(36).slice(2);function Pa(o){if(!o[Ml]){o[Ml]=!0,r.forEach(function(l){l!=="selectionchange"&&(KC.has(l)||Sf(l,!1,o),Sf(l,!0,o))});var s=o.nodeType===9?o:o.ownerDocument;s===null||s[Ml]||(s[Ml]=!0,Sf("selectionchange",!1,s))}}function bg(o,s,l,h){switch($1(s)){case 1:var v=lC;break;case 4:v=uC;break;default:v=lf}l=v.bind(null,s,l,o),v=void 0,!ef||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(v=!0),h?v!==void 0?o.addEventListener(s,l,{capture:!0,passive:v}):o.addEventListener(s,l,!0):v!==void 0?o.addEventListener(s,l,{passive:v}):o.addEventListener(s,l,!1)}function If(o,s,l,h,v){var x=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var B=h.tag;if(B===3||B===4){var O=h.stateNode.containerInfo;if(O===v||O.nodeType===8&&O.parentNode===v)break;if(B===4)for(B=h.return;B!==null;){var z=B.tag;if((z===3||z===4)&&(z=B.stateNode.containerInfo,z===v||z.nodeType===8&&z.parentNode===v))return;B=B.return}for(;O!==null;){if(B=ti(O),B===null)return;if(z=B.tag,z===5||z===6){h=x=B;continue e}O=O.parentNode}}h=h.return}k1(function(){var K=x,ie=Gt(l),se=[];e:{var re=gg.get(o);if(re!==void 0){var pe=ff,ye=o;switch(o){case"keypress":if(_l(l)===0)break e;case"keydown":case"keyup":pe=kC;break;case"focusin":ye="focus",pe=mf;break;case"focusout":ye="blur",pe=mf;break;case"beforeblur":case"afterblur":pe=mf;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pe=V1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pe=hC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pe=jC;break;case fg:case hg:case pg:pe=gC;break;case mg:pe=_C;break;case"scroll":pe=dC;break;case"wheel":pe=TC;break;case"copy":case"cut":case"paste":pe=vC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pe=G1}var ve=(s&4)!==0,ot=!ve&&o==="scroll",q=ve?re!==null?re+"Capture":null:re;ve=[];for(var U=K,V;U!==null;){V=U;var ue=V.stateNode;if(V.tag===5&&ue!==null&&(V=ue,q!==null&&(ue=ha(U,q),ue!=null&&ve.push(Ta(U,ue,V)))),ot)break;U=U.return}0<ve.length&&(re=new pe(re,ye,null,l,ie),se.push({event:re,listeners:ve}))}}if((s&7)===0){e:{if(re=o==="mouseover"||o==="pointerover",pe=o==="mouseout"||o==="pointerout",re&&l!==Ie&&(ye=l.relatedTarget||l.fromElement)&&(ti(ye)||ye[Sr]))break e;if((pe||re)&&(re=ie.window===ie?ie:(re=ie.ownerDocument)?re.defaultView||re.parentWindow:window,pe?(ye=l.relatedTarget||l.toElement,pe=K,ye=ye?ti(ye):null,ye!==null&&(ot=ei(ye),ye!==ot||ye.tag!==5&&ye.tag!==6)&&(ye=null)):(pe=null,ye=K),pe!==ye)){if(ve=V1,ue="onMouseLeave",q="onMouseEnter",U="mouse",(o==="pointerout"||o==="pointerover")&&(ve=G1,ue="onPointerLeave",q="onPointerEnter",U="pointer"),ot=pe==null?re:os(pe),V=ye==null?re:os(ye),re=new ve(ue,U+"leave",pe,l,ie),re.target=ot,re.relatedTarget=V,ue=null,ti(ie)===K&&(ve=new ve(q,U+"enter",ye,l,ie),ve.target=V,ve.relatedTarget=ot,ue=ve),ot=ue,pe&&ye)t:{for(ve=pe,q=ye,U=0,V=ve;V;V=ns(V))U++;for(V=0,ue=q;ue;ue=ns(ue))V++;for(;0<U-V;)ve=ns(ve),U--;for(;0<V-U;)q=ns(q),V--;for(;U--;){if(ve===q||q!==null&&ve===q.alternate)break t;ve=ns(ve),q=ns(q)}ve=null}else ve=null;pe!==null&&xg(se,re,pe,ve,!1),ye!==null&&ot!==null&&xg(se,ot,ye,ve,!0)}}e:{if(re=K?os(K):window,pe=re.nodeName&&re.nodeName.toLowerCase(),pe==="select"||pe==="input"&&re.type==="file")var xe=FC;else if(eg(re))if(ng)xe=$C;else{xe=UC;var ke=zC}else(pe=re.nodeName)&&pe.toLowerCase()==="input"&&(re.type==="checkbox"||re.type==="radio")&&(xe=WC);if(xe&&(xe=xe(o,K))){tg(se,xe,l,ie);break e}ke&&ke(o,re,K),o==="focusout"&&(ke=re._wrapperState)&&ke.controlled&&re.type==="number"&&Gi(re,"number",re.value)}switch(ke=K?os(K):window,o){case"focusin":(eg(ke)||ke.contentEditable==="true")&&(es=ke,xf=K,Ba=null);break;case"focusout":Ba=xf=es=null;break;case"mousedown":Cf=!0;break;case"contextmenu":case"mouseup":case"dragend":Cf=!1,ug(se,l,ie);break;case"selectionchange":if(VC)break;case"keydown":case"keyup":ug(se,l,ie)}var Se;if(yf)e:{switch(o){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else Xi?Z1(o,l)&&(je="onCompositionEnd"):o==="keydown"&&l.keyCode===229&&(je="onCompositionStart");je&&(K1&&l.locale!=="ko"&&(Xi||je!=="onCompositionStart"?je==="onCompositionEnd"&&Xi&&(Se=q1()):(ao=ie,df="value"in ao?ao.value:ao.textContent,Xi=!0)),ke=Dl(K,je),0<ke.length&&(je=new Q1(je,o,null,l,ie),se.push({event:je,listeners:ke}),Se?je.data=Se:(Se=X1(l),Se!==null&&(je.data=Se)))),(Se=RC?NC(o,l):MC(o,l))&&(K=Dl(K,"onBeforeInput"),0<K.length&&(ie=new Q1("onBeforeInput","beforeinput",null,l,ie),se.push({event:ie,listeners:K}),ie.data=Se))}wg(se,s)})}function Ta(o,s,l){return{instance:o,listener:s,currentTarget:l}}function Dl(o,s){for(var l=s+"Capture",h=[];o!==null;){var v=o,x=v.stateNode;v.tag===5&&x!==null&&(v=x,x=ha(o,l),x!=null&&h.unshift(Ta(o,x,v)),x=ha(o,s),x!=null&&h.push(Ta(o,x,v))),o=o.return}return h}function ns(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5);return o||null}function xg(o,s,l,h,v){for(var x=s._reactName,B=[];l!==null&&l!==h;){var O=l,z=O.alternate,K=O.stateNode;if(z!==null&&z===h)break;O.tag===5&&K!==null&&(O=K,v?(z=ha(l,x),z!=null&&B.unshift(Ta(l,z,O))):v||(z=ha(l,x),z!=null&&B.push(Ta(l,z,O)))),l=l.return}B.length!==0&&o.push({event:s,listeners:B})}var YC=/\r\n?/g,JC=/\u0000|\uFFFD/g;function Cg(o){return(typeof o=="string"?o:""+o).replace(YC,`
39
+ `).replace(JC,"")}function Ll(o,s,l){if(s=Cg(s),Cg(o)!==s&&l)throw Error(n(425))}function Fl(){}var jf=null,Bf=null;function _f(o,s){return o==="textarea"||o==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Pf=typeof setTimeout=="function"?setTimeout:void 0,ZC=typeof clearTimeout=="function"?clearTimeout:void 0,Eg=typeof Promise=="function"?Promise:void 0,XC=typeof queueMicrotask=="function"?queueMicrotask:typeof Eg<"u"?function(o){return Eg.resolve(null).then(o).catch(e8)}:Pf;function e8(o){setTimeout(function(){throw o})}function Tf(o,s){var l=s,h=0;do{var v=l.nextSibling;if(o.removeChild(l),v&&v.nodeType===8)if(l=v.data,l==="/$"){if(h===0){o.removeChild(v),Ca(s);return}h--}else l!=="$"&&l!=="$?"&&l!=="$!"||h++;l=v}while(l);Ca(s)}function lo(o){for(;o!=null;o=o.nextSibling){var s=o.nodeType;if(s===1||s===3)break;if(s===8){if(s=o.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return o}function Ag(o){o=o.previousSibling;for(var s=0;o;){if(o.nodeType===8){var l=o.data;if(l==="$"||l==="$!"||l==="$?"){if(s===0)return o;s--}else l==="/$"&&s++}o=o.previousSibling}return null}var rs=Math.random().toString(36).slice(2),cr="__reactFiber$"+rs,Oa="__reactProps$"+rs,Sr="__reactContainer$"+rs,Of="__reactEvents$"+rs,t8="__reactListeners$"+rs,n8="__reactHandles$"+rs;function ti(o){var s=o[cr];if(s)return s;for(var l=o.parentNode;l;){if(s=l[Sr]||l[cr]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(o=Ag(o);o!==null;){if(l=o[cr])return l;o=Ag(o)}return s}o=l,l=o.parentNode}return null}function Ra(o){return o=o[cr]||o[Sr],!o||o.tag!==5&&o.tag!==6&&o.tag!==13&&o.tag!==3?null:o}function os(o){if(o.tag===5||o.tag===6)return o.stateNode;throw Error(n(33))}function zl(o){return o[Oa]||null}var Rf=[],is=-1;function uo(o){return{current:o}}function Ke(o){0>is||(o.current=Rf[is],Rf[is]=null,is--)}function Qe(o,s){is++,Rf[is]=o.current,o.current=s}var fo={},jt=uo(fo),Kt=uo(!1),ni=fo;function ss(o,s){var l=o.type.contextTypes;if(!l)return fo;var h=o.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===s)return h.__reactInternalMemoizedMaskedChildContext;var v={},x;for(x in l)v[x]=s[x];return h&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=s,o.__reactInternalMemoizedMaskedChildContext=v),v}function Yt(o){return o=o.childContextTypes,o!=null}function Ul(){Ke(Kt),Ke(jt)}function kg(o,s,l){if(jt.current!==fo)throw Error(n(168));Qe(jt,s),Qe(Kt,l)}function Sg(o,s,l){var h=o.stateNode;if(s=s.childContextTypes,typeof h.getChildContext!="function")return l;h=h.getChildContext();for(var v in h)if(!(v in s))throw Error(n(108,Ce(o)||"Unknown",v));return Y({},l,h)}function Wl(o){return o=(o=o.stateNode)&&o.__reactInternalMemoizedMergedChildContext||fo,ni=jt.current,Qe(jt,o),Qe(Kt,Kt.current),!0}function Ig(o,s,l){var h=o.stateNode;if(!h)throw Error(n(169));l?(o=Sg(o,s,ni),h.__reactInternalMemoizedMergedChildContext=o,Ke(Kt),Ke(jt),Qe(jt,o)):Ke(Kt),Qe(Kt,l)}var Ir=null,$l=!1,Nf=!1;function jg(o){Ir===null?Ir=[o]:Ir.push(o)}function r8(o){$l=!0,jg(o)}function ho(){if(!Nf&&Ir!==null){Nf=!0;var o=0,s=He;try{var l=Ir;for(He=1;o<l.length;o++){var h=l[o];do h=h(!0);while(h!==null)}Ir=null,$l=!1}catch(v){throw Ir!==null&&(Ir=Ir.slice(o+1)),_1(nf,ho),v}finally{He=s,Nf=!1}}return null}var as=[],cs=0,ql=null,Hl=0,Sn=[],In=0,ri=null,jr=1,Br="";function oi(o,s){as[cs++]=Hl,as[cs++]=ql,ql=o,Hl=s}function Bg(o,s,l){Sn[In++]=jr,Sn[In++]=Br,Sn[In++]=ri,ri=o;var h=jr;o=Br;var v=32-$n(h)-1;h&=~(1<<v),l+=1;var x=32-$n(s)+v;if(30<x){var B=v-v%5;x=(h&(1<<B)-1).toString(32),h>>=B,v-=B,jr=1<<32-$n(s)+v|l<<v|h,Br=x+o}else jr=1<<x|l<<v|h,Br=o}function Mf(o){o.return!==null&&(oi(o,1),Bg(o,1,0))}function Df(o){for(;o===ql;)ql=as[--cs],as[cs]=null,Hl=as[--cs],as[cs]=null;for(;o===ri;)ri=Sn[--In],Sn[In]=null,Br=Sn[--In],Sn[In]=null,jr=Sn[--In],Sn[In]=null}var fn=null,hn=null,Ye=!1,Hn=null;function _g(o,s){var l=Pn(5,null,null,0);l.elementType="DELETED",l.stateNode=s,l.return=o,s=o.deletions,s===null?(o.deletions=[l],o.flags|=16):s.push(l)}function Pg(o,s){switch(o.tag){case 5:var l=o.type;return s=s.nodeType!==1||l.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(o.stateNode=s,fn=o,hn=lo(s.firstChild),!0):!1;case 6:return s=o.pendingProps===""||s.nodeType!==3?null:s,s!==null?(o.stateNode=s,fn=o,hn=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(l=ri!==null?{id:jr,overflow:Br}:null,o.memoizedState={dehydrated:s,treeContext:l,retryLane:1073741824},l=Pn(18,null,null,0),l.stateNode=s,l.return=o,o.child=l,fn=o,hn=null,!0):!1;default:return!1}}function Lf(o){return(o.mode&1)!==0&&(o.flags&128)===0}function Ff(o){if(Ye){var s=hn;if(s){var l=s;if(!Pg(o,s)){if(Lf(o))throw Error(n(418));s=lo(l.nextSibling);var h=fn;s&&Pg(o,s)?_g(h,l):(o.flags=o.flags&-4097|2,Ye=!1,fn=o)}}else{if(Lf(o))throw Error(n(418));o.flags=o.flags&-4097|2,Ye=!1,fn=o}}}function Tg(o){for(o=o.return;o!==null&&o.tag!==5&&o.tag!==3&&o.tag!==13;)o=o.return;fn=o}function Vl(o){if(o!==fn)return!1;if(!Ye)return Tg(o),Ye=!0,!1;var s;if((s=o.tag!==3)&&!(s=o.tag!==5)&&(s=o.type,s=s!=="head"&&s!=="body"&&!_f(o.type,o.memoizedProps)),s&&(s=hn)){if(Lf(o))throw Og(),Error(n(418));for(;s;)_g(o,s),s=lo(s.nextSibling)}if(Tg(o),o.tag===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(n(317));e:{for(o=o.nextSibling,s=0;o;){if(o.nodeType===8){var l=o.data;if(l==="/$"){if(s===0){hn=lo(o.nextSibling);break e}s--}else l!=="$"&&l!=="$!"&&l!=="$?"||s++}o=o.nextSibling}hn=null}}else hn=fn?lo(o.stateNode.nextSibling):null;return!0}function Og(){for(var o=hn;o;)o=lo(o.nextSibling)}function ls(){hn=fn=null,Ye=!1}function zf(o){Hn===null?Hn=[o]:Hn.push(o)}var o8=S.ReactCurrentBatchConfig;function Na(o,s,l){if(o=l.ref,o!==null&&typeof o!="function"&&typeof o!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(n(309));var h=l.stateNode}if(!h)throw Error(n(147,o));var v=h,x=""+o;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===x?s.ref:(s=function(B){var O=v.refs;B===null?delete O[x]:O[x]=B},s._stringRef=x,s)}if(typeof o!="string")throw Error(n(284));if(!l._owner)throw Error(n(290,o))}return o}function Ql(o,s){throw o=Object.prototype.toString.call(s),Error(n(31,o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o))}function Rg(o){var s=o._init;return s(o._payload)}function Ng(o){function s(q,U){if(o){var V=q.deletions;V===null?(q.deletions=[U],q.flags|=16):V.push(U)}}function l(q,U){if(!o)return null;for(;U!==null;)s(q,U),U=U.sibling;return null}function h(q,U){for(q=new Map;U!==null;)U.key!==null?q.set(U.key,U):q.set(U.index,U),U=U.sibling;return q}function v(q,U){return q=xo(q,U),q.index=0,q.sibling=null,q}function x(q,U,V){return q.index=V,o?(V=q.alternate,V!==null?(V=V.index,V<U?(q.flags|=2,U):V):(q.flags|=2,U)):(q.flags|=1048576,U)}function B(q){return o&&q.alternate===null&&(q.flags|=2),q}function O(q,U,V,ue){return U===null||U.tag!==6?(U=P0(V,q.mode,ue),U.return=q,U):(U=v(U,V),U.return=q,U)}function z(q,U,V,ue){var xe=V.type;return xe===_?ie(q,U,V.props.children,ue,V.key):U!==null&&(U.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===X&&Rg(xe)===U.type)?(ue=v(U,V.props),ue.ref=Na(q,U,V),ue.return=q,ue):(ue=yu(V.type,V.key,V.props,null,q.mode,ue),ue.ref=Na(q,U,V),ue.return=q,ue)}function K(q,U,V,ue){return U===null||U.tag!==4||U.stateNode.containerInfo!==V.containerInfo||U.stateNode.implementation!==V.implementation?(U=T0(V,q.mode,ue),U.return=q,U):(U=v(U,V.children||[]),U.return=q,U)}function ie(q,U,V,ue,xe){return U===null||U.tag!==7?(U=fi(V,q.mode,ue,xe),U.return=q,U):(U=v(U,V),U.return=q,U)}function se(q,U,V){if(typeof U=="string"&&U!==""||typeof U=="number")return U=P0(""+U,q.mode,V),U.return=q,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case j:return V=yu(U.type,U.key,U.props,null,q.mode,V),V.ref=Na(q,null,U),V.return=q,V;case P:return U=T0(U,q.mode,V),U.return=q,U;case X:var ue=U._init;return se(q,ue(U._payload),V)}if(Un(U)||J(U))return U=fi(U,q.mode,V,null),U.return=q,U;Ql(q,U)}return null}function re(q,U,V,ue){var xe=U!==null?U.key:null;if(typeof V=="string"&&V!==""||typeof V=="number")return xe!==null?null:O(q,U,""+V,ue);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case j:return V.key===xe?z(q,U,V,ue):null;case P:return V.key===xe?K(q,U,V,ue):null;case X:return xe=V._init,re(q,U,xe(V._payload),ue)}if(Un(V)||J(V))return xe!==null?null:ie(q,U,V,ue,null);Ql(q,V)}return null}function pe(q,U,V,ue,xe){if(typeof ue=="string"&&ue!==""||typeof ue=="number")return q=q.get(V)||null,O(U,q,""+ue,xe);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case j:return q=q.get(ue.key===null?V:ue.key)||null,z(U,q,ue,xe);case P:return q=q.get(ue.key===null?V:ue.key)||null,K(U,q,ue,xe);case X:var ke=ue._init;return pe(q,U,V,ke(ue._payload),xe)}if(Un(ue)||J(ue))return q=q.get(V)||null,ie(U,q,ue,xe,null);Ql(U,ue)}return null}function ye(q,U,V,ue){for(var xe=null,ke=null,Se=U,je=U=0,yt=null;Se!==null&&je<V.length;je++){Se.index>je?(yt=Se,Se=null):yt=Se.sibling;var Ue=re(q,Se,V[je],ue);if(Ue===null){Se===null&&(Se=yt);break}o&&Se&&Ue.alternate===null&&s(q,Se),U=x(Ue,U,je),ke===null?xe=Ue:ke.sibling=Ue,ke=Ue,Se=yt}if(je===V.length)return l(q,Se),Ye&&oi(q,je),xe;if(Se===null){for(;je<V.length;je++)Se=se(q,V[je],ue),Se!==null&&(U=x(Se,U,je),ke===null?xe=Se:ke.sibling=Se,ke=Se);return Ye&&oi(q,je),xe}for(Se=h(q,Se);je<V.length;je++)yt=pe(Se,q,je,V[je],ue),yt!==null&&(o&&yt.alternate!==null&&Se.delete(yt.key===null?je:yt.key),U=x(yt,U,je),ke===null?xe=yt:ke.sibling=yt,ke=yt);return o&&Se.forEach(function(Co){return s(q,Co)}),Ye&&oi(q,je),xe}function ve(q,U,V,ue){var xe=J(V);if(typeof xe!="function")throw Error(n(150));if(V=xe.call(V),V==null)throw Error(n(151));for(var ke=xe=null,Se=U,je=U=0,yt=null,Ue=V.next();Se!==null&&!Ue.done;je++,Ue=V.next()){Se.index>je?(yt=Se,Se=null):yt=Se.sibling;var Co=re(q,Se,Ue.value,ue);if(Co===null){Se===null&&(Se=yt);break}o&&Se&&Co.alternate===null&&s(q,Se),U=x(Co,U,je),ke===null?xe=Co:ke.sibling=Co,ke=Co,Se=yt}if(Ue.done)return l(q,Se),Ye&&oi(q,je),xe;if(Se===null){for(;!Ue.done;je++,Ue=V.next())Ue=se(q,Ue.value,ue),Ue!==null&&(U=x(Ue,U,je),ke===null?xe=Ue:ke.sibling=Ue,ke=Ue);return Ye&&oi(q,je),xe}for(Se=h(q,Se);!Ue.done;je++,Ue=V.next())Ue=pe(Se,q,je,Ue.value,ue),Ue!==null&&(o&&Ue.alternate!==null&&Se.delete(Ue.key===null?je:Ue.key),U=x(Ue,U,je),ke===null?xe=Ue:ke.sibling=Ue,ke=Ue);return o&&Se.forEach(function(D8){return s(q,D8)}),Ye&&oi(q,je),xe}function ot(q,U,V,ue){if(typeof V=="object"&&V!==null&&V.type===_&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case j:e:{for(var xe=V.key,ke=U;ke!==null;){if(ke.key===xe){if(xe=V.type,xe===_){if(ke.tag===7){l(q,ke.sibling),U=v(ke,V.props.children),U.return=q,q=U;break e}}else if(ke.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===X&&Rg(xe)===ke.type){l(q,ke.sibling),U=v(ke,V.props),U.ref=Na(q,ke,V),U.return=q,q=U;break e}l(q,ke);break}else s(q,ke);ke=ke.sibling}V.type===_?(U=fi(V.props.children,q.mode,ue,V.key),U.return=q,q=U):(ue=yu(V.type,V.key,V.props,null,q.mode,ue),ue.ref=Na(q,U,V),ue.return=q,q=ue)}return B(q);case P:e:{for(ke=V.key;U!==null;){if(U.key===ke)if(U.tag===4&&U.stateNode.containerInfo===V.containerInfo&&U.stateNode.implementation===V.implementation){l(q,U.sibling),U=v(U,V.children||[]),U.return=q,q=U;break e}else{l(q,U);break}else s(q,U);U=U.sibling}U=T0(V,q.mode,ue),U.return=q,q=U}return B(q);case X:return ke=V._init,ot(q,U,ke(V._payload),ue)}if(Un(V))return ye(q,U,V,ue);if(J(V))return ve(q,U,V,ue);Ql(q,V)}return typeof V=="string"&&V!==""||typeof V=="number"?(V=""+V,U!==null&&U.tag===6?(l(q,U.sibling),U=v(U,V),U.return=q,q=U):(l(q,U),U=P0(V,q.mode,ue),U.return=q,q=U),B(q)):l(q,U)}return ot}var us=Ng(!0),Mg=Ng(!1),Gl=uo(null),Kl=null,ds=null,Uf=null;function Wf(){Uf=ds=Kl=null}function $f(o){var s=Gl.current;Ke(Gl),o._currentValue=s}function qf(o,s,l){for(;o!==null;){var h=o.alternate;if((o.childLanes&s)!==s?(o.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),o===l)break;o=o.return}}function fs(o,s){Kl=o,Uf=ds=null,o=o.dependencies,o!==null&&o.firstContext!==null&&((o.lanes&s)!==0&&(Jt=!0),o.firstContext=null)}function jn(o){var s=o._currentValue;if(Uf!==o)if(o={context:o,memoizedValue:s,next:null},ds===null){if(Kl===null)throw Error(n(308));ds=o,Kl.dependencies={lanes:0,firstContext:o}}else ds=ds.next=o;return s}var ii=null;function Hf(o){ii===null?ii=[o]:ii.push(o)}function Dg(o,s,l,h){var v=s.interleaved;return v===null?(l.next=l,Hf(s)):(l.next=v.next,v.next=l),s.interleaved=l,_r(o,h)}function _r(o,s){o.lanes|=s;var l=o.alternate;for(l!==null&&(l.lanes|=s),l=o,o=o.return;o!==null;)o.childLanes|=s,l=o.alternate,l!==null&&(l.childLanes|=s),l=o,o=o.return;return l.tag===3?l.stateNode:null}var po=!1;function Vf(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Lg(o,s){o=o.updateQueue,s.updateQueue===o&&(s.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,effects:o.effects})}function Pr(o,s){return{eventTime:o,lane:s,tag:0,payload:null,callback:null,next:null}}function mo(o,s,l){var h=o.updateQueue;if(h===null)return null;if(h=h.shared,(ze&2)!==0){var v=h.pending;return v===null?s.next=s:(s.next=v.next,v.next=s),h.pending=s,_r(o,l)}return v=h.interleaved,v===null?(s.next=s,Hf(h)):(s.next=v.next,v.next=s),h.interleaved=s,_r(o,l)}function Yl(o,s,l){if(s=s.updateQueue,s!==null&&(s=s.shared,(l&4194240)!==0)){var h=s.lanes;h&=o.pendingLanes,l|=h,s.lanes=l,sf(o,l)}}function Fg(o,s){var l=o.updateQueue,h=o.alternate;if(h!==null&&(h=h.updateQueue,l===h)){var v=null,x=null;if(l=l.firstBaseUpdate,l!==null){do{var B={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};x===null?v=x=B:x=x.next=B,l=l.next}while(l!==null);x===null?v=x=s:x=x.next=s}else v=x=s;l={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:x,shared:h.shared,effects:h.effects},o.updateQueue=l;return}o=l.lastBaseUpdate,o===null?l.firstBaseUpdate=s:o.next=s,l.lastBaseUpdate=s}function Jl(o,s,l,h){var v=o.updateQueue;po=!1;var x=v.firstBaseUpdate,B=v.lastBaseUpdate,O=v.shared.pending;if(O!==null){v.shared.pending=null;var z=O,K=z.next;z.next=null,B===null?x=K:B.next=K,B=z;var ie=o.alternate;ie!==null&&(ie=ie.updateQueue,O=ie.lastBaseUpdate,O!==B&&(O===null?ie.firstBaseUpdate=K:O.next=K,ie.lastBaseUpdate=z))}if(x!==null){var se=v.baseState;B=0,ie=K=z=null,O=x;do{var re=O.lane,pe=O.eventTime;if((h&re)===re){ie!==null&&(ie=ie.next={eventTime:pe,lane:0,tag:O.tag,payload:O.payload,callback:O.callback,next:null});e:{var ye=o,ve=O;switch(re=s,pe=l,ve.tag){case 1:if(ye=ve.payload,typeof ye=="function"){se=ye.call(pe,se,re);break e}se=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=ve.payload,re=typeof ye=="function"?ye.call(pe,se,re):ye,re==null)break e;se=Y({},se,re);break e;case 2:po=!0}}O.callback!==null&&O.lane!==0&&(o.flags|=64,re=v.effects,re===null?v.effects=[O]:re.push(O))}else pe={eventTime:pe,lane:re,tag:O.tag,payload:O.payload,callback:O.callback,next:null},ie===null?(K=ie=pe,z=se):ie=ie.next=pe,B|=re;if(O=O.next,O===null){if(O=v.shared.pending,O===null)break;re=O,O=re.next,re.next=null,v.lastBaseUpdate=re,v.shared.pending=null}}while(!0);if(ie===null&&(z=se),v.baseState=z,v.firstBaseUpdate=K,v.lastBaseUpdate=ie,s=v.shared.interleaved,s!==null){v=s;do B|=v.lane,v=v.next;while(v!==s)}else x===null&&(v.shared.lanes=0);ci|=B,o.lanes=B,o.memoizedState=se}}function zg(o,s,l){if(o=s.effects,s.effects=null,o!==null)for(s=0;s<o.length;s++){var h=o[s],v=h.callback;if(v!==null){if(h.callback=null,h=l,typeof v!="function")throw Error(n(191,v));v.call(h)}}}var Ma={},lr=uo(Ma),Da=uo(Ma),La=uo(Ma);function si(o){if(o===Ma)throw Error(n(174));return o}function Qf(o,s){switch(Qe(La,s),Qe(Da,o),Qe(lr,Ma),o=s.nodeType,o){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:Ki(null,"");break;default:o=o===8?s.parentNode:s,s=o.namespaceURI||null,o=o.tagName,s=Ki(s,o)}Ke(lr),Qe(lr,s)}function hs(){Ke(lr),Ke(Da),Ke(La)}function Ug(o){si(La.current);var s=si(lr.current),l=Ki(s,o.type);s!==l&&(Qe(Da,o),Qe(lr,l))}function Gf(o){Da.current===o&&(Ke(lr),Ke(Da))}var Ze=uo(0);function Zl(o){for(var s=o;s!==null;){if(s.tag===13){var l=s.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Kf=[];function Yf(){for(var o=0;o<Kf.length;o++)Kf[o]._workInProgressVersionPrimary=null;Kf.length=0}var Xl=S.ReactCurrentDispatcher,Jf=S.ReactCurrentBatchConfig,ai=0,Xe=null,dt=null,mt=null,eu=!1,Fa=!1,za=0,i8=0;function Bt(){throw Error(n(321))}function Zf(o,s){if(s===null)return!1;for(var l=0;l<s.length&&l<o.length;l++)if(!qn(o[l],s[l]))return!1;return!0}function Xf(o,s,l,h,v,x){if(ai=x,Xe=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Xl.current=o===null||o.memoizedState===null?l8:u8,o=l(h,v),Fa){x=0;do{if(Fa=!1,za=0,25<=x)throw Error(n(301));x+=1,mt=dt=null,s.updateQueue=null,Xl.current=d8,o=l(h,v)}while(Fa)}if(Xl.current=ru,s=dt!==null&&dt.next!==null,ai=0,mt=dt=Xe=null,eu=!1,s)throw Error(n(300));return o}function e0(){var o=za!==0;return za=0,o}function ur(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?Xe.memoizedState=mt=o:mt=mt.next=o,mt}function Bn(){if(dt===null){var o=Xe.alternate;o=o!==null?o.memoizedState:null}else o=dt.next;var s=mt===null?Xe.memoizedState:mt.next;if(s!==null)mt=s,dt=o;else{if(o===null)throw Error(n(310));dt=o,o={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},mt===null?Xe.memoizedState=mt=o:mt=mt.next=o}return mt}function Ua(o,s){return typeof s=="function"?s(o):s}function t0(o){var s=Bn(),l=s.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=o;var h=dt,v=h.baseQueue,x=l.pending;if(x!==null){if(v!==null){var B=v.next;v.next=x.next,x.next=B}h.baseQueue=v=x,l.pending=null}if(v!==null){x=v.next,h=h.baseState;var O=B=null,z=null,K=x;do{var ie=K.lane;if((ai&ie)===ie)z!==null&&(z=z.next={lane:0,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),h=K.hasEagerState?K.eagerState:o(h,K.action);else{var se={lane:ie,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null};z===null?(O=z=se,B=h):z=z.next=se,Xe.lanes|=ie,ci|=ie}K=K.next}while(K!==null&&K!==x);z===null?B=h:z.next=O,qn(h,s.memoizedState)||(Jt=!0),s.memoizedState=h,s.baseState=B,s.baseQueue=z,l.lastRenderedState=h}if(o=l.interleaved,o!==null){v=o;do x=v.lane,Xe.lanes|=x,ci|=x,v=v.next;while(v!==o)}else v===null&&(l.lanes=0);return[s.memoizedState,l.dispatch]}function n0(o){var s=Bn(),l=s.queue;if(l===null)throw Error(n(311));l.lastRenderedReducer=o;var h=l.dispatch,v=l.pending,x=s.memoizedState;if(v!==null){l.pending=null;var B=v=v.next;do x=o(x,B.action),B=B.next;while(B!==v);qn(x,s.memoizedState)||(Jt=!0),s.memoizedState=x,s.baseQueue===null&&(s.baseState=x),l.lastRenderedState=x}return[x,h]}function Wg(){}function $g(o,s){var l=Xe,h=Bn(),v=s(),x=!qn(h.memoizedState,v);if(x&&(h.memoizedState=v,Jt=!0),h=h.queue,r0(Vg.bind(null,l,h,o),[o]),h.getSnapshot!==s||x||mt!==null&&mt.memoizedState.tag&1){if(l.flags|=2048,Wa(9,Hg.bind(null,l,h,v,s),void 0,null),gt===null)throw Error(n(349));(ai&30)!==0||qg(l,s,v)}return v}function qg(o,s,l){o.flags|=16384,o={getSnapshot:s,value:l},s=Xe.updateQueue,s===null?(s={lastEffect:null,stores:null},Xe.updateQueue=s,s.stores=[o]):(l=s.stores,l===null?s.stores=[o]:l.push(o))}function Hg(o,s,l,h){s.value=l,s.getSnapshot=h,Qg(s)&&Gg(o)}function Vg(o,s,l){return l(function(){Qg(s)&&Gg(o)})}function Qg(o){var s=o.getSnapshot;o=o.value;try{var l=s();return!qn(o,l)}catch{return!0}}function Gg(o){var s=_r(o,1);s!==null&&Kn(s,o,1,-1)}function Kg(o){var s=ur();return typeof o=="function"&&(o=o()),s.memoizedState=s.baseState=o,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ua,lastRenderedState:o},s.queue=o,o=o.dispatch=c8.bind(null,Xe,o),[s.memoizedState,o]}function Wa(o,s,l,h){return o={tag:o,create:s,destroy:l,deps:h,next:null},s=Xe.updateQueue,s===null?(s={lastEffect:null,stores:null},Xe.updateQueue=s,s.lastEffect=o.next=o):(l=s.lastEffect,l===null?s.lastEffect=o.next=o:(h=l.next,l.next=o,o.next=h,s.lastEffect=o)),o}function Yg(){return Bn().memoizedState}function tu(o,s,l,h){var v=ur();Xe.flags|=o,v.memoizedState=Wa(1|s,l,void 0,h===void 0?null:h)}function nu(o,s,l,h){var v=Bn();h=h===void 0?null:h;var x=void 0;if(dt!==null){var B=dt.memoizedState;if(x=B.destroy,h!==null&&Zf(h,B.deps)){v.memoizedState=Wa(s,l,x,h);return}}Xe.flags|=o,v.memoizedState=Wa(1|s,l,x,h)}function Jg(o,s){return tu(8390656,8,o,s)}function r0(o,s){return nu(2048,8,o,s)}function Zg(o,s){return nu(4,2,o,s)}function Xg(o,s){return nu(4,4,o,s)}function ey(o,s){if(typeof s=="function")return o=o(),s(o),function(){s(null)};if(s!=null)return o=o(),s.current=o,function(){s.current=null}}function ty(o,s,l){return l=l!=null?l.concat([o]):null,nu(4,4,ey.bind(null,s,o),l)}function o0(){}function ny(o,s){var l=Bn();s=s===void 0?null:s;var h=l.memoizedState;return h!==null&&s!==null&&Zf(s,h[1])?h[0]:(l.memoizedState=[o,s],o)}function ry(o,s){var l=Bn();s=s===void 0?null:s;var h=l.memoizedState;return h!==null&&s!==null&&Zf(s,h[1])?h[0]:(o=o(),l.memoizedState=[o,s],o)}function oy(o,s,l){return(ai&21)===0?(o.baseState&&(o.baseState=!1,Jt=!0),o.memoizedState=l):(qn(l,s)||(l=R1(),Xe.lanes|=l,ci|=l,o.baseState=!0),s)}function s8(o,s){var l=He;He=l!==0&&4>l?l:4,o(!0);var h=Jf.transition;Jf.transition={};try{o(!1),s()}finally{He=l,Jf.transition=h}}function iy(){return Bn().memoizedState}function a8(o,s,l){var h=wo(o);if(l={lane:h,action:l,hasEagerState:!1,eagerState:null,next:null},sy(o))ay(s,l);else if(l=Dg(o,s,l,h),l!==null){var v=Lt();Kn(l,o,h,v),cy(l,s,h)}}function c8(o,s,l){var h=wo(o),v={lane:h,action:l,hasEagerState:!1,eagerState:null,next:null};if(sy(o))ay(s,v);else{var x=o.alternate;if(o.lanes===0&&(x===null||x.lanes===0)&&(x=s.lastRenderedReducer,x!==null))try{var B=s.lastRenderedState,O=x(B,l);if(v.hasEagerState=!0,v.eagerState=O,qn(O,B)){var z=s.interleaved;z===null?(v.next=v,Hf(s)):(v.next=z.next,z.next=v),s.interleaved=v;return}}catch{}finally{}l=Dg(o,s,v,h),l!==null&&(v=Lt(),Kn(l,o,h,v),cy(l,s,h))}}function sy(o){var s=o.alternate;return o===Xe||s!==null&&s===Xe}function ay(o,s){Fa=eu=!0;var l=o.pending;l===null?s.next=s:(s.next=l.next,l.next=s),o.pending=s}function cy(o,s,l){if((l&4194240)!==0){var h=s.lanes;h&=o.pendingLanes,l|=h,s.lanes=l,sf(o,l)}}var ru={readContext:jn,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useInsertionEffect:Bt,useLayoutEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useMutableSource:Bt,useSyncExternalStore:Bt,useId:Bt,unstable_isNewReconciler:!1},l8={readContext:jn,useCallback:function(o,s){return ur().memoizedState=[o,s===void 0?null:s],o},useContext:jn,useEffect:Jg,useImperativeHandle:function(o,s,l){return l=l!=null?l.concat([o]):null,tu(4194308,4,ey.bind(null,s,o),l)},useLayoutEffect:function(o,s){return tu(4194308,4,o,s)},useInsertionEffect:function(o,s){return tu(4,2,o,s)},useMemo:function(o,s){var l=ur();return s=s===void 0?null:s,o=o(),l.memoizedState=[o,s],o},useReducer:function(o,s,l){var h=ur();return s=l!==void 0?l(s):s,h.memoizedState=h.baseState=s,o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:s},h.queue=o,o=o.dispatch=a8.bind(null,Xe,o),[h.memoizedState,o]},useRef:function(o){var s=ur();return o={current:o},s.memoizedState=o},useState:Kg,useDebugValue:o0,useDeferredValue:function(o){return ur().memoizedState=o},useTransition:function(){var o=Kg(!1),s=o[0];return o=s8.bind(null,o[1]),ur().memoizedState=o,[s,o]},useMutableSource:function(){},useSyncExternalStore:function(o,s,l){var h=Xe,v=ur();if(Ye){if(l===void 0)throw Error(n(407));l=l()}else{if(l=s(),gt===null)throw Error(n(349));(ai&30)!==0||qg(h,s,l)}v.memoizedState=l;var x={value:l,getSnapshot:s};return v.queue=x,Jg(Vg.bind(null,h,x,o),[o]),h.flags|=2048,Wa(9,Hg.bind(null,h,x,l,s),void 0,null),l},useId:function(){var o=ur(),s=gt.identifierPrefix;if(Ye){var l=Br,h=jr;l=(h&~(1<<32-$n(h)-1)).toString(32)+l,s=":"+s+"R"+l,l=za++,0<l&&(s+="H"+l.toString(32)),s+=":"}else l=i8++,s=":"+s+"r"+l.toString(32)+":";return o.memoizedState=s},unstable_isNewReconciler:!1},u8={readContext:jn,useCallback:ny,useContext:jn,useEffect:r0,useImperativeHandle:ty,useInsertionEffect:Zg,useLayoutEffect:Xg,useMemo:ry,useReducer:t0,useRef:Yg,useState:function(){return t0(Ua)},useDebugValue:o0,useDeferredValue:function(o){var s=Bn();return oy(s,dt.memoizedState,o)},useTransition:function(){var o=t0(Ua)[0],s=Bn().memoizedState;return[o,s]},useMutableSource:Wg,useSyncExternalStore:$g,useId:iy,unstable_isNewReconciler:!1},d8={readContext:jn,useCallback:ny,useContext:jn,useEffect:r0,useImperativeHandle:ty,useInsertionEffect:Zg,useLayoutEffect:Xg,useMemo:ry,useReducer:n0,useRef:Yg,useState:function(){return n0(Ua)},useDebugValue:o0,useDeferredValue:function(o){var s=Bn();return dt===null?s.memoizedState=o:oy(s,dt.memoizedState,o)},useTransition:function(){var o=n0(Ua)[0],s=Bn().memoizedState;return[o,s]},useMutableSource:Wg,useSyncExternalStore:$g,useId:iy,unstable_isNewReconciler:!1};function Vn(o,s){if(o&&o.defaultProps){s=Y({},s),o=o.defaultProps;for(var l in o)s[l]===void 0&&(s[l]=o[l]);return s}return s}function i0(o,s,l,h){s=o.memoizedState,l=l(h,s),l=l==null?s:Y({},s,l),o.memoizedState=l,o.lanes===0&&(o.updateQueue.baseState=l)}var ou={isMounted:function(o){return(o=o._reactInternals)?ei(o)===o:!1},enqueueSetState:function(o,s,l){o=o._reactInternals;var h=Lt(),v=wo(o),x=Pr(h,v);x.payload=s,l!=null&&(x.callback=l),s=mo(o,x,v),s!==null&&(Kn(s,o,v,h),Yl(s,o,v))},enqueueReplaceState:function(o,s,l){o=o._reactInternals;var h=Lt(),v=wo(o),x=Pr(h,v);x.tag=1,x.payload=s,l!=null&&(x.callback=l),s=mo(o,x,v),s!==null&&(Kn(s,o,v,h),Yl(s,o,v))},enqueueForceUpdate:function(o,s){o=o._reactInternals;var l=Lt(),h=wo(o),v=Pr(l,h);v.tag=2,s!=null&&(v.callback=s),s=mo(o,v,h),s!==null&&(Kn(s,o,h,l),Yl(s,o,h))}};function ly(o,s,l,h,v,x,B){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(h,x,B):s.prototype&&s.prototype.isPureReactComponent?!ja(l,h)||!ja(v,x):!0}function uy(o,s,l){var h=!1,v=fo,x=s.contextType;return typeof x=="object"&&x!==null?x=jn(x):(v=Yt(s)?ni:jt.current,h=s.contextTypes,x=(h=h!=null)?ss(o,v):fo),s=new s(l,x),o.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=ou,o.stateNode=s,s._reactInternals=o,h&&(o=o.stateNode,o.__reactInternalMemoizedUnmaskedChildContext=v,o.__reactInternalMemoizedMaskedChildContext=x),s}function dy(o,s,l,h){o=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(l,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(l,h),s.state!==o&&ou.enqueueReplaceState(s,s.state,null)}function s0(o,s,l,h){var v=o.stateNode;v.props=l,v.state=o.memoizedState,v.refs={},Vf(o);var x=s.contextType;typeof x=="object"&&x!==null?v.context=jn(x):(x=Yt(s)?ni:jt.current,v.context=ss(o,x)),v.state=o.memoizedState,x=s.getDerivedStateFromProps,typeof x=="function"&&(i0(o,s,x,l),v.state=o.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(s=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),s!==v.state&&ou.enqueueReplaceState(v,v.state,null),Jl(o,l,v,h),v.state=o.memoizedState),typeof v.componentDidMount=="function"&&(o.flags|=4194308)}function ps(o,s){try{var l="",h=s;do l+=ce(h),h=h.return;while(h);var v=l}catch(x){v=`
40
+ Error generating stack: `+x.message+`
41
+ `+x.stack}return{value:o,source:s,stack:v,digest:null}}function a0(o,s,l){return{value:o,source:null,stack:l??null,digest:s??null}}function c0(o,s){try{console.error(s.value)}catch(l){setTimeout(function(){throw l})}}var f8=typeof WeakMap=="function"?WeakMap:Map;function fy(o,s,l){l=Pr(-1,l),l.tag=3,l.payload={element:null};var h=s.value;return l.callback=function(){du||(du=!0,E0=h),c0(o,s)},l}function hy(o,s,l){l=Pr(-1,l),l.tag=3;var h=o.type.getDerivedStateFromError;if(typeof h=="function"){var v=s.value;l.payload=function(){return h(v)},l.callback=function(){c0(o,s)}}var x=o.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(l.callback=function(){c0(o,s),typeof h!="function"&&(yo===null?yo=new Set([this]):yo.add(this));var B=s.stack;this.componentDidCatch(s.value,{componentStack:B!==null?B:""})}),l}function py(o,s,l){var h=o.pingCache;if(h===null){h=o.pingCache=new f8;var v=new Set;h.set(s,v)}else v=h.get(s),v===void 0&&(v=new Set,h.set(s,v));v.has(l)||(v.add(l),o=S8.bind(null,o,s,l),s.then(o,o))}function my(o){do{var s;if((s=o.tag===13)&&(s=o.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return o;o=o.return}while(o!==null);return null}function gy(o,s,l,h,v){return(o.mode&1)===0?(o===s?o.flags|=65536:(o.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(s=Pr(-1,1),s.tag=2,mo(l,s,1))),l.lanes|=1),o):(o.flags|=65536,o.lanes=v,o)}var h8=S.ReactCurrentOwner,Jt=!1;function Dt(o,s,l,h){s.child=o===null?Mg(s,null,l,h):us(s,o.child,l,h)}function yy(o,s,l,h,v){l=l.render;var x=s.ref;return fs(s,v),h=Xf(o,s,l,h,x,v),l=e0(),o!==null&&!Jt?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~v,Tr(o,s,v)):(Ye&&l&&Mf(s),s.flags|=1,Dt(o,s,h,v),s.child)}function vy(o,s,l,h,v){if(o===null){var x=l.type;return typeof x=="function"&&!_0(x)&&x.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(s.tag=15,s.type=x,wy(o,s,x,h,v)):(o=yu(l.type,null,h,s,s.mode,v),o.ref=s.ref,o.return=s,s.child=o)}if(x=o.child,(o.lanes&v)===0){var B=x.memoizedProps;if(l=l.compare,l=l!==null?l:ja,l(B,h)&&o.ref===s.ref)return Tr(o,s,v)}return s.flags|=1,o=xo(x,h),o.ref=s.ref,o.return=s,s.child=o}function wy(o,s,l,h,v){if(o!==null){var x=o.memoizedProps;if(ja(x,h)&&o.ref===s.ref)if(Jt=!1,s.pendingProps=h=x,(o.lanes&v)!==0)(o.flags&131072)!==0&&(Jt=!0);else return s.lanes=o.lanes,Tr(o,s,v)}return l0(o,s,l,h,v)}function by(o,s,l){var h=s.pendingProps,v=h.children,x=o!==null?o.memoizedState:null;if(h.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},Qe(gs,pn),pn|=l;else{if((l&1073741824)===0)return o=x!==null?x.baseLanes|l:l,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:o,cachePool:null,transitions:null},s.updateQueue=null,Qe(gs,pn),pn|=o,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=x!==null?x.baseLanes:l,Qe(gs,pn),pn|=h}else x!==null?(h=x.baseLanes|l,s.memoizedState=null):h=l,Qe(gs,pn),pn|=h;return Dt(o,s,v,l),s.child}function xy(o,s){var l=s.ref;(o===null&&l!==null||o!==null&&o.ref!==l)&&(s.flags|=512,s.flags|=2097152)}function l0(o,s,l,h,v){var x=Yt(l)?ni:jt.current;return x=ss(s,x),fs(s,v),l=Xf(o,s,l,h,x,v),h=e0(),o!==null&&!Jt?(s.updateQueue=o.updateQueue,s.flags&=-2053,o.lanes&=~v,Tr(o,s,v)):(Ye&&h&&Mf(s),s.flags|=1,Dt(o,s,l,v),s.child)}function Cy(o,s,l,h,v){if(Yt(l)){var x=!0;Wl(s)}else x=!1;if(fs(s,v),s.stateNode===null)su(o,s),uy(s,l,h),s0(s,l,h,v),h=!0;else if(o===null){var B=s.stateNode,O=s.memoizedProps;B.props=O;var z=B.context,K=l.contextType;typeof K=="object"&&K!==null?K=jn(K):(K=Yt(l)?ni:jt.current,K=ss(s,K));var ie=l.getDerivedStateFromProps,se=typeof ie=="function"||typeof B.getSnapshotBeforeUpdate=="function";se||typeof B.UNSAFE_componentWillReceiveProps!="function"&&typeof B.componentWillReceiveProps!="function"||(O!==h||z!==K)&&dy(s,B,h,K),po=!1;var re=s.memoizedState;B.state=re,Jl(s,h,B,v),z=s.memoizedState,O!==h||re!==z||Kt.current||po?(typeof ie=="function"&&(i0(s,l,ie,h),z=s.memoizedState),(O=po||ly(s,l,O,h,re,z,K))?(se||typeof B.UNSAFE_componentWillMount!="function"&&typeof B.componentWillMount!="function"||(typeof B.componentWillMount=="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount=="function"&&B.UNSAFE_componentWillMount()),typeof B.componentDidMount=="function"&&(s.flags|=4194308)):(typeof B.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=z),B.props=h,B.state=z,B.context=K,h=O):(typeof B.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{B=s.stateNode,Lg(o,s),O=s.memoizedProps,K=s.type===s.elementType?O:Vn(s.type,O),B.props=K,se=s.pendingProps,re=B.context,z=l.contextType,typeof z=="object"&&z!==null?z=jn(z):(z=Yt(l)?ni:jt.current,z=ss(s,z));var pe=l.getDerivedStateFromProps;(ie=typeof pe=="function"||typeof B.getSnapshotBeforeUpdate=="function")||typeof B.UNSAFE_componentWillReceiveProps!="function"&&typeof B.componentWillReceiveProps!="function"||(O!==se||re!==z)&&dy(s,B,h,z),po=!1,re=s.memoizedState,B.state=re,Jl(s,h,B,v);var ye=s.memoizedState;O!==se||re!==ye||Kt.current||po?(typeof pe=="function"&&(i0(s,l,pe,h),ye=s.memoizedState),(K=po||ly(s,l,K,h,re,ye,z)||!1)?(ie||typeof B.UNSAFE_componentWillUpdate!="function"&&typeof B.componentWillUpdate!="function"||(typeof B.componentWillUpdate=="function"&&B.componentWillUpdate(h,ye,z),typeof B.UNSAFE_componentWillUpdate=="function"&&B.UNSAFE_componentWillUpdate(h,ye,z)),typeof B.componentDidUpdate=="function"&&(s.flags|=4),typeof B.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof B.componentDidUpdate!="function"||O===o.memoizedProps&&re===o.memoizedState||(s.flags|=4),typeof B.getSnapshotBeforeUpdate!="function"||O===o.memoizedProps&&re===o.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=ye),B.props=h,B.state=ye,B.context=z,h=K):(typeof B.componentDidUpdate!="function"||O===o.memoizedProps&&re===o.memoizedState||(s.flags|=4),typeof B.getSnapshotBeforeUpdate!="function"||O===o.memoizedProps&&re===o.memoizedState||(s.flags|=1024),h=!1)}return u0(o,s,l,h,x,v)}function u0(o,s,l,h,v,x){xy(o,s);var B=(s.flags&128)!==0;if(!h&&!B)return v&&Ig(s,l,!1),Tr(o,s,x);h=s.stateNode,h8.current=s;var O=B&&typeof l.getDerivedStateFromError!="function"?null:h.render();return s.flags|=1,o!==null&&B?(s.child=us(s,o.child,null,x),s.child=us(s,null,O,x)):Dt(o,s,O,x),s.memoizedState=h.state,v&&Ig(s,l,!0),s.child}function Ey(o){var s=o.stateNode;s.pendingContext?kg(o,s.pendingContext,s.pendingContext!==s.context):s.context&&kg(o,s.context,!1),Qf(o,s.containerInfo)}function Ay(o,s,l,h,v){return ls(),zf(v),s.flags|=256,Dt(o,s,l,h),s.child}var d0={dehydrated:null,treeContext:null,retryLane:0};function f0(o){return{baseLanes:o,cachePool:null,transitions:null}}function ky(o,s,l){var h=s.pendingProps,v=Ze.current,x=!1,B=(s.flags&128)!==0,O;if((O=B)||(O=o!==null&&o.memoizedState===null?!1:(v&2)!==0),O?(x=!0,s.flags&=-129):(o===null||o.memoizedState!==null)&&(v|=1),Qe(Ze,v&1),o===null)return Ff(s),o=s.memoizedState,o!==null&&(o=o.dehydrated,o!==null)?((s.mode&1)===0?s.lanes=1:o.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(B=h.children,o=h.fallback,x?(h=s.mode,x=s.child,B={mode:"hidden",children:B},(h&1)===0&&x!==null?(x.childLanes=0,x.pendingProps=B):x=vu(B,h,0,null),o=fi(o,h,l,null),x.return=s,o.return=s,x.sibling=o,s.child=x,s.child.memoizedState=f0(l),s.memoizedState=d0,o):h0(s,B));if(v=o.memoizedState,v!==null&&(O=v.dehydrated,O!==null))return p8(o,s,B,h,O,v,l);if(x){x=h.fallback,B=s.mode,v=o.child,O=v.sibling;var z={mode:"hidden",children:h.children};return(B&1)===0&&s.child!==v?(h=s.child,h.childLanes=0,h.pendingProps=z,s.deletions=null):(h=xo(v,z),h.subtreeFlags=v.subtreeFlags&14680064),O!==null?x=xo(O,x):(x=fi(x,B,l,null),x.flags|=2),x.return=s,h.return=s,h.sibling=x,s.child=h,h=x,x=s.child,B=o.child.memoizedState,B=B===null?f0(l):{baseLanes:B.baseLanes|l,cachePool:null,transitions:B.transitions},x.memoizedState=B,x.childLanes=o.childLanes&~l,s.memoizedState=d0,h}return x=o.child,o=x.sibling,h=xo(x,{mode:"visible",children:h.children}),(s.mode&1)===0&&(h.lanes=l),h.return=s,h.sibling=null,o!==null&&(l=s.deletions,l===null?(s.deletions=[o],s.flags|=16):l.push(o)),s.child=h,s.memoizedState=null,h}function h0(o,s){return s=vu({mode:"visible",children:s},o.mode,0,null),s.return=o,o.child=s}function iu(o,s,l,h){return h!==null&&zf(h),us(s,o.child,null,l),o=h0(s,s.pendingProps.children),o.flags|=2,s.memoizedState=null,o}function p8(o,s,l,h,v,x,B){if(l)return s.flags&256?(s.flags&=-257,h=a0(Error(n(422))),iu(o,s,B,h)):s.memoizedState!==null?(s.child=o.child,s.flags|=128,null):(x=h.fallback,v=s.mode,h=vu({mode:"visible",children:h.children},v,0,null),x=fi(x,v,B,null),x.flags|=2,h.return=s,x.return=s,h.sibling=x,s.child=h,(s.mode&1)!==0&&us(s,o.child,null,B),s.child.memoizedState=f0(B),s.memoizedState=d0,x);if((s.mode&1)===0)return iu(o,s,B,null);if(v.data==="$!"){if(h=v.nextSibling&&v.nextSibling.dataset,h)var O=h.dgst;return h=O,x=Error(n(419)),h=a0(x,h,void 0),iu(o,s,B,h)}if(O=(B&o.childLanes)!==0,Jt||O){if(h=gt,h!==null){switch(B&-B){case 4:v=2;break;case 16:v=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:v=32;break;case 536870912:v=268435456;break;default:v=0}v=(v&(h.suspendedLanes|B))!==0?0:v,v!==0&&v!==x.retryLane&&(x.retryLane=v,_r(o,v),Kn(h,o,v,-1))}return B0(),h=a0(Error(n(421))),iu(o,s,B,h)}return v.data==="$?"?(s.flags|=128,s.child=o.child,s=I8.bind(null,o),v._reactRetry=s,null):(o=x.treeContext,hn=lo(v.nextSibling),fn=s,Ye=!0,Hn=null,o!==null&&(Sn[In++]=jr,Sn[In++]=Br,Sn[In++]=ri,jr=o.id,Br=o.overflow,ri=s),s=h0(s,h.children),s.flags|=4096,s)}function Sy(o,s,l){o.lanes|=s;var h=o.alternate;h!==null&&(h.lanes|=s),qf(o.return,s,l)}function p0(o,s,l,h,v){var x=o.memoizedState;x===null?o.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:l,tailMode:v}:(x.isBackwards=s,x.rendering=null,x.renderingStartTime=0,x.last=h,x.tail=l,x.tailMode=v)}function Iy(o,s,l){var h=s.pendingProps,v=h.revealOrder,x=h.tail;if(Dt(o,s,h.children,l),h=Ze.current,(h&2)!==0)h=h&1|2,s.flags|=128;else{if(o!==null&&(o.flags&128)!==0)e:for(o=s.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&Sy(o,l,s);else if(o.tag===19)Sy(o,l,s);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}h&=1}if(Qe(Ze,h),(s.mode&1)===0)s.memoizedState=null;else switch(v){case"forwards":for(l=s.child,v=null;l!==null;)o=l.alternate,o!==null&&Zl(o)===null&&(v=l),l=l.sibling;l=v,l===null?(v=s.child,s.child=null):(v=l.sibling,l.sibling=null),p0(s,!1,v,l,x);break;case"backwards":for(l=null,v=s.child,s.child=null;v!==null;){if(o=v.alternate,o!==null&&Zl(o)===null){s.child=v;break}o=v.sibling,v.sibling=l,l=v,v=o}p0(s,!0,l,null,x);break;case"together":p0(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function su(o,s){(s.mode&1)===0&&o!==null&&(o.alternate=null,s.alternate=null,s.flags|=2)}function Tr(o,s,l){if(o!==null&&(s.dependencies=o.dependencies),ci|=s.lanes,(l&s.childLanes)===0)return null;if(o!==null&&s.child!==o.child)throw Error(n(153));if(s.child!==null){for(o=s.child,l=xo(o,o.pendingProps),s.child=l,l.return=s;o.sibling!==null;)o=o.sibling,l=l.sibling=xo(o,o.pendingProps),l.return=s;l.sibling=null}return s.child}function m8(o,s,l){switch(s.tag){case 3:Ey(s),ls();break;case 5:Ug(s);break;case 1:Yt(s.type)&&Wl(s);break;case 4:Qf(s,s.stateNode.containerInfo);break;case 10:var h=s.type._context,v=s.memoizedProps.value;Qe(Gl,h._currentValue),h._currentValue=v;break;case 13:if(h=s.memoizedState,h!==null)return h.dehydrated!==null?(Qe(Ze,Ze.current&1),s.flags|=128,null):(l&s.child.childLanes)!==0?ky(o,s,l):(Qe(Ze,Ze.current&1),o=Tr(o,s,l),o!==null?o.sibling:null);Qe(Ze,Ze.current&1);break;case 19:if(h=(l&s.childLanes)!==0,(o.flags&128)!==0){if(h)return Iy(o,s,l);s.flags|=128}if(v=s.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),Qe(Ze,Ze.current),h)break;return null;case 22:case 23:return s.lanes=0,by(o,s,l)}return Tr(o,s,l)}var jy,m0,By,_y;jy=function(o,s){for(var l=s.child;l!==null;){if(l.tag===5||l.tag===6)o.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break;for(;l.sibling===null;){if(l.return===null||l.return===s)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},m0=function(){},By=function(o,s,l,h){var v=o.memoizedProps;if(v!==h){o=s.stateNode,si(lr.current);var x=null;switch(l){case"input":v=An(o,v),h=An(o,h),x=[];break;case"select":v=Y({},v,{value:void 0}),h=Y({},h,{value:void 0}),x=[];break;case"textarea":v=Zo(o,v),h=Zo(o,h),x=[];break;default:typeof v.onClick!="function"&&typeof h.onClick=="function"&&(o.onclick=Fl)}Qt(l,h);var B;l=null;for(K in v)if(!h.hasOwnProperty(K)&&v.hasOwnProperty(K)&&v[K]!=null)if(K==="style"){var O=v[K];for(B in O)O.hasOwnProperty(B)&&(l||(l={}),l[B]="")}else K!=="dangerouslySetInnerHTML"&&K!=="children"&&K!=="suppressContentEditableWarning"&&K!=="suppressHydrationWarning"&&K!=="autoFocus"&&(i.hasOwnProperty(K)?x||(x=[]):(x=x||[]).push(K,null));for(K in h){var z=h[K];if(O=v!=null?v[K]:void 0,h.hasOwnProperty(K)&&z!==O&&(z!=null||O!=null))if(K==="style")if(O){for(B in O)!O.hasOwnProperty(B)||z&&z.hasOwnProperty(B)||(l||(l={}),l[B]="");for(B in z)z.hasOwnProperty(B)&&O[B]!==z[B]&&(l||(l={}),l[B]=z[B])}else l||(x||(x=[]),x.push(K,l)),l=z;else K==="dangerouslySetInnerHTML"?(z=z?z.__html:void 0,O=O?O.__html:void 0,z!=null&&O!==z&&(x=x||[]).push(K,z)):K==="children"?typeof z!="string"&&typeof z!="number"||(x=x||[]).push(K,""+z):K!=="suppressContentEditableWarning"&&K!=="suppressHydrationWarning"&&(i.hasOwnProperty(K)?(z!=null&&K==="onScroll"&&Ge("scroll",o),x||O===z||(x=[])):(x=x||[]).push(K,z))}l&&(x=x||[]).push("style",l);var K=x;(s.updateQueue=K)&&(s.flags|=4)}},_y=function(o,s,l,h){l!==h&&(s.flags|=4)};function $a(o,s){if(!Ye)switch(o.tailMode){case"hidden":s=o.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?o.tail=null:l.sibling=null;break;case"collapsed":l=o.tail;for(var h=null;l!==null;)l.alternate!==null&&(h=l),l=l.sibling;h===null?s||o.tail===null?o.tail=null:o.tail.sibling=null:h.sibling=null}}function _t(o){var s=o.alternate!==null&&o.alternate.child===o.child,l=0,h=0;if(s)for(var v=o.child;v!==null;)l|=v.lanes|v.childLanes,h|=v.subtreeFlags&14680064,h|=v.flags&14680064,v.return=o,v=v.sibling;else for(v=o.child;v!==null;)l|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=o,v=v.sibling;return o.subtreeFlags|=h,o.childLanes=l,s}function g8(o,s,l){var h=s.pendingProps;switch(Df(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(s),null;case 1:return Yt(s.type)&&Ul(),_t(s),null;case 3:return h=s.stateNode,hs(),Ke(Kt),Ke(jt),Yf(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(o===null||o.child===null)&&(Vl(s)?s.flags|=4:o===null||o.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Hn!==null&&(S0(Hn),Hn=null))),m0(o,s),_t(s),null;case 5:Gf(s);var v=si(La.current);if(l=s.type,o!==null&&s.stateNode!=null)By(o,s,l,h,v),o.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!h){if(s.stateNode===null)throw Error(n(166));return _t(s),null}if(o=si(lr.current),Vl(s)){h=s.stateNode,l=s.type;var x=s.memoizedProps;switch(h[cr]=s,h[Oa]=x,o=(s.mode&1)!==0,l){case"dialog":Ge("cancel",h),Ge("close",h);break;case"iframe":case"object":case"embed":Ge("load",h);break;case"video":case"audio":for(v=0;v<_a.length;v++)Ge(_a[v],h);break;case"source":Ge("error",h);break;case"img":case"image":case"link":Ge("error",h),Ge("load",h);break;case"details":Ge("toggle",h);break;case"input":zn(h,x),Ge("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!x.multiple},Ge("invalid",h);break;case"textarea":to(h,x),Ge("invalid",h)}Qt(l,x),v=null;for(var B in x)if(x.hasOwnProperty(B)){var O=x[B];B==="children"?typeof O=="string"?h.textContent!==O&&(x.suppressHydrationWarning!==!0&&Ll(h.textContent,O,o),v=["children",O]):typeof O=="number"&&h.textContent!==""+O&&(x.suppressHydrationWarning!==!0&&Ll(h.textContent,O,o),v=["children",""+O]):i.hasOwnProperty(B)&&O!=null&&B==="onScroll"&&Ge("scroll",h)}switch(l){case"input":Cn(h),Jo(h,x,!0);break;case"textarea":Cn(h),yl(h);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(h.onclick=Fl)}h=v,s.updateQueue=h,h!==null&&(s.flags|=4)}else{B=v.nodeType===9?v:v.ownerDocument,o==="http://www.w3.org/1999/xhtml"&&(o=fa(l)),o==="http://www.w3.org/1999/xhtml"?l==="script"?(o=B.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild)):typeof h.is=="string"?o=B.createElement(l,{is:h.is}):(o=B.createElement(l),l==="select"&&(B=o,h.multiple?B.multiple=!0:h.size&&(B.size=h.size))):o=B.createElementNS(o,l),o[cr]=s,o[Oa]=h,jy(o,s,!1,!1),s.stateNode=o;e:{switch(B=Le(l,h),l){case"dialog":Ge("cancel",o),Ge("close",o),v=h;break;case"iframe":case"object":case"embed":Ge("load",o),v=h;break;case"video":case"audio":for(v=0;v<_a.length;v++)Ge(_a[v],o);v=h;break;case"source":Ge("error",o),v=h;break;case"img":case"image":case"link":Ge("error",o),Ge("load",o),v=h;break;case"details":Ge("toggle",o),v=h;break;case"input":zn(o,h),v=An(o,h),Ge("invalid",o);break;case"option":v=h;break;case"select":o._wrapperState={wasMultiple:!!h.multiple},v=Y({},h,{value:void 0}),Ge("invalid",o);break;case"textarea":to(o,h),v=Zo(o,h),Ge("invalid",o);break;default:v=h}Qt(l,v),O=v;for(x in O)if(O.hasOwnProperty(x)){var z=O[x];x==="style"?qe(o,z):x==="dangerouslySetInnerHTML"?(z=z?z.__html:void 0,z!=null&&Ar(o,z)):x==="children"?typeof z=="string"?(l!=="textarea"||z!=="")&&sr(o,z):typeof z=="number"&&sr(o,""+z):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(i.hasOwnProperty(x)?z!=null&&x==="onScroll"&&Ge("scroll",o):z!=null&&k(o,x,z,B))}switch(l){case"input":Cn(o),Jo(o,h,!1);break;case"textarea":Cn(o),yl(o);break;case"option":h.value!=null&&o.setAttribute("value",""+_e(h.value));break;case"select":o.multiple=!!h.multiple,x=h.value,x!=null?eo(o,!!h.multiple,x,!1):h.defaultValue!=null&&eo(o,!!h.multiple,h.defaultValue,!0);break;default:typeof v.onClick=="function"&&(o.onclick=Fl)}switch(l){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return _t(s),null;case 6:if(o&&s.stateNode!=null)_y(o,s,o.memoizedProps,h);else{if(typeof h!="string"&&s.stateNode===null)throw Error(n(166));if(l=si(La.current),si(lr.current),Vl(s)){if(h=s.stateNode,l=s.memoizedProps,h[cr]=s,(x=h.nodeValue!==l)&&(o=fn,o!==null))switch(o.tag){case 3:Ll(h.nodeValue,l,(o.mode&1)!==0);break;case 5:o.memoizedProps.suppressHydrationWarning!==!0&&Ll(h.nodeValue,l,(o.mode&1)!==0)}x&&(s.flags|=4)}else h=(l.nodeType===9?l:l.ownerDocument).createTextNode(h),h[cr]=s,s.stateNode=h}return _t(s),null;case 13:if(Ke(Ze),h=s.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(Ye&&hn!==null&&(s.mode&1)!==0&&(s.flags&128)===0)Og(),ls(),s.flags|=98560,x=!1;else if(x=Vl(s),h!==null&&h.dehydrated!==null){if(o===null){if(!x)throw Error(n(318));if(x=s.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(n(317));x[cr]=s}else ls(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;_t(s),x=!1}else Hn!==null&&(S0(Hn),Hn=null),x=!0;if(!x)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=l,s):(h=h!==null,h!==(o!==null&&o.memoizedState!==null)&&h&&(s.child.flags|=8192,(s.mode&1)!==0&&(o===null||(Ze.current&1)!==0?ft===0&&(ft=3):B0())),s.updateQueue!==null&&(s.flags|=4),_t(s),null);case 4:return hs(),m0(o,s),o===null&&Pa(s.stateNode.containerInfo),_t(s),null;case 10:return $f(s.type._context),_t(s),null;case 17:return Yt(s.type)&&Ul(),_t(s),null;case 19:if(Ke(Ze),x=s.memoizedState,x===null)return _t(s),null;if(h=(s.flags&128)!==0,B=x.rendering,B===null)if(h)$a(x,!1);else{if(ft!==0||o!==null&&(o.flags&128)!==0)for(o=s.child;o!==null;){if(B=Zl(o),B!==null){for(s.flags|=128,$a(x,!1),h=B.updateQueue,h!==null&&(s.updateQueue=h,s.flags|=4),s.subtreeFlags=0,h=l,l=s.child;l!==null;)x=l,o=h,x.flags&=14680066,B=x.alternate,B===null?(x.childLanes=0,x.lanes=o,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=B.childLanes,x.lanes=B.lanes,x.child=B.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=B.memoizedProps,x.memoizedState=B.memoizedState,x.updateQueue=B.updateQueue,x.type=B.type,o=B.dependencies,x.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),l=l.sibling;return Qe(Ze,Ze.current&1|2),s.child}o=o.sibling}x.tail!==null&&rt()>ys&&(s.flags|=128,h=!0,$a(x,!1),s.lanes=4194304)}else{if(!h)if(o=Zl(B),o!==null){if(s.flags|=128,h=!0,l=o.updateQueue,l!==null&&(s.updateQueue=l,s.flags|=4),$a(x,!0),x.tail===null&&x.tailMode==="hidden"&&!B.alternate&&!Ye)return _t(s),null}else 2*rt()-x.renderingStartTime>ys&&l!==1073741824&&(s.flags|=128,h=!0,$a(x,!1),s.lanes=4194304);x.isBackwards?(B.sibling=s.child,s.child=B):(l=x.last,l!==null?l.sibling=B:s.child=B,x.last=B)}return x.tail!==null?(s=x.tail,x.rendering=s,x.tail=s.sibling,x.renderingStartTime=rt(),s.sibling=null,l=Ze.current,Qe(Ze,h?l&1|2:l&1),s):(_t(s),null);case 22:case 23:return j0(),h=s.memoizedState!==null,o!==null&&o.memoizedState!==null!==h&&(s.flags|=8192),h&&(s.mode&1)!==0?(pn&1073741824)!==0&&(_t(s),s.subtreeFlags&6&&(s.flags|=8192)):_t(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function y8(o,s){switch(Df(s),s.tag){case 1:return Yt(s.type)&&Ul(),o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 3:return hs(),Ke(Kt),Ke(jt),Yf(),o=s.flags,(o&65536)!==0&&(o&128)===0?(s.flags=o&-65537|128,s):null;case 5:return Gf(s),null;case 13:if(Ke(Ze),o=s.memoizedState,o!==null&&o.dehydrated!==null){if(s.alternate===null)throw Error(n(340));ls()}return o=s.flags,o&65536?(s.flags=o&-65537|128,s):null;case 19:return Ke(Ze),null;case 4:return hs(),null;case 10:return $f(s.type._context),null;case 22:case 23:return j0(),null;case 24:return null;default:return null}}var au=!1,Pt=!1,v8=typeof WeakSet=="function"?WeakSet:Set,ge=null;function ms(o,s){var l=o.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(h){tt(o,s,h)}else l.current=null}function g0(o,s,l){try{l()}catch(h){tt(o,s,h)}}var Py=!1;function w8(o,s){if(jf=Il,o=lg(),bf(o)){if("selectionStart"in o)var l={start:o.selectionStart,end:o.selectionEnd};else e:{l=(l=o.ownerDocument)&&l.defaultView||window;var h=l.getSelection&&l.getSelection();if(h&&h.rangeCount!==0){l=h.anchorNode;var v=h.anchorOffset,x=h.focusNode;h=h.focusOffset;try{l.nodeType,x.nodeType}catch{l=null;break e}var B=0,O=-1,z=-1,K=0,ie=0,se=o,re=null;t:for(;;){for(var pe;se!==l||v!==0&&se.nodeType!==3||(O=B+v),se!==x||h!==0&&se.nodeType!==3||(z=B+h),se.nodeType===3&&(B+=se.nodeValue.length),(pe=se.firstChild)!==null;)re=se,se=pe;for(;;){if(se===o)break t;if(re===l&&++K===v&&(O=B),re===x&&++ie===h&&(z=B),(pe=se.nextSibling)!==null)break;se=re,re=se.parentNode}se=pe}l=O===-1||z===-1?null:{start:O,end:z}}else l=null}l=l||{start:0,end:0}}else l=null;for(Bf={focusedElem:o,selectionRange:l},Il=!1,ge=s;ge!==null;)if(s=ge,o=s.child,(s.subtreeFlags&1028)!==0&&o!==null)o.return=s,ge=o;else for(;ge!==null;){s=ge;try{var ye=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(ye!==null){var ve=ye.memoizedProps,ot=ye.memoizedState,q=s.stateNode,U=q.getSnapshotBeforeUpdate(s.elementType===s.type?ve:Vn(s.type,ve),ot);q.__reactInternalSnapshotBeforeUpdate=U}break;case 3:var V=s.stateNode.containerInfo;V.nodeType===1?V.textContent="":V.nodeType===9&&V.documentElement&&V.removeChild(V.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ue){tt(s,s.return,ue)}if(o=s.sibling,o!==null){o.return=s.return,ge=o;break}ge=s.return}return ye=Py,Py=!1,ye}function qa(o,s,l){var h=s.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var v=h=h.next;do{if((v.tag&o)===o){var x=v.destroy;v.destroy=void 0,x!==void 0&&g0(s,l,x)}v=v.next}while(v!==h)}}function cu(o,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&o)===o){var h=l.create;l.destroy=h()}l=l.next}while(l!==s)}}function y0(o){var s=o.ref;if(s!==null){var l=o.stateNode;switch(o.tag){case 5:o=l;break;default:o=l}typeof s=="function"?s(o):s.current=o}}function Ty(o){var s=o.alternate;s!==null&&(o.alternate=null,Ty(s)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(s=o.stateNode,s!==null&&(delete s[cr],delete s[Oa],delete s[Of],delete s[t8],delete s[n8])),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}function Oy(o){return o.tag===5||o.tag===3||o.tag===4}function Ry(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Oy(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function v0(o,s,l){var h=o.tag;if(h===5||h===6)o=o.stateNode,s?l.nodeType===8?l.parentNode.insertBefore(o,s):l.insertBefore(o,s):(l.nodeType===8?(s=l.parentNode,s.insertBefore(o,l)):(s=l,s.appendChild(o)),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=Fl));else if(h!==4&&(o=o.child,o!==null))for(v0(o,s,l),o=o.sibling;o!==null;)v0(o,s,l),o=o.sibling}function w0(o,s,l){var h=o.tag;if(h===5||h===6)o=o.stateNode,s?l.insertBefore(o,s):l.appendChild(o);else if(h!==4&&(o=o.child,o!==null))for(w0(o,s,l),o=o.sibling;o!==null;)w0(o,s,l),o=o.sibling}var Ct=null,Qn=!1;function go(o,s,l){for(l=l.child;l!==null;)Ny(o,s,l),l=l.sibling}function Ny(o,s,l){if(ar&&typeof ar.onCommitFiberUnmount=="function")try{ar.onCommitFiberUnmount(xl,l)}catch{}switch(l.tag){case 5:Pt||ms(l,s);case 6:var h=Ct,v=Qn;Ct=null,go(o,s,l),Ct=h,Qn=v,Ct!==null&&(Qn?(o=Ct,l=l.stateNode,o.nodeType===8?o.parentNode.removeChild(l):o.removeChild(l)):Ct.removeChild(l.stateNode));break;case 18:Ct!==null&&(Qn?(o=Ct,l=l.stateNode,o.nodeType===8?Tf(o.parentNode,l):o.nodeType===1&&Tf(o,l),Ca(o)):Tf(Ct,l.stateNode));break;case 4:h=Ct,v=Qn,Ct=l.stateNode.containerInfo,Qn=!0,go(o,s,l),Ct=h,Qn=v;break;case 0:case 11:case 14:case 15:if(!Pt&&(h=l.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){v=h=h.next;do{var x=v,B=x.destroy;x=x.tag,B!==void 0&&((x&2)!==0||(x&4)!==0)&&g0(l,s,B),v=v.next}while(v!==h)}go(o,s,l);break;case 1:if(!Pt&&(ms(l,s),h=l.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=l.memoizedProps,h.state=l.memoizedState,h.componentWillUnmount()}catch(O){tt(l,s,O)}go(o,s,l);break;case 21:go(o,s,l);break;case 22:l.mode&1?(Pt=(h=Pt)||l.memoizedState!==null,go(o,s,l),Pt=h):go(o,s,l);break;default:go(o,s,l)}}function My(o){var s=o.updateQueue;if(s!==null){o.updateQueue=null;var l=o.stateNode;l===null&&(l=o.stateNode=new v8),s.forEach(function(h){var v=j8.bind(null,o,h);l.has(h)||(l.add(h),h.then(v,v))})}}function Gn(o,s){var l=s.deletions;if(l!==null)for(var h=0;h<l.length;h++){var v=l[h];try{var x=o,B=s,O=B;e:for(;O!==null;){switch(O.tag){case 5:Ct=O.stateNode,Qn=!1;break e;case 3:Ct=O.stateNode.containerInfo,Qn=!0;break e;case 4:Ct=O.stateNode.containerInfo,Qn=!0;break e}O=O.return}if(Ct===null)throw Error(n(160));Ny(x,B,v),Ct=null,Qn=!1;var z=v.alternate;z!==null&&(z.return=null),v.return=null}catch(K){tt(v,s,K)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)Dy(s,o),s=s.sibling}function Dy(o,s){var l=o.alternate,h=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:if(Gn(s,o),dr(o),h&4){try{qa(3,o,o.return),cu(3,o)}catch(ve){tt(o,o.return,ve)}try{qa(5,o,o.return)}catch(ve){tt(o,o.return,ve)}}break;case 1:Gn(s,o),dr(o),h&512&&l!==null&&ms(l,l.return);break;case 5:if(Gn(s,o),dr(o),h&512&&l!==null&&ms(l,l.return),o.flags&32){var v=o.stateNode;try{sr(v,"")}catch(ve){tt(o,o.return,ve)}}if(h&4&&(v=o.stateNode,v!=null)){var x=o.memoizedProps,B=l!==null?l.memoizedProps:x,O=o.type,z=o.updateQueue;if(o.updateQueue=null,z!==null)try{O==="input"&&x.type==="radio"&&x.name!=null&&kn(v,x),Le(O,B);var K=Le(O,x);for(B=0;B<z.length;B+=2){var ie=z[B],se=z[B+1];ie==="style"?qe(v,se):ie==="dangerouslySetInnerHTML"?Ar(v,se):ie==="children"?sr(v,se):k(v,ie,se,K)}switch(O){case"input":da(v,x);break;case"textarea":no(v,x);break;case"select":var re=v._wrapperState.wasMultiple;v._wrapperState.wasMultiple=!!x.multiple;var pe=x.value;pe!=null?eo(v,!!x.multiple,pe,!1):re!==!!x.multiple&&(x.defaultValue!=null?eo(v,!!x.multiple,x.defaultValue,!0):eo(v,!!x.multiple,x.multiple?[]:"",!1))}v[Oa]=x}catch(ve){tt(o,o.return,ve)}}break;case 6:if(Gn(s,o),dr(o),h&4){if(o.stateNode===null)throw Error(n(162));v=o.stateNode,x=o.memoizedProps;try{v.nodeValue=x}catch(ve){tt(o,o.return,ve)}}break;case 3:if(Gn(s,o),dr(o),h&4&&l!==null&&l.memoizedState.isDehydrated)try{Ca(s.containerInfo)}catch(ve){tt(o,o.return,ve)}break;case 4:Gn(s,o),dr(o);break;case 13:Gn(s,o),dr(o),v=o.child,v.flags&8192&&(x=v.memoizedState!==null,v.stateNode.isHidden=x,!x||v.alternate!==null&&v.alternate.memoizedState!==null||(C0=rt())),h&4&&My(o);break;case 22:if(ie=l!==null&&l.memoizedState!==null,o.mode&1?(Pt=(K=Pt)||ie,Gn(s,o),Pt=K):Gn(s,o),dr(o),h&8192){if(K=o.memoizedState!==null,(o.stateNode.isHidden=K)&&!ie&&(o.mode&1)!==0)for(ge=o,ie=o.child;ie!==null;){for(se=ge=ie;ge!==null;){switch(re=ge,pe=re.child,re.tag){case 0:case 11:case 14:case 15:qa(4,re,re.return);break;case 1:ms(re,re.return);var ye=re.stateNode;if(typeof ye.componentWillUnmount=="function"){h=re,l=re.return;try{s=h,ye.props=s.memoizedProps,ye.state=s.memoizedState,ye.componentWillUnmount()}catch(ve){tt(h,l,ve)}}break;case 5:ms(re,re.return);break;case 22:if(re.memoizedState!==null){zy(se);continue}}pe!==null?(pe.return=re,ge=pe):zy(se)}ie=ie.sibling}e:for(ie=null,se=o;;){if(se.tag===5){if(ie===null){ie=se;try{v=se.stateNode,K?(x=v.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(O=se.stateNode,z=se.memoizedProps.style,B=z!=null&&z.hasOwnProperty("display")?z.display:null,O.style.display=Be("display",B))}catch(ve){tt(o,o.return,ve)}}}else if(se.tag===6){if(ie===null)try{se.stateNode.nodeValue=K?"":se.memoizedProps}catch(ve){tt(o,o.return,ve)}}else if((se.tag!==22&&se.tag!==23||se.memoizedState===null||se===o)&&se.child!==null){se.child.return=se,se=se.child;continue}if(se===o)break e;for(;se.sibling===null;){if(se.return===null||se.return===o)break e;ie===se&&(ie=null),se=se.return}ie===se&&(ie=null),se.sibling.return=se.return,se=se.sibling}}break;case 19:Gn(s,o),dr(o),h&4&&My(o);break;case 21:break;default:Gn(s,o),dr(o)}}function dr(o){var s=o.flags;if(s&2){try{e:{for(var l=o.return;l!==null;){if(Oy(l)){var h=l;break e}l=l.return}throw Error(n(160))}switch(h.tag){case 5:var v=h.stateNode;h.flags&32&&(sr(v,""),h.flags&=-33);var x=Ry(o);w0(o,x,v);break;case 3:case 4:var B=h.stateNode.containerInfo,O=Ry(o);v0(o,O,B);break;default:throw Error(n(161))}}catch(z){tt(o,o.return,z)}o.flags&=-3}s&4096&&(o.flags&=-4097)}function b8(o,s,l){ge=o,Ly(o)}function Ly(o,s,l){for(var h=(o.mode&1)!==0;ge!==null;){var v=ge,x=v.child;if(v.tag===22&&h){var B=v.memoizedState!==null||au;if(!B){var O=v.alternate,z=O!==null&&O.memoizedState!==null||Pt;O=au;var K=Pt;if(au=B,(Pt=z)&&!K)for(ge=v;ge!==null;)B=ge,z=B.child,B.tag===22&&B.memoizedState!==null?Uy(v):z!==null?(z.return=B,ge=z):Uy(v);for(;x!==null;)ge=x,Ly(x),x=x.sibling;ge=v,au=O,Pt=K}Fy(o)}else(v.subtreeFlags&8772)!==0&&x!==null?(x.return=v,ge=x):Fy(o)}}function Fy(o){for(;ge!==null;){var s=ge;if((s.flags&8772)!==0){var l=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Pt||cu(5,s);break;case 1:var h=s.stateNode;if(s.flags&4&&!Pt)if(l===null)h.componentDidMount();else{var v=s.elementType===s.type?l.memoizedProps:Vn(s.type,l.memoizedProps);h.componentDidUpdate(v,l.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var x=s.updateQueue;x!==null&&zg(s,x,h);break;case 3:var B=s.updateQueue;if(B!==null){if(l=null,s.child!==null)switch(s.child.tag){case 5:l=s.child.stateNode;break;case 1:l=s.child.stateNode}zg(s,B,l)}break;case 5:var O=s.stateNode;if(l===null&&s.flags&4){l=O;var z=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":z.autoFocus&&l.focus();break;case"img":z.src&&(l.src=z.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var K=s.alternate;if(K!==null){var ie=K.memoizedState;if(ie!==null){var se=ie.dehydrated;se!==null&&Ca(se)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}Pt||s.flags&512&&y0(s)}catch(re){tt(s,s.return,re)}}if(s===o){ge=null;break}if(l=s.sibling,l!==null){l.return=s.return,ge=l;break}ge=s.return}}function zy(o){for(;ge!==null;){var s=ge;if(s===o){ge=null;break}var l=s.sibling;if(l!==null){l.return=s.return,ge=l;break}ge=s.return}}function Uy(o){for(;ge!==null;){var s=ge;try{switch(s.tag){case 0:case 11:case 15:var l=s.return;try{cu(4,s)}catch(z){tt(s,l,z)}break;case 1:var h=s.stateNode;if(typeof h.componentDidMount=="function"){var v=s.return;try{h.componentDidMount()}catch(z){tt(s,v,z)}}var x=s.return;try{y0(s)}catch(z){tt(s,x,z)}break;case 5:var B=s.return;try{y0(s)}catch(z){tt(s,B,z)}}}catch(z){tt(s,s.return,z)}if(s===o){ge=null;break}var O=s.sibling;if(O!==null){O.return=s.return,ge=O;break}ge=s.return}}var x8=Math.ceil,lu=S.ReactCurrentDispatcher,b0=S.ReactCurrentOwner,_n=S.ReactCurrentBatchConfig,ze=0,gt=null,it=null,Et=0,pn=0,gs=uo(0),ft=0,Ha=null,ci=0,uu=0,x0=0,Va=null,Zt=null,C0=0,ys=1/0,Or=null,du=!1,E0=null,yo=null,fu=!1,vo=null,hu=0,Qa=0,A0=null,pu=-1,mu=0;function Lt(){return(ze&6)!==0?rt():pu!==-1?pu:pu=rt()}function wo(o){return(o.mode&1)===0?1:(ze&2)!==0&&Et!==0?Et&-Et:o8.transition!==null?(mu===0&&(mu=R1()),mu):(o=He,o!==0||(o=window.event,o=o===void 0?16:$1(o.type)),o)}function Kn(o,s,l,h){if(50<Qa)throw Qa=0,A0=null,Error(n(185));ya(o,l,h),((ze&2)===0||o!==gt)&&(o===gt&&((ze&2)===0&&(uu|=l),ft===4&&bo(o,Et)),Xt(o,h),l===1&&ze===0&&(s.mode&1)===0&&(ys=rt()+500,$l&&ho()))}function Xt(o,s){var l=o.callbackNode;oC(o,s);var h=Al(o,o===gt?Et:0);if(h===0)l!==null&&P1(l),o.callbackNode=null,o.callbackPriority=0;else if(s=h&-h,o.callbackPriority!==s){if(l!=null&&P1(l),s===1)o.tag===0?r8($y.bind(null,o)):jg($y.bind(null,o)),XC(function(){(ze&6)===0&&ho()}),l=null;else{switch(N1(h)){case 1:l=nf;break;case 4:l=T1;break;case 16:l=bl;break;case 536870912:l=O1;break;default:l=bl}l=Jy(l,Wy.bind(null,o))}o.callbackPriority=s,o.callbackNode=l}}function Wy(o,s){if(pu=-1,mu=0,(ze&6)!==0)throw Error(n(327));var l=o.callbackNode;if(vs()&&o.callbackNode!==l)return null;var h=Al(o,o===gt?Et:0);if(h===0)return null;if((h&30)!==0||(h&o.expiredLanes)!==0||s)s=gu(o,h);else{s=h;var v=ze;ze|=2;var x=Hy();(gt!==o||Et!==s)&&(Or=null,ys=rt()+500,ui(o,s));do try{A8();break}catch(O){qy(o,O)}while(!0);Wf(),lu.current=x,ze=v,it!==null?s=0:(gt=null,Et=0,s=ft)}if(s!==0){if(s===2&&(v=rf(o),v!==0&&(h=v,s=k0(o,v))),s===1)throw l=Ha,ui(o,0),bo(o,h),Xt(o,rt()),l;if(s===6)bo(o,h);else{if(v=o.current.alternate,(h&30)===0&&!C8(v)&&(s=gu(o,h),s===2&&(x=rf(o),x!==0&&(h=x,s=k0(o,x))),s===1))throw l=Ha,ui(o,0),bo(o,h),Xt(o,rt()),l;switch(o.finishedWork=v,o.finishedLanes=h,s){case 0:case 1:throw Error(n(345));case 2:di(o,Zt,Or);break;case 3:if(bo(o,h),(h&130023424)===h&&(s=C0+500-rt(),10<s)){if(Al(o,0)!==0)break;if(v=o.suspendedLanes,(v&h)!==h){Lt(),o.pingedLanes|=o.suspendedLanes&v;break}o.timeoutHandle=Pf(di.bind(null,o,Zt,Or),s);break}di(o,Zt,Or);break;case 4:if(bo(o,h),(h&4194240)===h)break;for(s=o.eventTimes,v=-1;0<h;){var B=31-$n(h);x=1<<B,B=s[B],B>v&&(v=B),h&=~x}if(h=v,h=rt()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*x8(h/1960))-h,10<h){o.timeoutHandle=Pf(di.bind(null,o,Zt,Or),h);break}di(o,Zt,Or);break;case 5:di(o,Zt,Or);break;default:throw Error(n(329))}}}return Xt(o,rt()),o.callbackNode===l?Wy.bind(null,o):null}function k0(o,s){var l=Va;return o.current.memoizedState.isDehydrated&&(ui(o,s).flags|=256),o=gu(o,s),o!==2&&(s=Zt,Zt=l,s!==null&&S0(s)),o}function S0(o){Zt===null?Zt=o:Zt.push.apply(Zt,o)}function C8(o){for(var s=o;;){if(s.flags&16384){var l=s.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var h=0;h<l.length;h++){var v=l[h],x=v.getSnapshot;v=v.value;try{if(!qn(x(),v))return!1}catch{return!1}}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function bo(o,s){for(s&=~x0,s&=~uu,o.suspendedLanes|=s,o.pingedLanes&=~s,o=o.expirationTimes;0<s;){var l=31-$n(s),h=1<<l;o[l]=-1,s&=~h}}function $y(o){if((ze&6)!==0)throw Error(n(327));vs();var s=Al(o,0);if((s&1)===0)return Xt(o,rt()),null;var l=gu(o,s);if(o.tag!==0&&l===2){var h=rf(o);h!==0&&(s=h,l=k0(o,h))}if(l===1)throw l=Ha,ui(o,0),bo(o,s),Xt(o,rt()),l;if(l===6)throw Error(n(345));return o.finishedWork=o.current.alternate,o.finishedLanes=s,di(o,Zt,Or),Xt(o,rt()),null}function I0(o,s){var l=ze;ze|=1;try{return o(s)}finally{ze=l,ze===0&&(ys=rt()+500,$l&&ho())}}function li(o){vo!==null&&vo.tag===0&&(ze&6)===0&&vs();var s=ze;ze|=1;var l=_n.transition,h=He;try{if(_n.transition=null,He=1,o)return o()}finally{He=h,_n.transition=l,ze=s,(ze&6)===0&&ho()}}function j0(){pn=gs.current,Ke(gs)}function ui(o,s){o.finishedWork=null,o.finishedLanes=0;var l=o.timeoutHandle;if(l!==-1&&(o.timeoutHandle=-1,ZC(l)),it!==null)for(l=it.return;l!==null;){var h=l;switch(Df(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&Ul();break;case 3:hs(),Ke(Kt),Ke(jt),Yf();break;case 5:Gf(h);break;case 4:hs();break;case 13:Ke(Ze);break;case 19:Ke(Ze);break;case 10:$f(h.type._context);break;case 22:case 23:j0()}l=l.return}if(gt=o,it=o=xo(o.current,null),Et=pn=s,ft=0,Ha=null,x0=uu=ci=0,Zt=Va=null,ii!==null){for(s=0;s<ii.length;s++)if(l=ii[s],h=l.interleaved,h!==null){l.interleaved=null;var v=h.next,x=l.pending;if(x!==null){var B=x.next;x.next=v,h.next=B}l.pending=h}ii=null}return o}function qy(o,s){do{var l=it;try{if(Wf(),Xl.current=ru,eu){for(var h=Xe.memoizedState;h!==null;){var v=h.queue;v!==null&&(v.pending=null),h=h.next}eu=!1}if(ai=0,mt=dt=Xe=null,Fa=!1,za=0,b0.current=null,l===null||l.return===null){ft=1,Ha=s,it=null;break}e:{var x=o,B=l.return,O=l,z=s;if(s=Et,O.flags|=32768,z!==null&&typeof z=="object"&&typeof z.then=="function"){var K=z,ie=O,se=ie.tag;if((ie.mode&1)===0&&(se===0||se===11||se===15)){var re=ie.alternate;re?(ie.updateQueue=re.updateQueue,ie.memoizedState=re.memoizedState,ie.lanes=re.lanes):(ie.updateQueue=null,ie.memoizedState=null)}var pe=my(B);if(pe!==null){pe.flags&=-257,gy(pe,B,O,x,s),pe.mode&1&&py(x,K,s),s=pe,z=K;var ye=s.updateQueue;if(ye===null){var ve=new Set;ve.add(z),s.updateQueue=ve}else ye.add(z);break e}else{if((s&1)===0){py(x,K,s),B0();break e}z=Error(n(426))}}else if(Ye&&O.mode&1){var ot=my(B);if(ot!==null){(ot.flags&65536)===0&&(ot.flags|=256),gy(ot,B,O,x,s),zf(ps(z,O));break e}}x=z=ps(z,O),ft!==4&&(ft=2),Va===null?Va=[x]:Va.push(x),x=B;do{switch(x.tag){case 3:x.flags|=65536,s&=-s,x.lanes|=s;var q=fy(x,z,s);Fg(x,q);break e;case 1:O=z;var U=x.type,V=x.stateNode;if((x.flags&128)===0&&(typeof U.getDerivedStateFromError=="function"||V!==null&&typeof V.componentDidCatch=="function"&&(yo===null||!yo.has(V)))){x.flags|=65536,s&=-s,x.lanes|=s;var ue=hy(x,O,s);Fg(x,ue);break e}}x=x.return}while(x!==null)}Qy(l)}catch(xe){s=xe,it===l&&l!==null&&(it=l=l.return);continue}break}while(!0)}function Hy(){var o=lu.current;return lu.current=ru,o===null?ru:o}function B0(){(ft===0||ft===3||ft===2)&&(ft=4),gt===null||(ci&268435455)===0&&(uu&268435455)===0||bo(gt,Et)}function gu(o,s){var l=ze;ze|=2;var h=Hy();(gt!==o||Et!==s)&&(Or=null,ui(o,s));do try{E8();break}catch(v){qy(o,v)}while(!0);if(Wf(),ze=l,lu.current=h,it!==null)throw Error(n(261));return gt=null,Et=0,ft}function E8(){for(;it!==null;)Vy(it)}function A8(){for(;it!==null&&!Kx();)Vy(it)}function Vy(o){var s=Yy(o.alternate,o,pn);o.memoizedProps=o.pendingProps,s===null?Qy(o):it=s,b0.current=null}function Qy(o){var s=o;do{var l=s.alternate;if(o=s.return,(s.flags&32768)===0){if(l=g8(l,s,pn),l!==null){it=l;return}}else{if(l=y8(l,s),l!==null){l.flags&=32767,it=l;return}if(o!==null)o.flags|=32768,o.subtreeFlags=0,o.deletions=null;else{ft=6,it=null;return}}if(s=s.sibling,s!==null){it=s;return}it=s=o}while(s!==null);ft===0&&(ft=5)}function di(o,s,l){var h=He,v=_n.transition;try{_n.transition=null,He=1,k8(o,s,l,h)}finally{_n.transition=v,He=h}return null}function k8(o,s,l,h){do vs();while(vo!==null);if((ze&6)!==0)throw Error(n(327));l=o.finishedWork;var v=o.finishedLanes;if(l===null)return null;if(o.finishedWork=null,o.finishedLanes=0,l===o.current)throw Error(n(177));o.callbackNode=null,o.callbackPriority=0;var x=l.lanes|l.childLanes;if(iC(o,x),o===gt&&(it=gt=null,Et=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||fu||(fu=!0,Jy(bl,function(){return vs(),null})),x=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||x){x=_n.transition,_n.transition=null;var B=He;He=1;var O=ze;ze|=4,b0.current=null,w8(o,l),Dy(l,o),HC(Bf),Il=!!jf,Bf=jf=null,o.current=l,b8(l),Yx(),ze=O,He=B,_n.transition=x}else o.current=l;if(fu&&(fu=!1,vo=o,hu=v),x=o.pendingLanes,x===0&&(yo=null),Xx(l.stateNode),Xt(o,rt()),s!==null)for(h=o.onRecoverableError,l=0;l<s.length;l++)v=s[l],h(v.value,{componentStack:v.stack,digest:v.digest});if(du)throw du=!1,o=E0,E0=null,o;return(hu&1)!==0&&o.tag!==0&&vs(),x=o.pendingLanes,(x&1)!==0?o===A0?Qa++:(Qa=0,A0=o):Qa=0,ho(),null}function vs(){if(vo!==null){var o=N1(hu),s=_n.transition,l=He;try{if(_n.transition=null,He=16>o?16:o,vo===null)var h=!1;else{if(o=vo,vo=null,hu=0,(ze&6)!==0)throw Error(n(331));var v=ze;for(ze|=4,ge=o.current;ge!==null;){var x=ge,B=x.child;if((ge.flags&16)!==0){var O=x.deletions;if(O!==null){for(var z=0;z<O.length;z++){var K=O[z];for(ge=K;ge!==null;){var ie=ge;switch(ie.tag){case 0:case 11:case 15:qa(8,ie,x)}var se=ie.child;if(se!==null)se.return=ie,ge=se;else for(;ge!==null;){ie=ge;var re=ie.sibling,pe=ie.return;if(Ty(ie),ie===K){ge=null;break}if(re!==null){re.return=pe,ge=re;break}ge=pe}}}var ye=x.alternate;if(ye!==null){var ve=ye.child;if(ve!==null){ye.child=null;do{var ot=ve.sibling;ve.sibling=null,ve=ot}while(ve!==null)}}ge=x}}if((x.subtreeFlags&2064)!==0&&B!==null)B.return=x,ge=B;else e:for(;ge!==null;){if(x=ge,(x.flags&2048)!==0)switch(x.tag){case 0:case 11:case 15:qa(9,x,x.return)}var q=x.sibling;if(q!==null){q.return=x.return,ge=q;break e}ge=x.return}}var U=o.current;for(ge=U;ge!==null;){B=ge;var V=B.child;if((B.subtreeFlags&2064)!==0&&V!==null)V.return=B,ge=V;else e:for(B=U;ge!==null;){if(O=ge,(O.flags&2048)!==0)try{switch(O.tag){case 0:case 11:case 15:cu(9,O)}}catch(xe){tt(O,O.return,xe)}if(O===B){ge=null;break e}var ue=O.sibling;if(ue!==null){ue.return=O.return,ge=ue;break e}ge=O.return}}if(ze=v,ho(),ar&&typeof ar.onPostCommitFiberRoot=="function")try{ar.onPostCommitFiberRoot(xl,o)}catch{}h=!0}return h}finally{He=l,_n.transition=s}}return!1}function Gy(o,s,l){s=ps(l,s),s=fy(o,s,1),o=mo(o,s,1),s=Lt(),o!==null&&(ya(o,1,s),Xt(o,s))}function tt(o,s,l){if(o.tag===3)Gy(o,o,l);else for(;s!==null;){if(s.tag===3){Gy(s,o,l);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(yo===null||!yo.has(h))){o=ps(l,o),o=hy(s,o,1),s=mo(s,o,1),o=Lt(),s!==null&&(ya(s,1,o),Xt(s,o));break}}s=s.return}}function S8(o,s,l){var h=o.pingCache;h!==null&&h.delete(s),s=Lt(),o.pingedLanes|=o.suspendedLanes&l,gt===o&&(Et&l)===l&&(ft===4||ft===3&&(Et&130023424)===Et&&500>rt()-C0?ui(o,0):x0|=l),Xt(o,s)}function Ky(o,s){s===0&&((o.mode&1)===0?s=1:(s=El,El<<=1,(El&130023424)===0&&(El=4194304)));var l=Lt();o=_r(o,s),o!==null&&(ya(o,s,l),Xt(o,l))}function I8(o){var s=o.memoizedState,l=0;s!==null&&(l=s.retryLane),Ky(o,l)}function j8(o,s){var l=0;switch(o.tag){case 13:var h=o.stateNode,v=o.memoizedState;v!==null&&(l=v.retryLane);break;case 19:h=o.stateNode;break;default:throw Error(n(314))}h!==null&&h.delete(s),Ky(o,l)}var Yy;Yy=function(o,s,l){if(o!==null)if(o.memoizedProps!==s.pendingProps||Kt.current)Jt=!0;else{if((o.lanes&l)===0&&(s.flags&128)===0)return Jt=!1,m8(o,s,l);Jt=(o.flags&131072)!==0}else Jt=!1,Ye&&(s.flags&1048576)!==0&&Bg(s,Hl,s.index);switch(s.lanes=0,s.tag){case 2:var h=s.type;su(o,s),o=s.pendingProps;var v=ss(s,jt.current);fs(s,l),v=Xf(null,s,h,o,v,l);var x=e0();return s.flags|=1,typeof v=="object"&&v!==null&&typeof v.render=="function"&&v.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Yt(h)?(x=!0,Wl(s)):x=!1,s.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,Vf(s),v.updater=ou,s.stateNode=v,v._reactInternals=s,s0(s,h,o,l),s=u0(null,s,h,!0,x,l)):(s.tag=0,Ye&&x&&Mf(s),Dt(null,s,v,l),s=s.child),s;case 16:h=s.elementType;e:{switch(su(o,s),o=s.pendingProps,v=h._init,h=v(h._payload),s.type=h,v=s.tag=_8(h),o=Vn(h,o),v){case 0:s=l0(null,s,h,o,l);break e;case 1:s=Cy(null,s,h,o,l);break e;case 11:s=yy(null,s,h,o,l);break e;case 14:s=vy(null,s,h,Vn(h.type,o),l);break e}throw Error(n(306,h,""))}return s;case 0:return h=s.type,v=s.pendingProps,v=s.elementType===h?v:Vn(h,v),l0(o,s,h,v,l);case 1:return h=s.type,v=s.pendingProps,v=s.elementType===h?v:Vn(h,v),Cy(o,s,h,v,l);case 3:e:{if(Ey(s),o===null)throw Error(n(387));h=s.pendingProps,x=s.memoizedState,v=x.element,Lg(o,s),Jl(s,h,null,l);var B=s.memoizedState;if(h=B.element,x.isDehydrated)if(x={element:h,isDehydrated:!1,cache:B.cache,pendingSuspenseBoundaries:B.pendingSuspenseBoundaries,transitions:B.transitions},s.updateQueue.baseState=x,s.memoizedState=x,s.flags&256){v=ps(Error(n(423)),s),s=Ay(o,s,h,l,v);break e}else if(h!==v){v=ps(Error(n(424)),s),s=Ay(o,s,h,l,v);break e}else for(hn=lo(s.stateNode.containerInfo.firstChild),fn=s,Ye=!0,Hn=null,l=Mg(s,null,h,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(ls(),h===v){s=Tr(o,s,l);break e}Dt(o,s,h,l)}s=s.child}return s;case 5:return Ug(s),o===null&&Ff(s),h=s.type,v=s.pendingProps,x=o!==null?o.memoizedProps:null,B=v.children,_f(h,v)?B=null:x!==null&&_f(h,x)&&(s.flags|=32),xy(o,s),Dt(o,s,B,l),s.child;case 6:return o===null&&Ff(s),null;case 13:return ky(o,s,l);case 4:return Qf(s,s.stateNode.containerInfo),h=s.pendingProps,o===null?s.child=us(s,null,h,l):Dt(o,s,h,l),s.child;case 11:return h=s.type,v=s.pendingProps,v=s.elementType===h?v:Vn(h,v),yy(o,s,h,v,l);case 7:return Dt(o,s,s.pendingProps,l),s.child;case 8:return Dt(o,s,s.pendingProps.children,l),s.child;case 12:return Dt(o,s,s.pendingProps.children,l),s.child;case 10:e:{if(h=s.type._context,v=s.pendingProps,x=s.memoizedProps,B=v.value,Qe(Gl,h._currentValue),h._currentValue=B,x!==null)if(qn(x.value,B)){if(x.children===v.children&&!Kt.current){s=Tr(o,s,l);break e}}else for(x=s.child,x!==null&&(x.return=s);x!==null;){var O=x.dependencies;if(O!==null){B=x.child;for(var z=O.firstContext;z!==null;){if(z.context===h){if(x.tag===1){z=Pr(-1,l&-l),z.tag=2;var K=x.updateQueue;if(K!==null){K=K.shared;var ie=K.pending;ie===null?z.next=z:(z.next=ie.next,ie.next=z),K.pending=z}}x.lanes|=l,z=x.alternate,z!==null&&(z.lanes|=l),qf(x.return,l,s),O.lanes|=l;break}z=z.next}}else if(x.tag===10)B=x.type===s.type?null:x.child;else if(x.tag===18){if(B=x.return,B===null)throw Error(n(341));B.lanes|=l,O=B.alternate,O!==null&&(O.lanes|=l),qf(B,l,s),B=x.sibling}else B=x.child;if(B!==null)B.return=x;else for(B=x;B!==null;){if(B===s){B=null;break}if(x=B.sibling,x!==null){x.return=B.return,B=x;break}B=B.return}x=B}Dt(o,s,v.children,l),s=s.child}return s;case 9:return v=s.type,h=s.pendingProps.children,fs(s,l),v=jn(v),h=h(v),s.flags|=1,Dt(o,s,h,l),s.child;case 14:return h=s.type,v=Vn(h,s.pendingProps),v=Vn(h.type,v),vy(o,s,h,v,l);case 15:return wy(o,s,s.type,s.pendingProps,l);case 17:return h=s.type,v=s.pendingProps,v=s.elementType===h?v:Vn(h,v),su(o,s),s.tag=1,Yt(h)?(o=!0,Wl(s)):o=!1,fs(s,l),uy(s,h,v),s0(s,h,v,l),u0(null,s,h,!0,o,l);case 19:return Iy(o,s,l);case 22:return by(o,s,l)}throw Error(n(156,s.tag))};function Jy(o,s){return _1(o,s)}function B8(o,s,l,h){this.tag=o,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pn(o,s,l,h){return new B8(o,s,l,h)}function _0(o){return o=o.prototype,!(!o||!o.isReactComponent)}function _8(o){if(typeof o=="function")return _0(o)?1:0;if(o!=null){if(o=o.$$typeof,o===Z)return 11;if(o===$)return 14}return 2}function xo(o,s){var l=o.alternate;return l===null?(l=Pn(o.tag,s,o.key,o.mode),l.elementType=o.elementType,l.type=o.type,l.stateNode=o.stateNode,l.alternate=o,o.alternate=l):(l.pendingProps=s,l.type=o.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=o.flags&14680064,l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,s=o.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=o.sibling,l.index=o.index,l.ref=o.ref,l}function yu(o,s,l,h,v,x){var B=2;if(h=o,typeof o=="function")_0(o)&&(B=1);else if(typeof o=="string")B=5;else e:switch(o){case _:return fi(l.children,v,x,s);case T:B=8,v|=8;break;case D:return o=Pn(12,l,s,v|2),o.elementType=D,o.lanes=x,o;case G:return o=Pn(13,l,s,v),o.elementType=G,o.lanes=x,o;case le:return o=Pn(19,l,s,v),o.elementType=le,o.lanes=x,o;case te:return vu(l,v,x,s);default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case Q:B=10;break e;case H:B=9;break e;case Z:B=11;break e;case $:B=14;break e;case X:B=16,h=null;break e}throw Error(n(130,o==null?o:typeof o,""))}return s=Pn(B,l,s,v),s.elementType=o,s.type=h,s.lanes=x,s}function fi(o,s,l,h){return o=Pn(7,o,h,s),o.lanes=l,o}function vu(o,s,l,h){return o=Pn(22,o,h,s),o.elementType=te,o.lanes=l,o.stateNode={isHidden:!1},o}function P0(o,s,l){return o=Pn(6,o,null,s),o.lanes=l,o}function T0(o,s,l){return s=Pn(4,o.children!==null?o.children:[],o.key,s),s.lanes=l,s.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},s}function P8(o,s,l,h,v){this.tag=s,this.containerInfo=o,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=of(0),this.expirationTimes=of(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=of(0),this.identifierPrefix=h,this.onRecoverableError=v,this.mutableSourceEagerHydrationData=null}function O0(o,s,l,h,v,x,B,O,z){return o=new P8(o,s,l,O,z),s===1?(s=1,x===!0&&(s|=8)):s=0,x=Pn(3,null,null,s),o.current=x,x.stateNode=o,x.memoizedState={element:h,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vf(x),o}function T8(o,s,l){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:P,key:h==null?null:""+h,children:o,containerInfo:s,implementation:l}}function Zy(o){if(!o)return fo;o=o._reactInternals;e:{if(ei(o)!==o||o.tag!==1)throw Error(n(170));var s=o;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Yt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(o.tag===1){var l=o.type;if(Yt(l))return Sg(o,l,s)}return s}function Xy(o,s,l,h,v,x,B,O,z){return o=O0(l,h,!0,o,v,x,B,O,z),o.context=Zy(null),l=o.current,h=Lt(),v=wo(l),x=Pr(h,v),x.callback=s??null,mo(l,x,v),o.current.lanes=v,ya(o,v,h),Xt(o,h),o}function wu(o,s,l,h){var v=s.current,x=Lt(),B=wo(v);return l=Zy(l),s.context===null?s.context=l:s.pendingContext=l,s=Pr(x,B),s.payload={element:o},h=h===void 0?null:h,h!==null&&(s.callback=h),o=mo(v,s,B),o!==null&&(Kn(o,v,B,x),Yl(o,v,B)),B}function bu(o){if(o=o.current,!o.child)return null;switch(o.child.tag){case 5:return o.child.stateNode;default:return o.child.stateNode}}function ev(o,s){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var l=o.retryLane;o.retryLane=l!==0&&l<s?l:s}}function R0(o,s){ev(o,s),(o=o.alternate)&&ev(o,s)}function O8(){return null}var tv=typeof reportError=="function"?reportError:function(o){console.error(o)};function N0(o){this._internalRoot=o}xu.prototype.render=N0.prototype.render=function(o){var s=this._internalRoot;if(s===null)throw Error(n(409));wu(o,s,null,null)},xu.prototype.unmount=N0.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var s=o.containerInfo;li(function(){wu(null,o,null,null)}),s[Sr]=null}};function xu(o){this._internalRoot=o}xu.prototype.unstable_scheduleHydration=function(o){if(o){var s=L1();o={blockedOn:null,target:o,priority:s};for(var l=0;l<so.length&&s!==0&&s<so[l].priority;l++);so.splice(l,0,o),l===0&&U1(o)}};function M0(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function Cu(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11&&(o.nodeType!==8||o.nodeValue!==" react-mount-point-unstable "))}function nv(){}function R8(o,s,l,h,v){if(v){if(typeof h=="function"){var x=h;h=function(){var K=bu(B);x.call(K)}}var B=Xy(s,h,o,0,null,!1,!1,"",nv);return o._reactRootContainer=B,o[Sr]=B.current,Pa(o.nodeType===8?o.parentNode:o),li(),B}for(;v=o.lastChild;)o.removeChild(v);if(typeof h=="function"){var O=h;h=function(){var K=bu(z);O.call(K)}}var z=O0(o,0,!1,null,null,!1,!1,"",nv);return o._reactRootContainer=z,o[Sr]=z.current,Pa(o.nodeType===8?o.parentNode:o),li(function(){wu(s,z,l,h)}),z}function Eu(o,s,l,h,v){var x=l._reactRootContainer;if(x){var B=x;if(typeof v=="function"){var O=v;v=function(){var z=bu(B);O.call(z)}}wu(s,B,o,v)}else B=R8(l,s,o,v,h);return bu(B)}M1=function(o){switch(o.tag){case 3:var s=o.stateNode;if(s.current.memoizedState.isDehydrated){var l=ga(s.pendingLanes);l!==0&&(sf(s,l|1),Xt(s,rt()),(ze&6)===0&&(ys=rt()+500,ho()))}break;case 13:li(function(){var h=_r(o,1);if(h!==null){var v=Lt();Kn(h,o,1,v)}}),R0(o,1)}},af=function(o){if(o.tag===13){var s=_r(o,134217728);if(s!==null){var l=Lt();Kn(s,o,134217728,l)}R0(o,134217728)}},D1=function(o){if(o.tag===13){var s=wo(o),l=_r(o,s);if(l!==null){var h=Lt();Kn(l,o,s,h)}R0(o,s)}},L1=function(){return He},F1=function(o,s){var l=He;try{return He=o,s()}finally{He=l}},Xo=function(o,s,l){switch(s){case"input":if(da(o,l),s=l.name,l.type==="radio"&&s!=null){for(l=o;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<l.length;s++){var h=l[s];if(h!==o&&h.form===o.form){var v=zl(h);if(!v)throw Error(n(90));En(h),da(h,v)}}}break;case"textarea":no(o,l);break;case"select":s=l.value,s!=null&&eo(o,!!l.multiple,s,!1)}},E1=I0,A1=li;var N8={usingClientEntryPoint:!1,Events:[Ra,os,zl,x1,C1,I0]},Ga={findFiberByHostInstance:ti,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},M8={bundleType:Ga.bundleType,version:Ga.version,rendererPackageName:Ga.rendererPackageName,rendererConfig:Ga.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(o){return o=j1(o),o===null?null:o.stateNode},findFiberByHostInstance:Ga.findFiberByHostInstance||O8,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{xl=Au.inject(M8),ar=Au}catch{}}return en.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N8,en.createPortal=function(o,s){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!M0(s))throw Error(n(200));return T8(o,s,null,l)},en.createRoot=function(o,s){if(!M0(o))throw Error(n(299));var l=!1,h="",v=tv;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onRecoverableError!==void 0&&(v=s.onRecoverableError)),s=O0(o,1,!1,null,null,l,!1,h,v),o[Sr]=s.current,Pa(o.nodeType===8?o.parentNode:o),new N0(s)},en.findDOMNode=function(o){if(o==null)return null;if(o.nodeType===1)return o;var s=o._reactInternals;if(s===void 0)throw typeof o.render=="function"?Error(n(188)):(o=Object.keys(o).join(","),Error(n(268,o)));return o=j1(s),o=o===null?null:o.stateNode,o},en.flushSync=function(o){return li(o)},en.hydrate=function(o,s,l){if(!Cu(s))throw Error(n(200));return Eu(null,o,s,!0,l)},en.hydrateRoot=function(o,s,l){if(!M0(o))throw Error(n(405));var h=l!=null&&l.hydratedSources||null,v=!1,x="",B=tv;if(l!=null&&(l.unstable_strictMode===!0&&(v=!0),l.identifierPrefix!==void 0&&(x=l.identifierPrefix),l.onRecoverableError!==void 0&&(B=l.onRecoverableError)),s=Xy(s,null,o,1,l??null,v,!1,x,B),o[Sr]=s.current,Pa(o),h)for(o=0;o<h.length;o++)l=h[o],v=l._getVersion,v=v(l._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[l,v]:s.mutableSourceEagerHydrationData.push(l,v);return new xu(s)},en.render=function(o,s,l){if(!Cu(s))throw Error(n(200));return Eu(null,o,s,!1,l)},en.unmountComponentAtNode=function(o){if(!Cu(o))throw Error(n(40));return o._reactRootContainer?(li(function(){Eu(null,null,o,!1,function(){o._reactRootContainer=null,o[Sr]=null})}),!0):!1},en.unstable_batchedUpdates=I0,en.unstable_renderSubtreeIntoContainer=function(o,s,l,h){if(!Cu(l))throw Error(n(200));if(o==null||o._reactInternals===void 0)throw Error(n(38));return Eu(o,s,l,!1,h)},en.version="18.3.1-next-f1338f8080-20240426",en}var dv;function n6(){if(dv)return z0.exports;dv=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(),z0.exports=H8(),z0.exports}var fv;function V8(){if(fv)return Su;fv=1;var e=n6();return Su.createRoot=e.createRoot,Su.hydrateRoot=e.hydrateRoot,Su}var Q8=V8(),R=Kc();const E=t6(R),Qs=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{name:"addr",type:"address"}],name:"getEthBalance",outputs:[{name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],zh=[{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"}]}],r6=[{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"}],o6=[...r6,{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"}]}],G8=[...r6,{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"}]}],hv=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],pv=[{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"}]}],i6=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],mv=[{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"}];function er(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new cE(e.type);return`${e.name}(${bd(e.inputs,{includeName:t})})`}function bd(e,{includeName:t=!1}={}){return e?e.map(n=>K8(n,{includeName:t})).join(t?", ":","):""}function K8(e,{includeName:t}){return e.type.startsWith("tuple")?`(${bd(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}function xr(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 xr(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const s6="2.47.12";let Ya={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${s6}`},ne=class Uh extends Error{constructor(t,n={}){var u;const r=(()=>{var d;return n.cause instanceof Uh?n.cause.details:(d=n.cause)!=null&&d.message?n.cause.message:n.details})(),i=n.cause instanceof Uh&&n.cause.docsPath||n.docsPath,a=(u=Ya.getDocsUrl)==null?void 0:u.call(Ya,{...n,docsPath:i}),c=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...r?[`Details: ${r}`]:[],...Ya.version?[`Version: ${Ya.version}`]:[]].join(`
42
+ `);super(c,n.cause?{cause:n.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=r,this.docsPath=i,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=t,this.version=s6}walk(t){return a6(this,t)}};function a6(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?a6(e.cause,t):t?null:e}class Y8 extends ne{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(`
43
+ `),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class gv extends ne{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(`
44
+ `),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class c6 extends ne{constructor({data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join(`
45
+ `),{metaMessages:[`Params: (${bd(n,{includeName:!0})})`,`Data: ${t} (${r} 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=n,this.size=r}}class Yc extends ne{constructor({cause:t}={}){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError",cause:t})}}class J8 extends ne{constructor({expectedLength:t,givenLength:n,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${n}`].join(`
46
+ `),{name:"AbiEncodingArrayLengthMismatchError"})}}class Z8 extends ne{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${Je(n)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class X8 extends ne{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${n}`].join(`
47
+ `),{name:"AbiEncodingLengthMismatchError"})}}class eE extends ne{constructor(t,{docsPath:n}){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(`
48
+ `),{docsPath:n,name:"AbiErrorInputsNotFoundError"})}}class yv extends ne{constructor(t,{docsPath:n}={}){super([`Error ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(`
49
+ `),{docsPath:n,name:"AbiErrorNotFoundError"})}}class l6 extends ne{constructor(t,{docsPath:n,cause: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://4byte.sourcify.dev/?q=${t}.`].join(`
50
+ `),{docsPath:n,name:"AbiErrorSignatureNotFoundError",cause:r}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class tE extends ne{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t,name:"AbiEventSignatureEmptyTopicsError"})}}class nE extends ne{constructor(t,{docsPath:n}){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://4byte.sourcify.dev/?q=${t}.`].join(`
51
+ `),{docsPath:n,name:"AbiEventSignatureNotFoundError"})}}class vv extends ne{constructor(t,{docsPath:n}={}){super([`Event ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(`
52
+ `),{docsPath:n,name:"AbiEventNotFoundError"})}}class Gs extends ne{constructor(t,{docsPath:n}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
53
+ `),{docsPath:n,name:"AbiFunctionNotFoundError"})}}class u6 extends ne{constructor(t,{docsPath:n}){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(`
54
+ `),{docsPath:n,name:"AbiFunctionOutputsNotFoundError"})}}class rE extends ne{constructor(t,{docsPath:n}){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://4byte.sourcify.dev/?q=${t}.`].join(`
55
+ `),{docsPath:n,name:"AbiFunctionSignatureNotFoundError"})}}class oE extends ne{constructor(t,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${er(t.abiItem)}\`, and`,`\`${n.type}\` in \`${er(n.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}let iE=class extends ne{constructor({expectedSize:t,givenSize:n}){super(`Expected bytes${t}, got bytes${n}.`,{name:"BytesSizeMismatchError"})}};class ed extends ne{constructor({abiItem:t,data:n,params:r,size:i}){super([`Data size of ${i} bytes is too small for non-indexed event parameters.`].join(`
56
+ `),{metaMessages:[`Params: (${bd(r,{includeName:!0})})`,`Data: ${n} (${i} 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=n,this.params=r,this.size=i}}class Gp extends ne{constructor({abiItem:t,param:n}){super([`Expected a topic for indexed event parameter${n.name?` "${n.name}"`:""} on event "${er(t,{includeName:!0})}".`].join(`
57
+ `),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class sE extends ne{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
58
+ `),{docsPath:n,name:"InvalidAbiEncodingType"})}}class aE extends ne{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
59
+ `),{docsPath:n,name:"InvalidAbiDecodingType"})}}let d6=class extends ne{constructor(t){super([`Value "${t}" is not a valid array.`].join(`
60
+ `),{name:"InvalidArrayError"})}};class cE extends ne{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
61
+ `),{name:"InvalidDefinitionTypeError"})}}class KN extends ne{constructor(t){super(`Type "${t}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}let Vt=class extends ne{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"})}},f6=class extends ne{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}},h6=class extends ne{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}};class wv extends ne{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${n} ${r} long, but is ${t} ${r} long.`,{name:"InvalidBytesLengthError"})}}function ra(e,{dir:t,size:n=32}={}){return typeof e=="string"?zo(e,{dir:t,size:n}):lE(e,{dir:t,size:n})}function zo(e,{dir:t,size:n=32}={}){if(n===null)return e;const r=e.replace("0x","");if(r.length>n*2)throw new h6({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[t==="right"?"padEnd":"padStart"](n*2,"0")}`}function lE(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new h6({size:e.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let i=0;i<n;i++){const a=t==="right";r[a?i:n-i-1]=e[a?i:e.length-i-1]}return r}let Kp=class extends ne{constructor({max:t,min:n,signed:r,size:i,value:a}){super(`Number "${a}" is not in safe ${i?`${i*8}-bit ${r?"signed":"unsigned"} `:""}integer range ${t?`(${n} to ${t})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}},uE=class extends ne{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 dE extends ne{constructor(t){super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}let fE=class extends ne{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}};function vn(e,{dir:t="left"}={}){let n=typeof e=="string"?e.replace("0x",""):e,r=0;for(let i=0;i<n.length-1&&n[t==="left"?i:n.length-i-1].toString()==="0";i++)r++;return n=t==="left"?n.slice(r):n.slice(0,n.length-r),typeof e=="string"?(n.length===1&&t==="right"&&(n=`${n}0`),`0x${n.length%2===1?`0${n}`:n}`):n}function Fn(e,{size:t}){if(Je(e)>t)throw new fE({givenSize:Je(e),maxSize:t})}function $t(e,t={}){const{signed:n}=t;t.size&&Fn(e,{size:t.size});const r=BigInt(e);if(!n)return r;const i=(e.length-2)/2,a=(1n<<BigInt(i)*8n-1n)-1n;return r<=a?r:r-BigInt(`0x${"f".padStart(i*2,"f")}`)-1n}function hE(e,t={}){let n=e;if(t.size&&(Fn(n,{size:t.size}),n=vn(n)),vn(n)==="0x00")return!1;if(vn(n)==="0x01")return!0;throw new dE(n)}function tr(e,t={}){const n=$t(e,t),r=Number(n);if(!Number.isSafeInteger(r))throw new Kp({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${n}n`});return r}function p6(e,t={}){let n=nr(e);return t.size&&(Fn(n,{size:t.size}),n=vn(n,{dir:"right"})),new TextDecoder().decode(n)}const pE=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function sn(e,t={}){return typeof e=="number"||typeof e=="bigint"?ae(e,t):typeof e=="string"?Ks(e,t):typeof e=="boolean"?m6(e,t):at(e,t)}function m6(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(Fn(n,{size:t.size}),ra(n,{size:t.size})):n}function at(e,t={}){let n="";for(let i=0;i<e.length;i++)n+=pE[e[i]];const r=`0x${n}`;return typeof t.size=="number"?(Fn(r,{size:t.size}),ra(r,{dir:"right",size:t.size})):r}function ae(e,t={}){const{signed:n,size:r}=t,i=BigInt(e);let a;r?n?a=(1n<<BigInt(r)*8n-1n)-1n:a=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(a=BigInt(Number.MAX_SAFE_INTEGER));const c=typeof a=="bigint"&&n?-a-1n:0;if(a&&i>a||i<c){const d=typeof e=="bigint"?"n":"";throw new Kp({max:a?`${a}${d}`:void 0,min:`${c}${d}`,signed:n,size:r,value:`${e}${d}`})}const u=`0x${(n&&i<0?(1n<<BigInt(r*8))+BigInt(i):i).toString(16)}`;return r?ra(u,{size:r}):u}const mE=new TextEncoder;function Ks(e,t={}){const n=mE.encode(e);return at(n,t)}const gE=new TextEncoder;function oa(e,t={}){return typeof e=="number"||typeof e=="bigint"?vE(e,t):typeof e=="boolean"?yE(e,t):xr(e)?nr(e,t):Pi(e,t)}function yE(e,t={}){const n=new Uint8Array(1);return n[0]=Number(e),typeof t.size=="number"?(Fn(n,{size:t.size}),ra(n,{size:t.size})):n}const Rr={zero:48,nine:57,A:65,F:70,a:97,f:102};function bv(e){if(e>=Rr.zero&&e<=Rr.nine)return e-Rr.zero;if(e>=Rr.A&&e<=Rr.F)return e-(Rr.A-10);if(e>=Rr.a&&e<=Rr.f)return e-(Rr.a-10)}function nr(e,t={}){let n=e;t.size&&(Fn(n,{size:t.size}),n=ra(n,{dir:"right",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const i=r.length/2,a=new Uint8Array(i);for(let c=0,u=0;c<i;c++){const d=bv(r.charCodeAt(u++)),f=bv(r.charCodeAt(u++));if(d===void 0||f===void 0)throw new ne(`Invalid byte sequence ("${r[u-2]}${r[u-1]}" in "${r}").`);a[c]=d*16+f}return a}function vE(e,t){const n=ae(e,t);return nr(n)}function Pi(e,t={}){const n=gE.encode(e);return typeof t.size=="number"?(Fn(n,{size:t.size}),ra(n,{dir:"right",size:t.size})):n}const Iu=BigInt(2**32-1),xv=BigInt(32);function wE(e,t=!1){return t?{h:Number(e&Iu),l:Number(e>>xv&Iu)}:{h:Number(e>>xv&Iu)|0,l:Number(e&Iu)|0}}function g6(e,t=!1){const n=e.length;let r=new Uint32Array(n),i=new Uint32Array(n);for(let a=0;a<n;a++){const{h:c,l:u}=wE(e[a],t);[r[a],i[a]]=[c,u]}return[r,i]}const Cv=(e,t,n)=>e>>>n,Ev=(e,t,n)=>e<<32-n|t>>>n,ws=(e,t,n)=>e>>>n|t<<32-n,bs=(e,t,n)=>e<<32-n|t>>>n,ju=(e,t,n)=>e<<64-n|t>>>n-32,Bu=(e,t,n)=>e>>>n-32|t<<64-n,bE=(e,t,n)=>e<<n|t>>>32-n,xE=(e,t,n)=>t<<n|e>>>32-n,CE=(e,t,n)=>t<<n-32|e>>>64-n,EE=(e,t,n)=>e<<n-32|t>>>64-n;function Nr(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}const AE=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),kE=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,SE=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),IE=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0,jE=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0),BE=(e,t,n,r,i,a)=>t+n+r+i+a+(e/2**32|0)|0,xs=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function _E(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function lc(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Wo(e,...t){if(!_E(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 PE(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");lc(e.outputLen),lc(e.blockLen)}function Ys(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 y6(e,t){Wo(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function TE(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function $o(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function $0(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function fr(e,t){return e<<32-t|e>>>t}const OE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function RE(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function NE(e){for(let t=0;t<e.length;t++)e[t]=RE(e[t]);return e}const Av=OE?e=>e:NE,v6=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",ME=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function nM(e){if(Wo(e),v6)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=ME[e[n]];return t}const Mr={_0:48,_9:57,A:65,F:70,a:97,f:102};function kv(e){if(e>=Mr._0&&e<=Mr._9)return e-Mr._0;if(e>=Mr.A&&e<=Mr.F)return e-(Mr.A-10);if(e>=Mr.a&&e<=Mr.f)return e-(Mr.a-10)}function rM(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(v6)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let i=0,a=0;i<n;i++,a+=2){const c=kv(e.charCodeAt(a)),u=kv(e.charCodeAt(a+1));if(c===void 0||u===void 0){const d=e[a]+e[a+1];throw new Error('hex string expected, got non-hex character "'+d+'" at index '+a)}r[i]=c*16+u}return r}function DE(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function xd(e){return typeof e=="string"&&(e=DE(e)),Wo(e),e}function LE(...e){let t=0;for(let r=0;r<e.length;r++){const i=e[r];Wo(i),t+=i.length}const n=new Uint8Array(t);for(let r=0,i=0;r<e.length;r++){const a=e[r];n.set(a,i),i+=a.length}return n}class Yp{}function Cd(e){const t=r=>e().update(xd(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function FE(e=32){if(xs&&typeof xs.getRandomValues=="function")return xs.getRandomValues(new Uint8Array(e));if(xs&&typeof xs.randomBytes=="function")return Uint8Array.from(xs.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}const zE=BigInt(0),Ja=BigInt(1),UE=BigInt(2),WE=BigInt(7),$E=BigInt(256),qE=BigInt(113),w6=[],b6=[],x6=[];for(let e=0,t=Ja,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],w6.push(2*(5*r+n)),b6.push((e+1)*(e+2)/2%64);let i=zE;for(let a=0;a<7;a++)t=(t<<Ja^(t>>WE)*qE)%$E,t&UE&&(i^=Ja<<(Ja<<BigInt(a))-Ja);x6.push(i)}const C6=g6(x6,!0),HE=C6[0],VE=C6[1],Sv=(e,t,n)=>n>32?CE(e,t,n):bE(e,t,n),Iv=(e,t,n)=>n>32?EE(e,t,n):xE(e,t,n);function QE(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let c=0;c<10;c++)n[c]=e[c]^e[c+10]^e[c+20]^e[c+30]^e[c+40];for(let c=0;c<10;c+=2){const u=(c+8)%10,d=(c+2)%10,f=n[d],p=n[d+1],g=Sv(f,p,1)^n[u],m=Iv(f,p,1)^n[u+1];for(let y=0;y<50;y+=10)e[c+y]^=g,e[c+y+1]^=m}let i=e[2],a=e[3];for(let c=0;c<24;c++){const u=b6[c],d=Sv(i,a,u),f=Iv(i,a,u),p=w6[c];i=e[p],a=e[p+1],e[p]=d,e[p+1]=f}for(let c=0;c<50;c+=10){for(let u=0;u<10;u++)n[u]=e[c+u];for(let u=0;u<10;u++)e[c+u]^=~n[(u+2)%10]&n[(u+4)%10]}e[0]^=HE[r],e[1]^=VE[r]}$o(n)}class Jp extends Yp{constructor(t,n,r,i=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=i,this.rounds=a,lc(r),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=TE(this.state)}clone(){return this._cloneInto()}keccak(){Av(this.state32),QE(this.state32,this.rounds),Av(this.state32),this.posOut=0,this.pos=0}update(t){Ys(this),t=xd(t),Wo(t);const{blockLen:n,state:r}=this,i=t.length;for(let a=0;a<i;){const c=Math.min(n-this.pos,i-a);for(let u=0;u<c;u++)r[this.pos++]^=t[a++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:n,pos:r,blockLen:i}=this;t[r]^=n,(n&128)!==0&&r===i-1&&this.keccak(),t[i-1]^=128,this.keccak()}writeInto(t){Ys(this,!1),Wo(t),this.finish();const n=this.state,{blockLen:r}=this;for(let i=0,a=t.length;i<a;){this.posOut>=r&&this.keccak();const c=Math.min(r-this.posOut,a-i);t.set(n.subarray(this.posOut,this.posOut+c),i),this.posOut+=c,i+=c}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return lc(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(y6(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,$o(this.state)}_cloneInto(t){const{blockLen:n,suffix:r,outputLen:i,rounds:a,enableXOF:c}=this;return t||(t=new Jp(n,r,i,c,a)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=r,t.outputLen=i,t.enableXOF=c,t.destroyed=this.destroyed,t}}const GE=(e,t,n)=>Cd(()=>new Jp(t,e,n)),E6=GE(1,136,256/8);function At(e,t){const n=t||"hex",r=E6(xr(e,{strict:!1})?oa(e):e);return n==="bytes"?r:sn(r)}let Jc=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 n=super.get(t);return super.has(t)&&(super.delete(t),super.set(t,n)),n}set(t,n){if(super.has(t)&&super.delete(t),super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=super.keys().next().value;r!==void 0&&super.delete(r)}return this}};const KE=/^0x[a-fA-F0-9]{40}$/,q0=new Jc(8192);function ct(e,t){const{strict:n=!0}=t??{},r=`${e}.${n}`;if(q0.has(r))return q0.get(r);const i=KE.test(e)?e.toLowerCase()===e?!0:n?Ed(e)===e:!0:!1;return q0.set(r,i),i}const H0=new Jc(8192);function Ed(e,t){if(H0.has(`${e}.${t}`))return H0.get(`${e}.${t}`);const n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=At(Pi(n),"bytes"),i=(t?n.substring(`${t}0x`.length):n).split("");for(let c=0;c<40;c+=2)r[c>>1]>>4>=8&&i[c]&&(i[c]=i[c].toUpperCase()),(r[c>>1]&15)>=8&&i[c+1]&&(i[c+1]=i[c+1].toUpperCase());const a=`0x${i.join("")}`;return H0.set(`${e}.${t}`,a),a}function pt(e,t){if(!ct(e,{strict:!1}))throw new Vt({address:e});return Ed(e,t)}let jv=class extends ne{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},A6=class extends ne{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},YE=class extends ne{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};const JE={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 YE({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new A6({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new jv({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 jv({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 n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+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 n=this.inspectBytes(e);return this.position+=t??e,n},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 Zp(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(JE);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function qo(e,t,n,{strict:r}={}){return xr(e,{strict:!1})?ZE(e,t,n,{strict:r}):I6(e,t,n,{strict:r})}function k6(e,t){if(typeof t=="number"&&t>0&&t>Je(e)-1)throw new f6({offset:t,position:"start",size:Je(e)})}function S6(e,t,n){if(typeof t=="number"&&typeof n=="number"&&Je(e)!==n-t)throw new f6({offset:n,position:"end",size:Je(e)})}function I6(e,t,n,{strict:r}={}){k6(e,t);const i=e.slice(t,n);return r&&S6(i,t,n),i}function ZE(e,t,n,{strict:r}={}){k6(e,t);const i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&S6(i,t,n),i}function XE(e,t={}){typeof t.size<"u"&&Fn(e,{size:t.size});const n=at(e,t);return $t(n,t)}function eA(e,t={}){let n=e;if(typeof t.size<"u"&&(Fn(n,{size:t.size}),n=vn(n)),n.length>1||n[0]>1)throw new uE(n);return!!n[0]}function Qr(e,t={}){typeof t.size<"u"&&Fn(e,{size:t.size});const n=at(e,t);return tr(n,t)}function tA(e,t={}){let n=e;return typeof t.size<"u"&&(Fn(n,{size:t.size}),n=vn(n,{dir:"right"})),new TextDecoder().decode(n)}function Dn(e){return typeof e[0]=="string"?ir(e):nA(e)}function nA(e){let t=0;for(const i of e)t+=i.length;const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function ir(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}const cM=/^(.*)\[([0-9]*)\]$/,rA=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,j6=/^(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 Wi(e,t){if(e.length!==t.length)throw new X8({expectedLength:e.length,givenLength:t.length});const n=oA({params:e,values:t}),r=em(n);return r.length===0?"0x":r}function oA({params:e,values:t}){const n=[];for(let r=0;r<e.length;r++)n.push(Xp({param:e[r],value:t[r]}));return n}function Xp({param:e,value:t}){const n=tm(e.type);if(n){const[r,i]=n;return sA(t,{length:r,param:{...e,type:i}})}if(e.type==="tuple")return dA(t,{param:e});if(e.type==="address")return iA(t);if(e.type==="bool")return cA(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const r=e.type.startsWith("int"),[,,i="256"]=j6.exec(e.type)??[];return lA(t,{signed:r,size:Number(i)})}if(e.type.startsWith("bytes"))return aA(t,{param:e});if(e.type==="string")return uA(t);throw new sE(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function em(e){let t=0;for(let a=0;a<e.length;a++){const{dynamic:c,encoded:u}=e[a];c?t+=32:t+=Je(u)}const n=[],r=[];let i=0;for(let a=0;a<e.length;a++){const{dynamic:c,encoded:u}=e[a];c?(n.push(ae(t+i,{size:32})),r.push(u),i+=Je(u)):n.push(u)}return Dn([...n,...r])}function iA(e){if(!ct(e))throw new Vt({address:e});return{dynamic:!1,encoded:zo(e.toLowerCase())}}function sA(e,{length:t,param:n}){const r=t===null;if(!Array.isArray(e))throw new d6(e);if(!r&&e.length!==t)throw new J8({expectedLength:t,givenLength:e.length,type:`${n.type}[${t}]`});let i=!1;const a=[];for(let c=0;c<e.length;c++){const u=Xp({param:n,value:e[c]});u.dynamic&&(i=!0),a.push(u)}if(r||i){const c=em(a);if(r){const u=ae(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?Dn([u,c]):u}}if(i)return{dynamic:!0,encoded:c}}return{dynamic:!1,encoded:Dn(a.map(({encoded:c})=>c))}}function aA(e,{param:t}){const[,n]=t.type.split("bytes"),r=Je(e);if(!n){let i=e;return r%32!==0&&(i=zo(i,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:Dn([zo(ae(r,{size:32})),i])}}if(r!==Number.parseInt(n,10))throw new Z8({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:zo(e,{dir:"right"})}}function cA(e){if(typeof e!="boolean")throw new ne(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:zo(m6(e))}}function lA(e,{signed:t,size:n=256}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,i=t?-r-1n:0n;if(e>r||e<i)throw new Kp({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:ae(e,{size:32,signed:t})}}function uA(e){const t=Ks(e),n=Math.ceil(Je(t)/32),r=[];for(let i=0;i<n;i++)r.push(zo(qo(t,i*32,(i+1)*32),{dir:"right"}));return{dynamic:!0,encoded:Dn([zo(ae(Je(t),{size:32})),...r])}}function dA(e,{param:t}){let n=!1;const r=[];for(let i=0;i<t.components.length;i++){const a=t.components[i],c=Array.isArray(e)?i:a.name,u=Xp({param:a,value:e[c]});r.push(u),u.dynamic&&(n=!0)}return{dynamic:n,encoded:n?em(r):Dn(r.map(({encoded:i})=>i))}}function tm(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function Zc(e,t){const n=typeof t=="string"?nr(t):t,r=Zp(n);if(Je(n)===0&&e.length>0)throw new Yc;if(Je(t)&&Je(t)<32)throw new c6({data:typeof t=="string"?t:at(t),params:e,size:Je(t)});let i=0;const a=[];for(let c=0;c<e.length;++c){const u=e[c];r.setPosition(i);const[d,f]=_s(r,u,{staticPosition:0});i+=f,a.push(d)}return a}function _s(e,t,{staticPosition:n}){const r=tm(t.type);if(r){const[i,a]=r;return hA(e,{...t,type:a},{length:i,staticPosition:n})}if(t.type==="tuple")return yA(e,t,{staticPosition:n});if(t.type==="address")return fA(e);if(t.type==="bool")return pA(e);if(t.type.startsWith("bytes"))return mA(e,t,{staticPosition:n});if(t.type.startsWith("uint")||t.type.startsWith("int"))return gA(e,t);if(t.type==="string")return vA(e,{staticPosition:n});throw new aE(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const Bv=32,Wh=32;function fA(e){const t=e.readBytes(32);return[Ed(at(I6(t,-20))),32]}function hA(e,t,{length:n,staticPosition:r}){if(!n){const c=Qr(e.readBytes(Wh)),u=r+c,d=u+Bv;e.setPosition(u);const f=Qr(e.readBytes(Bv)),p=uc(t);let g=0;const m=[];for(let y=0;y<f;++y){e.setPosition(d+(p?y*32:g));const[w,b]=_s(e,t,{staticPosition:d});g+=b,m.push(w)}return e.setPosition(r+32),[m,32]}if(uc(t)){const c=Qr(e.readBytes(Wh)),u=r+c,d=[];for(let f=0;f<n;++f){e.setPosition(u+f*32);const[p]=_s(e,t,{staticPosition:u});d.push(p)}return e.setPosition(r+32),[d,32]}let i=0;const a=[];for(let c=0;c<n;++c){const[u,d]=_s(e,t,{staticPosition:r+i});i+=d,a.push(u)}return[a,i]}function pA(e){return[eA(e.readBytes(32),{size:32}),32]}function mA(e,t,{staticPosition:n}){const[r,i]=t.type.split("bytes");if(!i){const c=Qr(e.readBytes(32));e.setPosition(n+c);const u=Qr(e.readBytes(32));if(u===0)return e.setPosition(n+32),["0x",32];const d=e.readBytes(u);return e.setPosition(n+32),[at(d),32]}return[at(e.readBytes(Number.parseInt(i,10),32)),32]}function gA(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),i=e.readBytes(32);return[r>48?XE(i,{signed:n}):Qr(i,{signed:n}),32]}function yA(e,t,{staticPosition:n}){const r=t.components.length===0||t.components.some(({name:c})=>!c),i=r?[]:{};let a=0;if(uc(t)){const c=Qr(e.readBytes(Wh)),u=n+c;for(let d=0;d<t.components.length;++d){const f=t.components[d];e.setPosition(u+a);const[p,g]=_s(e,f,{staticPosition:u});a+=g,i[r?d:f==null?void 0:f.name]=p}return e.setPosition(n+32),[i,32]}for(let c=0;c<t.components.length;++c){const u=t.components[c],[d,f]=_s(e,u,{staticPosition:n});i[r?c:u==null?void 0:u.name]=d,a+=f}return[i,a]}function vA(e,{staticPosition:t}){const n=Qr(e.readBytes(32)),r=t+n;e.setPosition(r);const i=Qr(e.readBytes(32));if(i===0)return e.setPosition(t+32),["",32];const a=e.readBytes(i,32),c=tA(vn(a));return e.setPosition(t+32),[c,32]}function uc(e){var r;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(r=e.components)==null?void 0:r.some(uc);const n=tm(e.type);return!!(n&&uc({...e,type:n[1]}))}const wA=e=>At(oa(e));function bA(e){return wA(e)}const xA="1.2.3";let cn=class $h extends Error{constructor(t,n={}){var c;const r=n.cause instanceof $h?n.cause.details:(c=n.cause)!=null&&c.message?n.cause.message:n.details,i=n.cause instanceof $h&&n.cause.docsPath||n.docsPath,a=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${xA}`].join(`
62
+ `);super(a),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"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=i,this.metaMessages=n.metaMessages,this.shortMessage=t}};function Zr(e,t){const n=e.exec(t);return n==null?void 0:n.groups}const B6=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,_6=/^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)?$/,P6=/^\(.+?\).*?$/,_v=/^tuple(?<array>(\[(\d*)\])*)$/;function qh(e){let t=e.type;if(_v.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let i=0;i<n;i++){const a=e.components[i];t+=qh(a),i<n-1&&(t+=", ")}const r=Zr(_v,e.type);return t+=`)${(r==null?void 0:r.array)||""}`,qh({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function Ss(e){let t="";const n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=qh(i),r!==n-1&&(t+=", ")}return t}function td(e){var t;return e.type==="function"?`function ${e.name}(${Ss(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(t=e.outputs)!=null&&t.length?` returns (${Ss(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${Ss(e.inputs)})`:e.type==="error"?`error ${e.name}(${Ss(e.inputs)})`:e.type==="constructor"?`constructor(${Ss(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}const T6=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function CA(e){return T6.test(e)}function EA(e){return Zr(T6,e)}const O6=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function AA(e){return O6.test(e)}function kA(e){return Zr(O6,e)}const R6=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function SA(e){return R6.test(e)}function IA(e){return Zr(R6,e)}const N6=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function Ad(e){return N6.test(e)}function jA(e){return Zr(N6,e)}const M6=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function BA(e){return M6.test(e)}function _A(e){return Zr(M6,e)}const D6=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function PA(e){return D6.test(e)}function TA(e){return Zr(D6,e)}const OA=/^receive\(\) external payable$/;function RA(e){return OA.test(e)}const Pv=new Set(["memory","indexed","storage","calldata"]),NA=new Set(["indexed"]),Hh=new Set(["calldata","memory","storage"]);class MA extends cn{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 DA extends cn{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 LA extends cn{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 FA extends cn{constructor({params:t}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class zA extends cn{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class UA extends cn{constructor({param:t,name:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${n}" 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 WA extends cn{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class $A extends cn{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class qA extends cn{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 ia extends cn{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class HA extends cn{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class VA extends cn{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 QA extends cn{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 GA extends cn{constructor({current:t,depth:n}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${n>0?"opening":"closing"} parentheses.`],details:`Depth "${n}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}function KA(e,t,n){let r="";if(n)for(const i of Object.entries(n)){if(!i)continue;let a="";for(const c of i[1])a+=`[${c.type}${c.name?`:${c.name}`:""}]`;r+=`(${i[0]}{${a}})`}return t?`${t}:${e}${r}`:`${e}${r}`}const V0=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 Vh(e,t={}){if(SA(e))return YA(e,t);if(AA(e))return JA(e,t);if(CA(e))return ZA(e,t);if(BA(e))return XA(e,t);if(PA(e))return e4(e);if(RA(e))return{type:"receive",stateMutability:"payable"};throw new HA({signature:e})}function YA(e,t={}){const n=IA(e);if(!n)throw new ia({signature:e,type:"function"});const r=yn(n.parameters),i=[],a=r.length;for(let u=0;u<a;u++)i.push(Jr(r[u],{modifiers:Hh,structs:t,type:"function"}));const c=[];if(n.returns){const u=yn(n.returns),d=u.length;for(let f=0;f<d;f++)c.push(Jr(u[f],{modifiers:Hh,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:i,outputs:c}}function JA(e,t={}){const n=kA(e);if(!n)throw new ia({signature:e,type:"event"});const r=yn(n.parameters),i=[],a=r.length;for(let c=0;c<a;c++)i.push(Jr(r[c],{modifiers:NA,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:i}}function ZA(e,t={}){const n=EA(e);if(!n)throw new ia({signature:e,type:"error"});const r=yn(n.parameters),i=[],a=r.length;for(let c=0;c<a;c++)i.push(Jr(r[c],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:i}}function XA(e,t={}){const n=_A(e);if(!n)throw new ia({signature:e,type:"constructor"});const r=yn(n.parameters),i=[],a=r.length;for(let c=0;c<a;c++)i.push(Jr(r[c],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:i}}function e4(e){const t=TA(e);if(!t)throw new ia({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}const t4=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,n4=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,r4=/^u?int$/;function Jr(e,t){var g,m;const n=KA(e,t==null?void 0:t.type,t==null?void 0:t.structs);if(V0.has(n))return V0.get(n);const r=P6.test(e),i=Zr(r?n4:t4,e);if(!i)throw new zA({param:e});if(i.name&&i4(i.name))throw new UA({param:e,name:i.name});const a=i.name?{name:i.name}:{},c=i.modifier==="indexed"?{indexed:!0}:{},u=(t==null?void 0:t.structs)??{};let d,f={};if(r){d="tuple";const y=yn(i.type),w=[],b=y.length;for(let C=0;C<b;C++)w.push(Jr(y[C],{structs:u}));f={components:w}}else if(i.type in u)d="tuple",f={components:u[i.type]};else if(r4.test(i.type))d=`${i.type}256`;else if(i.type==="address payable")d="address";else if(d=i.type,(t==null?void 0:t.type)!=="struct"&&!L6(d))throw new LA({type:d});if(i.modifier){if(!((m=(g=t==null?void 0:t.modifiers)==null?void 0:g.has)!=null&&m.call(g,i.modifier)))throw new WA({param:e,type:t==null?void 0:t.type,modifier:i.modifier});if(Hh.has(i.modifier)&&!s4(d,!!i.array))throw new $A({param:e,type:t==null?void 0:t.type,modifier:i.modifier})}const p={type:`${d}${i.array??""}`,...a,...c,...f};return V0.set(n,p),p}function yn(e,t=[],n="",r=0){const i=e.trim().length;for(let a=0;a<i;a++){const c=e[a],u=e.slice(a+1);switch(c){case",":return r===0?yn(u,[...t,n.trim()]):yn(u,t,`${n}${c}`,r);case"(":return yn(u,t,`${n}${c}`,r+1);case")":return yn(u,t,`${n}${c}`,r-1);default:return yn(u,t,`${n}${c}`,r)}}if(n==="")return t;if(r!==0)throw new GA({current:n,depth:r});return t.push(n.trim()),t}function L6(e){return e==="address"||e==="bool"||e==="function"||e==="string"||B6.test(e)||_6.test(e)}const o4=/^(?: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 i4(e){return e==="address"||e==="bool"||e==="function"||e==="string"||e==="tuple"||B6.test(e)||_6.test(e)||o4.test(e)}function s4(e,t){return t||e==="bytes"||e==="string"||e==="tuple"}function nm(e){const t={},n=e.length;for(let c=0;c<n;c++){const u=e[c];if(!Ad(u))continue;const d=jA(u);if(!d)throw new ia({signature:u,type:"struct"});const f=d.properties.split(";"),p=[],g=f.length;for(let m=0;m<g;m++){const w=f[m].trim();if(!w)continue;const b=Jr(w,{type:"struct"});p.push(b)}if(!p.length)throw new VA({signature:u});t[d.name]=p}const r={},i=Object.entries(t),a=i.length;for(let c=0;c<a;c++){const[u,d]=i[c];r[u]=F6(d,t)}return r}const a4=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function F6(e=[],t={},n=new Set){const r=[],i=e.length;for(let a=0;a<i;a++){const c=e[a];if(P6.test(c.type))r.push(c);else{const d=Zr(a4,c.type);if(!(d!=null&&d.type))throw new qA({abiParameter:c});const{array:f,type:p}=d;if(p in t){if(n.has(p))throw new QA({type:p});r.push({...c,type:`tuple${f??""}`,components:F6(t[p],t,new Set([...n,p]))})}else if(L6(p))r.push(c);else throw new DA({type:p})}}return r}function kd(e){const t=nm(e),n=[],r=e.length;for(let i=0;i<r;i++){const a=e[i];Ad(a)||n.push(Vh(a,t))}return n}function Tv(e){let t;if(typeof e=="string")t=Vh(e);else{const n=nm(e),r=e.length;for(let i=0;i<r;i++){const a=e[i];if(!Ad(a)){t=Vh(a,n);break}}}if(!t)throw new MA({signature:e});return t}function Ov(e){const t=[];if(typeof e=="string"){const n=yn(e),r=n.length;for(let i=0;i<r;i++)t.push(Jr(n[i],{modifiers:Pv}))}else{const n=nm(e),r=e.length;for(let i=0;i<r;i++){const a=e[i];if(Ad(a))continue;const c=yn(a),u=c.length;for(let d=0;d<u;d++)t.push(Jr(c[d],{modifiers:Pv,structs:n}))}}if(t.length===0)throw new FA({params:e});return t}function c4(e){let t=!0,n="",r=0,i="",a=!1;for(let c=0;c<e.length;c++){const u=e[c];if(["(",")",","].includes(u)&&(t=!0),u==="("&&r++,u===")"&&r--,!!t){if(r===0){if(u===" "&&["event","function",""].includes(i))i="";else if(i+=u,u===")"){a=!0;break}continue}if(u===" "){e[c-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}i+=u,n+=u}}if(!a)throw new ne("Unable to normalize signature.");return i}const l4=e=>{const t=typeof e=="string"?e:td(e);return c4(t)};function z6(e){return bA(l4(e))}const Sd=z6,Xc=e=>qo(z6(e),0,4);function $i(e){const{abi:t,args:n=[],name:r}=e,i=xr(r,{strict:!1}),a=t.filter(u=>i?u.type==="function"?Xc(u)===r:u.type==="event"?Sd(u)===r:!1:"name"in u&&u.name===r);if(a.length===0)return;if(a.length===1)return a[0];let c;for(const u of a){if(!("inputs"in u))continue;if(!n||n.length===0){if(!u.inputs||u.inputs.length===0)return u;continue}if(!u.inputs||u.inputs.length===0||u.inputs.length!==n.length)continue;if(n.every((f,p)=>{const g="inputs"in u&&u.inputs[p];return g?Qh(f,g):!1})){if(c&&"inputs"in c&&c.inputs){const f=U6(u.inputs,c.inputs,n);if(f)throw new oE({abiItem:u,type:f[0]},{abiItem:c,type:f[1]})}c=u}}return c||a[0]}function Qh(e,t){const n=typeof e,r=t.type;switch(r){case"address":return ct(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((i,a)=>n==="object"&&Qh(Object.values(e)[a],i)):/^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(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(i=>Qh(i,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function U6(e,t,n){for(const r in e){const i=e[r],a=t[r];if(i.type==="tuple"&&a.type==="tuple"&&"components"in i&&"components"in a)return U6(i.components,a.components,n[r]);const c=[i.type,a.type];if(c.includes("address")&&c.includes("bytes20")?!0:c.includes("address")&&c.includes("string")?ct(n[r],{strict:!1}):c.includes("address")&&c.includes("bytes")?ct(n[r],{strict:!1}):!1)return c}}const Q0="/docs/contract/decodeFunctionResult";function Ko(e){const{abi:t,args:n,functionName:r,data:i}=e;let a=t[0];if(r){const u=$i({abi:t,args:n,name:r});if(!u)throw new Gs(r,{docsPath:Q0});a=u}if(a.type!=="function")throw new Gs(void 0,{docsPath:Q0});if(!a.outputs)throw new u6(a.name,{docsPath:Q0});const c=Zc(a.outputs,i);if(c&&c.length>1)return c;if(c&&c.length===1)return c[0]}const Rv="/docs/contract/encodeFunctionData";function u4(e){const{abi:t,args:n,functionName:r}=e;let i=t[0];if(r){const a=$i({abi:t,args:n,name:r});if(!a)throw new Gs(r,{docsPath:Rv});i=a}if(i.type!=="function")throw new Gs(void 0,{docsPath:Rv});return{abi:[i],functionName:Xc(er(i))}}function xn(e){const{args:t}=e,{abi:n,functionName:r}=(()=>{var u;return e.abi.length===1&&((u=e.functionName)!=null&&u.startsWith("0x"))?e:u4(e)})(),i=n[0],a=r,c="inputs"in i&&i.inputs?Wi(i.inputs,t??[]):void 0;return ir([a,c??"0x"])}class Gh extends ne{constructor({blockNumber:t,chain:n,contract:r}){super(`Chain "${n.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class d4 extends ne{constructor({chain:t,currentChainId:n}){super(`The current chain of the wallet (id: ${n}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID: ${n}`,`Expected Chain ID: ${t.id} – ${t.name}`],name:"ChainMismatchError"})}}class f4 extends ne{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(`
63
+ `),{name:"ChainNotFoundError"})}}class W6 extends ne{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class Id extends ne{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}function sa({blockNumber:e,chain:t,contract:n}){var i;const r=(i=t==null?void 0:t.contracts)==null?void 0:i[n];if(!r)throw new Gh({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new Gh({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}function St(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}const h4={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."},$6={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},p4={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function m4(e){const{abi:t,data:n,cause:r}=e,i=qo(n,0,4);if(i==="0x")throw new Yc({cause:r});const c=[...t||[],$6,p4].find(u=>u.type==="error"&&i===Xc(er(u)));if(!c)throw new l6(i,{docsPath:"/docs/contract/decodeErrorResult",cause:r});return{abiItem:c,args:"inputs"in c&&c.inputs&&c.inputs.length>0?Zc(c.inputs,qo(n,4)):void 0,errorName:c.name}}const kt=(e,t,n)=>JSON.stringify(e,(r,i)=>typeof i=="bigint"?i.toString():i,n);function q6({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((i,a)=>`${r&&i.name?`${i.name}: `:""}${typeof t[a]=="object"?kt(t[a]):t[a]}`).join(", ")})`}const g4={gwei:9,wei:18},y4={ether:-9,wei:9},v4={ether:-18,gwei:-9};function jd(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[i,a]=[n.slice(0,n.length-t),n.slice(n.length-t)];return a=a.replace(/(0+)$/,""),`${r?"-":""}${i||"0"}${a?`.${a}`:""}`}function rm(e,t="wei"){return jd(e,g4[t])}function an(e,t="wei"){return jd(e,y4[t])}class w4 extends ne{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class b4 extends ne{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function Nv(e){return e.reduce((t,{slot:n,value:r})=>`${t} ${n}: ${r}
64
+ `,"")}function x4(e){return e.reduce((t,{address:n,...r})=>{let i=`${t} ${n}:
65
+ `;return r.nonce&&(i+=` nonce: ${r.nonce}
66
+ `),r.balance&&(i+=` balance: ${r.balance}
67
+ `),r.code&&(i+=` code: ${r.code}
68
+ `),r.state&&(i+=` state:
69
+ `,i+=Nv(r.state)),r.stateDiff&&(i+=` stateDiff:
70
+ `,i+=Nv(r.stateDiff)),i},` State Override:
71
+ `).slice(0,-1)}function el(e){const t=Object.entries(e).map(([r,i])=>i===void 0||i===!1?null:[r,i]).filter(Boolean),n=t.reduce((r,[i])=>Math.max(r,i.length),0);return t.map(([r,i])=>` ${`${r}:`.padEnd(n+1)} ${i}`).join(`
72
+ `)}class C4 extends ne{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class E4 extends ne{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",el(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 A4 extends ne{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class k4 extends ne{constructor(t,{account:n,docsPath:r,chain:i,data:a,gas:c,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:p,to:g,value:m}){var w;const y=el({chain:i&&`${i==null?void 0:i.name} (id: ${i==null?void 0:i.id})`,from:n==null?void 0:n.address,to:g,value:typeof m<"u"&&`${rm(m)} ${((w=i==null?void 0:i.nativeCurrency)==null?void 0:w.symbol)||"ETH"}`,data:a,gas:c,gasPrice:typeof u<"u"&&`${an(u)} gwei`,maxFeePerGas:typeof d<"u"&&`${an(d)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${an(f)} gwei`,nonce:p});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",y].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class H6 extends ne{constructor({blockHash:t,blockNumber:n,blockTag:r,hash:i,index:a}){let c="Transaction";r&&a!==void 0&&(c=`Transaction at block time "${r}" at index "${a}"`),t&&a!==void 0&&(c=`Transaction at block hash "${t}" at index "${a}"`),n&&a!==void 0&&(c=`Transaction at block number "${n}" at index "${a}"`),i&&(c=`Transaction with hash "${i}"`),super(`${c} could not be found.`,{name:"TransactionNotFoundError"})}}class V6 extends ne{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 S4 extends ne{constructor({receipt:t}){super(`Transaction with hash "${t.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}}class I4 extends ne{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}const j4=e=>e,om=e=>e;class Q6 extends ne{constructor(t,{account:n,docsPath:r,chain:i,data:a,gas:c,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:p,to:g,value:m,stateOverride:y}){var C;const w=n?St(n):void 0;let b=el({from:w==null?void 0:w.address,to:g,value:typeof m<"u"&&`${rm(m)} ${((C=i==null?void 0:i.nativeCurrency)==null?void 0:C.symbol)||"ETH"}`,data:a,gas:c,gasPrice:typeof u<"u"&&`${an(u)} gwei`,maxFeePerGas:typeof d<"u"&&`${an(d)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${an(f)} gwei`,nonce:p});y&&(b+=`
73
+ ${x4(y)}`),super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",b].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class im extends ne{constructor(t,{abi:n,args:r,contractAddress:i,docsPath:a,functionName:c,sender:u}){const d=$i({abi:n,args:r,name:c}),f=d?q6({abiItem:d,args:r,includeFunctionName:!1,includeName:!1}):void 0,p=d?er(d,{includeName:!0}):void 0,g=el({address:i&&j4(i),function:p,args:f&&f!=="()"&&`${[...Array((c==null?void 0:c.length)??0).keys()].map(()=>" ").join("")}${f}`,sender:u});super(t.shortMessage||`An unknown error occurred while executing the contract function "${c}".`,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],g&&"Contract Call:",g].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=n,this.args=r,this.cause=t,this.contractAddress=i,this.functionName=c,this.sender=u}}class Kh extends ne{constructor({abi:t,data:n,functionName:r,message:i,cause:a}){let c,u,d,f;if(n&&n!=="0x")try{u=m4({abi:t,data:n,cause:a});const{abiItem:g,errorName:m,args:y}=u;if(m==="Error")f=y[0];else if(m==="Panic"){const[w]=y;f=h4[w]}else{const w=g?er(g,{includeName:!0}):void 0,b=g&&y?q6({abiItem:g,args:y,includeFunctionName:!1,includeName:!1}):void 0;d=[w?`Error: ${w}`:"",b&&b!=="()"?` ${[...Array((m==null?void 0:m.length)??0).keys()].map(()=>" ").join("")}${b}`:""]}}catch(g){c=g}else i&&(f=i);let p;c instanceof l6&&(p=c.signature,d=[`Unable to decode signature "${p}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${p}.`]),super(f&&f!=="execution reverted"||p?[`The contract function "${r}" reverted with the following ${p?"signature":"reason"}:`,f||p].join(`
74
+ `):`The contract function "${r}" reverted.`,{cause:c??a,metaMessages:d,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=n,this.reason=f,this.signature=p}}class B4 extends ne{constructor({functionName:t,cause:n}){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",cause:n})}}class _4 extends ne{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 Bd extends ne{constructor({data:t,message:n}){super(n||"",{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 sm(e){var n,r,i,a,c,u;if(!(e instanceof ne))return!1;const t=e.walk(d=>d instanceof Kh);return t instanceof Kh?((n=t.data)==null?void 0:n.errorName)==="HttpError"||((r=t.data)==null?void 0:r.errorName)==="ResolverError"||((i=t.data)==null?void 0:i.errorName)==="ResolverNotContract"||((a=t.data)==null?void 0:a.errorName)==="ResolverNotFound"||((c=t.data)==null?void 0:c.errorName)==="ReverseAddressMismatch"||((u=t.data)==null?void 0:u.errorName)==="UnsupportedResolverProfile":!1}function P4(e){const{abi:t,data:n}=e,r=qo(n,0,4),i=t.find(a=>a.type==="function"&&r===Xc(er(a)));if(!i)throw new rE(r,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:i.name,args:"inputs"in i&&i.inputs&&i.inputs.length>0?Zc(i.inputs,qo(n,4)):void 0}}const G0="/docs/contract/encodeErrorResult";function Mv(e){const{abi:t,errorName:n,args:r}=e;let i=t[0];if(n){const d=$i({abi:t,args:r,name:n});if(!d)throw new yv(n,{docsPath:G0});i=d}if(i.type!=="error")throw new yv(void 0,{docsPath:G0});const a=er(i),c=Xc(a);let u="0x";if(r&&r.length>0){if(!i.inputs)throw new eE(i.name,{docsPath:G0});u=Wi(i.inputs,r)}return ir([c,u])}const K0="/docs/contract/encodeFunctionResult";function T4(e){const{abi:t,functionName:n,result:r}=e;let i=t[0];if(n){const c=$i({abi:t,name:n});if(!c)throw new Gs(n,{docsPath:K0});i=c}if(i.type!=="function")throw new Gs(void 0,{docsPath:K0});if(!i.outputs)throw new u6(i.name,{docsPath:K0});const a=(()=>{if(i.outputs.length===0)return[];if(i.outputs.length===1)return[r];if(Array.isArray(r))return r;throw new d6(r)})();return Wi(i.outputs,a)}const _d="x-batch-gateway:true";async function O4(e){const{data:t,ccipRequest:n}=e,{args:[r]}=P4({abi:zh,data:t}),i=[],a=[];return await Promise.all(r.map(async(c,u)=>{try{a[u]=c.urls.includes(_d)?await O4({data:c.data,ccipRequest:n}):await n(c),i[u]=!1}catch(d){i[u]=!0,a[u]=R4(d)}})),T4({abi:zh,functionName:"query",result:[i,a]})}function R4(e){return e.name==="HttpRequestError"&&e.status?Mv({abi:zh,errorName:"HttpError",args:[e.status,e.shortMessage]}):Mv({abi:[$6],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}function G6(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;const t=`0x${e.slice(1,65)}`;return xr(t)?t:null}function Yh(e){let t=new Uint8Array(32).fill(0);if(!e)return at(t);const n=e.split(".");for(let r=n.length-1;r>=0;r-=1){const i=G6(n[r]),a=i?oa(i):At(Pi(n[r]),"bytes");t=At(Dn([t,a]),"bytes")}return at(t)}function N4(e){return`[${e.slice(2)}]`}function M4(e){const t=new Uint8Array(32).fill(0);return e?G6(e)||At(Pi(e)):at(t)}function am(e){const t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);const n=new Uint8Array(Pi(t).byteLength+2);let r=0;const i=t.split(".");for(let a=0;a<i.length;a++){let c=Pi(i[a]);c.byteLength>255&&(c=Pi(N4(M4(i[a])))),n[r]=c.length,n.set(c,r+1),r+=c.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}function Ee(e,t,n){const r=e[t.name];if(typeof r=="function")return r;const i=e[n];return typeof i=="function"?i:a=>t(e,a)}class ac extends ne{constructor({body:t,cause:n,details:r,headers:i,status:a,url:c}){super("HTTP request failed.",{cause:n,details:r,metaMessages:[a&&`Status: ${a}`,`URL: ${om(c)}`,t&&`Request body: ${kt(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=i,this.status=a,this.url=c}}class cm extends ne{constructor({body:t,error:n,url:r}){super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${om(r)}`,`Request body: ${kt(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}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code,this.data=n.data,this.url=r}}class Dv extends ne{constructor({body:t,url:n}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${om(n)}`,`Request body: ${kt(t)}`],name:"TimeoutError"}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.url=n}}const D4=-1;class ln extends ne{constructor(t,{code:n,docsPath:r,metaMessages:i,name:a,shortMessage:c}){super(c,{cause:t,docsPath:r,metaMessages:i||(t==null?void 0:t.metaMessages),name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||t.name,this.code=t instanceof cm?t.code:n??D4}}class un extends ln{constructor(t,n){super(t,n),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=n.data}}class dc extends ln{constructor(t){super(t,{code:dc.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(dc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class fc extends ln{constructor(t){super(t,{code:fc.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(fc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class hc extends ln{constructor(t,{method:n}={}){super(t,{code:hc.code,name:"MethodNotFoundRpcError",shortMessage:`The method${n?` "${n}"`:""} does not exist / is not available.`})}}Object.defineProperty(hc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class pc extends ln{constructor(t){super(t,{code:pc.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join(`
75
+ `)})}}Object.defineProperty(pc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Oi extends ln{constructor(t){super(t,{code:Oi.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(Oi,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class Ho extends ln{constructor(t){super(t,{code:Ho.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join(`
76
+ `)})}}Object.defineProperty(Ho,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class mc extends ln{constructor(t){super(t,{code:mc.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(mc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class wr extends ln{constructor(t){super(t,{code:wr.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(wr,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class Js extends ln{constructor(t){super(t,{code:Js.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(Js,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class yi extends ln{constructor(t,{method:n}={}){super(t,{code:yi.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${n?` "${n}"`:""} is not supported.`})}}Object.defineProperty(yi,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class Zs extends ln{constructor(t){super(t,{code:Zs.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(Zs,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class gc extends ln{constructor(t){super(t,{code:gc.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(gc,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class We extends un{constructor(t){super(t,{code:We.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(We,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class yc extends un{constructor(t){super(t,{code:yc.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(yc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class vc extends un{constructor(t,{method:n}={}){super(t,{code:vc.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${n?` " ${n}"`:""}.`})}}Object.defineProperty(vc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class wc extends un{constructor(t){super(t,{code:wc.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(wc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class bc extends un{constructor(t){super(t,{code:bc.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(bc,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class wn extends un{constructor(t){super(t,{code:wn.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(wn,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class xc extends un{constructor(t){super(t,{code:xc.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(xc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class Cc extends un{constructor(t){super(t,{code:Cc.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(Cc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class Ec extends un{constructor(t){super(t,{code:Ec.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(Ec,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class Ac extends un{constructor(t){super(t,{code:Ac.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(Ac,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class kc extends un{constructor(t){super(t,{code:kc.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(kc,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class Sc extends un{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 Ic extends un{constructor(t){super(t,{code:Ic.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(Ic,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class Xs extends un{constructor(t){super(t,{code:Xs.code,name:"WalletConnectSessionSettlementError",shortMessage:"WalletConnect session settlement failed."})}}Object.defineProperty(Xs,"code",{enumerable:!0,configurable:!0,writable:!0,value:7e3});class L4 extends ln{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const F4=3;function Ri(e,{abi:t,address:n,args:r,docsPath:i,functionName:a,sender:c}){const u=e instanceof Bd?e:e instanceof ne?e.walk(w=>"data"in w)||e.walk():{},{code:d,data:f,details:p,message:g,shortMessage:m}=u,y=e instanceof Yc?new B4({functionName:a,cause:e}):[F4,Oi.code].includes(d)&&(f||p||g||m)||d===Ho.code&&p==="execution reverted"&&f?new Kh({abi:t,data:typeof f=="object"?f.data:f,functionName:a,message:u instanceof cm?p:m??g,cause:e}):e;return new im(y,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:a,sender:c})}const z4="modulepreload",U4=function(e){return"/"+e},Lv={},de=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let c=function(f){return Promise.all(f.map(p=>Promise.resolve(p).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));i=c(n.map(f=>{if(f=U4(f),f in Lv)return;Lv[f]=!0;const p=f.endsWith(".css"),g=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${g}`))return;const m=document.createElement("link");if(m.rel=p?"stylesheet":z4,p||(m.as="script"),m.crossOrigin="",m.href=f,d&&m.setAttribute("nonce",d),document.head.appendChild(m),p)return new Promise((y,w)=>{m.addEventListener("load",y),m.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${f}`)))})}))}function a(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return i.then(c=>{for(const u of c||[])u.status==="rejected"&&a(u.reason);return t().catch(a)})};/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const lm=BigInt(0),Jh=BigInt(1);function tl(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function um(e){if(!tl(e))throw new Error("Uint8Array expected")}function jc(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function _u(e){const t=e.toString(16);return t.length&1?"0"+t:t}function K6(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?lm:BigInt("0x"+e)}const Y6=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",W4=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Bc(e){if(um(e),Y6)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=W4[e[n]];return t}const Dr={_0:48,_9:57,A:65,F:70,a:97,f:102};function Fv(e){if(e>=Dr._0&&e<=Dr._9)return e-Dr._0;if(e>=Dr.A&&e<=Dr.F)return e-(Dr.A-10);if(e>=Dr.a&&e<=Dr.f)return e-(Dr.a-10)}function nd(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(Y6)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let i=0,a=0;i<n;i++,a+=2){const c=Fv(e.charCodeAt(a)),u=Fv(e.charCodeAt(a+1));if(c===void 0||u===void 0){const d=e[a]+e[a+1];throw new Error('hex string expected, got non-hex character "'+d+'" at index '+a)}r[i]=c*16+u}return r}function Ti(e){return K6(Bc(e))}function J6(e){return um(e),K6(Bc(Uint8Array.from(e).reverse()))}function nl(e,t){return nd(e.toString(16).padStart(t*2,"0"))}function Z6(e,t){return nl(e,t).reverse()}function On(e,t,n){let r;if(typeof t=="string")try{r=nd(t)}catch(a){throw new Error(e+" must be hex string or Uint8Array, cause: "+a)}else if(tl(t))r=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const i=r.length;if(typeof n=="number"&&i!==n)throw new Error(e+" of length "+n+" expected, got "+i);return r}function rd(...e){let t=0;for(let r=0;r<e.length;r++){const i=e[r];um(i),t+=i.length}const n=new Uint8Array(t);for(let r=0,i=0;r<e.length;r++){const a=e[r];n.set(a,i),i+=a.length}return n}const Y0=e=>typeof e=="bigint"&&lm<=e;function dm(e,t,n){return Y0(e)&&Y0(t)&&Y0(n)&&t<=e&&e<n}function Ps(e,t,n,r){if(!dm(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function $4(e){let t;for(t=0;e>lm;e>>=Jh,t+=1);return t}const Pd=e=>(Jh<<BigInt(e))-Jh,J0=e=>new Uint8Array(e),zv=e=>Uint8Array.from(e);function q4(e,t,n){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 n!="function")throw new Error("hmacFn must be a function");let r=J0(e),i=J0(e),a=0;const c=()=>{r.fill(1),i.fill(0),a=0},u=(...g)=>n(i,r,...g),d=(g=J0(0))=>{i=u(zv([0]),g),r=u(),g.length!==0&&(i=u(zv([1]),g),r=u())},f=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let g=0;const m=[];for(;g<t;){r=u();const y=r.slice();m.push(y),g+=r.length}return rd(...m)};return(g,m)=>{c(),d(g);let y;for(;!(y=m(f()));)d();return c(),y}}const H4={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||tl(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function Td(e,t,n={}){const r=(i,a,c)=>{const u=H4[a];if(typeof u!="function")throw new Error("invalid validator function");const d=e[i];if(!(c&&d===void 0)&&!u(d,e))throw new Error("param "+String(i)+" is invalid. Expected "+a+", got "+d)};for(const[i,a]of Object.entries(t))r(i,a,!1);for(const[i,a]of Object.entries(n))r(i,a,!0);return e}function Uv(e){const t=new WeakMap;return(n,...r)=>{const i=t.get(n);if(i!==void 0)return i;const a=e(n,...r);return t.set(n,a),a}}const V4="0.1.1";function Q4(){return V4}let Ne=class Fr extends Error{static setStaticOptions(t){Fr.prototype.docsOrigin=t.docsOrigin,Fr.prototype.showVersion=t.showVersion,Fr.prototype.version=t.version}constructor(t,n={}){const r=(()=>{var p;if(n.cause instanceof Fr){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&"details"in n.cause&&typeof n.cause.details=="string"?n.cause.details:(p=n.cause)!=null&&p.message?n.cause.message:n.details})(),i=n.cause instanceof Fr&&n.cause.docsPath||n.docsPath,a=n.docsOrigin??Fr.prototype.docsOrigin,c=`${a}${i??""}`,u=!!(n.version??Fr.prototype.showVersion),d=n.version??Fr.prototype.version,f=[t||"An error occurred.",...n.metaMessages?["",...n.metaMessages]:[],...r||i||u?["",r?`Details: ${r}`:void 0,i?`See: ${c}`:void 0,u?`Version: ${d}`:void 0]:[]].filter(p=>typeof p=="string").join(`
77
+ `);super(f,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=n.cause,this.details=r,this.docs=c,this.docsOrigin=a,this.docsPath=i,this.shortMessage=t,this.showVersion=u,this.version=d}walk(t){return X6(this,t)}};Object.defineProperty(Ne,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:`ox@${Q4()}`}});Ne.setStaticOptions(Ne.defaultStaticOptions);function X6(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?X6(e.cause,t):t?null:e}function rl(e,t){if(js(e)>t)throw new u7({givenSize:js(e),maxSize:t})}const Lr={zero:48,nine:57,A:65,F:70,a:97,f:102};function Wv(e){if(e>=Lr.zero&&e<=Lr.nine)return e-Lr.zero;if(e>=Lr.A&&e<=Lr.F)return e-(Lr.A-10);if(e>=Lr.a&&e<=Lr.f)return e-(Lr.a-10)}function G4(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;if(e.length>r)throw new d7({size:e.length,targetSize:r,type:"Bytes"});const i=new Uint8Array(r);for(let a=0;a<r;a++){const c=n==="right";i[c?a:r-a-1]=e[c?a:e.length-a-1]}return i}function e2(e,t={}){const{dir:n="left"}=t;let r=e,i=0;for(let a=0;a<r.length-1&&r[n==="left"?a:r.length-a-1].toString()==="0";a++)i++;return r=n==="left"?r.slice(i):r.slice(0,r.length-i),r}function Od(e,t){if(bn(e)>t)throw new y7({givenSize:bn(e),maxSize:t})}function K4(e,t){if(typeof t=="number"&&t>0&&t>bn(e)-1)throw new l2({offset:t,position:"start",size:bn(e)})}function Y4(e,t,n){if(typeof t=="number"&&typeof n=="number"&&bn(e)!==n-t)throw new l2({offset:n,position:"end",size:bn(e)})}function t2(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;const i=e.replace("0x","");if(i.length>r*2)throw new v7({size:Math.ceil(i.length/2),targetSize:r,type:"Hex"});return`0x${i[n==="right"?"padEnd":"padStart"](r*2,"0")}`}const J4="#__bigint";function n2(e,t,n){return JSON.stringify(e,(r,i)=>typeof i=="bigint"?i.toString()+J4:i,n)}const Z4=new TextDecoder,X4=new TextEncoder;function e7(e){return e instanceof Uint8Array?e:typeof e=="string"?r2(e):t7(e)}function t7(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function r2(e,t={}){const{size:n}=t;let r=e;n&&(Od(e,n),r=Mi(e,n));let i=r.slice(2);i.length%2&&(i=`0${i}`);const a=i.length/2,c=new Uint8Array(a);for(let u=0,d=0;u<a;u++){const f=Wv(i.charCodeAt(d++)),p=Wv(i.charCodeAt(d++));if(f===void 0||p===void 0)throw new Ne(`Invalid byte sequence ("${i[d-2]}${i[d-1]}" in "${i}").`);c[u]=f<<4|p}return c}function n7(e,t={}){const{size:n}=t,r=X4.encode(e);return typeof n=="number"?(rl(r,n),r7(r,n)):r}function r7(e,t){return G4(e,{dir:"right",size:t})}function js(e){return e.length}function o7(e,t,n,r={}){const{strict:i}=r;return e.slice(t,n)}function i7(e,t={}){const{size:n}=t;typeof n<"u"&&rl(e,n);const r=or(e,t);return s2(r,t)}function s7(e,t={}){const{size:n}=t;let r=e;if(typeof n<"u"&&(rl(r,n),r=o2(r)),r.length>1||r[0]>1)throw new l7(r);return!!r[0]}function Gr(e,t={}){const{size:n}=t;typeof n<"u"&&rl(e,n);const r=or(e,t);return a2(r,t)}function a7(e,t={}){const{size:n}=t;let r=e;return typeof n<"u"&&(rl(r,n),r=c7(r)),Z4.decode(r)}function o2(e){return e2(e,{dir:"left"})}function c7(e){return e2(e,{dir:"right"})}class l7 extends Ne{constructor(t){super(`Bytes value \`${t}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}let u7=class extends Ne{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},d7=class extends Ne{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}};const f7=new TextEncoder,h7=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function p7(e,t={}){const{strict:n=!1}=t;if(!e)throw new $v(e);if(typeof e!="string")throw new $v(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new qv(e);if(!e.startsWith("0x"))throw new qv(e)}function rr(...e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}function m7(e){return e instanceof Uint8Array?or(e):Array.isArray(e)?or(new Uint8Array(e)):e}function i2(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(Od(n,t.size),Ni(n,t.size)):n}function or(e,t={}){let n="";for(let i=0;i<e.length;i++)n+=h7[e[i]];const r=`0x${n}`;return typeof t.size=="number"?(Od(r,t.size),Mi(r,t.size)):r}function Wt(e,t={}){const{signed:n,size:r}=t,i=BigInt(e);let a;r?n?a=(1n<<BigInt(r)*8n-1n)-1n:a=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(a=BigInt(Number.MAX_SAFE_INTEGER));const c=typeof a=="bigint"&&n?-a-1n:0;if(a&&i>a||i<c){const f=typeof e=="bigint"?"n":"";throw new c2({max:a?`${a}${f}`:void 0,min:`${c}${f}`,signed:n,size:r,value:`${e}${f}`})}const d=`0x${(n&&i<0?BigInt.asUintN(r*8,BigInt(i)):i).toString(16)}`;return r?Ni(d,r):d}function fm(e,t={}){return or(f7.encode(e),t)}function Ni(e,t){return t2(e,{dir:"left",size:t})}function Mi(e,t){return t2(e,{dir:"right",size:t})}function br(e,t,n,r={}){const{strict:i}=r;K4(e,t);const a=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return i&&Y4(a,t,n),a}function bn(e){return Math.ceil((e.length-2)/2)}function s2(e,t={}){const{signed:n}=t;t.size&&Od(e,t.size);const r=BigInt(e);if(!n)return r;const i=(e.length-2)/2,a=(1n<<BigInt(i)*8n)-1n,c=a>>1n;return r<=c?r:r-a-1n}function a2(e,t={}){const{signed:n,size:r}=t;return Number(!n&&!r?e:s2(e,t))}function g7(e,t={}){const{strict:n=!1}=t;try{return p7(e,{strict:n}),!0}catch{return!1}}class c2 extends Ne{constructor({max:t,min:n,signed:r,size:i,value:a}){super(`Number \`${a}\` is not in safe${i?` ${i*8}-bit`:""}${r?" signed":" unsigned"} integer range ${t?`(\`${n}\` to \`${t}\`)`:`(above \`${n}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class $v extends Ne{constructor(t){super(`Value \`${typeof t=="object"?n2(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 qv extends Ne{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 y7 extends Ne{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class l2 extends Ne{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class v7 extends Ne{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function w7(e){return{address:e.address,amount:Wt(e.amount),index:Wt(e.index),validatorIndex:Wt(e.validatorIndex)}}function u2(e){return{...typeof e.baseFeePerGas=="bigint"&&{baseFeePerGas:Wt(e.baseFeePerGas)},...typeof e.blobBaseFee=="bigint"&&{blobBaseFee:Wt(e.blobBaseFee)},...typeof e.feeRecipient=="string"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit=="bigint"&&{gasLimit:Wt(e.gasLimit)},...typeof e.number=="bigint"&&{number:Wt(e.number)},...typeof e.prevRandao=="bigint"&&{prevRandao:Wt(e.prevRandao)},...typeof e.time=="bigint"&&{time:Wt(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(w7)}}}const b7="0x82ad56cb",d2="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",x7="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",C7="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",hm="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033",Z0="/docs/contract/encodeDeployData";function pm(e){const{abi:t,args:n,bytecode:r}=e;if(!n||n.length===0)return r;const i=t.find(c=>"type"in c&&c.type==="constructor");if(!i)throw new Y8({docsPath:Z0});if(!("inputs"in i))throw new gv({docsPath:Z0});if(!i.inputs||i.inputs.length===0)throw new gv({docsPath:Z0});const a=Wi(i.inputs,n);return ir([r,a])}class vi extends ne{constructor({cause:t,message:n}={}){var i;const r=(i=n==null?void 0:n.replace("execution reverted: ",""))==null?void 0:i.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(vi,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(vi,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class Di extends ne{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${an(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(Di,"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 Zh extends ne{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${an(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(Zh,"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 Xh extends ne{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(Xh,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class ep extends ne{constructor({cause:t,nonce:n}={}){super([`Nonce provided for the transaction ${n?`(${n}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
78
+ `),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(ep,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class tp extends ne{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(tp,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class np extends ne{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
79
+ `),{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(np,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class rp extends ne{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(rp,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class op extends ne{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(op,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class ip extends ne{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(ip,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class _c extends ne{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${an(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${an(r)} gwei`:""}).`].join(`
80
+ `),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(_c,"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 ol extends ne{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function Rd(e,t){const n=(e.details||"").toLowerCase(),r=e instanceof ne?e.walk(i=>(i==null?void 0:i.code)===vi.code):e;return r instanceof ne?new vi({cause:e,message:r.details}):vi.nodeMessage.test(n)?new vi({cause:e,message:e.details}):Di.nodeMessage.test(n)?new Di({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Zh.nodeMessage.test(n)?new Zh({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):Xh.nodeMessage.test(n)?new Xh({cause:e,nonce:t==null?void 0:t.nonce}):ep.nodeMessage.test(n)?new ep({cause:e,nonce:t==null?void 0:t.nonce}):tp.nodeMessage.test(n)?new tp({cause:e,nonce:t==null?void 0:t.nonce}):np.nodeMessage.test(n)?new np({cause:e}):rp.nodeMessage.test(n)?new rp({cause:e,gas:t==null?void 0:t.gas}):op.nodeMessage.test(n)?new op({cause:e,gas:t==null?void 0:t.gas}):ip.nodeMessage.test(n)?new ip({cause:e}):_c.nodeMessage.test(n)?new _c({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new ol({cause:e})}function f2(e,{docsPath:t,...n}){const r=(()=>{const i=Rd(e,n);return i instanceof ol?e:i})();return new Q6(r,{docsPath:t,...n})}function il(e,{format:t}){if(!t)return{};const n={};function r(a){const c=Object.keys(a);for(const u of c)u in e&&(n[u]=e[u]),a[u]&&typeof a[u]=="object"&&!Array.isArray(a[u])&&r(a[u])}const i=t(e||{});return r(i),n}function mm(e,t){return({exclude:n,format:r})=>({exclude:n,format:(i,a)=>{const c=t(i,a);if(n)for(const u of n)delete c[u];return{...c,...r(i,a)}},type:e})}const E7={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function aa(e,t){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=A7(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(r=>at(r)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),e.account&&(n.from=e.account.address),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=ae(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=ae(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=ae(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=ae(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=ae(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=ae(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=E7[e.type]),typeof e.value<"u"&&(n.value=ae(e.value)),n}function A7(e){return e.map(t=>({address:t.address,r:t.r?ae(BigInt(t.r)):t.r,s:t.s?ae(BigInt(t.s)):t.s,chainId:ae(t.chainId),nonce:ae(t.nonce),...typeof t.yParity<"u"?{yParity:ae(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:ae(t.v)}:{}}))}function h2(){let e=()=>{},t=()=>{};return{promise:new Promise((r,i)=>{e=r,t=i}),resolve:e,reject:t}}const X0=new Map;function p2({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:i}){const a=async()=>{const p=d();c();const g=p.map(({args:m})=>m);g.length!==0&&e(g).then(m=>{i&&Array.isArray(m)&&m.sort(i);for(let y=0;y<p.length;y++){const{resolve:w}=p[y];w==null||w([m[y],m])}}).catch(m=>{for(let y=0;y<p.length;y++){const{reject:w}=p[y];w==null||w(m)}})},c=()=>X0.delete(t),u=()=>d().map(({args:p})=>p),d=()=>X0.get(t)||[],f=p=>X0.set(t,[...d(),p]);return{flush:c,async schedule(p){const{promise:g,resolve:m,reject:y}=h2();return(n==null?void 0:n([...u(),p]))&&a(),d().length>0?(f({args:p,resolve:m,reject:y}),g):(f({args:p,resolve:m,reject:y}),setTimeout(a,r),g)}}}function Hv(e){if(!(!e||e.length===0))return e.reduce((t,{slot:n,value:r})=>{if(n.length!==66)throw new wv({size:n.length,targetSize:66,type:"hex"});if(r.length!==66)throw new wv({size:r.length,targetSize:66,type:"hex"});return t[n]=r,t},{})}function k7(e){const{balance:t,nonce:n,state:r,stateDiff:i,code:a}=e,c={};if(a!==void 0&&(c.code=a),t!==void 0&&(c.balance=ae(t)),n!==void 0&&(c.nonce=ae(n)),r!==void 0&&(c.state=Hv(r)),i!==void 0){if(c.state)throw new b4;c.stateDiff=Hv(i)}return c}function gm(e){if(!e)return;const t={};for(const{address:n,...r}of e){if(!ct(n,{strict:!1}))throw new Vt({address:n});if(t[n])throw new w4({address:n});t[n]=k7(r)}return t}const Nd=2n**256n-1n;function qi(e){const{account:t,maxFeePerGas:n,maxPriorityFeePerGas:r,to:i}=e,a=t?St(t):void 0;if(a&&!ct(a.address))throw new Vt({address:a.address});if(i&&!ct(i))throw new Vt({address:i});if(n&&n>Nd)throw new Di({maxFeePerGas:n});if(r&&n&&r>n)throw new _c({maxFeePerGas:n,maxPriorityFeePerGas:r})}async function ca(e,t){var G,le,$,X;const{account:n=e.account,authorizationList:r,batch:i=!!((G=e.batch)!=null&&G.multicall),blockNumber:a,blockTag:c=e.experimental_blockTag??"latest",accessList:u,blobs:d,blockOverrides:f,code:p,data:g,factory:m,factoryData:y,gas:w,gasPrice:b,maxFeePerBlobGas:C,maxFeePerGas:A,maxPriorityFeePerGas:I,nonce:k,to:S,value:j,stateOverride:P,..._}=t,T=n?St(n):void 0;if(p&&(m||y))throw new ne("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(p&&S)throw new ne("Cannot provide both `code` & `to` as parameters.");const D=p&&g,Q=m&&y&&S&&g,H=D||Q,Z=D?m2({code:p,data:g}):Q?j7({data:g,factory:m,factoryData:y,to:S}):g;try{qi(t);const F=(typeof a=="bigint"?ae(a):void 0)||c,J=f?u2(f):void 0,Y=gm(P),L=(X=($=(le=e.chain)==null?void 0:le.formatters)==null?void 0:$.transactionRequest)==null?void 0:X.format,we=(L||aa)({...il(_,{format:L}),accessList:u,account:T,authorizationList:r,blobs:d,data:Z,gas:w,gasPrice:b,maxFeePerBlobGas:C,maxFeePerGas:A,maxPriorityFeePerGas:I,nonce:k,to:H?void 0:S,value:j},"call");if(i&&S7({request:we})&&!Y&&!J)try{return await I7(e,{...we,blockNumber:a,blockTag:c})}catch(he){if(!(he instanceof W6)&&!(he instanceof Gh))throw he}const oe=(()=>{const he=[we,F];return Y&&J?[...he,Y,J]:Y?[...he,Y]:J?[...he,{},J]:he})(),ce=await e.request({method:"eth_call",params:oe});return ce==="0x"?{data:void 0}:{data:ce}}catch(te){const F=B7(te),{offchainLookup:J,offchainLookupSignature:Y}=await de(async()=>{const{offchainLookup:L,offchainLookupSignature:ee}=await import("./ccip-DGmcqTDL.js");return{offchainLookup:L,offchainLookupSignature:ee}},[]);if(e.ccipRead!==!1&&(F==null?void 0:F.slice(0,10))===Y&&S)return{data:await J(e,{data:F,to:S})};throw H&&(F==null?void 0:F.slice(0,10))==="0x101bb98d"?new _4({factory:m}):f2(te,{...t,account:T,chain:e.chain})}}function S7({request:e}){const{data:t,to:n,...r}=e;return!(!t||t.startsWith(b7)||!n||Object.values(r).filter(i=>typeof i<"u").length>0)}async function I7(e,t){var b;const{batchSize:n=1024,deployless:r=!1,wait:i=0}=typeof((b=e.batch)==null?void 0:b.multicall)=="object"?e.batch.multicall:{},{blockNumber:a,blockTag:c=e.experimental_blockTag??"latest",data:u,to:d}=t,f=(()=>{if(r)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return sa({blockNumber:a,chain:e.chain,contract:"multicall3"});throw new W6})(),g=(typeof a=="bigint"?ae(a):void 0)||c,{schedule:m}=p2({id:`${e.uid}.${g}`,wait:i,shouldSplitBatch(C){return C.reduce((I,{data:k})=>I+(k.length-2),0)>n*2},fn:async C=>{const A=C.map(S=>({allowFailure:!0,callData:S.data,target:S.to})),I=xn({abi:Qs,args:[A],functionName:"aggregate3"}),k=await e.request({method:"eth_call",params:[{...f===null?{data:m2({code:hm,data:I})}:{to:f,data:I}},g]});return Ko({abi:Qs,args:[A],functionName:"aggregate3",data:k||"0x"})}}),[{returnData:y,success:w}]=await m({data:u,to:d});if(!w)throw new Bd({data:y});return y==="0x"?{data:void 0}:{data:y}}function m2(e){const{code:t,data:n}=e;return pm({abi:kd(["constructor(bytes, bytes)"]),bytecode:d2,args:[t,n]})}function j7(e){const{data:t,factory:n,factoryData:r,to:i}=e;return pm({abi:kd(["constructor(address, bytes, address, bytes)"]),bytecode:x7,args:[i,t,n,r]})}function B7(e){var n;if(!(e instanceof ne))return;const t=e.walk();return typeof(t==null?void 0:t.data)=="object"?(n=t.data)==null?void 0:n.data:t.data}async function Ln(e,t){const{abi:n,address:r,args:i,functionName:a,...c}=t,u=xn({abi:n,args:i,functionName:a});try{const{data:d}=await Ee(e,ca,"call")({...c,data:u,to:r});return Ko({abi:n,args:i,functionName:a,data:d||"0x"})}catch(d){throw Ri(d,{abi:n,address:r,args:i,docsPath:"/docs/contract/readContract",functionName:a})}}async function _7(e,t){const{blockNumber:n,blockTag:r,coinType:i,name:a,gatewayUrls:c,strict:u}=t,{chain:d}=e,f=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!d)throw new Error("client chain not configured. universalResolverAddress is required.");return sa({blockNumber:n,chain:d,contract:"ensUniversalResolver"})})(),p=d==null?void 0:d.ensTlds;if(p&&!p.some(m=>a.endsWith(m)))return null;const g=i!=null?[Yh(a),BigInt(i)]:[Yh(a)];try{const m=xn({abi:pv,functionName:"addr",args:g}),y={address:f,abi:o6,functionName:"resolveWithGateways",args:[sn(am(a)),m,c??[_d]],blockNumber:n,blockTag:r},b=await Ee(e,Ln,"readContract")(y);if(b[0]==="0x")return null;const C=Ko({abi:pv,args:g,functionName:"addr",data:b[0]});return C==="0x"||vn(C)==="0x00"?null:C}catch(m){if(u)throw m;if(sm(m))return null;throw m}}class P7 extends ne{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 Za extends ne{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}}class ym extends ne{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 T7 extends ne{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const O7=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,R7=/^(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>\/.*)?$/,N7=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,M7=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function D7(e){try{const t=await fetch(e,{method:"HEAD"});if(t.status===200){const n=t.headers.get("content-type");return n==null?void 0:n.startsWith("image/")}return!1}catch(t){return typeof t=="object"&&typeof t.response<"u"||!Object.hasOwn(globalThis,"Image")?!1:new Promise(n=>{const r=new Image;r.onload=()=>{n(!0)},r.onerror=()=>{n(!1)},r.src=e})}}function Vv(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function g2({uri:e,gatewayUrls:t}){const n=N7.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};const r=Vv(t==null?void 0:t.ipfs,"https://ipfs.io"),i=Vv(t==null?void 0:t.arweave,"https://arweave.net"),a=e.match(O7),{protocol:c,subpath:u,target:d,subtarget:f=""}=(a==null?void 0:a.groups)||{},p=c==="ipns:/"||u==="ipns/",g=c==="ipfs:/"||u==="ipfs/"||R7.test(e);if(e.startsWith("http")&&!p&&!g){let y=e;return t!=null&&t.arweave&&(y=e.replace(/https:\/\/arweave.net/g,t==null?void 0:t.arweave)),{uri:y,isOnChain:!1,isEncoded:!1}}if((p||g)&&d)return{uri:`${r}/${p?"ipns":"ipfs"}/${d}${f}`,isOnChain:!1,isEncoded:!1};if(c==="ar:/"&&d)return{uri:`${i}/${d}${f||""}`,isOnChain:!1,isEncoded:!1};let m=e.replace(M7,"");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 ym({uri:e})}function y2(e){if(typeof e!="object"||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new P7({data:e});return e.image||e.image_url||e.image_data}async function L7({gatewayUrls:e,uri:t}){try{const n=await fetch(t).then(i=>i.json());return await vm({gatewayUrls:e,uri:y2(n)})}catch{throw new ym({uri:t})}}async function vm({gatewayUrls:e,uri:t}){const{uri:n,isOnChain:r}=g2({uri:t,gatewayUrls:e});if(r||await D7(n))return n;throw new ym({uri:t})}function F7(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[n,r,i]=t.split("/"),[a,c]=n.split(":"),[u,d]=r.split(":");if(!a||a.toLowerCase()!=="eip155")throw new Za({reason:"Only EIP-155 supported"});if(!c)throw new Za({reason:"Chain ID not found"});if(!d)throw new Za({reason:"Contract address not found"});if(!i)throw new Za({reason:"Token ID not found"});if(!u)throw new Za({reason:"ERC namespace not found"});return{chainID:Number.parseInt(c,10),namespace:u.toLowerCase(),contractAddress:d,tokenID:i}}async function z7(e,{nft:t}){if(t.namespace==="erc721")return Ln(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 Ln(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 T7({namespace:t.namespace})}async function U7(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?W7(e,{gatewayUrls:t,record:n}):vm({uri:n,gatewayUrls:t})}async function W7(e,{gatewayUrls:t,record:n}){const r=F7(n),i=await z7(e,{nft:r}),{uri:a,isOnChain:c,isEncoded:u}=g2({uri:i,gatewayUrls:t});if(c&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const f=u?atob(a.replace("data:application/json;base64,","")):a,p=JSON.parse(f);return vm({uri:y2(p),gatewayUrls:t})}let d=r.tokenID;return r.namespace==="erc1155"&&(d=d.replace("0x","").padStart(64,"0")),L7({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,d)})}async function v2(e,t){const{blockNumber:n,blockTag:r,key:i,name:a,gatewayUrls:c,strict:u}=t,{chain:d}=e,f=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!d)throw new Error("client chain not configured. universalResolverAddress is required.");return sa({blockNumber:n,chain:d,contract:"ensUniversalResolver"})})(),p=d==null?void 0:d.ensTlds;if(p&&!p.some(g=>a.endsWith(g)))return null;try{const g={address:f,abi:o6,args:[sn(am(a)),xn({abi:hv,functionName:"text",args:[Yh(a),i]}),c??[_d]],functionName:"resolveWithGateways",blockNumber:n,blockTag:r},y=await Ee(e,Ln,"readContract")(g);if(y[0]==="0x")return null;const w=Ko({abi:hv,functionName:"text",data:y[0]});return w===""?null:w}catch(g){if(u)throw g;if(sm(g))return null;throw g}}async function w2(e,{blockNumber:t,blockTag:n,assetGatewayUrls:r,name:i,gatewayUrls:a,strict:c,universalResolverAddress:u}){const d=await Ee(e,v2,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:i,universalResolverAddress:u,gatewayUrls:a,strict:c});if(!d)return null;try{return await U7(e,{record:d,gatewayUrls:r})}catch{return null}}async function b2(e,t){const{address:n,blockNumber:r,blockTag:i,coinType:a=60n,gatewayUrls:c,strict:u}=t,{chain:d}=e,f=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!d)throw new Error("client chain not configured. universalResolverAddress is required.");return sa({blockNumber:r,chain:d,contract:"ensUniversalResolver"})})();try{const p={address:f,abi:G8,args:[n,a,c??[_d]],functionName:"reverseWithGateways",blockNumber:r,blockTag:i},g=Ee(e,Ln,"readContract"),[m]=await g(p);return m||null}catch(p){if(u)throw p;if(sm(p))return null;throw p}}async function $7(e,t){const{blockNumber:n,blockTag:r,name:i}=t,{chain:a}=e,c=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!a)throw new Error("client chain not configured. universalResolverAddress is required.");return sa({blockNumber:n,chain:a,contract:"ensUniversalResolver"})})(),u=a==null?void 0:a.ensTlds;if(u&&!u.some(f=>i.endsWith(f)))throw new Error(`${i} is not a valid ENS TLD (${u==null?void 0:u.join(", ")}) for chain "${a.name}" (id: ${a.id}).`);const[d]=await Ee(e,Ln,"readContract")({address:c,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[sn(am(i))],blockNumber:n,blockTag:r});return d}async function x2(e,t){var C,A,I;const{account:n=e.account,blockNumber:r,blockTag:i="latest",blobs:a,data:c,gas:u,gasPrice:d,maxFeePerBlobGas:f,maxFeePerGas:p,maxPriorityFeePerGas:g,to:m,value:y,...w}=t,b=n?St(n):void 0;try{qi(t);const S=(typeof r=="bigint"?ae(r):void 0)||i,j=(I=(A=(C=e.chain)==null?void 0:C.formatters)==null?void 0:A.transactionRequest)==null?void 0:I.format,_=(j||aa)({...il(w,{format:j}),account:b,blobs:a,data:c,gas:u,gasPrice:d,maxFeePerBlobGas:f,maxFeePerGas:p,maxPriorityFeePerGas:g,to:m,value:y},"createAccessList"),T=await e.request({method:"eth_createAccessList",params:[_,S]});return{accessList:T.accessList,gasUsed:BigInt(T.gasUsed)}}catch(k){throw f2(k,{...t,account:b,chain:e.chain})}}function Md(e,{method:t}){var r,i;const n={};return e.transport.type==="fallback"&&((i=(r=e.transport).onResponse)==null||i.call(r,({method:a,response:c,status:u,transport:d})=>{u==="success"&&t===a&&(n[c]=d.request)})),(a=>n[a]||e.request)}async function q7(e){const t=Md(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}class H7 extends ne{constructor(t){super(`Filter type "${t}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}const Qv="/docs/contract/encodeEventTopics";function sl(e){var d;const{abi:t,eventName:n,args:r}=e;let i=t[0];if(n){const f=$i({abi:t,name:n});if(!f)throw new vv(n,{docsPath:Qv});i=f}if(i.type!=="event")throw new vv(void 0,{docsPath:Qv});const a=er(i),c=Sd(a);let u=[];if(r&&"inputs"in i){const f=(d=i.inputs)==null?void 0:d.filter(g=>"indexed"in g&&g.indexed),p=Array.isArray(r)?r:Object.values(r).length>0?(f==null?void 0:f.map(g=>r[g.name]))??[]:[];p.length>0&&(u=(f==null?void 0:f.map((g,m)=>Array.isArray(p[m])?p[m].map((y,w)=>Gv({param:g,value:p[m][w]})):typeof p[m]<"u"&&p[m]!==null?Gv({param:g,value:p[m]}):null))??[])}return[c,...u]}function Gv({param:e,value:t}){if(e.type==="string"||e.type==="bytes")return At(oa(t));if(e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/))throw new H7(e.type);return Wi([e],[t])}async function C2(e,t){const{address:n,abi:r,args:i,eventName:a,fromBlock:c,strict:u,toBlock:d}=t,f=Md(e,{method:"eth_newFilter"}),p=a?sl({abi:r,args:i,eventName:a}):void 0,g=await e.request({method:"eth_newFilter",params:[{address:n,fromBlock:typeof c=="bigint"?ae(c):c,toBlock:typeof d=="bigint"?ae(d):d,topics:p}]});return{abi:r,args:i,eventName:a,id:g,request:f(g),strict:!!u,type:"event"}}async function E2(e,{address:t,args:n,event:r,events:i,fromBlock:a,strict:c,toBlock:u}={}){const d=i??(r?[r]:void 0),f=Md(e,{method:"eth_newFilter"});let p=[];d&&(p=[d.flatMap(y=>sl({abi:[y],eventName:y.name,args:n}))],r&&(p=p[0]));const g=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:typeof a=="bigint"?ae(a):a,toBlock:typeof u=="bigint"?ae(u):u,...p.length?{topics:p}:{}}]});return{abi:d,args:n,eventName:r?r.name:void 0,fromBlock:a,id:g,request:f(g),strict:!!c,toBlock:u,type:"event"}}async function A2(e){const t=Md(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}function V7(e){const t=At(`0x${e.substring(4)}`).substring(26);return Ed(`0x${t}`)}async function Q7({hash:e,signature:t}){const n=xr(e)?e:sn(e),{secp256k1:r}=await de(async()=>{const{secp256k1:c}=await Promise.resolve().then(()=>g9);return{secp256k1:c}},void 0);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:f,s:p,v:g,yParity:m}=t,y=Number(m??g),w=Kv(y);return new r.Signature($t(f),$t(p)).addRecoveryBit(w)}const c=xr(t)?t:sn(t);if(Je(c)!==65)throw new Error("invalid signature length");const u=tr(`0x${c.slice(130)}`),d=Kv(u);return r.Signature.fromCompact(c.substring(2,130)).addRecoveryBit(d)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function Kv(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 sp({hash:e,signature:t}){return V7(await Q7({hash:e,signature:t}))}function Vo(e,t="hex"){const n=k2(e),r=Zp(new Uint8Array(n.length));return n.encode(r),t==="hex"?at(r.bytes):r.bytes}function k2(e){return Array.isArray(e)?G7(e.map(t=>k2(t))):K7(e)}function G7(e){const t=e.reduce((i,a)=>i+a.length,0),n=S2(t);return{length:t<=55?1+t:1+n+t,encode(i){t<=55?i.pushByte(192+t):(i.pushByte(247+n),n===1?i.pushUint8(t):n===2?i.pushUint16(t):n===3?i.pushUint24(t):i.pushUint32(t));for(const{encode:a}of e)a(i)}}}function K7(e){const t=typeof e=="string"?nr(e):e,n=S2(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(i){t.length===1&&t[0]<128?i.pushBytes(t):t.length<=55?(i.pushByte(128+t.length),i.pushBytes(t)):(i.pushByte(183+n),n===1?i.pushUint8(t.length):n===2?i.pushUint16(t.length):n===3?i.pushUint24(t.length):i.pushUint32(t.length),i.pushBytes(t))}}}function S2(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 ne("Length is too large.")}function Y7(e){const{chainId:t,nonce:n,to:r}=e,i=e.contractAddress??e.address,a=At(ir(["0x05",Vo([t?ae(t):"0x",i,n?ae(n):"0x"])]));return r==="bytes"?nr(a):a}async function wm(e){const{authorization:t,signature:n}=e;return sp({hash:Y7(t),signature:n??t})}class J7 extends ne{constructor(t,{account:n,docsPath:r,chain:i,data:a,gas:c,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:f,nonce:p,to:g,value:m}){var w;const y=el({from:n==null?void 0:n.address,to:g,value:typeof m<"u"&&`${rm(m)} ${((w=i==null?void 0:i.nativeCurrency)==null?void 0:w.symbol)||"ETH"}`,data:a,gas:c,gasPrice:typeof u<"u"&&`${an(u)} gwei`,maxFeePerGas:typeof d<"u"&&`${an(d)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${an(f)} gwei`,nonce:p});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",y].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function Z7(e,{docsPath:t,...n}){const r=(()=>{const i=Rd(e,n);return i instanceof ol?e:i})();return new J7(r,{docsPath:t,...n})}class I2 extends ne{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class bm extends ne{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class X7 extends ne{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${an(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class j2 extends ne{constructor({blockHash:t,blockNumber:n}){let r="Block";t&&(r=`Block at hash "${t}"`),n&&(r=`Block at number "${n}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}const B2={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function al(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?tr(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?tr(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?B2[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&&(n.authorizationList=tk(e.authorizationList)),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof n.v=="bigint"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type==="legacy"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type==="eip2930"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type==="eip1559"&&delete n.maxFeePerBlobGas,n}const ek=mm("transaction",al);function tk(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 xm(e,t){const n=(e.transactions??[]).map(r=>typeof r=="string"?r:al(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:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const nk=mm("block",xm);async function Zn(e,{blockHash:t,blockNumber:n,blockTag:r=e.experimental_blockTag??"latest",includeTransactions:i}={}){var f,p,g;const a=i??!1,c=n!==void 0?ae(n):void 0;let u=null;if(t?u=await e.request({method:"eth_getBlockByHash",params:[t,a]},{dedupe:!0}):u=await e.request({method:"eth_getBlockByNumber",params:[c||r,a]},{dedupe:!!c}),!u)throw new j2({blockHash:t,blockNumber:n});return(((g=(p=(f=e.chain)==null?void 0:f.formatters)==null?void 0:p.block)==null?void 0:g.format)||xm)(u,"getBlock")}async function Cm(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function rk(e,t){return _2(e,t)}async function _2(e,t){var a,c;const{block:n,chain:r=e.chain,request:i}=t||{};try{const u=((a=r==null?void 0:r.fees)==null?void 0:a.maxPriorityFeePerGas)??((c=r==null?void 0:r.fees)==null?void 0:c.defaultPriorityFee);if(typeof u=="function"){const f=n||await Ee(e,Zn,"getBlock")({}),p=await u({block:f,client:e,request:i});if(p===null)throw new Error;return p}if(typeof u<"u")return u;const d=await e.request({method:"eth_maxPriorityFeePerGas"});return $t(d)}catch{const[u,d]=await Promise.all([n?Promise.resolve(n):Ee(e,Zn,"getBlock")({}),Ee(e,Cm,"getGasPrice")({})]);if(typeof u.baseFeePerGas!="bigint")throw new bm;const f=d-u.baseFeePerGas;return f<0n?0n:f}}async function ok(e,t){return ap(e,t)}async function ap(e,t){var m,y;const{block:n,chain:r=e.chain,request:i,type:a="eip1559"}=t||{},c=await(async()=>{var w,b;return typeof((w=r==null?void 0:r.fees)==null?void 0:w.baseFeeMultiplier)=="function"?r.fees.baseFeeMultiplier({block:n,client:e,request:i}):((b=r==null?void 0:r.fees)==null?void 0:b.baseFeeMultiplier)??1.2})();if(c<1)throw new I2;const d=10**(((m=c.toString().split(".")[1])==null?void 0:m.length)??0),f=w=>w*BigInt(Math.ceil(c*d))/BigInt(d),p=n||await Ee(e,Zn,"getBlock")({});if(typeof((y=r==null?void 0:r.fees)==null?void 0:y.estimateFeesPerGas)=="function"){const w=await r.fees.estimateFeesPerGas({block:n,client:e,multiply:f,request:i,type:a});if(w!==null)return w}if(a==="eip1559"){if(typeof p.baseFeePerGas!="bigint")throw new bm;const w=typeof(i==null?void 0:i.maxPriorityFeePerGas)=="bigint"?i.maxPriorityFeePerGas:await _2(e,{block:p,chain:r,request:i}),b=f(p.baseFeePerGas);return{maxFeePerGas:(i==null?void 0:i.maxFeePerGas)??b+w,maxPriorityFeePerGas:w}}return{gasPrice:(i==null?void 0:i.gasPrice)??f(await Ee(e,Cm,"getGasPrice")({}))}}async function P2(e,{address:t,blockTag:n="latest",blockNumber:r}){const i=await e.request({method:"eth_getTransactionCount",params:[t,typeof r=="bigint"?ae(r):n]},{dedupe:!!r});return tr(i)}function Em(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(a=>nr(a)):e.blobs,i=[];for(const a of r)i.push(Uint8Array.from(t.blobToKzgCommitment(a)));return n==="bytes"?i:i.map(a=>at(a))}function Am(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(c=>nr(c)):e.blobs,i=typeof e.commitments[0]=="string"?e.commitments.map(c=>nr(c)):e.commitments,a=[];for(let c=0;c<r.length;c++){const u=r[c],d=i[c];a.push(Uint8Array.from(t.computeBlobKzgProof(u,d)))}return n==="bytes"?a:a.map(c=>at(c))}function ik(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const i=BigInt(32),a=BigInt(4294967295),c=Number(n>>i&a),u=Number(n&a),d=r?4:0,f=r?0:4;e.setUint32(t+d,c,r),e.setUint32(t+f,u,r)}function sk(e,t,n){return e&t^~e&n}function ak(e,t,n){return e&t^e&n^t&n}class T2 extends Yp{constructor(t,n,r,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=i,this.buffer=new Uint8Array(t),this.view=$0(this.buffer)}update(t){Ys(this),t=xd(t),Wo(t);const{view:n,buffer:r,blockLen:i}=this,a=t.length;for(let c=0;c<a;){const u=Math.min(i-this.pos,a-c);if(u===i){const d=$0(t);for(;i<=a-c;c+=i)this.process(d,c);continue}r.set(t.subarray(c,c+u),this.pos),this.pos+=u,c+=u,this.pos===i&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Ys(this),y6(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:i,isLE:a}=this;let{pos:c}=this;n[c++]=128,$o(this.buffer.subarray(c)),this.padOffset>i-c&&(this.process(r,0),c=0);for(let g=c;g<i;g++)n[g]=0;ik(r,i-8,BigInt(this.length*8),a),this.process(r,0);const u=$0(t),d=this.outputLen;if(d%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const f=d/4,p=this.get();if(f>p.length)throw new Error("_sha2: outputLen bigger than state");for(let g=0;g<f;g++)u.setUint32(4*g,p[g],a)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:i,finished:a,destroyed:c,pos:u}=this;return t.destroyed=c,t.finished=a,t.length=i,t.pos=u,i%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}}const Ao=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Tt=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),Ot=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),ck=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]),ko=new Uint32Array(64);class lk extends T2{constructor(t=32){super(64,t,8,!1),this.A=Ao[0]|0,this.B=Ao[1]|0,this.C=Ao[2]|0,this.D=Ao[3]|0,this.E=Ao[4]|0,this.F=Ao[5]|0,this.G=Ao[6]|0,this.H=Ao[7]|0}get(){const{A:t,B:n,C:r,D:i,E:a,F:c,G:u,H:d}=this;return[t,n,r,i,a,c,u,d]}set(t,n,r,i,a,c,u,d){this.A=t|0,this.B=n|0,this.C=r|0,this.D=i|0,this.E=a|0,this.F=c|0,this.G=u|0,this.H=d|0}process(t,n){for(let g=0;g<16;g++,n+=4)ko[g]=t.getUint32(n,!1);for(let g=16;g<64;g++){const m=ko[g-15],y=ko[g-2],w=fr(m,7)^fr(m,18)^m>>>3,b=fr(y,17)^fr(y,19)^y>>>10;ko[g]=b+ko[g-7]+w+ko[g-16]|0}let{A:r,B:i,C:a,D:c,E:u,F:d,G:f,H:p}=this;for(let g=0;g<64;g++){const m=fr(u,6)^fr(u,11)^fr(u,25),y=p+m+sk(u,d,f)+ck[g]+ko[g]|0,b=(fr(r,2)^fr(r,13)^fr(r,22))+ak(r,i,a)|0;p=f,f=d,d=u,u=c+y|0,c=a,a=i,i=r,r=y+b|0}r=r+this.A|0,i=i+this.B|0,a=a+this.C|0,c=c+this.D|0,u=u+this.E|0,d=d+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(r,i,a,c,u,d,f,p)}roundClean(){$o(ko)}destroy(){this.set(0,0,0,0,0,0,0,0),$o(this.buffer)}}const O2=g6(["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))),uk=O2[0],dk=O2[1],So=new Uint32Array(80),Io=new Uint32Array(80);class R2 extends T2{constructor(t=64){super(128,t,16,!1),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}get(){const{Ah:t,Al:n,Bh:r,Bl:i,Ch:a,Cl:c,Dh:u,Dl:d,Eh:f,El:p,Fh:g,Fl:m,Gh:y,Gl:w,Hh:b,Hl:C}=this;return[t,n,r,i,a,c,u,d,f,p,g,m,y,w,b,C]}set(t,n,r,i,a,c,u,d,f,p,g,m,y,w,b,C){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=i|0,this.Ch=a|0,this.Cl=c|0,this.Dh=u|0,this.Dl=d|0,this.Eh=f|0,this.El=p|0,this.Fh=g|0,this.Fl=m|0,this.Gh=y|0,this.Gl=w|0,this.Hh=b|0,this.Hl=C|0}process(t,n){for(let k=0;k<16;k++,n+=4)So[k]=t.getUint32(n),Io[k]=t.getUint32(n+=4);for(let k=16;k<80;k++){const S=So[k-15]|0,j=Io[k-15]|0,P=ws(S,j,1)^ws(S,j,8)^Cv(S,j,7),_=bs(S,j,1)^bs(S,j,8)^Ev(S,j,7),T=So[k-2]|0,D=Io[k-2]|0,Q=ws(T,D,19)^ju(T,D,61)^Cv(T,D,6),H=bs(T,D,19)^Bu(T,D,61)^Ev(T,D,6),Z=SE(_,H,Io[k-7],Io[k-16]),G=IE(Z,P,Q,So[k-7],So[k-16]);So[k]=G|0,Io[k]=Z|0}let{Ah:r,Al:i,Bh:a,Bl:c,Ch:u,Cl:d,Dh:f,Dl:p,Eh:g,El:m,Fh:y,Fl:w,Gh:b,Gl:C,Hh:A,Hl:I}=this;for(let k=0;k<80;k++){const S=ws(g,m,14)^ws(g,m,18)^ju(g,m,41),j=bs(g,m,14)^bs(g,m,18)^Bu(g,m,41),P=g&y^~g&b,_=m&w^~m&C,T=jE(I,j,_,dk[k],Io[k]),D=BE(T,A,S,P,uk[k],So[k]),Q=T|0,H=ws(r,i,28)^ju(r,i,34)^ju(r,i,39),Z=bs(r,i,28)^Bu(r,i,34)^Bu(r,i,39),G=r&a^r&u^a&u,le=i&c^i&d^c&d;A=b|0,I=C|0,b=y|0,C=w|0,y=g|0,w=m|0,{h:g,l:m}=Nr(f|0,p|0,D|0,Q|0),f=u|0,p=d|0,u=a|0,d=c|0,a=r|0,c=i|0;const $=AE(Q,Z,le);r=kE($,D,H,G),i=$|0}({h:r,l:i}=Nr(this.Ah|0,this.Al|0,r|0,i|0)),{h:a,l:c}=Nr(this.Bh|0,this.Bl|0,a|0,c|0),{h:u,l:d}=Nr(this.Ch|0,this.Cl|0,u|0,d|0),{h:f,l:p}=Nr(this.Dh|0,this.Dl|0,f|0,p|0),{h:g,l:m}=Nr(this.Eh|0,this.El|0,g|0,m|0),{h:y,l:w}=Nr(this.Fh|0,this.Fl|0,y|0,w|0),{h:b,l:C}=Nr(this.Gh|0,this.Gl|0,b|0,C|0),{h:A,l:I}=Nr(this.Hh|0,this.Hl|0,A|0,I|0),this.set(r,i,a,c,u,d,f,p,g,m,y,w,b,C,A,I)}roundClean(){$o(So,Io)}destroy(){$o(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class fk extends R2{constructor(){super(48),this.Ah=Tt[0]|0,this.Al=Tt[1]|0,this.Bh=Tt[2]|0,this.Bl=Tt[3]|0,this.Ch=Tt[4]|0,this.Cl=Tt[5]|0,this.Dh=Tt[6]|0,this.Dl=Tt[7]|0,this.Eh=Tt[8]|0,this.El=Tt[9]|0,this.Fh=Tt[10]|0,this.Fl=Tt[11]|0,this.Gh=Tt[12]|0,this.Gl=Tt[13]|0,this.Hh=Tt[14]|0,this.Hl=Tt[15]|0}}const N2=Cd(()=>new lk),dM=Cd(()=>new R2),fM=Cd(()=>new fk),hk=N2;function pk(e,t){return hk(xr(e,{strict:!1})?oa(e):e)}function mk(e){const{commitment:t,version:n=1}=e,r=e.to??(typeof t=="string"?"hex":"bytes"),i=pk(t);return i.set([n],0),r==="bytes"?i:at(i)}function M2(e){const{commitments:t,version:n}=e,r=e.to??(typeof t[0]=="string"?"hex":"bytes"),i=[];for(const a of t)i.push(mk({commitment:a,to:r,version:n}));return i}const Yv=6,D2=32,km=4096,L2=D2*km,Jv=L2*Yv-1-1*km*Yv,F2=1;class gk extends ne{constructor({maxSize:t,size:n}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${n} bytes`],name:"BlobSizeTooLargeError"})}}class z2 extends ne{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class yk extends ne{constructor({hash:t,size:n}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${n}`],name:"InvalidVersionedHashSizeError"})}}class vk extends ne{constructor({hash:t,version:n}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${F2}`,`Received: ${n}`],name:"InvalidVersionedHashVersionError"})}}function wk(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),n=typeof e.data=="string"?nr(e.data):e.data,r=Je(n);if(!r)throw new z2;if(r>Jv)throw new gk({maxSize:Jv,size:r});const i=[];let a=!0,c=0;for(;a;){const u=Zp(new Uint8Array(L2));let d=0;for(;d<km;){const f=n.slice(c,c+(D2-1));if(u.pushByte(0),u.pushBytes(f),f.length<31){u.pushByte(128),a=!1;break}d++,c+=31}i.push(u)}return t==="bytes"?i.map(u=>u.bytes):i.map(u=>at(u.bytes))}function U2(e){const{data:t,kzg:n,to:r}=e,i=e.blobs??wk({data:t,to:r}),a=e.commitments??Em({blobs:i,kzg:n,to:r}),c=e.proofs??Am({blobs:i,commitments:a,kzg:n,to:r}),u=[];for(let d=0;d<i.length;d++)u.push({blob:i[d],commitment:a[d],proof:c[d]});return u}function W2(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 E4({transaction:e})}function $2(e,{docsPath:t,...n}){const r=(()=>{const i=Rd(e,n);return i instanceof ol?e:i})();return new k4(r,{docsPath:t,...n})}async function Dd(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return tr(t)}async function q2(e,t){var T,D,Q,H,Z;const{account:n=e.account,accessList:r,authorizationList:i,chain:a=e.chain,blobVersionedHashes:c,blobs:u,data:d,gas:f,gasPrice:p,maxFeePerBlobGas:g,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:w,nonceManager:b,to:C,type:A,value:I,...k}=t,S=await(async()=>{if(!n||!b||typeof w<"u")return w;const G=St(n),le=a?a.id:await Ee(e,Dd,"getChainId")({});return await b.consume({address:G.address,chainId:le,client:e})})();qi(t);const j=(D=(T=a==null?void 0:a.formatters)==null?void 0:T.transactionRequest)==null?void 0:D.format,_=(j||aa)({...il(k,{format:j}),account:n?St(n):void 0,accessList:r,authorizationList:i,blobs:u,blobVersionedHashes:c,data:d,gas:f,gasPrice:p,maxFeePerBlobGas:g,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:S,to:C,type:A,value:I},"fillTransaction");try{const G=await e.request({method:"eth_fillTransaction",params:[_]}),$=(((H=(Q=a==null?void 0:a.formatters)==null?void 0:Q.transaction)==null?void 0:H.format)||al)(G.tx);delete $.blockHash,delete $.blockNumber,delete $.r,delete $.s,delete $.transactionIndex,delete $.v,delete $.yParity,$.data=$.input,$.gas&&($.gas=t.gas??$.gas),$.gasPrice&&($.gasPrice=t.gasPrice??$.gasPrice),$.maxFeePerBlobGas&&($.maxFeePerBlobGas=t.maxFeePerBlobGas??$.maxFeePerBlobGas),$.maxFeePerGas&&($.maxFeePerGas=t.maxFeePerGas??$.maxFeePerGas),$.maxPriorityFeePerGas&&($.maxPriorityFeePerGas=t.maxPriorityFeePerGas??$.maxPriorityFeePerGas),$.nonce&&($.nonce=t.nonce??$.nonce);const X=await(async()=>{var Y,L;if(typeof((Y=a==null?void 0:a.fees)==null?void 0:Y.baseFeeMultiplier)=="function"){const ee=await Ee(e,Zn,"getBlock")({});return a.fees.baseFeeMultiplier({block:ee,client:e,request:t})}return((L=a==null?void 0:a.fees)==null?void 0:L.baseFeeMultiplier)??1.2})();if(X<1)throw new I2;const F=10**(((Z=X.toString().split(".")[1])==null?void 0:Z.length)??0),J=Y=>Y*BigInt(Math.ceil(X*F))/BigInt(F);return $.maxFeePerGas&&!t.maxFeePerGas&&($.maxFeePerGas=J($.maxFeePerGas)),$.gasPrice&&!t.gasPrice&&($.gasPrice=J($.gasPrice)),{raw:G.raw,transaction:{from:_.from,...$}}}catch(G){throw $2(G,{...t,chain:e.chain})}}const H2=["blobVersionedHashes","chainId","fees","gas","nonce","type"],Zv=new Map,eh=new Jc(128);async function Sm(e,t){var S,j,P;let n=t;n.account??(n.account=e.account),n.parameters??(n.parameters=H2);const{account:r,chain:i=e.chain,nonceManager:a,parameters:c}=n,u=(()=>{if(typeof(i==null?void 0:i.prepareTransactionRequest)=="function")return{fn:i.prepareTransactionRequest,runAt:["beforeFillTransaction"]};if(Array.isArray(i==null?void 0:i.prepareTransactionRequest))return{fn:i.prepareTransactionRequest[0],runAt:i.prepareTransactionRequest[1].runAt}})();let d;async function f(){return d||(typeof n.chainId<"u"?n.chainId:i?i.id:(d=await Ee(e,Dd,"getChainId")({}),d))}const p=r&&St(r);let g=n.nonce;if(c.includes("nonce")&&typeof g>"u"&&p&&a){const _=await f();g=await a.consume({address:p.address,chainId:_,client:e})}u!=null&&u.fn&&((S=u.runAt)!=null&&S.includes("beforeFillTransaction"))&&(n=await u.fn({...n,chain:i},{phase:"beforeFillTransaction"}),g??(g=n.nonce));const y=((c.includes("blobVersionedHashes")||c.includes("sidecars"))&&n.kzg&&n.blobs||eh.get(e.uid)===!1||!["fees","gas"].some(T=>c.includes(T))?!1:!!(c.includes("chainId")&&typeof n.chainId!="number"||c.includes("nonce")&&typeof g!="number"||c.includes("fees")&&typeof n.gasPrice!="bigint"&&(typeof n.maxFeePerGas!="bigint"||typeof n.maxPriorityFeePerGas!="bigint")||c.includes("gas")&&typeof n.gas!="bigint"))?await Ee(e,q2,"fillTransaction")({...n,nonce:g}).then(_=>{const{chainId:T,from:D,gas:Q,gasPrice:H,nonce:Z,maxFeePerBlobGas:G,maxFeePerGas:le,maxPriorityFeePerGas:$,type:X,...te}=_.transaction;return eh.set(e.uid,!0),{...n,...D?{from:D}:{},...X&&!n.type?{type:X}:{},...typeof T<"u"?{chainId:T}:{},...typeof Q<"u"?{gas:Q}:{},...typeof H<"u"?{gasPrice:H}:{},...typeof Z<"u"?{nonce:Z}:{},...typeof G<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxFeePerBlobGas:G}:{},...typeof le<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxFeePerGas:le}:{},...typeof $<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxPriorityFeePerGas:$}:{},..."nonceKey"in te&&typeof te.nonceKey<"u"?{nonceKey:te.nonceKey}:{},..."keyAuthorization"in te&&typeof te.keyAuthorization<"u"&&te.keyAuthorization!==null&&!("keyAuthorization"in n)?{keyAuthorization:te.keyAuthorization}:{},..."feePayerSignature"in te&&typeof te.feePayerSignature<"u"&&te.feePayerSignature!==null?{feePayerSignature:te.feePayerSignature}:{}}}).catch(_=>{var H,Z;const T=_;if(T.name!=="TransactionExecutionError")return n;if((H=T.walk)==null?void 0:H.call(T,G=>G.name==="ExecutionRevertedError"))throw _;return((Z=T.walk)==null?void 0:Z.call(T,G=>{var $;const le=G;return le.name==="MethodNotFoundRpcError"||le.name==="MethodNotSupportedRpcError"||(($=le.message)==null?void 0:$.includes("eth_fillTransaction is not available"))}))&&eh.set(e.uid,!1),n}):n;g??(g=y.nonce),n={...y,...p?{from:p==null?void 0:p.address}:{},...g?{nonce:g}:{}};const{blobs:w,gas:b,kzg:C,type:A}=n;u!=null&&u.fn&&((j=u.runAt)!=null&&j.includes("beforeFillParameters"))&&(n=await u.fn({...n,chain:i},{phase:"beforeFillParameters"}));let I;async function k(){return I||(I=await Ee(e,Zn,"getBlock")({blockTag:"latest"}),I)}if(c.includes("nonce")&&typeof g>"u"&&p&&!a&&(n.nonce=await Ee(e,P2,"getTransactionCount")({address:p.address,blockTag:"pending"})),(c.includes("blobVersionedHashes")||c.includes("sidecars"))&&w&&C){const _=Em({blobs:w,kzg:C});if(c.includes("blobVersionedHashes")){const T=M2({commitments:_,to:"hex"});n.blobVersionedHashes=T}if(c.includes("sidecars")){const T=Am({blobs:w,commitments:_,kzg:C}),D=U2({blobs:w,commitments:_,proofs:T,to:"hex"});n.sidecars=D}}if(c.includes("chainId")&&(n.chainId=await f()),(c.includes("fees")||c.includes("type"))&&typeof A>"u")try{n.type=W2(n)}catch{let _=Zv.get(e.uid);if(typeof _>"u"){const T=await k();_=typeof(T==null?void 0:T.baseFeePerGas)=="bigint",Zv.set(e.uid,_)}n.type=_?"eip1559":"legacy"}if(c.includes("fees"))if(n.type!=="legacy"&&n.type!=="eip2930"){if(typeof n.maxFeePerGas>"u"||typeof n.maxPriorityFeePerGas>"u"){const _=await k(),{maxFeePerGas:T,maxPriorityFeePerGas:D}=await ap(e,{block:_,chain:i,request:n});if(typeof n.maxPriorityFeePerGas>"u"&&n.maxFeePerGas&&n.maxFeePerGas<D)throw new X7({maxPriorityFeePerGas:D});n.maxPriorityFeePerGas=D,n.maxFeePerGas=T}}else{if(typeof n.maxFeePerGas<"u"||typeof n.maxPriorityFeePerGas<"u")throw new bm;if(typeof n.gasPrice>"u"){const _=await k(),{gasPrice:T}=await ap(e,{block:_,chain:i,request:n,type:"legacy"});n.gasPrice=T}}return c.includes("gas")&&typeof b>"u"&&(n.gas=await Ee(e,Im,"estimateGas")({...n,account:p,prepare:(p==null?void 0:p.type)==="local"?[]:["blobVersionedHashes"]})),u!=null&&u.fn&&((P=u.runAt)!=null&&P.includes("afterFillParameters"))&&(n=await u.fn({...n,chain:i},{phase:"afterFillParameters"})),qi(n),delete n.parameters,n}async function Im(e,t){var c,u,d;const{account:n=e.account,prepare:r=!0}=t,i=n?St(n):void 0,a=(()=>{if(Array.isArray(r))return r;if((i==null?void 0:i.type)!=="local")return["blobVersionedHashes"]})();try{const f=await(async()=>{if(t.to)return t.to;if(t.authorizationList&&t.authorizationList.length>0)return await wm({authorization:t.authorizationList[0]}).catch(()=>{throw new ne("`to` is required. Could not infer from `authorizationList`")})})(),{accessList:p,authorizationList:g,blobs:m,blobVersionedHashes:y,blockNumber:w,blockTag:b,data:C,gas:A,gasPrice:I,maxFeePerBlobGas:k,maxFeePerGas:S,maxPriorityFeePerGas:j,nonce:P,value:_,stateOverride:T,...D}=r?await Sm(e,{...t,parameters:a,to:f}):t;if(A&&t.gas!==A)return A;const H=(typeof w=="bigint"?ae(w):void 0)||b,Z=gm(T);qi(t);const G=(d=(u=(c=e.chain)==null?void 0:c.formatters)==null?void 0:u.transactionRequest)==null?void 0:d.format,$=(G||aa)({...il(D,{format:G}),account:i,accessList:p,authorizationList:g,blobs:m,blobVersionedHashes:y,data:C,gasPrice:I,maxFeePerBlobGas:k,maxFeePerGas:S,maxPriorityFeePerGas:j,nonce:P,to:f,value:_},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:Z?[$,H??e.experimental_blockTag??"latest",Z]:H?[$,H]:[$]}))}catch(f){throw Z7(f,{...t,account:i,chain:e.chain})}}async function bk(e,t){var f;const{abi:n,address:r,args:i,functionName:a,dataSuffix:c=typeof e.dataSuffix=="string"?e.dataSuffix:(f=e.dataSuffix)==null?void 0:f.value,...u}=t,d=xn({abi:n,args:i,functionName:a});try{return await Ee(e,Im,"estimateGas")({data:`${d}${c?c.replace("0x",""):""}`,to:r,...u})}catch(p){const g=u.account?St(u.account):void 0;throw Ri(p,{abi:n,address:r,args:i,docsPath:"/docs/contract/estimateContractGas",functionName:a,sender:g==null?void 0:g.address})}}async function V2(e,{address:t,blockNumber:n,blockTag:r=e.experimental_blockTag??"latest"}){var c,u,d;if((c=e.batch)!=null&&c.multicall&&((d=(u=e.chain)==null?void 0:u.contracts)!=null&&d.multicall3)){const f=e.chain.contracts.multicall3.address,p=xn({abi:Qs,functionName:"getEthBalance",args:[t]}),{data:g}=await Ee(e,ca,"call")({to:f,data:p,blockNumber:n,blockTag:r});return Ko({abi:Qs,functionName:"getEthBalance",args:[t],data:g||"0x"})}const i=typeof n=="bigint"?ae(n):void 0,a=await e.request({method:"eth_getBalance",params:[t,i||r]});return BigInt(a)}async function xk(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}const Ck=new Map,Ek=new Map;function Ak(e){const t=(i,a)=>({clear:()=>a.delete(i),get:()=>a.get(i),set:c=>a.set(i,c)}),n=t(e,Ck),r=t(e,Ek);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}async function kk(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){const r=Ak(t),i=r.response.get();if(i&&n>0&&Date.now()-i.created.getTime()<n)return i.data;let a=r.promise.get();a||(a=e(),r.promise.set(a));try{const c=await a;return r.response.set({created:new Date,data:c}),c}finally{r.promise.clear()}}const Sk=e=>`blockNumber.${e}`;async function cl(e,{cacheTime:t=e.cacheTime}={}){const n=await kk(()=>e.request({method:"eth_blockNumber"}),{cacheKey:Sk(e.uid),cacheTime:t});return BigInt(n)}async function Ik(e,{blockHash:t,blockNumber:n,blockTag:r="latest"}={}){const i=n!==void 0?ae(n):void 0;let a;return t?a=await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):a=await e.request({method:"eth_getBlockTransactionCountByNumber",params:[i||r]},{dedupe:!!i}),tr(a)}async function od(e,{address:t,blockNumber:n,blockTag:r="latest"}){const i=n!==void 0?ae(n):void 0,a=await e.request({method:"eth_getCode",params:[t,i||r]},{dedupe:!!i});if(a!=="0x")return a}function Pc(e,t){if(!ct(e,{strict:!1}))throw new Vt({address:e});if(!ct(t,{strict:!1}))throw new Vt({address:t});return e.toLowerCase()===t.toLowerCase()}function Cr(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}const Xv="/docs/contract/decodeEventLog";function id(e){const{abi:t,data:n,strict:r,topics:i}=e,a=r??!0,[c,...u]=i;if(!c)throw new tE({docsPath:Xv});const d=t.find(A=>A.type==="event"&&c===Sd(er(A)));if(!(d&&"name"in d)||d.type!=="event")throw new nE(c,{docsPath:Xv});const{name:f,inputs:p}=d,g=p==null?void 0:p.some(A=>!("name"in A&&A.name)),m=g?[]:{},y=p.map((A,I)=>[A,I]).filter(([A])=>"indexed"in A&&A.indexed),w=[];for(let A=0;A<y.length;A++){const[I,k]=y[A],S=u[A];if(!S){if(a)throw new Gp({abiItem:d,param:I});w.push([I,k]);continue}m[g?k:I.name||k]=jk({param:I,value:S})}const b=p.filter(A=>!("indexed"in A&&A.indexed)),C=a?b:[...w.map(([A])=>A),...b];if(C.length>0){if(n&&n!=="0x")try{const A=Zc(C,n);if(A){let I=0;if(!a)for(const[k,S]of w)m[g?S:k.name||S]=A[I++];if(g)for(let k=0;k<p.length;k++)m[k]===void 0&&I<A.length&&(m[k]=A[I++]);else for(let k=0;k<b.length;k++)m[b[k].name]=A[I++]}}catch(A){if(a)throw A instanceof c6||A instanceof A6?new ed({abiItem:d,data:n,params:C,size:Je(n)}):A}else if(a)throw new ed({abiItem:d,data:"0x",params:C,size:0})}return{eventName:f,args:Object.values(m).length>0?m:void 0}}function jk({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(Zc([e],t)||[])[0]}function jm(e){const{abi:t,args:n,logs:r,strict:i=!0}=e,a=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})(),c=t.filter(u=>u.type==="event").map(u=>({abi:u,selector:Sd(u)}));return r.map(u=>{var m;const d=typeof u.blockNumber=="string"?Cr(u):u,f=c.filter(y=>d.topics[0]===y.selector);if(f.length===0)return null;let p,g;for(const y of f)try{p=id({...d,abi:[y.abi],strict:!0}),g=y;break}catch{}if(!p&&!i){g=f[0];try{p=id({data:d.data,topics:d.topics,abi:[g.abi],strict:!1})}catch{const y=(m=g.abi.inputs)==null?void 0:m.some(w=>!("name"in w&&w.name));return{...d,args:y?[]:{},eventName:g.abi.name}}}return!p||!g||a&&!a.includes(p.eventName)||!Bk({args:p.args,inputs:g.abi.inputs,matchArgs:n})?null:{...p,...d}}).filter(Boolean)}function Bk(e){const{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function i(a,c,u){try{return a.type==="address"?Pc(c,u):a.type==="string"||a.type==="bytes"?At(oa(c))===u:c===u}catch{return!1}}return Array.isArray(t)&&Array.isArray(r)?r.every((a,c)=>{if(a==null)return!0;const u=n[c];return u?(Array.isArray(a)?a:[a]).some(f=>i(u,f,t[c])):!1}):typeof t=="object"&&!Array.isArray(t)&&typeof r=="object"&&!Array.isArray(r)?Object.entries(r).every(([a,c])=>{if(c==null)return!0;const u=n.find(f=>f.name===a);return u?(Array.isArray(c)?c:[c]).some(f=>i(u,f,t[a])):!1}):!1}async function Bm(e,{address:t,blockHash:n,fromBlock:r,toBlock:i,event:a,events:c,args:u,strict:d}={}){const f=d??!1,p=c??(a?[a]:void 0);let g=[];p&&(g=[p.flatMap(b=>sl({abi:[b],eventName:b.name,args:c?void 0:u}))],a&&(g=g[0]));let m;n?m=await e.request({method:"eth_getLogs",params:[{address:t,topics:g,blockHash:n}]}):m=await e.request({method:"eth_getLogs",params:[{address:t,topics:g,fromBlock:typeof r=="bigint"?ae(r):r,toBlock:typeof i=="bigint"?ae(i):i}]});const y=m.map(w=>Cr(w));return p?jm({abi:p,args:u,logs:y,strict:f}):y}async function Q2(e,t){const{abi:n,address:r,args:i,blockHash:a,eventName:c,fromBlock:u,toBlock:d,strict:f}=t,p=c?$i({abi:n,name:c}):void 0,g=p?void 0:n.filter(m=>m.type==="event");return Ee(e,Bm,"getLogs")({address:r,args:i,blockHash:a,event:p,events:g,fromBlock:u,toBlock:d,strict:f})}async function _k(e,{address:t,blockNumber:n,blockTag:r="latest"}){const i=await od(e,{address:t,...n!==void 0?{blockNumber:n}:{blockTag:r}});if(i&&Je(i)===23&&i.startsWith("0xef0100"))return pt(qo(i,3,23))}class Pk extends ne{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 Tk(e,t){const{address:n,factory:r,factoryData:i}=t;try{const[a,c,u,d,f,p,g]=await Ee(e,Ln,"readContract")({abi:Ok,address:n,functionName:"eip712Domain",factory:r,factoryData:i});return{domain:{name:c,version:u,chainId:Number(d),verifyingContract:f,salt:p},extensions:g,fields:a}}catch(a){const c=a;throw c.name==="ContractFunctionExecutionError"&&c.cause.name==="ContractFunctionZeroDataError"?new Pk({address:n}):c}}const Ok=[{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 Rk(e){var t;return{baseFeePerGas:e.baseFeePerGas.map(n=>BigInt(n)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:(t=e.reward)==null?void 0:t.map(n=>n.map(r=>BigInt(r)))}}async function Nk(e,{blockCount:t,blockNumber:n,blockTag:r="latest",rewardPercentiles:i}){const a=typeof n=="bigint"?ae(n):void 0,c=await e.request({method:"eth_feeHistory",params:[ae(t),a||r,i]},{dedupe:!!a});return Rk(c)}async function Ld(e,{filter:t}){const n="strict"in t&&t.strict,r=await t.request({method:"eth_getFilterChanges",params:[t.id]});if(typeof r[0]=="string")return r;const i=r.map(a=>Cr(a));return!("abi"in t)||!t.abi?i:jm({abi:t.abi,logs:i,strict:n})}async function Mk(e,{filter:t}){const n=t.strict??!1,i=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(a=>Cr(a));return t.abi?jm({abi:t.abi,logs:i,strict:n}):i}function Dk(e){const{authorizationList:t}=e;if(t)for(const n of t){const{chainId:r}=n,i=n.address;if(!ct(i))throw new Vt({address:i});if(r<0)throw new Id({chainId:r})}_m(e)}function Lk(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new z2;for(const n of t){const r=Je(n),i=tr(qo(n,0,1));if(r!==32)throw new yk({hash:n,size:r});if(i!==F2)throw new vk({hash:n,version:i})}}_m(e)}function _m(e){const{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:i}=e;if(t<=0)throw new Id({chainId:t});if(i&&!ct(i))throw new Vt({address:i});if(r&&r>Nd)throw new Di({maxFeePerGas:r});if(n&&r&&n>r)throw new _c({maxFeePerGas:r,maxPriorityFeePerGas:n})}function Fk(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:a}=e;if(t<=0)throw new Id({chainId:t});if(a&&!ct(a))throw new Vt({address:a});if(n||i)throw new ne("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>Nd)throw new Di({maxFeePerGas:r})}function zk(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:a}=e;if(a&&!ct(a))throw new Vt({address:a});if(typeof t<"u"&&t<=0)throw new Id({chainId:t});if(n||i)throw new ne("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>Nd)throw new Di({maxFeePerGas:r})}function Fd(e){if(!e||e.length===0)return[];const t=[];for(let n=0;n<e.length;n++){const{address:r,storageKeys:i}=e[n];for(let a=0;a<i.length;a++)if(i[a].length-2!==64)throw new A4({storageKey:i[a]});if(!ct(r,{strict:!1}))throw new Vt({address:r});t.push([r,i])}return t}function Uk(e,t){const n=W2(e);return n==="eip1559"?qk(e,t):n==="eip2930"?Hk(e,t):n==="eip4844"?$k(e,t):n==="eip7702"?Wk(e,t):Vk(e,t)}function Wk(e,t){const{authorizationList:n,chainId:r,gas:i,nonce:a,to:c,value:u,maxFeePerGas:d,maxPriorityFeePerGas:f,accessList:p,data:g}=e;Dk(e);const m=Fd(p),y=Qk(n);return ir(["0x04",Vo([ae(r),a?ae(a):"0x",f?ae(f):"0x",d?ae(d):"0x",i?ae(i):"0x",c??"0x",u?ae(u):"0x",g??"0x",m,y,...ll(e,t)])])}function $k(e,t){const{chainId:n,gas:r,nonce:i,to:a,value:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:f,accessList:p,data:g}=e;Lk(e);let m=e.blobVersionedHashes,y=e.sidecars;if(e.blobs&&(typeof m>"u"||typeof y>"u")){const k=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(P=>at(P)),S=e.kzg,j=Em({blobs:k,kzg:S});if(typeof m>"u"&&(m=M2({commitments:j})),typeof y>"u"){const P=Am({blobs:k,commitments:j,kzg:S});y=U2({blobs:k,commitments:j,proofs:P})}}const w=Fd(p),b=[ae(n),i?ae(i):"0x",f?ae(f):"0x",d?ae(d):"0x",r?ae(r):"0x",a??"0x",c?ae(c):"0x",g??"0x",w,u?ae(u):"0x",m??[],...ll(e,t)],C=[],A=[],I=[];if(y)for(let k=0;k<y.length;k++){const{blob:S,commitment:j,proof:P}=y[k];C.push(S),A.push(j),I.push(P)}return ir(["0x03",Vo(y?[b,C,A,I]:b)])}function qk(e,t){const{chainId:n,gas:r,nonce:i,to:a,value:c,maxFeePerGas:u,maxPriorityFeePerGas:d,accessList:f,data:p}=e;_m(e);const g=Fd(f),m=[ae(n),i?ae(i):"0x",d?ae(d):"0x",u?ae(u):"0x",r?ae(r):"0x",a??"0x",c?ae(c):"0x",p??"0x",g,...ll(e,t)];return ir(["0x02",Vo(m)])}function Hk(e,t){const{chainId:n,gas:r,data:i,nonce:a,to:c,value:u,accessList:d,gasPrice:f}=e;Fk(e);const p=Fd(d),g=[ae(n),a?ae(a):"0x",f?ae(f):"0x",r?ae(r):"0x",c??"0x",u?ae(u):"0x",i??"0x",p,...ll(e,t)];return ir(["0x01",Vo(g)])}function Vk(e,t){const{chainId:n=0,gas:r,data:i,nonce:a,to:c,value:u,gasPrice:d}=e;zk(e);let f=[a?ae(a):"0x",d?ae(d):"0x",r?ae(r):"0x",c??"0x",u?ae(u):"0x",i??"0x"];if(t){const p=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(n>0)return BigInt(n*2)+BigInt(35n+t.v-27n);const y=27n+(t.v===27n?0n:1n);if(t.v!==y)throw new C4({v:t.v});return y})(),g=vn(t.r),m=vn(t.s);f=[...f,ae(p),g==="0x00"?"0x":g,m==="0x00"?"0x":m]}else n>0&&(f=[...f,ae(n),"0x","0x"]);return Vo(f)}function ll(e,t){const n=t??e,{v:r,yParity:i}=n;if(typeof n.r>"u")return[];if(typeof n.s>"u")return[];if(typeof r>"u"&&typeof i>"u")return[];const a=vn(n.r),c=vn(n.s);return[typeof i=="number"?i?ae(1):"0x":r===0n?"0x":r===1n?ae(1):r===27n?"0x":ae(1),a==="0x00"?"0x":a,c==="0x00"?"0x":c]}function Qk(e){if(!e||e.length===0)return[];const t=[];for(const n of e){const{chainId:r,nonce:i,...a}=n,c=n.address;t.push([r?sn(r):"0x",c,i?sn(i):"0x",...ll({},a)])}return t}async function Gk({address:e,authorization:t,signature:n}){return Pc(pt(e),await wm({authorization:t,signature:n}))}const Pu=new Jc(8192);function Kk(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(Pu.get(n))return Pu.get(n);const r=e().finally(()=>Pu.delete(n));return Pu.set(n,r),r}async function sd(e){return new Promise(t=>setTimeout(t,e))}function ea(e,{delay:t=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((i,a)=>{const c=async({count:u=0}={})=>{const d=async({error:f})=>{const p=typeof t=="function"?t({count:u,error:f}):t;p&&await sd(p),c({count:u+1})};try{const f=await e();i(f)}catch(f){if(u<n&&await r({count:u,error:f}))return d({error:f});a(f)}};c()})}function Yk(e,t={}){return async(n,r={})=>{var g;const{dedupe:i=!1,methods:a,retryDelay:c=150,retryCount:u=3,uid:d}={...t,...r},{method:f}=n;if((g=a==null?void 0:a.exclude)!=null&&g.includes(f))throw new yi(new Error("method not supported"),{method:f});if(a!=null&&a.include&&!a.include.includes(f))throw new yi(new Error("method not supported"),{method:f});const p=i?Ks(`${d}.${kt(n)}`):void 0;return Kk(()=>ea(async()=>{try{return await e(n)}catch(m){const y=m;switch(y.code){case dc.code:throw new dc(y);case fc.code:throw new fc(y);case hc.code:throw new hc(y,{method:n.method});case pc.code:throw new pc(y);case Oi.code:throw new Oi(y);case Ho.code:throw new Ho(y);case mc.code:throw new mc(y);case wr.code:throw new wr(y);case Js.code:throw new Js(y);case yi.code:throw new yi(y,{method:n.method});case Zs.code:throw new Zs(y);case gc.code:throw new gc(y);case We.code:throw new We(y);case yc.code:throw new yc(y);case vc.code:throw new vc(y);case wc.code:throw new wc(y);case bc.code:throw new bc(y);case wn.code:throw new wn(y);case xc.code:throw new xc(y);case Cc.code:throw new Cc(y);case Ec.code:throw new Ec(y);case Ac.code:throw new Ac(y);case kc.code:throw new kc(y);case Sc.code:throw new Sc(y);case Ic.code:throw new Ic(y);case 5e3:throw new We(y);case Xs.code:throw new Xs(y);default:throw m instanceof ne?m:new L4(y)}}},{delay:({count:m,error:y})=>{var w;if(y&&y instanceof ac){const b=(w=y==null?void 0:y.headers)==null?void 0:w.get("Retry-After");if(b!=null&&b.match(/\d/))return Number.parseInt(b,10)*1e3}return~~(1<<m)*c},retryCount:u,shouldRetry:({error:m})=>Jk(m)}),{enabled:i,id:p})}}function Jk(e){return"code"in e&&typeof e.code=="number"?e.code===-1||e.code===Zs.code||e.code===Oi.code||e.code===429:e instanceof ac&&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 Zk({chain:e,currentChainId:t}){if(!e)throw new f4;if(t!==e.id)throw new d4({chain:e,currentChainId:t})}function Pm(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};function n(r){return i=>{const a=typeof i=="function"?i(r):i,c={...r,...a};return Object.assign(c,{extend:n(c)})}}return Object.assign(t,{extend:n(t)})}const Xk={"0x0":"reverted","0x1":"success"};function Tm(e,t){const n={...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=>Cr(r)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?tr(e.transactionIndex):null,status:e.status?Xk[e.status]:null,type:e.type?B2[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const eS=mm("transactionReceipt",Tm);function zd(e,{errorInstance:t=new Error("timed out"),timeout:n,signal:r}){return new Promise((i,a)=>{(async()=>{let c;try{const u=new AbortController;n>0&&(c=setTimeout(()=>{r?u.abort():a(t)},n)),i(await e({signal:(u==null?void 0:u.signal)||null}))}catch(u){(u==null?void 0:u.name)==="AbortError"&&a(t),a(u)}finally{clearTimeout(c)}})()})}function tS(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const ew=tS();function nS(e,t={}){const{url:n,headers:r}=rS(e);return{async request(i){var w,b,C;const{body:a,fetchFn:c=t.fetchFn??fetch,onRequest:u=t.onRequest,onResponse:d=t.onResponse,timeout:f=t.timeout??1e4}=i,p={...t.fetchOptions??{},...i.fetchOptions??{}},{headers:g,method:m,signal:y}=p;try{const A=await zd(async({signal:k})=>{const S={...p,body:Array.isArray(a)?kt(a.map(T=>({jsonrpc:"2.0",id:T.id??ew.take(),...T}))):kt({jsonrpc:"2.0",id:a.id??ew.take(),...a}),headers:{...r,"Content-Type":"application/json",...g},method:m||"POST",signal:y||(f>0?k:null)},j=new Request(n,S),P=await(u==null?void 0:u(j,S))??{...S,url:n};return await c(P.url??n,P)},{errorInstance:new Dv({body:a,url:n}),timeout:f,signal:!0});d&&await d(A);let I;if((w=A.headers.get("Content-Type"))!=null&&w.startsWith("application/json"))I=await A.json();else{I=await A.text();try{I=JSON.parse(I||"{}")}catch(k){if(A.ok)throw k;I={error:I}}}if(!A.ok){if(typeof((b=I.error)==null?void 0:b.code)=="number"&&typeof((C=I.error)==null?void 0:C.message)=="string")return I;throw new ac({body:a,details:kt(I.error)||A.statusText,headers:A.headers,status:A.status,url:n})}return I}catch(A){throw A instanceof ac||A instanceof Dv?A:new ac({body:a,cause:A,url:n})}}}}function rS(e){try{const t=new URL(e),n=(()=>{if(t.username){const r=`${decodeURIComponent(t.username)}:${decodeURIComponent(t.password)}`;return t.username="",t.password="",{url:t.toString(),headers:{Authorization:`Basic ${btoa(r)}`}}}})();return{url:t.toString(),...n}}catch{return{url:e}}}const oS=`Ethereum Signed Message:
81
+ `;function iS(e){const t=typeof e=="string"?Ks(e):typeof e.raw=="string"?e.raw:at(e.raw),n=Ks(`${oS}${Je(t)}`);return Dn([n,t])}function G2(e,t){return At(iS(e),t)}class sS extends ne{constructor({domain:t}){super(`Invalid domain "${kt(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class aS extends ne{constructor({primaryType:t,types:n}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(n))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class cS extends ne{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function lS(e){const{domain:t,message:n,primaryType:r,types:i}=e,a=(c,u)=>{for(const d of c){const{name:f,type:p}=d,g=u[f],m=p.match(j6);if(m&&(typeof g=="number"||typeof g=="bigint")){const[b,C,A]=m;ae(g,{signed:C==="int",size:Number.parseInt(A,10)/8})}if(p==="address"&&typeof g=="string"&&!ct(g))throw new Vt({address:g});const y=p.match(rA);if(y){const[b,C]=y;if(C&&Je(g)!==Number.parseInt(C,10))throw new iE({expectedSize:Number.parseInt(C,10),givenSize:Je(g)})}const w=i[p];w&&(dS(p),a(w,g))}};if(i.EIP712Domain&&t){if(typeof t!="object")throw new sS({domain:t});a(i.EIP712Domain,t)}if(r!=="EIP712Domain")if(i[r])a(i[r],n);else throw new aS({primaryType:r,types:i})}function uS({domain:e}){return[typeof(e==null?void 0:e.name)=="string"&&{name:"name",type:"string"},(e==null?void 0:e.version)&&{name:"version",type:"string"},(typeof(e==null?void 0:e.chainId)=="number"||typeof(e==null?void 0:e.chainId)=="bigint")&&{name:"chainId",type:"uint256"},(e==null?void 0:e.verifyingContract)&&{name:"verifyingContract",type:"address"},(e==null?void 0:e.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function dS(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new cS({type:e})}function fS(e){const{domain:t={},message:n,primaryType:r}=e,i={EIP712Domain:uS({domain:t}),...e.types};lS({domain:t,message:n,primaryType:r,types:i});const a=["0x1901"];return t&&a.push(hS({domain:t,types:i})),r!=="EIP712Domain"&&a.push(K2({data:n,primaryType:r,types:i})),At(Dn(a))}function hS({domain:e,types:t}){return K2({data:e,primaryType:"EIP712Domain",types:t})}function K2({data:e,primaryType:t,types:n}){const r=Y2({data:e,primaryType:t,types:n});return At(r)}function Y2({data:e,primaryType:t,types:n}){const r=[{type:"bytes32"}],i=[pS({primaryType:t,types:n})];for(const a of n[t]){const[c,u]=Z2({types:n,name:a.name,type:a.type,value:e[a.name]});r.push(c),i.push(u)}return Wi(r,i)}function pS({primaryType:e,types:t}){const n=sn(mS({primaryType:e,types:t}));return At(n)}function mS({primaryType:e,types:t}){let n="";const r=J2({primaryType:e,types:t});r.delete(e);const i=[e,...Array.from(r).sort()];for(const a of i)n+=`${a}(${t[a].map(({name:c,type:u})=>`${u} ${c}`).join(",")})`;return n}function J2({primaryType:e,types:t},n=new Set){const r=e.match(/^\w*/u),i=r==null?void 0:r[0];if(n.has(i)||t[i]===void 0)return n;n.add(i);for(const a of t[i])J2({primaryType:a.type,types:t},n);return n}function Z2({types:e,name:t,type:n,value:r}){if(e[n]!==void 0)return[{type:"bytes32"},At(Y2({data:r,primaryType:n,types:e}))];if(n==="bytes")return[{type:"bytes32"},At(r)];if(n==="string")return[{type:"bytes32"},At(sn(r))];if(n.lastIndexOf("]")===n.length-1){const i=n.slice(0,n.lastIndexOf("[")),a=r.map(c=>Z2({name:t,type:i,types:e,value:c}));return[{type:"bytes32"},At(Wi(a.map(([c])=>c),a.map(([,c])=>c)))]}return[{type:n},r]}class gS extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}}const yS={checksum:new gS(8192)},th=yS.checksum;class X2 extends Yp{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,PE(t);const r=xd(n);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 i=this.blockLen,a=new Uint8Array(i);a.set(r.length>i?t.create().update(r).digest():r);for(let c=0;c<a.length;c++)a[c]^=54;this.iHash.update(a),this.oHash=t.create();for(let c=0;c<a.length;c++)a[c]^=106;this.oHash.update(a),$o(a)}update(t){return Ys(this),this.iHash.update(t),this}digestInto(t){Ys(this),Wo(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:n,iHash:r,finished:i,destroyed:a,blockLen:c,outputLen:u}=this;return t=t,t.finished=i,t.destroyed=a,t.blockLen=c,t.outputLen=u,t.oHash=n._cloneInto(t.oHash),t.iHash=r._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const e5=(e,t,n)=>new X2(e,t).update(n).digest();e5.create=(e,t)=>new X2(e,t);function t5(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=E6(e7(e));return n==="Bytes"?r:or(r)}const vS=/^0x[a-fA-F0-9]{40}$/;function Ud(e,t={}){const{strict:n=!0}=t;if(!vS.test(e))throw new tw({address:e,cause:new wS});if(n){if(e.toLowerCase()===e)return;if(n5(e)!==e)throw new tw({address:e,cause:new bS})}}function n5(e){if(th.has(e))return th.get(e);Ud(e,{strict:!1});const t=e.substring(2).toLowerCase(),n=t5(n7(t),{as:"Bytes"}),r=t.split("");for(let a=0;a<40;a+=2)n[a>>1]>>4>=8&&r[a]&&(r[a]=r[a].toUpperCase()),(n[a>>1]&15)>=8&&r[a+1]&&(r[a+1]=r[a+1].toUpperCase());const i=`0x${r.join("")}`;return th.set(e,i),i}function cp(e,t={}){const{strict:n=!0}=t??{};try{return Ud(e,{strict:n}),!0}catch{return!1}}class tw extends Ne{constructor({address:t,cause:n}){super(`Address "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class wS extends Ne{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 bS extends Ne{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}const xS=/^(.*)\[([0-9]*)\]$/,CS=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,r5=/^(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)?$/,nw=2n**256n-1n;function Ts(e,t,n){const{checksumAddress:r,staticPosition:i}=n,a=Nm(t.type);if(a){const[c,u]=a;return AS(e,{...t,type:u},{checksumAddress:r,length:c,staticPosition:i})}if(t.type==="tuple")return jS(e,t,{checksumAddress:r,staticPosition:i});if(t.type==="address")return ES(e,{checksum:r});if(t.type==="bool")return kS(e);if(t.type.startsWith("bytes"))return SS(e,t,{staticPosition:i});if(t.type.startsWith("uint")||t.type.startsWith("int"))return IS(e,t);if(t.type==="string")return BS(e,{staticPosition:i});throw new Dm(t.type)}const rw=32,lp=32;function ES(e,t={}){const{checksum:n=!1}=t,r=e.readBytes(32);return[(a=>n?n5(a):a)(or(o7(r,-20))),32]}function AS(e,t,n){const{checksumAddress:r,length:i,staticPosition:a}=n;if(!i){const d=Gr(e.readBytes(lp)),f=a+d,p=f+rw;e.setPosition(f);const g=Gr(e.readBytes(rw)),m=Tc(t);let y=0;const w=[];for(let b=0;b<g;++b){e.setPosition(p+(m?b*32:y));const[C,A]=Ts(e,t,{checksumAddress:r,staticPosition:p});y+=A,w.push(C)}return e.setPosition(a+32),[w,32]}if(Tc(t)){const d=Gr(e.readBytes(lp)),f=a+d,p=[];for(let g=0;g<i;++g){e.setPosition(f+g*32);const[m]=Ts(e,t,{checksumAddress:r,staticPosition:f});p.push(m)}return e.setPosition(a+32),[p,32]}let c=0;const u=[];for(let d=0;d<i;++d){const[f,p]=Ts(e,t,{checksumAddress:r,staticPosition:a+c});c+=p,u.push(f)}return[u,c]}function kS(e){return[s7(e.readBytes(32),{size:32}),32]}function SS(e,t,{staticPosition:n}){const[r,i]=t.type.split("bytes");if(!i){const c=Gr(e.readBytes(32));e.setPosition(n+c);const u=Gr(e.readBytes(32));if(u===0)return e.setPosition(n+32),["0x",32];const d=e.readBytes(u);return e.setPosition(n+32),[or(d),32]}return[or(e.readBytes(Number.parseInt(i,10),32)),32]}function IS(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),i=e.readBytes(32);return[r>48?i7(i,{signed:n}):Gr(i,{signed:n}),32]}function jS(e,t,n){const{checksumAddress:r,staticPosition:i}=n,a=t.components.length===0||t.components.some(({name:d})=>!d),c=a?[]:{};let u=0;if(Tc(t)){const d=Gr(e.readBytes(lp)),f=i+d;for(let p=0;p<t.components.length;++p){const g=t.components[p];e.setPosition(f+u);const[m,y]=Ts(e,g,{checksumAddress:r,staticPosition:f});u+=y,c[a?p:g==null?void 0:g.name]=m}return e.setPosition(i+32),[c,32]}for(let d=0;d<t.components.length;++d){const f=t.components[d],[p,g]=Ts(e,f,{checksumAddress:r,staticPosition:i});c[a?d:f==null?void 0:f.name]=p,u+=g}return[c,u]}function BS(e,{staticPosition:t}){const n=Gr(e.readBytes(32)),r=t+n;e.setPosition(r);const i=Gr(e.readBytes(32));if(i===0)return e.setPosition(t+32),["",32];const a=e.readBytes(i,32),c=a7(o2(a));return e.setPosition(t+32),[c,32]}function _S({checksumAddress:e,parameters:t,values:n}){const r=[];for(let i=0;i<t.length;i++)r.push(Om({checksumAddress:e,parameter:t[i],value:n[i]}));return r}function Om({checksumAddress:e=!1,parameter:t,value:n}){const r=t,i=Nm(r.type);if(i){const[a,c]=i;return TS(n,{checksumAddress:e,length:a,parameter:{...r,type:c}})}if(r.type==="tuple")return DS(n,{checksumAddress:e,parameter:r});if(r.type==="address")return PS(n,{checksum:e});if(r.type==="bool")return RS(n);if(r.type.startsWith("uint")||r.type.startsWith("int")){const a=r.type.startsWith("int"),[,,c="256"]=r5.exec(r.type)??[];return NS(n,{signed:a,size:Number(c)})}if(r.type.startsWith("bytes"))return OS(n,{type:r.type});if(r.type==="string")return MS(n);throw new Dm(r.type)}function Rm(e){let t=0;for(let a=0;a<e.length;a++){const{dynamic:c,encoded:u}=e[a];c?t+=32:t+=bn(u)}const n=[],r=[];let i=0;for(let a=0;a<e.length;a++){const{dynamic:c,encoded:u}=e[a];c?(n.push(Wt(t+i,{size:32})),r.push(u),i+=bn(u)):n.push(u)}return rr(...n,...r)}function PS(e,t){const{checksum:n=!1}=t;return Ud(e,{strict:n}),{dynamic:!1,encoded:Ni(e.toLowerCase())}}function TS(e,t){const{checksumAddress:n,length:r,parameter:i}=t,a=r===null;if(!Array.isArray(e))throw new VS(e);if(!a&&e.length!==r)throw new HS({expectedLength:r,givenLength:e.length,type:`${i.type}[${r}]`});let c=!1;const u=[];for(let d=0;d<e.length;d++){const f=Om({checksumAddress:n,parameter:i,value:e[d]});f.dynamic&&(c=!0),u.push(f)}if(a||c){const d=Rm(u);if(a){const f=Wt(u.length,{size:32});return{dynamic:!0,encoded:u.length>0?rr(f,d):f}}if(c)return{dynamic:!0,encoded:d}}return{dynamic:!1,encoded:rr(...u.map(({encoded:d})=>d))}}function OS(e,{type:t}){const[,n]=t.split("bytes"),r=bn(e);if(!n){let i=e;return r%32!==0&&(i=Mi(i,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:rr(Ni(Wt(r,{size:32})),i)}}if(r!==Number.parseInt(n,10))throw new i5({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:Mi(e)}}function RS(e){if(typeof e!="boolean")throw new Ne(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Ni(i2(e))}}function NS(e,{signed:t,size:n}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,i=t?-r-1n:0n;if(e>r||e<i)throw new c2({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:Wt(e,{size:32,signed:t})}}function MS(e){const t=fm(e),n=Math.ceil(bn(t)/32),r=[];for(let i=0;i<n;i++)r.push(Mi(br(t,i*32,(i+1)*32)));return{dynamic:!0,encoded:rr(Mi(Wt(bn(t),{size:32})),...r)}}function DS(e,t){const{checksumAddress:n,parameter:r}=t;let i=!1;const a=[];for(let c=0;c<r.components.length;c++){const u=r.components[c],d=Array.isArray(e)?c:u.name,f=Om({checksumAddress:n,parameter:u,value:e[d]});a.push(f),f.dynamic&&(i=!0)}return{dynamic:i,encoded:i?Rm(a):rr(...a.map(({encoded:c})=>c))}}function Nm(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function Tc(e){var r;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(r=e.components)==null?void 0:r.some(Tc);const n=Nm(e.type);return!!(n&&Tc({...e,type:n[1]}))}const LS={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 US({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new zS({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new ow({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 ow({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 n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+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 n=this.inspectBytes(e);return this.position+=t??e,n},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 FS(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(LS);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}class ow extends Ne{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class zS extends Ne{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class US extends Ne{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function WS(e,t,n={}){const{as:r="Array",checksumAddress:i=!1}=n,a=typeof t=="string"?r2(t):t,c=FS(a);if(js(a)===0&&e.length>0)throw new qS;if(js(a)&&js(a)<32)throw new $S({data:typeof t=="string"?t:or(t),parameters:e,size:js(a)});let u=0;const d=r==="Array"?[]:{};for(let f=0;f<e.length;++f){const p=e[f];c.setPosition(u);const[g,m]=Ts(c,p,{checksumAddress:i,staticPosition:0});u+=m,r==="Array"?d.push(g):d[p.name??f]=g}return d}function Mm(e,t,n){const{checksumAddress:r=!1}={};if(e.length!==t.length)throw new s5({expectedLength:e.length,givenLength:t.length});const i=_S({checksumAddress:r,parameters:e,values:t}),a=Rm(i);return a.length===0?"0x":a}function up(e,t){if(e.length!==t.length)throw new s5({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;r<e.length;r++){const i=e[r],a=t[r];n.push(up.encode(i,a))}return rr(...n)}(function(e){function t(n,r,i=!1){if(n==="address"){const d=r;return Ud(d),Ni(d.toLowerCase(),i?32:0)}if(n==="string")return fm(r);if(n==="bytes")return r;if(n==="bool")return Ni(i2(r),i?32:1);const a=n.match(r5);if(a){const[d,f,p="256"]=a,g=Number.parseInt(p,10)/8;return Wt(r,{size:i?32:g,signed:f==="int"})}const c=n.match(CS);if(c){const[d,f]=c;if(Number.parseInt(f,10)!==(r.length-2)/2)throw new i5({expectedSize:Number.parseInt(f,10),value:r});return Mi(r,i?32:0)}const u=n.match(xS);if(u&&Array.isArray(r)){const[d,f]=u,p=[];for(let g=0;g<r.length;g++)p.push(t(f,r[g],!0));return p.length===0?"0x":rr(...p)}throw new Dm(n)}e.encode=t})(up||(up={}));function o5(e){return Array.isArray(e)&&typeof e[0]=="string"||typeof e=="string"?Ov(e):e}class $S extends Ne{constructor({data:t,parameters:n,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${Ss(n)})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class qS extends Ne{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class HS extends Ne{constructor({expectedLength:t,givenLength:n,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${t}\`. Given: \`${n}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class i5 extends Ne{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${bn(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class s5 extends Ne{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${n}`].join(`
82
+ `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class VS extends Ne{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class Dm extends Ne{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const on=BigInt(0),qt=BigInt(1),wi=BigInt(2),QS=BigInt(3),a5=BigInt(4),c5=BigInt(5),l5=BigInt(8);function rn(e,t){const n=e%t;return n>=on?n:t+n}function Tn(e,t,n){let r=e;for(;t-- >on;)r*=r,r%=n;return r}function dp(e,t){if(e===on)throw new Error("invert: expected non-zero number");if(t<=on)throw new Error("invert: expected positive modulus, got "+t);let n=rn(e,t),r=t,i=on,a=qt;for(;n!==on;){const u=r/n,d=r%n,f=i-a*u;r=n,n=d,i=a,a=f}if(r!==qt)throw new Error("invert: does not exist");return rn(i,t)}function u5(e,t){const n=(e.ORDER+qt)/a5,r=e.pow(t,n);if(!e.eql(e.sqr(r),t))throw new Error("Cannot find square root");return r}function GS(e,t){const n=(e.ORDER-c5)/l5,r=e.mul(t,wi),i=e.pow(r,n),a=e.mul(t,i),c=e.mul(e.mul(a,wi),i),u=e.mul(a,e.sub(c,e.ONE));if(!e.eql(e.sqr(u),t))throw new Error("Cannot find square root");return u}function KS(e){if(e<BigInt(3))throw new Error("sqrt is not defined for small field");let t=e-qt,n=0;for(;t%wi===on;)t/=wi,n++;let r=wi;const i=Lm(e);for(;iw(i,r)===1;)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(n===1)return u5;let a=i.pow(r,t);const c=(t+qt)/wi;return function(d,f){if(d.is0(f))return f;if(iw(d,f)!==1)throw new Error("Cannot find square root");let p=n,g=d.mul(d.ONE,a),m=d.pow(f,t),y=d.pow(f,c);for(;!d.eql(m,d.ONE);){if(d.is0(m))return d.ZERO;let w=1,b=d.sqr(m);for(;!d.eql(b,d.ONE);)if(w++,b=d.sqr(b),w===p)throw new Error("Cannot find square root");const C=qt<<BigInt(p-w-1),A=d.pow(g,C);p=w,g=d.sqr(A),m=d.mul(m,g),y=d.mul(y,A)}return y}}function YS(e){return e%a5===QS?u5:e%l5===c5?GS:KS(e)}const JS=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ZS(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},n=JS.reduce((r,i)=>(r[i]="function",r),t);return Td(e,n)}function XS(e,t,n){if(n<on)throw new Error("invalid exponent, negatives unsupported");if(n===on)return e.ONE;if(n===qt)return t;let r=e.ONE,i=t;for(;n>on;)n&qt&&(r=e.mul(r,i)),i=e.sqr(i),n>>=qt;return r}function d5(e,t,n=!1){const r=new Array(t.length).fill(n?e.ZERO:void 0),i=t.reduce((c,u,d)=>e.is0(u)?c:(r[d]=c,e.mul(c,u)),e.ONE),a=e.inv(i);return t.reduceRight((c,u,d)=>e.is0(u)?c:(r[d]=e.mul(c,r[d]),e.mul(c,u)),a),r}function iw(e,t){const n=(e.ORDER-qt)/wi,r=e.pow(t,n),i=e.eql(r,e.ONE),a=e.eql(r,e.ZERO),c=e.eql(r,e.neg(e.ONE));if(!i&&!a&&!c)throw new Error("invalid Legendre symbol result");return i?1:a?0:-1}function f5(e,t){t!==void 0&&lc(t);const n=t!==void 0?t:e.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function Lm(e,t,n=!1,r={}){if(e<=on)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:i,nByteLength:a}=f5(e,t);if(a>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let c;const u=Object.freeze({ORDER:e,isLE:n,BITS:i,BYTES:a,MASK:Pd(i),ZERO:on,ONE:qt,create:d=>rn(d,e),isValid:d=>{if(typeof d!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof d);return on<=d&&d<e},is0:d=>d===on,isOdd:d=>(d&qt)===qt,neg:d=>rn(-d,e),eql:(d,f)=>d===f,sqr:d=>rn(d*d,e),add:(d,f)=>rn(d+f,e),sub:(d,f)=>rn(d-f,e),mul:(d,f)=>rn(d*f,e),pow:(d,f)=>XS(u,d,f),div:(d,f)=>rn(d*dp(f,e),e),sqrN:d=>d*d,addN:(d,f)=>d+f,subN:(d,f)=>d-f,mulN:(d,f)=>d*f,inv:d=>dp(d,e),sqrt:r.sqrt||(d=>(c||(c=YS(e)),c(u,d))),toBytes:d=>n?Z6(d,a):nl(d,a),fromBytes:d=>{if(d.length!==a)throw new Error("Field.fromBytes: expected "+a+" bytes, got "+d.length);return n?J6(d):Ti(d)},invertBatch:d=>d5(u,d),cmov:(d,f,p)=>p?f:d});return Object.freeze(u)}function h5(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=h5(e);return t+Math.ceil(t/2)}function e9(e,t,n=!1){const r=e.length,i=h5(t),a=p5(t);if(r<16||r<a||r>1024)throw new Error("expected "+a+"-1024 bytes of input, got "+r);const c=n?J6(e):Ti(e),u=rn(c,t-qt)+qt;return n?Z6(u,i):nl(u,i)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const sw=BigInt(0),fp=BigInt(1);function nh(e,t){const n=t.negate();return e?n:t}function m5(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function rh(e,t){m5(e,t);const n=Math.ceil(t/e)+1,r=2**(e-1),i=2**e,a=Pd(e),c=BigInt(e);return{windows:n,windowSize:r,mask:a,maxNumber:i,shiftBy:c}}function aw(e,t,n){const{windowSize:r,mask:i,maxNumber:a,shiftBy:c}=n;let u=Number(e&i),d=e>>c;u>r&&(u-=a,d+=fp);const f=t*r,p=f+Math.abs(u)-1,g=u===0,m=u<0,y=t%2!==0;return{nextN:d,offset:p,isZero:g,isNeg:m,isNegF:y,offsetF:f}}function t9(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((n,r)=>{if(!(n instanceof t))throw new Error("invalid point at index "+r)})}function n9(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((n,r)=>{if(!t.isValid(n))throw new Error("invalid scalar at index "+r)})}const oh=new WeakMap,g5=new WeakMap;function ih(e){return g5.get(e)||1}function r9(e,t){return{constTimeNegate:nh,hasPrecomputes(n){return ih(n)!==1},unsafeLadder(n,r,i=e.ZERO){let a=n;for(;r>sw;)r&fp&&(i=i.add(a)),a=a.double(),r>>=fp;return i},precomputeWindow(n,r){const{windows:i,windowSize:a}=rh(r,t),c=[];let u=n,d=u;for(let f=0;f<i;f++){d=u,c.push(d);for(let p=1;p<a;p++)d=d.add(u),c.push(d);u=d.double()}return c},wNAF(n,r,i){let a=e.ZERO,c=e.BASE;const u=rh(n,t);for(let d=0;d<u.windows;d++){const{nextN:f,offset:p,isZero:g,isNeg:m,isNegF:y,offsetF:w}=aw(i,d,u);i=f,g?c=c.add(nh(y,r[w])):a=a.add(nh(m,r[p]))}return{p:a,f:c}},wNAFUnsafe(n,r,i,a=e.ZERO){const c=rh(n,t);for(let u=0;u<c.windows&&i!==sw;u++){const{nextN:d,offset:f,isZero:p,isNeg:g}=aw(i,u,c);if(i=d,!p){const m=r[f];a=a.add(g?m.negate():m)}}return a},getPrecomputes(n,r,i){let a=oh.get(r);return a||(a=this.precomputeWindow(r,n),n!==1&&oh.set(r,i(a))),a},wNAFCached(n,r,i){const a=ih(n);return this.wNAF(a,this.getPrecomputes(a,n,i),r)},wNAFCachedUnsafe(n,r,i,a){const c=ih(n);return c===1?this.unsafeLadder(n,r,a):this.wNAFUnsafe(c,this.getPrecomputes(c,n,i),r,a)},setWindowSize(n,r){m5(r,t),g5.set(n,r),oh.delete(n)}}}function o9(e,t,n,r){t9(n,e),n9(r,t);const i=n.length,a=r.length;if(i!==a)throw new Error("arrays of points and scalars must have equal length");const c=e.ZERO,u=$4(BigInt(i));let d=1;u>12?d=u-3:u>4?d=u-2:u>0&&(d=2);const f=Pd(d),p=new Array(Number(f)+1).fill(c),g=Math.floor((t.BITS-1)/d)*d;let m=c;for(let y=g;y>=0;y-=d){p.fill(c);for(let b=0;b<a;b++){const C=r[b],A=Number(C>>BigInt(y)&f);p[A]=p[A].add(n[b])}let w=c;for(let b=p.length-1,C=c;b>0;b--)C=C.add(p[b]),w=w.add(C);if(m=m.add(w),y!==0)for(let b=0;b<d;b++)m=m.double()}return m}function y5(e){return ZS(e.Fp),Td(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...f5(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function cw(e){e.lowS!==void 0&&jc("lowS",e.lowS),e.prehash!==void 0&&jc("prehash",e.prehash)}function i9(e){const t=y5(e);Td(t,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:n,Fp:r,a:i}=t;if(n){if(!r.eql(i,r.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...t})}class s9 extends Error{constructor(t=""){super(t)}}const Ur={Err:s9,_tlv:{encode:(e,t)=>{const{Err:n}=Ur;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length&1)throw new n("tlv.encode: unpadded data");const r=t.length/2,i=_u(r);if(i.length/2&128)throw new n("tlv.encode: long form length too big");const a=r>127?_u(i.length/2|128):"";return _u(e)+a+i+t},decode(e,t){const{Err:n}=Ur;let r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");const i=t[r++],a=!!(i&128);let c=0;if(!a)c=i;else{const d=i&127;if(!d)throw new n("tlv.decode(long): indefinite length not supported");if(d>4)throw new n("tlv.decode(long): byte length is too big");const f=t.subarray(r,r+d);if(f.length!==d)throw new n("tlv.decode: length bytes not complete");if(f[0]===0)throw new n("tlv.decode(long): zero leftmost byte");for(const p of f)c=c<<8|p;if(r+=d,c<128)throw new n("tlv.decode(long): not minimal encoding")}const u=t.subarray(r,r+c);if(u.length!==c)throw new n("tlv.decode: wrong value length");return{v:u,l:t.subarray(r+c)}}},_int:{encode(e){const{Err:t}=Ur;if(e<Vr)throw new t("integer: negative integers are not allowed");let n=_u(e);if(Number.parseInt(n[0],16)&8&&(n="00"+n),n.length&1)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=Ur;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 Ti(e)}},toSig(e){const{Err:t,_int:n,_tlv:r}=Ur,i=On("signature",e),{v:a,l:c}=r.decode(48,i);if(c.length)throw new t("invalid signature: left bytes after parsing");const{v:u,l:d}=r.decode(2,a),{v:f,l:p}=r.decode(2,d);if(p.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(u),s:n.decode(f)}},hexFromSig(e){const{_tlv:t,_int:n}=Ur,r=t.encode(2,n.encode(e.r)),i=t.encode(2,n.encode(e.s)),a=r+i;return t.encode(48,a)}};function sh(e,t){return Bc(nl(e,t))}const Vr=BigInt(0),wt=BigInt(1);BigInt(2);const ah=BigInt(3),a9=BigInt(4);function c9(e){const t=i9(e),{Fp:n}=t,r=Lm(t.n,t.nBitLength),i=t.toBytes||((k,S,j)=>{const P=S.toAffine();return rd(Uint8Array.from([4]),n.toBytes(P.x),n.toBytes(P.y))}),a=t.fromBytes||(k=>{const S=k.subarray(1),j=n.fromBytes(S.subarray(0,n.BYTES)),P=n.fromBytes(S.subarray(n.BYTES,2*n.BYTES));return{x:j,y:P}});function c(k){const{a:S,b:j}=t,P=n.sqr(k),_=n.mul(P,k);return n.add(n.add(_,n.mul(k,S)),j)}function u(k,S){const j=n.sqr(S),P=c(k);return n.eql(j,P)}if(!u(t.Gx,t.Gy))throw new Error("bad curve params: generator point");const d=n.mul(n.pow(t.a,ah),a9),f=n.mul(n.sqr(t.b),BigInt(27));if(n.is0(n.add(d,f)))throw new Error("bad curve params: a or b");function p(k){return dm(k,wt,t.n)}function g(k){const{allowedPrivateKeyLengths:S,nByteLength:j,wrapPrivateKey:P,n:_}=t;if(S&&typeof k!="bigint"){if(tl(k)&&(k=Bc(k)),typeof k!="string"||!S.includes(k.length))throw new Error("invalid private key");k=k.padStart(j*2,"0")}let T;try{T=typeof k=="bigint"?k:Ti(On("private key",k,j))}catch{throw new Error("invalid private key, expected hex or "+j+" bytes, got "+typeof k)}return P&&(T=rn(T,_)),Ps("private key",T,wt,_),T}function m(k){if(!(k instanceof b))throw new Error("ProjectivePoint expected")}const y=Uv((k,S)=>{const{px:j,py:P,pz:_}=k;if(n.eql(_,n.ONE))return{x:j,y:P};const T=k.is0();S==null&&(S=T?n.ONE:n.inv(_));const D=n.mul(j,S),Q=n.mul(P,S),H=n.mul(_,S);if(T)return{x:n.ZERO,y:n.ZERO};if(!n.eql(H,n.ONE))throw new Error("invZ was invalid");return{x:D,y:Q}}),w=Uv(k=>{if(k.is0()){if(t.allowInfinityPoint&&!n.is0(k.py))return;throw new Error("bad point: ZERO")}const{x:S,y:j}=k.toAffine();if(!n.isValid(S)||!n.isValid(j))throw new Error("bad point: x or y not FE");if(!u(S,j))throw new Error("bad point: equation left != right");if(!k.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class b{constructor(S,j,P){if(S==null||!n.isValid(S))throw new Error("x required");if(j==null||!n.isValid(j)||n.is0(j))throw new Error("y required");if(P==null||!n.isValid(P))throw new Error("z required");this.px=S,this.py=j,this.pz=P,Object.freeze(this)}static fromAffine(S){const{x:j,y:P}=S||{};if(!S||!n.isValid(j)||!n.isValid(P))throw new Error("invalid affine point");if(S instanceof b)throw new Error("projective point not allowed");const _=T=>n.eql(T,n.ZERO);return _(j)&&_(P)?b.ZERO:new b(j,P,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(S){const j=d5(n,S.map(P=>P.pz));return S.map((P,_)=>P.toAffine(j[_])).map(b.fromAffine)}static fromHex(S){const j=b.fromAffine(a(On("pointHex",S)));return j.assertValidity(),j}static fromPrivateKey(S){return b.BASE.multiply(g(S))}static msm(S,j){return o9(b,r,S,j)}_setWindowSize(S){I.setWindowSize(this,S)}assertValidity(){w(this)}hasEvenY(){const{y:S}=this.toAffine();if(n.isOdd)return!n.isOdd(S);throw new Error("Field doesn't support isOdd")}equals(S){m(S);const{px:j,py:P,pz:_}=this,{px:T,py:D,pz:Q}=S,H=n.eql(n.mul(j,Q),n.mul(T,_)),Z=n.eql(n.mul(P,Q),n.mul(D,_));return H&&Z}negate(){return new b(this.px,n.neg(this.py),this.pz)}double(){const{a:S,b:j}=t,P=n.mul(j,ah),{px:_,py:T,pz:D}=this;let Q=n.ZERO,H=n.ZERO,Z=n.ZERO,G=n.mul(_,_),le=n.mul(T,T),$=n.mul(D,D),X=n.mul(_,T);return X=n.add(X,X),Z=n.mul(_,D),Z=n.add(Z,Z),Q=n.mul(S,Z),H=n.mul(P,$),H=n.add(Q,H),Q=n.sub(le,H),H=n.add(le,H),H=n.mul(Q,H),Q=n.mul(X,Q),Z=n.mul(P,Z),$=n.mul(S,$),X=n.sub(G,$),X=n.mul(S,X),X=n.add(X,Z),Z=n.add(G,G),G=n.add(Z,G),G=n.add(G,$),G=n.mul(G,X),H=n.add(H,G),$=n.mul(T,D),$=n.add($,$),G=n.mul($,X),Q=n.sub(Q,G),Z=n.mul($,le),Z=n.add(Z,Z),Z=n.add(Z,Z),new b(Q,H,Z)}add(S){m(S);const{px:j,py:P,pz:_}=this,{px:T,py:D,pz:Q}=S;let H=n.ZERO,Z=n.ZERO,G=n.ZERO;const le=t.a,$=n.mul(t.b,ah);let X=n.mul(j,T),te=n.mul(P,D),F=n.mul(_,Q),J=n.add(j,P),Y=n.add(T,D);J=n.mul(J,Y),Y=n.add(X,te),J=n.sub(J,Y),Y=n.add(j,_);let L=n.add(T,Q);return Y=n.mul(Y,L),L=n.add(X,F),Y=n.sub(Y,L),L=n.add(P,_),H=n.add(D,Q),L=n.mul(L,H),H=n.add(te,F),L=n.sub(L,H),G=n.mul(le,Y),H=n.mul($,F),G=n.add(H,G),H=n.sub(te,G),G=n.add(te,G),Z=n.mul(H,G),te=n.add(X,X),te=n.add(te,X),F=n.mul(le,F),Y=n.mul($,Y),te=n.add(te,F),F=n.sub(X,F),F=n.mul(le,F),Y=n.add(Y,F),X=n.mul(te,Y),Z=n.add(Z,X),X=n.mul(L,Y),H=n.mul(J,H),H=n.sub(H,X),X=n.mul(J,te),G=n.mul(L,G),G=n.add(G,X),new b(H,Z,G)}subtract(S){return this.add(S.negate())}is0(){return this.equals(b.ZERO)}wNAF(S){return I.wNAFCached(this,S,b.normalizeZ)}multiplyUnsafe(S){const{endo:j,n:P}=t;Ps("scalar",S,Vr,P);const _=b.ZERO;if(S===Vr)return _;if(this.is0()||S===wt)return this;if(!j||I.hasPrecomputes(this))return I.wNAFCachedUnsafe(this,S,b.normalizeZ);let{k1neg:T,k1:D,k2neg:Q,k2:H}=j.splitScalar(S),Z=_,G=_,le=this;for(;D>Vr||H>Vr;)D&wt&&(Z=Z.add(le)),H&wt&&(G=G.add(le)),le=le.double(),D>>=wt,H>>=wt;return T&&(Z=Z.negate()),Q&&(G=G.negate()),G=new b(n.mul(G.px,j.beta),G.py,G.pz),Z.add(G)}multiply(S){const{endo:j,n:P}=t;Ps("scalar",S,wt,P);let _,T;if(j){const{k1neg:D,k1:Q,k2neg:H,k2:Z}=j.splitScalar(S);let{p:G,f:le}=this.wNAF(Q),{p:$,f:X}=this.wNAF(Z);G=I.constTimeNegate(D,G),$=I.constTimeNegate(H,$),$=new b(n.mul($.px,j.beta),$.py,$.pz),_=G.add($),T=le.add(X)}else{const{p:D,f:Q}=this.wNAF(S);_=D,T=Q}return b.normalizeZ([_,T])[0]}multiplyAndAddUnsafe(S,j,P){const _=b.BASE,T=(Q,H)=>H===Vr||H===wt||!Q.equals(_)?Q.multiplyUnsafe(H):Q.multiply(H),D=T(this,j).add(T(S,P));return D.is0()?void 0:D}toAffine(S){return y(this,S)}isTorsionFree(){const{h:S,isTorsionFree:j}=t;if(S===wt)return!0;if(j)return j(b,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:S,clearCofactor:j}=t;return S===wt?this:j?j(b,this):this.multiplyUnsafe(t.h)}toRawBytes(S=!0){return jc("isCompressed",S),this.assertValidity(),i(b,this,S)}toHex(S=!0){return jc("isCompressed",S),Bc(this.toRawBytes(S))}}b.BASE=new b(t.Gx,t.Gy,n.ONE),b.ZERO=new b(n.ZERO,n.ONE,n.ZERO);const{endo:C,nBitLength:A}=t,I=r9(b,C?Math.ceil(A/2):A);return{CURVE:t,ProjectivePoint:b,normPrivateKeyToScalar:g,weierstrassEquation:c,isWithinCurveOrder:p}}function l9(e){const t=y5(e);return Td(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}function u9(e){const t=l9(e),{Fp:n,n:r,nByteLength:i,nBitLength:a}=t,c=n.BYTES+1,u=2*n.BYTES+1;function d($){return rn($,r)}function f($){return dp($,r)}const{ProjectivePoint:p,normPrivateKeyToScalar:g,weierstrassEquation:m,isWithinCurveOrder:y}=c9({...t,toBytes($,X,te){const F=X.toAffine(),J=n.toBytes(F.x),Y=rd;return jc("isCompressed",te),te?Y(Uint8Array.from([X.hasEvenY()?2:3]),J):Y(Uint8Array.from([4]),J,n.toBytes(F.y))},fromBytes($){const X=$.length,te=$[0],F=$.subarray(1);if(X===c&&(te===2||te===3)){const J=Ti(F);if(!dm(J,wt,n.ORDER))throw new Error("Point is not on curve");const Y=m(J);let L;try{L=n.sqrt(Y)}catch(oe){const ce=oe instanceof Error?": "+oe.message:"";throw new Error("Point is not on curve"+ce)}const ee=(L&wt)===wt;return(te&1)===1!==ee&&(L=n.neg(L)),{x:J,y:L}}else if(X===u&&te===4){const J=n.fromBytes(F.subarray(0,n.BYTES)),Y=n.fromBytes(F.subarray(n.BYTES,2*n.BYTES));return{x:J,y:Y}}else{const J=c,Y=u;throw new Error("invalid Point, expected length of "+J+", or uncompressed "+Y+", got "+X)}}});function w($){const X=r>>wt;return $>X}function b($){return w($)?d(-$):$}const C=($,X,te)=>Ti($.slice(X,te));class A{constructor(X,te,F){Ps("r",X,wt,r),Ps("s",te,wt,r),this.r=X,this.s=te,F!=null&&(this.recovery=F),Object.freeze(this)}static fromCompact(X){const te=i;return X=On("compactSignature",X,te*2),new A(C(X,0,te),C(X,te,2*te))}static fromDER(X){const{r:te,s:F}=Ur.toSig(On("DER",X));return new A(te,F)}assertValidity(){}addRecoveryBit(X){return new A(this.r,this.s,X)}recoverPublicKey(X){const{r:te,s:F,recovery:J}=this,Y=_(On("msgHash",X));if(J==null||![0,1,2,3].includes(J))throw new Error("recovery id invalid");const L=J===2||J===3?te+t.n:te;if(L>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const ee=(J&1)===0?"02":"03",we=p.fromHex(ee+sh(L,n.BYTES)),oe=f(L),ce=d(-Y*oe),he=d(F*oe),Ce=p.BASE.multiplyAndAddUnsafe(we,ce,he);if(!Ce)throw new Error("point at infinify");return Ce.assertValidity(),Ce}hasHighS(){return w(this.s)}normalizeS(){return this.hasHighS()?new A(this.r,d(-this.s),this.recovery):this}toDERRawBytes(){return nd(this.toDERHex())}toDERHex(){return Ur.hexFromSig(this)}toCompactRawBytes(){return nd(this.toCompactHex())}toCompactHex(){const X=i;return sh(this.r,X)+sh(this.s,X)}}const I={isValidPrivateKey($){try{return g($),!0}catch{return!1}},normPrivateKeyToScalar:g,randomPrivateKey:()=>{const $=p5(t.n);return e9(t.randomBytes($),t.n)},precompute($=8,X=p.BASE){return X._setWindowSize($),X.multiply(BigInt(3)),X}};function k($,X=!0){return p.fromPrivateKey($).toRawBytes(X)}function S($){if(typeof $=="bigint")return!1;if($ instanceof p)return!0;const te=On("key",$).length,F=n.BYTES,J=F+1,Y=2*F+1;if(!(t.allowedPrivateKeyLengths||i===J))return te===J||te===Y}function j($,X,te=!0){if(S($)===!0)throw new Error("first arg must be private key");if(S(X)===!1)throw new Error("second arg must be public key");return p.fromHex(X).multiply(g($)).toRawBytes(te)}const P=t.bits2int||function($){if($.length>8192)throw new Error("input is too large");const X=Ti($),te=$.length*8-a;return te>0?X>>BigInt(te):X},_=t.bits2int_modN||function($){return d(P($))},T=Pd(a);function D($){return Ps("num < 2^"+a,$,Vr,T),nl($,i)}function Q($,X,te=H){if(["recovered","canonical"].some(Oe=>Oe in te))throw new Error("sign() legacy options not supported");const{hash:F,randomBytes:J}=t;let{lowS:Y,prehash:L,extraEntropy:ee}=te;Y==null&&(Y=!0),$=On("msgHash",$),cw(te),L&&($=On("prehashed msgHash",F($)));const we=_($),oe=g(X),ce=[D(oe),D(we)];if(ee!=null&&ee!==!1){const Oe=ee===!0?J(n.BYTES):ee;ce.push(On("extraEntropy",Oe))}const he=rd(...ce),Ce=we;function _e(Oe){const Ve=P(Oe);if(!y(Ve))return;const Cn=f(Ve),En=p.BASE.multiply(Ve).toAffine(),Mt=d(En.x);if(Mt===Vr)return;const An=d(Cn*d(Ce+Mt*oe));if(An===Vr)return;let zn=(En.x===Mt?0:2)|Number(En.y&wt),kn=An;return Y&&w(An)&&(kn=b(An),zn^=1),new A(Mt,kn,zn)}return{seed:he,k2sig:_e}}const H={lowS:t.lowS,prehash:!1},Z={lowS:t.lowS,prehash:!1};function G($,X,te=H){const{seed:F,k2sig:J}=Q($,X,te),Y=t;return q4(Y.hash.outputLen,Y.nByteLength,Y.hmac)(F,J)}p.BASE._setWindowSize(8);function le($,X,te,F=Z){var zn;const J=$;X=On("msgHash",X),te=On("publicKey",te);const{lowS:Y,prehash:L,format:ee}=F;if(cw(F),"strict"in F)throw new Error("options.strict was renamed to lowS");if(ee!==void 0&&ee!=="compact"&&ee!=="der")throw new Error("format must be compact or der");const we=typeof J=="string"||tl(J),oe=!we&&!ee&&typeof J=="object"&&J!==null&&typeof J.r=="bigint"&&typeof J.s=="bigint";if(!we&&!oe)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let ce,he;try{if(oe&&(ce=new A(J.r,J.s)),we){try{ee!=="compact"&&(ce=A.fromDER(J))}catch(kn){if(!(kn instanceof Ur.Err))throw kn}!ce&&ee!=="der"&&(ce=A.fromCompact(J))}he=p.fromHex(te)}catch{return!1}if(!ce||Y&&ce.hasHighS())return!1;L&&(X=t.hash(X));const{r:Ce,s:_e}=ce,Oe=_(X),Ve=f(_e),Cn=d(Oe*Ve),En=d(Ce*Ve),Mt=(zn=p.BASE.multiplyAndAddUnsafe(he,Cn,En))==null?void 0:zn.toAffine();return Mt?d(Mt.x)===Ce:!1}return{CURVE:t,getPublicKey:k,getSharedSecret:j,sign:G,verify:le,ProjectivePoint:p,Signature:A,utils:I}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function d9(e){return{hash:e,hmac:(t,...n)=>e5(e,t,LE(...n)),randomBytes:FE}}function f9(e,t){const n=r=>u9({...e,...d9(r)});return{...n(t),create:n}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const v5=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),lw=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h9=BigInt(0),p9=BigInt(1),hp=BigInt(2),uw=(e,t)=>(e+t/hp)/t;function m9(e){const t=v5,n=BigInt(3),r=BigInt(6),i=BigInt(11),a=BigInt(22),c=BigInt(23),u=BigInt(44),d=BigInt(88),f=e*e*e%t,p=f*f*e%t,g=Tn(p,n,t)*p%t,m=Tn(g,n,t)*p%t,y=Tn(m,hp,t)*f%t,w=Tn(y,i,t)*y%t,b=Tn(w,a,t)*w%t,C=Tn(b,u,t)*b%t,A=Tn(C,d,t)*C%t,I=Tn(A,u,t)*b%t,k=Tn(I,n,t)*p%t,S=Tn(k,c,t)*w%t,j=Tn(S,r,t)*f%t,P=Tn(j,hp,t);if(!pp.eql(pp.sqr(P),e))throw new Error("Cannot find square root");return P}const pp=Lm(v5,void 0,void 0,{sqrt:m9}),w5=f9({a:h9,b:BigInt(7),Fp:pp,n:lw,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=lw,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-p9*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),i=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=n,c=BigInt("0x100000000000000000000000000000000"),u=uw(a*e,t),d=uw(-r*e,t);let f=rn(e-u*n-d*i,t),p=rn(-u*r-d*a,t);const g=f>c,m=p>c;if(g&&(f=t-f),m&&(p=t-p),f>c||p>c)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:g,k1:f,k2neg:m,k2:p}}}},N2),g9=Object.freeze(Object.defineProperty({__proto__:null,secp256k1:w5},Symbol.toStringTag,{value:"Module"}));function b5(e,t={}){const{recovered:n}=t;if(typeof e.r>"u")throw new ch({signature:e});if(typeof e.s>"u")throw new ch({signature:e});if(n&&typeof e.yParity>"u")throw new ch({signature:e});if(e.r<0n||e.r>nw)throw new E9({value:e.r});if(e.s<0n||e.s>nw)throw new A9({value:e.s});if(typeof e.yParity=="number"&&e.yParity!==0&&e.yParity!==1)throw new zm({value:e.yParity})}function y9(e){return x5(or(e))}function x5(e){if(e.length!==130&&e.length!==132)throw new C9({signature:e});const t=BigInt(br(e,0,32)),n=BigInt(br(e,32,64)),r=(()=>{const i=+`0x${e.slice(130)}`;if(!Number.isNaN(i))try{return Fm(i)}catch{throw new zm({value:i})}})();return typeof r>"u"?{r:t,s:n}:{r:t,s:n,yParity:r}}function v9(e){if(!(typeof e.r>"u")&&!(typeof e.s>"u"))return w9(e)}function w9(e){const t=typeof e=="string"?x5(e):e instanceof Uint8Array?y9(e):typeof e.r=="string"?x9(e):e.v?b9(e):{r:e.r,s:e.s,...typeof e.yParity<"u"?{yParity:e.yParity}:{}};return b5(t),t}function b9(e){return{r:e.r,s:e.s,yParity:Fm(e.v)}}function x9(e){const t=(()=>{const n=e.v?Number(e.v):void 0;let r=e.yParity?Number(e.yParity):void 0;if(typeof n=="number"&&typeof r!="number"&&(r=Fm(n)),typeof r!="number")throw new zm({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function Fm(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new k9({value:e})}class C9 extends Ne{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${bn(m7(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class ch extends Ne{constructor({signature:t}){super(`Signature \`${n2(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class E9 extends Ne{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class A9 extends Ne{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class zm extends Ne{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class k9 extends Ne{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}function S9(e,t={}){return typeof e.chainId=="string"?I9(e):{...e,...t.signature}}function I9(e){const{address:t,chainId:n,nonce:r}=e,i=v9(e);return{address:t,chainId:Number(n),nonce:BigInt(r),...i}}const j9="0x8010801080108010801080108010801080108010801080108010801080108010",B9=o5("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function C5(e){if(typeof e=="string"){if(br(e,-32)!==j9)throw new T9(e)}else b5(e.authorization)}function _9(e){C5(e);const t=a2(br(e,-64,-32)),n=br(e,-t-64,-64),r=br(e,0,-t-64),[i,a,c]=WS(B9,n);return{authorization:S9({address:i.delegation,chainId:Number(i.chainId),nonce:i.nonce,yParity:i.yParity,r:i.r,s:i.s}),signature:r,...c&&c!=="0x"?{data:c,to:a}:{}}}function P9(e){try{return C5(e),!0}catch{return!1}}let T9=class extends Ne{constructor(t){super(`Value \`${t}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}};class O9 extends ne{constructor({value:t}){super(`Number \`${t}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function R9(e,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new O9({value:e});let[n,r="0"]=e.split(".");const i=n.startsWith("-");if(i&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),r.length>t){const[a,c,u]=[r.slice(0,t-1),r.slice(t-1,t),r.slice(t)],d=Math.round(+`${c}.${u}`);d>9?r=`${BigInt(a)+BigInt(1)}0`.padStart(a.length+1,"0"):r=`${a}${d}`,r.length>t&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,t)}else r=r.padEnd(t,"0");return BigInt(`${i?"-":""}${n}${r}`)}function N9(e){return e.map(t=>({...t,value:BigInt(t.value)}))}function M9(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?tr(e.nonce):void 0,storageProof:e.storageProof?N9(e.storageProof):void 0}}async function D9(e,{address:t,blockNumber:n,blockTag:r,storageKeys:i}){const a=r??"latest",c=n!==void 0?ae(n):void 0,u=await e.request({method:"eth_getProof",params:[t,i,c||a]});return M9(u)}async function L9(e,{address:t,blockNumber:n,blockTag:r="latest",slot:i}){const a=n!==void 0?ae(n):void 0;return await e.request({method:"eth_getStorageAt",params:[t,i,a||r]})}async function Wd(e,{blockHash:t,blockNumber:n,blockTag:r,hash:i,index:a,sender:c,nonce:u}){var m,y,w;const d=r||"latest",f=n!==void 0?ae(n):void 0;let p=null;if(i?p=await e.request({method:"eth_getTransactionByHash",params:[i]},{dedupe:!0}):t?p=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,ae(a)]},{dedupe:!0}):typeof a=="number"?p=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[f||d,ae(a)]},{dedupe:!!f}):c&&typeof u=="number"&&(p=await e.request({method:"eth_getTransactionBySenderAndNonce",params:[c,ae(u)]},{dedupe:!0})),!p)throw new H6({blockHash:t,blockNumber:n,blockTag:d,hash:i,index:a});return(((w=(y=(m=e.chain)==null?void 0:m.formatters)==null?void 0:y.transaction)==null?void 0:w.format)||al)(p,"getTransaction")}async function F9(e,{hash:t,transactionReceipt:n}){const[r,i]=await Promise.all([Ee(e,cl,"getBlockNumber")({}),t?Ee(e,Wd,"getTransaction")({hash:t}):void 0]),a=(n==null?void 0:n.blockNumber)||(i==null?void 0:i.blockNumber);return a?r-a+1n:0n}async function Hu(e,{hash:t}){var i,a,c;const n=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!n)throw new V6({hash:t});return(((c=(a=(i=e.chain)==null?void 0:i.formatters)==null?void 0:a.transactionReceipt)==null?void 0:c.format)||Tm)(n,"getTransactionReceipt")}async function E5(e,t){var I;const{account:n,authorizationList:r,allowFailure:i=!0,blockNumber:a,blockOverrides:c,blockTag:u,stateOverride:d}=t,f=t.contracts,{batchSize:p=t.batchSize??1024,deployless:g=t.deployless??!1}=typeof((I=e.batch)==null?void 0:I.multicall)=="object"?e.batch.multicall:{},m=(()=>{if(t.multicallAddress)return t.multicallAddress;if(g)return null;if(e.chain)return sa({blockNumber:a,chain:e.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),y=[[]];let w=0,b=0;for(let k=0;k<f.length;k++){const{abi:S,address:j,args:P,functionName:_}=f[k];try{const T=xn({abi:S,args:P,functionName:_});b+=(T.length-2)/2,p>0&&b>p&&y[w].length>0&&(w++,b=(T.length-2)/2,y[w]=[]),y[w]=[...y[w],{allowFailure:!0,callData:T,target:j}]}catch(T){const D=Ri(T,{abi:S,address:j,args:P,docsPath:"/docs/contract/multicall",functionName:_,sender:n});if(!i)throw D;y[w]=[...y[w],{allowFailure:!0,callData:"0x",target:j}]}}const C=await Promise.allSettled(y.map(k=>Ee(e,Ln,"readContract")({...m===null?{code:hm}:{address:m},abi:Qs,account:n,args:[k],authorizationList:r,blockNumber:a,blockOverrides:c,blockTag:u,functionName:"aggregate3",stateOverride:d}))),A=[];for(let k=0;k<C.length;k++){const S=C[k];if(S.status==="rejected"){if(!i)throw S.reason;for(let P=0;P<y[k].length;P++)A.push({status:"failure",error:S.reason,result:void 0});continue}const j=S.value;for(let P=0;P<j.length;P++){const{returnData:_,success:T}=j[P],{callData:D}=y[k][P],{abi:Q,address:H,functionName:Z,args:G}=f[A.length];try{if(D==="0x")throw new Yc;if(!T)throw new Bd({data:_});const le=Ko({abi:Q,args:G,data:_,functionName:Z});A.push(i?{result:le,status:"success"}:le)}catch(le){const $=Ri(le,{abi:Q,address:H,args:G,docsPath:"/docs/contract/multicall",functionName:Z});if(!i)throw $;A.push({error:$,result:void 0,status:"failure"})}}}if(A.length!==f.length)throw new ne("multicall results mismatch");return A}async function mp(e,t){const{blockNumber:n,blockTag:r=e.experimental_blockTag??"latest",blocks:i,returnFullTransactions:a,traceTransfers:c,validation:u}=t;try{const d=[];for(const m of i){const y=m.blockOverrides?u2(m.blockOverrides):void 0,w=m.calls.map(C=>{const A=C,I=A.account?St(A.account):void 0,k=A.abi?xn(A):A.data,S={...A,account:I,data:A.dataSuffix?Dn([k||"0x",A.dataSuffix]):k,from:A.from??(I==null?void 0:I.address)};return qi(S),aa(S)}),b=m.stateOverrides?gm(m.stateOverrides):void 0;d.push({blockOverrides:y,calls:w,stateOverrides:b})}const p=(typeof n=="bigint"?ae(n):void 0)||r;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:d,returnFullTransactions:a,traceTransfers:c,validation:u},p]})).map((m,y)=>({...xm(m),calls:m.calls.map((w,b)=>{var Q,H;const{abi:C,args:A,functionName:I,to:k}=i[y].calls[b],S=((Q=w.error)==null?void 0:Q.data)??w.returnData,j=BigInt(w.gasUsed),P=(H=w.logs)==null?void 0:H.map(Z=>Cr(Z)),_=w.status==="0x1"?"success":"failure",T=C&&_==="success"&&S!=="0x"?Ko({abi:C,data:S,functionName:I}):null,D=(()=>{if(_==="success")return;let Z;if(S==="0x"?Z=new Yc:S&&(Z=new Bd({data:S})),!!Z)return Ri(Z,{abi:C??[],address:k??"0x",args:A,functionName:I??"<unknown>"})})();return{data:S,gasUsed:j,logs:P,status:_,..._==="success"?{result:T}:{error:D}}})}))}catch(d){const f=d,p=Rd(f,{});throw p instanceof ol?f:p}}function gp(e){let t=!0,n="",r=0,i="",a=!1;for(let c=0;c<e.length;c++){const u=e[c];if(["(",")",","].includes(u)&&(t=!0),u==="("&&r++,u===")"&&r--,!!t){if(r===0){if(u===" "&&["event","function","error",""].includes(i))i="";else if(i+=u,u===")"){a=!0;break}continue}if(u===" "){e[c-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}i+=u,n+=u}}if(!a)throw new Ne("Unable to normalize signature.");return i}function yp(e,t){const n=typeof e,r=t.type;switch(r){case"address":return cp(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((i,a)=>yp(Object.values(e)[a],i)):/^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(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(i=>yp(i,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function A5(e,t,n){for(const r in e){const i=e[r],a=t[r];if(i.type==="tuple"&&a.type==="tuple"&&"components"in i&&"components"in a)return A5(i.components,a.components,n[r]);const c=[i.type,a.type];if(c.includes("address")&&c.includes("bytes20")?!0:c.includes("address")&&c.includes("string")?cp(n[r],{strict:!1}):c.includes("address")&&c.includes("bytes")?cp(n[r],{strict:!1}):!1)return c}}function k5(e,t={}){const{prepare:n=!0}=t,r=Array.isArray(e)||typeof e=="string"?Tv(e):e;return{...r,...n?{hash:Bs(r)}:{}}}function $d(e,t,n){const{args:r=[],prepare:i=!0}=n??{},a=g7(t,{strict:!1}),c=e.filter(f=>a?f.type==="function"||f.type==="error"?S5(f)===br(t,0,4):f.type==="event"?Bs(f)===t:!1:"name"in f&&f.name===t);if(c.length===0)throw new ad({name:t});if(c.length===1)return{...c[0],...i?{hash:Bs(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,...i?{hash:Bs(f)}:{}};continue}if(!f.inputs||f.inputs.length===0||f.inputs.length!==r.length)continue;if(r.every((g,m)=>{const y="inputs"in f&&f.inputs[m];return y?yp(g,y):!1})){if(u&&"inputs"in u&&u.inputs){const g=A5(f.inputs,u.inputs,r);if(g)throw new U9({abiItem:f,type:g[0]},{abiItem:u,type:g[1]})}u=f}}const d=(()=>{if(u)return u;const[f,...p]=c;return{...f,overloads:p}})();if(!d)throw new ad({name:t});return{...d,...i?{hash:Bs(d)}:{}}}function S5(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,r]=e;return $d(n,r)}return e[0]})();return br(Bs(t),0,4)}function z9(...e){const t=(()=>{if(Array.isArray(e[0])){const[r,i]=e;return $d(r,i)}return e[0]})(),n=typeof t=="string"?t:td(t);return gp(n)}function Bs(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,r]=e;return $d(n,r)}return e[0]})();return typeof t!="string"&&"hash"in t&&t.hash?t.hash:t5(fm(z9(t)))}class U9 extends Ne{constructor(t,n){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${gp(td(t.abiItem))}\`, and`,`\`${n.type}\` in \`${gp(td(n.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 ad extends Ne{constructor({name:t,data:n,type:r="item"}){const i=t?` with name "${t}"`:n?` with data "${n}"`:"";super(`ABI ${r}${i} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}function W9(...e){var a;const[t,n]=(()=>{if(Array.isArray(e[0])){const[c,u]=e;return[q9(c),u]}return e})(),{bytecode:r,args:i}=n;return rr(r,(a=t.inputs)!=null&&a.length&&(i!=null&&i.length)?Mm(t.inputs,i):"0x")}function $9(e){return k5(e)}function q9(e){const t=e.find(n=>n.type==="constructor");if(!t)throw new ad({name:"constructor"});return t}function H9(...e){const[t,n=[]]=(()=>{if(Array.isArray(e[0])){const[f,p,g]=e;return[dw(f,p,{args:g}),g]}const[u,d]=e;return[u,d]})(),{overloads:r}=t,i=r?dw([t,...r],t.name,{args:n}):t,a=V9(i),c=n.length>0?Mm(i.inputs,n):void 0;return c?rr(a,c):a}function Cs(e,t={}){return k5(e,t)}function dw(e,t,n){const r=$d(e,t,n);if(r.type!=="function")throw new ad({name:t,type:"function"});return r}function V9(e){return S5(e)}const Q9="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",Yn="0x0000000000000000000000000000000000000000",G9="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";async function K9(e,t){const{blockNumber:n,blockTag:r,calls:i,stateOverrides:a,traceAssetChanges:c,traceTransfers:u,validation:d}=t,f=t.account?St(t.account):void 0;if(c&&!f)throw new ne("`account` is required when `traceAssetChanges` is true");const p=f?W9($9("constructor(bytes, bytes)"),{bytecode:d2,args:[G9,H9(Cs("function getBalance(address)"),[f.address])]}):void 0,g=c?await Promise.all(t.calls.map(async F=>{if(!F.data&&!F.abi)return;const{accessList:J}=await x2(e,{account:f.address,...F,data:F.abi?xn(F):F.data});return J.map(({address:Y,storageKeys:L})=>L.length>0?Y:null)})).then(F=>F.flat().filter(Boolean)):[],m=await mp(e,{blockNumber:n,blockTag:r,blocks:[...c?[{calls:[{data:p}],stateOverrides:a},{calls:g.map((F,J)=>({abi:[Cs("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[f.address],to:F,from:Yn,nonce:J})),stateOverrides:[{address:Yn,nonce:0}]}]:[],{calls:[...i,{to:Yn}].map(F=>({...F,from:f==null?void 0:f.address})),stateOverrides:a},...c?[{calls:[{data:p}]},{calls:g.map((F,J)=>({abi:[Cs("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[f.address],to:F,from:Yn,nonce:J})),stateOverrides:[{address:Yn,nonce:0}]},{calls:g.map((F,J)=>({to:F,abi:[Cs("function decimals() returns (uint256)")],functionName:"decimals",from:Yn,nonce:J})),stateOverrides:[{address:Yn,nonce:0}]},{calls:g.map((F,J)=>({to:F,abi:[Cs("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:Yn,nonce:J})),stateOverrides:[{address:Yn,nonce:0}]},{calls:g.map((F,J)=>({to:F,abi:[Cs("function symbol() returns (string)")],functionName:"symbol",from:Yn,nonce:J})),stateOverrides:[{address:Yn,nonce:0}]}]:[]],traceTransfers:u,validation:d}),y=c?m[2]:m[0],[w,b,,C,A,I,k,S]=c?m:[],{calls:j,...P}=y,_=j.slice(0,-1)??[],T=(w==null?void 0:w.calls)??[],D=(b==null?void 0:b.calls)??[],Q=[...T,...D].map(F=>F.status==="success"?$t(F.data):null),H=(C==null?void 0:C.calls)??[],Z=(A==null?void 0:A.calls)??[],G=[...H,...Z].map(F=>F.status==="success"?$t(F.data):null),le=((I==null?void 0:I.calls)??[]).map(F=>F.status==="success"?F.result:null),$=((S==null?void 0:S.calls)??[]).map(F=>F.status==="success"?F.result:null),X=((k==null?void 0:k.calls)??[]).map(F=>F.status==="success"?F.result:null),te=[];for(const[F,J]of G.entries()){const Y=Q[F];if(typeof J!="bigint"||typeof Y!="bigint")continue;const L=le[F-1],ee=$[F-1],we=X[F-1],oe=F===0?{address:Q9,decimals:18,symbol:"ETH"}:{address:g[F-1],decimals:we||L?Number(L??1):void 0,symbol:ee??void 0};te.some(ce=>ce.token.address===oe.address)||te.push({token:oe,value:{pre:Y,post:J,diff:J-Y}})}return{assetChanges:te,block:P,results:_}}async function I5(e,t){var p;const{abi:n,address:r,args:i,functionName:a,dataSuffix:c=typeof e.dataSuffix=="string"?e.dataSuffix:(p=e.dataSuffix)==null?void 0:p.value,...u}=t,d=u.account?St(u.account):e.account,f=xn({abi:n,args:i,functionName:a});try{const{data:g}=await Ee(e,ca,"call")({batch:!1,data:`${f}${c?c.replace("0x",""):""}`,to:r,...u,account:d}),m=Ko({abi:n,args:i,functionName:a,data:g||"0x"}),y=n.filter(w=>"name"in w&&w.name===t.functionName);return{result:m,request:{abi:y,address:r,args:i,dataSuffix:c,functionName:a,...u,account:d}}}catch(g){throw Ri(g,{abi:n,address:r,args:i,docsPath:"/docs/contract/simulateContract",functionName:a,sender:d==null?void 0:d.address})}}async function qd(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}const j5="0x6492649264926492649264926492649264926492649264926492649264926492";function Y9(e){if(br(e,-32)!==j5)throw new X9(e)}function J9(e){const{data:t,signature:n,to:r}=e;return rr(Mm(o5("address, bytes, bytes"),[r,t,n]),j5)}function Z9(e){try{return Y9(e),!0}catch{return!1}}class X9 extends Ne{constructor(t){super(`Value \`${t}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}function eI({r:e,s:t,to:n="hex",v:r,yParity:i}){const a=(()=>{if(i===0||i===1)return i;if(r&&(r===27n||r===28n||r>=35n))return r%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),c=`0x${new w5.Signature($t(e),$t(t)).toCompactHex()}${a===0?"1b":"1c"}`;return n==="hex"?c:nr(c)}async function Hd(e,t){var f,p,g,m;const{address:n,chain:r=e.chain,hash:i,erc6492VerifierAddress:a=t.universalSignatureVerifierAddress??((p=(f=r==null?void 0:r.contracts)==null?void 0:f.erc6492Verifier)==null?void 0:p.address),multicallAddress:c=t.multicallAddress??((m=(g=r==null?void 0:r.contracts)==null?void 0:g.multicall3)==null?void 0:m.address),mode:u="auto"}=t;if(r!=null&&r.verifyHash)return await r.verifyHash(e,t);const d=(()=>{const y=t.signature;return xr(y)?y:typeof y=="object"&&"r"in y&&"s"in y?eI(y):at(y)})();try{if(u==="eoa")try{if(Pc(pt(n),await sp({hash:i,signature:d})))return!0}catch{}return P9(d)?await tI(e,{...t,multicallAddress:c,signature:d}):await nI(e,{...t,verifierAddress:a,signature:d})}catch(y){if(u!=="eoa")try{if(Pc(pt(n),await sp({hash:i,signature:d})))return!0}catch{}if(y instanceof Li)return!1;throw y}}async function tI(e,t){var C;const{address:n,blockNumber:r,blockTag:i,hash:a,multicallAddress:c}=t,{authorization:u,data:d,signature:f,to:p}=_9(t.signature);if(await od(e,{address:n,blockNumber:r,blockTag:i})===ir(["0xef0100",u.address]))return await rI(e,{address:n,blockNumber:r,blockTag:i,hash:a,signature:f});const m={address:u.address,chainId:Number(u.chainId),nonce:Number(u.nonce),r:ae(u.r,{size:32}),s:ae(u.s,{size:32}),yParity:u.yParity};if(!await Gk({address:n,authorization:m}))throw new Li;const w=await Ee(e,Ln,"readContract")({...c?{address:c}:{code:hm},authorizationList:[m],abi:Qs,blockNumber:r,blockTag:"pending",functionName:"aggregate3",args:[[...d?[{allowFailure:!0,target:p??n,callData:d}]:[],{allowFailure:!0,target:n,callData:xn({abi:i6,functionName:"isValidSignature",args:[a,f]})}]]}),b=(C=w[w.length-1])==null?void 0:C.returnData;if(b!=null&&b.startsWith("0x1626ba7e"))return!0;throw new Li}async function nI(e,t){const{address:n,factory:r,factoryData:i,hash:a,signature:c,verifierAddress:u,...d}=t,f=await(async()=>!r&&!i||Z9(c)?c:J9({data:i,signature:c,to:r}))(),p=u?{to:u,data:xn({abi:mv,functionName:"isValidSig",args:[n,a,f]}),...d}:{data:pm({abi:mv,args:[n,a,f],bytecode:C7}),...d},{data:g}=await Ee(e,ca,"call")(p).catch(m=>{throw m instanceof Q6?new Li:m});if(hE(g??"0x0"))return!0;throw new Li}async function rI(e,t){const{address:n,blockNumber:r,blockTag:i,hash:a,signature:c}=t;if((await Ee(e,Ln,"readContract")({address:n,abi:i6,args:[a,c],blockNumber:r,blockTag:i,functionName:"isValidSignature"}).catch(d=>{throw d instanceof im?new Li:d})).startsWith("0x1626ba7e"))return!0;throw new Li}class Li extends Error{}async function oI(e,{address:t,message:n,factory:r,factoryData:i,signature:a,...c}){const u=G2(n);return Ee(e,Hd,"verifyHash")({address:t,factory:r,factoryData:i,hash:u,signature:a,...c})}async function iI(e,t){const{address:n,factory:r,factoryData:i,signature:a,message:c,primaryType:u,types:d,domain:f,...p}=t,g=fS({message:c,primaryType:u,types:d,domain:f});return Ee(e,Hd,"verifyHash")({address:n,factory:r,factoryData:i,hash:g,signature:a,...p})}const lh=new Map,fw=new Map;let sI=0;function Qo(e,t,n){const r=++sI,i=()=>lh.get(e)||[],a=()=>{const p=i();lh.set(e,p.filter(g=>g.id!==r))},c=()=>{const p=i();if(!p.some(m=>m.id===r))return;const g=fw.get(e);if(p.length===1&&g){const m=g();m instanceof Promise&&m.catch(()=>{})}a()},u=i();if(lh.set(e,[...u,{id:r,fns:t}]),u&&u.length>0)return c;const d={};for(const p in t)d[p]=((...g)=>{var y,w;const m=i();if(m.length!==0)for(const b of m)(w=(y=b.fns)[p])==null||w.call(y,...g)});const f=n(d);return typeof f=="function"&&fw.set(e,f),c}function ul(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let i=!0;const a=()=>i=!1;return(async()=>{let u;t&&(u=await e({unpoll:a}));const d=await(n==null?void 0:n(u))??r;await sd(d);const f=async()=>{i&&(await e({unpoll:a}),await sd(r),f())};f()})(),a}function B5(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:r,onError:i,poll:a,pollingInterval:c=e.pollingInterval}){const u=typeof a<"u"?a:!(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 d;return u?(()=>{const g=kt(["watchBlockNumber",e.uid,t,n,c]);return Qo(g,{onBlockNumber:r,onError:i},m=>ul(async()=>{var y;try{const w=await Ee(e,cl,"getBlockNumber")({cacheTime:0});if(d!==void 0){if(w===d)return;if(w-d>1&&n)for(let b=d+1n;b<w;b++)m.onBlockNumber(b,d),d=b}(d===void 0||w>d)&&(m.onBlockNumber(w,d),d=w)}catch(w){(y=m.onError)==null||y.call(m,w)}},{emitOnBegin:t,interval:c}))})():(()=>{const g=kt(["watchBlockNumber",e.uid,t,n]);return Qo(g,{onBlockNumber:r,onError:i},m=>{let y=!0,w=()=>y=!1;return(async()=>{try{const b=(()=>{if(e.transport.type==="fallback"){const A=e.transport.transports.find(I=>I.config.type==="webSocket"||I.config.type==="ipc");return A?A.value:e.transport}return e.transport})(),{unsubscribe:C}=await b.subscribe({params:["newHeads"],onData(A){var k;if(!y)return;const I=$t((k=A.result)==null?void 0:k.number);m.onBlockNumber(I,d),d=I},onError(A){var I;(I=m.onError)==null||I.call(m,A)}});w=C,y||w()}catch(b){i==null||i(b)}})(),()=>w()})})()}async function _5(e,t){const{checkReplacement:n=!0,confirmations:r=1,hash:i,onReplaced:a,retryCount:c=6,retryDelay:u=({count:j})=>~~(1<<j)*200,timeout:d=18e4}=t,f=kt(["waitForTransactionReceipt",e.uid,i]),p=(()=>{var j;return t.pollingInterval?t.pollingInterval:(j=e.chain)!=null&&j.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval})();let g,m,y,w=!1,b,C;const{promise:A,resolve:I,reject:k}=h2(),S=d?setTimeout(()=>{C==null||C(),b==null||b(),k(new I4({hash:i}))},d):void 0;return b=Qo(f,{onReplaced:a,resolve:I,reject:k},async j=>{if(y=await Ee(e,Hu,"getTransactionReceipt")({hash:i}).catch(()=>{}),y&&r<=1){clearTimeout(S),j.resolve(y),b==null||b();return}C=Ee(e,B5,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber(P){const _=D=>{clearTimeout(S),C==null||C(),D(),b==null||b()};let T=P;if(!w)try{if(y){if(r>1&&(!y.blockNumber||T-y.blockNumber+1n<r))return;_(()=>j.resolve(y));return}if(n&&!g&&(w=!0,await ea(async()=>{g=await Ee(e,Wd,"getTransaction")({hash:i}),g.blockNumber&&(T=g.blockNumber)},{delay:u,retryCount:c}),w=!1),y=await Ee(e,Hu,"getTransactionReceipt")({hash:i}),r>1&&(!y.blockNumber||T-y.blockNumber+1n<r))return;_(()=>j.resolve(y))}catch(D){if(D instanceof H6||D instanceof V6){if(!g){w=!1;return}try{m=g,w=!0;const Q=await ea(()=>Ee(e,Zn,"getBlock")({blockNumber:T,includeTransactions:!0}),{delay:u,retryCount:c,shouldRetry:({error:G})=>G instanceof j2});w=!1;const H=Q.transactions.find(({from:G,nonce:le})=>G===m.from&&le===m.nonce);if(!H||(y=await Ee(e,Hu,"getTransactionReceipt")({hash:H.hash}),r>1&&(!y.blockNumber||T-y.blockNumber+1n<r)))return;let Z="replaced";H.to===m.to&&H.value===m.value&&H.input===m.input?Z="repriced":H.from===H.to&&H.value===0n&&(Z="cancelled"),_(()=>{var G;(G=j.onReplaced)==null||G.call(j,{reason:Z,replacedTransaction:m,transaction:H,transactionReceipt:y}),j.resolve(y)})}catch(Q){_(()=>j.reject(Q))}}else _(()=>j.reject(D))}}})}),A}function aI(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:i,onError:a,includeTransactions:c,poll:u,pollingInterval:d=e.pollingInterval}){const f=typeof u<"u"?u:!(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")),p=c??!1;let g;return f?(()=>{const w=kt(["watchBlocks",e.uid,t,n,r,p,d]);return Qo(w,{onBlock:i,onError:a},b=>ul(async()=>{var C;try{const A=await Ee(e,Zn,"getBlock")({blockTag:t,includeTransactions:p});if(A.number!==null&&(g==null?void 0:g.number)!=null){if(A.number===g.number)return;if(A.number-g.number>1&&n)for(let I=(g==null?void 0:g.number)+1n;I<A.number;I++){const k=await Ee(e,Zn,"getBlock")({blockNumber:I,includeTransactions:p});b.onBlock(k,g),g=k}}((g==null?void 0:g.number)==null||t==="pending"&&(A==null?void 0:A.number)==null||A.number!==null&&A.number>g.number)&&(b.onBlock(A,g),g=A)}catch(A){(C=b.onError)==null||C.call(b,A)}},{emitOnBegin:r,interval:d}))})():(()=>{let w=!0,b=!0,C=()=>w=!1;return(async()=>{try{r&&Ee(e,Zn,"getBlock")({blockTag:t,includeTransactions:p}).then(k=>{w&&b&&(i(k,void 0),b=!1)}).catch(a);const A=(()=>{if(e.transport.type==="fallback"){const k=e.transport.transports.find(S=>S.config.type==="webSocket"||S.config.type==="ipc");return k?k.value:e.transport}return e.transport})(),{unsubscribe:I}=await A.subscribe({params:["newHeads"],async onData(k){var j;if(!w)return;const S=await Ee(e,Zn,"getBlock")({blockNumber:(j=k.result)==null?void 0:j.number,includeTransactions:p}).catch(()=>{});w&&(i(S,g),b=!1,g=S)},onError(k){a==null||a(k)}});C=I,w||C()}catch(A){a==null||a(A)}})(),()=>C()})()}function cI(e,t){const{abi:n,address:r,args:i,batch:a=!0,eventName:c,fromBlock:u,onError:d,onLogs:f,poll:p,pollingInterval:g=e.pollingInterval,strict:m}=t;return(typeof p<"u"?p: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")))?(()=>{const C=m??!1,A=kt(["watchContractEvent",r,i,a,e.uid,c,g,C,u]);return Qo(A,{onLogs:f,onError:d},I=>{let k;u!==void 0&&(k=u-1n);let S,j=!1;const P=ul(async()=>{var _;if(!j){try{S=await Ee(e,C2,"createContractEventFilter")({abi:n,address:r,args:i,eventName:c,strict:C,fromBlock:u})}catch{}j=!0;return}try{let T;if(S)T=await Ee(e,Ld,"getFilterChanges")({filter:S});else{const D=await Ee(e,cl,"getBlockNumber")({});k&&k<D?T=await Ee(e,Q2,"getContractEvents")({abi:n,address:r,args:i,eventName:c,fromBlock:k+1n,toBlock:D,strict:C}):T=[],k=D}if(T.length===0)return;if(a)I.onLogs(T);else for(const D of T)I.onLogs([D])}catch(T){S&&T instanceof Ho&&(j=!1),(_=I.onError)==null||_.call(I,T)}},{emitOnBegin:!0,interval:g});return async()=>{S&&await Ee(e,qd,"uninstallFilter")({filter:S}),P()}})})():(()=>{const C=m??!1,A=kt(["watchContractEvent",r,i,a,e.uid,c,g,C]);let I=!0,k=()=>I=!1;return Qo(A,{onLogs:f,onError:d},S=>((async()=>{try{const j=(()=>{if(e.transport.type==="fallback"){const T=e.transport.transports.find(D=>D.config.type==="webSocket"||D.config.type==="ipc");return T?T.value:e.transport}return e.transport})(),P=c?sl({abi:n,eventName:c,args:i}):[],{unsubscribe:_}=await j.subscribe({params:["logs",{address:r,topics:P}],onData(T){var Q;if(!I)return;const D=T.result;try{const{eventName:H,args:Z}=id({abi:n,data:D.data,topics:D.topics,strict:m}),G=Cr(D,{args:Z,eventName:H});S.onLogs([G])}catch(H){let Z,G;if(H instanceof ed||H instanceof Gp){if(m)return;Z=H.abiItem.name,G=(Q=H.abiItem.inputs)==null?void 0:Q.some($=>!("name"in $&&$.name))}const le=Cr(D,{args:G?[]:{},eventName:Z});S.onLogs([le])}},onError(T){var D;(D=S.onError)==null||D.call(S,T)}});k=_,I||k()}catch(j){d==null||d(j)}})(),()=>k()))})()}function lI(e,{address:t,args:n,batch:r=!0,event:i,events:a,fromBlock:c,onError:u,onLogs:d,poll:f,pollingInterval:p=e.pollingInterval,strict:g}){const m=typeof f<"u"?f:typeof c=="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")),y=g??!1;return m?(()=>{const C=kt(["watchEvent",t,n,r,e.uid,i,p,c]);return Qo(C,{onLogs:d,onError:u},A=>{let I;c!==void 0&&(I=c-1n);let k,S=!1;const j=ul(async()=>{var P;if(!S){try{k=await Ee(e,E2,"createEventFilter")({address:t,args:n,event:i,events:a,strict:y,fromBlock:c})}catch{}S=!0;return}try{let _;if(k)_=await Ee(e,Ld,"getFilterChanges")({filter:k});else{const T=await Ee(e,cl,"getBlockNumber")({});I&&I!==T?_=await Ee(e,Bm,"getLogs")({address:t,args:n,event:i,events:a,fromBlock:I+1n,toBlock:T}):_=[],I=T}if(_.length===0)return;if(r)A.onLogs(_);else for(const T of _)A.onLogs([T])}catch(_){k&&_ instanceof Ho&&(S=!1),(P=A.onError)==null||P.call(A,_)}},{emitOnBegin:!0,interval:p});return async()=>{k&&await Ee(e,qd,"uninstallFilter")({filter:k}),j()}})})():(()=>{let C=!0,A=()=>C=!1;return(async()=>{try{const I=(()=>{if(e.transport.type==="fallback"){const P=e.transport.transports.find(_=>_.config.type==="webSocket"||_.config.type==="ipc");return P?P.value:e.transport}return e.transport})(),k=a??(i?[i]:void 0);let S=[];k&&(S=[k.flatMap(_=>sl({abi:[_],eventName:_.name,args:n}))],i&&(S=S[0]));const{unsubscribe:j}=await I.subscribe({params:["logs",{address:t,topics:S}],onData(P){var T;if(!C)return;const _=P.result;try{const{eventName:D,args:Q}=id({abi:k??[],data:_.data,topics:_.topics,strict:y}),H=Cr(_,{args:Q,eventName:D});d([H])}catch(D){let Q,H;if(D instanceof ed||D instanceof Gp){if(g)return;Q=D.abiItem.name,H=(T=D.abiItem.inputs)==null?void 0:T.some(G=>!("name"in G&&G.name))}const Z=Cr(_,{args:H?[]:{},eventName:Q});d([Z])}},onError(P){u==null||u(P)}});A=j,C||A()}catch(I){u==null||u(I)}})(),()=>A()})()}function uI(e,{batch:t=!0,onError:n,onTransactions:r,poll:i,pollingInterval:a=e.pollingInterval}){return(typeof i<"u"?i:e.transport.type!=="webSocket"&&e.transport.type!=="ipc")?(()=>{const f=kt(["watchPendingTransactions",e.uid,t,a]);return Qo(f,{onTransactions:r,onError:n},p=>{let g;const m=ul(async()=>{var y;try{if(!g)try{g=await Ee(e,A2,"createPendingTransactionFilter")({});return}catch(b){throw m(),b}const w=await Ee(e,Ld,"getFilterChanges")({filter:g});if(w.length===0)return;if(t)p.onTransactions(w);else for(const b of w)p.onTransactions([b])}catch(w){(y=p.onError)==null||y.call(p,w)}},{emitOnBegin:!0,interval:a});return async()=>{g&&await Ee(e,qd,"uninstallFilter")({filter:g}),m()}})})():(()=>{let f=!0,p=()=>f=!1;return(async()=>{try{const{unsubscribe:g}=await e.transport.subscribe({params:["newPendingTransactions"],onData(m){if(!f)return;const y=m.result;r([y])},onError(m){n==null||n(m)}});p=g,f||p()}catch(g){n==null||n(g)}})(),()=>p()})()}class Um extends ne{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(`
83
+ `),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class uh extends ne{constructor({docsPath:t,metaMessages:n,type:r}){super(`Account type "${r}" is not supported.`,{docsPath:t,metaMessages:n,name:"AccountTypeNotSupportedError"})}}async function P5(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}const dh=new Jc(128);async function dI(e,t){var S,j,P,_,T;const{account:n=e.account,assertChainId:r=!0,chain:i=e.chain,accessList:a,authorizationList:c,blobs:u,data:d,dataSuffix:f=typeof e.dataSuffix=="string"?e.dataSuffix:(S=e.dataSuffix)==null?void 0:S.value,gas:p,gasPrice:g,maxFeePerBlobGas:m,maxFeePerGas:y,maxPriorityFeePerGas:w,nonce:b,type:C,value:A,...I}=t;if(typeof n>"u")throw new Um({docsPath:"/docs/actions/wallet/sendTransaction"});const k=n?St(n):null;try{qi(t);const D=await(async()=>{if(t.to)return t.to;if(t.to!==null&&c&&c.length>0)return await wm({authorization:c[0]}).catch(()=>{throw new ne("`to` is required. Could not infer from `authorizationList`.")})})();if((k==null?void 0:k.type)==="json-rpc"||k===null){let Q;i!==null&&(Q=await Ee(e,Dd,"getChainId")({}),r&&Zk({currentChainId:Q,chain:i}));const H=(_=(P=(j=e.chain)==null?void 0:j.formatters)==null?void 0:P.transactionRequest)==null?void 0:_.format,G=(H||aa)({...il(I,{format:H}),accessList:a,account:k,authorizationList:c,blobs:u,chainId:Q,data:f?Dn([d??"0x",f]):d,gas:p,gasPrice:g,maxFeePerBlobGas:m,maxFeePerGas:y,maxPriorityFeePerGas:w,nonce:b,to:D,type:C,value:A},"sendTransaction"),le=dh.get(e.uid),$=le?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:$,params:[G]},{retryCount:0})}catch(X){if(le===!1)throw X;const te=X;if(te.name==="InvalidInputRpcError"||te.name==="InvalidParamsRpcError"||te.name==="MethodNotFoundRpcError"||te.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[G]},{retryCount:0}).then(F=>(dh.set(e.uid,!0),F)).catch(F=>{const J=F;throw J.name==="MethodNotFoundRpcError"||J.name==="MethodNotSupportedRpcError"?(dh.set(e.uid,!1),te):J});throw te}}if((k==null?void 0:k.type)==="local"){const Q=await Ee(e,Sm,"prepareTransactionRequest")({account:k,accessList:a,authorizationList:c,blobs:u,chain:i,data:f?Dn([d??"0x",f]):d,gas:p,gasPrice:g,maxFeePerBlobGas:m,maxFeePerGas:y,maxPriorityFeePerGas:w,nonce:b,nonceManager:k.nonceManager,parameters:[...H2,"sidecars"],type:C,value:A,...I,to:D}),H=(T=i==null?void 0:i.serializers)==null?void 0:T.transaction,Z=await k.signTransaction(Q,{serializer:H});return await Ee(e,P5,"sendRawTransaction")({serializedTransaction:Z})}throw(k==null?void 0:k.type)==="smart"?new uh({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new uh({docsPath:"/docs/actions/wallet/sendTransaction",type:k==null?void 0:k.type})}catch(D){throw D instanceof uh?D:$2(D,{...t,account:k,chain:t.chain||void 0})}}async function fI(e,{serializedTransaction:t,throwOnReceiptRevert:n,timeout:r}){var u,d,f;const i=await e.request({method:"eth_sendRawTransactionSync",params:r?[t,r]:[t]},{retryCount:0}),c=(((f=(d=(u=e.chain)==null?void 0:u.formatters)==null?void 0:d.transactionReceipt)==null?void 0:f.format)||Tm)(i);if(c.status==="reverted"&&n)throw new S4({receipt:c});return c}async function hI(e,{account:t=e.account,message:n}){if(!t)throw new Um({docsPath:"/docs/actions/wallet/signMessage"});const r=St(t);if(r.signMessage)return r.signMessage({message:n});const i=typeof n=="string"?Ks(n):n.raw instanceof Uint8Array?sn(n.raw):n.raw;return e.request({method:"personal_sign",params:[i,r.address]},{retryCount:0})}async function cd(e,t){return cd.internal(e,dI,"sendTransaction",t)}(function(e){async function t(n,r,i,a){const{abi:c,account:u=n.account,address:d,args:f,functionName:p,...g}=a;if(typeof u>"u")throw new Um({docsPath:"/docs/contract/writeContract"});const m=u?St(u):null,y=xn({abi:c,args:f,functionName:p});try{return await Ee(n,r,i)({data:y,to:d,account:m,...g})}catch(w){throw Ri(w,{abi:c,address:d,args:f,docsPath:"/docs/contract/writeContract",functionName:p,sender:m==null?void 0:m.address})}}e.internal=t})(cd||(cd={}));function Xn(e,t,n){const r=e[t.name];if(typeof r=="function")return r;const i=e[n];return typeof i=="function"?i:a=>t(e,a)}const Vu="2.22.1",pI=()=>`@wagmi/core@${Vu}`;var T5=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},ld,O5;let Xr=class vp extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return pI()}constructor(t,n={}){var a;super(),ld.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 r=n.cause instanceof vp?n.cause.details:(a=n.cause)!=null&&a.message?n.cause.message:n.details,i=n.cause instanceof vp&&n.cause.docsPath||n.docsPath;this.message=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: ${this.docsBaseUrl}${i}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join(`
84
+ `),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=i,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return T5(this,ld,"m",O5).call(this,this,t)}};ld=new WeakSet,O5=function e(t,n){return n!=null&&n(t)?t:t.cause?T5(this,ld,"m",e).call(this,t.cause,n):t};class Go extends Xr{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class mI extends Xr{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class gI extends Xr{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class yI extends Xr{constructor({address:t,connector:n}){super(`Account "${t}" not found for connector "${n.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class vI extends Xr{constructor({connectionChainId:t,connectorChainId:n}){super(`The current chain of the connector (id: ${n}) does not match the connection's chain (id: ${t}).`,{metaMessages:[`Current Chain ID: ${n}`,`Expected Chain ID: ${t}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class wI extends Xr{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 bI(e,t){var r;let n;if(typeof t.connector=="function"?n=e._internal.connectors.setup(t.connector):n=t.connector,n.uid===e.state.current)throw new mI;try{e.setState(u=>({...u,status:"connecting"})),n.emitter.emit("message",{type:"connecting"});const{connector:i,...a}=t,c=await n.connect(a);return n.emitter.off("connect",e._internal.events.connect),n.emitter.on("change",e._internal.events.change),n.emitter.on("disconnect",e._internal.events.disconnect),await((r=e.storage)==null?void 0:r.setItem("recentConnectorId",n.id)),e.setState(u=>({...u,connections:new Map(u.connections).set(n.uid,{accounts:a.withCapabilities?c.accounts.map(d=>typeof d=="object"?d.address:d):c.accounts,chainId:c.chainId,connector:n}),current:n.uid,status:"connected"})),{accounts:a.withCapabilities?c.accounts.map(u=>typeof u=="object"?u:{address:u,capabilities:{}}):c.accounts,chainId:c.chainId}}catch(i){throw e.setState(a=>({...a,status:a.current?"connected":"disconnected"})),i}}const wp=256;let Tu=wp,Ou;function R5(e=11){if(!Ou||Tu+e>wp*2){Ou="",Tu=0;for(let t=0;t<wp;t++)Ou+=(256+Math.random()*256|0).toString(16).substring(1)}return Ou.substring(Tu,Tu+++e)}function N5(e){const{batch:t,chain:n,ccipRead:r,dataSuffix:i,key:a="base",name:c="Base Client",type:u="base"}=e,d=e.experimental_blockTag??(typeof(n==null?void 0:n.experimental_preconfirmationTime)=="number"?"pending":void 0),f=(n==null?void 0:n.blockTime)??12e3,p=Math.min(Math.max(Math.floor(f/2),500),4e3),g=e.pollingInterval??p,m=e.cacheTime??g,y=e.account?St(e.account):void 0,{config:w,request:b,value:C}=e.transport({account:y,chain:n,pollingInterval:g}),A={...w,...C},I={account:y,batch:t,cacheTime:m,ccipRead:r,chain:n,dataSuffix:i,key:a,name:c,pollingInterval:g,request:b,transport:A,type:u,uid:R5(),...d?{experimental_blockTag:d}:{}};function k(S){return j=>{const P=j(S);for(const T in I)delete P[T];const _={...S,...P};return Object.assign(_,{extend:k(_)})}}return Object.assign(I,{extend:k(I)})}function xI(e){var g,m,y;const{scheme:t,statement:n,...r}=((g=e.match(CI))==null?void 0:g.groups)??{},{chainId:i,expirationTime:a,issuedAt:c,notBefore:u,requestId:d,...f}=((m=e.match(EI))==null?void 0:m.groups)??{},p=(y=e.split("Resources:")[1])==null?void 0:y.split(`
85
+ - `).slice(1);return{...r,...f,...i?{chainId:Number(i)}:{},...a?{expirationTime:new Date(a)}:{},...c?{issuedAt:new Date(c)}:{},...u?{notBefore:new Date(u)}:{},...d?{requestId:d}:{},...p?{resources:p}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}const CI=/^(?:(?<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)?/,EI=/(?: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 AI(e){const{address:t,domain:n,message:r,nonce:i,scheme:a,time:c=new Date}=e;if(n&&r.domain!==n||i&&r.nonce!==i||a&&r.scheme!==a||r.expirationTime&&c>=r.expirationTime||r.notBefore&&c<r.notBefore)return!1;try{if(!r.address||!ct(r.address,{strict:!1})||t&&!Pc(r.address,t))return!1}catch{return!1}return!0}async function kI(e,t){const{address:n,domain:r,message:i,nonce:a,scheme:c,signature:u,time:d=new Date,...f}=t,p=xI(i);if(!p.address||!AI({address:n,domain:r,message:p,nonce:a,scheme:c,time:d}))return!1;const m=G2(i);return Hd(e,{address:p.address,hash:m,signature:u,...f})}function SI(e){return{call:t=>ca(e,t),createAccessList:t=>x2(e,t),createBlockFilter:()=>q7(e),createContractEventFilter:t=>C2(e,t),createEventFilter:t=>E2(e,t),createPendingTransactionFilter:()=>A2(e),estimateContractGas:t=>bk(e,t),estimateGas:t=>Im(e,t),getBalance:t=>V2(e,t),getBlobBaseFee:()=>xk(e),getBlock:t=>Zn(e,t),getBlockNumber:t=>cl(e,t),getBlockTransactionCount:t=>Ik(e,t),getBytecode:t=>od(e,t),getChainId:()=>Dd(e),getCode:t=>od(e,t),getContractEvents:t=>Q2(e,t),getDelegation:t=>_k(e,t),getEip712Domain:t=>Tk(e,t),getEnsAddress:t=>_7(e,t),getEnsAvatar:t=>w2(e,t),getEnsName:t=>b2(e,t),getEnsResolver:t=>$7(e,t),getEnsText:t=>v2(e,t),getFeeHistory:t=>Nk(e,t),estimateFeesPerGas:t=>ok(e,t),getFilterChanges:t=>Ld(e,t),getFilterLogs:t=>Mk(e,t),getGasPrice:()=>Cm(e),getLogs:t=>Bm(e,t),getProof:t=>D9(e,t),estimateMaxPriorityFeePerGas:t=>rk(e,t),fillTransaction:t=>q2(e,t),getStorageAt:t=>L9(e,t),getTransaction:t=>Wd(e,t),getTransactionConfirmations:t=>F9(e,t),getTransactionCount:t=>P2(e,t),getTransactionReceipt:t=>Hu(e,t),multicall:t=>E5(e,t),prepareTransactionRequest:t=>Sm(e,t),readContract:t=>Ln(e,t),sendRawTransaction:t=>P5(e,t),sendRawTransactionSync:t=>fI(e,t),simulate:t=>mp(e,t),simulateBlocks:t=>mp(e,t),simulateCalls:t=>K9(e,t),simulateContract:t=>I5(e,t),verifyHash:t=>Hd(e,t),verifyMessage:t=>oI(e,t),verifySiweMessage:t=>kI(e,t),verifyTypedData:t=>iI(e,t),uninstallFilter:t=>qd(e,t),waitForTransactionReceipt:t=>_5(e,t),watchBlocks:t=>aI(e,t),watchBlockNumber:t=>B5(e,t),watchContractEvent:t=>cI(e,t),watchEvent:t=>lI(e,t),watchPendingTransactions:t=>uI(e,t)}}function Wm({key:e,methods:t,name:n,request:r,retryCount:i=3,retryDelay:a=150,timeout:c,type:u},d){const f=R5();return{config:{key:e,methods:t,name:n,request:r,retryCount:i,retryDelay:a,timeout:c,type:u},request:Yk(r,{methods:t,retryCount:i,retryDelay:a,uid:f}),value:d}}function II(e,t={}){const{key:n="custom",methods:r,name:i="Custom Provider",retryDelay:a}=t;return({retryCount:c})=>Wm({key:n,methods:r,name:i,request:e.request.bind(e),retryCount:t.retryCount??c,retryDelay:a,type:"custom"})}function jI(e,t={}){const{key:n="fallback",name:r="Fallback",rank:i=!1,shouldThrow:a=BI,retryCount:c,retryDelay:u}=t;return(({chain:d,pollingInterval:f=4e3,timeout:p,...g})=>{let m=e,y=()=>{};const w=Wm({key:n,name:r,async request({method:b,params:C}){let A;const I=async(k=0)=>{const S=m[k]({...g,chain:d,retryCount:0,timeout:p});try{const j=await S.request({method:b,params:C});return y({method:b,params:C,response:j,transport:S,status:"success"}),j}catch(j){if(y({error:j,method:b,params:C,transport:S,status:"error"}),a(j)||k===m.length-1||(A??(A=m.slice(k+1).some(P=>{const{include:_,exclude:T}=P({chain:d}).config.methods||{};return _?_.includes(b):T?!T.includes(b):!0})),!A))throw j;return I(k+1)}};return I()},retryCount:c,retryDelay:u,type:"fallback"},{onResponse:b=>y=b,transports:m.map(b=>b({chain:d,retryCount:0}))});if(i){const b=typeof i=="object"?i:{};_I({chain:d,interval:b.interval??f,onTransports:C=>m=C,ping:b.ping,sampleCount:b.sampleCount,timeout:b.timeout,transports:m,weights:b.weights})}return w})}function BI(e){return!!("code"in e&&typeof e.code=="number"&&(e.code===Js.code||e.code===We.code||e.code===Xs.code||vi.nodeMessage.test(e.message)||e.code===5e3))}function _I({chain:e,interval:t=4e3,onTransports:n,ping:r,sampleCount:i=10,timeout:a=1e3,transports:c,weights:u={}}){const{stability:d=.7,latency:f=.3}=u,p=[],g=async()=>{const m=await Promise.all(c.map(async b=>{const C=b({chain:e,retryCount:0,timeout:a}),A=Date.now();let I,k;try{await(r?r({transport:C}):C.request({method:"net_listening"})),k=1}catch{k=0}finally{I=Date.now()}return{latency:I-A,success:k}}));p.push(m),p.length>i&&p.shift();const y=Math.max(...p.map(b=>Math.max(...b.map(({latency:C})=>C)))),w=c.map((b,C)=>{const A=p.map(P=>P[C].latency),k=1-A.reduce((P,_)=>P+_,0)/A.length/y,S=p.map(P=>P[C].success),j=S.reduce((P,_)=>P+_,0)/S.length;return j===0?[0,C]:[f*k+d*j,C]}).sort((b,C)=>C[0]-b[0]);n(w.map(([,b])=>c[b])),await sd(t),g()};g()}class PI extends ne{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 Qu(e,t={}){const{batch:n,fetchFn:r,fetchOptions:i,key:a="http",methods:c,name:u="HTTP JSON-RPC",onFetchRequest:d,onFetchResponse:f,retryDelay:p,raw:g}=t;return({chain:m,retryCount:y,timeout:w})=>{const{batchSize:b=1e3,wait:C=0}=typeof n=="object"?n:{},A=t.retryCount??y,I=w??t.timeout??1e4,k=e||(m==null?void 0:m.rpcUrls.default.http[0]);if(!k)throw new PI;const S=nS(k,{fetchFn:r,fetchOptions:i,onRequest:d,onResponse:f,timeout:I});return Wm({key:a,methods:c,name:u,async request({method:j,params:P}){const _={method:j,params:P},{schedule:T}=p2({id:k,wait:C,shouldSplitBatch(Z){return Z.length>b},fn:Z=>S.request({body:Z}),sort:(Z,G)=>Z.id-G.id}),D=async Z=>n?T(Z):[await S.request({body:Z})],[{error:Q,result:H}]=await D(_);if(g)return{error:Q,result:H};if(Q)throw new cm({body:_,error:Q,url:k});return H},retryCount:A,retryDelay:p,timeout:I,type:"http"},{fetchOptions:i,url:k})}}async function Vd(e,t={}){const{assertChainId:n=!0}=t;let r;if(t.connector){const{connector:p}=t;if(e.state.status==="reconnecting"&&!p.getAccounts&&!p.getChainId)throw new wI({connector:p});const[g,m]=await Promise.all([p.getAccounts().catch(y=>{if(t.account===null)return[];throw y}),p.getChainId()]);r={accounts:g,chainId:m,connector:p}}else r=e.state.connections.get(e.state.current);if(!r)throw new gI;const i=t.chainId??r.chainId,a=await r.connector.getChainId();if(n&&a!==i)throw new vI({connectionChainId:i,connectorChainId:a});const c=r.connector;if(c.getClient)return c.getClient({chainId:i});const u=St(t.account??r.accounts[0]);if(u&&(u.address=pt(u.address)),t.account&&!r.accounts.some(p=>p.toLowerCase()===u.address.toLowerCase()))throw new yI({address:u.address,connector:c});const d=e.chains.find(p=>p.id===i),f=await r.connector.getProvider({chainId:i});return N5({account:u,chain:d,name:"Connector Client",transport:p=>II(f)({...p,retryCount:0})})}async function TI(e,t={}){var i,a;let n;if(t.connector)n=t.connector;else{const{connections:c,current:u}=e.state,d=c.get(u);n=d==null?void 0:d.connector}const r=e.state.connections;n&&(await n.disconnect(),n.emitter.off("change",e._internal.events.change),n.emitter.off("disconnect",e._internal.events.disconnect),n.emitter.on("connect",e._internal.events.connect),r.delete(n.uid)),e.setState(c=>{if(r.size===0)return{...c,connections:new Map,current:null,status:"disconnected"};const u=r.values().next().value;return{...c,connections:new Map(r),current:u.connector.uid}});{const c=e.state.current;if(!c)return;const u=(i=e.state.connections.get(c))==null?void 0:i.connector;if(!u)return;await((a=e.storage)==null?void 0:a.setItem("recentConnectorId",u.id))}}function M5(e){return typeof e=="number"?e:e==="wei"?0:Math.abs(v4[e])}function D5(e){const t=e.state.current,n=e.state.connections.get(t),r=n==null?void 0:n.accounts,i=r==null?void 0:r[0],a=e.chains.find(u=>u.id===(n==null?void 0:n.chainId)),c=e.state.status;switch(c){case"connected":return{address:i,addresses:r,chain:a,chainId:n==null?void 0:n.chainId,connector:n==null?void 0:n.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:c};case"reconnecting":return{address:i,addresses:r,chain:a,chainId:n==null?void 0:n.chainId,connector:n==null?void 0:n.connector,isConnected:!!i,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:c};case"connecting":return{address:i,addresses:r,chain:a,chainId:n==null?void 0:n.chainId,connector:n==null?void 0:n.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:c};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:c}}}async function OI(e,t){const{allowFailure:n=!0,chainId:r,contracts:i,...a}=t,c=e.getClient({chainId:r});return Xn(c,E5,"multicall")({allowFailure:n,contracts:i,...a})}function L5(e,t){const{chainId:n,...r}=t,i=e.getClient({chainId:n});return Xn(i,Ln,"readContract")(r)}async function RI(e,t){var u;const{allowFailure:n=!0,blockNumber:r,blockTag:i,...a}=t,c=t.contracts;try{const d={};for(const[m,y]of c.entries()){const w=y.chainId??e.state.chainId;d[w]||(d[w]=[]),(u=d[w])==null||u.push({contract:y,index:m})}const f=()=>Object.entries(d).map(([m,y])=>OI(e,{...a,allowFailure:n,blockNumber:r,blockTag:i,chainId:Number.parseInt(m,10),contracts:y.map(({contract:w})=>w)})),p=(await Promise.all(f())).flat(),g=Object.values(d).flatMap(m=>m.map(({index:y})=>y));return p.reduce((m,y,w)=>(m&&(m[g[w]]=y),m),[])}catch(d){if(d instanceof im)throw d;const f=()=>c.map(p=>L5(e,{...p,blockNumber:r,blockTag:i}));return n?(await Promise.allSettled(f())).map(p=>p.status==="fulfilled"?{result:p.value,status:"success"}:{error:p.reason,result:void 0,status:"failure"}):await Promise.all(f())}}async function NI(e,t){const{address:n,blockNumber:r,blockTag:i,chainId:a,token:c,unit:u="ether"}=t;if(c)try{return await hw(e,{balanceAddress:n,chainId:a,symbolType:"string",tokenAddress:c})}catch(m){if(m.name==="ContractFunctionExecutionError"){const y=await hw(e,{balanceAddress:n,chainId:a,symbolType:"bytes32",tokenAddress:c}),w=p6(vn(y.symbol,{dir:"right"}));return{...y,symbol:w}}throw m}const d=e.getClient({chainId:a}),p=await Xn(d,V2,"getBalance")(r?{address:n,blockNumber:r}:{address:n,blockTag:i}),g=e.chains.find(m=>m.id===a)??d.chain;return{decimals:g.nativeCurrency.decimals,formatted:jd(p,M5(u)),symbol:g.nativeCurrency.symbol,value:p}}async function hw(e,t){const{balanceAddress:n,chainId:r,symbolType:i,tokenAddress:a,unit:c}=t,u={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:i}]}],address:a},[d,f,p]=await RI(e,{allowFailure:!1,contracts:[{...u,functionName:"balanceOf",args:[n],chainId:r},{...u,functionName:"decimals",chainId:r},{...u,functionName:"symbol",chainId:r}]}),g=jd(d??"0",M5(c??f));return{decimals:f,formatted:g,symbol:p,value:d}}function pw(e){return e.state.chainId}function Fi(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let n,r;if(Array.isArray(e)&&Array.isArray(t)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Fi(e[r],t[r]))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 i=Object.keys(e);if(n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.hasOwn(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(a&&!Fi(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}let fh=[];function mw(e){const t=e.chains;return Fi(fh,t)?fh:(fh=t,t)}function MI(e,t={}){try{return e.getClient(t)}catch{return}}let Ru=[];function bp(e){const t=[...e.state.connections.values()];return e.state.status==="reconnecting"||Fi(Ru,t)?Ru:(Ru=t,t)}let Nu=[];function gw(e){const t=e.connectors;return Nu.length===t.length&&Nu.every((n,r)=>n===t[r])?Nu:(Nu=t,t)}function DI(e,t){const{chainId:n,...r}=t,i=e.getClient({chainId:n});return Xn(i,w2,"getEnsAvatar")(r)}function LI(e,t){const{chainId:n,...r}=t,i=e.getClient({chainId:n});return Xn(i,b2,"getEnsName")(r)}function xp(e,t={}){const n=MI(e,t);return n==null?void 0:n.extend(SI)}let hh=!1;async function FI(e,t={}){var f,p;if(hh)return[];hh=!0,e.setState(g=>({...g,status:g.current?"reconnecting":"connecting"}));const n=[];if((f=t.connectors)!=null&&f.length)for(const g of t.connectors){let m;typeof g=="function"?m=e._internal.connectors.setup(g):m=g,n.push(m)}else n.push(...e.connectors);let r;try{r=await((p=e.storage)==null?void 0:p.getItem("recentConnectorId"))}catch{}const i={};for(const[,g]of e.state.connections)i[g.connector.id]=1;r&&(i[r]=0);const a=Object.keys(i).length>0?[...n].sort((g,m)=>(i[g.id]??10)-(i[m.id]??10)):n;let c=!1;const u=[],d=[];for(const g of a){const m=await g.getProvider().catch(()=>{});if(!m||d.some(b=>b===m)||!await g.isAuthorized())continue;const w=await g.connect({isReconnecting:!0}).catch(()=>null);w&&(g.emitter.off("connect",e._internal.events.connect),g.emitter.on("change",e._internal.events.change),g.emitter.on("disconnect",e._internal.events.disconnect),e.setState(b=>{const C=new Map(c?b.connections:new Map).set(g.uid,{accounts:w.accounts,chainId:w.chainId,connector:g});return{...b,current:c?b.current:g.uid,connections:C}}),u.push({accounts:w.accounts,chainId:w.chainId,connector:g}),d.push(m),c=!0)}return(e.state.status==="reconnecting"||e.state.status==="connecting")&&(c?e.setState(g=>({...g,status:"connected"})):e.setState(g=>({...g,connections:new Map,current:null,status:"disconnected"}))),hh=!1,u}async function zI(e,t){const{account:n,connector:r,...i}=t;let a;return typeof n=="object"&&n.type==="local"?a=e.getClient():a=await Vd(e,{account:n,connector:r}),Xn(a,hI,"signMessage")({...i,...n?{account:n}:{}})}async function UI(e,t){const{abi:n,chainId:r,connector:i,...a}=t;let c;t.account?c=t.account:c=(await Vd(e,{assertChainId:!1,chainId:r,connector:i})).account;const u=e.getClient({chainId:r}),d=Xn(u,I5,"simulateContract"),{result:f,request:p}=await d({...a,abi:n,account:c});return{chainId:u.chain.id,result:f,request:{...p,chainId:r}}}class gn extends Xr{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class WI extends Xr{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 $I(e,t){var c;const{addEthereumChainParameter:n,chainId:r}=t,i=e.state.connections.get(((c=t.connector)==null?void 0:c.uid)??e.state.current);if(i){const u=i.connector;if(!u.switchChain)throw new WI({connector:u});return await u.switchChain({addEthereumChainParameter:n,chainId:r})}const a=e.chains.find(u=>u.id===r);if(!a)throw new Go;return e.setState(u=>({...u,chainId:r})),a}async function qI(e,t){const{chainId:n,timeout:r=0,...i}=t,a=e.getClient({chainId:n}),u=await Xn(a,_5,"waitForTransactionReceipt")({...i,timeout:r});if(u.status==="reverted"){const d=Xn(a,Wd,"getTransaction"),{from:f,...p}=await d({hash:u.transactionHash}),m=await Xn(a,ca,"call")({...p,account:f,data:p.input,gasPrice:p.type!=="eip1559"?p.gasPrice:void 0,maxFeePerGas:p.type==="eip1559"?p.maxFeePerGas:void 0,maxPriorityFeePerGas:p.type==="eip1559"?p.maxPriorityFeePerGas:void 0}),y=m!=null&&m.data?p6(`0x${m.data.substring(138)}`):"unknown reason";throw new Error(y)}return{...u,chainId:a.chain.id}}function F5(e,t){const{onChange:n}=t;return e.subscribe(()=>D5(e),n,{equalityFn(r,i){const{connector:a,...c}=r,{connector:u,...d}=i;return Fi(c,d)&&(a==null?void 0:a.id)===(u==null?void 0:u.id)&&(a==null?void 0:a.uid)===(u==null?void 0:u.uid)}})}function HI(e,t){const{onChange:n}=t;return e.subscribe(r=>r.chainId,n)}function VI(e,t){const{onChange:n}=t;return e.subscribe(()=>bp(e),n,{equalityFn:Fi})}function QI(e,t){const{onChange:n}=t;return e._internal.connectors.subscribe((r,i)=>{n(Object.values(r),i)})}function GI(e,t){const{onChange:n}=t;return e.subscribe(()=>xp(e),n,{equalityFn(r,i){return(r==null?void 0:r.uid)===(i==null?void 0:i.uid)}})}async function KI(e,t){const{account:n,chainId:r,connector:i,...a}=t;let c;return typeof n=="object"&&(n==null?void 0:n.type)==="local"?c=e.getClient({chainId:r}):c=await Vd(e,{account:n??void 0,assertChainId:!1,chainId:r,connector:i}),await Xn(c,cd,"writeContract")({...a,...n?{account:n}:{},chain:r?{id:r}:null})}Qd.type="injected";function Qd(e={}){const{shimDisconnect:t=!0,unstable_shimAsyncInject:n}=e;function r(){const d=e.target;if(typeof d=="function"){const f=d();if(f)return f}return typeof d=="object"?d:typeof d=="string"?{...YI[d]??{id:d,name:`${d[0].toUpperCase()}${d.slice(1)}`,provider:`is${d[0].toUpperCase()}${d.slice(1)}`}}:{id:"injected",name:"Injected",provider(f){return f==null?void 0:f.ethereum}}}let i,a,c,u;return d=>({get icon(){return r().icon},get id(){return r().id},get name(){return r().name},get supportsSimulation(){return!0},type:Qd.type,async setup(){const f=await this.getProvider();f!=null&&f.on&&e.target&&(c||(c=this.onConnect.bind(this),f.on("connect",c)),i||(i=this.onAccountsChanged.bind(this),f.on("accountsChanged",i)))},async connect({chainId:f,isReconnecting:p,withCapabilities:g}={}){var w,b,C,A,I,k;const m=await this.getProvider();if(!m)throw new gn;let y=[];if(p)y=await this.getAccounts().catch(()=>[]);else if(t)try{y=(A=(C=(b=(w=(await m.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0])==null?void 0:w.caveats)==null?void 0:b[0])==null?void 0:C.value)==null?void 0:A.map(j=>pt(j)),y.length>0&&(y=await this.getAccounts())}catch(S){const j=S;if(j.code===We.code)throw new We(j);if(j.code===wr.code)throw j}try{!(y!=null&&y.length)&&!p&&(y=(await m.request({method:"eth_requestAccounts"})).map(P=>pt(P))),c&&(m.removeListener("connect",c),c=void 0),i||(i=this.onAccountsChanged.bind(this),m.on("accountsChanged",i)),a||(a=this.onChainChanged.bind(this),m.on("chainChanged",a)),u||(u=this.onDisconnect.bind(this),m.on("disconnect",u));let S=await this.getChainId();if(f&&S!==f){const j=await this.switchChain({chainId:f}).catch(P=>{if(P.code===We.code)throw P;return{id:S}});S=(j==null?void 0:j.id)??S}return t&&await((I=d.storage)==null?void 0:I.removeItem(`${this.id}.disconnected`)),e.target||await((k=d.storage)==null?void 0:k.setItem("injected.connected",!0)),{accounts:g?y.map(j=>({address:j,capabilities:{}})):y,chainId:S}}catch(S){const j=S;throw j.code===We.code?new We(j):j.code===wr.code?new wr(j):j}},async disconnect(){var p,g;const f=await this.getProvider();if(!f)throw new gn;a&&(f.removeListener("chainChanged",a),a=void 0),u&&(f.removeListener("disconnect",u),u=void 0),c||(c=this.onConnect.bind(this),f.on("connect",c));try{await zd(()=>f.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}t&&await((p=d.storage)==null?void 0:p.setItem(`${this.id}.disconnected`,!0)),e.target||await((g=d.storage)==null?void 0:g.removeItem("injected.connected"))},async getAccounts(){const f=await this.getProvider();if(!f)throw new gn;return(await f.request({method:"eth_accounts"})).map(g=>pt(g))},async getChainId(){const f=await this.getProvider();if(!f)throw new gn;const p=await f.request({method:"eth_chainId"});return Number(p)},async getProvider(){if(typeof window>"u")return;let f;const p=r();return typeof p.provider=="function"?f=p.provider(window):typeof p.provider=="string"?f=Gu(window,p.provider):f=p.provider,f&&!f.removeListener&&("off"in f&&typeof f.off=="function"?f.removeListener=f.off:f.removeListener=()=>{}),f},async isAuthorized(){var f,p;try{if(t&&await((f=d.storage)==null?void 0:f.getItem(`${this.id}.disconnected`))||!e.target&&!await((p=d.storage)==null?void 0:p.getItem("injected.connected")))return!1;if(!await this.getProvider()){if(n!==void 0&&n!==!1){const w=async()=>(typeof window<"u"&&window.removeEventListener("ethereum#initialized",w),!!await this.getProvider()),b=typeof n=="number"?n:1e3;if(await Promise.race([...typeof window<"u"?[new Promise(A=>window.addEventListener("ethereum#initialized",()=>A(w()),{once:!0}))]:[],new Promise(A=>setTimeout(()=>A(w()),b))]))return!0}throw new gn}return!!(await ea(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:f,chainId:p}){var w,b,C,A;const g=await this.getProvider();if(!g)throw new gn;const m=d.chains.find(I=>I.id===p);if(!m)throw new wn(new Go);const y=new Promise(I=>{const k=(S=>{"chainId"in S&&S.chainId===p&&(d.emitter.off("change",k),I())});d.emitter.on("change",k)});try{return await Promise.all([g.request({method:"wallet_switchEthereumChain",params:[{chainId:ae(p)}]}).then(async()=>{await this.getChainId()===p&&d.emitter.emit("change",{chainId:p})}),y]),m}catch(I){const k=I;if(k.code===4902||((b=(w=k==null?void 0:k.data)==null?void 0:w.originalError)==null?void 0:b.code)===4902)try{const{default:S,...j}=m.blockExplorers??{};let P;f!=null&&f.blockExplorerUrls?P=f.blockExplorerUrls:S&&(P=[S.url,...Object.values(j).map(D=>D.url)]);let _;(C=f==null?void 0:f.rpcUrls)!=null&&C.length?_=f.rpcUrls:_=[((A=m.rpcUrls.default)==null?void 0:A.http[0])??""];const T={blockExplorerUrls:P,chainId:ae(p),chainName:(f==null?void 0:f.chainName)??m.name,iconUrls:f==null?void 0:f.iconUrls,nativeCurrency:(f==null?void 0:f.nativeCurrency)??m.nativeCurrency,rpcUrls:_};return await Promise.all([g.request({method:"wallet_addEthereumChain",params:[T]}).then(async()=>{if(await this.getChainId()===p)d.emitter.emit("change",{chainId:p});else throw new We(new Error("User rejected switch after adding network."))}),y]),m}catch(S){throw new We(S)}throw k.code===We.code?new We(k):new wn(k)}},async onAccountsChanged(f){var p;if(f.length===0)this.onDisconnect();else if(d.emitter.listenerCount("connect")){const g=(await this.getChainId()).toString();this.onConnect({chainId:g}),t&&await((p=d.storage)==null?void 0:p.removeItem(`${this.id}.disconnected`))}else d.emitter.emit("change",{accounts:f.map(g=>pt(g))})},onChainChanged(f){const p=Number(f);d.emitter.emit("change",{chainId:p})},async onConnect(f){const p=await this.getAccounts();if(p.length===0)return;const g=Number(f.chainId);d.emitter.emit("connect",{accounts:p,chainId:g});const m=await this.getProvider();m&&(c&&(m.removeListener("connect",c),c=void 0),i||(i=this.onAccountsChanged.bind(this),m.on("accountsChanged",i)),a||(a=this.onChainChanged.bind(this),m.on("chainChanged",a)),u||(u=this.onDisconnect.bind(this),m.on("disconnect",u)))},async onDisconnect(f){const p=await this.getProvider();f&&f.code===1013&&p&&(await this.getAccounts()).length||(d.emitter.emit("disconnect"),p&&(a&&(p.removeListener("chainChanged",a),a=void 0),u&&(p.removeListener("disconnect",u),u=void 0),c||(c=this.onConnect.bind(this),p.on("connect",c))))}})}const YI={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider(e){return e!=null&&e.coinbaseWalletExtension?e.coinbaseWalletExtension:Gu(e,"isCoinbaseWallet")}},metaMask:{id:"metaMask",name:"MetaMask",provider(e){return Gu(e,t=>{if(!t.isMetaMask||t.isBraveWallet&&!t._events&&!t._state)return!1;const n=["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPhantom","isPortal","isRabby","isTokenPocket","isTokenary","isUniswapWallet","isZerion"];for(const r of n)if(t[r])return!1;return!0})}},phantom:{id:"phantom",name:"Phantom",provider(e){var t,n;return(t=e==null?void 0:e.phantom)!=null&&t.ethereum?(n=e.phantom)==null?void 0:n.ethereum:Gu(e,"isPhantom")}}};function Gu(e,t){function n(i){return typeof t=="function"?t(i):typeof t=="string"?i[t]:!0}const r=e.ethereum;if(r!=null&&r.providers)return r.providers.find(i=>n(i));if(r&&n(r))return r}function JI(e){if(typeof window>"u")return;const t=n=>e(n.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)}function ZI(){const e=new Set;let t=[];const n=()=>JI(i=>{t.some(({info:a})=>a.uuid===i.info.uuid)||(t=[...t,i],e.forEach(a=>a(t,{added:[i]})))});let r=n();return{_listeners(){return e},clear(){e.forEach(i=>i([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),r==null||r()},findProvider({rdns:i}){return t.find(a=>a.info.rdns===i)},getProviders(){return t},reset(){this.clear(),r==null||r(),r=n()},subscribe(i,{emitImmediately:a}={}){return e.add(i),a&&i(t,{added:t}),()=>e.delete(i)}}}const XI=e=>(t,n,r)=>{const i=r.subscribe;return r.subscribe=(c,u,d)=>{let f=c;if(u){const p=(d==null?void 0:d.equalityFn)||Object.is;let g=c(r.getState());f=m=>{const y=c(m);if(!p(g,y)){const w=g;u(g=y,w)}},d!=null&&d.fireImmediately&&u(g,g)}return i(f)},e(t,n,r)},ej=XI;function tj(e,t){let n;try{n=e()}catch{return}return{getItem:i=>{var a;const c=d=>d===null?null:JSON.parse(d,void 0),u=(a=n.getItem(i))!=null?a:null;return u instanceof Promise?u.then(c):c(u)},setItem:(i,a)=>n.setItem(i,JSON.stringify(a,void 0)),removeItem:i=>n.removeItem(i)}}const Cp=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Cp(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Cp(r)(n)}}}},nj=(e,t)=>(n,r,i)=>{let a={storage:tj(()=>localStorage),partialize:b=>b,version:0,merge:(b,C)=>({...C,...b}),...t},c=!1;const u=new Set,d=new Set;let f=a.storage;if(!f)return e((...b)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...b)},r,i);const p=()=>{const b=a.partialize({...r()});return f.setItem(a.name,{state:b,version:a.version})},g=i.setState;i.setState=(b,C)=>{g(b,C),p()};const m=e((...b)=>{n(...b),p()},r,i);i.getInitialState=()=>m;let y;const w=()=>{var b,C;if(!f)return;c=!1,u.forEach(I=>{var k;return I((k=r())!=null?k:m)});const A=((C=a.onRehydrateStorage)==null?void 0:C.call(a,(b=r())!=null?b:m))||void 0;return Cp(f.getItem.bind(f))(a.name).then(I=>{if(I)if(typeof I.version=="number"&&I.version!==a.version){if(a.migrate)return[!0,a.migrate(I.state,I.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,I.state];return[!1,void 0]}).then(I=>{var k;const[S,j]=I;if(y=a.merge(j,(k=r())!=null?k:m),n(y,!0),S)return p()}).then(()=>{A==null||A(y,void 0),y=r(),c=!0,d.forEach(I=>I(y))}).catch(I=>{A==null||A(void 0,I)})};return i.persist={setOptions:b=>{a={...a,...b},b.storage&&(f=b.storage)},clearStorage:()=>{f==null||f.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>w(),hasHydrated:()=>c,onHydrate:b=>(u.add(b),()=>{u.delete(b)}),onFinishHydration:b=>(d.add(b),()=>{d.delete(b)})},a.skipHydration||w(),y||m},rj=nj,yw=e=>{let t;const n=new Set,r=(f,p)=>{const g=typeof f=="function"?f(t):f;if(!Object.is(g,t)){const m=t;t=p??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(y=>y(t,m))}},i=()=>t,u={setState:r,getState:i,getInitialState:()=>d,subscribe:f=>(n.add(f),()=>n.delete(f))},d=t=e(r,i,u);return u},ph=e=>e?yw(e):yw;var mh={exports:{}},vw;function oj(){return vw||(vw=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(d,f,p){this.fn=d,this.context=f,this.once=p||!1}function a(d,f,p,g,m){if(typeof p!="function")throw new TypeError("The listener must be a function");var y=new i(p,g||d,m),w=n?n+f:f;return d._events[w]?d._events[w].fn?d._events[w]=[d._events[w],y]:d._events[w].push(y):(d._events[w]=y,d._eventsCount++),d}function c(d,f){--d._eventsCount===0?d._events=new r:delete d._events[f]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var f=[],p,g;if(this._eventsCount===0)return f;for(g in p=this._events)t.call(p,g)&&f.push(n?g.slice(1):g);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(p)):f},u.prototype.listeners=function(f){var p=n?n+f:f,g=this._events[p];if(!g)return[];if(g.fn)return[g.fn];for(var m=0,y=g.length,w=new Array(y);m<y;m++)w[m]=g[m].fn;return w},u.prototype.listenerCount=function(f){var p=n?n+f:f,g=this._events[p];return g?g.fn?1:g.length:0},u.prototype.emit=function(f,p,g,m,y,w){var b=n?n+f:f;if(!this._events[b])return!1;var C=this._events[b],A=arguments.length,I,k;if(C.fn){switch(C.once&&this.removeListener(f,C.fn,void 0,!0),A){case 1:return C.fn.call(C.context),!0;case 2:return C.fn.call(C.context,p),!0;case 3:return C.fn.call(C.context,p,g),!0;case 4:return C.fn.call(C.context,p,g,m),!0;case 5:return C.fn.call(C.context,p,g,m,y),!0;case 6:return C.fn.call(C.context,p,g,m,y,w),!0}for(k=1,I=new Array(A-1);k<A;k++)I[k-1]=arguments[k];C.fn.apply(C.context,I)}else{var S=C.length,j;for(k=0;k<S;k++)switch(C[k].once&&this.removeListener(f,C[k].fn,void 0,!0),A){case 1:C[k].fn.call(C[k].context);break;case 2:C[k].fn.call(C[k].context,p);break;case 3:C[k].fn.call(C[k].context,p,g);break;case 4:C[k].fn.call(C[k].context,p,g,m);break;default:if(!I)for(j=1,I=new Array(A-1);j<A;j++)I[j-1]=arguments[j];C[k].fn.apply(C[k].context,I)}}return!0},u.prototype.on=function(f,p,g){return a(this,f,p,g,!1)},u.prototype.once=function(f,p,g){return a(this,f,p,g,!0)},u.prototype.removeListener=function(f,p,g,m){var y=n?n+f:f;if(!this._events[y])return this;if(!p)return c(this,y),this;var w=this._events[y];if(w.fn)w.fn===p&&(!m||w.once)&&(!g||w.context===g)&&c(this,y);else{for(var b=0,C=[],A=w.length;b<A;b++)(w[b].fn!==p||m&&!w[b].once||g&&w[b].context!==g)&&C.push(w[b]);C.length?this._events[y]=C.length===1?C[0]:C:c(this,y)}return this},u.prototype.removeAllListeners=function(f){var p;return f?(p=n?n+f:f,this._events[p]&&c(this,p)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u})(mh)),mh.exports}var ij=oj();const sj=t6(ij);class aj{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 sj})}on(t,n){this._emitter.on(t,n)}once(t,n){this._emitter.once(t,n)}off(t,n){this._emitter.off(t,n)}emit(t,...n){const r=n[0];this._emitter.emit(t,{uid:this.uid,...r})}listenerCount(t){return this._emitter.listenerCount(t)}}function cj(e){return new aj(e)}function lj(e,t){return JSON.parse(e,(n,r)=>{let i=r;return(i==null?void 0:i.__type)==="bigint"&&(i=BigInt(i.value)),(i==null?void 0:i.__type)==="Map"&&(i=new Map(i.value)),(t==null?void 0:t(n,i))??i})}function ww(e,t){return e.slice(0,t).join(".")||"."}function bw(e,t){const{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function uj(e,t){const n=typeof e=="function",r=typeof t=="function",i=[],a=[];return function(u,d){if(typeof d=="object")if(i.length){const f=bw(i,this);f===0?i[i.length]=this:(i.splice(f),a.splice(f)),a[a.length]=u;const p=bw(i,d);if(p!==0)return r?t.call(this,u,d,ww(a,p)):`[ref=${ww(a,p)}]`}else i[0]=d,a[0]=u;return n?e.call(this,u,d):d}}function dj(e,t,n,r){return JSON.stringify(e,uj((i,a)=>{let c=a;return typeof c=="bigint"&&(c={__type:"bigint",value:a.toString()}),c instanceof Map&&(c={__type:"Map",value:Array.from(a.entries())}),(t==null?void 0:t(i,c))??c},r),n??void 0)}function fj(e){const{deserialize:t=lj,key:n="wagmi",serialize:r=dj,storage:i=z5}=e;function a(c){return c instanceof Promise?c.then(u=>u).catch(()=>null):c}return{...i,key:n,async getItem(c,u){const d=i.getItem(`${n}.${c}`),f=await a(d);return f?t(f)??null:u??null},async setItem(c,u){const d=`${n}.${c}`;u===null?await a(i.removeItem(d)):await a(i.setItem(d,r(u)))},async removeItem(c){await a(i.removeItem(`${n}.${c}`))}}}const z5={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};function hj(){const e=typeof window<"u"&&window.localStorage?window.localStorage:z5;return{getItem(t){return e.getItem(t)},removeItem(t){e.removeItem(t)},setItem(t,n){try{e.setItem(t,n)}catch{}}}}const Ep=256;let Mu=Ep,Du;function pj(e=11){if(!Du||Mu+e>Ep*2){Du="",Mu=0;for(let t=0;t<Ep;t++)Du+=(256+Math.random()*256|0).toString(16).substring(1)}return Du.substring(Mu,Mu+++e)}function mj(e){const{multiInjectedProviderDiscovery:t=!0,storage:n=fj({storage:hj()}),syncConnectedChain:r=!0,ssr:i=!1,...a}=e,c=typeof window<"u"&&t?ZI():void 0,u=ph(()=>a.chains),d=ph(()=>{const j=[],P=new Set;for(const _ of a.connectors??[]){const T=f(_);if(j.push(T),!i&&T.rdns){const D=typeof T.rdns=="string"?[T.rdns]:T.rdns;for(const Q of D)P.add(Q)}}if(!i&&c){const _=c.getProviders();for(const T of _)P.has(T.info.rdns)||j.push(f(p(T)))}return j});function f(j){var T;const P=cj(pj()),_={...j({emitter:P,chains:u.getState(),storage:n,transports:a.transports}),emitter:P,uid:P.uid};return P.on("connect",k),(T=_.setup)==null||T.call(_),_}function p(j){const{info:P}=j,_=j.provider;return Qd({target:{...P,id:P.rdns,provider:_}})}const g=new Map;function m(j={}){const P=j.chainId??C.getState().chainId,_=u.getState().find(D=>D.id===P);if(j.chainId&&!_)throw new Go;{const D=g.get(C.getState().chainId);if(D&&!_)return D;if(!_)throw new Go}{const D=g.get(P);if(D)return D}let T;if(a.client)T=a.client({chain:_});else{const D=_.id,Q=u.getState().map(G=>G.id),H={},Z=Object.entries(a);for(const[G,le]of Z)if(!(G==="chains"||G==="client"||G==="connectors"||G==="transports"))if(typeof le=="object")if(D in le)H[G]=le[D];else{if(Q.some(X=>X in le))continue;H[G]=le}else H[G]=le;T=N5({...H,chain:_,batch:H.batch??{multicall:!0},transport:G=>a.transports[D]({...G,connectors:d})})}return g.set(P,T),T}function y(){return{chainId:u.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let w;const b="0.0.0-canary-";Vu.startsWith(b)?w=Number.parseInt(Vu.replace(b,""),10):w=Number.parseInt(Vu.split(".")[0]??"0",10);const C=ph(ej(n?rj(y,{migrate(j,P){if(P===w)return j;const _=y(),T=A(j,_.chainId);return{..._,chainId:T}},name:"store",partialize(j){return{connections:{__type:"Map",value:Array.from(j.connections.entries()).map(([P,_])=>{const{id:T,name:D,type:Q,uid:H}=_.connector;return[P,{..._,connector:{id:T,name:D,type:Q,uid:H}}]})},chainId:j.chainId,current:j.current}},merge(j,P){typeof j=="object"&&j&&"status"in j&&delete j.status;const _=A(j,P.chainId);return{...P,...j,chainId:_}},skipHydration:i,storage:n,version:w}):y));C.setState(y());function A(j,P){return j&&typeof j=="object"&&"chainId"in j&&typeof j.chainId=="number"&&u.getState().some(_=>_.id===j.chainId)?j.chainId:P}r&&C.subscribe(({connections:j,current:P})=>{var _;return P?(_=j.get(P))==null?void 0:_.chainId:void 0},j=>{if(u.getState().some(_=>_.id===j))return C.setState(_=>({..._,chainId:j??_.chainId}))}),c==null||c.subscribe(j=>{const P=new Set,_=new Set;for(const D of d.getState())if(P.add(D.id),D.rdns){const Q=typeof D.rdns=="string"?[D.rdns]:D.rdns;for(const H of Q)_.add(H)}const T=[];for(const D of j){if(_.has(D.info.rdns))continue;const Q=f(p(D));P.has(Q.id)||T.push(Q)}n&&!C.persist.hasHydrated()||d.setState(D=>[...D,...T],!0)});function I(j){C.setState(P=>{const _=P.connections.get(j.uid);return _?{...P,connections:new Map(P.connections).set(j.uid,{accounts:j.accounts??_.accounts,chainId:j.chainId??_.chainId,connector:_.connector})}:P})}function k(j){C.getState().status==="connecting"||C.getState().status==="reconnecting"||C.setState(P=>{const _=d.getState().find(T=>T.uid===j.uid);return _?(_.emitter.listenerCount("connect")&&_.emitter.off("connect",I),_.emitter.listenerCount("change")||_.emitter.on("change",I),_.emitter.listenerCount("disconnect")||_.emitter.on("disconnect",S),{...P,connections:new Map(P.connections).set(j.uid,{accounts:j.accounts,chainId:j.chainId,connector:_}),current:j.uid,status:"connected"}):P})}function S(j){C.setState(P=>{const _=P.connections.get(j.uid);if(_){const D=_.connector;D.emitter.listenerCount("change")&&_.connector.emitter.off("change",I),D.emitter.listenerCount("disconnect")&&_.connector.emitter.off("disconnect",S),D.emitter.listenerCount("connect")||_.connector.emitter.on("connect",k)}if(P.connections.delete(j.uid),P.connections.size===0)return{...P,connections:new Map,current:null,status:"disconnected"};const T=P.connections.values().next().value;return{...P,connections:new Map(P.connections),current:T.connector.uid}})}return{get chains(){return u.getState()},get connectors(){return d.getState()},storage:n,getClient:m,get state(){return C.getState()},setState(j){let P;typeof j=="function"?P=j(C.getState()):P=j;const _=y();typeof P!="object"&&(P=_),Object.keys(_).some(D=>!(D in P))&&(P=_),C.setState(P,!0)},subscribe(j,P,_){return C.subscribe(j,P,_?{..._,fireImmediately:_.emitImmediately}:void 0)},_internal:{mipd:c,async revalidate(){const j=C.getState(),P=j.connections;let _=j.current;for(const[,T]of P){const D=T.connector;D.isAuthorized&&await D.isAuthorized()||(P.delete(D.uid),_===D.uid&&(_=null))}C.setState(T=>({...T,connections:P,current:_}))},store:C,ssr:!!i,syncConnectedChain:r,transports:a.transports,chains:{setState(j){const P=typeof j=="function"?j(u.getState()):j;if(P.length!==0)return u.setState(P,!0)},subscribe(j){return u.subscribe(j)}},connectors:{providerDetailToConnector:p,setup:f,setState(j){return d.setState(typeof j=="function"?j(d.getState()):j,!0)},subscribe(j){return d.subscribe(j)}},events:{change:I,connect:k,disconnect:S}}}}function gj(e,t){const{initialState:n,reconnectOnMount:r}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,chainId:e.chains.some(i=>i.id===n.chainId)?n.chainId:e.chains[0].id,connections:r?n.connections:new Map,status:r?"reconnecting":"disconnected"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(i=>{var d;const a=new Set;for(const f of i??[])if(f.rdns){const p=Array.isArray(f.rdns)?f.rdns:[f.rdns];for(const g of p)a.add(g)}const c=[],u=((d=e._internal.mipd)==null?void 0:d.getProviders())??[];for(const f of u){if(a.has(f.info.rdns))continue;const p=e._internal.connectors.providerDetailToConnector(f),g=e._internal.connectors.setup(p);c.push(g)}return[...i,...c]})),r?FI(e):e.storage&&e.setState(i=>({...i,connections:new Map}))}}}function U5(e){var a,c,u;const{chain:t}=e,n=t.rpcUrls.default.http[0];if(!e.transports)return[n];const r=(c=(a=e.transports)==null?void 0:a[t.id])==null?void 0:c.call(a,{chain:t});return(((u=r==null?void 0:r.value)==null?void 0:u.transports)||[r]).map(({value:d})=>(d==null?void 0:d.url)||n)}function yj(e){const{children:t,config:n,initialState:r,reconnectOnMount:i=!0}=e,{onMount:a}=gj(n,{initialState:r,reconnectOnMount:i});n._internal.ssr||a();const c=R.useRef(!0);return R.useEffect(()=>{if(c.current&&n._internal.ssr)return a(),()=>{c.current=!1}},[]),t}const W5=R.createContext(void 0);function vj(e){const{children:t,config:n}=e,r={value:n};return R.createElement(yj,e,R.createElement(W5.Provider,r,t))}const wj="2.19.5",bj=()=>`wagmi@${wj}`;class xj extends Xr{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 bj()}}class Cj extends xj{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function et(e={}){const t=e.config??R.useContext(W5);if(!t)throw new Cj;return t}function Ej(e,t){const{onChange:n}=t;return e._internal.chains.subscribe((r,i)=>{n(r,i)})}var gh={exports:{}},yh={},vh={exports:{}},wh={};/**
86
+ * @license React
87
+ * use-sync-external-store-shim.production.js
88
+ *
89
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
90
+ *
91
+ * This source code is licensed under the MIT license found in the
92
+ * LICENSE file in the root directory of this source tree.
93
+ */var xw;function Aj(){if(xw)return wh;xw=1;var e=Kc();function t(g,m){return g===m&&(g!==0||1/g===1/m)||g!==g&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,c=e.useDebugValue;function u(g,m){var y=m(),w=r({inst:{value:y,getSnapshot:m}}),b=w[0].inst,C=w[1];return a(function(){b.value=y,b.getSnapshot=m,d(b)&&C({inst:b})},[g,y,m]),i(function(){return d(b)&&C({inst:b}),g(function(){d(b)&&C({inst:b})})},[g]),c(y),y}function d(g){var m=g.getSnapshot;g=g.value;try{var y=m();return!n(g,y)}catch{return!0}}function f(g,m){return m()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return wh.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,wh}var Cw;function kj(){return Cw||(Cw=1,vh.exports=Aj()),vh.exports}/**
94
+ * @license React
95
+ * use-sync-external-store-shim/with-selector.production.js
96
+ *
97
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
98
+ *
99
+ * This source code is licensed under the MIT license found in the
100
+ * LICENSE file in the root directory of this source tree.
101
+ */var Ew;function Sj(){if(Ew)return yh;Ew=1;var e=Kc(),t=kj();function n(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,a=e.useRef,c=e.useEffect,u=e.useMemo,d=e.useDebugValue;return yh.useSyncExternalStoreWithSelector=function(f,p,g,m,y){var w=a(null);if(w.current===null){var b={hasValue:!1,value:null};w.current=b}else b=w.current;w=u(function(){function A(P){if(!I){if(I=!0,k=P,P=m(P),y!==void 0&&b.hasValue){var _=b.value;if(y(_,P))return S=_}return S=P}if(_=S,r(k,P))return _;var T=m(P);return y!==void 0&&y(_,T)?(k=P,_):(k=P,S=T)}var I=!1,k,S,j=g===void 0?null:g;return[function(){return A(p())},j===null?void 0:function(){return A(j())}]},[p,g,m,y]);var C=i(f,w[0],w[1]);return c(function(){b.hasValue=!0,b.value=C},[C]),d(C),C},yh}var Aw;function Ij(){return Aw||(Aw=1,gh.exports=Sj()),gh.exports}var $5=Ij();const bh=e=>typeof e=="object"&&!Array.isArray(e);function jj(e,t,n=t,r=Fi){const i=R.useRef([]),a=$5.useSyncExternalStoreWithSelector(e,t,n,c=>c,(c,u)=>{if(bh(c)&&bh(u)&&i.current.length){for(const d of i.current)if(!r(c[d],u[d]))return!1;return!0}return r(c,u)});return R.useMemo(()=>{if(bh(a)){const c={...a};let u={};for(const[d,f]of Object.entries(c))u={...u,[d]:{configurable:!1,enumerable:!0,get:()=>(i.current.includes(d)||i.current.push(d),f)}};return Object.defineProperties(c,u),c}return a},[a])}function xt(e={}){const t=et(e);return jj(n=>F5(t,{onChange:n}),()=>D5(t))}function q5(e={}){const{onConnect:t,onDisconnect:n}=e,r=et(e);R.useEffect(()=>F5(r,{onChange(i,a){if((a.status==="reconnecting"||a.status==="connecting"&&a.address===void 0)&&i.status==="connected"){const{address:c,addresses:u,chain:d,chainId:f,connector:p}=i,g=a.status==="reconnecting"||a.status===void 0;t==null||t({address:c,addresses:u,chain:d,chainId:f,connector:p,isReconnected:g})}else a.status==="connected"&&i.status==="disconnected"&&(n==null||n())}}),[r,t,n])}var la=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(){}},Ci,_o,Ns,qb,Bj=(qb=class extends la{constructor(){super();Ae(this,Ci);Ae(this,_o);Ae(this,Ns);fe(this,Ns,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){M(this,_o)||this.setEventListener(M(this,Ns))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,_o))==null||t.call(this),fe(this,_o,void 0))}setEventListener(t){var n;fe(this,Ns,t),(n=M(this,_o))==null||n.call(this),fe(this,_o,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){M(this,Ci)!==t&&(fe(this,Ci,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof M(this,Ci)=="boolean"?M(this,Ci):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ci=new WeakMap,_o=new WeakMap,Ns=new WeakMap,qb),$m=new Bj,_j={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Po,Qp,Hb,Pj=(Hb=class{constructor(){Ae(this,Po,_j);Ae(this,Qp,!1)}setTimeoutProvider(e){fe(this,Po,e)}setTimeout(e,t){return M(this,Po).setTimeout(e,t)}clearTimeout(e){M(this,Po).clearTimeout(e)}setInterval(e,t){return M(this,Po).setInterval(e,t)}clearInterval(e){M(this,Po).clearInterval(e)}},Po=new WeakMap,Qp=new WeakMap,Hb),bi=new Pj;function Tj(e){setTimeout(e,0)}var Oj=typeof window>"u"||"Deno"in globalThis;function Ut(){}function Rj(e,t){return typeof e=="function"?e(t):e}function Ap(e){return typeof e=="number"&&e>=0&&e!==1/0}function H5(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Uo(e,t){return typeof e=="function"?e(t):e}function Nn(e,t){return typeof e=="function"?e(t):e}function kw(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:c,stale:u}=e;if(c){if(r){if(t.queryHash!==qm(c,t.options))return!1}else if(!Oc(t.queryKey,c))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||a&&!a(t))}function Sw(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(zi(t.options.mutationKey)!==zi(a))return!1}else if(!Oc(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function qm(e,t){return((t==null?void 0:t.queryKeyHashFn)||zi)(e)}function zi(e){return JSON.stringify(e,(t,n)=>kp(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Oc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Oc(e[n],t[n])):!1}var Nj=Object.prototype.hasOwnProperty;function Hm(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Iw(e)&&Iw(t);if(!r&&!(kp(e)&&kp(t)))return t;const a=(r?e:Object.keys(e)).length,c=r?t:Object.keys(t),u=c.length,d=r?new Array(u):{};let f=0;for(let p=0;p<u;p++){const g=r?p:c[p],m=e[g],y=t[g];if(m===y){d[g]=m,(r?p<a:Nj.call(e,g))&&f++;continue}if(m===null||y===null||typeof m!="object"||typeof y!="object"){d[g]=y;continue}const w=Hm(m,y,n+1);d[g]=w,w===m&&f++}return a===u&&f===a?e:d}function ud(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Iw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function kp(e){if(!jw(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!jw(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function jw(e){return Object.prototype.toString.call(e)==="[object Object]"}function Mj(e){return new Promise(t=>{bi.setTimeout(t,e)})}function Sp(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Hm(e,t):t}function Dj(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Lj(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Vm=Symbol();function V5(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Vm?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Qm(e,t){return typeof e=="function"?e(...t):!!e}function Fj(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var Rc=(()=>{let e=()=>Oj;return{isServer(){return e()},setIsServer(t){e=t}}})();function Ip(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var zj=Tj;function Uj(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=zj;const a=u=>{t?e.push(u):i(()=>{n(u)})},c=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:u=>{let d;t++;try{d=u()}finally{t--,t||c()}return d},batchCalls:u=>(...d)=>{a(()=>{u(...d)})},schedule:a,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var ht=Uj(),Ms,To,Ds,Vb,Wj=(Vb=class extends la{constructor(){super();Ae(this,Ms,!0);Ae(this,To);Ae(this,Ds);fe(this,Ds,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){M(this,To)||this.setEventListener(M(this,Ds))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,To))==null||t.call(this),fe(this,To,void 0))}setEventListener(t){var n;fe(this,Ds,t),(n=M(this,To))==null||n.call(this),fe(this,To,t(this.setOnline.bind(this)))}setOnline(t){M(this,Ms)!==t&&(fe(this,Ms,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return M(this,Ms)}},Ms=new WeakMap,To=new WeakMap,Ds=new WeakMap,Vb),dd=new Wj;function $j(e){return Math.min(1e3*2**e,3e4)}function Q5(e){return(e??"online")==="online"?dd.isOnline():!0}var jp=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function G5(e){let t=!1,n=0,r;const i=Ip(),a=()=>i.status!=="pending",c=b=>{var C;if(!a()){const A=new jp(b);m(A),(C=e.onCancel)==null||C.call(e,A)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>$m.isFocused()&&(e.networkMode==="always"||dd.isOnline())&&e.canRun(),p=()=>Q5(e.networkMode)&&e.canRun(),g=b=>{a()||(r==null||r(),i.resolve(b))},m=b=>{a()||(r==null||r(),i.reject(b))},y=()=>new Promise(b=>{var C;r=A=>{(a()||f())&&b(A)},(C=e.onPause)==null||C.call(e)}).then(()=>{var b;r=void 0,a()||(b=e.onContinue)==null||b.call(e)}),w=()=>{if(a())return;let b;const C=n===0?e.initialPromise:void 0;try{b=C??e.fn()}catch(A){b=Promise.reject(A)}Promise.resolve(b).then(g).catch(A=>{var P;if(a())return;const I=e.retry??(Rc.isServer()?0:3),k=e.retryDelay??$j,S=typeof k=="function"?k(n,A):k,j=I===!0||typeof I=="number"&&n<I||typeof I=="function"&&I(n,A);if(t||!j){m(A);return}n++,(P=e.onFail)==null||P.call(e,n,A),Mj(S).then(()=>f()?void 0:y()).then(()=>{t?m(A):w()})})};return{promise:i,status:()=>i.status,cancel:c,continue:()=>(r==null||r(),i),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?w():y().then(w),i)}}var Ei,Qb,K5=(Qb=class{constructor(){Ae(this,Ei)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ap(this.gcTime)&&fe(this,Ei,bi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Rc.isServer()?1/0:300*1e3))}clearGcTimeout(){M(this,Ei)!==void 0&&(bi.clearTimeout(M(this,Ei)),fe(this,Ei,void 0))}},Ei=new WeakMap,Qb),Ai,Ls,Rn,ki,vt,qc,Si,mn,Y5,zr,Gb,qj=(Gb=class extends K5{constructor(t){super();Ae(this,mn);Ae(this,Ai);Ae(this,Ls);Ae(this,Rn);Ae(this,ki);Ae(this,vt);Ae(this,qc);Ae(this,Si);fe(this,Si,!1),fe(this,qc,t.defaultOptions),this.setOptions(t.options),this.observers=[],fe(this,ki,t.client),fe(this,Rn,M(this,ki).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,fe(this,Ai,_w(this.options)),this.state=t.state??M(this,Ai),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=M(this,vt))==null?void 0:t.promise}setOptions(t){if(this.options={...M(this,qc),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=_w(this.options);n.data!==void 0&&(this.setState(Bw(n.data,n.dataUpdatedAt)),fe(this,Ai,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,Rn).remove(this)}setData(t,n){const r=Sp(this.state.data,t,this.options);return Te(this,mn,zr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Te(this,mn,zr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=M(this,vt))==null?void 0:r.promise;return(i=M(this,vt))==null||i.cancel(t),n?n.then(Ut).catch(Ut):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return M(this,Ai)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Nn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Vm||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Uo(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!H5(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,vt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,vt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),M(this,Rn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(M(this,vt)&&(M(this,Si)||Te(this,mn,Y5).call(this)?M(this,vt).cancel({revert:!0}):M(this,vt).cancelRetry()),this.scheduleGc()),M(this,Rn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,mn,zr).call(this,{type:"invalidate"})}async fetch(t,n){var d,f,p,g,m,y,w,b,C,A,I,k;if(this.state.fetchStatus!=="idle"&&((d=M(this,vt))==null?void 0:d.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(M(this,vt))return M(this,vt).continueRetry(),M(this,vt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(j=>j.options.queryFn);S&&this.setOptions(S.options)}const r=new AbortController,i=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(fe(this,Si,!0),r.signal)})},a=()=>{const S=V5(this.options,n),P=(()=>{const _={client:M(this,ki),queryKey:this.queryKey,meta:this.meta};return i(_),_})();return fe(this,Si,!1),this.options.persister?this.options.persister(S,P,this):S(P)},u=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:M(this,ki),state:this.state,fetchFn:a};return i(S),S})();(f=this.options.behavior)==null||f.onFetch(u,this),fe(this,Ls,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=u.fetchOptions)==null?void 0:p.meta))&&Te(this,mn,zr).call(this,{type:"fetch",meta:(g=u.fetchOptions)==null?void 0:g.meta}),fe(this,vt,G5({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,onCancel:S=>{S instanceof jp&&S.revert&&this.setState({...M(this,Ls),fetchStatus:"idle"}),r.abort()},onFail:(S,j)=>{Te(this,mn,zr).call(this,{type:"failed",failureCount:S,error:j})},onPause:()=>{Te(this,mn,zr).call(this,{type:"pause"})},onContinue:()=>{Te(this,mn,zr).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const S=await M(this,vt).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(y=(m=M(this,Rn).config).onSuccess)==null||y.call(m,S,this),(b=(w=M(this,Rn).config).onSettled)==null||b.call(w,S,this.state.error,this),S}catch(S){if(S instanceof jp){if(S.silent)return M(this,vt).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw Te(this,mn,zr).call(this,{type:"error",error:S}),(A=(C=M(this,Rn).config).onError)==null||A.call(C,S,this),(k=(I=M(this,Rn).config).onSettled)==null||k.call(I,this.state.data,S,this),S}finally{this.scheduleGc()}}},Ai=new WeakMap,Ls=new WeakMap,Rn=new WeakMap,ki=new WeakMap,vt=new WeakMap,qc=new WeakMap,Si=new WeakMap,mn=new WeakSet,Y5=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},zr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...J5(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...Bw(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return fe(this,Ls,t.manual?i:void 0),i;case"error":const a=t.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ht.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),M(this,Rn).notify({query:this,type:"updated",action:t})})},Gb);function J5(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Q5(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Bw(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function _w(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var tn,De,Hc,Ft,Ii,Fs,Wr,Oo,Vc,zs,Us,ji,Bi,Ro,Ws,$e,rc,Bp,_p,Pp,Tp,Op,Rp,Np,Z5,Kb,Hj=(Kb=class extends la{constructor(t,n){super();Ae(this,$e);Ae(this,tn);Ae(this,De);Ae(this,Hc);Ae(this,Ft);Ae(this,Ii);Ae(this,Fs);Ae(this,Wr);Ae(this,Oo);Ae(this,Vc);Ae(this,zs);Ae(this,Us);Ae(this,ji);Ae(this,Bi);Ae(this,Ro);Ae(this,Ws,new Set);this.options=n,fe(this,tn,t),fe(this,Oo,null),fe(this,Wr,Ip()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(M(this,De).addObserver(this),Pw(M(this,De),this.options)?Te(this,$e,rc).call(this):this.updateResult(),Te(this,$e,Tp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Mp(M(this,De),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Mp(M(this,De),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,$e,Op).call(this),Te(this,$e,Rp).call(this),M(this,De).removeObserver(this)}setOptions(t){const n=this.options,r=M(this,De);if(this.options=M(this,tn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Nn(this.options.enabled,M(this,De))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Te(this,$e,Np).call(this),M(this,De).setOptions(this.options),n._defaulted&&!ud(this.options,n)&&M(this,tn).getQueryCache().notify({type:"observerOptionsUpdated",query:M(this,De),observer:this});const i=this.hasListeners();i&&Tw(M(this,De),r,this.options,n)&&Te(this,$e,rc).call(this),this.updateResult(),i&&(M(this,De)!==r||Nn(this.options.enabled,M(this,De))!==Nn(n.enabled,M(this,De))||Uo(this.options.staleTime,M(this,De))!==Uo(n.staleTime,M(this,De)))&&Te(this,$e,Bp).call(this);const a=Te(this,$e,_p).call(this);i&&(M(this,De)!==r||Nn(this.options.enabled,M(this,De))!==Nn(n.enabled,M(this,De))||a!==M(this,Ro))&&Te(this,$e,Pp).call(this,a)}getOptimisticResult(t){const n=M(this,tn).getQueryCache().build(M(this,tn),t),r=this.createResult(n,t);return Qj(this,r)&&(fe(this,Ft,r),fe(this,Fs,this.options),fe(this,Ii,M(this,De).state)),r}getCurrentResult(){return M(this,Ft)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&M(this,Wr).status==="pending"&&M(this,Wr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){M(this,Ws).add(t)}getCurrentQuery(){return M(this,De)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=M(this,tn).defaultQueryOptions(t),r=M(this,tn).getQueryCache().build(M(this,tn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Te(this,$e,rc).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),M(this,Ft)))}createResult(t,n){var D;const r=M(this,De),i=this.options,a=M(this,Ft),c=M(this,Ii),u=M(this,Fs),f=t!==r?t.state:M(this,Hc),{state:p}=t;let g={...p},m=!1,y;if(n._optimisticResults){const Q=this.hasListeners(),H=!Q&&Pw(t,n),Z=Q&&Tw(t,r,n,i);(H||Z)&&(g={...g,...J5(p.data,t.options)}),n._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:w,errorUpdatedAt:b,status:C}=g;y=g.data;let A=!1;if(n.placeholderData!==void 0&&y===void 0&&C==="pending"){let Q;a!=null&&a.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData)?(Q=a.data,A=!0):Q=typeof n.placeholderData=="function"?n.placeholderData((D=M(this,Us))==null?void 0:D.state.data,M(this,Us)):n.placeholderData,Q!==void 0&&(C="success",y=Sp(a==null?void 0:a.data,Q,n),m=!0)}if(n.select&&y!==void 0&&!A)if(a&&y===(c==null?void 0:c.data)&&n.select===M(this,Vc))y=M(this,zs);else try{fe(this,Vc,n.select),y=n.select(y),y=Sp(a==null?void 0:a.data,y,n),fe(this,zs,y),fe(this,Oo,null)}catch(Q){fe(this,Oo,Q)}M(this,Oo)&&(w=M(this,Oo),y=M(this,zs),b=Date.now(),C="error");const I=g.fetchStatus==="fetching",k=C==="pending",S=C==="error",j=k&&I,P=y!==void 0,T={status:C,fetchStatus:g.fetchStatus,isPending:k,isSuccess:C==="success",isError:S,isInitialLoading:j,isLoading:j,data:y,dataUpdatedAt:g.dataUpdatedAt,error:w,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:I,isRefetching:I&&!k,isLoadingError:S&&!P,isPaused:g.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:S&&P,isStale:Gm(t,n),refetch:this.refetch,promise:M(this,Wr),isEnabled:Nn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const Q=T.data!==void 0,H=T.status==="error"&&!Q,Z=$=>{H?$.reject(T.error):Q&&$.resolve(T.data)},G=()=>{const $=fe(this,Wr,T.promise=Ip());Z($)},le=M(this,Wr);switch(le.status){case"pending":t.queryHash===r.queryHash&&Z(le);break;case"fulfilled":(H||T.data!==le.value)&&G();break;case"rejected":(!H||T.error!==le.reason)&&G();break}}return T}updateResult(){const t=M(this,Ft),n=this.createResult(M(this,De),this.options);if(fe(this,Ii,M(this,De).state),fe(this,Fs,this.options),M(this,Ii).data!==void 0&&fe(this,Us,M(this,De)),ud(n,t))return;fe(this,Ft,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!M(this,Ws).size)return!0;const c=new Set(a??M(this,Ws));return this.options.throwOnError&&c.add("error"),Object.keys(M(this,Ft)).some(u=>{const d=u;return M(this,Ft)[d]!==t[d]&&c.has(d)})};Te(this,$e,Z5).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,$e,Tp).call(this)}},tn=new WeakMap,De=new WeakMap,Hc=new WeakMap,Ft=new WeakMap,Ii=new WeakMap,Fs=new WeakMap,Wr=new WeakMap,Oo=new WeakMap,Vc=new WeakMap,zs=new WeakMap,Us=new WeakMap,ji=new WeakMap,Bi=new WeakMap,Ro=new WeakMap,Ws=new WeakMap,$e=new WeakSet,rc=function(t){Te(this,$e,Np).call(this);let n=M(this,De).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ut)),n},Bp=function(){Te(this,$e,Op).call(this);const t=Uo(this.options.staleTime,M(this,De));if(Rc.isServer()||M(this,Ft).isStale||!Ap(t))return;const r=H5(M(this,Ft).dataUpdatedAt,t)+1;fe(this,ji,bi.setTimeout(()=>{M(this,Ft).isStale||this.updateResult()},r))},_p=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(M(this,De)):this.options.refetchInterval)??!1},Pp=function(t){Te(this,$e,Rp).call(this),fe(this,Ro,t),!(Rc.isServer()||Nn(this.options.enabled,M(this,De))===!1||!Ap(M(this,Ro))||M(this,Ro)===0)&&fe(this,Bi,bi.setInterval(()=>{(this.options.refetchIntervalInBackground||$m.isFocused())&&Te(this,$e,rc).call(this)},M(this,Ro)))},Tp=function(){Te(this,$e,Bp).call(this),Te(this,$e,Pp).call(this,Te(this,$e,_p).call(this))},Op=function(){M(this,ji)!==void 0&&(bi.clearTimeout(M(this,ji)),fe(this,ji,void 0))},Rp=function(){M(this,Bi)!==void 0&&(bi.clearInterval(M(this,Bi)),fe(this,Bi,void 0))},Np=function(){const t=M(this,tn).getQueryCache().build(M(this,tn),this.options);if(t===M(this,De))return;const n=M(this,De);fe(this,De,t),fe(this,Hc,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Z5=function(t){ht.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(M(this,Ft))}),M(this,tn).getQueryCache().notify({query:M(this,De),type:"observerResultsUpdated"})})},Kb);function Vj(e,t){return Nn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Pw(e,t){return Vj(e,t)||e.state.data!==void 0&&Mp(e,t,t.refetchOnMount)}function Mp(e,t,n){if(Nn(t.enabled,e)!==!1&&Uo(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Gm(e,t)}return!1}function Tw(e,t,n,r){return(e!==t||Nn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Gm(e,n)}function Gm(e,t){return Nn(t.enabled,e)!==!1&&e.isStaleByTime(Uo(t.staleTime,e))}function Qj(e,t){return!ud(e.getCurrentResult(),t)}function Ow(e){return{onFetch:(t,n)=>{var p,g,m,y,w;const r=t.options,i=(m=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:m.direction,a=((y=t.state.data)==null?void 0:y.pages)||[],c=((w=t.state.data)==null?void 0:w.pageParams)||[];let u={pages:[],pageParams:[]},d=0;const f=async()=>{let b=!1;const C=k=>{Fj(k,()=>t.signal,()=>b=!0)},A=V5(t.options,t.fetchOptions),I=async(k,S,j)=>{if(b)return Promise.reject();if(S==null&&k.pages.length)return Promise.resolve(k);const _=(()=>{const H={client:t.client,queryKey:t.queryKey,pageParam:S,direction:j?"backward":"forward",meta:t.options.meta};return C(H),H})(),T=await A(_),{maxPages:D}=t.options,Q=j?Lj:Dj;return{pages:Q(k.pages,T,D),pageParams:Q(k.pageParams,S,D)}};if(i&&a.length){const k=i==="backward",S=k?Gj:Rw,j={pages:a,pageParams:c},P=S(r,j);u=await I(j,P,k)}else{const k=e??a.length;do{const S=d===0?c[0]??r.initialPageParam:Rw(r,u);if(d>0&&S==null)break;u=await I(u,S),d++}while(d<k)}return u};t.options.persister?t.fetchFn=()=>{var b,C;return(C=(b=t.options).persister)==null?void 0:C.call(b,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function Rw(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Gj(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Qc,pr,Rt,_i,mr,Bo,Yb,Kj=(Yb=class extends K5{constructor(t){super();Ae(this,mr);Ae(this,Qc);Ae(this,pr);Ae(this,Rt);Ae(this,_i);fe(this,Qc,t.client),this.mutationId=t.mutationId,fe(this,Rt,t.mutationCache),fe(this,pr,[]),this.state=t.state||X5(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){M(this,pr).includes(t)||(M(this,pr).push(t),this.clearGcTimeout(),M(this,Rt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){fe(this,pr,M(this,pr).filter(n=>n!==t)),this.scheduleGc(),M(this,Rt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){M(this,pr).length||(this.state.status==="pending"?this.scheduleGc():M(this,Rt).remove(this))}continue(){var t;return((t=M(this,_i))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var c,u,d,f,p,g,m,y,w,b,C,A,I,k,S,j,P,_;const n=()=>{Te(this,mr,Bo).call(this,{type:"continue"})},r={client:M(this,Qc),meta:this.options.meta,mutationKey:this.options.mutationKey};fe(this,_i,G5({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(T,D)=>{Te(this,mr,Bo).call(this,{type:"failed",failureCount:T,error:D})},onPause:()=>{Te(this,mr,Bo).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,Rt).canRun(this)}));const i=this.state.status==="pending",a=!M(this,_i).canStart();try{if(i)n();else{Te(this,mr,Bo).call(this,{type:"pending",variables:t,isPaused:a}),M(this,Rt).config.onMutate&&await M(this,Rt).config.onMutate(t,this,r);const D=await((u=(c=this.options).onMutate)==null?void 0:u.call(c,t,r));D!==this.state.context&&Te(this,mr,Bo).call(this,{type:"pending",context:D,variables:t,isPaused:a})}const T=await M(this,_i).start();return await((f=(d=M(this,Rt).config).onSuccess)==null?void 0:f.call(d,T,t,this.state.context,this,r)),await((g=(p=this.options).onSuccess)==null?void 0:g.call(p,T,t,this.state.context,r)),await((y=(m=M(this,Rt).config).onSettled)==null?void 0:y.call(m,T,null,this.state.variables,this.state.context,this,r)),await((b=(w=this.options).onSettled)==null?void 0:b.call(w,T,null,t,this.state.context,r)),Te(this,mr,Bo).call(this,{type:"success",data:T}),T}catch(T){try{await((A=(C=M(this,Rt).config).onError)==null?void 0:A.call(C,T,t,this.state.context,this,r))}catch(D){Promise.reject(D)}try{await((k=(I=this.options).onError)==null?void 0:k.call(I,T,t,this.state.context,r))}catch(D){Promise.reject(D)}try{await((j=(S=M(this,Rt).config).onSettled)==null?void 0:j.call(S,void 0,T,this.state.variables,this.state.context,this,r))}catch(D){Promise.reject(D)}try{await((_=(P=this.options).onSettled)==null?void 0:_.call(P,void 0,T,t,this.state.context,r))}catch(D){Promise.reject(D)}throw Te(this,mr,Bo).call(this,{type:"error",error:T}),T}finally{M(this,Rt).runNext(this)}}},Qc=new WeakMap,pr=new WeakMap,Rt=new WeakMap,_i=new WeakMap,mr=new WeakSet,Bo=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ht.batch(()=>{M(this,pr).forEach(r=>{r.onMutationUpdate(t)}),M(this,Rt).notify({mutation:this,type:"updated",action:t})})},Yb);function X5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $r,Jn,Gc,Jb,Yj=(Jb=class extends la{constructor(t={}){super();Ae(this,$r);Ae(this,Jn);Ae(this,Gc);this.config=t,fe(this,$r,new Set),fe(this,Jn,new Map),fe(this,Gc,0)}build(t,n,r){const i=new Kj({client:t,mutationCache:this,mutationId:++ku(this,Gc)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){M(this,$r).add(t);const n=Lu(t);if(typeof n=="string"){const r=M(this,Jn).get(n);r?r.push(t):M(this,Jn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(M(this,$r).delete(t)){const n=Lu(t);if(typeof n=="string"){const r=M(this,Jn).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&M(this,Jn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Lu(t);if(typeof n=="string"){const r=M(this,Jn).get(n),i=r==null?void 0:r.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=Lu(t);if(typeof n=="string"){const i=(r=M(this,Jn).get(n))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ht.batch(()=>{M(this,$r).forEach(t=>{this.notify({type:"removed",mutation:t})}),M(this,$r).clear(),M(this,Jn).clear()})}getAll(){return Array.from(M(this,$r))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Sw(n,r))}findAll(t={}){return this.getAll().filter(n=>Sw(t,n))}notify(t){ht.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ht.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ut))))}},$r=new WeakMap,Jn=new WeakMap,Gc=new WeakMap,Jb);function Lu(e){var t;return(t=e.options.scope)==null?void 0:t.id}var qr,No,nn,Hr,Yr,Ku,Dp,Zb,Jj=(Zb=class extends la{constructor(n,r){super();Ae(this,Yr);Ae(this,qr);Ae(this,No);Ae(this,nn);Ae(this,Hr);fe(this,qr,n),this.setOptions(r),this.bindMethods(),Te(this,Yr,Ku).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=M(this,qr).defaultMutationOptions(n),ud(this.options,r)||M(this,qr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:M(this,nn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&zi(r.mutationKey)!==zi(this.options.mutationKey)?this.reset():((i=M(this,nn))==null?void 0:i.state.status)==="pending"&&M(this,nn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=M(this,nn))==null||n.removeObserver(this)}onMutationUpdate(n){Te(this,Yr,Ku).call(this),Te(this,Yr,Dp).call(this,n)}getCurrentResult(){return M(this,No)}reset(){var n;(n=M(this,nn))==null||n.removeObserver(this),fe(this,nn,void 0),Te(this,Yr,Ku).call(this),Te(this,Yr,Dp).call(this)}mutate(n,r){var i;return fe(this,Hr,r),(i=M(this,nn))==null||i.removeObserver(this),fe(this,nn,M(this,qr).getMutationCache().build(M(this,qr),this.options)),M(this,nn).addObserver(this),M(this,nn).execute(n)}},qr=new WeakMap,No=new WeakMap,nn=new WeakMap,Hr=new WeakMap,Yr=new WeakSet,Ku=function(){var r;const n=((r=M(this,nn))==null?void 0:r.state)??X5();fe(this,No,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Dp=function(n){ht.batch(()=>{var r,i,a,c,u,d,f,p;if(M(this,Hr)&&this.hasListeners()){const g=M(this,No).variables,m=M(this,No).context,y={client:M(this,qr),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(i=(r=M(this,Hr)).onSuccess)==null||i.call(r,n.data,g,m,y)}catch(w){Promise.reject(w)}try{(c=(a=M(this,Hr)).onSettled)==null||c.call(a,n.data,null,g,m,y)}catch(w){Promise.reject(w)}}else if((n==null?void 0:n.type)==="error"){try{(d=(u=M(this,Hr)).onError)==null||d.call(u,n.error,g,m,y)}catch(w){Promise.reject(w)}try{(p=(f=M(this,Hr)).onSettled)==null||p.call(f,void 0,n.error,g,m,y)}catch(w){Promise.reject(w)}}}this.listeners.forEach(g=>{g(M(this,No))})})},Zb),gr,Xb,Zj=(Xb=class extends la{constructor(t={}){super();Ae(this,gr);this.config=t,fe(this,gr,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??qm(i,n);let c=this.get(a);return c||(c=new qj({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(c)),c}add(t){M(this,gr).has(t.queryHash)||(M(this,gr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=M(this,gr).get(t.queryHash);n&&(t.destroy(),n===t&&M(this,gr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ht.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return M(this,gr).get(t)}getAll(){return[...M(this,gr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>kw(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>kw(t,r)):n}notify(t){ht.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ht.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ht.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},gr=new WeakMap,Xb),nt,Mo,Do,$s,qs,Lo,Hs,Vs,e6,Xj=(e6=class{constructor(e={}){Ae(this,nt);Ae(this,Mo);Ae(this,Do);Ae(this,$s);Ae(this,qs);Ae(this,Lo);Ae(this,Hs);Ae(this,Vs);fe(this,nt,e.queryCache||new Zj),fe(this,Mo,e.mutationCache||new Yj),fe(this,Do,e.defaultOptions||{}),fe(this,$s,new Map),fe(this,qs,new Map),fe(this,Lo,0)}mount(){ku(this,Lo)._++,M(this,Lo)===1&&(fe(this,Hs,$m.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,nt).onFocus())})),fe(this,Vs,dd.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,nt).onOnline())})))}unmount(){var e,t;ku(this,Lo)._--,M(this,Lo)===0&&((e=M(this,Hs))==null||e.call(this),fe(this,Hs,void 0),(t=M(this,Vs))==null||t.call(this),fe(this,Vs,void 0))}isFetching(e){return M(this,nt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,Mo).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,nt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=M(this,nt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Uo(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return M(this,nt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=M(this,nt).get(r.queryHash),a=i==null?void 0:i.state.data,c=Rj(t,a);if(c!==void 0)return M(this,nt).build(this,r).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return ht.batch(()=>M(this,nt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,nt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=M(this,nt);ht.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=M(this,nt);return ht.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ht.batch(()=>M(this,nt).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ut).catch(Ut)}invalidateQueries(e,t={}){return ht.batch(()=>(M(this,nt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ht.batch(()=>M(this,nt).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(Ut)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(Ut)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=M(this,nt).build(this,t);return n.isStaleByTime(Uo(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ut).catch(Ut)}fetchInfiniteQuery(e){return e.behavior=Ow(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ut).catch(Ut)}ensureInfiniteQueryData(e){return e.behavior=Ow(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return dd.isOnline()?M(this,Mo).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,nt)}getMutationCache(){return M(this,Mo)}getDefaultOptions(){return M(this,Do)}setDefaultOptions(e){fe(this,Do,e)}setQueryDefaults(e,t){M(this,$s).set(zi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...M(this,$s).values()],n={};return t.forEach(r=>{Oc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){M(this,qs).set(zi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...M(this,qs).values()],n={};return t.forEach(r=>{Oc(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...M(this,Do).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=qm(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===Vm&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,Do).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,nt).clear(),M(this,Mo).clear()}},nt=new WeakMap,Mo=new WeakMap,Do=new WeakMap,$s=new WeakMap,qs=new WeakMap,Lo=new WeakMap,Hs=new WeakMap,Vs=new WeakMap,e6);function eB(e,t){return Hm(e,t)}function tB(e){return JSON.stringify(e,(t,n)=>nB(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):typeof n=="bigint"?n.toString():n)}function nB(e){if(!Nw(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Nw(n)||!n.hasOwnProperty("isPrototypeOf"))}function Nw(e){return Object.prototype.toString.call(e)==="[object Object]"}function Hi(e){const{_defaulted:t,behavior:n,gcTime:r,initialData:i,initialDataUpdatedAt:a,maxPages:c,meta:u,networkMode:d,queryFn:f,queryHash:p,queryKey:g,queryKeyHashFn:m,retry:y,retryDelay:w,structuralSharing:b,getPreviousPageParam:C,getNextPageParam:A,initialPageParam:I,_optimisticResults:k,enabled:S,notifyOnChangeProps:j,placeholderData:P,refetchInterval:_,refetchIntervalInBackground:T,refetchOnMount:D,refetchOnReconnect:Q,refetchOnWindowFocus:H,retryOnMount:Z,select:G,staleTime:le,suspense:$,throwOnError:X,config:te,connector:F,query:J,...Y}=e;return Y}function rB(e){return{mutationFn(t){return bI(e,t)},mutationKey:["connect"]}}function oB(e){return{mutationFn(t){return TI(e,t)},mutationKey:["disconnect"]}}function iB(e,t={}){return{async queryFn({queryKey:n}){const{address:r,scopeKey:i,...a}=n[1];if(!r)throw new Error("address is required");return await NI(e,{...a,address:r})??null},queryKey:sB(t)}}function sB(e={}){return["balance",Hi(e)]}function aB(e,t={}){return{gcTime:0,async queryFn({queryKey:n}){const{connector:r}=t,{connectorUid:i,scopeKey:a,...c}=n[1];return Vd(e,{...c,connector:r})},queryKey:cB(t)}}function cB(e={}){const{connector:t,...n}=e;return["connectorClient",{...Hi(n),connectorUid:t==null?void 0:t.uid}]}function lB(e,t={}){return{async queryFn({queryKey:n}){const{name:r,scopeKey:i,...a}=n[1];if(!r)throw new Error("name is required");return DI(e,{...a,name:r})},queryKey:uB(t)}}function uB(e={}){return["ensAvatar",Hi(e)]}function dB(e,t={}){return{async queryFn({queryKey:n}){const{address:r,scopeKey:i,...a}=n[1];if(!r)throw new Error("address is required");return LI(e,{...a,address:r})},queryKey:fB(t)}}function fB(e={}){return["ensName",Hi(e)]}function hB(e,t={}){return{async queryFn({queryKey:n}){const r=t.abi;if(!r)throw new Error("abi is required");const{functionName:i,scopeKey:a,...c}=n[1],u=(()=>{const d=n[1];if(d.address)return{address:d.address};if(d.code)return{code:d.code};throw new Error("address or code is required")})();if(!i)throw new Error("functionName is required");return L5(e,{abi:r,functionName:i,args:c.args,...u,...c})},queryKey:pB(t)}}function pB(e={}){const{abi:t,...n}=e;return["readContract",Hi(n)]}function mB(e){return{mutationFn(t){return zI(e,t)},mutationKey:["signMessage"]}}function gB(e,t={}){return{async queryFn({queryKey:n}){const{abi:r,connector:i}=t;if(!r)throw new Error("abi is required");const{scopeKey:a,...c}=n[1],{address:u,functionName:d}=c;if(!u)throw new Error("address is required");if(!d)throw new Error("functionName is required");return UI(e,{abi:r,connector:i,...c})},queryKey:yB(t)}}function yB(e={}){const{abi:t,connector:n,...r}=e;return["simulateContract",Hi(r)]}function vB(e){return{mutationFn(t){return $I(e,t)},mutationKey:["switchChain"]}}function wB(e,t={}){return{async queryFn({queryKey:n}){const{hash:r,...i}=n[1];if(!r)throw new Error("hash is required");return qI(e,{...i,onReplaced:t.onReplaced,hash:r})},queryKey:bB(t)}}function bB(e={}){const{onReplaced:t,...n}=e;return["waitForTransactionReceipt",Hi(n)]}function xB(e){return{mutationFn(t){return KI(e,t)},mutationKey:["writeContract"]}}var e3=R.createContext(void 0),Km=e=>{const t=R.useContext(e3);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},CB=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),W.jsx(e3.Provider,{value:e,children:t})),t3=R.createContext(!1),EB=()=>R.useContext(t3);t3.Provider;function AB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var kB=R.createContext(AB()),SB=()=>R.useContext(kB),IB=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Qm(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},jB=e=>{R.useEffect(()=>{e.clearReset()},[e])},BB=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Qm(n,[e.error,r])),_B=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},PB=(e,t)=>e.isLoading&&e.isFetching&&!t,TB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Mw=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function OB(e,t,n){var m,y,w,b;const r=EB(),i=SB(),a=Km(),c=a.defaultQueryOptions(e);(y=(m=a.getDefaultOptions().queries)==null?void 0:m._experimental_beforeQuery)==null||y.call(m,c);const u=a.getQueryCache().get(c.queryHash);c._optimisticResults=r?"isRestoring":"optimistic",_B(c),IB(c,i,u),jB(i);const d=!a.getQueryCache().get(c.queryHash),[f]=R.useState(()=>new t(a,c)),p=f.getOptimisticResult(c),g=!r&&e.subscribed!==!1;if(R.useSyncExternalStore(R.useCallback(C=>{const A=g?f.subscribe(ht.batchCalls(C)):Ut;return f.updateResult(),A},[f,g]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),R.useEffect(()=>{f.setOptions(c)},[c,f]),TB(c,p))throw Mw(c,f,i);if(BB({result:p,errorResetBoundary:i,throwOnError:c.throwOnError,query:u,suspense:c.suspense}))throw p.error;if((b=(w=a.getDefaultOptions().queries)==null?void 0:w._experimental_afterQuery)==null||b.call(w,c,p),c.experimental_prefetchInRender&&!Rc.isServer()&&PB(p,r)){const C=d?Mw(c,f,i):u==null?void 0:u.promise;C==null||C.catch(Ut).finally(()=>{f.updateResult()})}return c.notifyOnChangeProps?p:f.trackResult(p)}function n3(e,t){return OB(e,Hj)}function dl(e,t){const n=Km(),[r]=R.useState(()=>new Jj(n,e));R.useEffect(()=>{r.setOptions(e)},[r,e]);const i=R.useSyncExternalStore(R.useCallback(c=>r.subscribe(ht.batchCalls(c)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=R.useCallback((c,u)=>{r.mutate(c,u).catch(Ut)},[r]);if(i.error&&Qm(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function Vi(e){const t=n3({...e,queryKeyHashFn:tB});return t.queryKey=e.queryKey,t}function Yo(e={}){const t=et(e);return R.useSyncExternalStore(n=>HI(t,{onChange:n}),()=>pw(t),()=>pw(t))}function r3(e={}){const{address:t,query:n={}}=e,r=et(e),i=Yo({config:r}),a=iB(r,{...e,chainId:e.chainId??i}),c=!!(t&&(n.enabled??!0));return Vi({...n,...a,enabled:c})}function RB(e={}){const t=et(e);return R.useSyncExternalStore(n=>Ej(t,{onChange:n}),()=>mw(t),()=>mw(t))}function NB(e={}){const t=et(e);return R.useSyncExternalStore(n=>QI(t,{onChange:n}),()=>gw(t),()=>gw(t))}function MB(e={}){const{mutation:t}=e,n=et(e),r=rB(n),{mutate:i,mutateAsync:a,...c}=dl({...t,...r});return R.useEffect(()=>n.subscribe(({status:u})=>u,(u,d)=>{d==="connected"&&u==="disconnected"&&c.reset()}),[n,c.reset]),{...c,connect:i,connectAsync:a,connectors:NB({config:n})}}function DB(e={}){const t=et(e);return R.useSyncExternalStore(n=>VI(t,{onChange:n}),()=>bp(t),()=>bp(t))}function LB(e={}){const{query:t={},...n}=e,r=et(n),i=Km(),{address:a,connector:c,status:u}=xt({config:r}),d=Yo({config:r}),f=e.connector??c,{queryKey:p,...g}=aB(r,{...e,chainId:e.chainId??d,connector:f}),m=!!((u==="connected"||u==="reconnecting"&&(f!=null&&f.getProvider))&&(t.enabled??!0)),y=R.useRef(a);return R.useEffect(()=>{const w=y.current;!a&&w?(i.removeQueries({queryKey:p}),y.current=void 0):a!==w&&(i.invalidateQueries({queryKey:p}),y.current=a)},[a,i]),Vi({...t,...g,queryKey:p,enabled:m,staleTime:Number.POSITIVE_INFINITY})}function Ym(e={}){const{mutation:t}=e,n=et(e),r=oB(n),{mutate:i,mutateAsync:a,...c}=dl({...t,...r});return{...c,connectors:DB({config:n}).map(u=>u.connector),disconnect:i,disconnectAsync:a}}function FB(e={}){const{name:t,query:n={}}=e,r=et(e),i=Yo({config:r}),a=lB(r,{...e,chainId:e.chainId??i}),c=!!(t&&(n.enabled??!0));return Vi({...n,...a,enabled:c})}function zB(e={}){const{address:t,query:n={}}=e,r=et(e),i=Yo({config:r}),a=dB(r,{...e,chainId:e.chainId??i}),c=!!(t&&(n.enabled??!0));return Vi({...n,...a,enabled:c})}function UB(e={}){const t=et(e);return $5.useSyncExternalStoreWithSelector(n=>GI(t,{onChange:n}),()=>xp(t,e),()=>xp(t,e),n=>n,(n,r)=>(n==null?void 0:n.uid)===(r==null?void 0:r.uid))}function WB(e={}){const{abi:t,address:n,functionName:r,query:i={}}=e,a=e.code,c=et(e),u=Yo({config:c}),d=hB(c,{...e,chainId:e.chainId??u}),f=!!((n||a)&&t&&r&&(i.enabled??!0));return Vi({...i,...d,enabled:f,structuralSharing:i.structuralSharing??eB})}function $B(e={}){const{mutation:t}=e,n=et(e),r=mB(n),{mutate:i,mutateAsync:a,...c}=dl({...t,...r});return{...c,signMessage:i,signMessageAsync:a}}function qB(e={}){const{abi:t,address:n,connector:r,functionName:i,query:a={}}=e,c=et(e),{data:u}=LB({config:c,connector:r,query:{enabled:e.account===void 0}}),d=Yo({config:c}),f=gB(c,{...e,account:e.account??(u==null?void 0:u.account),chainId:e.chainId??d}),p=!!(t&&n&&i&&(a.enabled??!0));return Vi({...a,...f,enabled:p})}function o3(e={}){const{mutation:t}=e,n=et(e),r=vB(n),{mutate:i,mutateAsync:a,...c}=dl({...t,...r});return{...c,chains:RB({config:n}),switchChain:i,switchChainAsync:a}}function Nc(e={}){const{hash:t,query:n={}}=e,r=et(e),i=Yo({config:r}),a=wB(r,{...e,chainId:e.chainId??i}),c=!!(t&&(n.enabled??!0));return Vi({...n,...a,enabled:c})}function Mc(e={}){const{mutation:t}=e,n=et(e),r=xB(n),{mutate:i,mutateAsync:a,...c}=dl({...t,...r});return{...c,writeContract:i,writeContractAsync:a}}var Dw='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',HB={rounded:`SFRounded, ui-rounded, "SF Pro Rounded", ${Dw}`,system:Dw},Xa={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"}},VB={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},QB=({borderRadius:e="large",fontStack:t="rounded",overlayBlur:n="none"})=>({blurs:{modalOverlay:VB[n].modalOverlay},fonts:{body:HB[t]},radii:{actionButton:Xa[e].actionButton,connectButton:Xa[e].connectButton,menuButton:Xa[e].connectButton,modal:Xa[e].modal,modalMobile:Xa[e].modalMobile}}),i3={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"}},Lw=i3.blue,s3=({accentColor:e=Lw.accentColor,accentColorForeground:t=Lw.accentColorForeground,...n}={})=>({...QB(n),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)"}});s3.accentColors=i3;var Lp=`{
102
+ "connect_wallet": {
103
+ "label": "Connect Wallet",
104
+ "wrong_network": {
105
+ "label": "Wrong network"
106
+ }
107
+ },
108
+
109
+ "intro": {
110
+ "title": "What is a Wallet?",
111
+ "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.",
112
+ "digital_asset": {
113
+ "title": "A Home for your Digital Assets",
114
+ "description": "Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs."
115
+ },
116
+ "login": {
117
+ "title": "A New Way to Log In",
118
+ "description": "Instead of creating new accounts and passwords on every website, just connect your wallet."
119
+ },
120
+ "get": {
121
+ "label": "Get a Wallet"
122
+ },
123
+ "learn_more": {
124
+ "label": "Learn More"
125
+ }
126
+ },
127
+
128
+ "sign_in": {
129
+ "label": "Verify your account",
130
+ "description": "To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.",
131
+ "message": {
132
+ "send": "Sign message",
133
+ "preparing": "Preparing message...",
134
+ "cancel": "Cancel",
135
+ "preparing_error": "Error preparing message, please retry!"
136
+ },
137
+ "signature": {
138
+ "waiting": "Waiting for signature...",
139
+ "verifying": "Verifying signature...",
140
+ "signing_error": "Error signing message, please retry!",
141
+ "verifying_error": "Error verifying signature, please retry!",
142
+ "oops_error": "Oops, something went wrong!"
143
+ }
144
+ },
145
+
146
+ "connect": {
147
+ "label": "Connect",
148
+ "title": "Connect a Wallet",
149
+ "new_to_ethereum": {
150
+ "description": "New to Ethereum wallets?",
151
+ "learn_more": {
152
+ "label": "Learn More"
153
+ }
154
+ },
155
+ "learn_more": {
156
+ "label": "Learn more"
157
+ },
158
+ "recent": "Recent",
159
+ "status": {
160
+ "opening": "Opening %{wallet}...",
161
+ "connecting": "Connecting",
162
+ "connect_mobile": "Continue in %{wallet}",
163
+ "not_installed": "%{wallet} is not installed",
164
+ "not_available": "%{wallet} is not available",
165
+ "confirm": "Confirm connection in the extension",
166
+ "confirm_mobile": "Accept connection request in the wallet"
167
+ },
168
+ "secondary_action": {
169
+ "get": {
170
+ "description": "Don't have %{wallet}?",
171
+ "label": "GET"
172
+ },
173
+ "install": {
174
+ "label": "INSTALL"
175
+ },
176
+ "retry": {
177
+ "label": "RETRY"
178
+ }
179
+ },
180
+ "walletconnect": {
181
+ "description": {
182
+ "full": "Need the official WalletConnect modal?",
183
+ "compact": "Need the WalletConnect modal?"
184
+ },
185
+ "open": {
186
+ "label": "OPEN"
187
+ }
188
+ }
189
+ },
190
+
191
+ "connect_scan": {
192
+ "title": "Scan with %{wallet}",
193
+ "fallback_title": "Scan with your phone"
194
+ },
195
+
196
+ "connector_group": {
197
+ "installed": "Installed",
198
+ "recommended": "Recommended",
199
+ "other": "Other",
200
+ "popular": "Popular",
201
+ "more": "More",
202
+ "others": "Others"
203
+ },
204
+
205
+ "get": {
206
+ "title": "Get a Wallet",
207
+ "action": {
208
+ "label": "GET"
209
+ },
210
+ "mobile": {
211
+ "description": "Mobile Wallet"
212
+ },
213
+ "extension": {
214
+ "description": "Browser Extension"
215
+ },
216
+ "mobile_and_extension": {
217
+ "description": "Mobile Wallet and Extension"
218
+ },
219
+ "mobile_and_desktop": {
220
+ "description": "Mobile and Desktop Wallet"
221
+ },
222
+ "looking_for": {
223
+ "title": "Not what you're looking for?",
224
+ "mobile": {
225
+ "description": "Select a wallet on the main screen to get started with a different wallet provider."
226
+ },
227
+ "desktop": {
228
+ "compact_description": "Select a wallet on the main screen to get started with a different wallet provider.",
229
+ "wide_description": "Select a wallet on the left to get started with a different wallet provider."
230
+ }
231
+ }
232
+ },
233
+
234
+ "get_options": {
235
+ "title": "Get started with %{wallet}",
236
+ "short_title": "Get %{wallet}",
237
+ "mobile": {
238
+ "title": "%{wallet} for Mobile",
239
+ "description": "Use the mobile wallet to explore the world of Ethereum.",
240
+ "download": {
241
+ "label": "Get the app"
242
+ }
243
+ },
244
+ "extension": {
245
+ "title": "%{wallet} for %{browser}",
246
+ "description": "Access your wallet right from your favorite web browser.",
247
+ "download": {
248
+ "label": "Add to %{browser}"
249
+ }
250
+ },
251
+ "desktop": {
252
+ "title": "%{wallet} for %{platform}",
253
+ "description": "Access your wallet natively from your powerful desktop.",
254
+ "download": {
255
+ "label": "Add to %{platform}"
256
+ }
257
+ }
258
+ },
259
+
260
+ "get_mobile": {
261
+ "title": "Install %{wallet}",
262
+ "description": "Scan with your phone to download on iOS or Android",
263
+ "continue": {
264
+ "label": "Continue"
265
+ }
266
+ },
267
+
268
+ "get_instructions": {
269
+ "mobile": {
270
+ "connect": {
271
+ "label": "Connect"
272
+ },
273
+ "learn_more": {
274
+ "label": "Learn More"
275
+ }
276
+ },
277
+ "extension": {
278
+ "refresh": {
279
+ "label": "Refresh"
280
+ },
281
+ "learn_more": {
282
+ "label": "Learn More"
283
+ }
284
+ },
285
+ "desktop": {
286
+ "connect": {
287
+ "label": "Connect"
288
+ },
289
+ "learn_more": {
290
+ "label": "Learn More"
291
+ }
292
+ }
293
+ },
294
+
295
+ "chains": {
296
+ "title": "Switch Networks",
297
+ "wrong_network": "Wrong network detected, switch or disconnect to continue.",
298
+ "confirm": "Confirm in Wallet",
299
+ "switching_not_supported": "Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.",
300
+ "switching_not_supported_fallback": "Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.",
301
+ "disconnect": "Disconnect",
302
+ "connected": "Connected"
303
+ },
304
+
305
+ "profile": {
306
+ "disconnect": {
307
+ "label": "Disconnect"
308
+ },
309
+ "copy_address": {
310
+ "label": "Copy Address",
311
+ "copied": "Copied!"
312
+ },
313
+ "explorer": {
314
+ "label": "View more on explorer"
315
+ },
316
+ "transactions": {
317
+ "description": "%{appName} transactions will appear here...",
318
+ "description_fallback": "Your transactions will appear here...",
319
+ "recent": {
320
+ "title": "Recent Transactions"
321
+ },
322
+ "clear": {
323
+ "label": "Clear All"
324
+ }
325
+ }
326
+ },
327
+
328
+ "wallet_connectors": {
329
+ "ready": {
330
+ "qr_code": {
331
+ "step1": {
332
+ "description": "Add Ready to your home screen for faster access to your wallet.",
333
+ "title": "Open the Ready app"
334
+ },
335
+ "step2": {
336
+ "description": "Create a wallet and username, or import an existing wallet.",
337
+ "title": "Create or Import a Wallet"
338
+ },
339
+ "step3": {
340
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
341
+ "title": "Tap the Scan QR button"
342
+ }
343
+ }
344
+ },
345
+
346
+ "berasig": {
347
+ "extension": {
348
+ "step1": {
349
+ "title": "Install the BeraSig extension",
350
+ "description": "We recommend pinning BeraSig to your taskbar for easier access to your wallet."
351
+ },
352
+ "step2": {
353
+ "title": "Create a Wallet",
354
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
355
+ },
356
+ "step3": {
357
+ "title": "Refresh your browser",
358
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
359
+ }
360
+ }
361
+ },
362
+
363
+ "best": {
364
+ "qr_code": {
365
+ "step1": {
366
+ "title": "Open the Best Wallet app",
367
+ "description": "Add Best Wallet to your home screen for faster access to your wallet."
368
+ },
369
+ "step2": {
370
+ "title": "Create or Import a Wallet",
371
+ "description": "Create a new wallet or import an existing one."
372
+ },
373
+ "step3": {
374
+ "title": "Tap the QR icon and scan",
375
+ "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
376
+ }
377
+ }
378
+ },
379
+
380
+ "bifrost": {
381
+ "qr_code": {
382
+ "step1": {
383
+ "description": "We recommend putting Bifrost Wallet on your home screen for quicker access.",
384
+ "title": "Open the Bifrost Wallet app"
385
+ },
386
+ "step2": {
387
+ "description": "Create or import a wallet using your recovery phrase.",
388
+ "title": "Create or Import a Wallet"
389
+ },
390
+ "step3": {
391
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
392
+ "title": "Tap the scan button"
393
+ }
394
+ }
395
+ },
396
+
397
+ "bitget": {
398
+ "qr_code": {
399
+ "step1": {
400
+ "description": "We recommend putting Bitget Wallet on your home screen for quicker access.",
401
+ "title": "Open the Bitget Wallet app"
402
+ },
403
+ "step2": {
404
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
405
+ "title": "Create or Import a Wallet"
406
+ },
407
+ "step3": {
408
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
409
+ "title": "Tap the scan button"
410
+ }
411
+ },
412
+
413
+ "extension": {
414
+ "step1": {
415
+ "description": "We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.",
416
+ "title": "Install the Bitget Wallet extension"
417
+ },
418
+ "step2": {
419
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
420
+ "title": "Create or Import a Wallet"
421
+ },
422
+ "step3": {
423
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
424
+ "title": "Refresh your browser"
425
+ }
426
+ }
427
+ },
428
+
429
+ "bitski": {
430
+ "extension": {
431
+ "step1": {
432
+ "description": "We recommend pinning Bitski to your taskbar for quicker access to your wallet.",
433
+ "title": "Install the Bitski extension"
434
+ },
435
+ "step2": {
436
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
437
+ "title": "Create or Import a Wallet"
438
+ },
439
+ "step3": {
440
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
441
+ "title": "Refresh your browser"
442
+ }
443
+ }
444
+ },
445
+
446
+ "bitverse": {
447
+ "qr_code": {
448
+ "step1": {
449
+ "title": "Open the Bitverse Wallet app",
450
+ "description": "Add Bitverse Wallet to your home screen for faster access to your wallet."
451
+ },
452
+ "step2": {
453
+ "title": "Create or Import a Wallet",
454
+ "description": "Create a new wallet or import an existing one."
455
+ },
456
+ "step3": {
457
+ "title": "Tap the QR icon and scan",
458
+ "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
459
+ }
460
+ }
461
+ },
462
+
463
+ "bloom": {
464
+ "desktop": {
465
+ "step1": {
466
+ "title": "Open the Bloom Wallet app",
467
+ "description": "We recommend putting Bloom Wallet on your home screen for quicker access."
468
+ },
469
+ "step2": {
470
+ "description": "Create or import a wallet using your recovery phrase.",
471
+ "title": "Create or Import a Wallet"
472
+ },
473
+ "step3": {
474
+ "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.",
475
+ "title": "Click on Connect"
476
+ }
477
+ }
478
+ },
479
+
480
+ "bybit": {
481
+ "qr_code": {
482
+ "step1": {
483
+ "description": "We recommend putting Bybit on your home screen for faster access to your wallet.",
484
+ "title": "Open the Bybit app"
485
+ },
486
+ "step2": {
487
+ "description": "You can easily backup your wallet using our backup feature on your phone.",
488
+ "title": "Create or Import a Wallet"
489
+ },
490
+ "step3": {
491
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
492
+ "title": "Tap the scan button"
493
+ }
494
+ },
495
+
496
+ "extension": {
497
+ "step1": {
498
+ "description": "Click at the top right of your browser and pin Bybit Wallet for easy access.",
499
+ "title": "Install the Bybit Wallet extension"
500
+ },
501
+ "step2": {
502
+ "description": "Create a new wallet or import an existing one.",
503
+ "title": "Create or Import a wallet"
504
+ },
505
+ "step3": {
506
+ "description": "Once you set up Bybit Wallet, click below to refresh the browser and load up the extension.",
507
+ "title": "Refresh your browser"
508
+ }
509
+ }
510
+ },
511
+
512
+ "binance": {
513
+ "qr_code": {
514
+ "step1": {
515
+ "description": "We recommend putting Binance on your home screen for faster access to your wallet.",
516
+ "title": "Open the Binance app"
517
+ },
518
+ "step2": {
519
+ "description": "You can easily backup your wallet using our backup feature on your phone.",
520
+ "title": "Create or Import a Wallet"
521
+ },
522
+ "step3": {
523
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
524
+ "title": "Tap the WalletConnect button"
525
+ }
526
+ },
527
+ "extension": {
528
+ "step1": {
529
+ "title": "Install the Binance Wallet extension",
530
+ "description": "We recommend pinning Binance Wallet to your taskbar for quicker access to your wallet."
531
+ },
532
+ "step2": {
533
+ "title": "Create or Import a Wallet",
534
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
535
+ },
536
+ "step3": {
537
+ "title": "Refresh your browser",
538
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
539
+ }
540
+ }
541
+ },
542
+
543
+ "coin98": {
544
+ "qr_code": {
545
+ "step1": {
546
+ "description": "We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.",
547
+ "title": "Open the Coin98 Wallet app"
548
+ },
549
+ "step2": {
550
+ "description": "You can easily backup your wallet using our backup feature on your phone.",
551
+ "title": "Create or Import a Wallet"
552
+ },
553
+ "step3": {
554
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
555
+ "title": "Tap the WalletConnect button"
556
+ }
557
+ },
558
+
559
+ "extension": {
560
+ "step1": {
561
+ "description": "Click at the top right of your browser and pin Coin98 Wallet for easy access.",
562
+ "title": "Install the Coin98 Wallet extension"
563
+ },
564
+ "step2": {
565
+ "description": "Create a new wallet or import an existing one.",
566
+ "title": "Create or Import a wallet"
567
+ },
568
+ "step3": {
569
+ "description": "Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.",
570
+ "title": "Refresh your browser"
571
+ }
572
+ }
573
+ },
574
+
575
+ "coinbase": {
576
+ "qr_code": {
577
+ "step1": {
578
+ "description": "We recommend putting Coinbase Wallet on your home screen for quicker access.",
579
+ "title": "Open the Coinbase Wallet app"
580
+ },
581
+ "step2": {
582
+ "description": "You can easily backup your wallet using the cloud backup feature.",
583
+ "title": "Create or Import a Wallet"
584
+ },
585
+ "step3": {
586
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
587
+ "title": "Tap the scan button"
588
+ }
589
+ },
590
+
591
+ "extension": {
592
+ "step1": {
593
+ "description": "We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.",
594
+ "title": "Install the Coinbase Wallet extension"
595
+ },
596
+ "step2": {
597
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
598
+ "title": "Create or Import a Wallet"
599
+ },
600
+ "step3": {
601
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
602
+ "title": "Refresh your browser"
603
+ }
604
+ }
605
+ },
606
+
607
+ "compass": {
608
+ "extension": {
609
+ "step1": {
610
+ "description": "We recommend pinning Compass Wallet to your taskbar for quicker access to your wallet.",
611
+ "title": "Install the Compass Wallet extension"
612
+ },
613
+ "step2": {
614
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
615
+ "title": "Create or Import a Wallet"
616
+ },
617
+ "step3": {
618
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
619
+ "title": "Refresh your browser"
620
+ }
621
+ }
622
+ },
623
+
624
+ "core": {
625
+ "qr_code": {
626
+ "step1": {
627
+ "description": "We recommend putting Core on your home screen for faster access to your wallet.",
628
+ "title": "Open the Core app"
629
+ },
630
+ "step2": {
631
+ "description": "You can easily backup your wallet using our backup feature on your phone.",
632
+ "title": "Create or Import a Wallet"
633
+ },
634
+ "step3": {
635
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
636
+ "title": "Tap the WalletConnect button"
637
+ }
638
+ },
639
+
640
+ "extension": {
641
+ "step1": {
642
+ "description": "We recommend pinning Core to your taskbar for quicker access to your wallet.",
643
+ "title": "Install the Core extension"
644
+ },
645
+ "step2": {
646
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
647
+ "title": "Create or Import a Wallet"
648
+ },
649
+ "step3": {
650
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
651
+ "title": "Refresh your browser"
652
+ }
653
+ }
654
+ },
655
+
656
+ "fox": {
657
+ "qr_code": {
658
+ "step1": {
659
+ "description": "We recommend putting FoxWallet on your home screen for quicker access.",
660
+ "title": "Open the FoxWallet app"
661
+ },
662
+ "step2": {
663
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
664
+ "title": "Create or Import a Wallet"
665
+ },
666
+ "step3": {
667
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
668
+ "title": "Tap the scan button"
669
+ }
670
+ }
671
+ },
672
+
673
+ "frontier": {
674
+ "qr_code": {
675
+ "step1": {
676
+ "description": "We recommend putting Frontier Wallet on your home screen for quicker access.",
677
+ "title": "Open the Frontier Wallet app"
678
+ },
679
+ "step2": {
680
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
681
+ "title": "Create or Import a Wallet"
682
+ },
683
+ "step3": {
684
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
685
+ "title": "Tap the scan button"
686
+ }
687
+ },
688
+
689
+ "extension": {
690
+ "step1": {
691
+ "description": "We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.",
692
+ "title": "Install the Frontier Wallet extension"
693
+ },
694
+ "step2": {
695
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
696
+ "title": "Create or Import a Wallet"
697
+ },
698
+ "step3": {
699
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
700
+ "title": "Refresh your browser"
701
+ }
702
+ }
703
+ },
704
+
705
+ "im_token": {
706
+ "qr_code": {
707
+ "step1": {
708
+ "title": "Open the imToken app",
709
+ "description": "Put imToken app on your home screen for faster access to your wallet."
710
+ },
711
+ "step2": {
712
+ "title": "Create or Import a Wallet",
713
+ "description": "Create a new wallet or import an existing one."
714
+ },
715
+ "step3": {
716
+ "title": "Tap Scanner Icon in top right corner",
717
+ "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
718
+ }
719
+ }
720
+ },
721
+
722
+ "iopay": {
723
+ "qr_code": {
724
+ "step1": {
725
+ "description": "We recommend putting ioPay on your home screen for faster access to your wallet.",
726
+ "title": "Open the ioPay app"
727
+ },
728
+ "step2": {
729
+ "description": "You can easily backup your wallet using our backup feature on your phone.",
730
+ "title": "Create or Import a Wallet"
731
+ },
732
+ "step3": {
733
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
734
+ "title": "Tap the WalletConnect button"
735
+ }
736
+ }
737
+ },
738
+
739
+ "kaikas": {
740
+ "extension": {
741
+ "step1": {
742
+ "description": "We recommend pinning Kaikas to your taskbar for quicker access to your wallet.",
743
+ "title": "Install the Kaikas extension"
744
+ },
745
+ "step2": {
746
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
747
+ "title": "Create or Import a Wallet"
748
+ },
749
+ "step3": {
750
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
751
+ "title": "Refresh your browser"
752
+ }
753
+ },
754
+ "qr_code": {
755
+ "step1": {
756
+ "title": "Open the Kaikas app",
757
+ "description": "Put Kaikas app on your home screen for faster access to your wallet."
758
+ },
759
+ "step2": {
760
+ "title": "Create or Import a Wallet",
761
+ "description": "Create a new wallet or import an existing one."
762
+ },
763
+ "step3": {
764
+ "title": "Tap Scanner Icon in top right corner",
765
+ "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
766
+ }
767
+ }
768
+ },
769
+
770
+ "kaia": {
771
+ "extension": {
772
+ "step1": {
773
+ "description": "We recommend pinning Kaia to your taskbar for quicker access to your wallet.",
774
+ "title": "Install the Kaia extension"
775
+ },
776
+ "step2": {
777
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
778
+ "title": "Create or Import a Wallet"
779
+ },
780
+ "step3": {
781
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
782
+ "title": "Refresh your browser"
783
+ }
784
+ },
785
+ "qr_code": {
786
+ "step1": {
787
+ "title": "Open the Kaia app",
788
+ "description": "Put Kaia app on your home screen for faster access to your wallet."
789
+ },
790
+ "step2": {
791
+ "title": "Create or Import a Wallet",
792
+ "description": "Create a new wallet or import an existing one."
793
+ },
794
+ "step3": {
795
+ "title": "Tap Scanner Icon in top right corner",
796
+ "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
797
+ }
798
+ }
799
+ },
800
+
801
+ "kraken": {
802
+ "qr_code": {
803
+ "step1": {
804
+ "title": "Open the Kraken Wallet app",
805
+ "description": "Add Kraken Wallet to your home screen for faster access to your wallet."
806
+ },
807
+ "step2": {
808
+ "title": "Create or Import a Wallet",
809
+ "description": "Create a new wallet or import an existing one."
810
+ },
811
+ "step3": {
812
+ "title": "Tap the QR icon and scan",
813
+ "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
814
+ }
815
+ }
816
+ },
817
+
818
+ "kresus": {
819
+ "qr_code": {
820
+ "step1": {
821
+ "title": "Open the Kresus Wallet app",
822
+ "description": "Add Kresus Wallet to your home screen for faster access to your wallet."
823
+ },
824
+ "step2": {
825
+ "title": "Create or Import a Wallet",
826
+ "description": "Create a new wallet or import an existing one."
827
+ },
828
+ "step3": {
829
+ "title": "Tap the QR icon and scan",
830
+ "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
831
+ }
832
+ }
833
+ },
834
+
835
+ "magicEden": {
836
+ "extension": {
837
+ "step1": {
838
+ "title": "Install the Magic Eden extension",
839
+ "description": "We recommend pinning Magic Eden to your taskbar for easier access to your wallet."
840
+ },
841
+ "step2": {
842
+ "title": "Create or Import a Wallet",
843
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
844
+ },
845
+ "step3": {
846
+ "title": "Refresh your browser",
847
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
848
+ }
849
+ }
850
+ },
851
+
852
+ "metamask": {
853
+ "qr_code": {
854
+ "step1": {
855
+ "title": "Open the MetaMask app",
856
+ "description": "We recommend putting MetaMask on your home screen for quicker access."
857
+ },
858
+ "step2": {
859
+ "title": "Create or Import a Wallet",
860
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
861
+ },
862
+ "step3": {
863
+ "title": "Tap the scan button",
864
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
865
+ }
866
+ },
867
+
868
+ "extension": {
869
+ "step1": {
870
+ "title": "Install the MetaMask extension",
871
+ "description": "We recommend pinning MetaMask to your taskbar for quicker access to your wallet."
872
+ },
873
+ "step2": {
874
+ "title": "Create or Import a Wallet",
875
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
876
+ },
877
+ "step3": {
878
+ "title": "Refresh your browser",
879
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
880
+ }
881
+ }
882
+ },
883
+
884
+ "nestwallet": {
885
+ "extension": {
886
+ "step1": {
887
+ "title": "Install the NestWallet extension",
888
+ "description": "We recommend pinning NestWallet to your taskbar for quicker access to your wallet."
889
+ },
890
+ "step2": {
891
+ "title": "Create or Import a Wallet",
892
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
893
+ },
894
+ "step3": {
895
+ "title": "Refresh your browser",
896
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
897
+ }
898
+ }
899
+ },
900
+
901
+ "okx": {
902
+ "qr_code": {
903
+ "step1": {
904
+ "title": "Open the OKX Wallet app",
905
+ "description": "We recommend putting OKX Wallet on your home screen for quicker access."
906
+ },
907
+ "step2": {
908
+ "title": "Create or Import a Wallet",
909
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
910
+ },
911
+ "step3": {
912
+ "title": "Tap the scan button",
913
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
914
+ }
915
+ },
916
+
917
+ "extension": {
918
+ "step1": {
919
+ "title": "Install the OKX Wallet extension",
920
+ "description": "We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet."
921
+ },
922
+ "step2": {
923
+ "title": "Create or Import a Wallet",
924
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
925
+ },
926
+ "step3": {
927
+ "title": "Refresh your browser",
928
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
929
+ }
930
+ }
931
+ },
932
+
933
+ "omni": {
934
+ "qr_code": {
935
+ "step1": {
936
+ "title": "Open the Omni app",
937
+ "description": "Add Omni to your home screen for faster access to your wallet."
938
+ },
939
+ "step2": {
940
+ "title": "Create or Import a Wallet",
941
+ "description": "Create a new wallet or import an existing one."
942
+ },
943
+ "step3": {
944
+ "title": "Tap the QR icon and scan",
945
+ "description": "Tap the QR icon on your home screen, scan the code and confirm the prompt to connect."
946
+ }
947
+ }
948
+ },
949
+
950
+ "1inch": {
951
+ "qr_code": {
952
+ "step1": {
953
+ "description": "Put 1inch Wallet on your home screen for faster access to your wallet.",
954
+ "title": "Open the 1inch Wallet app"
955
+ },
956
+ "step2": {
957
+ "description": "Create a wallet and username, or import an existing wallet.",
958
+ "title": "Create or Import a Wallet"
959
+ },
960
+ "step3": {
961
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
962
+ "title": "Tap the Scan QR button"
963
+ }
964
+ }
965
+ },
966
+
967
+ "token_pocket": {
968
+ "qr_code": {
969
+ "step1": {
970
+ "title": "Open the TokenPocket app",
971
+ "description": "We recommend putting TokenPocket on your home screen for quicker access."
972
+ },
973
+ "step2": {
974
+ "title": "Create or Import a Wallet",
975
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
976
+ },
977
+ "step3": {
978
+ "title": "Tap the scan button",
979
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
980
+ }
981
+ },
982
+
983
+ "extension": {
984
+ "step1": {
985
+ "title": "Install the TokenPocket extension",
986
+ "description": "We recommend pinning TokenPocket to your taskbar for quicker access to your wallet."
987
+ },
988
+ "step2": {
989
+ "title": "Create or Import a Wallet",
990
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
991
+ },
992
+ "step3": {
993
+ "title": "Refresh your browser",
994
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
995
+ }
996
+ }
997
+ },
998
+
999
+ "trust": {
1000
+ "qr_code": {
1001
+ "step1": {
1002
+ "title": "Open the Trust Wallet app",
1003
+ "description": "Put Trust Wallet on your home screen for faster access to your wallet."
1004
+ },
1005
+ "step2": {
1006
+ "title": "Create or Import a Wallet",
1007
+ "description": "Create a new wallet or import an existing one."
1008
+ },
1009
+ "step3": {
1010
+ "title": "Tap WalletConnect in Settings",
1011
+ "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
1012
+ }
1013
+ },
1014
+
1015
+ "extension": {
1016
+ "step1": {
1017
+ "title": "Install the Trust Wallet extension",
1018
+ "description": "Click at the top right of your browser and pin Trust Wallet for easy access."
1019
+ },
1020
+ "step2": {
1021
+ "title": "Create or Import a wallet",
1022
+ "description": "Create a new wallet or import an existing one."
1023
+ },
1024
+ "step3": {
1025
+ "title": "Refresh your browser",
1026
+ "description": "Once you set up Trust Wallet, click below to refresh the browser and load up the extension."
1027
+ }
1028
+ }
1029
+ },
1030
+
1031
+ "uniswap": {
1032
+ "qr_code": {
1033
+ "step1": {
1034
+ "title": "Open the Uniswap app",
1035
+ "description": "Add Uniswap Wallet to your home screen for faster access to your wallet."
1036
+ },
1037
+ "step2": {
1038
+ "title": "Create or Import a Wallet",
1039
+ "description": "Create a new wallet or import an existing one."
1040
+ },
1041
+ "step3": {
1042
+ "title": "Tap the QR icon and scan",
1043
+ "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
1044
+ }
1045
+ }
1046
+ },
1047
+
1048
+ "zerion": {
1049
+ "qr_code": {
1050
+ "step1": {
1051
+ "title": "Open the Zerion app",
1052
+ "description": "We recommend putting Zerion on your home screen for quicker access."
1053
+ },
1054
+ "step2": {
1055
+ "title": "Create or Import a Wallet",
1056
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1057
+ },
1058
+ "step3": {
1059
+ "title": "Tap the scan button",
1060
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1061
+ }
1062
+ },
1063
+
1064
+ "extension": {
1065
+ "step1": {
1066
+ "title": "Install the Zerion extension",
1067
+ "description": "We recommend pinning Zerion to your taskbar for quicker access to your wallet."
1068
+ },
1069
+ "step2": {
1070
+ "title": "Create or Import a Wallet",
1071
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1072
+ },
1073
+ "step3": {
1074
+ "title": "Refresh your browser",
1075
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1076
+ }
1077
+ }
1078
+ },
1079
+
1080
+ "rainbow": {
1081
+ "qr_code": {
1082
+ "step1": {
1083
+ "title": "Open the Rainbow app",
1084
+ "description": "We recommend putting Rainbow on your home screen for faster access to your wallet."
1085
+ },
1086
+ "step2": {
1087
+ "title": "Create or Import a Wallet",
1088
+ "description": "You can easily backup your wallet using our backup feature on your phone."
1089
+ },
1090
+ "step3": {
1091
+ "title": "Tap the scan button",
1092
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1093
+ }
1094
+ }
1095
+ },
1096
+
1097
+ "enkrypt": {
1098
+ "extension": {
1099
+ "step1": {
1100
+ "description": "We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.",
1101
+ "title": "Install the Enkrypt Wallet extension"
1102
+ },
1103
+ "step2": {
1104
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
1105
+ "title": "Create or Import a Wallet"
1106
+ },
1107
+ "step3": {
1108
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
1109
+ "title": "Refresh your browser"
1110
+ }
1111
+ }
1112
+ },
1113
+
1114
+ "frame": {
1115
+ "extension": {
1116
+ "step1": {
1117
+ "description": "We recommend pinning Frame to your taskbar for quicker access to your wallet.",
1118
+ "title": "Install Frame & the companion extension"
1119
+ },
1120
+ "step2": {
1121
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
1122
+ "title": "Create or Import a Wallet"
1123
+ },
1124
+ "step3": {
1125
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
1126
+ "title": "Refresh your browser"
1127
+ }
1128
+ }
1129
+ },
1130
+
1131
+ "one_key": {
1132
+ "extension": {
1133
+ "step1": {
1134
+ "title": "Install the OneKey Wallet extension",
1135
+ "description": "We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet."
1136
+ },
1137
+ "step2": {
1138
+ "title": "Create or Import a Wallet",
1139
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1140
+ },
1141
+ "step3": {
1142
+ "title": "Refresh your browser",
1143
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1144
+ }
1145
+ }
1146
+ },
1147
+
1148
+ "paraswap": {
1149
+ "qr_code": {
1150
+ "step1": {
1151
+ "title": "Open the ParaSwap app",
1152
+ "description": "Add ParaSwap Wallet to your home screen for faster access to your wallet."
1153
+ },
1154
+ "step2": {
1155
+ "title": "Create or Import a Wallet",
1156
+ "description": "Create a new wallet or import an existing one."
1157
+ },
1158
+ "step3": {
1159
+ "title": "Tap the QR icon and scan",
1160
+ "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
1161
+ }
1162
+ }
1163
+ },
1164
+
1165
+ "phantom": {
1166
+ "extension": {
1167
+ "step1": {
1168
+ "title": "Install the Phantom extension",
1169
+ "description": "We recommend pinning Phantom to your taskbar for easier access to your wallet."
1170
+ },
1171
+ "step2": {
1172
+ "title": "Create or Import a Wallet",
1173
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
1174
+ },
1175
+ "step3": {
1176
+ "title": "Refresh your browser",
1177
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1178
+ }
1179
+ }
1180
+ },
1181
+
1182
+ "rabby": {
1183
+ "extension": {
1184
+ "step1": {
1185
+ "title": "Install the Rabby extension",
1186
+ "description": "We recommend pinning Rabby to your taskbar for quicker access to your wallet."
1187
+ },
1188
+ "step2": {
1189
+ "title": "Create or Import a Wallet",
1190
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1191
+ },
1192
+ "step3": {
1193
+ "title": "Refresh your browser",
1194
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1195
+ }
1196
+ }
1197
+ },
1198
+
1199
+ "ronin": {
1200
+ "qr_code": {
1201
+ "step1": {
1202
+ "description": "We recommend putting Ronin Wallet on your home screen for quicker access.",
1203
+ "title": "Open the Ronin Wallet app"
1204
+ },
1205
+ "step2": {
1206
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
1207
+ "title": "Create or Import a Wallet"
1208
+ },
1209
+ "step3": {
1210
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
1211
+ "title": "Tap the scan button"
1212
+ }
1213
+ },
1214
+
1215
+ "extension": {
1216
+ "step1": {
1217
+ "description": "We recommend pinning Ronin Wallet to your taskbar for quicker access to your wallet.",
1218
+ "title": "Install the Ronin Wallet extension"
1219
+ },
1220
+ "step2": {
1221
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",
1222
+ "title": "Create or Import a Wallet"
1223
+ },
1224
+ "step3": {
1225
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",
1226
+ "title": "Refresh your browser"
1227
+ }
1228
+ }
1229
+ },
1230
+
1231
+ "ramper": {
1232
+ "extension": {
1233
+ "step1": {
1234
+ "title": "Install the Ramper extension",
1235
+ "description": "We recommend pinning Ramper to your taskbar for easier access to your wallet."
1236
+ },
1237
+ "step2": {
1238
+ "title": "Create a Wallet",
1239
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1240
+ },
1241
+ "step3": {
1242
+ "title": "Refresh your browser",
1243
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1244
+ }
1245
+ }
1246
+ },
1247
+
1248
+ "safeheron": {
1249
+ "extension": {
1250
+ "step1": {
1251
+ "title": "Install the Core extension",
1252
+ "description": "We recommend pinning Safeheron to your taskbar for quicker access to your wallet."
1253
+ },
1254
+ "step2": {
1255
+ "title": "Create or Import a Wallet",
1256
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1257
+ },
1258
+ "step3": {
1259
+ "title": "Refresh your browser",
1260
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1261
+ }
1262
+ }
1263
+ },
1264
+
1265
+ "taho": {
1266
+ "extension": {
1267
+ "step1": {
1268
+ "title": "Install the Taho extension",
1269
+ "description": "We recommend pinning Taho to your taskbar for quicker access to your wallet."
1270
+ },
1271
+ "step2": {
1272
+ "title": "Create or Import a Wallet",
1273
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1274
+ },
1275
+ "step3": {
1276
+ "title": "Refresh your browser",
1277
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1278
+ }
1279
+ }
1280
+ },
1281
+
1282
+ "wigwam": {
1283
+ "extension": {
1284
+ "step1": {
1285
+ "title": "Install the Wigwam extension",
1286
+ "description": "We recommend pinning Wigwam to your taskbar for quicker access to your wallet."
1287
+ },
1288
+ "step2": {
1289
+ "title": "Create or Import a Wallet",
1290
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1291
+ },
1292
+ "step3": {
1293
+ "title": "Refresh your browser",
1294
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1295
+ }
1296
+ }
1297
+ },
1298
+
1299
+ "talisman": {
1300
+ "extension": {
1301
+ "step1": {
1302
+ "title": "Install the Talisman extension",
1303
+ "description": "We recommend pinning Talisman to your taskbar for quicker access to your wallet."
1304
+ },
1305
+ "step2": {
1306
+ "title": "Create or Import an Ethereum Wallet",
1307
+ "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."
1308
+ },
1309
+ "step3": {
1310
+ "title": "Refresh your browser",
1311
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1312
+ }
1313
+ }
1314
+ },
1315
+
1316
+ "ctrl": {
1317
+ "extension": {
1318
+ "step1": {
1319
+ "title": "Install the CTRL Wallet extension",
1320
+ "description": "We recommend pinning CTRL Wallet to your taskbar for quicker access to your wallet."
1321
+ },
1322
+ "step2": {
1323
+ "title": "Create or Import a Wallet",
1324
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1325
+ },
1326
+ "step3": {
1327
+ "title": "Refresh your browser",
1328
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1329
+ }
1330
+ }
1331
+ },
1332
+
1333
+ "zeal": {
1334
+ "qr_code": {
1335
+ "step1": {
1336
+ "title": "Open the Zeal app",
1337
+ "description": "Add Zeal Wallet to your home screen for faster access to your wallet."
1338
+ },
1339
+ "step2": {
1340
+ "title": "Create or Import a Wallet",
1341
+ "description": "Create a new wallet or import an existing one."
1342
+ },
1343
+ "step3": {
1344
+ "title": "Tap the QR icon and scan",
1345
+ "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."
1346
+ }
1347
+ },
1348
+ "extension": {
1349
+ "step1": {
1350
+ "title": "Install the Zeal extension",
1351
+ "description": "We recommend pinning Zeal to your taskbar for quicker access to your wallet."
1352
+ },
1353
+ "step2": {
1354
+ "title": "Create or Import a Wallet",
1355
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1356
+ },
1357
+ "step3": {
1358
+ "title": "Refresh your browser",
1359
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1360
+ }
1361
+ }
1362
+ },
1363
+
1364
+ "safepal": {
1365
+ "extension": {
1366
+ "step1": {
1367
+ "title": "Install the SafePal Wallet extension",
1368
+ "description": "Click at the top right of your browser and pin SafePal Wallet for easy access."
1369
+ },
1370
+ "step2": {
1371
+ "title": "Create or Import a wallet",
1372
+ "description": "Create a new wallet or import an existing one."
1373
+ },
1374
+ "step3": {
1375
+ "title": "Refresh your browser",
1376
+ "description": "Once you set up SafePal Wallet, click below to refresh the browser and load up the extension."
1377
+ }
1378
+ },
1379
+ "qr_code": {
1380
+ "step1": {
1381
+ "title": "Open the SafePal Wallet app",
1382
+ "description": "Put SafePal Wallet on your home screen for faster access to your wallet."
1383
+ },
1384
+ "step2": {
1385
+ "title": "Create or Import a Wallet",
1386
+ "description": "Create a new wallet or import an existing one."
1387
+ },
1388
+ "step3": {
1389
+ "title": "Tap WalletConnect in Settings",
1390
+ "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."
1391
+ }
1392
+ }
1393
+ },
1394
+
1395
+ "desig": {
1396
+ "extension": {
1397
+ "step1": {
1398
+ "title": "Install the Desig extension",
1399
+ "description": "We recommend pinning Desig to your taskbar for easier access to your wallet."
1400
+ },
1401
+ "step2": {
1402
+ "title": "Create a Wallet",
1403
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1404
+ },
1405
+ "step3": {
1406
+ "title": "Refresh your browser",
1407
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1408
+ }
1409
+ }
1410
+ },
1411
+
1412
+ "subwallet": {
1413
+ "extension": {
1414
+ "step1": {
1415
+ "title": "Install the SubWallet extension",
1416
+ "description": "We recommend pinning SubWallet to your taskbar for quicker access to your wallet."
1417
+ },
1418
+ "step2": {
1419
+ "title": "Create or Import a Wallet",
1420
+ "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."
1421
+ },
1422
+ "step3": {
1423
+ "title": "Refresh your browser",
1424
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1425
+ }
1426
+ },
1427
+ "qr_code": {
1428
+ "step1": {
1429
+ "title": "Open the SubWallet app",
1430
+ "description": "We recommend putting SubWallet on your home screen for quicker access."
1431
+ },
1432
+ "step2": {
1433
+ "title": "Create or Import a Wallet",
1434
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1435
+ },
1436
+ "step3": {
1437
+ "title": "Tap the scan button",
1438
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1439
+ }
1440
+ }
1441
+ },
1442
+
1443
+ "clv": {
1444
+ "extension": {
1445
+ "step1": {
1446
+ "title": "Install the CLV Wallet extension",
1447
+ "description": "We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet."
1448
+ },
1449
+ "step2": {
1450
+ "title": "Create or Import a Wallet",
1451
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1452
+ },
1453
+ "step3": {
1454
+ "title": "Refresh your browser",
1455
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1456
+ }
1457
+ },
1458
+ "qr_code": {
1459
+ "step1": {
1460
+ "title": "Open the CLV Wallet app",
1461
+ "description": "We recommend putting CLV Wallet on your home screen for quicker access."
1462
+ },
1463
+ "step2": {
1464
+ "title": "Create or Import a Wallet",
1465
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."
1466
+ },
1467
+ "step3": {
1468
+ "title": "Tap the scan button",
1469
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1470
+ }
1471
+ }
1472
+ },
1473
+
1474
+ "okto": {
1475
+ "qr_code": {
1476
+ "step1": {
1477
+ "title": "Open the Okto app",
1478
+ "description": "Add Okto to your home screen for quick access"
1479
+ },
1480
+ "step2": {
1481
+ "title": "Create an MPC Wallet",
1482
+ "description": "Create an account and generate a wallet"
1483
+ },
1484
+ "step3": {
1485
+ "title": "Tap WalletConnect in Settings",
1486
+ "description": "Tap the Scan QR icon at the top right and confirm the prompt to connect."
1487
+ }
1488
+ }
1489
+ },
1490
+
1491
+ "ledger": {
1492
+ "desktop": {
1493
+ "step1": {
1494
+ "title": "Open the Ledger Live app",
1495
+ "description": "We recommend putting Ledger Live on your home screen for quicker access."
1496
+ },
1497
+ "step2": {
1498
+ "title": "Set up your Ledger",
1499
+ "description": "Set up a new Ledger or connect to an existing one."
1500
+ },
1501
+ "step3": {
1502
+ "title": "Connect",
1503
+ "description": "A connection prompt will appear for you to connect your wallet."
1504
+ }
1505
+ },
1506
+ "qr_code": {
1507
+ "step1": {
1508
+ "title": "Open the Ledger Live app",
1509
+ "description": "We recommend putting Ledger Live on your home screen for quicker access."
1510
+ },
1511
+ "step2": {
1512
+ "title": "Set up your Ledger",
1513
+ "description": "You can either sync with the desktop app or connect your Ledger."
1514
+ },
1515
+ "step3": {
1516
+ "title": "Scan the code",
1517
+ "description": "Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet."
1518
+ }
1519
+ }
1520
+ },
1521
+
1522
+ "valora": {
1523
+ "qr_code": {
1524
+ "step1": {
1525
+ "title": "Open the Valora app",
1526
+ "description": "We recommend putting Valora on your home screen for quicker access."
1527
+ },
1528
+ "step2": {
1529
+ "title": "Create or import a wallet",
1530
+ "description": "Create a new wallet or import an existing one."
1531
+ },
1532
+ "step3": {
1533
+ "title": "Tap the scan button",
1534
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1535
+ }
1536
+ }
1537
+ },
1538
+
1539
+ "gate": {
1540
+ "qr_code": {
1541
+ "step1": {
1542
+ "title": "Open the Gate app",
1543
+ "description": "We recommend putting Gate on your home screen for quicker access."
1544
+ },
1545
+ "step2": {
1546
+ "title": "Create or Import a Wallet",
1547
+ "description": "Create a new wallet or import an existing one."
1548
+ },
1549
+ "step3": {
1550
+ "title": "Tap the scan button",
1551
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1552
+ }
1553
+ },
1554
+ "extension": {
1555
+ "step1": {
1556
+ "title": "Install the Gate extension",
1557
+ "description": "We recommend pinning Gate to your taskbar for easier access to your wallet."
1558
+ },
1559
+ "step2": {
1560
+ "title": "Create or Import a Wallet",
1561
+ "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."
1562
+ },
1563
+ "step3": {
1564
+ "title": "Refresh your browser",
1565
+ "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."
1566
+ }
1567
+ }
1568
+ },
1569
+
1570
+ "gemini": {
1571
+ "qr_code": {
1572
+ "step1": {
1573
+ "title": "Open keys.gemini.com",
1574
+ "description": "Visit keys.gemini.com on your mobile browser - no app download required."
1575
+ },
1576
+ "step2": {
1577
+ "title": "Create Your Wallet Instantly",
1578
+ "description": "Set up your smart wallet in seconds using your device's built-in authentication."
1579
+ },
1580
+ "step3": {
1581
+ "title": "Scan to Connect",
1582
+ "description": "Scan the QR code to instantly connect your wallet - it just works."
1583
+ }
1584
+ },
1585
+ "extension": {
1586
+ "step1": {
1587
+ "title": "Go to keys.gemini.com",
1588
+ "description": "No extensions or downloads needed - your wallet lives securely in the browser."
1589
+ },
1590
+ "step2": {
1591
+ "title": "One-Click Setup",
1592
+ "description": "Create your smart wallet instantly with passkey authentication - easier than any wallet out there."
1593
+ },
1594
+ "step3": {
1595
+ "title": "Connect and Go",
1596
+ "description": "Approve the connection and you're ready - the unopinionated wallet that just works."
1597
+ }
1598
+ }
1599
+ },
1600
+
1601
+ "xportal": {
1602
+ "qr_code": {
1603
+ "step1": {
1604
+ "description": "Put xPortal on your home screen for faster access to your wallet.",
1605
+ "title": "Open the xPortal app"
1606
+ },
1607
+ "step2": {
1608
+ "description": "Create a wallet or import an existing one.",
1609
+ "title": "Create or Import a Wallet"
1610
+ },
1611
+ "step3": {
1612
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
1613
+ "title": "Tap the Scan QR button"
1614
+ }
1615
+ }
1616
+ },
1617
+
1618
+ "mew": {
1619
+ "qr_code": {
1620
+ "step1": {
1621
+ "description": "We recommend putting MEW Wallet on your home screen for quicker access.",
1622
+ "title": "Open the MEW Wallet app"
1623
+ },
1624
+ "step2": {
1625
+ "description": "You can easily backup your wallet using the cloud backup feature.",
1626
+ "title": "Create or Import a Wallet"
1627
+ },
1628
+ "step3": {
1629
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet.",
1630
+ "title": "Tap the scan button"
1631
+ }
1632
+ }
1633
+ },
1634
+
1635
+ "zilpay": {
1636
+ "qr_code": {
1637
+ "step1": {
1638
+ "title": "Open the ZilPay app",
1639
+ "description": "Add ZilPay to your home screen for faster access to your wallet."
1640
+ },
1641
+ "step2": {
1642
+ "title": "Create or Import a Wallet",
1643
+ "description": "Create a new wallet or import an existing one."
1644
+ },
1645
+ "step3": {
1646
+ "title": "Tap the scan button",
1647
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1648
+ }
1649
+ }
1650
+ },
1651
+
1652
+ "nova": {
1653
+ "qr_code": {
1654
+ "step1": {
1655
+ "title": "Open the Nova Wallet app",
1656
+ "description": "Add Nova Wallet to your home screen for faster access to your wallet."
1657
+ },
1658
+ "step2": {
1659
+ "title": "Create or Import a Wallet",
1660
+ "description": "Create a new wallet or import an existing one."
1661
+ },
1662
+ "step3": {
1663
+ "title": "Tap the scan button",
1664
+ "description": "After you scan, a connection prompt will appear for you to connect your wallet."
1665
+ }
1666
+ }
1667
+ }
1668
+ }
1669
+ }
1670
+ `;function GB(e,t){return Object.defineProperty(e,"__recipe__",{value:t,writable:!1}),e}var a3=GB;function c3(e){var{conditions:t}=e;if(!t)throw new Error("Styles have no conditions");function n(r){if(typeof r=="string"||typeof r=="number"||typeof r=="boolean"){if(!t.defaultCondition)throw new Error("No default condition");return{[t.defaultCondition]:r}}if(Array.isArray(r)){if(!("responsiveArray"in t))throw new Error("Responsive arrays are not supported");var i={};for(var a in t.responsiveArray)r[a]!=null&&(i[t.responsiveArray[a]]=r[a]);return i}return r}return a3(n,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:e.conditions}]})}function KB(e){var{conditions:t}=e;if(!t)throw new Error("Styles have no conditions");var n=c3(e);function r(i,a){if(typeof i=="string"||typeof i=="number"||typeof i=="boolean"){if(!t.defaultCondition)throw new Error("No default condition");return a(i,t.defaultCondition)}var c=Array.isArray(i)?n(i):i,u={};for(var d in c)c[d]!=null&&(u[d]=a(c[d],d));return u}return a3(r,{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:e.conditions}]})}function YB(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JB(e){var t=YB(e,"string");return typeof t=="symbol"?t:String(t)}function ZB(e,t,n){return t=JB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fw(Object(n),!0).forEach(function(r){ZB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var XB=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Object.assign({},...n.map(d=>d.styles)),a=Object.keys(i),c=a.filter(d=>"mappings"in i[d]),u=d=>{var f=[],p={},g=xh({},d),m=!1;for(var y of c){var w=d[y];if(w!=null){var b=i[y];m=!0;for(var C of b.mappings)p[C]=w,g[C]==null&&delete g[C]}}var A=m?xh(xh({},p),g):d,I=function(){var j=A[k],P=i[k];try{if(P.mappings)return 1;if(typeof j=="string"||typeof j=="number")f.push(P.values[j].defaultClass);else if(Array.isArray(j))for(var _=0;_<j.length;_++){var T=j[_];if(T!=null){var D=P.responsiveArray[_];f.push(P.values[T].conditions[D])}}else for(var Q in j){var H=j[Q];H!=null&&f.push(P.values[H].conditions[Q])}}catch(Z){throw Z}};for(var k in A)I();return e(f.join(" "))};return Object.assign(u,{properties:new Set(a)})},e_=e=>e,t_=function(){return XB(e_)(...arguments)};function l3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=l3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function u3(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=l3(e))&&(r&&(r+=" "),r+=t);return r}var n_="AEkVMQnvDV0B0wKWAQYBQgDpATQAoQDcAIUApwBsAOMAcACTAEUAigBRAHkAPgA/ACwANwAoAGIAHgAvACsAJQAXAC8AHAAhACIALwAVACsAEQAiAAsAGwARABgAFwA7ACoAKwAsADQAFgAtABIAHAAhAA4AHQAdABUAFgAZAA0ADgAXABAAGQAUABIEtAYQASIUOjfDBdMAsQCuPwFnAKUBA10jAK5/Ly8vLwE/pwUJ6/0HPwbkMQVXBVgAPSs5APa2EQbIwQuUCkEDyJ4zAsUKLwKOoQKG2D+Ob4kCxcsCg/IBH98JAPKtAUECLY0KP48A4wDiChUAF9S5yAwLPZ0EG3cA/QI5GL0P6wkGKekFBIFnDRsHLQCrAGmR76WcfwBbBpMjBukAGwA7DJMAWxVbqft7uycM2yDPCLspA7EUOwD3LWujAKF9GAAXBCXXFgEdALkZzQT6CSBMNwmXCYgeG1ZZTOODQgATAAwAFQAOa1QAIQAOAEfuFdg98zlYypXmLgoQHV9NWD3sABMADAAVAA5rIFxAlwDD6wAbADkMxQAbFVup+3EB224cHQVbBeIC0J8CxLAKTBykZRRzGm1M9QC7DWcC4QALLTSJF8mRAoF7ARMbAL0NZwLhAAstAUhQJZFMCgMt+wUyCddpF60B10MASSsSdwIxFiEC6ye5N2sAOeEB9SUAxw7LtQEbY4EAsQUABQCK00kFG8MfBxcAqCfRAaErLQObAGcBChk+7Td0BBgXAKoBxwIhANMrEnM681CwBZA6dyc1SAX6JwVZBVivuAVpO11CEjpYQZd7k2ZfofgLEwPFByXxdyMEo0sCU1MCdRurJwGPo6U1WwNFFwSDYQkA0QarPy8jBykCOV0AawFhH3EAgx0ZAJUBSbcAJ2kXAa/FAzctIUNTAW9ZBmUCZQDxSRcDKQEFAElBAKsAXQBzACu1Bgfz7xmNfwAJIQApALMbRwHRAdsHCzGXeIHoAAoAEQA0AD0AODN3edPAEF8QXAFNCUxsOhULAqwPpgvlERUM0SrL09gANKkH6wNTB+sDUwNTB+sH6wNTB+sDUwNTA1MDUxwK8BrTwBBfD0gEbQWOBYsE1giDJkkRgQcoCNJUDXQeHEcDRQD8IyVJHDuTMwslQkwMTQMH/DZCbKd9OANHMatU9ZCiA8syTzlsAR5xEqAAKg9zHDW1Tn56R3GgCktPrrV/SWJOZwK+Oqg/+AohCZNvu3dOBj0QFyehEPMMLwGxATcN6UvUBO0GNwTFH3kZFQ/JlZgIoS3ZDOkm3y6dgFYj8Sp/BelL8DzZC0lRZA9VC2EJ3zpfgUoDHQEJIocK2Q01CGkQ7wrFZw3hEUEHNQPRSZYAoQb9Cw0dMRWxJgxiqAsFOXMG9xryC4smqxMlevgFzxodBkkBJRr7AMsu44WsWi1cGE9bBf8LISPDFKRQHA0hQLN4RBoXBxElpQKNQ2xKg1EyHo8h8jw5DWIuD1F4B/E8ARlLC308mkanRQoRzj6JPUQiRUwoBDF7LCsnhwnLD4EMtXxuAVUJHQmtDG0TLRETN8EINQcVKZcgJxEIHUaRYJYE85sD7xPNAwcFOwk9Bw8DsRwpEyoVJQUJgSDTAu820S6vAotWfAETBccPIR/bEExH3A7lCJcCYQN/JecAKRUdABMilwg/XwBbj9RTAS7HCMNqaCNwA2MU410RbweNDlMHoxwvFbsc3XDEXgeGBCifqwlXAXEJlQFbBN8IBTVXjJwgPWdPi1QYlyBdQTtd+AItDGEVm0S5h3QChw9nEhcBMQFvBzUM/QJzEekRZxCRCOeGADWxM/Q6IQRLIX8gDQojA0tsygsjJvUM9GUBnxJeAwg0OXfqZ6dgsiAX+QcVMsFBXCHtC45PyQyYGr0YPlQqGeAHuwPvGu8n5kFTBfsDnw86STPqBLkLZQiHCTsARQ6fEwfTGGYKbYzMAS2HAbOVA1ONfwJriwYzBwcAYweDBXXhABkCowifAAEAywNTADUCqQeZABUAgT0BOQMjKwEd4QKLA48ILccBkSsB7yUEF78MEQDzM25GAsOtAoBmZp4F2VQCigJFMQFJIQQBSkNNA6tt3QDXAEcGD9tDARGnRscW3z8B22snAMMA9wABMQcBPQHJAe9pALMBWwstCZ6vsQFJ5SUAfwARZwHTAoUA2QAxAHvtAU8ASQVV9QXPAktFAQ0tFCdTXQG3AxsBLwEJAHUGx4mhxQMbBGkHzwIQFxXdAu8qB7EDItsTyULBAr3aUQAyEgo0CrUKtB9f81wvAi1uPUwACh+kPsM/SgVNO087VDtPO1Q7TztUO087VDtPO1QDk7veu94KaF9BYecMog3QRMQ6RRPXYE1gLhPELbMUvRXKJVIZORq4JwEl4FUFDwAtz2YsCCg0cRe4ADspZIM9Y4IeLApHHONTjVT0LRcArUueM6sNqBsRRDwFQ3XpYiYWCgoeAmR9AmI+V0mrVzccAqHzAmiUAmYFAp+AOBcHAmY3AmYiBGoEewN/DwN+jjkCOXMTOX46Hx8CbBkCMjI4BgJtwwJtquuGL2NBJwFjANoA3QBGAQeUDIkA+ge+AAmxAncrAnaeOwJ5Rz8CeLYZWNdFqkbTAnw7AnrEAn0FAnzsBVUFHEf8SHlfIAAnEUlUSlcRE0rIAtD9AtDISyMDiEsDh+JEwZEuAvKdXP8DA6pLykwpIctNSE2rAos7AorUvRcDGT9jAbMCjjMCjlg8k30CjtUCjlh0UbBTMQZS0FSBApP3ApMIAOUAGFUaVatVzAIsFymRgjLdeGJFNzUCl5sC765YHaQAVSEClosClniYAKVZqFoFfUkANwKWsQKWSlxAXM0CmccCmWBcxl0DFQKclzm+OpkCnBICn5cCnrSGABkLLSYLAp3tAp6OALE5YTBh6wKezwKgagGlAp6bGwKeSqFjxGQjIScCJ6sCJnoCoPcCoEgCotkCocACpisCpcoCp/sAeQKn7mh4aK3/RWoYas0CrN8CrKoCrWMCrP4CVxkCVdgCsd3TAx9KbJMCsrkJArLkE2zcbV9tRFsDJckCtlg3O26MAylBArhaArlDEQK5JnNwMnDdAr0VArvWcJIDMg0CvoRx/gMzbQK+FnMec0sCw8cCwwBzfnRHMUF03AM8owM8lgM9uwLFeALGQwLGDIUCyGVNAshAAslLAskqAmSZAt3OeHVdeKp5IUvMAxifZv4CYfAZ75Ugewdejl63DQLPZwLPaCtHT87vD5sAwqkCz28BJeYDTg5+RwEC3CMC24YC0ksDUlgDU1sA/QNViICFO8cS6VxBghiCz4LKg4kC2sMC2dqEDIRFpzgDhqEAKwNkCoZtVfUAUQLfYQLetG9zAuIr7RAB8ywjAfSXAfLOgwLr7wLpbHUC6vUC6uAA9UMBtQLuhQLrmJamlv8C7jsDhdyYdXDccZ0C8v8AZQOOEpmPAvcPA5FqA5KDAveUAvnVAvhimhiap7czmxoDnX8C/vYBFwA1nxifrwMFiQOmZgOm1QDNwQMGZqGEogEFAwxFAQsBGwdpBl21YwEAtwRnuw2HHq8JABNxNQAfAy8SSQOFewFfIx0AjOsAHQDmnwObjQizBhufwQCnBRG76R09PhZ4BWg3PkArQiFCtF9xEV+8AJbFBTIAkEwZm7k7JmAyEbrPDi8YxhiJyfYFVwVYBVcFWAVjBVgFVwVYBVcFWAVXBVgFVwVYRhUI14VnAgICCmRe6SsEyQOxBi+7uwC7BKe7AOdAKRayBUY+aT5wQj9Ctl91N1/oAFgRM6sAjP7Ma8v8pudGej0mIwQrFic2NX5t32rB8RnCLGkBa9duMBcFXwVqycHJuAjPSVsAAAAKfF59i74AMz+BAAMW0QblrSMFAIzDCwMBDQDlZR09JB9KQrFCvEE4I18nYDYnOCMJwT0KRD9DPng+gT5wPnECiUK8SUI7X8tOT2pNCixrVC9qC24fX+AzOhsJZ5sKYiMrPB0mQqtCvCvMAcv8X8kOHy4JCAkifp3fajotShfJq8msCWXBy8wKYEFfD+UQoxEAk40dRUIlG6ltOc44CjM/Qz5wQj8cBwodTEdsWywtWuG8Egp97R0rQj8cXQhKCQ4zVENCNwQ7Q5wsCoEbLUI/G/UIUyIjGDAxAAWPYfBeCnFkyWALYC0jbkNgGTkCGx5gswYCaxBlTmBNEQFk52AVYJVgfWCzYEtgkWgWFwa1DtxVqbxaC0MWqwG7K83BAh8VABwDHgF5AmwvMJVSgAGKCrhHGgDkI3SOCsoNpk3qAZsCh5xPBUBfAPf3BwA0FlcMC6UMJB+6r0eAgQw0ABUTnyuCCHoC0gtLZREbANhOBnUECh5aADEAtritAJQnCxZvqyQ4nxkBWwGGCfwD2e0PBqoGSga5AB3LValaCbthE4kLLT8OuwG7ASICR1ooKCggHh8hLBImBiEMjQBUAm5XkEmVAW4fD3FHAdN1D85RIBmpsE3qBxEFTF8A9/cHAHoGJGwKKwulODAtx69WDQsAX7wLAGNAlQh6AOpN7yIbvwAxALa4rQCUJy07Ds4CkBh7ULtYyHRyjsOlmw/ZFUkb7AEpEFwSBh/lAccJOhCTBQ8rDDYLABEAs+AiAQIApADhAJiCCrJrOS8AFABbG8YubHYqDcEQAjskHNPhHB4LG30CewTBCqrxbAAnLQ6mLs6hHAe7CQAQOg+7GkcczaF3HgE9Kl8cLs4RGQB9q9ocAuugCAHCAULz5B9lAb4Jtwz6CDwKPgAFwAs9AksNuwi8DTwKvAk8DrsFmAEbawouzqEqD4sa4QHDAREWOwCgCzsLuxC7BBiqe9wAO2sMPAACpgm8BRvQ9QUBvgH6bsoGewG7D00RErwBAQDqAQAAdBVbBhbLFPxvF7sYOxjbL7ZtvgNIqLsAB7sALrsC6w5WAAq7BAAeuwJVICp/FTwVuwG+J+QAsloBvSjgo7vIAAFbAAG7AAJbAALjAAg7AA67AgAbu6VbDr/EAPQAaPuoOwMBu5UnSwDn3Rm7CBp7CKEFCv9wAN+7p7sau6OLeXIG+6mbgwASuwYbCwG8AACGAG27BgALu6c7ARo7ugihnMoBuwvtB8CpOwDhewG/AADlABW7AAb7AAm7AGmLABq7GLuOaRX7AA5rAC5LHgAGuwAXuwghAA1KAcIAt68mAcAAALQADpsAHBsBv/7hCqEABcYLFRXbAAebAEK7AQIAabsAC3sAHbsACLsJoQAFygBunxnVAJEIIQAFygABOwAH2wAdmwghAAaaAAl7ABsrAG0bAOa7gAAIWwAUuwkhAAbKAOOLAAk7C6EOxPtfAAc7AG6cQEgARwADOwAJrQM3AAcbABl7Abv/Aab7AAobAAo7AAn7p+sGuwAJGwADCwAQOwAIPAAUOwARawAPiwAN6wANuwAZCwYWGwAVOwBumxm7ALobLgATOwMAaSsKAOFLAAI7AARSABd7BRsABtAAGLsAC/sAX7sAa/sA5IsBuwAXdgG8AAFyC6EABUoAbXYAB/sA5XsAHGseAXsoUgA5RQD+Bw0McgAoKnABpAUIXgG8XiMMCQdvS2xfKokfPBRiLTYDoQq0AdgAFgLRA24BdnJHUhQhA08CFT4BLAYDc0a8e1J6QAApADEB+wBTCtsAe5AsASsAduUNETJGAUoAVwUAAVABB4rMAHg7BCClAFoA1hUAlWg3H4sAzWuxAM/UFgjCdXMbGFYdCdEBiJCrIlNTTUgSPMKJ+QB/HDdAKSvgEZdPAHIBKSwwKUIZDwMwVQT3xe4AS2XcAGoCcQI/EXo6x3guNdUGBQAQGx0KCAwqBB8dKU5TTgi5ugAKEs0AJgABGgCGAIkAjjUA7gC0AOAAnTwAuwCrAKYAoQDyAJ8A0wCcAOsBDAEHAMAAeQBaAMsAzQEHANcA6wCIAKIBNQDjANgA1QMBByoz1NTU1LbA3M3QzkMyFwFNAVcvRwFVAWQBYwFWAUdLQ0VoDQFOFQcIAzI2DAcAIg0kJiksODo6PT09Pj8OQB5RUVFRU1NSUylUVVdWVhxdYWFgYmEjZmhwb3JycnJycnR0dHR0dHR0dHR0dnZ3dnVbAEDsAEUAlgB0AC4AYvIAigBTAFMAMwJz6QCH//LyAGAAj+wAmwBLAF4AYPn5qgCBAIEAZQBSAK0AHgCyAH8CPAI/APgA4wD6APoA5AD7AOUA5QDkAOIAKQJ3AU0BPAE6AVABOgE6AToBNQE0ATQBNAEYAVQPACsIAABNFwoWAxUWDgCKAJIAogBLAGQYAi0AcABpAJEDEgMkKgMeQT5HKQCLAksAwwJTAqAAugKSApICkgKSApICkgKHApICkgKSApICkgKSApECkQKUApwCkwKSApICkAKQApACkAKOApECcQHQApMCmwKSApICkRZ5CwD6BQOnAl0CNhcBUBA1At4RCisTAUo3E02RAXekPAFlWQD/Az1HAQAAkykeGI9qAClgAGkALgCJA5TMi/CuhFoFuisOwhEBndV0KgsEIzFsATNabAGyAN5+gH9+gH6BgoJ+g4aEfoWIhoCHgoiCiX6Kfot+jIqNfo5+j4KQfpF+kn6TfpSDlYiWgpd+2gLabOEC2GwAgmwkbKAAg2xsBEkERgRIBEsESQRPBEwERwRNBE8ETgRKBEwETwCWZmwAowOIbAC0ZgEFbADJUWxsAM9sAgxsAPZabAD2ARkA9gD0APQA9QD0A31ebNSEI2XAAPYA9AD0APUA9BxsbACJWmwA9gCJARkA9gCJAL4A6AAIAPYAiQN9XmzUhCNlwBxsAPdabAEZAPYA9gD0APQA9QD0APcA9AD0APUA9AN9XmzUhCNlwBxsbACJWmwBGQD2AIkA9gCJAu0A9gCJAL4CNwD3AIkDfV5s1IQjZcAcbAJDATZsAkoBOWwCS8FsbAJXbGwDnwLtA58DnwOgA6ADoAOg1IQjZcAGA31ebBxsbACJWmwBGQOfAIkDnwCJAu0DnwCJAL4CNwOfAInUhCNlwAYDfV5sHGwEPmwAiQQ/AIkGjTFtIDFs1m4DKGwDrAJsbABVWv4VMgJsbACJAmwAVAEAul5sAmxebGwAiV5sAmxebD3YAEls1gJsbEbCxxP/x5BApA0KYFA89AsjTx97EHmJQPyocItC2JnNFRCEnFU6SFTDoI0PxeRNRoNRWkpzVnWW8pTagkNmgf+jGupqZ3eu50LAFnc+OzfJwdub1AdpOy76VnijWNR/CMEevikQkFyQuLuPajxWi9chqOoMJ7qpCN4sx3LJG4Myu8kD68wC6+iAwt+pU1JEeY13rpCVkXSZfinVKn4xZpxsI3Lp8bJLrJ9ujkrIalMRBAcv/GSKEtowzcEn5XmJw2BagB8V2UWJoJHZ14SXhM7p0XeGFOuw6mlvyq99WYp5XxrO6ru9nn4RHcOkJ7hx5UqWtman7yVMLzYXQefQRUdIY70RYQE8+aAzCNSGQkXiHfnHYRMi+xczKDdZLk3AV1gzxkkSHLjBwuq8shIJ+/RAbqjqQbugFhe0rqklu432EERkM5k9y1DXzds46oLqKAx6OhPT2WiqEfhaITn7OF9Y694AmKmUvbpWp0xJqDaf3jeNJXnK6NpnGcFOmbclbARC+5+5U52ufw5b0Hh+2LrrNimvZe4eYmApRsZnJE310SqB+1xB6rSJfnV1f2D0awB18Oc0sXAFqIlgHgWiaZGdvP5CJUSsCTCQUC335+iSkwPlLJJ5lwjTSn9Lw22NbK1Tu8w+bUpHtDRDPho7Gun8aw2Jzu9i+N0Ot/kPMbLAb/rUQ82kfpk85qLDkfxLl39QPDngo72GYh/Xigbpcm1pA23D2ywt3D8GgMOao040wDqkHxOEx0OhC+ZmHiIdjK7yRbfJD2ouZbAedhD3p7s8WDmCJfNforgDYPGAXSI08fTjPZ5B37lc5VXGzc1vJmibDwBNVzXuaUzg7N5H4BxqjhJ+kz9HLUJys7bpBDYAPvbut13AwJCWd059tS8YTYgC8HwrkewBfa1LSSpmMr9uR2EekTiAMH+Mx4AGzgbquccwBDlLmRhgXL/YiLPCEb6d2k5qJ6o800qddABkpqt7NG+sc2uvHZwZs57W1AHTFM1KkMShasADAh2FvzbzJOzVDMS3ZlT2BSFKdnkZFB6JyqJbhm6XANis9TrtzJdlPVp+rl8v3nIke6Jou7m2TKu53Vounupgkz2LzrQPhhatLIG7rfF/gUKWp15X3LKt+ZvuCDSqPUigF9yJntimC1HJR7Yj/dUrLAXWrT+1tnwPJJLGKAlQ5VeNDWRKCTt2vz3rJuo4+gIt75/Mkfl/gSZblZ9r/SEeeosZXneli/xNh1WVCvkRt2RnyyjtMkMqhzXh1PVOCbILqv0r7rGYm0CHIyKdhHL90cl9E1I6eEtQTCt6RXj8M0HHrHCHLVRpNM6WIbT5BCMGVnL0o5895qSRbCJz+5I8PGMhAN/Xrj4BgIdlKqlHtBHqTJwmK169toZ2IWxNzrAbIG7zh85Q/LG2A4yBcaBel52zdunokB0lv3A7kXnTI7M6ZnfZ7nwuj5lkGhqSpW+w5CI/FmRlplBEbnZy1ZxS3DL8rf1YWhO5XivWZBSRh1gFsjjyj3qRG1cm/6ors7WsEif6WRxns1MKDZa6KrbfMQ/swIb+2nb0tqxHeii6FcgVeAjE/Xwac1owx04dJKG8R5YQgHNnEfHf0qb8WOnU0eQSjazq+IK7cSuCqYzPEUB/x+QgGZqM3dBoYvNvZVOHDkbgdilWdagqO5bkybXfLpyMPuGq8mvAAEZGbR6RwXGlW9ErOWTfnjfx6dXFJqBj0OBSGFz4lWQasNOmVJeN4SFWSLfOGB/7ehV5YuoNNROHZEG9ElVuMnqbDMMuDleOt/cN/gsWxGw128mwU8/HxkOKqdTZnI7dHka67WCTf/FmBrxpNCaKJ1GxBTCSS7MNfhNj8S4Gtotg6Z3AM9cAeVROnppUMaiV5jjudLnNqoVrKO1/FijLlAc74kxydxKX1RQuMqHR63eecYr5o6MJ+B78VsLlCrpelWh6GOrCOBIoQmIcdpJL1pwE2zzZqBkecGTdK8KMOB6r1eNRURyrz6M899TZaoS/vNOxHf+5gORU+OyYIcIW6diP25GHF6u8TNjuL/GJzCnLLXd01KrsjRa51v4+O/VIAWXESJxfxWjv628J+cWUQpoD+Yytzs3jSMRJ23/XT+vUdtUMLDQq1vnIoeg/GjWh88MT6k9dRqDaQ+vodilFgvjuNw5pJpId9mfwyYeLCGb3BmHXdfQfhfPRQaupe/f8TG4Bk3eDKlYBaEK3kZYNN2Sdxz47m/vYBxvIOKtnqplB1pebzuXmAr/MuzQCknKe653dzaWQQ7MUhWYWvzIZwLe1v0rXxImLaz+AkAu+sYikhouNF3EW6w4crZ6MuUiDbIAx8XhAfegcvW6x9BPb3/sCxGWu9YyatqExB+TSm69qIkI9IwhjrcnzME+jWBx4mNQm5WwLzUjSyY4FZ0aMF5YFlXUD4hL4XfOeYv5rDe2s2D/Cn+28fZ9UCnOQvXFMnQqfc0G+ZqOWWD9l/liqUPaNQzZjxCHpUAD8Rcc90MniQ02ugHWsUupFUvhC9usY7zNPt5F2jO7qgzhafsQSd50jgLrC6Qx6bpHbXR3WNAu1BzGmwbz+ebGmwTjdy006Y6zipP7n/OJlvSmbq+SY+nefAVKK6EBMPbce5n3IdRI8+vbxCpN53rw3TvgNds1SuMiuLGxt89L71mxPDeanGhyHvOjmO56tnVpoHalQnL6TqNuqKsHjHCIKB4pCgj4WyYPvRvYvqi5EMr7lN3MotPR/KH7JUD1lZbU0QzfbrEBJnuQiVAyAC9vwXWp2TRU1/0aapyAH2cbglEHVAdl+1rb1u147uV0td1eNoQZsqHrIMIYVPXtLk2TIU3cJE08PjoYNDpfF/IcJnYQHl6nsplczX3Rgah4NbJJHl//5scUufqsSd//kbIS406ZWoMP//+jhGUswX/5nVNz/jAj9KmXPtAmMiK+khhbn1w/mELzZMT/WxcW//y/jsHaOM/61oAW/CjYhJtY622/TtMYuP7bilBvbiT3vB9n8IcFPnwM78H0KfhYDRdY5PhWJ4jWRQzB+HT5NVZV56LG82hcQms+jOTT/c9Y9sx5rPi1/wB7f/+c5UfUCKk3iwwCuywUc2MGnAwsXf1E5hoI55x1Q/Qby+sWH8NRjavZ8VaDsdi1NUVhH86BJHX1yaFt1w1OYeL5LVmdN+5Q+KuTvXEPDzUCg6xp0HhsUhTWSe7MZMM/6rsTUb0/nbUE3YQlGGt48kT1/6cnf6yHnvHtQx9EosOXN077yyEq/jE3YTiG/5SEJmXFeocJJ1EAd6vKeK6VEdJLOZ1km/EwOnZWCQpzCLKPHxrfh4yJhGq//2dos2E/3+MOcdW5EsgIdmTQUQetzRy5fQHhDBl37XbWzsqO/cASEDjyst1/8NEROqVAxWnddQV+umJ8IrKVgKvGaTc0GsQ4s8h0Osql5QKwlddPDjJhKInyWqYUKmmlIts+FIcXZ6yM6cljbsjUG2ksSOkuIw4sYHffRNgBOLApvD6XrR6Rt0rV2Uf8IpnIUVnb9Twt91QjAaD/dStSWDxg7aYY+VXIgnuowYdOkjywa2hlgrnI6PjaU3e3UjQ5Yk5mdIJGyHnv3/P+1EkMav1yFyF+FeJE/RXnWBw+Nh0aOo6TGlKX7d+dkP9+brvr79SdtXJtcD/aXBGiMNfG6/NQniQHYQlK78FEHDqOh+bDI0o+2Ub0h53EL/vlzjrBczVEZz2bOtvIL+DIzDkk9nCWt7tlqsq3l9JMtJk3r5HG2iJ9b/X11TG6wwMAjHLQ2oasaMEsydh88QPvI+hmqIHhvalpKoKOueJR0eZ9J8G2alNOIOy98jwvbc87Ewk9d+5G/tUijTmlbjFlDKXV05HalKxaRTrucc73On7yzAPS6f2v4ogiaWyWeV73dv/MsQT5HjRrsYV9dLAcI3T+zC2qEVINyNpEhoKV+xVSuWtT4AhBfpnZ7unIM+HX3msI0HiI+P+z2PFgkjGi5PqEbG/wNIWeRUjPtDEgbbubN+I4JaDLrW9borRBDob7ZFx+JdKeFVUKVeWqb/c88Ol7DhM0suLtuEd8tkDSMTD3DFx8UphPINHMHi51hAPttXL4Ektt/lKEUG/R4qZKohHjVpAcPIMiHyWr6xR8/EWnNJvBFET76yCdk5er7ADB/1bgoImhpSiZ/omZjPKPCEeZsOwvPmXL+1vlJNeGO3TzySmGA1X6e58gLrazDM71jywM1XL8zKHN6G3kB31Y8vLtP982N975SZXk2JwDvmv7AY/aDsFFk1v+nE7/hbvuOWhBH4kuemeYozPk2K22Vx/YGiDTLU7YilpOt29u3RZMBh4UJjlTP5ItxTzWv6ebL9b+GSU1Vsm2S8LMfVfJczaBSqE8J1A4YUjpsALL7++bwCPXFhaufdpDFtBlHb9makeYbqdg9ltvK/HwF/rNE6KrtWUkEcxmTB7Iyu5TiVaIgW/YxzQhpArliIMkOoK5L7ShVtF+DYqV01mk7fwop04hQRwg4KFmr5z9nYf05VVqkSe7gfnx5bxxlQ0qEV0jiwzf064qG11iEqjHcUgDWWsDs/LEGlzX31T5KVL+7D4EoKim7HBagiqRo5JI3WfDBgpKIruWz9j/J6Hp5Q/EJbMWB8NeSMuFarNw3AEYPBJtYQO/4oD/ZgPTSQ06di0EeumX5EbrdThO+fvYEVSxLtZ3AJkee0Xn0sDwNtiiZhJjJRDuG1YRKB1vOulfd9JjHeyu+UHTmrtra/pm+8Rixh4WKiLaLOCxIbZNoWRZSyyUGLPjAaAo+SQBpfO2uruWrzFxLlpvrXJNMCWtlJDKGAnlWK5xpU2tcxXbeD+sbdfwYXt/qTwDk6UqXR/aUt099DhSNl4Nk8mXwpw+b0nvjKOG6Mg1PRXjrMUMANvNgEArv8nMJs3vj1aHi8MHz/UfJWWzkcrSpZTNBhduXlGR7i+ip/THDp5R9KRNcDKECgtwgXg4EFN5HHfikP/XvsoCkHTg+NbsD8Gl6eknk4Arwn/BWGJ0hgW0/gUKrzuGZhub7igRP3abetpIm+24xEOlWl3YKpm2qTBFvX8ddDRvm1LcwnCJuEfZx12qPY9TrntMIQsv316zvpyWnyStX8VU4j6tQk+CWlLBUCJR6MdH9Cp7g2qdn2WM9qFbREmejH09dlWEPm8hPF0L7RxwRRdiCs0DP8ewk6ApoELkKU9hckSdbnXm8UHJmaNXjxv/q0fTTpu8rnl9lN0vQCpDRbCtcz12rGRFEA7Cfg7FhZn5QFkNmv1ZURKEsiZce1nS9K7HrwpC7yJV4Xt3eAVbLJfoXHrtwG60Z8gwaSnmxoL3s2ZlRqggZN/MHo1oUS4L+GwObFI596Ld4Mvi8l+cQmF1gJpkpnDio7TuO35npaMHiWzFqPSX3qNgkIPGuX0qGYnPIVsM901Yu8oZnOZOY1TbtIdFUNKNq2dP8SJ4F/VCEzIjF0/Rh+7UrZj80tC6rognVH3mqa8eCs/lcQU1Pjj98kBmAKDbZUTwosv02UunRR3n0X6c+f73mtwB7/WbQ16gO431EtwZbNG1SM4TZPBnsQSESlsfG2JLQXx5xWf4bmQ/xcVCPISAX5897JxHKLD/Xkgu57+ABR2+MMtEbX64+MNlBHpKC7sjlWVEShf5qA+dGc59LFVlZrX/Enq9z/v+wnZ1HErmxmjJjxOA+hAjVUWgtq6ygAi/8ewJDjUMFw3zhQFtbyTLDPFd21Ji5S5QPZo9nMSxdg1+DGFSN0wlWt7XeYPbHqLfliV0J1kOhQNp0VbUPy0MS2Ms66OxtSWvaULaWHnfAA+sieVVgtjDwN3nKonWapkSKRN8BKKJQpCfqo8RQI5udhfu5s5+7vwsppmAJDgz2GNA7d43VdbV2l/SrvEu4RYslmNJmfSOVbssxAhSYy6WxpIQdDB0FVBpZ6IM8yr81QN+XLZ3n/wed/R+s6LslkxKbzzst/GkRbe6rFmtvJCwr1T44ETM+IMgOnjUO0eG6a1n2w7lwM1oFBvzMUWRkNFOvKcx3oSb5XdenZ5dXsute6nkRypBiSdAtA2fxAd8UdLOZW/MB7fZoEuFheQXijdaF8kuaRZoSeWdKOkKsGYEGaXfaDKTu0WMTcLniQs7KRCz9iK3SP+Y2xIjkfVGqFLSQ6vh+A1u6FdfwXsv1VPMfi2cxmdM+/xTgMXEyo2ZGcQ2YmPsghnYdv2+z48JpGZA4tUK1p1q2VdVxyfypXEXcrxKKtmt8UdW7sHWmKMqDuBBM3J/JUQx8eUYN4pJ5oRqvdiPHU1o/WPjiKvnlCqOdyxlxF54L9PrtLD1NejZ9aZDivVr6ZfMFK1/psVygoPIAnphcJWWb9+5IKMKmgRQULsTPZi6Bw4wP32zVEoKcHpP73CkFAqS98nSaGoWDjDJiaACJn4p5o1jq9R4Q4VcibhXF//LHP0bdf63kRVZdRbbhGe7sDQcyWS5tpkfeYHnff25WK+4FpzLlAcbaKmHdIBqOw3fImx1uqQIADH0TyHzFlqTG6nMoY81svP0T6BIyELMS8tMe+E1p6TFP6sVpZa6VNaTumufD5aj9goRa9SAmdJT4HhI2r0egj8UrgFb8L59wGLnYlzkLAiUd3m/WWIIEU61kPoEjd3gIVy/fiBcgqQqHnoXpL0SqLGdGGgn7DQeVMSYWHfjno1FngIKP9cjYaTlcRP6bZunjHP13/lbVm4awti894pTf/ZNNqr4OR+tDVie/m+rC8QpVnRbsCMPukOH87B2jM4AG6pHuXl1x9SiKdhYJVOhfo/+SCaGjUW2CoogL1FFhFGN9o+acoVLl0SXs/3vrSccmZeAF3NewFuOg/P12QYKQF+SH+KYcNnsAhIAELPBUgre/KRUJEA+KPD0MHRjv+3J/j2Z23MuJmkfy7leWcMsti8wXLSHgXFJTaksx1Woi6oljwxFVIJG12SBSZLNJDbXMYPekmiXT4FclKI35BFgqnYpKfcsr+f8HUXQoHJ9UYZ4J5YMiHHyAxg6eidhodgqJ2Htf/xYEx+G0zXchuzlt8hcAl+AT8NCQ4orFc4DerabF1enA7NTLnvtZh3FUwqIOvY7Q4DYmoDHwXTSw5UNNh6r7j0B/ezMYJMDcw4+6gCTZX4YQ+7Xs8de72vsR3cmfpxIX64/6KR1p3VX4F6vfHEzxzarh8aDH4G1DFoBBM6npXFpK+Rh+WrcFclAeAxi0PoaR9CpOxxGLSdvxKVSw8oOOanG/soKImRopN38AdcUhhM2GT/PgQeSQrG12njuJJD5Z7vWfAZmFybYLdSA91kB4aoBhoj1Z//KNIVVujqaLLRwCkbyn4vh0739C9V9iSjybeOIeSOvNs7LW1a7EUtNoKAnOGML4U8KBXpfrw73WjAszJG4Qscq+Xr3kZWR4Omm0xT6qE9y6FNSpstV4onMZSqCEJ+3VX9qjvdx5QVrM0WXxmPZxejdfnihcFAjzv5PjlTl6ickDbHe6+Lch52pjOPqk+m3RZ+bh2JSMGtFBuODbMchrpRVlt16NTQ05Ps0IDtWlUmWfP2vX8M4YDynIuOZ4Ck91+591B98Gw9fw+yQogTR8CSg0zaJu+rlBo/mr3A+1NziF+kdubz+whc857AZt6DwIBIF5+5yiaaf3ByQp1Fm3sOkZDAzwsYSQTM/Kv6idkugF63FDobDdUY3huruU+sCaBuRR+HmOowvmZoBjZHNh77SXFtmY/oOUE7ifN7nBHAo83S/xvcS6H4Ci2u/9Id62Wv6Ui+zMNLAzhfkTkVcW2BwrnYvpur0ZDlzs+ZLsmGTWvd1892t78gx1YjEJusGcxphjLkV0UfAKlekfSBVWHE2ahk4AbbRmHyL7GYdtKfdlINwrcdJuf3Cee1nfUojDQn/YmItESOFhtLzrkEv4k2XpMU9oaJQ3VUC+1INh6BE68pkHameGJm4Gvdb24Q0fXWxd9Tp3A9mzFSe4qXDGGDIV4AAGV1jIDfveknH1TwWpUT6HiQxKP3AAHJNkJeRlj/mXBmS4S1j8FK6YmpK7jyyAiRbsMCCLoJcx01fvgpMvKQRxu9IOwymconQjD56g7ksOrcOeoTbius4JnGesAS1DtgdaophYsw1wGIsMS3P7K6doE3K5czznqPQLSRRF/Ylzb5NtSKsL33SgskFNCF4khn5LWaDxI23ZRi2hzqN8uW8UzZEBYy68+VtGLSymQrXGUlr2nO2BbBIT5Vh1RmGAyDXaW0FPrpx3wv2UYdFk9tSl+906bMxCuXQaKDQP/U19UEcVGK4gmksL8lAorxQSAOwpeYX9xrZsh6yoGaL/X5O3tgQC8OM+/GvxnW9XvAtu/JxAigydfSmZfqZfg1XOcHNOpLlN8j64OZ36l5qawDBJ62YaTvxeNmm5gowCdBosgcpHOgNgwA+sknN8XmsR2IYChcafl9bGNMZ/nB5guWuvEziv6QI2bP2DtyKWG/qUjZMaxy+wASkkVGtuwGtywkTYG6MYrZBo18vYcww48G/+f+eITA/qMwbLlJC0S3+/ai2pPvkOhRRVmGTuSupaxhIk0xoXLtixCxSAn4Z3OnUS3wBqVscLI4P3GP7i/6gxYsswsVmkvDXFLhO/OKcur8flegCSKiqmVpIRvCzgbjEA0mXPn+RExXY/2OE1f/BYuWpRQY8gCDpMOYBx9Gn4tL3hihSIR1ixh2PIIT7cr2gUJbfs76EKYG52Jk0UZF/PQkBxGuFCEWXnG6ue/hTIqjTRq1sotVrKrwIGHDrITyuanUzbIYdgdEeV88K1VD82TYB2B61Ft+tB1KqHPmT9+hWoaV+iF3SuvtJqvnoLaA8wxrD56AUMULEgzO9SvBcBAfqz/dzMYzwMt/YLszDbmGe1bcHHfFMcvGql9bf/tp+Hrj4q18aNnftGjmXTfws39emn7/5IBxog9MrmftAA5Oq4awenm8HimWO72dwVlHcHmutVMdrMHw+p2vzpzT+B0iIZ+IEpplwWhClcXlxhxAsF3CHRnnaUEqq3ByQ+cqhe5SvR4SFxh/LZoQwtj8QZQGT1BzY2EMpYnUcZWQEPlwFZw+7UryK9qV8KgruYsvyMoK16KI2sN4SOblrVwhyiL8+IBZ8cpUhsJQSU7TFHAi+L2F0sn0y+FtDODlnuif2Mba8QddPZYYxjTsIgkMe3M6+7kXxUfZvbCUlyq71J1eNczGk6Vqw6rSx2K3vM+DjLxDRGzWepTO2qTT/W8S7u0QXcyFUahcB4vq8xCYTpy8iswtnyz7Kx6lgTEQJ9RqkgEIN6DOUqB0uRdeYuDa7AP7Zy9z+ZlTsmVR5vtV71m3dmdtNeWghbr5PnPJtjXAzcvZjxyV96VEx/B1TA0IEQSI50ywGuIbmAYdQg/l/rxhQLX+6uOLyFsaUt6mtjpAJkLfehnB6MlOHnNOrWLvCBqVBS07jcM+4RzLEed3f3/0Xwp92U+nataNHyEgnnuYR6PXEjRLETz0xrt3UglfK7Bn4aNlXG7cZco4lMziLv5+Mh2JCww3mz69Z9ZMRR/xv5EKJ38IFxKd9dw5CgPIXja/gzAshMbF14/qBIgNkdUQeP8YE7SrICGtiTnAKTyA9cXa3OauDHxZOdTP7yuYBzD1UcHstIO16FxF1bRUAlSkszI83YufTchU8OPnnozDl9bS0y6CnnjGwgj9M61cXcZsljjhLeT/Vq+30ScN2PcT/dOoxUDqDS38+OpCCzLDdnwHQc3ECQVIkaxmdPaZTSdfp2jjGzSdNLM5yPQsgJDl+ZnhclDQi8ltUnkqWJ323IvTZPN8rn0+EshL1cx9PiaLTzUsryn9Zp2Nt/detUAh4N/2I3dlMQqjHFxSihv0uykzflq5clMy2ZBaxoEb0/QMp03IQQus3vnZd/NOmSsmgqXqKFP3ozyDgY7RQS+npabe/hNG+5sa5FtvL8v0uYuag2NewYkcol3TOTadpuncCnDgOGpmLnTQ1PEPUN2cNsrW8LYfIv+hzfb7vod+ipXHzmbgj5Fzc6RcT/5PD7VQ8nTJBNj1urkVUx9uJvTWmqY08OC80rGDLaWXv243VB16gjt4Xtwp5H2UDR0LiKW24Ed/sOO8jl1yEU/XAb3h7ScKnCFy/V3sICrkY1D0K9fSokHIL0s5/7DLShLAPXRbV7fbv4qj6OwHC9d5PlEOX3LRpQ3P7hcSAKlIKPDM83ypz56U5+rJeo0cyUtC7wltL8wqEiNSgZsDWzACc7RFoZqhlD0+sihIBQlkQTXmvUyIOZhkQX2zqME5VRC7ms1sa3CY+odMn3mMBiTvCMKnnCxg5ZPLq4GUDB4jF8Br2K4x4sxfWjGXQatJ25I1JyrIv2Z4bP1jKw5C+B2/s0v4dGUOsaS6IPIQV3ETQ+F2fSl2BPBXHzyYN8VmwWIrKeMX9pyGWuAOVXwkxJsRBaBVzLhZDP8ONGncknL5DpTxHN32GgFWMwsc0GmL0oRDmRT8u2lvjAKUIi0MmXhIHSlFeh3Qh5pP6ap4YUd6b569ZIaHgya2AyD12cPxY0In/PBjzDctTaKJCU+xc6m9RkNLDEE8guvxtJP8sl8N9bLqw0F/qejaBlcHYqw31zYpsutQp07hsP1vhGdl4hJ1wA7OCsAHnKj9879uSHILEmuZ6vI1lT4tvnWCVKZhhYrWHW9oPKPKpbOC6FTjf/OtUvwmiXr2ykvyLzHGQeyS7BenZpL3N/CaF5T7Gkml7JXN5cj0PKaDpZVImD61FuMgFHPqSHvt4Ej4KBdAfdcoO3AjQPLwwtKsgGM+ty4lNZMBEItJSRLunG5ckrM/BeoXWoPZVvEoIzLgFQYPupMwZCXis4W2SCJ2zsefZqCj+aTfSq1FYdUj2UeJALvVTf7vuuikOE1Hit3UIAGUi/sqgMum9vw218y1FlY/9XnOji9nqhGAcMYICc7BiqLZj5N+cKEuSAuiyWbMg81ZD1lHovy/we2eaCcCv4MzEW3O0mVA/t2xdA0cxTVbXmFhn+tARDpvDz5ftLr15OAAmvo2QiAky+feVO4bGibv2nlBmBzqx0lEDfEm4UnEs11pbnwZlJ/0Y73/wBPYfTNZiJKR73TzdCW1BffiJq9bLjQmaKnU0+gN8sfe25IKSUCooQwxePDrFn3a/zUgWxvPoTYVXfobY/GV2qqTkeVDV9D8657fhY0/wiaJ5NfLxhXbE/naxs34N0hd6vxNfdm1TCnozm/NKSCThchoYgMF7Z2tzXFovRfsNVkf86JjrM60r7UIuV3bsmfrMOqzjXjN6HPBG25zCJ3QLueySbj9oFvX/HxWBqh31PBPxduCVAxMqC9HK+YL3oBZqBruoh6LKvdMqoz0PYXUBrwbiioyE8Tj5ImjJmiOOWLbAZvIZ/l9rIPljx3T5glJ2ewlfuIT5GlodQsAf/IEtmYkML5SRQGxxwW+rlZkD8belJNu09Itwx9xDULTnemVDeojdbgcd2gKGM9aO00Jivtbs7ZyOSE8IPh98GfvatD8Ud5uHcZfAfMiPSlIxd4UqeSDzuNfbKDuFepkyC/s3j9fawmhY1b9NqDi0ZS5eP35l7rL2eK5QlWLlyCmxx8AFaFiTuD2pMUxZV5mBSJuJduOaq2ZrWpu28DE8jl/hisBz7bGWH6qLF0ayWNq1Sejtcs8KQrQqJk5P9QHDYHOIolgNsMDmEaWcTelghbfFCDqWrq6YLwDWy+m68ec5nShgq2fduUBpQUuKKKgnttaUX9PRfMmxqJyU7e0RLr1bev+ge1KK0bZyhHKKDE8gQX9Vf7rNHWOxBtZcxwwGusyMpH77qWZxXsQmbgIGhtiO+gSSRCyu/ek+OFsz1HMiQH0IHV7PjJi3dszYfFp8ue9h4+AfKte4MTiehPvxNcm/T1t9vsFZx8rHN5ie77r2jzZOq/Em4Q+H9sNcZakf9HnzCc1fJixppxP8FQABmVnqa6GbJhwaka7WH7Wdoz1WxOjSNV8N9sgW5S3Ppgkut+TTCkjA+AodUOk1KIR+8G8S3WrSZG4nyqfJ6FEjXl6a/LEoRMHZUqfPRWvwqrtXYy9IUsmUGzkqi76ib4NANCe5DnyOxnFRZ9d8FdBVBjra3iNuZhJuWW5Omi/hBigqDsg0mu2AhfJDXdwyMIJ33HHHPfS2JtjegRejX11m41TbNL+Qp7mR0g9CPKTj9PIjuSycGN/YPozXI4zarXuAeLv5CHKtKcJKRbd6R2oLNiEt0T8+QIVJH7zt9ncKMgd49vV2P1AyScZ9Qzbu3m3LBnuu6dw7aE0b6r4kzVkI/GUS88mA53L/rLtntkFlZXGtIoqNP2mD3eVv08AVVPT3wJn81zpbJV9SuqZ6Pd1ge0Zz2RFHeCdV5CLPftH9V5o9+VzFu4R0QeumqDwUhXn3IyYotdJnxr1l3BqWnQVAeDBEOtPyJQx1q5+mODiClXtYeBLTWtsJ42AMBcf/IFIhpfhYO08hsg0Ik+DpQFNOKReK3o3cudkxWX0soPtI5eSFOA6yNylS+IQjrQtYQ/5s4UcixJfokumBUjpH9ofSjUTwPCapGFndfqqG5IHeMMvfg+88SXm7bNyjk6pGKzL+WxDAdqKtQ72WWVbOk3I+ueGuammmB2pvFZvqIcU/lvW3n9+r2lycnQLE4OX9R1jIgW4cDjJ3v8dAa66mVcfC7ptCr5io6mCaA9qI9T9FFWqo1ZAaMxgxAu8aXqmaOYryMND2sTUfoHvxcYK7hEiJhCLYFDx3PBhE97c2a0ub1/ePJcyJOqr7UaTAPTJ+xvZtjb/40sloY1ltRnTkWILmIP2b7S3AdXCR+YiArMUHwdncpjpyDGfzqGOUoAuaamWzAMacQtb34/M32FEgR5lUEf8fRzFrZUhzQj0fR7/6gdzdnVVvcSneLmtqJ930VCCDORY8CVdQWdo/S3PNkX3pQsPVKWIYGAMrFZoq8bQ/OJBDSXP7KSBdL3QN0Zqd393p6VFc7DnlnFiN00SY5Nux7yadeIM0Upl2rVsu8/VAI";const zw=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),Uw=4;function r_(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),i=1,a=[0,1];for(let j=1;j<r;j++)a.push(i+=n());let c=n(),u=t;t+=c;let d=0,f=0;function p(){return d==0&&(f=f<<8|e[t++],d=8),f>>--d&1}const g=31,m=2**g,y=m>>>1,w=y>>1,b=m-1;let C=0;for(let j=0;j<g;j++)C=C<<1|p();let A=[],I=0,k=m;for(;;){let j=Math.floor(((C-I+1)*i-1)/k),P=0,_=r;for(;_-P>1;){let Q=P+_>>>1;j<a[Q]?_=Q:P=Q}if(P==0)break;A.push(P);let T=I+Math.floor(k*a[P]/i),D=I+Math.floor(k*a[P+1]/i)-1;for(;((T^D)&y)==0;)C=C<<1&b|p(),T=T<<1&b,D=D<<1&b|1;for(;T&~D&w;)C=C&y|C<<1&b>>>1|p(),T=T<<1^y,D=(D^y)<<1|y|1;I=T,k=1+D-T}let S=r-4;return A.map(j=>{switch(j-S){case 3:return S+65792+(e[u++]<<16|e[u++]<<8|e[u++]);case 2:return S+256+(e[u++]<<8|e[u++]);case 1:return S+e[u++];default:return j-1}})}function o_(e){let t=0;return()=>e[t++]}function d3(e){return o_(r_(i_(e)))}function i_(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((i,a)=>t[i.charCodeAt(0)]=a);let n=e.length,r=new Uint8Array(6*n>>3);for(let i=0,a=0,c=0,u=0;i<n;i++)u=u<<6|t[e.charCodeAt(i)],c+=6,c>=8&&(r[a++]=u>>(c-=8));return r}function s_(e){return e&1?~e>>1:e>>1}function a_(e,t){let n=Array(e);for(let r=0,i=0;r<e;r++)n[r]=i+=s_(t());return n}function Dc(e,t=0){let n=[];for(;;){let r=e(),i=e();if(!i)break;t+=r;for(let a=0;a<i;a++)n.push(t+a);t+=i+1}return n}function f3(e){return Lc(()=>{let t=Dc(e);if(t.length)return t})}function h3(e){let t=[];for(;;){let n=e();if(n==0)break;t.push(c_(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(l_(n,e))}return t.flat()}function Lc(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function p3(e,t,n){let r=Array(e).fill().map(()=>[]);for(let i=0;i<t;i++)a_(e,n).forEach((a,c)=>r[c].push(a));return r}function c_(e,t){let n=1+t(),r=t(),i=Lc(t);return p3(i.length,1+e,t).flatMap((c,u)=>{let[d,...f]=c;return Array(i[u]).fill().map((p,g)=>{let m=g*r;return[d+g*n,f.map(y=>y+m)]})})}function l_(e,t){let n=1+t();return p3(n,1+e,t).map(i=>[i[0],i.slice(1)])}function u_(e){let t=[],n=Dc(e);return i(r([]),[]),t;function r(a){let c=e(),u=Lc(()=>{let d=Dc(e).map(f=>n[f]);if(d.length)return r(d)});return{S:c,B:u,Q:a}}function i({S:a,B:c},u,d){if(!(a&4&&d===u[u.length-1])){a&2&&(d=u[u.length-1]),a&1&&t.push(u);for(let f of c)for(let p of f.Q)i(f,[...u,p],d)}}}function d_(e){return e.toString(16).toUpperCase().padStart(2,"0")}function m3(e){return`{${d_(e)}}`}function f_(e){let t=[];for(let n=0,r=e.length;n<r;){let i=e.codePointAt(n);n+=i<65536?1:2,t.push(i)}return t}function ta(e){let n=e.length;if(n<4096)return String.fromCodePoint(...e);let r=[];for(let i=0;i<n;)r.push(String.fromCodePoint(...e.slice(i,i+=4096)));return r.join("")}function h_(e,t){let n=e.length,r=n-t.length;for(let i=0;r==0&&i<n;i++)r=e[i]-t[i];return r}var p_="AEUDWAHSCGYATwDVADIAdgAiADQAFAAtABQAIQAPACcADQASAAsAGQAJABIACQARAAUACwAFAAwABQAQAAMABwAEAAoABQAJAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACwANAA0AAwAKAAkABAAdAAYAZwDTAecDNACxCmIB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgPi89uj00MsvBXxEPAGPCDwBnQKoEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJEMAJpIBpob5AERSMAKNoAXqaQLRBMCzEiC+AZ4EWRJJFbEu7QDQLARtEbgECxDwAb/RyAk1AV4nD2cEQQKTAzsAGpobPgAahAGPCrysdy0OAKwAfFIcBAQFUmoA/PtZADkBIadVj2UMUgx5Il4ANQC9vLIBDAHUGVsQ8wCzfQIbGVcCHBZHAZ8CBAgXOhG7AqMZ4M7+1M0UAPDNAWsC+mcJDe8AAQA99zkEXLICyQozAo6lAobcP5JvjQLFzwKD9gU/OD8FEQCtEQL6bW+nAKUEvzjDHsuRyUvOFHcacUz5AqIFRSE2kzsBEQCuaQL5DQTlcgO6twSpTiUgCwIFCAUXBHQEqQV6swAVxUlmTmsCwjqsP/wKJQmXb793UgZBEBsnpRD3DDMBtQE7De1L2ATxBjsEyR99GRkPzZWcCKUt3QztJuMuoYBaI/UqgwXtS/Q83QtNUWgPWQtlCeM6Y4FOAyEBDSKLCt0NOQhtEPMKyWsN5RFFBzkD1UmaAKUHAQsRHTUVtSYQYqwLCTl3Bvsa9guPJq8TKXr8BdMaIQZNASka/wDPLueFsFoxXBxPXwYDCyUjxxSoUCANJUC3eEgaGwcVJakCkUNwSodRNh6TIfY8PQ1mLhNRfAf1PAUZTwuBPJ5Gq0UOEdI+jT1IIklMLAQ1fywvJ4sJzw+FDLl8cgFZCSEJsQxxEzERFzfFCDkHGS2XJCcVCCFGlWCaBPefA/MT0QMLBT8JQQcTA7UcLRMuFSkFDYEk1wLzNtUuswKPVoABFwXLDyUf3xBQR+AO6QibAmUDgyXrAC0VIQAXIpsIQ2MAX4/YUwUuywjHamwjdANnFOdhEXMHkQ5XB6ccMxW/HOFwyF4Lhggoo68JWwF1CZkBXwTjCAk1W4ygIEFnU4tYGJsgYUE/XfwCMQxlFZ9EvYd4AosPaxIbATUBcwc5DQECdxHtEWsQlQjrhgQ1tTP4OiUETyGDIBEKJwNPbM4LJyb5DPhpAaMSYgMMND137merYLYkF/0HGTLFQWAh8QuST80MnBrBGEJULhnkB78D8xrzJ+pBVwX/A6MDEzpNM+4EvQtpCIsJPwBJDqMXB9cYagpxjNABMYsBt5kDV5GDAm+PBjcHCwBnC4cFeeUAHQKnCKMABQDPA1cAOQKtB50AGQCFQQE9AycvASHlAo8DkwgxywGVLwHzKQQbwwwVAPc3bkoCw7ECgGpmogXdWAKOAkk1AU0lBAVOR1EDr3HhANsASwYT30cBFatKyxrjQwHfbysAxwD7AAU1BwVBAc0B820AtwFfCzEJorO1AU3pKQCDABVrAdcCiQDdADUAf/EBUwBNBVn5BdMCT0kBETEYK1dhAbsDHwEzAQ0AeQbLjaXJBx8EbQfTAhAbFeEC7y4HtQEDIt8TzULFAr3eVaFgAmSBAmJCW02vWzcgAqH3AmiYAmYJAp+EOBsLAmY7AmYmBG4EfwN/EwN+kjkGOXcXOYI6IyMCbB0CMjY4CgJtxwJtru+KM2dFKwFnAN4A4QBKBQeYDI0A/gvCAA21AncvAnaiPwJ5S0MCeLodXNtFrkbXAnw/AnrIAn0JAnzwBVkFIEgASH1jJAKBbQKAAAKABQJ/rklYSlsVF0rMAtEBAtDMSycDiE8Dh+ZExZEyAvKhXQMDA65LzkwtJQPPTUxNrwKLPwKK2MEbBx1DZwW3Ao43Ao5cQJeBAo7ZAo5ceFG0UzUKUtRUhQKT+wKTDADpABxVHlWvVdAGLBsplYYy4XhmRTs5ApefAu+yWCGoAFklApaPApZ8nACpWaxaCYFNADsClrUClk5cRFzRApnLAplkXMpdBxkCnJs5wjqdApwWAp+bAp64igAdDzEqDwKd8QKekgC1PWE0Ye8CntMCoG4BqQKenx8Cnk6lY8hkJyUrAievAiZ+AqD7AqBMAqLdAqHEAqYvAqXOAqf/AH0Cp/JofGixAANJahxq0QKs4wKsrgKtZwKtAgJXHQJV3AKx4dcDH05slwKyvQ0CsugXbOBtY21IXwMlzQK2XDs/bpADKUUCuF4CuUcVArkqd3A2cOECvRkCu9pwlgMyEQK+iHICAzNxAr4acyJzTwLDywLDBHOCdEs1RXTgAzynAzyaAz2/AsV8AsZHAsYQiQLIaVECyEQCyU8CyS4CZJ0C3dJ4eWF4rnklS9ADGKNnAgJh9BnzlSR7C16SXrsRAs9rAs9sL0tT0vMTnwDGrQLPcwEp6gNOEn5LBQLcJwLbigLSTwNSXANTXwEBA1WMgIk/AMsW7WBFghyC04LOg40C2scC2d6EEIRJpzwDhqUALwNkDoZxWfkAVQLfZQLeuHN3AuIv7RQB8zAnAfSbAfLShwLr8wLpcHkC6vkC6uQA+UcBuQLuiQLrnJaqlwMC7j8DheCYeXDgcaEC8wMAaQOOFpmTAvcTA5FuA5KHAveYAvnZAvhmmhyaq7s3mx4DnYMC/voBGwA5nxyfswMFjQOmagOm2QDRxQMGaqGIogUJAwxJAtQAPwMA4UEXUwER8wNrB5dnBQCTLSu3r73bAYmZFH8RBDkB+ykFIQ6dCZ8Akv0TtRQrxQL3LScApQC3BbmOkRc/xqdtQS4UJo0uAUMBgPwBtSYAdQMOBG0ALAIWDKEAAAoCPQJqA90DfgSRASBFBSF8CgAFAEQAEwA2EgJ3AQAF1QNr7wrFAgD3Cp8nv7G35QGRIUFCAekUfxE0wIkABAAbAFoCRQKEiwAGOlM6lI1tALg6jzrQAI04wTrcAKUA6ADLATqBOjs5/Dn5O3aJOls7nok6bzkYAVYBMwFsBS81XTWeNa01ZjV1NbY1xTWCNZE10jXhNZ41rTXuNf01sjXBNgI2ETXGNdU2FjYnNd417TYuNj02LjUtITY6Nj02PDbJNwgEkDxXNjg23TcgNw82yiA3iTcwCgSwPGc2JDcZN2w6jTchQtRDB0LgQwscDw8JmyhtKFFVBgDpfwDpsAD+mxQ91wLpNSMArQC9BbeOkRdLxptzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgELgEaJZkC7aMAoQCjBcGOmxdNxrsBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUHqSvAj5Gqwr7YrMUACT9AN3rpF27H7fsd/twPt4l+UW1yQYKBt2Cgy7qJpGiLcdE2P1cQSImUbqJ6ICH27H4knQMIRMrFkHu3sx6tC35Y+eLIh4e4CMKJ4DfyV+8mfta499RCAJ0xfeZR8PsoYOApva9pjGn4PhvyZS7/h5JLuhaucfjuU+Z584wwqNO4hWYmaBCcjgQPale1bjoHzMUbut/zTgxHxBnAyrdKpF4IRMASLBtD/jviyLeCgj8twWjAd3HchN/uqaeRYeHJgl7JEY9/cTrvtfybx/r3Y/NtxJ9dp+MTVmiS9bwBH73s8Di56/Ma+mTPMHq4T1yEG1fWcqr0u+hrGnJEvU1JJAm/maQSrKrazIyvSkDFkj8UUlfBq8baniTGPng6YZRL661rDNw4w/1g2figG0IhXnL7wosd/sVNo5dYSmMBTP5c7rYLjRdCwg8quwljOMPf63D8ICAL0r71XRiyFHdgwHbwfgnPOf4Lzjf2v+j+IiDHG2isp5yUnzSDyDRb4i/Vs0qHSHq8PiEQ/JnBP7PxnjN0j6gT4AVAeRx/1o9VnEUlUwvFrzJqHk9jxAw4sYxCnrxaeBdCFFKbnE7z+x54F5W7ZZsU6kx8Qocul6FoAHHy01FGL/nne61mn4+uYXfQ1Uccn+HMLKE+cZzT8BB1E3FRskOgJrRsq25rauLm8+uamXpkS/bTy6y1wDbCrW4eD532kTWrtNUmVVZOIn/C+/JR9KVR5iG9TY8iaT67ubm/whL1xbKZoqtY+a6fNxMJrg211bGYJDUkYMNWA0BMB++9zOm6Eik4roqs9CCEFW0lyAK0PbvlzvoxrZuY/OEhNW/l/63U15Od/RSvmDvXpGLiVmeGi5PDSH2bYz5o2g6wFDQ2FbZgYgTF8rPlvA1ifjZD3NLtFdXdpSIJvgKR7GpjJWG7GZGawPomIH8B5tUmtHH9LpM+/KQKunEPa1GiQkCXv4Cnm9DLORo2joicHdPDZ64obQrPZ5bgqckkj0G6/NEiPYBY4bCkL7W8G5YzsUb6GakFjykSPkT7JGeLeB6uJOGMm+x7N381BCDfbJFx0dtLgV9Q477BfL1fvitX5anV/oYfxeYl+eF5x5bB8+Ep/L2nsmd56aKF4aAD4GbJWsdKyBW22xEmAD3XdbtsMyAFoR5mOla0gEd9U/YVB7zvHGpHbQonay9Sv0bQ8iZ8piaXVrKc5AG1AmqqgaEvzHSP2Wux7aZTWh6quVDVU01JtMIVRdCFwlSbbqqhoFlyzsotQzRexFvZ/MqUSFu3OhRIuNBbufvBpdVgb8XdGJ48/lJPCZ7dsOujTTbKPSEvGXkOnG2Xdi8/nM3EMRqITd5QeU7iOjKqC7URJY6TnLsHij22xAHKnVRD5MDtBYnoGFqZGMDmXCW6Oj+BAWw14hESY/xLF6bLku06AHkiXTHPCFZ0f9YSqqo27eAhhS67OrA2Het4M9JM3jm/yRX6bYxnfmzYl5qQdHxN08FsNuWDrWd4vMUY2QD3hr8vS73SCTkFoXZR3xNzOQt8d/6HfjBmXqvrE6EGkLzK6YK2U2/ksU/iUH+LvVIsJI+ri2AL/klo+ShdDyfs5A83i2prkMs51IKR7ZcqjZJi5X3+bd8GlyWvtddxKEoEqSgEO7A8jIgf2nH0h8FjM7oB6yte3X5mpL0i/E4Rx0CotKnILJj/vJqo4VkPQ93jRtRVfaitQPqldl5xRYPq8387Z0DcnZvOeION0Ht1+P27kFLGQIcLBX4FG3sffccNHh5cPfzp9INoRtqVtdViJfg8RjnXiIz/MNqEN6zvzX3hMzyWC7oSoXIT14ubc0abPX8Rp9GVa5NI/8iv+6ela1oTncbdimRKnrbRffDR/X4nH+bgqAuHWl7hOaeXPWVzIeRl7ga+JzD4Sx3mlj/q6Ra/E2HhDf21eEzTLNGfCZsY+/yxZzQzIAuijG65ii4O/waAJCrEJaWd/DRAKMQ5678Dw5AT7RCKzdadIwd8LsD+DgPBASmWsUlf8R0k1w/2k4lO2Wpb4zMI6EJVJs0xk/wn8/fRUPqrDKhbjHR41SqgFMx5RGMPuduFwlu5lK89tW11sTqiX/5EfGs5nO+y9FKvgXKPOEmgE05EKNL6Sjb3xS40H3BVPhm0ESOZgAjZoymc8be0inDVo4JdJVf+NKd3tN/CaB7GShhH27qf95NoFZVX/6ZkR2lX+CgWrQ2INgkh+bbMz68+uJ3Clsh8HSMPEQtAt+BBE6fXDab7KIlsKxU1lIXW/KWVstpdPanJ0pdXpQinDyUQjtY7ZVcfiecRxRDMAUhHFU2cEaciQ+htiPMPx1kdvtWG9T44w3r037ljHBFJdYR0r55qvMRixtAEFJAqA4T1ES87FAx7UozXasytg8MftZYt0rjYgLe6EJ5aWvy2qscBSBQ7yehoJIA3wIIZ9ukfkyBb6qnue5ko8W50rpV4kXqWjI5nbGRXrNW0tBZHXlY48nSgcUXBHWT4GcgLZJoLlKJnV96kCYpq9eWHh7xJzkCAyrQuQ5AJ0qq/uZ3toJglNterev+Qm0KXxPg/+YbFRJdfhbp1wOnVOEYdVHTya6CtO0afhEaBhx3oHwCb5Kq6RwHDzFMl2vfjL8GwzcCoTj7wZe+UFnYDV2yKpPU9dba29gYBdNqJg/KXozO+CJTlKmlKhnqTf5doeS35DZFV+cYJQVjd+oVY/Gtc/6XPzUxb1gMqf6cEjNNoRC8AObrp+fx0cVtGu4ffC2TgXRC8zPl8moUHCB5HZ25d87mlsiiK0aNwBtcEQjRNBT/QrXbw/8aVXdKMHn9EqYEKEyxSGTpYQOaes1G1Qq8pDgqkZtlO2HRyCXpmeM7TSrRPkAh004BfisVpF6zP44n2Jvxz/gOVocNCyy9V6lkod28QM4pbaMvVJigD/w3BrsjSJrXlqc4ulBYOCceiBN4b/gHajYyupbhEt63a619Ay4wsL6a6w6B+A7TnoyE7BliWHJfzVxxIKM/W3M/J8Bx99Op863Q8eNuIMGRx++VbYfjm+VGYBA3Ap/KEu/wxBNBpJJncwHPG45V8Gh98ZIrGCc20MwijGowZbcS7d1nEgcOW5cddZpHL2XPAIRbColiheZzXTvBxZOY3iMSDSKDrICyJ/iQs1vdplVdH/JrLJsQ2jtTnfCrITIghq3KFX3qAgLWAIp8IffNSdTYptnbGfc8s+qcr3zyzyHp1aJg+jxTF4kD1ry5Wauv5V3xnOGwTFecNzXSLHBW20/pCQjk4uorD0plIhMSTc79+/r4RKPClRYTBYex1Ob5crtfvRQBBv6re/6FhtCqtduag67glqRA77/3ulblh9YRtMdDxkCyJDeNnAuCLPQFmdRRWJtH20Z8DstfJf+5oj5SSB64d0iF5/Ya4KfTWxfivj9Ap2/zbYaTo/1gO3tM6RYsCZharMBFr7Fm61mLSrQnEI4OF1gbVS4k/JE9UotOrnLJZuswoWodCSV8zbybkJSVIP7n8UaE9xCR39rJZmf27HOAPVOGc9pdkQUcRrI0qyVF9Z3j1RHDbxIfwbWzmPVjwIdPJvtmBYwEQIUsIW1S939hcVikK00ozPRI02cqhzVUNzpOxVdrwRPvlh1aIOf0xFEqD3YkGnCnFah/cFN3J2gB7N+bZSGawwkKFu1tpQMrp1W+27YNkyT0TpcFpTqgOqqLabrgcCUPxh97mREOGy4xItzQ9xSl6rq+8BZsHcrQFReS+QeMxJ3P6CnL9EP/eOLDjumLhvrcQrpPiknsofbzBv9gTP0lU+TIVwE6E7CcKfT36q+ZiEOHJ9ayf0dyUJLezAb2M8aNHwd0+OJmsVgTzRWA";const Fc=44032,fd=4352,hd=4449,pd=4519,g3=19,y3=21,na=28,md=y3*na,m_=g3*md,g_=Fc+m_,y_=fd+g3,v_=hd+y3,w_=pd+na;function oc(e){return e>>24&255}function v3(e){return e&16777215}let Fp,Ww,zp,Yu;function b_(){let e=d3(p_);Fp=new Map(f3(e).flatMap((t,n)=>t.map(r=>[r,n+1<<24]))),Ww=new Set(Dc(e)),zp=new Map,Yu=new Map;for(let[t,n]of h3(e)){if(!Ww.has(t)&&n.length==2){let[r,i]=n,a=Yu.get(r);a||(a=new Map,Yu.set(r,a)),a.set(i,t)}zp.set(t,n.reverse())}}function w3(e){return e>=Fc&&e<g_}function x_(e,t){if(e>=fd&&e<y_&&t>=hd&&t<v_)return Fc+(e-fd)*md+(t-hd)*na;if(w3(e)&&t>pd&&t<w_&&(e-Fc)%na==0)return e+(t-pd);{let n=Yu.get(e);return n&&(n=n.get(t),n)?n:-1}}function b3(e){Fp||b_();let t=[],n=[],r=!1;function i(a){let c=Fp.get(a);c&&(r=!0,a|=c),t.push(a)}for(let a of e)for(;;){if(a<128)t.push(a);else if(w3(a)){let c=a-Fc,u=c/md|0,d=c%md/na|0,f=c%na;i(fd+u),i(hd+d),f>0&&i(pd+f)}else{let c=zp.get(a);c?n.push(...c):i(a)}if(!n.length)break;a=n.pop()}if(r&&t.length>1){let a=oc(t[0]);for(let c=1;c<t.length;c++){let u=oc(t[c]);if(u==0||a<=u){a=u;continue}let d=c-1;for(;;){let f=t[d+1];if(t[d+1]=t[d],t[d]=f,!d||(a=oc(t[--d]),a<=u))break}a=oc(t[c])}}return t}function C_(e){let t=[],n=[],r=-1,i=0;for(let a of e){let c=oc(a),u=v3(a);if(r==-1)c==0?r=u:t.push(u);else if(i>0&&i>=c)c==0?(t.push(r,...n),n.length=0,r=u):n.push(u),i=c;else{let d=x_(r,u);d>=0?r=d:i==0&&c==0?(t.push(r),r=u):(n.push(u),i=c)}}return r>=0&&t.push(r,...n),t}function x3(e){return b3(e).map(v3)}function E_(e){return C_(b3(e))}const $w=45,C3=".",E3=65039,A3=1,gd=e=>Array.from(e);function zc(e,t){return e.P.has(t)||e.Q.has(t)}class A_ extends Array{get is_emoji(){return!0}}let Up,k3,xi,Wp,S3,Os,Ch,Is,gi,qw,$p;function Jm(){if(Up)return;let e=d3(n_);const t=()=>Dc(e),n=()=>new Set(t()),r=(p,g)=>g.forEach(m=>p.add(m));Up=new Map(h3(e)),k3=n(),xi=t(),Wp=new Set(t().map(p=>xi[p])),xi=new Set(xi),S3=n(),n();let i=f3(e),a=e();const c=()=>{let p=new Set;return t().forEach(g=>r(p,i[g])),r(p,t()),p};Os=Lc(p=>{let g=Lc(e).map(m=>m+96);if(g.length){let m=p>=a;g[0]-=32,g=ta(g),m&&(g=`Restricted[${g}]`);let y=c(),w=c(),b=!e();return{N:g,P:y,Q:w,M:b,R:m}}}),Ch=n(),Is=new Map;let u=t().concat(gd(Ch)).sort((p,g)=>p-g);u.forEach((p,g)=>{let m=e(),y=u[g]=m?u[g-m]:{V:[],M:new Map};y.V.push(p),Ch.has(p)||Is.set(p,y)});for(let{V:p,M:g}of new Set(Is.values())){let m=[];for(let w of p){let b=Os.filter(A=>zc(A,w)),C=m.find(({G:A})=>b.some(I=>A.has(I)));C||(C={G:new Set,V:[]},m.push(C)),C.V.push(w),r(C.G,b)}let y=m.flatMap(w=>gd(w.G));for(let{G:w,V:b}of m){let C=new Set(y.filter(A=>!w.has(A)));for(let A of b)g.set(A,C)}}gi=new Set;let d=new Set;const f=p=>gi.has(p)?d.add(p):gi.add(p);for(let p of Os){for(let g of p.P)f(g);for(let g of p.Q)f(g)}for(let p of gi)!Is.has(p)&&!d.has(p)&&Is.set(p,A3);r(gi,x3(gi)),qw=u_(e).map(p=>A_.from(p)).sort(h_),$p=new Map;for(let p of qw){let g=[$p];for(let m of p){let y=g.map(w=>{let b=w.get(m);return b||(b=new Map,w.set(m,b)),b});m===E3?g.push(...y):g=y}for(let m of g)m.V=p}}function Zm(e){return(I3(e)?"":`${Xm(Gd([e]))} `)+m3(e)}function Xm(e){return`"${e}"‎`}function k_(e){if(e.length>=4&&e[2]==$w&&e[3]==$w)throw new Error(`invalid label extension: "${ta(e.slice(0,4))}"`)}function S_(e){for(let n=e.lastIndexOf(95);n>0;)if(e[--n]!==95)throw new Error("underscore allowed only at start")}function I_(e){let t=e[0],n=zw.get(t);if(n)throw cc(`leading ${n}`);let r=e.length,i=-1;for(let a=1;a<r;a++){t=e[a];let c=zw.get(t);if(c){if(i==a)throw cc(`${n} + ${c}`);i=a+1,n=c}}if(i==r)throw cc(`trailing ${n}`)}function Gd(e,t=1/0,n=m3){let r=[];j_(e[0])&&r.push("◌"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let i=0,a=e.length;for(let c=0;c<a;c++){let u=e[c];I3(u)&&(r.push(ta(e.slice(i,c))),r.push(n(u)),i=c+1)}return r.push(ta(e.slice(i,a))),r.join("")}function j_(e,t){return Jm(),xi.has(e)}function I3(e){return Jm(),S3.has(e)}function B_(e){return O_(__(e,E_,M_))}function __(e,t,n){if(!e)return[];Jm();let r=0;return e.split(C3).map(i=>{let a=f_(i),c={input:a,offset:r};r+=a.length+1;try{let u=c.tokens=N_(a,t,n),d=u.length,f;if(!d)throw new Error("empty label");let p=c.output=u.flat();if(S_(p),!(c.emoji=d>1||u[0].is_emoji)&&p.every(m=>m<128))k_(p),f="ASCII";else{let m=u.flatMap(y=>y.is_emoji?[]:y);if(!m.length)f="Emoji";else{if(xi.has(p[0]))throw cc("leading combining mark");for(let b=1;b<d;b++){let C=u[b];if(!C.is_emoji&&xi.has(C[0]))throw cc(`emoji + combining mark: "${ta(u[b-1])} + ${Gd([C[0]])}"`)}I_(p);let y=gd(new Set(m)),[w]=T_(y);R_(w,m),P_(w,y),f=w.N}}c.type=f}catch(u){c.error=u}return c})}function P_(e,t){let n,r=[];for(let i of t){let a=Is.get(i);if(a===A3)return;if(a){let c=a.M.get(i);if(n=n?n.filter(u=>c.has(u)):gd(c),!n.length)return}else r.push(i)}if(n){for(let i of n)if(r.every(a=>zc(i,a)))throw new Error(`whole-script confusable: ${e.N}/${i.N}`)}}function T_(e){let t=Os;for(let n of e){let r=t.filter(i=>zc(i,n));if(!r.length)throw Os.some(i=>zc(i,n))?B3(t[0],n):j3(n);if(t=r,r.length==1)break}return t}function O_(e){return e.map(({input:t,error:n,output:r})=>{if(n){let i=n.message;throw new Error(e.length==1?i:`Invalid label ${Xm(Gd(t,63))}: ${i}`)}return ta(r)}).join(C3)}function j3(e){return new Error(`disallowed character: ${Zm(e)}`)}function B3(e,t){let n=Zm(t),r=Os.find(i=>i.P.has(t));return r&&(n=`${r.N} ${n}`),new Error(`illegal mixture: ${e.N} + ${n}`)}function cc(e){return new Error(`illegal placement: ${e}`)}function R_(e,t){for(let n of t)if(!zc(e,n))throw B3(e,n);if(e.M){let n=x3(t);for(let r=1,i=n.length;r<i;r++)if(Wp.has(n[r])){let a=r+1;for(let c;a<i&&Wp.has(c=n[a]);a++)for(let u=r;u<a;u++)if(n[u]==c)throw new Error(`duplicate non-spacing marks: ${Zm(c)}`);if(a-r>Uw)throw new Error(`excessive non-spacing marks: ${Xm(Gd(n.slice(r-1,a)))} (${a-r}/${Uw})`);r=a}}}function N_(e,t,n){let r=[],i=[];for(e=e.slice().reverse();e.length;){let a=D_(e);if(a)i.length&&(r.push(t(i)),i=[]),r.push(n(a));else{let c=e.pop();if(gi.has(c))i.push(c);else{let u=Up.get(c);if(u)i.push(...u);else if(!k3.has(c))throw j3(c)}}}return i.length&&r.push(t(i)),r}function M_(e){return e.filter(t=>t!=E3)}function D_(e,t){let n=$p,r,i=e.length;for(;i&&(n=n.get(e[--i]),!!n);){let{V:a}=n;a&&(r=a,e.length=i)}return r}function L_(e){return B_(e)}function F_(e){return L_(e)}const z_={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},U_={block:nk({format(e){var n;return{transactions:(n=e.transactions)==null?void 0:n.map(r=>{if(typeof r=="string")return r;const i=al(r);return i.typeHex==="0x7e"&&(i.isSystemTx=r.isSystemTx,i.mint=r.mint?$t(r.mint):void 0,i.sourceHash=r.sourceHash,i.type="deposit"),i}),stateRoot:e.stateRoot}}}),transaction:ek({format(e){const t={};return e.type==="0x7e"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?$t(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:eS({format(e){return{l1GasPrice:e.l1GasPrice?$t(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?$t(e.l1GasUsed):null,l1Fee:e.l1Fee?$t(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})};function W_(e,t){return H_(e)?q_(e):Uk(e,t)}const $_={transaction:W_};function q_(e){V_(e);const{sourceHash:t,data:n,from:r,gas:i,isSystemTx:a,mint:c,to:u,value:d}=e,f=[t,r,u??"0x",c?sn(c):"0x",d?sn(d):"0x",i?sn(i):"0x",a?"0x1":"0x",n??"0x"];return ir(["0x7e",Vo(f)])}function H_(e){return e.type==="deposit"||typeof e.sourceHash<"u"}function V_(e){const{from:t,to:n}=e;if(t&&!ct(t))throw new Vt({address:t});if(n&&!ct(n))throw new Vt({address:n})}const Hw={blockTime:2e3,contracts:z_,formatters:U_,serializers:$_},ec=1,Uc=Pm({...Hw,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...Hw.contracts,disputeGameFactory:{[ec]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[ec]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[ec]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[ec]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:ec});({...Uc});const e1=Pm({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 Q_=n6(),yr=function(){return yr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},yr.apply(this,arguments)};function _3(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function G_(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Ju="right-scroll-bar-position",Zu="width-before-scroll-bar",K_="with-scroll-bars-hidden",Y_="--removed-body-scroll-bar-size";function Eh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function J_(e,t){var n=R.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var Z_=typeof window<"u"?R.useLayoutEffect:R.useEffect,Vw=new WeakMap;function X_(e,t){var n=J_(null,function(r){return e.forEach(function(i){return Eh(i,r)})});return Z_(function(){var r=Vw.get(n);if(r){var i=new Set(r),a=new Set(e),c=n.current;i.forEach(function(u){a.has(u)||Eh(u,null)}),a.forEach(function(u){i.has(u)||Eh(u,c)})}Vw.set(n,e)},[e]),n}function eP(e){return e}function tP(e,t){t===void 0&&(t=eP);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var c=t(a,r);return n.push(c),function(){n=n.filter(function(u){return u!==c})}},assignSyncMedium:function(a){for(r=!0;n.length;){var c=n;n=[],c.forEach(a)}n={push:function(u){return a(u)},filter:function(){return n}}},assignMedium:function(a){r=!0;var c=[];if(n.length){var u=n;n=[],u.forEach(a),c=n}var d=function(){var p=c;c=[],p.forEach(a)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(p){c.push(p),f()},filter:function(p){return c=c.filter(p),n}}}};return i}function nP(e){e===void 0&&(e={});var t=tP(null);return t.options=yr({async:!0,ssr:!1},e),t}var P3=function(e){var t=e.sideCar,n=_3(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return R.createElement(r,yr({},n))};P3.isSideCarExport=!0;function rP(e,t){return e.useMedium(t),P3}var T3=nP(),Ah=function(){},Kd=R.forwardRef(function(e,t){var n=R.useRef(null),r=R.useState({onScrollCapture:Ah,onWheelCapture:Ah,onTouchMoveCapture:Ah}),i=r[0],a=r[1],c=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,p=e.enabled,g=e.shards,m=e.sideCar,y=e.noIsolation,w=e.inert,b=e.allowPinchZoom,C=e.as,A=C===void 0?"div":C,I=e.gapMode,k=_3(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,j=X_([n,t]),P=yr(yr({},k),i);return R.createElement(R.Fragment,null,p&&R.createElement(S,{sideCar:T3,removeScrollBar:f,shards:g,noIsolation:y,inert:w,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:I}),c?R.cloneElement(R.Children.only(u),yr(yr({},P),{ref:j})):R.createElement(A,yr({},P,{className:d,ref:j}),u))});Kd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Kd.classNames={fullWidth:Zu,zeroRight:Ju};var oP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function iP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=oP();return t&&e.setAttribute("nonce",t),e}function sP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function aP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cP=function(){var e=0,t=null;return{add:function(n){e==0&&(t=iP())&&(sP(t,n),aP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lP=function(){var e=cP();return function(t,n){R.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},O3=function(){var e=lP(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},uP={left:0,top:0,right:0,gap:0},kh=function(e){return parseInt(e||"",10)||0},dP=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[kh(n),kh(r),kh(i)]},fP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return uP;var t=dP(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},hP=O3(),Rs="data-scroll-locked",pP=function(e,t,n,r){var i=e.left,a=e.top,c=e.right,u=e.gap;return n===void 0&&(n="margin"),`
1671
+ .`.concat(K_,` {
1672
+ overflow: hidden `).concat(r,`;
1673
+ padding-right: `).concat(u,"px ").concat(r,`;
1674
+ }
1675
+ body[`).concat(Rs,`] {
1676
+ overflow: hidden `).concat(r,`;
1677
+ overscroll-behavior: contain;
1678
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
1679
+ padding-left: `.concat(i,`px;
1680
+ padding-top: `).concat(a,`px;
1681
+ padding-right: `).concat(c,`px;
1682
+ margin-left:0;
1683
+ margin-top:0;
1684
+ margin-right: `).concat(u,"px ").concat(r,`;
1685
+ `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
1686
+ }
1687
+
1688
+ .`).concat(Ju,` {
1689
+ right: `).concat(u,"px ").concat(r,`;
1690
+ }
1691
+
1692
+ .`).concat(Zu,` {
1693
+ margin-right: `).concat(u,"px ").concat(r,`;
1694
+ }
1695
+
1696
+ .`).concat(Ju," .").concat(Ju,` {
1697
+ right: 0 `).concat(r,`;
1698
+ }
1699
+
1700
+ .`).concat(Zu," .").concat(Zu,` {
1701
+ margin-right: 0 `).concat(r,`;
1702
+ }
1703
+
1704
+ body[`).concat(Rs,`] {
1705
+ `).concat(Y_,": ").concat(u,`px;
1706
+ }
1707
+ `)},Qw=function(){var e=parseInt(document.body.getAttribute(Rs)||"0",10);return isFinite(e)?e:0},mP=function(){R.useEffect(function(){return document.body.setAttribute(Rs,(Qw()+1).toString()),function(){var e=Qw()-1;e<=0?document.body.removeAttribute(Rs):document.body.setAttribute(Rs,e.toString())}},[])},gP=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;mP();var a=R.useMemo(function(){return fP(i)},[i]);return R.createElement(hP,{styles:pP(a,!t,i,n?"":"!important")})},qp=!1;if(typeof window<"u")try{var Fu=Object.defineProperty({},"passive",{get:function(){return qp=!0,!0}});window.addEventListener("test",Fu,Fu),window.removeEventListener("test",Fu,Fu)}catch{qp=!1}var Es=qp?{passive:!1}:!1,yP=function(e){return e.tagName==="TEXTAREA"},R3=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!yP(e)&&n[t]==="visible")},vP=function(e){return R3(e,"overflowY")},wP=function(e){return R3(e,"overflowX")},Gw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=N3(e,r);if(i){var a=M3(e,r),c=a[1],u=a[2];if(c>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},bP=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},xP=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},N3=function(e,t){return e==="v"?vP(t):wP(t)},M3=function(e,t){return e==="v"?bP(t):xP(t)},CP=function(e,t){return e==="h"&&t==="rtl"?-1:1},EP=function(e,t,n,r,i){var a=CP(e,window.getComputedStyle(t).direction),c=a*r,u=n.target,d=t.contains(u),f=!1,p=c>0,g=0,m=0;do{var y=M3(e,u),w=y[0],b=y[1],C=y[2],A=b-C-a*w;(w||A)&&N3(e,u)&&(g+=A,m+=w),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(p&&Math.abs(g)<1||!p&&Math.abs(m)<1)&&(f=!0),f},zu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Kw=function(e){return[e.deltaX,e.deltaY]},Yw=function(e){return e&&"current"in e?e.current:e},AP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},kP=function(e){return`
1708
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
1709
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
1710
+ `)},SP=0,As=[];function IP(e){var t=R.useRef([]),n=R.useRef([0,0]),r=R.useRef(),i=R.useState(SP++)[0],a=R.useState(O3)[0],c=R.useRef(e);R.useEffect(function(){c.current=e},[e]),R.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var b=G_([e.lockRef.current],(e.shards||[]).map(Yw),!0).filter(Boolean);return b.forEach(function(C){return C.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),b.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=R.useCallback(function(b,C){if("touches"in b&&b.touches.length===2||b.type==="wheel"&&b.ctrlKey)return!c.current.allowPinchZoom;var A=zu(b),I=n.current,k="deltaX"in b?b.deltaX:I[0]-A[0],S="deltaY"in b?b.deltaY:I[1]-A[1],j,P=b.target,_=Math.abs(k)>Math.abs(S)?"h":"v";if("touches"in b&&_==="h"&&P.type==="range")return!1;var T=Gw(_,P);if(!T)return!0;if(T?j=_:(j=_==="v"?"h":"v",T=Gw(_,P)),!T)return!1;if(!r.current&&"changedTouches"in b&&(k||S)&&(r.current=j),!j)return!0;var D=r.current||j;return EP(D,C,b,D==="h"?k:S)},[]),d=R.useCallback(function(b){var C=b;if(!(!As.length||As[As.length-1]!==a)){var A="deltaY"in C?Kw(C):zu(C),I=t.current.filter(function(j){return j.name===C.type&&(j.target===C.target||C.target===j.shadowParent)&&AP(j.delta,A)})[0];if(I&&I.should){C.cancelable&&C.preventDefault();return}if(!I){var k=(c.current.shards||[]).map(Yw).filter(Boolean).filter(function(j){return j.contains(C.target)}),S=k.length>0?u(C,k[0]):!c.current.noIsolation;S&&C.cancelable&&C.preventDefault()}}},[]),f=R.useCallback(function(b,C,A,I){var k={name:b,delta:C,target:A,should:I,shadowParent:jP(A)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(S){return S!==k})},1)},[]),p=R.useCallback(function(b){n.current=zu(b),r.current=void 0},[]),g=R.useCallback(function(b){f(b.type,Kw(b),b.target,u(b,e.lockRef.current))},[]),m=R.useCallback(function(b){f(b.type,zu(b),b.target,u(b,e.lockRef.current))},[]);R.useEffect(function(){return As.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:m}),document.addEventListener("wheel",d,Es),document.addEventListener("touchmove",d,Es),document.addEventListener("touchstart",p,Es),function(){As=As.filter(function(b){return b!==a}),document.removeEventListener("wheel",d,Es),document.removeEventListener("touchmove",d,Es),document.removeEventListener("touchstart",p,Es)}},[]);var y=e.removeScrollBar,w=e.inert;return R.createElement(R.Fragment,null,w?R.createElement(a,{styles:kP(i)}):null,y?R.createElement(gP,{gapMode:e.gapMode}):null)}function jP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const BP=rP(T3,IP);var D3=R.forwardRef(function(e,t){return R.createElement(Kd,yr({},e,{ref:t,sideCar:BP}))});D3.classNames=Kd.classNames;function Jw(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function _P(e,t){var n=e;for(var r of t){if(!(r in n))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));n=n[r]}return n}function L3(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r={};for(var i in e){var a=e[i],c=[...n,i];typeof a=="string"||typeof a=="number"||a==null?r[i]=t(a,c):typeof a=="object"&&!Array.isArray(a)?r[i]=L3(a,t,c):console.warn('Skipping invalid key "'.concat(c.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(a)?"Array":typeof a,'"'))}return r}function Zw(e,t){var n={};if(typeof t=="object"){var r=e;L3(t,(u,d)=>{if(u!=null){var f=_P(r,d);n[Jw(f)]=String(u)}})}else{var i=e;for(var a in i){var c=i[a];c!=null&&(n[Jw(a)]=c)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map(d=>"".concat(d,":").concat(this[d])).join(";")},writable:!1}),n}var ic={exports:{}},PP=ic.exports,Xw;function TP(){return Xw||(Xw=1,(function(e,t){(function(n,r){var i="1.0.41",a="",c="?",u="function",d="undefined",f="object",p="string",g="major",m="model",y="name",w="type",b="vendor",C="version",A="architecture",I="console",k="mobile",S="tablet",j="smarttv",P="wearable",_="embedded",T=500,D="Amazon",Q="Apple",H="ASUS",Z="BlackBerry",G="Browser",le="Chrome",$="Edge",X="Firefox",te="Google",F="Honor",J="Huawei",Y="Lenovo",L="LG",ee="Microsoft",we="Motorola",oe="Nvidia",ce="OnePlus",he="Opera",Ce="OPPO",_e="Samsung",Oe="Sharp",Ve="Sony",Cn="Xiaomi",En="Zebra",Mt="Facebook",An="Chromium OS",zn="Mac OS",kn=" Browser",da=function(Pe,Fe){var Be={};for(var qe in Pe)Fe[qe]&&Fe[qe].length%2===0?Be[qe]=Fe[qe].concat(Pe[qe]):Be[qe]=Pe[qe];return Be},Jo=function(Pe){for(var Fe={},Be=0;Be<Pe.length;Be++)Fe[Pe[Be].toUpperCase()]=Pe[Be];return Fe},Gi=function(Pe,Fe){return typeof Pe===p?Un(Fe).indexOf(Un(Pe))!==-1:!1},Un=function(Pe){return Pe.toLowerCase()},eo=function(Pe){return typeof Pe===p?Pe.replace(/[^\d\.]/g,a).split(".")[0]:r},Zo=function(Pe,Fe){if(typeof Pe===p)return Pe=Pe.replace(/^\s\s*/,a),typeof Fe===d?Pe:Pe.substring(0,T)},to=function(Pe,Fe){for(var Be=0,qe,Wn,Qt,Le,Ie,Gt;Be<Fe.length&&!Ie;){var Xo=Fe[Be],kr=Fe[Be+1];for(qe=Wn=0;qe<Xo.length&&!Ie&&Xo[qe];)if(Ie=Xo[qe++].exec(Pe),Ie)for(Qt=0;Qt<kr.length;Qt++)Gt=Ie[++Wn],Le=kr[Qt],typeof Le===f&&Le.length>0?Le.length===2?typeof Le[1]==u?this[Le[0]]=Le[1].call(this,Gt):this[Le[0]]=Le[1]:Le.length===3?typeof Le[1]===u&&!(Le[1].exec&&Le[1].test)?this[Le[0]]=Gt?Le[1].call(this,Gt,Le[2]):r:this[Le[0]]=Gt?Gt.replace(Le[1],Le[2]):r:Le.length===4&&(this[Le[0]]=Gt?Le[3].call(this,Gt.replace(Le[1],Le[2])):r):this[Le]=Gt||r;Be+=2}},no=function(Pe,Fe){for(var Be in Fe)if(typeof Fe[Be]===f&&Fe[Be].length>0){for(var qe=0;qe<Fe[Be].length;qe++)if(Gi(Fe[Be][qe],Pe))return Be===c?r:Be}else if(Gi(Fe[Be],Pe))return Be===c?r:Be;return Fe.hasOwnProperty("*")?Fe["*"]:Pe},yl={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},fa={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"},Ki={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[C,[y,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[C,[y,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[y,C],[/opios[\/ ]+([\w\.]+)/i],[C,[y,he+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[C,[y,he+" GX"]],[/\bopr\/([\w\.]+)/i],[C,[y,he]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[C,[y,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[C,[y,"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],[y,C],[/quark(?:pc)?\/([-\w\.]+)/i],[C,[y,"Quark"]],[/\bddg\/([\w\.]+)/i],[C,[y,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[C,[y,"UC"+G]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[C,[y,"WeChat"]],[/konqueror\/([\w\.]+)/i],[C,[y,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[C,[y,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[C,[y,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[C,[y,"Smart Lenovo "+G]],[/(avast|avg)\/([\w\.]+)/i],[[y,/(.+)/,"$1 Secure "+G],C],[/\bfocus\/([\w\.]+)/i],[C,[y,X+" Focus"]],[/\bopt\/([\w\.]+)/i],[C,[y,he+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[C,[y,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[C,[y,"Dolphin"]],[/coast\/([\w\.]+)/i],[C,[y,he+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[C,[y,"MIUI"+kn]],[/fxios\/([\w\.-]+)/i],[C,[y,X]],[/\bqihoobrowser\/?([\w\.]*)/i],[C,[y,"360"]],[/\b(qq)\/([\w\.]+)/i],[[y,/(.+)/,"$1Browser"],C],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[y,/(.+)/,"$1"+kn],C],[/samsungbrowser\/([\w\.]+)/i],[C,[y,_e+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[C,[y,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[y,"Sogou Mobile"],C],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[y,C],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[y],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[C,y],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[y,Mt],C],[/(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],[y,C],[/\bgsa\/([\w\.]+) .*safari\//i],[C,[y,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[C,[y,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[C,[y,le+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[y,le+" WebView"],C],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[C,[y,"Android "+G]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[y,C],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[C,[y,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[C,y],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[y,[C,no,yl]],[/(webkit|khtml)\/([\w\.]+)/i],[y,C],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[y,"Netscape"],C],[/(wolvic|librewolf)\/([\w\.]+)/i],[y,C],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[C,[y,X+" 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],[y,[C,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[y,[C,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[A,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[A,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[A,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[A,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[A,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[A,/ower/,a,Un]],[/ sun4\w[;\)]/i],[[A,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[A,Un]]],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,[b,_e],[w,S]],[/\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,[b,_e],[w,k]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[m,[b,Q],[w,k]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[m,[b,Q],[w,S]],[/(macintosh);/i],[m,[b,Q]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[m,[b,Oe],[w,k]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[m,[b,F],[w,S]],[/honor([-\w ]+)[;\)]/i],[m,[b,F],[w,k]],[/\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,[b,J],[w,S]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[m,[b,J],[w,k]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[m,/_/g," "],[b,Cn],[w,S]],[/\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," "],[b,Cn],[w,k]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[m,[b,Ce],[w,k]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[m,[b,no,{OnePlus:["304","403","203"],"*":Ce}],[w,S]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[m,[b,"Vivo"],[w,k]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[m,[b,"Realme"],[w,k]],[/\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,[b,we],[w,k]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[m,[b,we],[w,S]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[m,[b,L],[w,S]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[m,[b,L],[w,k]],[/(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,[b,Y],[w,S]],[/(nokia) (t[12][01])/i],[b,m,[w,S]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[m,/_/g," "],[w,k],[b,"Nokia"]],[/(pixel (c|tablet))\b/i],[m,[b,te],[w,S]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[m,[b,te],[w,k]],[/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,[b,Ve],[w,k]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[m,"Xperia Tablet"],[b,Ve],[w,S]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[m,[b,ce],[w,k]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[m,[b,D],[w,S]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[m,/(.+)/g,"Fire Phone $1"],[b,D],[w,k]],[/(playbook);[-\w\),; ]+(rim)/i],[m,b,[w,S]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[m,[b,Z],[w,k]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[m,[b,H],[w,S]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[m,[b,H],[w,k]],[/(nexus 9)/i],[m,[b,"HTC"],[w,S]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[m,/_/g," "],[w,k]],[/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,[b,"TCL"],[w,S]],[/(itel) ((\w+))/i],[[b,Un],m,[w,no,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[m,[b,"Acer"],[w,S]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[m,[b,"Meizu"],[w,k]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[m,[b,"Ulefone"],[w,k]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[m,[b,"Energizer"],[w,k]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[m,[b,"Cat"],[w,k]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[m,[b,"Smartfren"],[w,k]],[/droid.+; (a(?:015|06[35]|142p?))/i],[m,[b,"Nothing"],[w,k]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[m,[b,"Archos"],[w,S]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[m,[b,"Archos"],[w,k]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[b,m,[w,S]],[/(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],[b,m,[w,k]],[/(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],[b,m,[w,S]],[/(surface duo)/i],[m,[b,ee],[w,S]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[m,[b,"Fairphone"],[w,k]],[/(u304aa)/i],[m,[b,"AT&T"],[w,k]],[/\bsie-(\w*)/i],[m,[b,"Siemens"],[w,k]],[/\b(rct\w+) b/i],[m,[b,"RCA"],[w,S]],[/\b(venue[\d ]{2,7}) b/i],[m,[b,"Dell"],[w,S]],[/\b(q(?:mv|ta)\w+) b/i],[m,[b,"Verizon"],[w,S]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[m,[b,"Barnes & Noble"],[w,S]],[/\b(tm\d{3}\w+) b/i],[m,[b,"NuVision"],[w,S]],[/\b(k88) b/i],[m,[b,"ZTE"],[w,S]],[/\b(nx\d{3}j) b/i],[m,[b,"ZTE"],[w,k]],[/\b(gen\d{3}) b.+49h/i],[m,[b,"Swiss"],[w,k]],[/\b(zur\d{3}) b/i],[m,[b,"Swiss"],[w,S]],[/\b((zeki)?tb.*\b) b/i],[m,[b,"Zeki"],[w,S]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[b,"Dragon Touch"],m,[w,S]],[/\b(ns-?\w{0,9}) b/i],[m,[b,"Insignia"],[w,S]],[/\b((nxa|next)-?\w{0,9}) b/i],[m,[b,"NextBook"],[w,S]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[b,"Voice"],m,[w,k]],[/\b(lvtel\-)?(v1[12]) b/i],[[b,"LvTel"],m,[w,k]],[/\b(ph-1) /i],[m,[b,"Essential"],[w,k]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[m,[b,"Envizen"],[w,S]],[/\b(trio[-\w\. ]+) b/i],[m,[b,"MachSpeed"],[w,S]],[/\btu_(1491) b/i],[m,[b,"Rotor"],[w,S]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[m,[b,oe],[w,S]],[/(sprint) (\w+)/i],[b,m,[w,k]],[/(kin\.[onetw]{3})/i],[[m,/\./g," "],[b,ee],[w,k]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[m,[b,En],[w,S]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[m,[b,En],[w,k]],[/smart-tv.+(samsung)/i],[b,[w,j]],[/hbbtv.+maple;(\d+)/i],[[m,/^/,"SmartTV"],[b,_e],[w,j]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,L],[w,j]],[/(apple) ?tv/i],[b,[m,Q+" TV"],[w,j]],[/crkey/i],[[m,le+"cast"],[b,te],[w,j]],[/droid.+aft(\w+)( bui|\))/i],[m,[b,D],[w,j]],[/(shield \w+ tv)/i],[m,[b,oe],[w,j]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[m,[b,Oe],[w,j]],[/(bravia[\w ]+)( bui|\))/i],[m,[b,Ve],[w,j]],[/(mi(tv|box)-?\w+) bui/i],[m,[b,Cn],[w,j]],[/Hbbtv.*(technisat) (.*);/i],[b,m,[w,j]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,Zo],[m,Zo],[w,j]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[m,[w,j]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[w,j]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[b,m,[w,I]],[/droid.+; (shield)( bui|\))/i],[m,[b,oe],[w,I]],[/(playstation \w+)/i],[m,[b,Ve],[w,I]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[m,[b,ee],[w,I]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[m,[b,_e],[w,P]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[b,m,[w,P]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[m,[b,Ce],[w,P]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[m,[b,Q],[w,P]],[/(opwwe\d{3})/i],[m,[b,ce],[w,P]],[/(moto 360)/i],[m,[b,we],[w,P]],[/(smartwatch 3)/i],[m,[b,Ve],[w,P]],[/(g watch r)/i],[m,[b,L],[w,P]],[/droid.+; (wt63?0{2,3})\)/i],[m,[b,En],[w,P]],[/droid.+; (glass) \d/i],[m,[b,te],[w,P]],[/(pico) (4|neo3(?: link|pro)?)/i],[b,m,[w,P]],[/; (quest( \d| pro)?)/i],[m,[b,Mt],[w,P]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[w,_]],[/(aeobc)\b/i],[m,[b,D],[w,_]],[/(homepod).+mac os/i],[m,[b,Q],[w,_]],[/windows iot/i],[[w,_]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[m,[w,k]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[m,[w,S]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[w,S]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[w,k]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[m,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[C,[y,$+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[y,C],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[C,[y,"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],[y,C],[/ladybird\//i],[[y,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[C,y]],os:[[/microsoft (windows) (vista|xp)/i],[y,C],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[y,[C,no,fa]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[C,no,fa],[y,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[C,/_/g,"."],[y,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[y,zn],[C,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[C,y],[/(ubuntu) ([\w\.]+) like android/i],[[y,/(.+)/,"$1 Touch"],C],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[y,C],[/\(bb(10);/i],[C,[y,Z]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[C,[y,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[C,[y,X+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[C,[y,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[C,[y,"watchOS"]],[/crkey\/([\d\.]+)/i],[C,[y,le+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[y,An],C],[/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],[y,C],[/(sunos) ?([\w\.\d]*)/i],[[y,"Solaris"],C],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[y,C]]},It=function(Pe,Fe){if(typeof Pe===f&&(Fe=Pe,Pe=r),!(this instanceof It))return new It(Pe,Fe).getResult();var Be=typeof n!==d&&n.navigator?n.navigator:r,qe=Pe||(Be&&Be.userAgent?Be.userAgent:a),Wn=Be&&Be.userAgentData?Be.userAgentData:r,Qt=Fe?da(Ki,Fe):Ki,Le=Be&&Be.userAgent==qe;return this.getBrowser=function(){var Ie={};return Ie[y]=r,Ie[C]=r,to.call(Ie,qe,Qt.browser),Ie[g]=eo(Ie[C]),Le&&Be&&Be.brave&&typeof Be.brave.isBrave==u&&(Ie[y]="Brave"),Ie},this.getCPU=function(){var Ie={};return Ie[A]=r,to.call(Ie,qe,Qt.cpu),Ie},this.getDevice=function(){var Ie={};return Ie[b]=r,Ie[m]=r,Ie[w]=r,to.call(Ie,qe,Qt.device),Le&&!Ie[w]&&Wn&&Wn.mobile&&(Ie[w]=k),Le&&Ie[m]=="Macintosh"&&Be&&typeof Be.standalone!==d&&Be.maxTouchPoints&&Be.maxTouchPoints>2&&(Ie[m]="iPad",Ie[w]=S),Ie},this.getEngine=function(){var Ie={};return Ie[y]=r,Ie[C]=r,to.call(Ie,qe,Qt.engine),Ie},this.getOS=function(){var Ie={};return Ie[y]=r,Ie[C]=r,to.call(Ie,qe,Qt.os),Le&&!Ie[y]&&Wn&&Wn.platform&&Wn.platform!="Unknown"&&(Ie[y]=Wn.platform.replace(/chrome os/i,An).replace(/macos/i,zn)),Ie},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 qe},this.setUA=function(Ie){return qe=typeof Ie===p&&Ie.length>T?Zo(Ie,T):Ie,this},this.setUA(qe),this};It.VERSION=i,It.BROWSER=Jo([y,C,g]),It.CPU=Jo([A]),It.DEVICE=Jo([m,b,w,I,k,j,S,P,_]),It.ENGINE=It.OS=Jo([y,C]),e.exports&&(t=e.exports=It),t.UAParser=It;var Ar=typeof n!==d&&(n.jQuery||n.Zepto);if(Ar&&!Ar.ua){var sr=new It;Ar.ua=sr.getResult(),Ar.ua.get=function(){return sr.getUA()},Ar.ua.set=function(Pe){sr.setUA(Pe);var Fe=sr.getResult();for(var Be in Fe)Ar.ua[Be]=Fe[Be]}}})(typeof window=="object"?window:PP)})(ic,ic.exports)),ic.exports}var OP=TP();/*!
1711
+ Copyright (c) 2023 Paul Miller (paulmillr.com)
1712
+ The library paulmillr-qr is dual-licensed under the Apache 2.0 OR MIT license.
1713
+ You can select a license of your choice.
1714
+ Licensed under the Apache License, Version 2.0 (the "License");
1715
+ you may not use this file except in compliance with the License.
1716
+ You may obtain a copy of the License at
1717
+
1718
+ http://www.apache.org/licenses/LICENSE-2.0
1719
+
1720
+ Unless required by applicable law or agreed to in writing, software
1721
+ distributed under the License is distributed on an "AS IS" BASIS,
1722
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1723
+ See the License for the specific language governing permissions and
1724
+ limitations under the License.
1725
+ */const tc={newline:10,reset:27};function RP(e){if(!Number.isSafeInteger(e))throw new Error(`integer expected: ${e}`)}function NP(e){if(!Number.isSafeInteger(e)||e<1||e>40)throw new Error(`Invalid version=${e}. Expected number [1..40]`)}function hi(e,t){return e.toString(2).padStart(t,"0")}function eb(e,t){const n=e%t;return n>=0?n:t+n}function hr(e,t){return new Array(e).fill(t)}function Sh(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}function tb(e){let t=0,n=0;for(const a of e)t=Math.max(t,a.length),n+=a.length;const r=new Uint8Array(n);let i=0;for(let a=0;a<t;a++)for(const c of e)a<c.length&&(r[i++]=c[a]);return r}function MP(){let e,t=1/0;return{add(n,r){n>=t||(e=r,t=n)},get:()=>e,score:()=>t}}function nb(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(n=>{if(typeof n!="string")throw new Error(`alphabet.decode: not string element=${n}`);const r=e.indexOf(n);if(r===-1)throw new Error(`Unknown letter: "${n}". Allowed: ${e}`);return r})},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(n=>{if(RP(n),n<0||n>=e.length)throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${e.length})`);return e[n]})}}}function rb(e){if(e.length!==32)throw new Error("expects 32 element matrix");const t=[1431655765,858993459,252645135,16711935,65535];for(let n=0;n<5;n++){const r=t[n]>>>0,i=1<<n,a=i<<1;for(let c=0;c<32;c+=a)for(let u=0;u<i;u++){const d=c+u,f=d+i,p=e[d]>>>0,g=e[f]>>>0,m=(p>>>i^g)&r;e[d]=(p^m<<i)>>>0,e[f]=(g^m)>>>0}}}const nc=e=>1<<(e&31)>>>0,pi=(e,t)=>t===0?0:t===32?4294967295:(1<<t)-1<<e>>>0;class zt{constructor(t,n){Eo(this,"defined");Eo(this,"value");Eo(this,"tailMask");Eo(this,"words");Eo(this,"fullWords");Eo(this,"height");Eo(this,"width");const{height:r,width:i}=zt.size(t);if(this.height=r,this.width=i,this.tailMask=pi(0,i&31||32),this.words=Math.ceil(i/32)|0,this.fullWords=Math.floor(i/32)|0,this.value=new Uint32Array(this.words*r),this.defined=new Uint32Array(this.value.length),n){if(n.length!==r)throw new Error(`Bitmap: data height mismatch: exp=${r} got=${n.length}`);for(let a=0;a<r;a++){const c=n[a];if(!c||c.length!==i)throw new Error(`Bitmap: data width mismatch at y=${a}: exp=${i} got=${c==null?void 0:c.length}`);for(let u=0;u<i;u++)this.set(u,a,c[u])}}}static size(t,n){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 n!==void 0&&(t={width:Math.min(t.width,n.width),height:Math.min(t.height,n.height)}),t}static fromString(t){t=t.replace(/^\n+/g,"").replace(/\n+$/g,"");const n=t.split(String.fromCharCode(tc.newline)),r=n.length;let i;const a=[];for(const c of n){const u=c.split("").map(d=>{if(d==="X")return!0;if(d===" ")return!1;if(d!=="?")throw new Error(`Bitmap.fromString: unknown symbol=${d}`)});if(i!==void 0&&u.length!==i)throw new Error(`Bitmap.fromString different row sizes: width=${i} cur=${u.length}`);i=u.length,a.push(u)}return i===void 0&&(i=0),new zt({height:r,width:i},a)}point(t){return this.get(t.x,t.y)}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:n,y:r}=this.xy(t);return{height:this.height-r,width:this.width-n}}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=eb(t.x,this.width),t.y=eb(t.y,this.height),t}wordIndex(t,n){return n*this.words+(t>>>5)}bitIndex(t,n){return{word:this.wordIndex(t,n),bit:t&31}}isDefined(t,n){const r=this.wordIndex(t,n),i=nc(t);return(this.defined[r]&i)!==0}get(t,n){const r=this.wordIndex(t,n),i=nc(t);return(this.value[r]&i)!==0}maskWord(t,n,r){const{defined:i,value:a}=this;i[t]|=n,a[t]=a[t]&~n|-r&n}set(t,n,r){r!==void 0&&this.maskWord(this.wordIndex(t,n),nc(t),r)}fillRectConst(t,n,r,i,a){if(r<=0||i<=0||a===void 0)return;const{value:c,defined:u,words:d}=this,f=t>>>5,p=t+r-1>>>5,g=t&31,m=t+r-1&31;for(let y=0;y<i;y++){const w=(n+y)*d;if(f===p){const b=pi(g,m-g+1);this.maskWord(w+f,b,a);continue}this.maskWord(w+f,pi(g,32-g),a);for(let b=f+1;b<p;b++)u[w+b]=4294967295,c[w+b]=a?4294967295:0;this.maskWord(w+p,pi(0,m+1),a)}}rectWords(t,n,r,i,a){for(let c=0;c<i;c++){const u=n+c;for(let d=0;d<r;){const f=t+d,{bit:p,word:g}=this.bitIndex(f,u),m=Math.min(32-p,r-d);a(g,f,d,c,m),d+=m}}}rect(t,n,r){const{x:i,y:a}=this.xy(t),{height:c,width:u}=zt.size(n,this.size({x:i,y:a}));if(typeof r!="function")return this.fillRectConst(i,a,u,c,r),this;const{defined:d,value:f}=this;return this.rectWords(i,a,u,c,(p,g,m,y,w)=>{let b=0,C=f[p];for(let A=0;A<w;A++){const I=nc(g+A),k=r({x:m+A,y},(C&I)!==0);k!==void 0&&(b|=I,C=C&~I|-k&I)}d[p]|=b,f[p]=C}),this}rectRead(t,n,r){const{x:i,y:a}=this.xy(t),{height:c,width:u}=zt.size(n,this.size({x:i,y:a})),{value:d}=this;return this.rectWords(i,a,u,c,(f,p,g,m,y)=>{const w=d[f];for(let b=0;b<y;b++){const C=nc(p+b);r({x:g+b,y:m},(w&C)!==0)}}),this}hLine(t,n,r){return this.rect(t,{width:n,height:1},r)}vLine(t,n,r){return this.rect(t,{width:1,height:n},r)}border(t=2,n){const r=this.height+2*t,i=this.width+2*t,a=new zt({height:r,width:i});return a.rect(0,1/0,n),a.embed({x:t,y:t},this),a}embed(t,n){const{x:r,y:i}=this.xy(t),{height:a,width:c}=zt.size(n.size(),this.size({x:r,y:i}));if(c<=0||a<=0)return this;const{value:u,defined:d}=this,{words:f,value:p}=n;for(let g=0;g<a;g++){const m=g*f;for(let y=0;y<c;){const w=r+y,{word:b,bit:C}=this.bitIndex(w,i+g),{word:A,bit:I}=n.bitIndex(y,g),k=Math.min(32-C,c-y),S=p[A],j=I&&A+1<m+f?p[A+1]:0,P=I?(S>>>I|j<<32-I)>>>0:S,_=pi(C,k),T=(P&pi(0,k))<<C>>>0;d[b]|=_,u[b]=u[b]&~_|T,y+=k}}return this}rectSlice(t,n=this.size()){const{x:r,y:i}=this.xy(t),{height:a,width:c}=zt.size(n,this.size({x:r,y:i})),u=new zt({height:a,width:c});return this.rectRead({x:r,y:i},{height:a,width:c},(d,f)=>{this.isDefined(r+d.x,i+d.y)&&u.set(d.x,d.y,f)}),u}transpose(){const{height:t,width:n,value:r,defined:i,words:a}=this,c=new zt({height:n,width:t}),{words:u,value:d,defined:f,tailMask:p}=c,g=new Uint32Array(32),m=new Uint32Array(32);for(let y=0;y<t;y+=32)for(let w=0;w<a;w++){const b=Math.min(32,t-y);for(let C=0;C<b;C++){const A=this.wordIndex(32*w,y+C);g[C]=r[A],m[C]=i[A]}g.fill(0,b),m.fill(0,b),rb(g),rb(m);for(let C=0;C<32;C++){const A=w*32+C;if(A>=n)break;const I=c.wordIndex(y,A),k=y>>>5===u-1?p:4294967295;d[I]=g[C]&k,f[I]=m[C]&k}}return c}negate(){const t=this.defined.length;for(let n=0;n<t;n++)this.value[n]=~this.value[n],this.defined[n]=4294967295;return this}scale(t){if(!Number.isSafeInteger(t)||t>1024)throw new Error(`invalid scale factor: ${t}`);const{height:n,width:r}=this;return new zt({height:t*n,width:t*r}).rect({x:0,y:0},1/0,({x:a,y:c})=>this.get(a/t|0,c/t|0))}clone(){const t=new zt(this.size());return t.defined.set(this.defined),t.value.set(this.value),t}assertDrawn(){const{height:t,width:n,defined:r,tailMask:i,fullWords:a,words:c}=this;if(!(!t||!n))for(let u=0;u<t;u++){const d=u*c;for(let f=0;f<a;f++)if(r[d+f]!==4294967295)throw new Error("Invalid color type=undefined");if(c!==a&&(r[d+a]&i)!==i)throw new Error("Invalid color type=undefined")}}countPatternInRow(t,n,...r){if(n<=0||n>=32)throw new Error("wrong patternLen");const i=(1<<n)-1,{width:a,value:c,words:u}=this;let d=0;const f=this.wordIndex(0,t);for(let p=0,g=0;p<u;p++){const m=c[f+p],y=p===u-1&&a&31||32;for(let w=0;w<y;w++)if(g=(g<<1|m>>>w&1)&i,!(p*32+w+1<n)){for(const b of r)if(g===b){d++;break}}}return d}getRuns(t,n){const{width:r,value:i,words:a}=this;if(r===0)return;let c=0,u;const d=this.wordIndex(0,t);for(let f=0;f<a;f++){const p=i[d+f],g=f===a-1&&r&31||32;for(let m=0;m<g;m++){const y=(p&1<<m)!==0;if(y===u){c++;continue}u!==void 0&&n(c,u),u=y,c=1}}u!==void 0&&n(c,u)}popcnt(){const{height:t,width:n,words:r,fullWords:i,tailMask:a}=this;if(!t||!n)return 0;let c=0;for(let u=0;u<t;u++){const d=u*r;for(let f=0;f<i;f++)c+=Sh(this.value[d+f]);r!==i&&(c+=Sh(this.value[d+i]&a))}return c}countBoxes2x2(t){const{width:n,words:r}=this;if(n<2||(t|0)<0||t+1>=this.height)return 0;const i=this.wordIndex(0,t)|0,a=this.wordIndex(0,t+1)|0,u=(n&31)===0?2147483647:pi(0,n-1&31);let d=0;for(let f=0;f<r;f++){const p=this.value[i+f],g=this.value[a+f],m=~(p^g)>>>0,y=f+1<r?this.value[i+f+1]>>>0:0,w=~(p^(p>>>1|(y&1)<<31)>>>0)>>>0,b=f+1<r?this.value[a+f+1]>>>0:0,C=~(g^(g>>>1|(b&1)<<31)>>>0)>>>0;let A=(m&w&C)>>>0;f===r-1&&(A&=u),d+=Sh(A)}return d}toString(){const t=String.fromCharCode(tc.newline);let n="";for(let r=0;r<this.height;r++){let i="";for(let a=0;a<this.width;a++){const c=this.get(a,r);i+=this.isDefined(a,r)?c?"X":" ":"?"}n+=i+(r+1===this.height?"":t)}return n}toRaw(){const t=Array.from({length:this.height},()=>new Array(this.width));for(let n=0;n<this.height;n++){const r=t[n];for(let i=0;i<this.width;i++)r[i]=this.get(i,n)}return t}toASCII(){const{height:t,width:n}=this;let r="";for(let i=0;i<t;i+=2){for(let a=0;a<n;a++){const c=this.get(a,i),u=i+1>=t?!0:this.get(a,i+1);!c&&!u?r+="█":!c&&u?r+="▀":c&&!u?r+="▄":c&&u&&(r+=" ")}r+=String.fromCharCode(tc.newline)}return r}toTerm(){const t=String.fromCharCode(tc.reset),n=t+"[0m",r=t+"[1;47m "+n,i=t+"[40m "+n,a=String.fromCharCode(tc.newline);let c="";for(let u=0;u<this.height;u++){for(let d=0;d<this.width;d++){const f=this.get(d,u);c+=f?i:r}c+=a}return c}toSVG(t=!0){let n=`<svg viewBox="0 0 ${this.width} ${this.height}" xmlns="http://www.w3.org/2000/svg">`,r="",i;return this.rectRead(0,1/0,(a,c)=>{if(!c)return;const{x:u,y:d}=a;if(!t){n+=`<rect x="${u}" y="${d}" width="1" height="1" />`;return}let f=`M${u} ${d}`;if(i){const g=`m${u-i.x} ${d-i.y}`;g.length<=f.length&&(f=g)}const p=u<10?`H${u}`:"h-1";r+=`${f}h1v1${p}Z`,i=a}),t&&(n+=`<path d="${r}"/>`),n+="</svg>",n}toGIF(){const t=u=>[u&255,u>>>8&255],n=[...t(this.width),...t(this.height)],r=[];this.rectRead(0,1/0,(u,d)=>r.push(+(d===!0)));const i=126,a=[71,73,70,56,55,97,...n,246,0,0,255,255,255,...hr(381,0),44,0,0,0,0,...n,0,7],c=Math.floor(r.length/i);for(let u=0;u<c;u++)a.push(i+1,128,...r.slice(i*u,i*(u+1)).map(d=>+d));return a.push(r.length%i+1,128,...r.slice(c*i).map(u=>+u)),a.push(1,129,0,59),new Uint8Array(a)}toImage(t=!1){const{height:n,width:r}=this.size(),i=new Uint8Array(n*r*(t?3:4));let a=0;for(let c=0;c<n;c++)for(let u=0;u<r;u++){const d=this.get(u,c)?0:255;i[a++]=d,i[a++]=d,i[a++]=d,t||(i[a++]=255)}return{height:n,width:r,data:i}}}const ob=["low","medium","quartile","high"],ib=["numeric","alphanumeric","byte","kanji","eci"],DP=[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],LP={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]},FP={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]},Nt={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,n=Nt.size.encode(e)-t-1,r=n-t,i=Math.ceil(r/28);let a=Math.floor(r/i);a%2?a+=1:r%i*2>=i&&(a+=2);const c=[t];for(let u=1;u<i;u++)c.push(n-(i-u)*a);return c.push(n),c},ECCode:{low:1,medium:0,quartile:3,high:2},formatMask:21522,formatBits(e,t){const n=Nt.ECCode[e]<<3|t;let r=n;for(let i=0;i<10;i++)r=r<<1^(r>>9)*1335;return(n<<10|r)^Nt.formatMask},versionBits(e){let t=e;for(let n=0;n<12;n++)t=t<<1^(t>>11)*7973;return e<<12|t},alphabet:{numeric:nb("0123456789"),alphanumerc:nb("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][Nt.sizeType(e)]},modeBits:{numeric:"0001",alphanumeric:"0010",byte:"0100",kanji:"1000",eci:"0111"},capacity(e,t){const n=DP[e-1],r=LP[t][e-1],i=FP[t][e-1],a=Math.floor(n/i)-r,c=i-n%i;return{words:r,numBlocks:i,shortBlocks:c,blockLen:a,capacity:(n-r*i)*8,total:(r+a)*i+i-c}}},t1=[(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],me={tables:(e=>{const t=hr(256,0),n=hr(256,0);for(let r=0,i=1;r<256;r++)t[r]=i,n[i]=r,i<<=1,i&256&&(i^=e);return{exp:t,log:n}})(285),exp:e=>me.tables.exp[e],log(e){if(e===0)throw new Error(`GF.log: invalid arg=${e}`);return me.tables.log[e]%255},mul(e,t){return e===0||t===0?0:me.tables.exp[(me.tables.log[e]+me.tables.log[t])%255]},add:(e,t)=>e^t,pow:(e,t)=>me.tables.exp[me.tables.log[e]*t%255],inv(e){if(e===0)throw new Error(`GF.inverse: invalid arg=${e}`);return me.tables.exp[255-me.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 n=hr(e+1,0);return n[0]=t,me.polynomial(n)},degree:e=>e.length-1,coefficient:(e,t)=>e[me.degree(e)-t],mulPoly(e,t){if(e[0]===0||t[0]===0)return[0];const n=hr(e.length+t.length-1,0);for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)n[r+i]=me.add(n[r+i],me.mul(e[r],t[i]));return me.polynomial(n)},mulPolyScalar(e,t){if(t==0)return[0];if(t==1)return e;const n=hr(e.length,0);for(let r=0;r<e.length;r++)n[r]=me.mul(e[r],t);return me.polynomial(n)},mulPolyMonomial(e,t,n){if(t<0)throw new Error("GF.mulPolyMonomial: invalid degree");if(n==0)return[0];const r=hr(e.length+t,0);for(let i=0;i<e.length;i++)r[i]=me.mul(e[i],n);return me.polynomial(r)},addPoly(e,t){if(e[0]===0)return t;if(t[0]===0)return e;let n=e,r=t;n.length>r.length&&([n,r]=[r,n]);let i=hr(r.length,0),a=r.length-n.length,c=r.slice(0,a);for(let u=0;u<c.length;u++)i[u]=c[u];for(let u=a;u<r.length;u++)i[u]=me.add(n[u-a],r[u]);return me.polynomial(i)},remainderPoly(e,t){const n=Array.from(e);for(let r=0;r<e.length-t.length+1;r++){const i=n[r];if(i!==0)for(let a=1;a<t.length;a++)t[a]!==0&&(n[r+a]=me.add(n[r+a],me.mul(t[a],i)))}return n.slice(e.length-t.length+1,n.length)},divisorPoly(e){let t=[1];for(let n=0;n<e;n++)t=me.mulPoly(t,[1,me.pow(2,n)]);return t},evalPoly(e,t){if(t==0)return me.coefficient(e,0);let n=e[0];for(let r=1;r<e.length;r++)n=me.add(me.mul(t,n),e[r]);return n},euclidian(e,t,n){me.degree(e)<me.degree(t)&&([e,t]=[t,e]);let r=e,i=t,a=[0],c=[1];for(;2*me.degree(i)>=n;){let f=r,p=a;if(r=i,a=c,r[0]===0)throw new Error("rLast[0] === 0");i=f;let g=[0];const m=me.inv(r[0]);for(;me.degree(i)>=me.degree(r)&&i[0]!==0;){const y=me.degree(i)-me.degree(r),w=me.mul(i[0],m);g=me.addPoly(g,me.monomial(y,w)),i=me.addPoly(i,me.mulPolyMonomial(r,y,w))}if(g=me.mulPoly(g,a),c=me.addPoly(g,p),me.degree(i)>=me.degree(r))throw new Error(`Division failed r: ${i}, rLast: ${r}`)}const u=me.coefficient(c,0);if(u==0)throw new Error("sigmaTilde(0) was zero");const d=me.inv(u);return[me.mulPolyScalar(c,d),me.mulPolyScalar(i,d)]}};function zP(e){return{encode(t){const n=me.divisorPoly(e),r=Array.from(t);return r.push(...n.slice(0,-1).fill(0)),Uint8Array.from(me.remainderPoly(r,n))},decode(t){const n=t.slice(),r=me.polynomial(Array.from(t));let i=hr(e,0),a=!1;for(let g=0;g<e;g++){const m=me.evalPoly(r,me.exp(g));i[i.length-1-g]=m,m!==0&&(a=!0)}if(!a)return n;i=me.polynomial(i);const c=me.monomial(e,1),[u,d]=me.euclidian(c,i,e),f=hr(me.degree(u),0);let p=0;for(let g=1;g<256&&p<f.length;g++)me.evalPoly(u,g)===0&&(f[p++]=me.inv(g));if(p!==f.length)throw new Error("RS.decode: invalid errors number");for(let g=0;g<f.length;g++){const m=n.length-1-me.log(f[g]);if(m<0)throw new Error("RS.decode: invalid error location");const y=me.inv(f[g]);let w=1;for(let b=0;b<f.length;b++)g!==b&&(w=me.mul(w,me.add(1,me.mul(f[b],y))));n[m]=me.add(n[m],me.mul(me.evalPoly(d,y),me.inv(w)))}return n}}}function UP(e,t){const{words:n,shortBlocks:r,numBlocks:i,blockLen:a,total:c}=Nt.capacity(e,t),u=zP(n);return{encode(d){const f=[],p=[];for(let w=0;w<i;w++){const b=w<r,C=a+(b?0:1);f.push(d.subarray(0,C)),p.push(u.encode(d.subarray(0,C))),d=d.subarray(C)}const g=tb(f),m=tb(p),y=new Uint8Array(g.length+m.length);return y.set(g),y.set(m,g.length),y},decode(d){if(d.length!==c)throw new Error(`interleave.decode: len(data)=${d.length}, total=${c}`);const f=[];for(let m=0;m<i;m++){const y=m<r;f.push(new Uint8Array(n+a+(y?0:1)))}let p=0;for(let m=0;m<a;m++)for(let y=0;y<i;y++)f[y][m]=d[p++];for(let m=r;m<i;m++)f[m][a]=d[p++];for(let m=a;m<a+n;m++)for(let y=0;y<i;y++){const w=y<r;f[y][m+(w?0:1)]=d[p++]}const g=[];for(const m of f)g.push(...Array.from(u.decode(m)).slice(0,-n));return Uint8Array.from(g)}}}function WP(e,t,n,r=!1){const i=Nt.size.encode(e);let a=new zt(i+2);const c=new zt(3).rect(0,3,!0).border(1,!1).border(1,!0).border(1,!1);a=a.embed(0,c).embed({x:-c.width,y:0},c).embed({x:0,y:-c.height},c),a=a.rectSlice(1,i);const u=new zt(1).rect(0,1,!0).border(1,!1).border(1,!0),d=Nt.alignmentPatterns(e);for(const f of d)for(const p of d)a.isDefined(p,f)||a.embed({x:p-2,y:f-2},u);a=a.hLine({x:0,y:6},1/0,({x:f})=>a.isDefined(f,6)?void 0:f%2==0).vLine({x:6,y:0},1/0,({y:f})=>a.isDefined(6,f)?void 0:f%2==0);{const f=Nt.formatBits(t,n),p=g=>!r&&(f>>g&1)==1;for(let g=0;g<6;g++)a.set(8,g,p(g));for(let g=6;g<8;g++)a.set(8,g+1,p(g));for(let g=8;g<15;g++)a.set(8,i-15+g,p(g));for(let g=0;g<8;g++)a.set(i-g-1,8,p(g));for(let g=8;g<9;g++)a.set(15-g-1+1,8,p(g));for(let g=9;g<15;g++)a.set(15-g-1,8,p(g));a.set(8,i-8,!r)}if(e>=7){const f=Nt.versionBits(e);for(let p=0;p<18;p+=1){const g=!r&&(f>>p&1)==1,m=Math.floor(p/3),y=p%3+i-8-3;a.set(y,m,g),a.set(m,y,g)}}return a}function $P(e,t,n){const r=e.height,i=t1[t];let a=-1,c=r-1;for(let u=r-1;u>0;u-=2){for(u==6&&(u=5);;c+=a){for(let d=0;d<2;d+=1){const f=u-d;e.isDefined(f,c)||n(f,c,i(f,c))}if(c+a<0||c+a>=r)break}a=-a}}function qP(e){let t="numeric";for(let n of e)if(!Nt.alphabet.numeric.has(n)&&(t="alphanumeric",!Nt.alphabet.alphanumerc.has(n)))return"byte";return t}function HP(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function sb(e,t,n,r,i=HP){let a="",c=n.length;if(r==="numeric"){const m=Nt.alphabet.numeric.decode(n.split("")),y=m.length;for(let w=0;w<y-2;w+=3)a+=hi(m[w]*100+m[w+1]*10+m[w+2],10);y%3===1?a+=hi(m[y-1],4):y%3===2&&(a+=hi(m[y-2]*10+m[y-1],7))}else if(r==="alphanumeric"){const m=Nt.alphabet.alphanumerc.decode(n.split("")),y=m.length;for(let w=0;w<y-1;w+=2)a+=hi(m[w]*45+m[w+1],11);y%2==1&&(a+=hi(m[y-1],6))}else if(r==="byte"){const m=i(n);c=m.length,a=Array.from(m).map(y=>hi(y,8)).join("")}else throw new Error("encode: unsupported type");const{capacity:u}=Nt.capacity(e,t),d=hi(c,Nt.lengthBits(e,r));let f=Nt.modeBits[r]+d+a;if(f.length>u)throw new Error("Capacity overflow");f+="0".repeat(Math.min(4,Math.max(0,u-f.length))),f.length%8&&(f+="0".repeat(8-f.length%8));const p="1110110000010001";for(let m=0;f.length!==u;m++)f+=p[m%p.length];const g=Uint8Array.from(f.match(/(.{8})/g).map(m=>+`0b${m}`));return UP(e,t).encode(g)}function ab(e,t,n,r,i=!1){const a=WP(e,t,r,i);let c=0;const u=8*n.length;if($P(a,r,(d,f,p)=>{let g=!1;c<u&&(g=(n[c>>>3]>>(7-c&7)&1)!==0,c++),a.set(d,f,g!==p)}),c!==u)throw new Error("QR: bytes left after draw");return a}const F3=e=>{const t=e.map(n=>n?"1":"0").join("");return{len:t.length,n:+`0b${t}`}},z3=[!0,!1,!0,!0,!0,!1,!0],U3=[!1,!1,!1,!1],Uu=F3([...z3,...U3]),cb=F3([...U3,...z3]);function VP(e){const{width:t,height:n}=e,r=e.transpose();let i=0;for(let p=0;p<n;p++)e.getRuns(p,g=>{g>=5&&(i+=3+(g-5))});for(let p=0;p<t;p++)r.getRuns(p,g=>{g>=5&&(i+=3+(g-5))});let a=0;for(let p=0;p<n-1;p++)a+=3*e.countBoxes2x2(p);let c=0;for(let p=0;p<n;p++)c+=40*e.countPatternInRow(p,Uu.len,Uu.n,cb.n);for(let p=0;p<t;p++)c+=40*r.countPatternInRow(p,Uu.len,Uu.n,cb.n);let u=0;u=e.popcnt();const d=u/(n*t)*100,f=10*Math.floor(Math.abs(d-50)/5);return i+a+c+f}function QP(e,t,n,r){if(r===void 0){const i=MP();for(let a=0;a<t1.length;a++)i.add(VP(ab(e,t,n,a,!0)),a);r=i.get()}if(r===void 0)throw new Error("Cannot find mask");return ab(e,t,n,r)}function GP(e){if(!ob.includes(e))throw new Error(`Invalid error correction mode=${e}. Expected: ${ob}`)}function KP(e){if(!ib.includes(e))throw new Error(`Encoding: invalid mode=${e}. Expected: ${ib}`);if(e==="kanji"||e==="eci")throw new Error(`Encoding: ${e} is not supported (yet?).`)}function YP(e){if(![0,1,2,3,4,5,6,7].includes(e)||!t1[e])throw new Error(`Invalid mask=${e}. Expected number [0..7]`)}function JP(e,t="raw",n={}){const r=n.ecc!==void 0?n.ecc:"medium";GP(r);const i=n.encoding!==void 0?n.encoding:qP(e);KP(i),n.mask!==void 0&&YP(n.mask);let a=n.version,c,u=new Error("Unknown error");if(a!==void 0)NP(a),c=sb(a,r,e,i,n.textEncoder);else for(let p=1;p<=40;p++)try{c=sb(p,r,e,i,n.textEncoder),a=p;break}catch(g){u=g}if(!a||!c)throw u;let d=QP(a,r,c,n.mask);d.assertDrawn();const f=n.border===void 0?2:n.border;if(!Number.isSafeInteger(f))throw new Error(`invalid border type=${typeof f}`);if(d=d.border(f,!1),n.scale!==void 0&&(d=d.scale(n.scale)),t==="raw")return d.toRaw();if(t==="ascii")return d.toASCII();if(t==="svg")return d.toSVG(n.optimize);if(t==="gif")return d.toGIF();if(t==="term")return d.toTerm();throw new Error(`Unknown output: ${t}`)}function ZP(e,t={}){const{errorCorrection:n,version:r}=t,i=JP(e,"raw",{border:0,ecc:n,scale:1,version:r});return{edgeLength:i.length,finderLength:7,grid:i,value:e}}function vr(e){const{arena:t,...n}=e;return W.jsxs(vr.Root,{...n,children:[W.jsx(vr.Finder,{}),W.jsx(vr.Cells,{}),t&&W.jsx(vr.Arena,{children:typeof t=="string"?W.jsx("img",{alt:"Arena",src:t,style:{borderRadius:1,height:"100%",objectFit:"cover",width:"100%"}}):t})]})}(function(e){e.Context=R.createContext(null);function t(a){const{children:c,size:u="100%",value:d,version:f,errorCorrection:p,...g}=a,m=R.useMemo(()=>(R.Children.map(c,k=>!R.isValidElement(k)||typeof k.type=="string"?null:"displayName"in k.type&&k.type.displayName==="Arena"?!0:null)??[]).some(Boolean),[c]),y=R.useMemo(()=>{let k=p;return m&&p==="low"&&(k="medium"),ZP(d,{errorCorrection:k,version:f})},[d,m,p,f]),w=1,b=y.edgeLength*w,C=y.finderLength*w/2,A=m?Math.floor(b/4):0,I=R.useMemo(()=>({arenaSize:A,cellSize:w,edgeSize:b,qrcode:y,finderSize:C}),[A,b,y,C]);return W.jsx(e.Context.Provider,{value:I,children:W.jsxs("svg",{...g,width:u,height:u,viewBox:`0 0 ${b} ${b}`,xmlns:"http://www.w3.org/2000/svg",children:[W.jsx("title",{children:"QR Code"}),c]})})}e.Root=t,(function(a){a.displayName="Root"})(t=e.Root||(e.Root={}));function n(a){const{className:c,fill:u,innerClassName:d,radius:f=.25}=a,{cellSize:p,edgeSize:g,finderSize:m}=R.useContext(e.Context);function y({position:w}){let b=m-(m-p)-p/2;w==="top-right"&&(b=g-m-(m-p)-p/2);let C=m-(m-p)-p/2;w==="bottom-left"&&(C=g-m-(m-p)-p/2);let A=m-p*1.5;w==="top-right"&&(A=g-m-p*1.5);let I=m-p*1.5;return w==="bottom-left"&&(I=g-m-p*1.5),W.jsxs(W.Fragment,{children:[W.jsx("rect",{className:c,stroke:u??"currentColor",fill:"transparent",x:b,y:C,width:p+(m-p)*2,height:p+(m-p)*2,rx:2*f*(m-p),ry:2*f*(m-p),strokeWidth:p}),W.jsx("rect",{className:d,fill:u??"currentColor",x:A,y:I,width:p*3,height:p*3,rx:2*f*p,ry:2*f*p})]})}return W.jsxs(W.Fragment,{children:[W.jsx(y,{position:"top-left"}),W.jsx(y,{position:"top-right"}),W.jsx(y,{position:"bottom-left"})]})}e.Finder=n,(function(a){a.displayName="Finder"})(n=e.Finder||(e.Finder={}));function r(a){const{className:c,fill:u="currentColor",inset:d=!0,radius:f=1}=a,{arenaSize:p,cellSize:g,qrcode:m}=R.useContext(e.Context),{edgeLength:y,finderLength:w}=m,b=R.useMemo(()=>{let C="";for(let A=0;A<m.grid.length;A++){const I=m.grid[A];if(I)for(let k=0;k<I.length;k++){if(!I[k])continue;const j=y/2-p/2,P=j+p;if(A>=j&&A<=P&&k>=j&&k<=P)continue;const _=A<w&&k<w,T=A<w&&k>=y-w,D=A>=y-w&&k<w;if(_||T||D)continue;const Q=d?g*.1:0,H=(g-Q*2)/2,Z=k*g+g/2,G=A*g+g/2,le=Z-H,$=Z+H,X=G-H,te=G+H,F=f*H;C+=[`M ${le+F},${X}`,`L ${$-F},${X}`,`A ${F},${F} 0 0,1 ${$},${X+F}`,`L ${$},${te-F}`,`A ${F},${F} 0 0,1 ${$-F},${te}`,`L ${le+F},${te}`,`A ${F},${F} 0 0,1 ${le},${te-F}`,`L ${le},${X+F}`,`A ${F},${F} 0 0,1 ${le+F},${X}`,"z"].join(" ")}}return C},[p,g,y,w,m.grid,d,f]);return W.jsx("path",{className:c,d:b,fill:u})}e.Cells=r,(function(a){a.displayName="Cells"})(r=e.Cells||(e.Cells={}));function i(a){const{children:c}=a,{arenaSize:u,cellSize:d,edgeSize:f}=R.useContext(e.Context),p=Math.ceil(f/2-u/2),g=u+u%2,m=d/2;return W.jsx("foreignObject",{x:p,y:p,width:g,height:g,children:W.jsx("div",{style:{alignItems:"center",display:"flex",fontSize:1,justifyContent:"center",height:"100%",overflow:"hidden",width:"100%",padding:m,boxSizing:"border-box"},children:c})})}e.Arena=i,(function(a){a.displayName="Arena"})(i=e.Arena||(e.Arena={}))})(vr||(vr={}));function XP(e={}){let t,n,r,i;return a=>({id:"baseAccount",name:"Base Account",rdns:"app.base.account",type:"baseAccount",async connect({chainId:c,withCapabilities:u,...d}={}){var f;try{const p=await this.getProvider(),g=c??((f=a.chains[0])==null?void 0:f.id);if(!g)throw new Go;const m=await p.request({method:"wallet_connect",params:[{capabilities:"capabilities"in d&&d.capabilities?d.capabilities:{},chainIds:[ae(g),...a.chains.filter(b=>b.id!==g).map(b=>ae(b.id))]}]}),y=m.accounts.map(b=>({address:pt(b.address),capabilities:b.capabilities??{}}));let w=Number(m.chainIds[0]);if(n||(n=this.onAccountsChanged.bind(this),p.on("accountsChanged",n)),r||(r=this.onChainChanged.bind(this),p.on("chainChanged",r)),i||(i=this.onDisconnect.bind(this),p.on("disconnect",i)),c&&w!==c){const b=await this.switchChain({chainId:c}).catch(C=>{if(C.code===We.code)throw C;return{id:w}});w=(b==null?void 0:b.id)??w}return{accounts:u?y:y.map(b=>b.address),chainId:w}}catch(p){throw/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(p.message)?new We(p):p}},async disconnect(){const c=await this.getProvider();n&&(c.removeListener("accountsChanged",n),n=void 0),r&&(c.removeListener("chainChanged",r),r=void 0),i&&(c.removeListener("disconnect",i),i=void 0),c.disconnect()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(u=>pt(u))},async getChainId(){const u=await(await this.getProvider()).request({method:"eth_chainId"});return Number(u)},async getProvider(){if(!t){const c=(()=>{var f;return typeof e.preference=="string"?{options:e.preference}:{...e.preference,options:((f=e.preference)==null?void 0:f.options)??"all"}})(),{createBaseAccountSDK:u}=await de(async()=>{const{createBaseAccountSDK:f}=await import("./index-DKS1QV9i.js");return{createBaseAccountSDK:f}},[]);t=u({...e,appChainIds:a.chains.map(f=>f.id),preference:c}).getProvider()}return t},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:c,chainId:u}){var p,g,m,y;const d=a.chains.find(w=>w.id===u);if(!d)throw new wn(new Go);const f=await this.getProvider();try{return await f.request({method:"wallet_switchEthereumChain",params:[{chainId:ae(d.id)}]}),d}catch(w){if(w.code===4902)try{let b;c!=null&&c.blockExplorerUrls?b=c.blockExplorerUrls:b=(p=d.blockExplorers)!=null&&p.default.url?[(g=d.blockExplorers)==null?void 0:g.default.url]:[];let C;(m=c==null?void 0:c.rpcUrls)!=null&&m.length?C=c.rpcUrls:C=[((y=d.rpcUrls.default)==null?void 0:y.http[0])??""];const A={blockExplorerUrls:b,chainId:ae(u),chainName:(c==null?void 0:c.chainName)??d.name,iconUrls:c==null?void 0:c.iconUrls,nativeCurrency:(c==null?void 0:c.nativeCurrency)??d.nativeCurrency,rpcUrls:C};return await f.request({method:"wallet_addEthereumChain",params:[A]}),d}catch(b){throw new We(b)}throw new wn(w)}},onAccountsChanged(c){c.length===0?this.onDisconnect():a.emitter.emit("change",{accounts:c.map(u=>pt(u))})},onChainChanged(c){const u=Number(c);a.emitter.emit("change",{chainId:u})},async onDisconnect(c){a.emitter.emit("disconnect");const u=await this.getProvider();n&&(u.removeListener("accountsChanged",n),n=void 0),r&&(u.removeListener("chainChanged",r),r=void 0),i&&(u.removeListener("disconnect",i),i=void 0)}})}n1.type="metaMask";function n1(e={}){let t,n,r,i,a,c,u,d;return f=>({id:"metaMaskSDK",name:"MetaMask",rdns:["io.metamask","io.metamask.mobile"],type:n1.type,async setup(){const p=await this.getProvider();p!=null&&p.on&&(c||(c=this.onConnect.bind(this),p.on("connect",c)),i||(i=this.onAccountsChanged.bind(this),p.on("accountsChanged",i)))},async connect({chainId:p,isReconnecting:g,withCapabilities:m}={}){const y=await this.getProvider();u||(u=this.onDisplayUri,y.on("display_uri",u));let w=[];g&&(w=await this.getAccounts().catch(()=>[]));try{let b,C;w!=null&&w.length||(e.connectAndSign||e.connectWith?(e.connectAndSign?b=await t.connectAndSign({msg:e.connectAndSign}):e.connectWith&&(C=await t.connectWith({method:e.connectWith.method,params:e.connectWith.params})),w=await this.getAccounts()):w=(await t.connect()).map(k=>pt(k)));let A=await this.getChainId();if(p&&A!==p){const I=await this.switchChain({chainId:p}).catch(k=>{if(k.code===We.code)throw k;return{id:A}});A=(I==null?void 0:I.id)??A}return u&&(y.removeListener("display_uri",u),u=void 0),b?y.emit("connectAndSign",{accounts:w,chainId:A,signResponse:b}):C&&y.emit("connectWith",{accounts:w,chainId:A,connectWithResponse:C}),c&&(y.removeListener("connect",c),c=void 0),i||(i=this.onAccountsChanged.bind(this),y.on("accountsChanged",i)),a||(a=this.onChainChanged.bind(this),y.on("chainChanged",a)),d||(d=this.onDisconnect.bind(this),y.on("disconnect",d)),{accounts:m?w.map(I=>({address:I,capabilities:{}})):w,chainId:A}}catch(b){const C=b;throw C.code===We.code?new We(C):C.code===wr.code?new wr(C):C}},async disconnect(){const p=await this.getProvider();a&&(p.removeListener("chainChanged",a),a=void 0),d&&(p.removeListener("disconnect",d),d=void 0),c||(c=this.onConnect.bind(this),p.on("connect",c)),await t.terminate()},async getAccounts(){return(await(await this.getProvider()).request({method:"eth_accounts"})).map(m=>pt(m))},async getChainId(){const p=await this.getProvider(),g=p.getChainId()||await(p==null?void 0:p.request({method:"eth_chainId"}));return Number(g)},async getProvider(){async function p(){var b,C,A,I,k;const g=await(async()=>{const{default:S}=await de(async()=>{const{default:j}=await import("./metamask-sdk-JLexzI6e.js");return{default:j}},[]);return typeof S!="function"&&typeof S.default=="function"?S.default:S})(),m={};for(const S of f.chains)m[ae(S.id)]=(b=U5({chain:S,transports:f.transports}))==null?void 0:b[0];t=new g({_source:"wagmi",forceDeleteProvider:!1,forceInjectProvider:!1,injectProvider:!1,...e,readonlyRPCMap:m,dappMetadata:{...e.dappMetadata,name:(C=e.dappMetadata)!=null&&C.name?(A=e.dappMetadata)==null?void 0:A.name:"wagmi",url:(I=e.dappMetadata)!=null&&I.url?(k=e.dappMetadata)==null?void 0:k.url:typeof window<"u"?window.location.origin:"https://wagmi.sh"},useDeeplink:e.useDeeplink??!0});const y=await t.init(),w=y!=null&&y.activeProvider?y.activeProvider:t.getProvider();if(!w)throw new gn;return w}return n||(r||(r=p()),n=await r),n},async isAuthorized(){try{return!!(await ea(()=>zd(()=>this.getAccounts(),{timeout:200}),{delay:201,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:p,chainId:g}){var C,A;const m=await this.getProvider(),y=f.chains.find(I=>I.id===g);if(!y)throw new wn(new Go);try{return await m.request({method:"wallet_switchEthereumChain",params:[{chainId:ae(g)}]}),await w(),await b(g),y}catch(I){const k=I;if(k.code===We.code)throw new We(k);if(k.code===4902||((A=(C=k==null?void 0:k.data)==null?void 0:C.originalError)==null?void 0:A.code)===4902)try{return await m.request({method:"wallet_addEthereumChain",params:[{blockExplorerUrls:(()=>{const{default:S,...j}=y.blockExplorers??{};if(p!=null&&p.blockExplorerUrls)return p.blockExplorerUrls;if(S)return[S.url,...Object.values(j).map(P=>P.url)]})(),chainId:ae(g),chainName:(p==null?void 0:p.chainName)??y.name,iconUrls:p==null?void 0:p.iconUrls,nativeCurrency:(p==null?void 0:p.nativeCurrency)??y.nativeCurrency,rpcUrls:(()=>{var S,j;return(S=p==null?void 0:p.rpcUrls)!=null&&S.length?p.rpcUrls:[((j=y.rpcUrls.default)==null?void 0:j.http[0])??""]})()}]}),await w(),await b(g),y}catch(S){const j=S;throw j.code===We.code?new We(j):new wn(j)}throw new wn(k)}async function w(){await ea(async()=>{const I=tr(await m.request({method:"eth_chainId"}));if(I!==g)throw new Error("User rejected switch after adding network.");return I},{delay:50,retryCount:20})}async function b(I){await new Promise(k=>{const S=(j=>{"chainId"in j&&j.chainId===I&&(f.emitter.off("change",S),k())});f.emitter.on("change",S),f.emitter.emit("change",{chainId:I})})}},async onAccountsChanged(p){if(p.length===0)if(t.isExtensionActive())this.onDisconnect();else return;else if(f.emitter.listenerCount("connect")){const g=(await this.getChainId()).toString();this.onConnect({chainId:g})}else f.emitter.emit("change",{accounts:p.map(g=>pt(g))})},onChainChanged(p){const g=Number(p);f.emitter.emit("change",{chainId:g})},async onConnect(p){const g=await this.getAccounts();if(g.length===0)return;const m=Number(p.chainId);f.emitter.emit("connect",{accounts:g,chainId:m});const y=await this.getProvider();c&&(y.removeListener("connect",c),c=void 0),i||(i=this.onAccountsChanged.bind(this),y.on("accountsChanged",i)),a||(a=this.onChainChanged.bind(this),y.on("chainChanged",a)),d||(d=this.onDisconnect.bind(this),y.on("disconnect",d))},async onDisconnect(p){const g=await this.getProvider();p&&p.code===1013&&g&&(await this.getAccounts()).length||(f.emitter.emit("disconnect"),a&&(g.removeListener("chainChanged",a),a=void 0),d&&(g.removeListener("disconnect",d),d=void 0),c||(c=this.onConnect.bind(this),g.on("connect",c)))},onDisplayUri(p){f.emitter.emit("message",{type:"display_uri",data:p})}})}r1.type="safe";function r1(e={}){const{shimDisconnect:t=!1}=e;let n,r;return i=>({id:"safe",name:"Safe",type:r1.type,async connect({withCapabilities:a}={}){var f;const c=await this.getProvider();if(!c)throw new gn;const u=await this.getAccounts(),d=await this.getChainId();return r||(r=this.onDisconnect.bind(this),c.on("disconnect",r)),t&&await((f=i.storage)==null?void 0:f.removeItem("safe.disconnected")),{accounts:a?u.map(p=>({address:p,capabilities:{}})):u,chainId:d}},async disconnect(){var c;const a=await this.getProvider();if(!a)throw new gn;r&&(a.removeListener("disconnect",r),r=void 0),t&&await((c=i.storage)==null?void 0:c.setItem("safe.disconnected",!0))},async getAccounts(){const a=await this.getProvider();if(!a)throw new gn;return(await a.request({method:"eth_accounts"})).map(pt)},async getProvider(){if(typeof window<"u"&&(window==null?void 0:window.parent)!==window){if(!n){const{default:c}=await de(async()=>{const{default:p}=await import("./index-C6-x1f-N.js");return{default:p}},__vite__mapDeps([0,1])),u=new c(e),d=await zd(()=>u.safe.getInfo(),{timeout:e.unstable_getInfoTimeout??10});if(!d)throw new Error("Could not load Safe information");const f=await(async()=>{const p=await de(()=>import("./index-BIyC7YhM.js").then(g=>g.i),__vite__mapDeps([2,1,3]));return typeof p.SafeAppProvider!="function"&&typeof p.default.SafeAppProvider=="function"?p.default.SafeAppProvider:p.SafeAppProvider})();n=new f(d,u)}return n}},async getChainId(){const a=await this.getProvider();if(!a)throw new gn;return Number(a.chainId)},async isAuthorized(){var a;try{return t&&await((a=i.storage)==null?void 0:a.getItem("safe.disconnected"))?!1:!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){i.emitter.emit("disconnect")}})}o1.type="walletConnect";function o1(e){const t=e.isNewChainsStale??!0;let n,r;const i="eip155";let a,c,u,d,f,p;return g=>({id:"walletConnect",name:"WalletConnect",type:o1.type,async setup(){const m=await this.getProvider().catch(()=>null);m&&(u||(u=this.onConnect.bind(this),m.on("connect",u)),f||(f=this.onSessionDelete.bind(this),m.on("session_delete",f)))},async connect({chainId:m,withCapabilities:y,...w}={}){var b,C;try{const A=await this.getProvider();if(!A)throw new gn;d||(d=this.onDisplayUri,A.on("display_uri",d));let I=m;if(!I){const P=await((b=g.storage)==null?void 0:b.getItem("state"))??{};g.chains.some(T=>T.id===P.chainId)?I=P.chainId:I=(C=g.chains[0])==null?void 0:C.id}if(!I)throw new Error("No chains found on connector.");const k=await this.isChainsStale();if(A.session&&k&&await A.disconnect(),!A.session||k){const P=g.chains.filter(_=>_.id!==I).map(_=>_.id);await A.connect({optionalChains:[I,...P],..."pairingTopic"in w?{pairingTopic:w.pairingTopic}:{}}),this.setRequestedChainsIds(g.chains.map(_=>_.id))}const S=(await A.enable()).map(P=>pt(P));let j=await this.getChainId();if(m&&j!==m){const P=await this.switchChain({chainId:m}).catch(_=>{var T;if(_.code===We.code&&((T=_.cause)==null?void 0:T.message)!=="Missing or invalid. request() method: wallet_addEthereumChain")throw _;return{id:j}});j=(P==null?void 0:P.id)??j}return d&&(A.removeListener("display_uri",d),d=void 0),u&&(A.removeListener("connect",u),u=void 0),a||(a=this.onAccountsChanged.bind(this),A.on("accountsChanged",a)),c||(c=this.onChainChanged.bind(this),A.on("chainChanged",c)),p||(p=this.onDisconnect.bind(this),A.on("disconnect",p)),f||(f=this.onSessionDelete.bind(this),A.on("session_delete",f)),{accounts:y?S.map(P=>({address:P,capabilities:{}})):S,chainId:j}}catch(A){throw/(user rejected|connection request reset)/i.test(A==null?void 0:A.message)?new We(A):A}},async disconnect(){const m=await this.getProvider();try{await(m==null?void 0:m.disconnect())}catch(y){if(!/No matching key/i.test(y.message))throw y}finally{c&&(m==null||m.removeListener("chainChanged",c),c=void 0),p&&(m==null||m.removeListener("disconnect",p),p=void 0),u||(u=this.onConnect.bind(this),m==null||m.on("connect",u)),a&&(m==null||m.removeListener("accountsChanged",a),a=void 0),f&&(m==null||m.removeListener("session_delete",f),f=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(y=>pt(y))},async getProvider({chainId:m}={}){var w;async function y(){const b=g.chains.map(A=>A.id);if(!b.length)return;const{EthereumProvider:C}=await de(async()=>{const{EthereumProvider:A}=await import("./index.es-wX32Bxfk.js").then(I=>I.X);return{EthereumProvider:A}},__vite__mapDeps([4,3]));return await C.init({...e,disableProviderPing:!0,optionalChains:b,projectId:e.projectId,rpcMap:Object.fromEntries(g.chains.map(A=>{const[I]=U5({chain:A,transports:g.transports});return[A.id,I]})),showQrModal:e.showQrModal??!0})}return n||(r||(r=y()),n=await r,n==null||n.events.setMaxListeners(Number.POSITIVE_INFINITY)),m&&await((w=this.switchChain)==null?void 0:w.call(this,{chainId:m})),n},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{const[m,y]=await Promise.all([this.getAccounts(),this.getProvider()]);return m.length?await this.isChainsStale()&&y.session?(await y.disconnect().catch(()=>{}),!1):!0:!1}catch{return!1}},async switchChain({addEthereumChainParameter:m,chainId:y}){var C,A,I;const w=await this.getProvider();if(!w)throw new gn;const b=g.chains.find(k=>k.id===y);if(!b)throw new wn(new Go);try{await Promise.all([new Promise(S=>{const j=({chainId:P})=>{P===y&&(g.emitter.off("change",j),S())};g.emitter.on("change",j)}),w.request({method:"wallet_switchEthereumChain",params:[{chainId:ae(y)}]})]);const k=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...k,y]),b}catch(k){const S=k;if(/(user rejected)/i.test(S.message))throw new We(S);try{let j;m!=null&&m.blockExplorerUrls?j=m.blockExplorerUrls:j=(C=b.blockExplorers)!=null&&C.default.url?[(A=b.blockExplorers)==null?void 0:A.default.url]:[];let P;(I=m==null?void 0:m.rpcUrls)!=null&&I.length?P=m.rpcUrls:P=[...b.rpcUrls.default.http];const _={blockExplorerUrls:j,chainId:ae(y),chainName:(m==null?void 0:m.chainName)??b.name,iconUrls:m==null?void 0:m.iconUrls,nativeCurrency:(m==null?void 0:m.nativeCurrency)??b.nativeCurrency,rpcUrls:P};await w.request({method:"wallet_addEthereumChain",params:[_]});const T=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...T,y]),b}catch(j){throw new We(j)}}},onAccountsChanged(m){m.length===0?this.onDisconnect():g.emitter.emit("change",{accounts:m.map(y=>pt(y))})},onChainChanged(m){const y=Number(m);g.emitter.emit("change",{chainId:y})},async onConnect(m){const y=Number(m.chainId),w=await this.getAccounts();g.emitter.emit("connect",{accounts:w,chainId:y})},async onDisconnect(m){this.setRequestedChainsIds([]),g.emitter.emit("disconnect");const y=await this.getProvider();a&&(y.removeListener("accountsChanged",a),a=void 0),c&&(y.removeListener("chainChanged",c),c=void 0),p&&(y.removeListener("disconnect",p),p=void 0),f&&(y.removeListener("session_delete",f),f=void 0),u||(u=this.onConnect.bind(this),y.on("connect",u))},onDisplayUri(m){g.emitter.emit("message",{type:"display_uri",data:m})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){var y,w,b;return n?((b=(w=(y=n.session)==null?void 0:y.namespaces[i])==null?void 0:w.accounts)==null?void 0:b.map(C=>Number.parseInt(C.split(":")[1]||"",10)))??[]:[]},async getRequestedChainsIds(){var m;return await((m=g.storage)==null?void 0:m.getItem(this.requestedChainsStorageKey))??[]},async isChainsStale(){if(!t)return!1;const m=g.chains.map(b=>b.id),y=this.getNamespaceChainsIds();if(y.length&&!y.some(b=>m.includes(b)))return!1;const w=await this.getRequestedChainsIds();return!m.every(b=>w.includes(b))},async setRequestedChainsIds(m){var y;await((y=g.storage)==null?void 0:y.setItem(this.requestedChainsStorageKey,m))},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}})}var yd={},eT=768,ks=KB({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),W3=c3({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),Hp=t_({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"}}}}}),lb={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)"}},tT={shrink:"_12cbo8i6",shrinkSm:"_12cbo8i7"},nT="_12cbo8i3 ju367v8r",rT={grow:"_12cbo8i4",growLg:"_12cbo8i5"};function st({active:e,hover:t}){return[nT,t&&rT[t],tT[e]]}var $3=R.createContext(null);function oT(){const{adapter:e}=R.useContext($3)??{};if(!e)throw new Error("No authentication adapter found");return e}function Yd(){const e=R.useContext($3);return(e==null?void 0:e.status)??null}function i1(){const e=Yd(),{isConnected:t}=xt();return t?e&&(e==="loading"||e==="unauthenticated")?e:"connected":"disconnected"}function q3(){return typeof navigator<"u"&&/android/i.test(navigator.userAgent)}function iT(){return typeof navigator<"u"&&/iPhone|iPod/.test(navigator.userAgent)}function sT(){return typeof navigator<"u"&&(/iPad/.test(navigator.userAgent)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)}function fl(){return iT()||sT()}function lt(){return q3()||fl()}var aT="iekbcc0",cT={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"},lT=({reset:e,...t})=>{if(!e)return Hp(t);const n=cT[e],r=Hp(t);return u3(aT,n,r)},N=E.forwardRef(({as:e="div",className:t,testId:n,...r},i)=>{const a={},c={};for(const d in r)Hp.properties.has(d)?a[d]=r[d]:c[d]=r[d];const u=lT({reset:typeof e=="string"?e:"div",...a});return E.createElement(e,{className:u3(u,t),...c,"data-testid":n?`rk-${n.replace(/^rk-/,"")}`:void 0,ref:i})});N.displayName="Box";var H3=new Map,Ih=new Map;async function V3(e){const t=Ih.get(e);if(t)return t;const n=async()=>e().then(async i=>(H3.set(e,i),i)),r=n().catch(i=>n().catch(a=>{Ih.delete(e)}));return Ih.set(e,r),r}async function Er(...e){return await Promise.all(e.map(t=>typeof t=="function"?V3(t):t))}function uT(){const[,e]=R.useReducer(t=>t+1,0);return e}function Jd(e){const t=typeof e=="function"?H3.get(e):void 0,n=uT();return R.useEffect(()=>{typeof e=="function"&&!t&&V3(e).then(n)},[e,t,n]),typeof e=="function"?t:e}function bt({alt:e,background:t,borderColor:n,borderRadius:r,useAsImage:i,boxShadow:a,height:c,src:u,width:d,testId:f}){const p=fl(),g=Jd(u),m=g&&/^http/.test(g),[y,w]=R.useReducer(()=>!0,!1);return E.createElement(N,{"aria-label":e,borderRadius:r,boxShadow:a,height:typeof c=="string"?c:void 0,overflow:"hidden",position:"relative",role:"img",style:{background:t,height:typeof c=="number"?c:void 0,width:typeof d=="number"?d:void 0},width:typeof d=="string"?d:void 0,testId:f},E.createElement(N,{...m?{"aria-hidden":!0,as:"img",onLoad:w,src:g}:{"aria-hidden":!0,as:"img",src:g},height:"full",position:"absolute",...p?{WebkitUserSelect:"none"}:{},style:{WebkitTouchCallout:"none",transition:"opacity .15s linear",userSelect:"none",...!i&&m?{opacity:y?1:0}:{}},width:"full"}),n?E.createElement(N,{...typeof n=="object"&&"custom"in n?{style:{borderColor:n.custom}}:{borderColor:n},borderRadius:r,borderStyle:"solid",borderWidth:"1",height:"full",position:"relative",width:"full"}):null)}var dT="_1luule42",fT="_1luule43",hT=e=>R.useMemo(()=>`${e}_${Math.round(Math.random()*1e9)}`,[e]),Wc=({height:e=21,width:t=21})=>{const n=hT("spinner");return E.createElement("svg",{className:dT,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:n},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(#${n})`,height:"21",width:"21",x:"0",y:"0"},E.createElement("div",{className:fT})))},Me=["#FC5C54","#FFD95A","#E95D72","#6A87C8","#5FD0F3","#75C06B","#FFDD86","#5FC6D4","#FF949A","#FF8024","#9BA1A4","#EC66FF","#FF8CBC","#FF9A23","#C5DADB","#A8CE63","#71ABFF","#FFE279","#B6B1B6","#FF6780","#A575FF","#4D82FF","#FFB35A"],ub=[{color:Me[0],emoji:"🌶"},{color:Me[1],emoji:"🤑"},{color:Me[2],emoji:"🐙"},{color:Me[3],emoji:"🫐"},{color:Me[4],emoji:"🐳"},{color:Me[0],emoji:"🤶"},{color:Me[5],emoji:"🌲"},{color:Me[6],emoji:"🌞"},{color:Me[7],emoji:"🐒"},{color:Me[8],emoji:"🐵"},{color:Me[9],emoji:"🦊"},{color:Me[10],emoji:"🐼"},{color:Me[11],emoji:"🦄"},{color:Me[12],emoji:"🐷"},{color:Me[13],emoji:"🐧"},{color:Me[8],emoji:"🦩"},{color:Me[14],emoji:"👽"},{color:Me[0],emoji:"🎈"},{color:Me[8],emoji:"🍉"},{color:Me[1],emoji:"🎉"},{color:Me[15],emoji:"🐲"},{color:Me[16],emoji:"🌎"},{color:Me[17],emoji:"🍊"},{color:Me[18],emoji:"🐭"},{color:Me[19],emoji:"🍣"},{color:Me[1],emoji:"🐥"},{color:Me[20],emoji:"👾"},{color:Me[15],emoji:"🥦"},{color:Me[0],emoji:"👹"},{color:Me[17],emoji:"🙀"},{color:Me[4],emoji:"⛱"},{color:Me[21],emoji:"⛵️"},{color:Me[17],emoji:"🥳"},{color:Me[8],emoji:"🤯"},{color:Me[22],emoji:"🤠"}];function pT(e){let t=0;if(e.length===0)return t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t}function mT(e){const n=Math.abs(pT((typeof e=="string"?e:"").toLowerCase())%ub.length);return ub[n??0]}var gT=({address:e,ensImage:t,size:n})=>{const[r,i]=R.useState(!1);R.useEffect(()=>{if(t){const u=new Image;u.src=t,u.onload=()=>i(!0)}},[t]);const{color:a,emoji:c}=R.useMemo(()=>mT(e),[e]);return t?r?E.createElement(N,{backgroundSize:"cover",borderRadius:"full",position:"absolute",style:{backgroundImage:`url(${t})`,backgroundPosition:"center",height:n,width:n}}):E.createElement(N,{alignItems:"center",backgroundSize:"cover",borderRadius:"full",color:"modalText",display:"flex",justifyContent:"center",position:"absolute",style:{height:n,width:n}},E.createElement(Wc,null)):E.createElement(N,{alignItems:"center",display:"flex",justifyContent:"center",overflow:"hidden",style:{...!t&&{backgroundColor:a},height:n,width:n}},c)},Q3=gT,G3=R.createContext(Q3);function K3({address:e,imageUrl:t,loading:n,size:r}){const i=R.useContext(G3);return E.createElement(N,{"aria-hidden":!0,borderRadius:"full",overflow:"hidden",position:"relative",style:{height:`${r}px`,width:`${r}px`},userSelect:"none"},E.createElement(N,{alignItems:"center",borderRadius:"full",display:"flex",justifyContent:"center",overflow:"hidden",position:"absolute",style:{fontSize:`${Math.round(r*.55)}px`,height:`${r}px`,transform:n?"scale(0.72)":void 0,transition:".25s ease",transitionDelay:n?void 0:".1s",width:`${r}px`,willChange:"transform"},userSelect:"none"},E.createElement(i,{address:e,ensImage:t,size:r})),n&&E.createElement(N,{color:"accentColor",display:"flex",height:"full",position:"absolute",width:"full"},E.createElement(Wc,{height:"100%",width:"100%"})))}var db=()=>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"})),fb={defaultLocale:"en",locale:"en"},yT=class{constructor(e){this.listeners=new Set,this.defaultLocale=fb.defaultLocale,this.enableFallback=!1,this.locale=fb.locale,this.cachedLocales=[],this.translations={};for(const[t,n]of Object.entries(e))this.cachedLocales=[...this.cachedLocales,t],this.translations={...this.translations,...this.flattenTranslation(n,t)}}missingMessage(e){return`[missing: "${this.locale}.${e}" translation]`}flattenTranslation(e,t){const n={},r=(i,a)=>{for(const c of Object.keys(i)){const u=`${a}.${c}`,d=i[c];typeof d=="object"&&d!==null?r(d,u):n[u]=d}};return r(e,t),n}translateWithReplacements(e,t={}){let n=e;for(const r in t){const i=t[r];n=n.replace(`%{${r}}`,i)}return n}t(e,t,n){const r=`${this.locale}.${e}`,i=this.translations[r];if(!i){if(this.enableFallback){const a=`${this.defaultLocale}.${e}`,c=this.translations[a];if(c)return this.translateWithReplacements(c,t)}return n!=null&&n.rawKeyIfTranslationMissing?e:this.missingMessage(e)}return this.translateWithReplacements(i,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)}}},Mn=new yT({en:JSON.parse(Lp),"en-US":JSON.parse(Lp)});Mn.defaultLocale="en-US";Mn.locale="en-US";Mn.enableFallback=!0;var vT=async e=>{switch(e){case"ar":case"ar-AR":return(await de(async()=>{const{default:t}=await import("./ar_AR-44JUQ6EW-BMX-am0v.js");return{default:t}},[])).default;case"de":case"de-DE":return(await de(async()=>{const{default:t}=await import("./de_DE-PYAO5YD6-BWlqPWgO.js");return{default:t}},[])).default;case"en":case"en-US":return(await de(async()=>{const{default:t}=await Promise.resolve().then(()=>$b);return{default:t}},void 0)).default;case"es":case"es-419":return(await de(async()=>{const{default:t}=await import("./es_419-HRGOJ6VT-D-qzxUM-.js");return{default:t}},[])).default;case"fr":case"fr-FR":return(await de(async()=>{const{default:t}=await import("./fr_FR-IGGVC6RM-D8LpUM75.js");return{default:t}},[])).default;case"hi":case"hi-IN":return(await de(async()=>{const{default:t}=await import("./hi_IN-XSKAA3MF-C3QUpWyP.js");return{default:t}},[])).default;case"id":case"id-ID":return(await de(async()=>{const{default:t}=await import("./id_ID-KUOB4UAL-K9y-nRWm.js");return{default:t}},[])).default;case"ja":case"ja-JP":return(await de(async()=>{const{default:t}=await import("./ja_JP-4WRQ63RX-Ct5pF4ug.js");return{default:t}},[])).default;case"ko":case"ko-KR":return(await de(async()=>{const{default:t}=await import("./ko_KR-I2K7AIEP-B5gw8Mwb.js");return{default:t}},[])).default;case"ms":case"ms-MY":return(await de(async()=>{const{default:t}=await import("./ms_MY-6VZW6Q3Z-BtFD07hR.js");return{default:t}},[])).default;case"pt":case"pt-BR":return(await de(async()=>{const{default:t}=await import("./pt_BR-N3XOZ4SV-CvVpfsHb.js");return{default:t}},[])).default;case"ru":case"ru-RU":return(await de(async()=>{const{default:t}=await import("./ru_RU-IITAPRET-DOj6Jzj7.js");return{default:t}},[])).default;case"th":case"th-TH":return(await de(async()=>{const{default:t}=await import("./th_TH-3ZQCKCQE-BcHUN2Q4.js");return{default:t}},[])).default;case"tr":case"tr-TR":return(await de(async()=>{const{default:t}=await import("./tr_TR-QUPUGMUF-CwpF6ZFn.js");return{default:t}},[])).default;case"ua":case"uk-UA":return(await de(async()=>{const{default:t}=await import("./uk_UA-SSN6SV5E-IlYYyRC6.js");return{default:t}},[])).default;case"vi":case"vi-VN":return(await de(async()=>{const{default:t}=await import("./vi_VN-7BUVRNYY-CZ9S75qZ.js");return{default:t}},[])).default;case"zh":case"zh-CN":case"zh-Hans":return(await de(async()=>{const{default:t}=await import("./zh_CN-HJBN674C-Baf0GEeT.js");return{default:t}},[])).default;case"zh-HK":return(await de(async()=>{const{default:t}=await import("./zh_HK-JW3WLRKE-VztJKXL5.js");return{default:t}},[])).default;case"zh-Hant":case"zh-TW":return(await de(async()=>{const{default:t}=await import("./zh_TW-VNNRNXY7-aWfg7Qp4.js");return{default:t}},[])).default;default:return(await de(async()=>{const{default:t}=await Promise.resolve().then(()=>$b);return{default:t}},void 0)).default}};async function hb(e){if(Mn.isLocaleCached(e)){Mn.updateLocale(e);return}const n=await vT(e);Mn.setTranslations(e,JSON.parse(n))}var wT=()=>{var e;if(typeof window<"u"&&typeof navigator<"u"){if((e=navigator.languages)!=null&&e.length)return navigator.languages[0];if(navigator.language)return navigator.language}},ut=R.createContext({i18n:Mn}),bT=({children:e,locale:t})=>{const[n,r]=R.useState(0),i=R.useMemo(()=>wT(),[]);R.useEffect(()=>Mn.onChange(()=>{r(u=>u+1)}),[]),R.useEffect(()=>{t&&t!==Mn.locale?hb(t):!t&&i&&i!==Mn.locale&&hb(i)},[t,i]);const a=R.useMemo(()=>({t:(u,d)=>Mn.t(u,d),i18n:Mn}),[n]);return E.createElement(ut.Provider,{value:a},e)};function Y3(e){return e!=null}var pb={iconBackground:"#7290CC",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./apechain-SX5YFU6N-q5qBv-mp.js");return{default:e}},[])).default},jh={iconBackground:"#96bedc",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./arbitrum-WURIBY6W-CqVkHBr5.js");return{default:e}},[])).default},mb={iconBackground:"#e84141",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./avalanche-KOMJD3XY-Dsn_JPR4.js");return{default:e}},[])).default},Bh={iconBackground:"#0052ff",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./base-OAXLRA4F-CoYTVIiL.js");return{default:e}},[])).default},_h={iconBackground:"#814625",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./berachain-NJECWIVC-DumxnFvf.js");return{default:e}},[])).default},gb={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./blast-V555OVXZ-BbhJh1tj.js");return{default:e}},[])).default},yb={iconBackground:"#ebac0e",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./bsc-N647EYR2-B2nLKXWV.js");return{default:e}},[])).default},vb={iconBackground:"#FCFF52",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./celo-GEP4TUHG-CenIBYLU.js");return{default:e}},[])).default},wb={iconBackground:"#002D74",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./cronos-HJPAQTAE-BEOvlOC4.js");return{default:e}},[])).default},xT={iconBackground:"#A36EFD",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./degen-FQQ4XGHB-CeHTs88l.js");return{default:e}},[])).default},jo={iconBackground:"#484c50",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./ethereum-RGGVA4PY-SWGOlkuk.js");return{default:e}},[])).default},bb={iconBackground:"transparent",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./flow-5FQJFCTK-CUie2reO.js");return{default:e}},[])).default},CT={iconBackground:"#04795c",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./gnosis-37ZC4RBL-B137OtHZ.js");return{default:e}},[])).default},xb={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./gravity-J5YQHTYH-Bj6B0uod.js");return{default:e}},[])).default},ET={iconBackground:"#f9f7ec",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./hardhat-TX56IT5N-CV1FY-wE.js");return{default:e}},[])).default},AT={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./hyperevm-VKPAA4SA-CHwraEsx.js");return{default:e}},[])).default},Cb={iconBackground:"#7132F5",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./ink-FZMYZWHG-62p-5IK5.js");return{default:e}},[])).default},Eb={iconBackground:"transparent",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./kaia-65D2U3PU-JmuLQ4gC.js");return{default:e}},[])).default},Ph={iconBackground:"#ffffff",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./linea-QRMVQ5DY-DuI3vv0d.js");return{default:e}},[])).default},Th={iconBackground:"#ffffff",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./manta-SI27YFEJ-CpVOKa06.js");return{default:e}},[])).default},Ab={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./mantle-CKIUT334-DR2WgqzU.js");return{default:e}},[])).default},kT={iconBackground:"transparent",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./monad-4KWC6TSS-DVXSkpiz.js");return{default:e}},[])).default},Wu={iconBackground:"#ff5a57",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./optimism-HAF2GUT7-ec6Nqxs9.js");return{default:e}},[])).default},Oh={iconBackground:"#9f71ec",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./polygon-WW6ZI7PM-DXlmm4L1.js");return{default:e}},[])).default},ST={iconBackground:"#1273EA",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./ronin-EMCPYXZT-N-QBHZdV.js");return{default:e}},[])).default},IT={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./sanko-RHQYXGM5-OX010CbN.js");return{default:e}},[])).default},jT={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./superposition-HG6MMR2Y-bRkgatRO.js");return{default:e}},[])).default},kb={iconBackground:"#FFEEDA",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./scroll-5OBGQVOV-DJFECiai.js");return{default:e}},[])).default},Sb={iconBackground:"#F50DB4",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./unichain-C5BWO2ZY-BfguYsnu.js");return{default:e}},[])).default},Ib={iconBackground:"#f9f7ec",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./xdc-KJ3TDBYO-DNV6zchh.js");return{default:e}},[])).default},jb={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./zetachain-TLDS5IPW-Udhyw16T.js");return{default:e}},[])).default},Bb={iconBackground:"#f9f7ec",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./zksync-DH7HK5U4-Dt4usFw6.js");return{default:e}},[])).default},Rh={iconBackground:"#000000",iconUrl:async()=>(await de(async()=>{const{default:e}=await import("./zora-FYL5H3IO-iB4wygST.js");return{default:e}},[])).default},BT={apechain:{chainId:33139,name:"ApeChain",...pb},apechainCurtis:{chainId:33111,name:"ApeChain Curtis",...pb},arbitrum:{chainId:42161,name:"Arbitrum",...jh},arbitrumGoerli:{chainId:421613,...jh},arbitrumSepolia:{chainId:421614,...jh},avalanche:{chainId:43114,...mb},avalancheFuji:{chainId:43113,...mb},base:{chainId:8453,name:"Base",...Bh},baseGoerli:{chainId:84531,...Bh},baseSepolia:{chainId:84532,...Bh},berachain:{chainId:80094,name:"Berachain",..._h},berachainArtio:{chainId:80085,name:"Berachain Artio",..._h},berachainBArtio:{chainId:80084,name:"Berachain bArtio",..._h},blast:{chainId:81457,name:"Blast",...gb},blastSepolia:{chainId:168587773,...gb},bsc:{chainId:56,name:"BSC",...yb},bscTestnet:{chainId:97,...yb},celo:{chainId:42220,name:"Celo",...vb},celoAlfajores:{chainId:44787,name:"Celo Alfajores",...vb},cronos:{chainId:25,...wb},cronosTestnet:{chainId:338,...wb},degen:{chainId:666666666,name:"Degen",...xT},flow:{chainId:747,...bb},flowTestnet:{chainId:545,...bb},gnosis:{chainId:100,name:"Gnosis",...CT},goerli:{chainId:5,...jo},gravity:{chainId:1625,name:"Gravity",...xb},gravitySepolia:{chainId:13505,name:"Gravity Sepolia",...xb},hardhat:{chainId:31337,...ET},holesky:{chainId:17e3,...jo},hyperevm:{chainId:999,...AT},ink:{chainId:57073,...Cb},inkSepolia:{chainId:763373,...Cb},kaia:{chainId:8217,name:"Kaia",...Eb},kairos:{chainId:1001,name:"Kairos",...Eb},kovan:{chainId:42,...jo},linea:{chainId:59144,name:"Linea",...Ph},lineaGoerli:{chainId:59140,name:"Linea Goerli",...Ph},lineaSepolia:{chainId:59141,name:"Linea Sepolia",...Ph},localhost:{chainId:1337,...jo},mainnet:{chainId:1,name:"Ethereum",...jo},manta:{chainId:169,name:"Manta",...Th},mantaSepolia:{chainId:3441006,...Th},mantaTestnet:{chainId:3441005,...Th},mantle:{chainId:5e3,...Ab},mantleTestnet:{chainId:5001,...Ab},monadTestnet:{chainId:10143,name:"Monad Testnet",...kT},optimism:{chainId:10,name:"Optimism",...Wu},optimismGoerli:{chainId:420,...Wu},optimismKovan:{chainId:69,...Wu},optimismSepolia:{chainId:11155420,...Wu},polygon:{chainId:137,name:"Polygon",...Oh},polygonAmoy:{chainId:80002,...Oh},polygonMumbai:{chainId:80001,...Oh},rinkeby:{chainId:4,...jo},ronin:{chainId:2020,...ST},ropsten:{chainId:3,...jo},sanko:{chainId:1996,name:"Sanko",...IT},scroll:{chainId:534352,...kb},scrollSepolia:{chainId:534351,...kb},sepolia:{chainId:11155111,...jo},superposition:{chainId:55244,name:"Superposition",...jT},unichain:{chainId:130,...Sb},unichainSepolia:{chainId:1301,...Sb},xdc:{chainId:50,name:"XDC",...Ib},xdcTestnet:{chainId:51,...Ib},zetachain:{chainId:7e3,name:"ZetaChain",...jb},zetachainAthensTestnet:{chainId:7001,name:"Zeta Athens",...jb},zkSync:{chainId:324,name:"zkSync",...Bb},zkSyncTestnet:{chainId:280,...Bb},zora:{chainId:7777777,name:"Zora",...Rh},zoraSepolia:{chainId:999999999,...Rh},zoraTestnet:{chainId:999,...Rh}},_T=Object.fromEntries(Object.values(BT).filter(Y3).map(({chainId:e,...t})=>[e,t])),PT=e=>e.map(t=>{const n=_T[t.id]??{};return{...t,name:n.name??t.name,iconUrl:t.iconUrl??n.iconUrl,iconBackground:t.iconBackground??n.iconBackground}}),s1=R.createContext({chains:[]});function TT({children:e,initialChain:t}){const{chains:n}=et();return E.createElement(s1.Provider,{value:R.useMemo(()=>({chains:PT(n),initialChainId:typeof t=="number"?t:t==null?void 0:t.id}),[n,t])},e)}var Qi=()=>R.useContext(s1).chains,OT=()=>R.useContext(s1).initialChainId,RT=()=>{const e=Qi();return R.useMemo(()=>{const t={};for(const n of e)t[n.id]=n;return t},[e])},J3=R.createContext({showBalance:void 0,setShowBalance:()=>{}});function NT({children:e}){const[t,n]=R.useState();return E.createElement(J3.Provider,{value:{showBalance:t,setShowBalance:n}},e)}var Z3=()=>R.useContext(J3);function MT(){const[e,t]=R.useState(!1);return R.useEffect(()=>(t(!0),()=>{t(!1)}),[]),R.useCallback(()=>e,[e])}function X3(){const e=Qi(),t=e1.id;return e.some(r=>r.id===t)}function DT(e){const t=X3(),n=i=>{try{return F_(i)}catch{}},{data:r}=FB({chainId:e1.id,name:e?n(e):void 0,query:{enabled:t}});return r}async function mi(e,t){if(t={headers:{},method:"get",...t,timeout:t.timeout??1e4},!e)throw new Error("rainbowFetch: Missing url argument");const n=new AbortController,r=setTimeout(()=>n.abort(),t.timeout),{body:i,params:a,headers:c,...u}=t,d=i&&typeof i=="object"?JSON.stringify(t.body):t.body,f=await fetch(`${e}${FT(a)}`,{...u,body:d,headers:{Accept:"application/json","Content-Type":"application/json",...c},signal:n.signal});clearTimeout(r);const p=await LT(f);if(f.ok){const{headers:y,status:w}=f;return{data:p,headers:y,status:w}}throw zT({requestBody:i,response:f,responseBody:typeof p=="string"?{error:p}:p})}function LT(e){const t=e.headers.get("Content-Type");return t!=null&&t.startsWith("application/json")?e.json():e.text()}function FT(e){return e&&Object.keys(e).length?`?${new URLSearchParams(e)}`:""}function zT({requestBody:e,response:t,responseBody:n}){const r=(n==null?void 0:n.error)||(t==null?void 0:t.statusText)||"There was an error with the request.",i=new Error(r);return i.response=t,i.responseBody=n,i.requestBody=e,i}var UT=class{constructor(e={}){const{baseUrl:t="",...n}=e;this.baseUrl=t,this.opts=n}get(e,t){return mi(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"get"})}delete(e,t){return mi(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"delete"})}head(e,t){return mi(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"head"})}options(e,t){return mi(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"options"})}post(e,t,n){return mi(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"post"})}put(e,t,n){return mi(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"put"})}patch(e,t,n){return mi(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"patch"})}};function WT({baseUrl:e,headers:t,params:n,timeout:r}){return new UT({baseUrl:e,headers:t,params:n,timeout:r})}var $T=!!(typeof process<"u"&&typeof yd<"u"&&yd.RAINBOW_PROVIDER_API_KEY),qT=WT({baseUrl:"https://enhanced-provider.rainbow.me",headers:{"x-api-key":typeof process<"u"&&typeof yd<"u"&&yd.RAINBOW_PROVIDER_API_KEY||"LzbasoBiLqltex3VkcQ7LRmL4PtfiiZ1EMJrizrgfonWN6byJReu/l6yrUoo3zLW"}});function HT(e,t,n={}){return[e,t,n]}function Xu(e){return`rk-ens-name-${e}`}function VT(e){try{const t=e?JSON.parse(e):null;return typeof t=="object"?t:null}catch{return null}}function QT(e,t){if(!ct(e))return;const n=new Date,r=new Date(n.getTime()+180*6e4);localStorage.setItem(Xu(e),JSON.stringify({ensName:t,expires:r.getTime()}))}function GT(e){const t=VT(localStorage.getItem(Xu(e)));if(!t)return null;const{ensName:n,expires:r}=t;return typeof n!="string"||Number.isNaN(Number(r))||new Date().getTime()>Number(r)?(localStorage.removeItem(Xu(e)),null):n}async function KT({address:e}){const t=GT(e);if(t)return t;const r=(await qT.get("/v1/resolve-ens",{params:{address:e}})).data.data;return r&&QT(e,r),r}function YT(e){const t=X3(),{data:n}=zB({chainId:e1.id,address:e,query:{enabled:t}}),{data:r}=n3({queryKey:HT("address",e),queryFn:()=>KT({address:e}),enabled:!t&&!!e&&$T,staleTime:10*(60*1e3),retry:1});return n||r}function ex({address:e,includeBalance:t}){const n=YT(e),r=DT(n),{data:i}=r3({address:t?e:void 0});return{ensName:n,ensAvatar:r,balance:i}}function a1(){const{chain:e}=xt();return(e==null?void 0:e.id)??null}var tx="rk-transactions";function JT(e){try{const t=e?JSON.parse(e):{};return typeof t=="object"?t:{}}catch{return{}}}function _b(){return JT(typeof localStorage<"u"?localStorage.getItem(tx):null)}var ZT=/^0x([A-Fa-f0-9]{64})$/;function XT(e){const t=[];return ZT.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 eO({provider:e}){let t=_b(),n=e;const r=new Set,i=new Set,a=new Map;function c(I){n=I}function u(I,k){var S;return((S=t[I])==null?void 0:S[k])??[]}function d(I,k,S){const j=XT(S);if(j.length>0)throw new Error(["Unable to add transaction",...j].join(`
1726
+ `));m(I,k,P=>[{...S,status:"pending"},...P.filter(({hash:_})=>_!==S.hash)])}function f(I,k){m(I,k,()=>[])}function p(I,k,S,j){m(I,k,P=>P.map(_=>_.hash===S?{..._,status:j}:_))}async function g(I,k){await Promise.all(u(I,k).filter(S=>S.status==="pending").map(async S=>{const{confirmations:j,hash:P}=S,_=a.get(P);if(_)return await _;const T=n.waitForTransactionReceipt({confirmations:j,hash:P,timeout:3e5}).then(({status:D})=>{a.delete(P),D!==void 0&&(p(I,k,P,D===0||D==="reverted"?"failed":"confirmed"),b(D))}).catch(()=>{p(I,k,P,"failed")});return a.set(P,T),await T}))}function m(I,k,S){t=_b(),t[I]=t[I]??{};let j=0;const P=10,_=S(t[I][k]??[]).filter(({status:T})=>T==="pending"?!0:j++<=P);t[I][k]=_.length>0?_:void 0,y(),w(),g(I,k)}function y(){localStorage.setItem(tx,JSON.stringify(t))}function w(){for(const I of r)I()}function b(I){for(const k of i)k(I)}function C(I){return r.add(I),()=>{r.delete(I)}}function A(I){return i.add(I),()=>{i.delete(I)}}return{addTransaction:d,clearTransactions:f,getTransactions:u,onTransactionStatus:A,onChange:C,setProvider:c,waitForPendingTransactions:g}}var Pb,nx=E.createContext(null);function tO({children:e}){const t=UB(),{address:n}=xt(),r=a1(),{refetch:i}=r3({address:n,query:{enabled:!1}}),[a]=E.useState(()=>Pb??(Pb=eO({provider:t}))),c=E.useCallback(u=>{u==="success"&&i()},[i]);return E.useEffect(()=>{a.setProvider(t)},[a,t]),E.useEffect(()=>{n&&r&&a.waitForPendingTransactions(n,r)},[a,n,r]),E.useEffect(()=>{if(a&&n&&r)return a.onTransactionStatus(c)},[a,n,r,c]),E.createElement(nx.Provider,{value:a},e)}function rx(){const e=E.useContext(nx);if(!e)throw new Error("Transaction hooks must be used within RainbowKitProvider");return e}function ox(){const e=rx(),{address:t}=xt(),n=a1(),[r,i]=R.useState(()=>e&&t&&n?e.getTransactions(t,n):[]);return R.useEffect(()=>{if(e&&t&&n)return i(e.getTransactions(t,n)),e.onChange(()=>{i(e.getTransactions(t,n))})},[e,t,n]),r}var Tb=e=>typeof e=="function"?e():e;function nO(e,{extends:t}={}){const n={...Zw(lb,Tb(e))};if(!t)return n;const r=Zw(lb,Tb(t));return Object.fromEntries(Object.entries(n).filter(([a,c])=>c!==r[a]))}function Ob(e,t={}){return Object.entries(nO(e,t)).map(([n,r])=>`${n}:${r.replace(/[:;{}</>]/g,"")};`).join("")}var ix={appName:void 0,disclaimer:void 0,learnMoreUrl:"https://learn.rainbow.me/understanding-web3?utm_source=rainbowkit&utm_campaign=learnmore"},hl=R.createContext(ix),sx=R.createContext(!1);function rO(e,t){let n;return()=>{n&&clearTimeout(n),n=setTimeout(()=>{n=null,e()},t)}}var ax=()=>{const[e,t]=R.useState({height:void 0,width:void 0});return R.useEffect(()=>{const n=rO(()=>{t({height:window.innerHeight,width:window.innerWidth})},500);return window.addEventListener("resize",n),n(),()=>window.removeEventListener("resize",n)},[]),e},pl=R.createContext({connector:null,setConnector:()=>{}});function oO({children:e}){const[t,n]=R.useState(null);return E.createElement(pl.Provider,{value:R.useMemo(()=>({connector:t,setConnector:n}),[t])},e)}var ml={COMPACT:"compact",WIDE:"wide"},Zd=R.createContext(ml.WIDE);function iO({children:e,modalSize:t}){const{width:n}=ax(),r=n&&n<eT,{connector:i}=R.useContext(pl);return E.createElement(Zd.Provider,{value:r||i?ml.COMPACT:t},e)}var c1=R.createContext(!1),sO="rk-version";function aO({version:e}){localStorage.setItem(sO,e)}function cO(){const e=R.useCallback(()=>{aO({version:"2.2.10"})},[]);R.useEffect(()=>{e()},[e])}function lO(e,t){const n={};for(const r of e){const i=t(r);i&&(n[i]=r)}return n}function l1(){return typeof navigator<"u"&&typeof navigator.userAgent<"u"&&/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)}function uO(){return typeof document<"u"&&getComputedStyle(document.body).getPropertyValue("--arc-palette-focus")!==""}function u1(){var t,n;if(typeof navigator>"u")return"Browser";const e=(t=navigator.userAgent)==null?void 0:t.toLowerCase();return(n=navigator.brave)!=null&&n.isBrave?"Brave":(e==null?void 0:e.indexOf("edg/"))>-1?"Edge":(e==null?void 0:e.indexOf("op"))>-1?"Opera":uO()?"Arc":(e==null?void 0:e.indexOf("chrome"))>-1?"Chrome":(e==null?void 0:e.indexOf("firefox"))>-1?"Firefox":l1()?"Safari":"Browser"}var dO=OP.UAParser(),{os:d1}=dO;function fO(){return d1.name==="Windows"}function hO(){return d1.name==="Mac OS"}function pO(){return["Ubuntu","Mint","Fedora","Debian","Arch","Linux"].includes(d1.name)}function f1(){return fO()?"Windows":hO()?"macOS":pO()?"Linux":"Desktop"}var mO=e=>{var n,r,i,a,c,u,d,f,p,g,m;const t=u1();return{Arc:(n=e==null?void 0:e.downloadUrls)==null?void 0:n.chrome,Brave:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.chrome,Chrome:(i=e==null?void 0:e.downloadUrls)==null?void 0:i.chrome,Edge:((a=e==null?void 0:e.downloadUrls)==null?void 0:a.edge)||((c=e==null?void 0:e.downloadUrls)==null?void 0:c.chrome),Firefox:(u=e==null?void 0:e.downloadUrls)==null?void 0:u.firefox,Opera:((d=e==null?void 0:e.downloadUrls)==null?void 0:d.opera)||((f=e==null?void 0:e.downloadUrls)==null?void 0:f.chrome),Safari:(p=e==null?void 0:e.downloadUrls)==null?void 0:p.safari,Browser:(g=e==null?void 0:e.downloadUrls)==null?void 0:g.browserExtension}[t]??((m=e==null?void 0:e.downloadUrls)==null?void 0:m.browserExtension)},gO=e=>{var n,r,i;return(fl()?(n=e==null?void 0:e.downloadUrls)==null?void 0:n.ios:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.android)??((i=e==null?void 0:e.downloadUrls)==null?void 0:i.mobile)},yO=e=>{var n,r,i,a,c;const t=f1();return{Windows:(n=e==null?void 0:e.downloadUrls)==null?void 0:n.windows,macOS:(r=e==null?void 0:e.downloadUrls)==null?void 0:r.macos,Linux:(i=e==null?void 0:e.downloadUrls)==null?void 0:i.linux,Desktop:(a=e==null?void 0:e.downloadUrls)==null?void 0:a.desktop}[t]??((c=e==null?void 0:e.downloadUrls)==null?void 0:c.desktop)},cx=(e,t)=>e.some(n=>n.id===t),vO=e=>!!e.isRainbowKitConnector,Rb=e=>{var t;return!!(!e.isRainbowKitConnector&&((t=e.icon)!=null&&t.replace(/\n/g,"").startsWith("data:image"))&&e.uid&&e.name)},wO=(e,t)=>e.id==="walletConnect"&&t?{...e,walletConnectModalConnector:t}:e,bO=({wallets:e,recentWallets:t})=>[...t,...e.filter(n=>!cx(t,n.id))],lx="rk-recent";function xO(e){try{const t=e?JSON.parse(e):[];return Array.isArray(t)?t:[]}catch{return[]}}function ux(){return typeof localStorage<"u"?xO(localStorage.getItem(lx)):[]}function CO(e){return[...new Set(e)]}function EO(e){const t=CO([e,...ux()]);localStorage.setItem(lx,JSON.stringify(t))}function $c(e=!1){var S,j,P;const t=Qi(),n=OT(),{connectAsync:r,connectors:i}=MB(),a=i,{setIsWalletConnectModalOpen:c}=Mx(),u=a.map(_=>({..._,..._.rkDetails||{}}));async function d(_,T){var H,Z;const D=await _.getChainId(),Q=await r({...T,chainId:(T==null?void 0:T.chainId)??n??((H=t.find(({id:G})=>G===D))==null?void 0:H.id)??((Z=t[0])==null?void 0:Z.id),connector:_});return Q&&EO(_.id),Q}async function f(_){try{c(!0),await d(_),c(!1)}catch(T){const D=T.name==="UserRejectedRequestError"||T.message==="Connection request reset. Please try again.";if(c(!1),!D)throw T}}const p=async(_,T)=>{const D=await _.getProvider();return _.id==="coinbase"?D.qrUrl:new Promise(Q=>D.once("display_uri",H=>{Q(T(H))}))},g=u.find(_=>_.id==="walletConnect"&&_.isWalletConnectModalConnector),m=u.filter(Rb).map(_=>({..._,groupIndex:0})),y=u.filter(vO).filter(_=>!_.isWalletConnectModalConnector).filter(_=>e?!m.some(D=>D.id===_.rdns):!0).map(_=>wO(_,g)),w=[...m,...y],b=lO(w,_=>_.id),A=ux().map(_=>b[_]).filter(Boolean).slice(0,3),I=[],k=bO({wallets:w,recentWallets:A});for(const _ of k){if(!_)continue;const T=Rb(_),D=cx(A,_.id);if(T){I.push({..._,iconUrl:_.icon,ready:!0,connect:d.bind(null,_),groupName:"Installed",recent:D});continue}I.push({..._,ready:_.installed??!0,connect:d.bind(null,_),desktopDownloadUrl:yO(_),extensionDownloadUrl:mO(_),groupName:_.groupName,mobileDownloadUrl:gO(_),getQrCodeUri:(S=_.qrCode)!=null&&S.getUri?()=>p(_,_.qrCode.getUri):void 0,getDesktopUri:(j=_.desktop)!=null&&j.getUri?()=>p(_,_.desktop.getUri):void 0,getMobileUri:(P=_.mobile)!=null&&P.getUri?()=>{var Q;return p(_,(Q=_.mobile)==null?void 0:Q.getUri)}:void 0,recent:D,showWalletConnectModal:_.walletConnectModalConnector?()=>f(_.walletConnectModalConnector):void 0})}return I}var dx=async()=>(await de(async()=>{const{default:e}=await import("./assets-Q6ZU7ZJ5-P8HioiAD.js");return{default:e}},[])).default,AO=()=>Er(dx),kO=()=>E.createElement(bt,{background:"#d0d5de",borderRadius:"10",height:"48",src:dx,width:"48"}),fx=async()=>(await de(async()=>{const{default:e}=await import("./login-UP3DZBGS-Db_wM5oQ.js");return{default:e}},[])).default,SO=()=>Er(fx),IO=()=>E.createElement(bt,{background:"#d0d5de",borderRadius:"10",height:"48",src:fx,width:"48"}),be=E.forwardRef(({as:e="div",children:t,className:n,color:r,display:i,font:a="body",id:c,size:u="16",style:d,tabIndex:f,textAlign:p="inherit",weight:g="regular",testId:m},y)=>E.createElement(N,{as:e,className:n,color:r,display:i,fontFamily:a,fontSize:u,fontWeight:g,id:c,ref:y,style:d,tabIndex:f,textAlign:p,testId:m},t));be.displayName="Text";var jO={large:{fontSize:"16",paddingX:"24",paddingY:"10"},medium:{fontSize:"14",height:"28",paddingX:"12",paddingY:"4"},small:{fontSize:"14",paddingX:"10",paddingY:"5"}};function Ht({disabled:e=!1,href:t,label:n,onClick:r,rel:i="noreferrer noopener",size:a="medium",target:c="_blank",testId:u,type:d="primary"}){const f=d==="primary",p=a!=="large",g=lt(),m=e?"actionButtonSecondaryBackground":f?"accentColor":p?"actionButtonSecondaryBackground":null,{fontSize:y,height:w,paddingX:b,paddingY:C}=jO[a],A=!g||!p;return E.createElement(N,{...t?e?{}:{as:"a",href:t,rel:i,target:c}:{as:"button",type:"button"},onClick:e?void 0:r,...A?{borderColor:g&&!p&&!f?"actionButtonBorderMobile":"actionButtonBorder",borderStyle:"solid",borderWidth:"1"}:{},borderRadius:"actionButton",className:!e&&st({active:"shrinkSm",hover:"grow"}),display:"block",paddingX:b,paddingY:C,style:{willChange:"transform"},testId:u,textAlign:"center",transition:"transform",...m?{background:m}:{},...w?{height:w}:{}},E.createElement(be,{color:e?"modalTextSecondary":f?"accentColorForeground":"accentColor",size:y,weight:"bold"},n))}var BO=()=>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"})),Ui=({"aria-label":e="Close",onClose:t})=>{const n=lt();return E.createElement(N,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:n?"0":"1",className:st({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:n?"30":"28",justifyContent:"center",onClick:t,style:{willChange:"transform"},transition:"default",type:"button",width:n?"30":"28"},E.createElement(BO,null))},hx=async()=>(await de(async()=>{const{default:e}=await import("./sign-A7IJEUT5-CGsRnPrd.js");return{default:e}},[])).default;function _O({onClose:e,onCloseModal:t}){const{i18n:n}=R.useContext(ut),[{status:r,...i},a]=E.useState({status:"idle"}),c=oT(),u=R.useCallback(async()=>{try{const w=await c.getNonce();a(b=>({...b,nonce:w}))}catch{a(w=>({...w,errorMessage:n.t("sign_in.message.preparing_error"),status:"idle"}))}},[c,n.t]),d=R.useRef(!1);E.useEffect(()=>{d.current||(d.current=!0,u())},[u]);const f=lt(),{address:p,chain:g}=xt(),{signMessageAsync:m}=$B(),y=async()=>{try{const w=g==null?void 0:g.id,{nonce:b}=i;if(!p||!w||!b)return;a(I=>({...I,errorMessage:void 0,status:"signing"}));const C=c.createMessage({address:p,chainId:w,nonce:b});let A;try{A=await m({message:C})}catch(I){return I instanceof We?a(k=>({...k,status:"idle"})):a(k=>({...k,errorMessage:n.t("sign_in.signature.signing_error"),status:"idle"}))}a(I=>({...I,status:"verifying"}));try{if(await c.verify({message:C,signature:A})){t();return}throw new Error}catch{return a(I=>({...I,errorMessage:n.t("sign_in.signature.verifying_error"),status:"idle"}))}}catch{a({errorMessage:n.t("sign_in.signature.oops_error"),status:"idle"})}};return E.createElement(N,{position:"relative"},E.createElement(N,{display:"flex",paddingRight:"16",paddingTop:"16",position:"absolute",right:"0"},E.createElement(Ui,{onClose:e})),E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:f?"32":"24",padding:"24",paddingX:"18",style:{paddingTop:f?"60px":"36px"}},E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:f?"6":"4",style:{maxWidth:f?320:280}},E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:f?"32":"16"},E.createElement(bt,{height:40,src:hx,width:40}),E.createElement(be,{color:"modalText",size:f?"20":"18",textAlign:"center",weight:"heavy"},n.t("sign_in.label"))),E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:f?"16":"12"},E.createElement(be,{color:"modalTextSecondary",size:f?"16":"14",textAlign:"center"},n.t("sign_in.description")),r==="idle"&&i.errorMessage?E.createElement(be,{color:"error",size:f?"16":"14",textAlign:"center",weight:"bold"},i.errorMessage):null)),E.createElement(N,{alignItems:f?void 0:"center",display:"flex",flexDirection:"column",gap:"8",width:"full"},E.createElement(Ht,{disabled:!i.nonce||r==="signing"||r==="verifying",label:i.nonce?r==="signing"?n.t("sign_in.signature.waiting"):r==="verifying"?n.t("sign_in.signature.verifying"):n.t("sign_in.message.send"):n.t("sign_in.message.preparing"),onClick:y,size:f?"large":"medium",testId:"auth-message-button"}),f?E.createElement(Ht,{label:"Cancel",onClick:e,size:"large",type:"secondary"}):E.createElement(N,{as:"button",borderRadius:"full",className:st({active:"shrink",hover:"grow"}),display:"block",onClick:e,paddingX:"10",paddingY:"5",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},E.createElement(be,{color:"closeButton",size:f?"16":"14",weight:"bold"},n.t("sign_in.message.cancel"))))))}function PO(){const e=Qi(),t=$c(),n=Yd()==="unauthenticated",r=R.useCallback(()=>{Er(...t.map(i=>i.iconUrl),...e.map(i=>i.iconUrl).filter(Y3)),lt()||(AO(),SO()),n&&Er(hx)},[t,e,n]);R.useEffect(()=>{r()},[r])}var px="WALLETCONNECT_DEEPLINK_CHOICE";function TO({mobileUri:e,name:t}){localStorage.setItem(px,JSON.stringify({href:e.split("?")[0],name:t}))}function OO(){localStorage.removeItem(px)}var mx=R.createContext(void 0),Vp="data-rk",gx=e=>({[Vp]:e||""}),RO=e=>{if(e&&!/^[a-zA-Z0-9_]+$/.test(e))throw new Error(`Invalid ID: ${e}`);return e?`[${Vp}="${e}"]`:`[${Vp}]`},NO=()=>{const e=R.useContext(mx);return gx(e)},MO=s3();function DO({appInfo:e,avatar:t,children:n,coolMode:r=!1,id:i,initialChain:a,locale:c,modalSize:u=ml.WIDE,showRecentTransactions:d=!1,theme:f=MO}){if(PO(),cO(),q5({onDisconnect:OO}),typeof f=="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 p=RO(i),g={...ix,...e},m=t??Q3;return E.createElement(TT,{initialChain:a},E.createElement(oO,null,E.createElement(bT,{locale:c},E.createElement(sx.Provider,{value:r},E.createElement(iO,{modalSize:u},E.createElement(c1.Provider,{value:d},E.createElement(tO,null,E.createElement(G3.Provider,{value:m},E.createElement(hl.Provider,{value:g},E.createElement(mx.Provider,{value:i},E.createElement(NT,null,E.createElement(JR,null,f?E.createElement("div",{...gx(i)},E.createElement("style",{dangerouslySetInnerHTML:{__html:[`${p}{${Ob("lightMode"in f?f.lightMode:f)}}`,"darkMode"in f?`@media(prefers-color-scheme:dark){${p}{${Ob(f.darkMode,{extends:f.lightMode})}}}`:null].join("")}}),n):n))))))))))))}var LO="_9pm4ki5 ju367va ju367v15 ju367v8r",FO="_9pm4ki3 ju367v9h ju367vb3 ju367va ju367v2q ju367v8q",Nb=(e,t)=>{const n=e.querySelectorAll("button:not(:disabled), a[href]");n.length!==0&&n[t==="end"?n.length-1:0].focus()};function zO(e){const t=R.useRef(null);return R.useEffect(()=>{const n=document.activeElement;return()=>{var r;(r=n.focus)==null||r.call(n)}},[]),R.useEffect(()=>{if(t.current){const n=t.current.querySelector("[data-auto-focus]");n?n.focus():t.current.focus()}},[]),E.createElement(E.Fragment,null,E.createElement("div",{onFocus:R.useCallback(()=>t.current&&Nb(t.current,"end"),[]),tabIndex:0}),E.createElement("div",{ref:t,style:{outline:"none"},tabIndex:-1,...e}),E.createElement("div",{onFocus:R.useCallback(()=>t.current&&Nb(t.current,"start"),[]),tabIndex:0}))}var UO=e=>e.stopPropagation();function vd({children:e,onClose:t,open:n,titleId:r}){R.useEffect(()=>{const f=p=>n&&p.key==="Escape"&&t();return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[n,t]);const[i,a]=R.useState(!0);R.useEffect(()=>{a(getComputedStyle(window.document.body).overflow!=="hidden")},[]);const c=R.useCallback(()=>t(),[t]),u=NO(),d=lt();return E.createElement(E.Fragment,null,n?Q_.createPortal(E.createElement(D3,{enabled:i},E.createElement(N,{...u},E.createElement(N,{...u,alignItems:d?"flex-end":"center","aria-labelledby":r,"aria-modal":!0,className:FO,onClick:c,position:"fixed",role:"dialog"},E.createElement(zO,{className:LO,onClick:UO,role:"document"},e)))),document.body):null)}var WO="_1ckjpok7",$O="_1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",qO="_1ckjpok4 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",HO="_1ckjpok6 ju367vq",VO="_1ckjpok3 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",QO="_1ckjpok2 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r";function wd({bottomSheetOnMobile:e=!1,children:t,marginTop:n,padding:r="16",paddingBottom:i,wide:a=!1}){const c=lt(),d=R.useContext(Zd)===ml.COMPACT;return E.createElement(N,{marginTop:n},E.createElement(N,{className:[a?c?QO:d?qO:VO:$O,c?HO:null,c&&e?WO:null].join(" ")},E.createElement(N,{padding:r,paddingBottom:i??r},t)))}var Mb=["k","m","b","t"];function $u(e,t=1){return e.toString().replace(new RegExp(`(.+\\.\\d{${t}})\\d+`),"$1").replace(/(\.[1-9]*)0+$/,"$1").replace(/\.$/,"")}function yx(e){if(e<1)return $u(e,3);if(e<10**2)return $u(e,2);if(e<10**4)return new Intl.NumberFormat().format(Number.parseFloat($u(e,1)));const t=10**1;let n=String(e);for(let r=Mb.length-1;r>=0;r--){const i=10**((r+1)*3);if(i<=e){e=e*t/i/t,n=$u(e,1)+Mb[r];break}}return n}function vx(e){return e.length<8?e:`${e.substring(0,4)}…${e.substring(e.length-4)}`}function wx(e){if(!e)return"";const t=e.split("."),n=t.pop();return t.join(".").length>24?`${t.join(".").substring(0,24)}...`:`${t.join(".")}.${n}`}var GO=()=>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"})),KO=()=>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"})),YO=()=>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 JO(){const e=rx(),{address:t}=xt(),n=a1();return R.useCallback(()=>{if(!t||!n)throw new Error("No address or chain ID found");e.clearTransactions(t,n)},[e,t,n])}var bx=e=>{var t,n;return(n=(t=e==null?void 0:e.blockExplorers)==null?void 0:t.default)==null?void 0:n.url},xx=()=>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"})),ZO=()=>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"})),XO=()=>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"})),eR=e=>{switch(e){case"pending":return Wc;case"confirmed":return XO;case"failed":return ZO;default:return Wc}};function tR({tx:e}){const t=lt(),n=eR(e.status),r=e.status==="failed"?"error":"accentColor",{chain:i}=xt(),a=e.status==="confirmed"?"Confirmed":e.status==="failed"?"Failed":"Pending",c=bx(i);return E.createElement(E.Fragment,null,E.createElement(N,{...c?{as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:st({active:"shrink"}),href:`${c}/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(N,{alignItems:"center",display:"flex",flexDirection:"row",gap:t?"16":"14"},E.createElement(N,{color:r},E.createElement(n,null)),E.createElement(N,{display:"flex",flexDirection:"column",gap:t?"3":"1"},E.createElement(N,null,E.createElement(be,{color:"modalText",font:"body",size:t?"16":"14",weight:"bold"},e==null?void 0:e.description)),E.createElement(N,null,E.createElement(be,{color:e.status==="pending"?"modalTextSecondary":r,font:"body",size:"14",weight:t?"medium":"regular"},a)))),c&&E.createElement(N,{alignItems:"center",color:"modalTextDim",display:"flex"},E.createElement(xx,null))))}var nR=3;function rR({address:e}){const t=ox(),n=JO(),{chain:r}=xt(),i=bx(r),a=t.slice(0,nR),c=a.length>0,u=lt(),{appName:d}=R.useContext(hl),{i18n:f}=R.useContext(ut);return E.createElement(E.Fragment,null,E.createElement(N,{display:"flex",flexDirection:"column",gap:"10",paddingBottom:"2",paddingTop:"16",paddingX:u?"8":"18"},c&&E.createElement(N,{paddingBottom:u?"4":"0",paddingTop:"8",paddingX:u?"12":"6"},E.createElement(N,{display:"flex",justifyContent:"space-between"},E.createElement(be,{color:"modalTextSecondary",size:u?"16":"14",weight:"semibold"},f.t("profile.transactions.recent.title")),E.createElement(N,{style:{marginBottom:-6,marginLeft:-10,marginRight:-10,marginTop:-6}},E.createElement(N,{as:"button",background:{hover:"profileForeground"},borderRadius:"actionButton",className:st({active:"shrink"}),onClick:n,paddingX:u?"8":"12",paddingY:u?"4":"5",transition:"default",type:"button"},E.createElement(be,{color:"modalTextSecondary",size:u?"16":"14",weight:"semibold"},f.t("profile.transactions.clear.label")))))),E.createElement(N,{display:"flex",flexDirection:"column",gap:"4"},c?a.map(p=>E.createElement(tR,{key:p.hash,tx:p})):E.createElement(E.Fragment,null,E.createElement(N,{padding:u?"12":"8"},E.createElement(be,{color:"modalTextDim",size:u?"16":"14",weight:u?"medium":"bold"},d?f.t("profile.transactions.description",{appName:d}):f.t("profile.transactions.description_fallback"))),u&&E.createElement(N,{background:"generalBorderDim",height:"1",marginX:"12",marginY:"8"})))),i&&E.createElement(N,{paddingBottom:"18",paddingX:u?"8":"18"},E.createElement(N,{alignItems:"center",as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:st({active:"shrink"}),color:"modalTextDim",display:"flex",flexDirection:"row",href:`${i}/address/${e}`,justifyContent:"space-between",paddingX:"8",paddingY:"12",rel:"noreferrer noopener",style:{willChange:"transform"},target:"_blank",transition:"default",width:"full",...u?{paddingLeft:"12"}:{}},E.createElement(be,{color:"modalText",font:"body",size:u?"16":"14",weight:u?"semibold":"bold"},f.t("profile.explorer.label")),E.createElement(xx,null))))}function Db({action:e,icon:t,label:n,testId:r,url:i}){const a=lt();return E.createElement(N,{...i?{as:"a",href:i,rel:"noreferrer noopener",target:"_blank"}:{as:"button",type:"button"},background:{base:"profileAction",...a?{}:{hover:"profileActionHover"}},borderRadius:"menuButton",boxShadow:"profileDetailsAction",className:st({active:"shrinkSm",hover:a?void 0:"grow"}),display:"flex",onClick:e,padding:a?"6":"8",style:{willChange:"transform"},testId:r,transition:"default",width:"full"},E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:"1",justifyContent:"center",paddingTop:"2",width:"full"},E.createElement(N,{color:"modalText",height:"max"},t),E.createElement(N,null,E.createElement(be,{color:"modalText",size:a?"12":"13",weight:"semibold"},n))))}function oR({address:e,ensAvatar:t,ensName:n,balance:r,onClose:i,onDisconnect:a}){const c=R.useContext(c1),[u,d]=R.useState(!1),f=R.useCallback(()=>{e&&(navigator.clipboard.writeText(e),d(!0))},[e]);if(R.useEffect(()=>{if(u){const C=setTimeout(()=>{d(!1)},1500);return()=>clearTimeout(C)}},[u]),!e)return null;const p=n?wx(n):vx(e),g=r==null?void 0:r.formatted,m=g?yx(Number.parseFloat(g)):void 0,y="rk_profile_title",w=lt(),{i18n:b}=R.useContext(ut);return E.createElement(E.Fragment,null,E.createElement(N,{display:"flex",flexDirection:"column"},E.createElement(N,{background:"profileForeground",padding:"16"},E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:w?"16":"12",justifyContent:"center",margin:"8",style:{textAlign:"center"}},E.createElement(N,{style:{position:"absolute",right:16,top:16,willChange:"transform"}},E.createElement(Ui,{onClose:i}))," ",E.createElement(N,{marginTop:w?"24":"0"},E.createElement(K3,{address:e,imageUrl:t,size:w?82:74})),E.createElement(N,{display:"flex",flexDirection:"column",gap:w?"4":"0",textAlign:"center"},E.createElement(N,{textAlign:"center"},E.createElement(be,{as:"h1",color:"modalText",id:y,size:w?"20":"18",weight:"heavy"},p)),!!r&&E.createElement(N,{textAlign:"center"},E.createElement(be,{as:"h1",color:"modalTextSecondary",id:y,size:w?"16":"14",weight:"semibold"},m," ",r.symbol)))),E.createElement(N,{display:"flex",flexDirection:"row",gap:"8",margin:"2",marginTop:"16"},E.createElement(Db,{action:f,icon:u?E.createElement(GO,null):E.createElement(KO,null),label:u?b.t("profile.copy_address.copied"):b.t("profile.copy_address.label")}),E.createElement(Db,{action:a,icon:E.createElement(YO,null),label:b.t("profile.disconnect.label"),testId:"disconnect-button"}))),c&&E.createElement(E.Fragment,null,E.createElement(N,{background:"generalBorder",height:"1",marginTop:"-1"}),E.createElement(N,null,E.createElement(rR,{address:e})))))}function iR({onClose:e,open:t}){const{address:n}=xt(),{balance:r,ensAvatar:i,ensName:a}=ex({address:n,includeBalance:t}),{disconnect:c}=Ym();return n?E.createElement(E.Fragment,null,n&&E.createElement(vd,{onClose:e,open:t,titleId:"rk_account_modal_title"},E.createElement(wd,{bottomSheetOnMobile:!0,padding:"0"},E.createElement(oR,{address:n,ensAvatar:i,ensName:a,balance:r,onClose:e,onDisconnect:c})))):null}var sR=({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"})),aR="v9horb0",h1=E.forwardRef(({children:e,currentlySelected:t=!1,onClick:n,testId:r,...i},a)=>{const c=lt();return E.createElement(N,{as:"button",borderRadius:"menuButton",disabled:t,display:"flex",onClick:n,ref:a,testId:r,type:"button"},E.createElement(N,{borderRadius:"menuButton",className:[c?aR:void 0,!t&&st({active:"shrink"})],padding:c?"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"},...i},e))});h1.displayName="MenuButton";var cR=({chainId:e,currentChainId:t,switchChain:n,chainIconSize:r,isLoading:i,src:a,name:c,iconBackground:u,idx:d})=>{const f=lt(),{i18n:p}=R.useContext(ut),g=Qi(),m=t===e;return E.createElement(R.Fragment,null,E.createElement(h1,{currentlySelected:m,onClick:m?void 0:()=>n({chainId:e}),testId:`chain-option-${e}`},E.createElement(N,{fontFamily:"body",fontSize:"16",fontWeight:"bold"},E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:r},a&&E.createElement(N,{height:"full",marginRight:"8"},E.createElement(bt,{alt:c,background:u,borderRadius:"full",height:r,src:a,width:r,testId:`chain-option-${e}-icon`})),E.createElement("div",null,c??c)),m&&E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},E.createElement(be,{color:"accentColorForeground",size:"14",weight:"medium"},p.t("chains.connected")),E.createElement(N,{background:"connectionIndicator",borderColor:"selectedOptionBorder",borderRadius:"full",borderStyle:"solid",borderWidth:"1",height:"8",marginLeft:"8",width:"8"})),i&&E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},E.createElement(be,{color:"modalText",size:"14",weight:"medium"},p.t("chains.confirm")),E.createElement(N,{background:"standby",borderRadius:"full",height:"8",marginLeft:"8",width:"8"}))))),f&&d<g.length-1&&E.createElement(N,{background:"generalBorderDim",height:"1",marginX:"8"}))},lR=cR,uR="_18dqw9x0",dR="_18dqw9x1";function fR({onClose:e,open:t}){const{chainId:n}=xt(),{chains:r}=et(),[i,a]=R.useState(null),{switchChain:c}=o3({mutation:{onMutate:({chainId:w})=>{a(w)},onSuccess:()=>{i&&a(null)},onError:()=>{i&&a(null)},onSettled:()=>{e()}}}),{i18n:u}=R.useContext(ut),{disconnect:d}=Ym(),f="rk_chain_modal_title",p=lt(),g=r.some(w=>w.id===n),m=p?"36":"28",y=Qi();return n?E.createElement(vd,{onClose:e,open:t,titleId:f},E.createElement(wd,{bottomSheetOnMobile:!0,paddingBottom:"0"},E.createElement(N,{display:"flex",flexDirection:"column",gap:"14"},E.createElement(N,{display:"flex",flexDirection:"row",justifyContent:"space-between"},p&&E.createElement(N,{width:"30"}),E.createElement(N,{paddingBottom:"0",paddingLeft:"8",paddingTop:"4"},E.createElement(be,{as:"h1",color:"modalText",id:f,size:p?"20":"18",weight:"heavy"},u.t("chains.title"))),E.createElement(Ui,{onClose:e})),!g&&E.createElement(N,{marginX:"8",textAlign:p?"center":"left"},E.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},u.t("chains.wrong_network"))),E.createElement(N,{className:p?dR:uR,display:"flex",flexDirection:"column",gap:"4",padding:"2",paddingBottom:"16"},y.map(({iconBackground:w,iconUrl:b,id:C,name:A},I)=>E.createElement(lR,{key:C,chainId:C,currentChainId:n,switchChain:c,chainIconSize:m,isLoading:i===C,src:b,name:A,iconBackground:w,idx:I})),!g&&E.createElement(E.Fragment,null,E.createElement(N,{background:"generalBorderDim",height:"1",marginX:"8"}),E.createElement(h1,{onClick:()=>d(),testId:"chain-option-disconnect"},E.createElement(N,{color:"error",fontFamily:"body",fontSize:"16",fontWeight:"bold"},E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:m},E.createElement(N,{alignItems:"center",color:"error",height:m,justifyContent:"center",marginRight:"8"},E.createElement(sR,{size:Number(m)})),E.createElement("div",null,u.t("chains.disconnect"))))))))))):null}function hR(e,t){const n={};for(const r of e){const i=t(r);i&&(n[i]||(n[i]=[]),n[i].push(r))}return n}var p1=({children:e,href:t})=>E.createElement(N,{as:"a",color:"accentColor",href:t,rel:"noreferrer",target:"_blank"},e),m1=({children:e})=>E.createElement(be,{color:"modalTextSecondary",size:"12",weight:"medium"},e);function Lb({compactModeEnabled:e=!1,getWallet:t}){const{disclaimer:n,learnMoreUrl:r}=R.useContext(hl),{i18n:i}=R.useContext(ut);return E.createElement(E.Fragment,null,E.createElement(N,{alignItems:"center",color:"accentColor",display:"flex",flexDirection:"column",height:"full",justifyContent:"space-around"},E.createElement(N,{marginBottom:"10"},!e&&E.createElement(be,{color:"modalText",size:"18",weight:"heavy"},i.t("intro.title"))),E.createElement(N,{display:"flex",flexDirection:"column",gap:"32",justifyContent:"center",marginY:"20",style:{maxWidth:312}},E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},E.createElement(N,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},E.createElement(kO,null)),E.createElement(N,{display:"flex",flexDirection:"column",gap:"4"},E.createElement(be,{color:"modalText",size:"14",weight:"bold"},i.t("intro.digital_asset.title")),E.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t("intro.digital_asset.description")))),E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},E.createElement(N,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},E.createElement(IO,null)),E.createElement(N,{display:"flex",flexDirection:"column",gap:"4"},E.createElement(be,{color:"modalText",size:"14",weight:"bold"},i.t("intro.login.title")),E.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t("intro.login.description"))))),E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",margin:"10"},E.createElement(Ht,{label:i.t("intro.get.label"),onClick:t}),E.createElement(N,{as:"a",className:st({active:"shrink",hover:"grow"}),display:"block",href:r,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},E.createElement(be,{color:"accentColor",size:"14",weight:"bold"},i.t("intro.learn_more.label")))),n&&!e&&E.createElement(N,{marginBottom:"8",marginTop:"12",textAlign:"center"},E.createElement(n,{Link:p1,Text:m1}))))}var Cx=()=>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"})),pR=()=>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"})),mR=({"aria-label":e="Info",onClick:t})=>{const n=lt();return E.createElement(N,{alignItems:"center","aria-label":e,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:n?"0":"1",className:st({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:n?"30":"28",justifyContent:"center",onClick:t,style:{willChange:"transform"},transition:"default",type:"button",width:n?"30":"28"},E.createElement(pR,null))},Ex=e=>{const t=R.useRef(null),n=R.useContext(sx),r=Jd(e);return R.useEffect(()=>{if(n&&t.current&&r)return yR(t.current,r)},[n,r]),t},gR=()=>{const e="_rk_coolMode",t=document.getElementById(e);if(t)return t;const n=document.createElement("div");return n.setAttribute("id",e),n.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(n),n},Fb=0;function yR(e,t){Fb++;const n=[15,20,25,35,45],r=35;let i=[],a=!1,c=0,u=0;const d=gR();function f(){const S=n[Math.floor(Math.random()*n.length)],j=Math.random()*10,P=Math.random()*25,_=Math.random()*360,T=Math.random()*35*(Math.random()<=.5?-1:1),D=u-S/2,Q=c-S/2,H=Math.random()<=.5?-1:1,Z=document.createElement("div");Z.innerHTML=`<img src="${t}" width="${S}" height="${S}" style="border-radius: 25%">`,Z.setAttribute("style",["position:absolute","will-change:transform",`top:${D}px`,`left:${Q}px`,`transform:rotate(${_}deg)`].join(";")),d.appendChild(Z),i.push({direction:H,element:Z,left:Q,size:S,speedHorz:j,speedUp:P,spinSpeed:T,spinVal:_,top:D})}function p(){for(const S of i)S.left=S.left-S.speedHorz*S.direction,S.top=S.top-S.speedUp,S.speedUp=Math.min(S.size,S.speedUp-1),S.spinVal=S.spinVal+S.spinSpeed,S.top>=Math.max(window.innerHeight,document.body.clientHeight)+S.size&&(i=i.filter(j=>j!==S),S.element.remove()),S.element.setAttribute("style",["position:absolute","will-change:transform",`top:${S.top}px`,`left:${S.left}px`,`transform:rotate(${S.spinVal}deg)`].join(";"))}let g;function m(){a&&i.length<r&&f(),p(),g=requestAnimationFrame(m)}m();const y="ontouchstart"in window||navigator.msMaxTouchPoints,w=y?"touchstart":"mousedown",b=y?"touchend":"mouseup",C=y?"touchmove":"mousemove",A=S=>{var j,P;"touches"in S?(c=(j=S.touches)==null?void 0:j[0].clientX,u=(P=S.touches)==null?void 0:P[0].clientY):(c=S.clientX,u=S.clientY)},I=S=>{A(S),a=!0},k=()=>{a=!1};return e.addEventListener(C,A,{passive:!1}),e.addEventListener(w,I),e.addEventListener(b,k),e.addEventListener("mouseleave",k),()=>{e.removeEventListener(C,A),e.removeEventListener(w,I),e.removeEventListener(b,k),e.removeEventListener("mouseleave",k);const S=setInterval(()=>{g&&i.length===0&&(cancelAnimationFrame(g),clearInterval(S),--Fb===0&&d.remove())},500)}}var vR="g5kl0l0",Ax=({as:e="button",currentlySelected:t=!1,iconBackground:n,iconUrl:r,name:i,onClick:a,ready:c,recent:u,testId:d,isRainbowKitConnector:f,...p})=>{const g=Ex(r),[m,y]=E.useState(!1),{i18n:w}=E.useContext(ut);return E.createElement(N,{display:"flex",flexDirection:"column",onMouseEnter:()=>y(!0),onMouseLeave:()=>y(!1),ref:g},E.createElement(N,{as:e,borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:t?void 0:[vR,st({active:"shrink"})],disabled:t,onClick:a,padding:"5",style:{willChange:"transform"},testId:d,transition:"default",width:"full",...t?{background:"accentColor",borderColor:"selectedOptionBorder",boxShadow:"selectedWallet"}:{background:{hover:"menuItemBackground"}},...p},E.createElement(N,{color:t?"accentColorForeground":"modalText",disabled:!c,fontFamily:"body",fontSize:"16",fontWeight:"bold",transition:"default"},E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"row",gap:"12"},E.createElement(bt,{background:n,...!m&&f?{borderColor:"actionButtonBorder"}:{},useAsImage:!f,borderRadius:"6",height:"28",src:r,width:"28"}),E.createElement(N,null,E.createElement(N,{style:{marginTop:u?-2:void 0},maxWidth:"200"},i),u&&E.createElement(be,{color:t?"accentColorForeground":"accentColor",size:"12",style:{lineHeight:1,marginTop:-1},weight:"medium"},w.t("connect.recent")))))))};Ax.displayName="ModalSelection";var wR="rk-latest-id";function bR(e){localStorage.setItem(wR,e)}var Nh=(e,t=1)=>{let n=e.replace("#","");n.length===3&&(n=`${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}`);const r=Number.parseInt(n.substring(0,2),16),i=Number.parseInt(n.substring(2,4),16),a=Number.parseInt(n.substring(4,6),16);return t>1&&t<=100&&(t=t/100),`rgba(${r},${i},${a},${t})`},xR=e=>e?[Nh(e,.2),Nh(e,.14),Nh(e,.1)]:null,CR=e=>/^#([0-9a-f]{3}){1,2}$/i.test(e),kx=async()=>(await de(async()=>{const{default:e}=await import("./connect-UA7M4XW6-IY3X6Bmr.js");return{default:e}},[])).default,ER=()=>Er(kx),AR=()=>E.createElement(bt,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:kx,width:"48"}),Sx=async()=>(await de(async()=>{const{default:e}=await import("./create-FASO7PVG-D_rvSpre.js");return{default:e}},[])).default,Ix=()=>Er(Sx),kR=()=>E.createElement(bt,{background:"#e3a5e8",borderColor:"generalBorder",borderRadius:"10",height:"48",src:Sx,width:"48"}),jx=async()=>(await de(async()=>{const{default:e}=await import("./refresh-S4T5V5GX-CwqIaaxK.js");return{default:e}},[])).default,SR=()=>Er(jx),IR=()=>E.createElement(bt,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:jx,width:"48"}),Bx=async()=>(await de(async()=>{const{default:e}=await import("./scan-4UYSQ56Q-CjMz6-XC.js");return{default:e}},[])).default,_x=()=>Er(Bx),jR=()=>E.createElement(bt,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:Bx,width:"48"}),BR="_1vwt0cg0",_R="_1vwt0cg2 ju367v7a ju367v7v",PR="_1vwt0cg3",TR="_1vwt0cg4";function Px({ecc:e="medium",logoBackground:t,logoSize:n=50,logoUrl:r,size:i=200,uri:a}){const u=i-Number.parseInt("20",10)*2,d=Jd(r);return E.createElement(N,{borderColor:"generalBorder",borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:BR,padding:"20",width:"max"},E.createElement(N,{style:{height:u,userSelect:"none",width:u},userSelect:"none"},E.createElement(vr.Root,{errorCorrection:e,size:u,value:a},E.createElement(vr.Cells,{radius:1}),E.createElement(vr.Finder,{radius:.25}),d&&E.createElement(vr.Arena,null,E.createElement("img",{alt:"Wallet Logo",src:d,style:{objectFit:"cover",height:"88%",width:"88%",borderRadius:"22.5%",backgroundColor:t}})))))}var Tx=async()=>{switch(u1()){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}},OR=()=>Er(Tx),Ox=async()=>{switch(f1()){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}},RR=()=>Er(Ox);function NR({getWalletDownload:e,compactModeEnabled:t}){const r=$c().filter(a=>a.isRainbowKitConnector).splice(0,5),{i18n:i}=R.useContext(ut);return E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginTop:"18",width:"full"},E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:"28",height:"full",width:"full"},r==null?void 0:r.filter(a=>{var c;return a.extensionDownloadUrl||a.desktopDownloadUrl||a.qrCode&&((c=a.downloadUrls)==null?void 0:c.qrCode)}).map(a=>{const{downloadUrls:c,iconBackground:u,iconUrl:d,id:f,name:p,qrCode:g}=a,m=(c==null?void 0:c.qrCode)&&g,y=!!a.extensionDownloadUrl,w=(c==null?void 0:c.qrCode)&&y,b=(c==null?void 0:c.qrCode)&&!!a.desktopDownloadUrl;return E.createElement(N,{alignItems:"center",display:"flex",gap:"16",justifyContent:"space-between",key:a.id,width:"full"},E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},E.createElement(bt,{background:u,borderColor:"actionButtonBorder",borderRadius:"10",height:"48",src:d,width:"48"}),E.createElement(N,{display:"flex",flexDirection:"column",gap:"2"},E.createElement(be,{color:"modalText",size:"14",weight:"bold"},p),E.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},w?i.t("get.mobile_and_extension.description"):b?i.t("get.mobile_and_desktop.description"):m?i.t("get.mobile.description"):y?i.t("get.extension.description"):null))),E.createElement(N,{display:"flex",flexDirection:"column",gap:"4"},E.createElement(Ht,{label:i.t("get.action.label"),onClick:()=>e(f),type:"secondary"})))})),E.createElement(N,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"column",gap:"8",justifyContent:"space-between",marginBottom:"4",paddingY:"8",style:{maxWidth:275,textAlign:"center"}},E.createElement(be,{color:"modalText",size:"14",weight:"bold"},i.t("get.looking_for.title")),E.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},t?i.t("get.looking_for.desktop.compact_description"):i.t("get.looking_for.desktop.wide_description"))))}var Mh="44";function MR({changeWalletStep:e,compactModeEnabled:t,connectionError:n,onClose:r,qrCodeUri:i,reconnect:a,wallet:c}){const{downloadUrls:u,iconBackground:d,iconUrl:f,name:p,qrCode:g,ready:m,showWalletConnectModal:y,getDesktopUri:w}=c,b=!!w,C=l1(),{i18n:A}=R.useContext(ut),I=!!c.extensionDownloadUrl,k=(u==null?void 0:u.qrCode)&&I,S=(u==null?void 0:u.qrCode)&&!!c.desktopDownloadUrl,j=g&&i,P=async()=>{const Q=await(w==null?void 0:w());window.open(Q,C?"_blank":"_self")},_=y?{description:t?A.t("connect.walletconnect.description.compact"):A.t("connect.walletconnect.description.full"),label:A.t("connect.walletconnect.open.label"),onClick:()=>{r(),y()}}:j?{description:A.t("connect.secondary_action.get.description",{wallet:p}),label:A.t("connect.secondary_action.get.label"),onClick:()=>e(k||S?"DOWNLOAD_OPTIONS":"DOWNLOAD")}:null,{width:T}=ax(),D=T&&T<768;return R.useEffect(()=>{OR(),RR()},[]),E.createElement(N,{display:"flex",flexDirection:"column",height:"full",width:"full"},j?E.createElement(N,{alignItems:"center",display:"flex",height:"full",justifyContent:"center"},E.createElement(Px,{logoBackground:d,logoSize:t?60:72,logoUrl:f,size:t?318:D?Math.max(280,Math.min(T-308,382)):382,uri:i})):E.createElement(N,{alignItems:"center",display:"flex",justifyContent:"center",style:{flexGrow:1}},E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8"},E.createElement(N,{borderRadius:"10",height:Mh,overflow:"hidden"},E.createElement(bt,{useAsImage:!c.isRainbowKitConnector,height:Mh,src:f,width:Mh})),E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:"4",paddingX:"32",style:{textAlign:"center"}},E.createElement(be,{color:"modalText",size:"18",weight:"bold"},m?A.t("connect.status.opening",{wallet:p}):I?A.t("connect.status.not_installed",{wallet:p}):A.t("connect.status.not_available",{wallet:p})),!m&&I?E.createElement(N,{paddingTop:"20"},E.createElement(Ht,{href:c.extensionDownloadUrl,label:A.t("connect.secondary_action.install.label"),type:"secondary"})):null,m&&!j&&E.createElement(E.Fragment,null,E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},E.createElement(be,{color:"modalTextSecondary",size:"14",textAlign:"center",weight:"medium"},A.t("connect.status.confirm"))),E.createElement(N,{alignItems:"center",color:"modalText",display:"flex",flexDirection:"row",height:"32",marginTop:"8"},n?E.createElement(Ht,{label:A.t("connect.secondary_action.retry.label"),onClick:async()=>{b&&P(),a(c)}}):E.createElement(N,{color:"modalTextSecondary"},E.createElement(Wc,null))))))),E.createElement(N,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"28",justifyContent:"space-between",marginTop:"12"},m&&_&&E.createElement(E.Fragment,null,E.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},_.description),E.createElement(Ht,{label:_.label,onClick:_.onClick,type:"secondary"}))))}var Dh=({actionLabel:e,description:t,iconAccent:n,iconBackground:r,iconUrl:i,isCompact:a,onAction:c,title:u,url:d,variant:f})=>{const p=f==="browser",g=!p&&n&&xR(n);return E.createElement(N,{alignItems:"center",borderRadius:"13",display:"flex",justifyContent:"center",overflow:"hidden",paddingX:a?"18":"44",position:"relative",style:{flex:1,isolation:"isolate"},width:"full"},E.createElement(N,{borderColor:"actionButtonBorder",borderRadius:"13",borderStyle:"solid",borderWidth:"1",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0",zIndex:1}}),p&&E.createElement(N,{background:"downloadTopCardBackground",height:"full",position:"absolute",style:{zIndex:0},width:"full"},E.createElement(N,{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(N,{style:{filter:"blur(100px)",marginLeft:-27,marginTop:-20,opacity:.6,transform:"translate3d(0, 0, 0)"}},E.createElement(bt,{borderRadius:"full",height:"200",src:i,width:"200"})),E.createElement(N,{style:{filter:"blur(100px)",marginRight:0,marginTop:105,opacity:.6,overflow:"auto",transform:"translate3d(0, 0, 0)"}},E.createElement(bt,{borderRadius:"full",height:"200",src:i,width:"200"})))),!p&&g&&E.createElement(N,{background:"downloadBottomCardBackground",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0"}},E.createElement(N,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${g[0]} 0%, ${g[1]} 25%, rgba(0,0,0,0) 100%)`,height:564,left:-215,top:-197,transform:"translate3d(0, 0, 0)",width:564}}),E.createElement(N,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${g[2]} 0%, rgba(0, 0, 0, 0) 100%)`,height:564,left:-1,top:-76,transform:"translate3d(0, 0, 0)",width:564}})),E.createElement(N,{alignItems:"flex-start",display:"flex",flexDirection:"row",gap:"24",height:"max",justifyContent:"center",style:{zIndex:1}},E.createElement(N,null,E.createElement(bt,{height:"60",src:i,width:"60",...r?{background:r,borderColor:"generalBorder",borderRadius:"10"}:null})),E.createElement(N,{display:"flex",flexDirection:"column",gap:"4",style:{flex:1},width:"full"},E.createElement(be,{color:"modalText",size:"14",weight:"bold"},u),E.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},t),E.createElement(N,{marginTop:"14",width:"max"},E.createElement(Ht,{href:d,label:e,onClick:c,size:"medium"})))))};function DR({changeWalletStep:e,wallet:t}){const n=u1(),r=f1(),a=R.useContext(Zd)==="compact",{desktop:c,desktopDownloadUrl:u,extension:d,extensionDownloadUrl:f,mobileDownloadUrl:p}=t,{i18n:g}=R.useContext(ut);return R.useEffect(()=>{Ix(),_x(),SR(),ER()},[]),E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",marginBottom:"8",marginTop:"4",width:"full"},E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8",height:"full",justifyContent:"center",width:"full"},f&&E.createElement(Dh,{actionLabel:g.t("get_options.extension.download.label",{browser:n}),description:g.t("get_options.extension.description"),iconUrl:Tx,isCompact:a,onAction:()=>e(d!=null&&d.instructions?"INSTRUCTIONS_EXTENSION":"CONNECT"),title:g.t("get_options.extension.title",{wallet:t.name,browser:n}),url:f,variant:"browser"}),u&&E.createElement(Dh,{actionLabel:g.t("get_options.desktop.download.label",{platform:r}),description:g.t("get_options.desktop.description"),iconUrl:Ox,isCompact:a,onAction:()=>e(c!=null&&c.instructions?"INSTRUCTIONS_DESKTOP":"CONNECT"),title:g.t("get_options.desktop.title",{wallet:t.name,platform:r}),url:u,variant:"desktop"}),p&&E.createElement(Dh,{actionLabel:g.t("get_options.mobile.download.label",{wallet:t.name}),description:g.t("get_options.mobile.description"),iconAccent:t.iconAccent,iconBackground:t.iconBackground,iconUrl:t.iconUrl,isCompact:a,onAction:()=>{e("DOWNLOAD")},title:g.t("get_options.mobile.title",{wallet:t.name}),variant:"app"})))}function LR({changeWalletStep:e,wallet:t}){const{downloadUrls:n,qrCode:r}=t,{i18n:i}=R.useContext(ut);return R.useEffect(()=>{Ix(),_x()},[]),E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",width:"full"},E.createElement(N,{style:{maxWidth:220,textAlign:"center"}},E.createElement(be,{color:"modalTextSecondary",size:"14",weight:"semibold"},i.t("get_mobile.description"))),E.createElement(N,{height:"full"},n!=null&&n.qrCode?E.createElement(Px,{logoSize:0,size:268,uri:n.qrCode}):null),E.createElement(N,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"34",justifyContent:"space-between",marginBottom:"12",paddingY:"8"},E.createElement(Ht,{label:i.t("get_mobile.continue.label"),onClick:()=>e(r!=null&&r.instructions?"INSTRUCTIONS_MOBILE":"CONNECT")})))}var Kr={connect:()=>E.createElement(AR,null),create:()=>E.createElement(kR,null),install:e=>E.createElement(bt,{background:e.iconBackground,borderColor:"generalBorder",borderRadius:"10",height:"48",src:e.iconUrl,width:"48"}),refresh:()=>E.createElement(IR,null),scan:()=>E.createElement(jR,null)};function FR({connectWallet:e,wallet:t}){var r,i,a,c;const{i18n:n}=R.useContext(ut);return E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},E.createElement(N,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(i=(r=t==null?void 0:t.qrCode)==null?void 0:r.instructions)==null?void 0:i.steps.map((u,d)=>{var f;return E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:d},E.createElement(N,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(f=Kr[u.step])==null?void 0:f.call(Kr,t)),E.createElement(N,{display:"flex",flexDirection:"column",gap:"4"},E.createElement(be,{color:"modalText",size:"14",weight:"bold"},n.t(u.title,void 0,{rawKeyIfTranslationMissing:!0})),E.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},n.t(u.description,void 0,{rawKeyIfTranslationMissing:!0}))))})),E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},E.createElement(Ht,{label:n.t("get_instructions.mobile.connect.label"),onClick:()=>e(t)}),E.createElement(N,{as:"a",className:st({active:"shrink",hover:"grow"}),display:"block",href:(c=(a=t==null?void 0:t.qrCode)==null?void 0:a.instructions)==null?void 0:c.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},E.createElement(be,{color:"accentColor",size:"14",weight:"bold"},n.t("get_instructions.mobile.learn_more.label")))))}function zR({wallet:e}){var n,r,i,a;const{i18n:t}=R.useContext(ut);return E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},E.createElement(N,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(r=(n=e==null?void 0:e.extension)==null?void 0:n.instructions)==null?void 0:r.steps.map((c,u)=>{var d;return E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:u},E.createElement(N,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(d=Kr[c.step])==null?void 0:d.call(Kr,e)),E.createElement(N,{display:"flex",flexDirection:"column",gap:"4"},E.createElement(be,{color:"modalText",size:"14",weight:"bold"},t.t(c.title,void 0,{rawKeyIfTranslationMissing:!0})),E.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},t.t(c.description,void 0,{rawKeyIfTranslationMissing:!0}))))})),E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},E.createElement(Ht,{label:t.t("get_instructions.extension.refresh.label"),onClick:window.location.reload.bind(window.location)}),E.createElement(N,{as:"a",className:st({active:"shrink",hover:"grow"}),display:"block",href:(a=(i=e==null?void 0:e.extension)==null?void 0:i.instructions)==null?void 0:a.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},E.createElement(be,{color:"accentColor",size:"14",weight:"bold"},t.t("get_instructions.extension.learn_more.label")))))}function UR({connectWallet:e,wallet:t}){var r,i,a,c;const{i18n:n}=R.useContext(ut);return E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},E.createElement(N,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},(i=(r=t==null?void 0:t.desktop)==null?void 0:r.instructions)==null?void 0:i.steps.map((u,d)=>{var f;return E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:d},E.createElement(N,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},(f=Kr[u.step])==null?void 0:f.call(Kr,t)),E.createElement(N,{display:"flex",flexDirection:"column",gap:"4"},E.createElement(be,{color:"modalText",size:"14",weight:"bold"},n.t(u.title,void 0,{rawKeyIfTranslationMissing:!0})),E.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},n.t(u.description,void 0,{rawKeyIfTranslationMissing:!0}))))})),E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},E.createElement(Ht,{label:n.t("get_instructions.desktop.connect.label"),onClick:()=>e(t)}),E.createElement(N,{as:"a",className:st({active:"shrink",hover:"grow"}),display:"block",href:(c=(a=t==null?void 0:t.desktop)==null?void 0:a.instructions)==null?void 0:c.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},E.createElement(be,{color:"accentColor",size:"14",weight:"bold"},n.t("get_instructions.desktop.learn_more.label")))))}function WR({onClose:e}){const t="rk_connect_title",[n,r]=R.useState(),[i,a]=R.useState(),[c,u]=R.useState(),d=!!(i!=null&&i.qrCode)&&c,[f,p]=R.useState(!1),m=R.useContext(Zd)===ml.COMPACT,{disclaimer:y}=R.useContext(hl),{i18n:w}=R.useContext(ut),b=l1(),C=R.useRef(!1),{connector:A}=R.useContext(pl),k=$c(!A).filter(oe=>oe.ready||!!oe.extensionDownloadUrl).sort((oe,ce)=>oe.groupIndex-ce.groupIndex),S=$c(),j=hR(k,oe=>oe.groupName),P=["Recommended","Other","Popular","More","Others","Installed"];R.useEffect(()=>{A&&!C.current&&(G("CONNECT"),Q(A),C.current=!0)},[A]);const _=oe=>{var ce,he;p(!1),oe.ready&&((he=(ce=oe==null?void 0:oe.connect)==null?void 0:ce.call(oe))==null||he.catch(()=>{p(!0)}))},T=async oe=>{const ce=k.find(he=>oe.id===he.id);ce!=null&&ce.getDesktopUri&&setTimeout(async()=>{var Ce;const he=await((Ce=ce==null?void 0:ce.getDesktopUri)==null?void 0:Ce.call(ce));he&&window.open(he,b?"_blank":"_self")},0)},D=async oe=>{var Ce;const ce=k.find(_e=>oe.id===_e.id),he=await((Ce=ce==null?void 0:ce.getQrCodeUri)==null?void 0:Ce.call(ce));u(he),setTimeout(()=>{a(ce),G("CONNECT")},he?0:50)},Q=async oe=>{bR(oe.id),oe.ready&&(D(oe),T(oe)),_(oe),r(oe.id),oe.ready||(a(oe),G(oe!=null&&oe.extensionDownloadUrl?"DOWNLOAD_OPTIONS":"CONNECT"))},H=oe=>{var Oe;const ce=S.find(Ve=>oe===Ve.id),he=(Oe=ce==null?void 0:ce.downloadUrls)==null?void 0:Oe.qrCode,Ce=!!(ce!=null&&ce.desktopDownloadUrl),_e=!!(ce!=null&&ce.extensionDownloadUrl);a(ce),G(he&&(_e||Ce)?"DOWNLOAD_OPTIONS":he?"DOWNLOAD":Ce?"INSTRUCTIONS_DESKTOP":"INSTRUCTIONS_EXTENSION")},Z=()=>{r(void 0),a(void 0),u(void 0)},G=(oe,ce=!1)=>{ce&&oe==="GET"&&le==="GET"?Z():!ce&&oe==="GET"?$("GET"):!ce&&oe==="CONNECT"&&$("CONNECT"),te(oe)},[le,$]=R.useState("NONE"),[X,te]=R.useState("NONE");let F=null,J=null,Y=null,L;R.useEffect(()=>{p(!1)},[X,i]);const we=!!(!!(i!=null&&i.extensionDownloadUrl)&&(i!=null&&i.mobileDownloadUrl));switch(X){case"NONE":F=E.createElement(Lb,{getWallet:()=>G("GET")});break;case"LEARN_COMPACT":F=E.createElement(Lb,{compactModeEnabled:m,getWallet:()=>G("GET")}),J=w.t("intro.title"),Y="NONE";break;case"GET":F=E.createElement(NR,{getWalletDownload:H,compactModeEnabled:m}),J=w.t("get.title"),Y=m?"LEARN_COMPACT":"NONE";break;case"CONNECT":F=i&&E.createElement(MR,{changeWalletStep:G,compactModeEnabled:m,connectionError:f,onClose:e,qrCodeUri:c,reconnect:_,wallet:i}),J=d&&(i.name==="WalletConnect"?w.t("connect_scan.fallback_title"):w.t("connect_scan.title",{wallet:i.name})),Y=m?A?null:"NONE":null,L=m?A?()=>{}:Z:()=>{};break;case"DOWNLOAD_OPTIONS":F=i&&E.createElement(DR,{changeWalletStep:G,wallet:i}),J=i&&w.t("get_options.short_title",{wallet:i.name}),Y=A?"CONNECT":m?"NONE":le;break;case"DOWNLOAD":F=i&&E.createElement(LR,{changeWalletStep:G,wallet:i}),J=i&&w.t("get_mobile.title",{wallet:i.name}),Y=we?"DOWNLOAD_OPTIONS":le;break;case"INSTRUCTIONS_MOBILE":F=i&&E.createElement(FR,{connectWallet:Q,wallet:i}),J=i&&w.t("get_options.title",{wallet:m&&i.shortName||i.name}),Y="DOWNLOAD";break;case"INSTRUCTIONS_EXTENSION":F=i&&E.createElement(zR,{wallet:i}),J=i&&w.t("get_options.title",{wallet:m&&i.shortName||i.name}),Y="DOWNLOAD_OPTIONS";break;case"INSTRUCTIONS_DESKTOP":F=i&&E.createElement(UR,{connectWallet:Q,wallet:i}),J=i&&w.t("get_options.title",{wallet:m&&i.shortName||i.name}),Y="DOWNLOAD_OPTIONS";break}return E.createElement(N,{display:"flex",flexDirection:"row",style:{maxHeight:m?468:504}},(m?X==="NONE":!0)&&E.createElement(N,{className:m?TR:PR,display:"flex",flexDirection:"column",marginTop:"16"},E.createElement(N,{display:"flex",justifyContent:"space-between"},m&&y&&E.createElement(N,{marginLeft:"16",width:"28"},E.createElement(mR,{onClick:()=>G("LEARN_COMPACT")})),m&&!y&&E.createElement(N,{marginLeft:"16",width:"28"}),E.createElement(N,{marginLeft:m?"0":"6",paddingBottom:"8",paddingTop:"2",paddingX:"18"},E.createElement(be,{as:"h1",color:"modalText",id:t,size:"18",weight:"heavy",testId:"connect-header-label"},w.t("connect.title"))),m&&E.createElement(N,{marginRight:"16"},E.createElement(Ui,{onClose:e}))),E.createElement(N,{className:_R,paddingBottom:"18"},Object.entries(j).map(([oe,ce],he)=>ce.length>0&&E.createElement(R.Fragment,{key:he},oe?E.createElement(N,{marginBottom:"8",marginTop:"16",marginX:"6"},E.createElement(be,{color:oe==="Installed"?"accentColor":"modalTextSecondary",size:"14",weight:"bold"},P.includes(oe)?w.t(`connector_group.${oe.toLowerCase()}`):oe)):null,E.createElement(N,{display:"flex",flexDirection:"column",gap:"4"},ce.map(Ce=>E.createElement(Ax,{currentlySelected:Ce.id===n,iconBackground:Ce.iconBackground,iconUrl:Ce.iconUrl,key:Ce.id,name:Ce.name,onClick:()=>Q(Ce),ready:Ce.ready,recent:Ce.recent,testId:`wallet-option-${Ce.id}`,isRainbowKitConnector:Ce.isRainbowKitConnector})))))),m&&E.createElement(E.Fragment,null,E.createElement(N,{background:"generalBorder",height:"1",marginTop:"-1"}),y?E.createElement(N,{paddingX:"24",paddingY:"16",textAlign:"center"},E.createElement(y,{Link:p1,Text:m1})):E.createElement(N,{alignItems:"center",display:"flex",justifyContent:"space-between",paddingX:"24",paddingY:"16"},E.createElement(N,{paddingY:"4"},E.createElement(be,{color:"modalTextSecondary",size:"14",weight:"medium"},w.t("connect.new_to_ethereum.description"))),E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",justifyContent:"center"},E.createElement(N,{className:st({active:"shrink",hover:"grow"}),cursor:"pointer",onClick:()=>G("LEARN_COMPACT"),paddingY:"4",style:{willChange:"transform"},transition:"default"},E.createElement(be,{color:"accentColor",size:"14",weight:"bold"},w.t("connect.new_to_ethereum.learn_more.label"))))))),(m?X!=="NONE":!0)&&E.createElement(E.Fragment,null,!m&&E.createElement(N,{background:"generalBorder",minWidth:"1",width:"1"}),E.createElement(N,{display:"flex",flexDirection:"column",margin:"16",style:{flexGrow:1}},E.createElement(N,{alignItems:"center",display:"flex",justifyContent:"space-between",marginBottom:"12"},E.createElement(N,{width:"28"},Y&&E.createElement(N,{as:"button",className:st({active:"shrinkSm",hover:"growLg"}),color:"accentColor",onClick:()=>{Y&&G(Y,!0),L==null||L()},paddingX:"8",paddingY:"4",style:{boxSizing:"content-box",height:17,willChange:"transform"},transition:"default",type:"button"},E.createElement(Cx,null))),E.createElement(N,{display:"flex",justifyContent:"center",style:{flexGrow:1}},J&&E.createElement(be,{color:"modalText",size:"18",textAlign:"center",weight:"heavy"},J)),E.createElement(Ui,{onClose:e})),E.createElement(N,{display:"flex",flexDirection:"column",style:{minHeight:m?396:432}},E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:"6",height:"full",justifyContent:"center",marginX:"8"},F)))))}var $R="_1am14412",qR="_1am14410",HR="_1am14413",VR=({wallet:e})=>E.createElement("svg",{className:HR,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:$R,style:{stroke:(e==null?void 0:e.iconAccent)||"#0D3887"}}));function Rx({onClose:e,wallet:t,connecting:n}){const{connect:r,iconBackground:i,iconUrl:a,id:c,name:u,getMobileUri:d,ready:f,shortName:p,showWalletConnectModal:g}=t,m=Ex(a),y=R.useRef(!1),{i18n:w}=R.useContext(ut),b=R.useCallback(async()=>{if(c!=="walletConnect"&&(async()=>{const A=await(d==null?void 0:d());if(A)if(A&&TO({mobileUri:A,name:u}),A.startsWith("http")){const I=document.createElement("a");I.href=A,I.target="_blank",I.rel="noreferrer noopener",I.click()}else window.location.href=A})(),g){g(),e==null||e();return}try{await(r==null?void 0:r())}catch{}},[r,d,g,e,u,c]);return R.useEffect(()=>{n&&!y.current&&(b(),y.current=!0)},[n,b]),E.createElement(N,{as:"button",color:f?"modalText":"modalTextSecondary",disabled:!f,fontFamily:"body",key:c,onClick:b,ref:m,style:{overflow:"visible",textAlign:"center"},testId:`wallet-option-${c}`,type:"button",width:"full"},E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},E.createElement(N,{display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"8",paddingTop:"10",position:"relative"},n?E.createElement(VR,{wallet:t}):null,E.createElement(bt,{background:i,borderRadius:"13",boxShadow:"walletLogo",height:"60",src:a,width:"60"})),n?null:E.createElement(N,{display:"flex",flexDirection:"column",textAlign:"center"},E.createElement(be,{as:"h2",color:t.ready?"modalText":"modalTextSecondary",size:"13",weight:"medium"},E.createElement(N,{as:"span",position:"relative"},p??u,!t.ready&&" (unsupported)")),t.recent&&E.createElement(be,{color:"accentColor",size:"12",weight:"medium"},w.t("connect.recent")))))}function QR({onClose:e}){var y;const t="rk_connect_title",n=$c().filter(w=>w.isRainbowKitConnector),{disclaimer:r,learnMoreUrl:i}=R.useContext(hl);let a=null,c=null,u=!1,d=null;const[f,p]=R.useState("CONNECT"),{i18n:g}=R.useContext(ut),m=fl();switch(f){case"CONNECT":{a=g.t("connect.title"),u=!0,c=E.createElement(N,null,E.createElement(N,{background:"profileForeground",className:qR,display:"flex",paddingBottom:"20",paddingTop:"6",paddingX:"20",style:{gap:"calc((100% - 40px - 240px + 47px) / 4)"}},n.filter(w=>w.ready).map(w=>E.createElement(N,{key:w.id,width:"60"},E.createElement(Rx,{onClose:e,wallet:w})))),E.createElement(N,{background:"generalBorder",height:"1",marginBottom:"32",marginTop:"-1"}),E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:"32",paddingX:"32",style:{textAlign:"center"}},E.createElement(N,{display:"flex",flexDirection:"column",gap:"8",textAlign:"center"},E.createElement(be,{color:"modalText",size:"16",weight:"bold"},g.t("intro.title")),E.createElement(be,{color:"modalTextSecondary",size:"16"},g.t("intro.description")))),E.createElement(N,{paddingTop:"32",paddingX:"20"},E.createElement(N,{display:"flex",gap:"14",justifyContent:"center"},E.createElement(Ht,{label:g.t("intro.get.label"),onClick:()=>p("GET"),size:"large",type:"secondary"}),E.createElement(Ht,{href:i,label:g.t("intro.learn_more.label"),size:"large",type:"secondary"}))),r&&E.createElement(N,{marginTop:"28",marginX:"32",textAlign:"center"},E.createElement(r,{Link:p1,Text:m1})));break}case"GET":{a=g.t("get.title"),d="CONNECT";const w=(y=n==null?void 0:n.filter(b=>{var C,A,I;return((C=b.downloadUrls)==null?void 0:C.ios)||((A=b.downloadUrls)==null?void 0:A.android)||((I=b.downloadUrls)==null?void 0:I.mobile)}))==null?void 0:y.splice(0,3);c=E.createElement(N,null,E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginBottom:"36",marginTop:"5",paddingTop:"12",width:"full"},w.map((b,C)=>{const{downloadUrls:A,iconBackground:I,iconUrl:k,name:S}=b;return!(A!=null&&A.ios)&&!(A!=null&&A.android)&&!(A!=null&&A.mobile)?null:E.createElement(N,{display:"flex",gap:"16",key:b.id,paddingX:"20",width:"full"},E.createElement(N,{style:{minHeight:48,minWidth:48}},E.createElement(bt,{background:I,borderColor:"generalBorder",borderRadius:"10",height:"48",src:k,width:"48"})),E.createElement(N,{display:"flex",flexDirection:"column",width:"full"},E.createElement(N,{alignItems:"center",display:"flex",height:"48"},E.createElement(N,{width:"full"},E.createElement(be,{color:"modalText",size:"18",weight:"bold"},S)),E.createElement(Ht,{href:(m?A==null?void 0:A.ios:A==null?void 0:A.android)||(A==null?void 0:A.mobile),label:g.t("get.action.label"),size:"small",type:"secondary"})),C<w.length-1&&E.createElement(N,{background:"generalBorderDim",height:"1",marginY:"10",width:"full"})))})),E.createElement(N,{style:{marginBottom:"42px"}}),E.createElement(N,{alignItems:"center",display:"flex",flexDirection:"column",gap:"36",paddingX:"36",style:{textAlign:"center"}},E.createElement(N,{display:"flex",flexDirection:"column",gap:"12",textAlign:"center"},E.createElement(be,{color:"modalText",size:"16",weight:"bold"},g.t("get.looking_for.title")),E.createElement(be,{color:"modalTextSecondary",size:"16"},g.t("get.looking_for.mobile.description")))));break}}return E.createElement(N,{display:"flex",flexDirection:"column",paddingBottom:"36"},E.createElement(N,{background:u?"profileForeground":"modalBackground",display:"flex",flexDirection:"column",paddingBottom:"4",paddingTop:"14"},E.createElement(N,{display:"flex",justifyContent:"center",paddingBottom:"6",paddingX:"20",position:"relative"},d&&E.createElement(N,{display:"flex",position:"absolute",style:{left:0,marginBottom:-20,marginTop:-20}},E.createElement(N,{alignItems:"center",as:"button",className:st({active:"shrinkSm",hover:"growLg"}),color:"accentColor",display:"flex",marginLeft:"4",marginTop:"20",onClick:()=>p(d),padding:"16",style:{height:17,willChange:"transform"},transition:"default",type:"button"},E.createElement(Cx,null))),E.createElement(N,{marginTop:"4",textAlign:"center",width:"full"},E.createElement(be,{as:"h1",color:"modalText",id:t,size:"20",weight:"bold"},a)),E.createElement(N,{alignItems:"center",display:"flex",height:"32",paddingRight:"14",position:"absolute",right:"0"},E.createElement(N,{style:{marginBottom:-20,marginTop:-20}},E.createElement(Ui,{onClose:e}))))),E.createElement(N,{display:"flex",flexDirection:"column"},c))}var GR=({onClose:e})=>{const{connector:t}=R.useContext(pl),{i18n:n}=R.useContext(ut),r=(t==null?void 0:t.name)||"";return E.createElement(N,null,E.createElement(N,{display:"flex",paddingBottom:"32",justifyContent:"center",alignItems:"center",background:"profileForeground",flexDirection:"column"},E.createElement(N,{width:"full",display:"flex",justifyContent:"flex-end",marginTop:"18",marginRight:"24"},E.createElement(Ui,{onClose:e})),E.createElement(N,{width:"60"},E.createElement(Rx,{onClose:e,wallet:t,connecting:!0})),E.createElement(N,{marginTop:"20"},E.createElement(be,{textAlign:"center",color:"modalText",size:"18",weight:"semibold"},n.t("connect.status.connect_mobile",{wallet:r}))),E.createElement(N,{maxWidth:"full",marginTop:"8"},E.createElement(be,{textAlign:"center",color:"modalText",size:"16",weight:"medium"},n.t("connect.status.confirm_mobile",{wallet:r})))))};function KR({onClose:e}){const{connector:t}=R.useContext(pl);return lt()?t?E.createElement(GR,{onClose:e}):E.createElement(QR,{onClose:e}):E.createElement(WR,{onClose:e})}function YR({onClose:e,open:t}){const n="rk_connect_title",r=i1(),{disconnect:i}=Ym(),{isConnecting:a}=xt(),c=E.useCallback(()=>{e(),i()},[e,i]),u=E.useCallback(()=>{a&&i(),e()},[e,i,a]);return r==="disconnected"?E.createElement(vd,{onClose:u,open:t,titleId:n},E.createElement(wd,{bottomSheetOnMobile:!0,padding:"0",wide:!0},E.createElement(KR,{onClose:u}))):r==="unauthenticated"?E.createElement(vd,{onClose:c,open:t,titleId:n},E.createElement(wd,{bottomSheetOnMobile:!0,padding:"0"},E.createElement(_O,{onClose:c,onCloseModal:e}))):null}function Lh(){const[e,t]=R.useState(!1);return{closeModal:R.useCallback(()=>t(!1),[]),isModalOpen:e,openModal:R.useCallback(()=>t(!0),[])}}var ua=R.createContext({accountModalOpen:!1,chainModalOpen:!1,connectModalOpen:!1,isWalletConnectModalOpen:!1,setIsWalletConnectModalOpen:()=>{}});function JR({children:e}){const{closeModal:t,isModalOpen:n,openModal:r}=Lh(),{closeModal:i,isModalOpen:a,openModal:c}=Lh(),{closeModal:u,isModalOpen:d,openModal:f}=Lh(),[p,g]=R.useState(!1),m=i1(),{chainId:y}=xt(),{chains:w}=et(),b=w.some(I=>I.id===y),C=R.useCallback(({keepConnectModalOpen:I=!1}={})=>{I||t(),i(),u()},[t,i,u]),A=Yd()==="unauthenticated";return q5({onConnect:()=>C({keepConnectModalOpen:A}),onDisconnect:()=>C()}),R.useEffect(()=>{A&&C()},[A,C]),E.createElement(ua.Provider,{value:R.useMemo(()=>({accountModalOpen:a,chainModalOpen:d,connectModalOpen:n,isWalletConnectModalOpen:p,openAccountModal:b&&m==="connected"?c:void 0,openChainModal:m==="connected"?f:void 0,openConnectModal:m==="disconnected"||m==="unauthenticated"?r:void 0,setIsWalletConnectModalOpen:g}),[m,a,d,n,c,f,r,b,p])},e,E.createElement(YR,{onClose:t,open:n}),E.createElement(iR,{onClose:i,open:a}),E.createElement(fR,{onClose:u,open:d}))}function ZR(){const{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}=R.useContext(ua);return{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}}function XR(){const{accountModalOpen:e,openAccountModal:t}=R.useContext(ua);return{accountModalOpen:e,openAccountModal:t}}function Nx(){const{chainModalOpen:e,openChainModal:t}=R.useContext(ua);return{chainModalOpen:e,openChainModal:t}}function Mx(){const{isWalletConnectModalOpen:e,setIsWalletConnectModalOpen:t}=R.useContext(ua);return{isWalletConnectModalOpen:e,setIsWalletConnectModalOpen:t}}function eN(){const{connectModalOpen:e,openConnectModal:t}=R.useContext(ua),{isWalletConnectModalOpen:n}=Mx();return{connectModalOpen:e||n,openConnectModal:t}}var Fh=()=>{};function g1({children:e}){const t=MT(),{address:n}=xt(),{chainId:r}=xt(),{chains:i}=et(),a=i.some(Z=>Z.id===r),c=RT(),u=Yd()??void 0,d=r?c[r]:void 0,f=(d==null?void 0:d.name)??void 0,p=(d==null?void 0:d.iconUrl)??void 0,g=(d==null?void 0:d.iconBackground)??void 0,m=Jd(p),y=R.useContext(c1),w=ox().some(({status:Z})=>Z==="pending")&&y,{showBalance:b}=Z3(),A=typeof b=="boolean"?b:b?W3(b)[lt()?"smallScreen":"largeScreen"]:!0,{balance:I,ensAvatar:k,ensName:S}=ex({address:n,includeBalance:A}),j=I?`${yx(Number.parseFloat(I.formatted))} ${I.symbol}`:void 0,{openConnectModal:P}=eN(),{openChainModal:_}=Nx(),{openAccountModal:T}=XR(),{accountModalOpen:D,chainModalOpen:Q,connectModalOpen:H}=ZR();return E.createElement(E.Fragment,null,e({account:n?{address:n,balanceDecimals:I==null?void 0:I.decimals,balanceFormatted:I==null?void 0:I.formatted,balanceSymbol:I==null?void 0:I.symbol,displayBalance:j,displayName:S?wx(S):vx(n),ensAvatar:k??void 0,ensName:S??void 0,hasPendingTransactions:w}:void 0,accountModalOpen:D,authenticationStatus:u,chain:r?{hasIcon:!!p,iconBackground:g,iconUrl:m,id:r,name:f,unsupported:!a}:void 0,chainModalOpen:Q,connectModalOpen:H,mounted:t(),openAccountModal:T??Fh,openChainModal:_??Fh,openConnectModal:P??Fh}))}g1.displayName="ConnectButton.Custom";var sc={accountStatus:"full",chainStatus:{largeScreen:"full",smallScreen:"icon"},label:"Connect Wallet",showBalance:{largeScreen:!0,smallScreen:!1}};function y1({accountStatus:e=sc.accountStatus,chainStatus:t=sc.chainStatus,label:n=sc.label,showBalance:r=sc.showBalance}){const i=Qi(),a=i1(),{setShowBalance:c}=Z3(),[u,d]=R.useState(!1),{i18n:f}=R.useContext(ut);return R.useEffect(()=>{c(r),u||d(!0)},[r,c]),u?E.createElement(g1,null,({account:p,chain:g,mounted:m,openAccountModal:y,openChainModal:w,openConnectModal:b})=>{const C=m&&a!=="loading",A=(g==null?void 0:g.unsupported)??!1;return E.createElement(N,{display:"flex",gap:"12",...!C&&{"aria-hidden":!0,style:{opacity:0,pointerEvents:"none",userSelect:"none"}}},C&&p&&a==="connected"?E.createElement(E.Fragment,null,g&&(i.length>1||A)&&E.createElement(N,{alignItems:"center","aria-label":"Chain Selector",as:"button",background:A?"connectButtonBackgroundError":"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:st({active:"shrink",hover:"grow"}),color:A?"connectButtonTextError":"connectButtonText",display:ks(t,I=>I==="none"?"none":"flex"),fontFamily:"body",fontWeight:"bold",gap:"6",key:A?"unsupported":"supported",onClick:w,paddingX:"10",paddingY:"8",testId:A?"wrong-network-button":"chain-button",transition:"default",type:"button"},A?E.createElement(N,{alignItems:"center",display:"flex",height:"24",paddingX:"4"},f.t("connect_wallet.wrong_network.label")):E.createElement(N,{alignItems:"center",display:"flex",gap:"6"},g.hasIcon?E.createElement(N,{display:ks(t,I=>I==="full"||I==="icon"?"block":"none"),height:"24",width:"24"},E.createElement(bt,{alt:g.name??"Chain icon",background:g.iconBackground,borderRadius:"full",height:"24",src:g.iconUrl,width:"24"})):null,E.createElement(N,{display:ks(t,I=>I==="icon"&&!g.iconUrl||I==="full"||I==="name"?"block":"none")},g.name??g.id)),E.createElement(db,null)),!A&&E.createElement(N,{alignItems:"center",as:"button",background:"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:st({active:"shrink",hover:"grow"}),color:"connectButtonText",display:"flex",fontFamily:"body",fontWeight:"bold",onClick:y,testId:"account-button",transition:"default",type:"button"},p.displayBalance&&E.createElement(N,{display:ks(r,I=>I?"block":"none"),padding:"8",paddingLeft:"12"},p.displayBalance),E.createElement(N,{background:W3(r)[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(N,{alignItems:"center",display:"flex",gap:"6",height:"24"},E.createElement(N,{display:ks(e,I=>I==="full"||I==="avatar"?"block":"none")},E.createElement(K3,{address:p.address,imageUrl:p.ensAvatar,loading:p.hasPendingTransactions,size:24})),E.createElement(N,{alignItems:"center",display:"flex",gap:"6"},E.createElement(N,{display:ks(e,I=>I==="full"||I==="address"?"block":"none")},p.displayName),E.createElement(db,null)))))):E.createElement(N,{as:"button",background:"accentColor",borderRadius:"connectButton",boxShadow:"connectButton",className:st({active:"shrink",hover:"grow"}),color:"accentColorForeground",fontFamily:"body",fontWeight:"bold",height:"40",key:"connect",onClick:b,paddingX:"14",testId:"connect-button",transition:"default",type:"button"},m&&n==="Connect Wallet"?f.t("connect_wallet.label"):n))}):E.createElement(E.Fragment,null)}y1.__defaultProps=sc;y1.Custom=g1;var Dx=({appName:e,appDescription:t,appUrl:n,appIcon:r})=>({name:e,description:t??e,url:n??(typeof window<"u"?window.location.origin:""),icons:[...r?[r]:[]]});function tN(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>n!==void 0))}function nN(e,t){const n=[];for(const r of e)n.some(i=>i[t]===r[t])||n.push(r);return n}var rN=(e,{projectId:t,walletConnectParameters:n,appName:r,appDescription:i,appUrl:a,appIcon:c})=>{if(!e.length)throw new Error("No wallet list was provided");for(const{wallets:y,groupName:w}of e)if(!y.length)throw new Error(`No wallets provided for group: ${w}`);let u=-1;const d=[],f=[],p=[],g=Dx({appName:r,appDescription:i,appUrl:a,appIcon:c});for(const[y,{groupName:w,wallets:b}]of e.entries())for(const C of b){u++;const A=C({projectId:t,appName:r,appIcon:c,options:{metadata:g,...n},walletConnectParameters:{metadata:g,...n}});if(A!=null&&A.iconAccent&&!CR(A==null?void 0:A.iconAccent))throw new Error(`Property \`iconAccent\` is not a hex value for wallet: ${A.name}`);const I={...A,groupIndex:y+1,groupName:w,index:u};typeof A.hidden=="function"?p.push(I):f.push(I)}const m=nN([...f,...p],"id");for(const{createConnector:y,groupIndex:w,groupName:b,hidden:C,...A}of m){if(typeof C=="function"&&C())continue;const I=j=>({rkDetails:tN({...A,groupIndex:w,groupName:b,isRainbowKitConnector:!0,...j||{}})});A.id==="walletConnect"&&d.push(y(I({isWalletConnectModalConnector:!0,showQrModal:!0})));const S=y(I());d.push(S)}return d},zb=new Map,oN=({projectId:e,walletConnectParameters:t,rkDetailsShowQrModal:n,rkDetailsIsWalletConnectModalConnector:r})=>{let i={telemetryEnabled:!1,...t||{},projectId:e,showQrModal:!1};n&&(i={...i,showQrModal:!0}),"customStoragePrefix"in i||(i={...i,customStoragePrefix:r?"clientOne":"clientTwo"});const a=JSON.stringify(i),c=zb.get(a);if(c)return c;const u=o1(i);return zb.set(a,u),u};function iN({projectId:e,walletDetails:t,walletConnectParameters:n}){return r=>({...oN({projectId:e,walletConnectParameters:n,rkDetailsShowQrModal:t.rkDetails.showQrModal,rkDetailsIsWalletConnectModalConnector:t.rkDetails.isWalletConnectModalConnector})(r),...t})}function v1({projectId:e,walletConnectParameters:t}){const n="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=n),r=>iN({projectId:e,walletDetails:r,walletConnectParameters:t})}function Lx(e){const t=typeof window<"u"?window:void 0;if(typeof t>"u"||typeof t.ethereum>"u")return;const n=t.ethereum.providers;return n?n.find(r=>r[e]):t.ethereum[e]?t.ethereum:void 0}function Fx(e){const t=(n,r)=>{const[i,...a]=r.split("."),c=n[i];if(c)return a.length===0?c:t(c,a.join("."))};if(typeof window<"u")return t(window,e)}function sN({flag:e,namespace:t}){return!!(t&&typeof Fx(t)<"u"||typeof Lx(e)<"u")}function aN({flag:e,namespace:t}){var i;const n=typeof window<"u"?window:void 0;if(typeof n>"u")return;if(t){const a=Fx(t);if(a)return a}const r=(i=n.ethereum)==null?void 0:i.providers;{const a=Lx(e);if(a)return a}return typeof r<"u"&&r.length>0?r[0]:n.ethereum}function cN(e){return t=>{const n=e?{target:()=>({id:t.rkDetails.id,name:t.rkDetails.name,provider:e})}:{};return r=>({...Qd(n)(r),...t})}}function lN({flag:e,namespace:t,target:n}){const r=n||aN({flag:e,namespace:t});return cN(r)}var zx=({appName:e,appIcon:t})=>{const{preference:n,...r}=zx;return{id:"baseAccount",name:"Base Account",shortName:"Base Account",rdns:"app.base.account",iconUrl:async()=>(await de(async()=>{const{default:i}=await import("./baseAccount-44UITRK7-CsjdbWCf.js");return{default:i}},[])).default,iconAccent:"#0000FF",iconBackground:"#0000FF",installed:!0,createConnector:i=>{const a=XP({appName:e,appLogoUrl:t,...r,preference:{telemetry:!1,...n||{}}});return c=>({...a(c),...i})}}};function uN(e){return!(!(e!=null&&e.isMetaMask)||e.isBraveWallet&&!e._events&&!e._state||e.isApexWallet||e.isAvalanche||e.isBackpack||e.isBifrost||e.isBitKeep||e.isBitski||e.isBinance||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.isZilPay||e.isPortal||e.isxPortal||e.isRabby||e.isRainbow||e.isStatus||e.isTalisman||e.isTally||e.isTokenPocket||e.isTokenary||e.isTrust||e.isTrustWallet||e.isCTRL||e.isZeal||e.isCoin98||e.isMEWwallet||e.isSafeheron||e.isSafePal||e.isWigwam||e.isZerion||e.__seif)}var Ux=({projectId:e,walletConnectParameters:t})=>{const{...n}=Ux,r=typeof window<"u"?uN(window.ethereum):!1,i=!r&&!lt(),a=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:a?c=>c:void 0},qrCode:i?{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:i?v1({projectId:e,walletConnectParameters:t}):(c=>u=>{var f,p,g;const d=n1({dappMetadata:{connector:"rainbowkit",name:(f=t==null?void 0:t.metadata)==null?void 0:f.name,iconUrl:(p=t==null?void 0:t.metadata)==null?void 0:p.icons[0],url:(g=t==null?void 0:t.metadata)==null?void 0:g.url},headless:!0,checkInstallationImmediately:!1,enableAnalytics:!1,...n})(u);return{...d,...c,getChainId:async()=>{var m;try{return await d.getChainId()}catch{return((m=u.chains[0])==null?void 0:m.id)??1}}}})}},dN=({projectId:e,walletConnectParameters:t})=>{const n=sN({flag:"isRainbow"}),r=!n,i=a=>q3()?a:fl()?`rainbow://wc?uri=${encodeURIComponent(a)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(a)}&connector=rainbowkit`;return{id:"rainbow",name:"Rainbow",rdns:"me.rainbow",iconUrl:async()=>(await de(async()=>{const{default:a}=await import("./rainbowWallet-O26YNBMX-DUhYus-9.js");return{default:a}},[])).default,iconBackground:"#0c2f78",installed:r?void 0:n,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:r?i:void 0},qrCode:r?{getUri:i,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:r?v1({projectId:e,walletConnectParameters:t}):lN({flag:"isRainbow"})}},fN=()=>({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==null?void 0:window.parent)!==window,downloadUrls:{},createConnector:e=>t=>({...r1()(t),...e})}),hN=({projectId:e,options:t})=>({id:"walletConnect",name:"WalletConnect",installed:void 0,iconUrl:async()=>(await de(async()=>{const{default:r}=await import("./walletConnectWallet-YHWKVTDY-D3lyiczV.js");return{default:r}},[])).default,iconBackground:"#3b99fc",qrCode:{getUri:r=>r},createConnector:v1({projectId:e,walletConnectParameters:t})}),pN=e=>e.reduce((n,r)=>{const i=r.id;return n[i]=Qu(),n},{}),mN=({appName:e,appDescription:t,appUrl:n,appIcon:r,wallets:i,projectId:a,walletConnectParameters:c,...u})=>{const{transports:d,chains:f,...p}=u,g=Dx({appName:e,appDescription:t,appUrl:n,appIcon:r}),m=rN(i||[{groupName:"Popular",wallets:[fN,dN,zx,Ux,hN]}],{projectId:a,appName:e,appDescription:t,appUrl:n,appIcon:r,walletConnectParameters:{metadata:g,...c}});return mj({connectors:m,chains:f,transports:d||pN(f),...p})};const gN=mN({appName:"AntSeed Payments",projectId:"9a1851410cb5589bc351a6dabf17140e",chains:[Uc],transports:{[Uc.id]:jI([Qu("https://base-rpc.publicnode.com"),Qu("https://base.gateway.tenderly.co"),Qu("https://base-public.nodies.app")])}}),yN="";let qu;function vN(){return qu!==void 0||(qu=new URLSearchParams(window.location.search).get("token")),qu}async function gl(e,t){const n=vN(),r={"Content-Type":"application/json"};n&&(r.Authorization=`Bearer ${n}`);const i=await fetch(`${yN}${e}`,{headers:r,...t});if(!i.ok){const a=await i.json().catch(()=>({}));throw new Error(a.error||`HTTP ${i.status}`)}return i.json()}async function wN(){return gl("/api/balance")}async function bN(){return gl("/api/config")}async function xN(){return gl("/api/channels")}async function CN(){return gl("/api/operator")}async function EN(e){return gl("/api/operator/sign",{method:"POST",body:JSON.stringify({operator:e})})}const AN={[Uc.id]:Uc};function kN(e){var t;return e!=null&&e.evmChainId?((t=AN[e.evmChainId])==null?void 0:t.name)??e.chainId:"configured payments network"}function Fo(e,t="Something went wrong."){return e instanceof Error?e.message.split(`
1727
+ `)[0]??e.message:t}function w1(e){const{isConnected:t,connector:n}=xt(),{switchChainAsync:r,isPending:i}=o3(),{openChainModal:a}=Nx(),[c,u]=R.useState(void 0),d=e==null?void 0:e.evmChainId,f=kN(e),p=!!(t&&d&&c&&c!==d);R.useEffect(()=>{var A;let w=!1;async function b(){if(!t||!(n!=null&&n.getChainId)){w||u(void 0);return}try{const I=await n.getChainId();w||u(I)}catch{w||u(void 0)}}if(b(),!((A=n==null?void 0:n.emitter)!=null&&A.on))return()=>{w=!0};const C=I=>{if(typeof(I==null?void 0:I.chainId)=="number"){u(I.chainId);return}if(typeof(I==null?void 0:I.chainId)=="string"){u(Number(I.chainId));return}b()};return n.emitter.on("change",C),()=>{var I,k;w=!0,(k=(I=n.emitter).off)==null||k.call(I,"change",C)}},[n,t]);async function g(){if(!t||!(n!=null&&n.getChainId))return;const w=await n.getChainId();return u(w),w}async function m(w,b=1e4){const C=Date.now();for(;Date.now()-C<b;){if(await g()===w)return;await new Promise(I=>setTimeout(I,150))}throw new Error(`Wallet is still on chain ${c??"unknown"}. Please switch to ${f} and try again.`)}async function y(){if(!t)throw new Error("Connect your wallet before continuing.");if(!d)throw new Error("Payments network is not configured.");if(await g()!==d){if(typeof r=="function"){await r({chainId:d}),await m(d);return}throw typeof a=="function"&&a(),new Error(`Please switch your wallet to ${f} and try again.`)}}return{expectedChainId:d,targetChainName:f,walletChainId:c,wrongChain:p,isSwitchingChain:i,ensureCorrectNetwork:y}}const SN=[{name:"deposit",type:"function",stateMutability:"nonpayable",inputs:[{name:"buyer",type:"address"},{name:"amount",type:"uint256"}],outputs:[]}],Ub=[{name:"approve",type:"function",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{name:"allowance",type:"function",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{name:"",type:"uint256"}]}];function IN({config:e,buyerAddress:t,onDeposited:n}){const[r,i]=R.useState("crypto");return W.jsx("div",{className:"deposit",children:W.jsxs("div",{className:"card",children:[W.jsx("div",{className:"card-section-title",children:"Deposit USDC"}),W.jsxs("div",{className:"deposit-methods",children:[W.jsxs("button",{className:`deposit-method ${r==="crypto"?"deposit-method--active":""}`,onClick:()=>i("crypto"),children:[W.jsx("span",{className:"deposit-method-icon",children:W.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[W.jsx("path",{d:"M8 1L1 4.5V11.5L8 15L15 11.5V4.5L8 1Z",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"}),W.jsx("path",{d:"M1 4.5L8 8M8 8L15 4.5M8 8V15",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"})]})}),W.jsx("span",{className:"deposit-method-label",children:"Crypto Wallet"}),W.jsx("span",{className:"deposit-method-desc",children:"MetaMask, Coinbase, etc."})]}),W.jsxs("button",{className:`deposit-method ${r==="card"?"deposit-method--active":""}`,onClick:()=>i("card"),children:[W.jsx("span",{className:"deposit-method-icon",children:W.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[W.jsx("rect",{x:"1",y:"3",width:"14",height:"10",rx:"2",stroke:"currentColor",strokeWidth:"1.2"}),W.jsx("line",{x1:"1",y1:"6.5",x2:"15",y2:"6.5",stroke:"currentColor",strokeWidth:"1.2"}),W.jsx("line",{x1:"4",y1:"9.5",x2:"8",y2:"9.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]})}),W.jsx("span",{className:"deposit-method-label",children:"Credit Card"}),W.jsx("span",{className:"deposit-method-desc",children:"Coming soon"})]})]}),r==="crypto"?W.jsx(jN,{config:e,buyerAddress:t,onDeposited:n}):W.jsx(BN,{})]})})}function jN({config:e,buyerAddress:t,onDeposited:n}){const{address:r,isConnected:i}=xt(),a=Yo(),[c,u]=R.useState("10"),[d,f]=R.useState("idle"),[p,g]=R.useState(null),{expectedChainId:m,targetChainName:y,walletChainId:w,wrongChain:b,isSwitchingChain:C,ensureCorrectNetwork:A}=w1(e),I=t??r,{data:k,refetch:S}=WB({address:e==null?void 0:e.usdcContractAddress,abi:Ub,functionName:"allowance",chainId:m,args:[r,e==null?void 0:e.depositsContractAddress],query:{enabled:i&&!!e&&!!r}}),j=R9(c||"0",6),P=k!==void 0&&k>=j&&j>0n,{writeContract:_,data:T,reset:D}=Mc(),{isSuccess:Q}=Nc({hash:T,chainId:m,query:{enabled:d==="approving"&&!!T}}),{data:H}=qB({address:e==null?void 0:e.depositsContractAddress,abi:SN,functionName:"deposit",chainId:m,args:[I,j],query:{enabled:P&&!!e&&!!I,retry:3,retryDelay:2e3}}),{writeContract:Z,data:G,reset:le}=Mc(),{isSuccess:$}=Nc({hash:G,chainId:m,query:{enabled:d==="depositing"&&!!G}});R.useEffect(()=>{d!=="approving"||!Q||S()},[d,Q,S]),R.useEffect(()=>{d!=="approving"||!(H!=null&&H.request)||(f("depositing"),Z({...H.request,chainId:m},{onError:F=>{f("idle"),g(Fo(F))}}))},[d,H,m,Z]),R.useEffect(()=>{d==="depositing"&&$&&(f("done"),n())},[$,d,n]);async function X(){if(!(!r||!c||parseFloat(c)<=0||!e||!I)){g(null);try{await A()}catch(F){g(Fo(F,`Please switch your wallet to ${y}.`));return}if(D(),le(),H!=null&&H.request){f("depositing");const{gas:F,...J}=H.request;Z({...J,chainId:m},{onError:Y=>{f("idle"),g(Fo(Y))}});return}f("approving"),_({address:e.usdcContractAddress,abi:Ub,functionName:"approve",chainId:m,args:[e.depositsContractAddress,j]},{onError:F=>{f("idle"),g(Fo(F))}})}}function te(){f("idle"),g(null),u("10"),D(),le()}return W.jsxs("div",{className:"deposit-form",children:[i?d==="done"?W.jsxs("div",{className:"deposit-success",children:[W.jsx("div",{className:"deposit-success-icon",children:"✓"}),W.jsx("div",{className:"deposit-success-title",children:"Deposit confirmed!"}),W.jsxs("div",{className:"deposit-success-hash",children:[G==null?void 0:G.slice(0,18),"..."]}),I&&I!==r&&W.jsxs("div",{className:"deposit-success-note",children:["Credits added to ",I.slice(0,6),"...",I.slice(-4)]}),W.jsx("div",{className:"deposit-success-note",children:"Your credits are now available. You can return to AntSeed Desktop to continue."}),W.jsx("button",{className:"btn-outline",onClick:te,style:{marginTop:12},children:"Deposit more"})]}):W.jsxs(W.Fragment,{children:[I&&I!==r&&W.jsxs("div",{className:"deposit-target-info",children:[W.jsx("span",{className:"deposit-target-label",children:"Depositing for"}),W.jsxs("span",{className:"deposit-target-addr",children:[I.slice(0,6),"...",I.slice(-4)]})]}),W.jsxs("div",{className:"deposit-connected",children:[W.jsx("div",{className:"deposit-connected-dot"}),W.jsxs("span",{className:"deposit-connected-addr",children:[r==null?void 0:r.slice(0,6),"...",r==null?void 0:r.slice(-4)]}),W.jsx("span",{className:"deposit-connected-label",children:"Connected"})]}),b&&W.jsxs("div",{className:"status-msg",style:{marginTop:0,marginBottom:16},children:["Wallet is on chain ",w??a,". Switch to ",y," before depositing."]}),W.jsxs("div",{className:"input-group",children:[W.jsx("label",{className:"input-label",children:"Amount (USDC)"}),W.jsx("input",{className:"input-field",type:"number",min:"0",step:"0.01",placeholder:"10.00",value:c,onChange:F=>u(F.target.value),disabled:d!=="idle"}),W.jsx("span",{className:"hint",children:"Minimum first deposit: 1 USDC"})]}),W.jsx("button",{className:"btn-primary",onClick:X,disabled:d!=="idle"||!c||parseFloat(c)<=0||!e||C,children:C?`Switching to ${y}...`:b?`Switch to ${y}`:d==="approving"?"Approving USDC...":d==="depositing"?"Depositing...":"Deposit USDC"})]}):W.jsx("div",{className:"deposit-connect-wrapper",children:W.jsx(y1,{})}),p&&W.jsx("div",{className:"status-msg status-error",children:p})]})}function BN(){return W.jsx("div",{className:"deposit-form",children:W.jsxs("div",{className:"deposit-card-coming",children:[W.jsx("div",{className:"deposit-card-coming-icon",children:W.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",children:[W.jsx("rect",{x:"1",y:"3",width:"14",height:"10",rx:"2",stroke:"currentColor",strokeWidth:"1.2"}),W.jsx("line",{x1:"1",y1:"6.5",x2:"15",y2:"6.5",stroke:"currentColor",strokeWidth:"1.2"}),W.jsx("line",{x1:"4",y1:"9.5",x2:"8",y2:"9.5",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]})}),W.jsx("div",{className:"deposit-card-coming-title",children:"Credit card deposits coming soon"}),W.jsx("div",{className:"deposit-card-coming-desc",children:"Direct credit card deposits are being integrated. For now, use the crypto wallet option."})]})})}const _N=["function requestClose(bytes32 channelId) external","function withdraw(bytes32 channelId) external","function channels(bytes32 channelId) external view returns (address buyer, address seller, uint128 deposit, uint128 settled, bytes32 metadataHash, uint256 deadline, uint256 settledAt, uint256 closeRequestedAt, uint8 status)","event Reserved(bytes32 indexed channelId, address indexed buyer, address indexed seller, uint128 maxAmount)","event ChannelClosed(bytes32 indexed channelId, address indexed seller, uint128 finalAmount, uint256 platformFee)","event ChannelWithdrawn(bytes32 indexed channelId, address indexed buyer)","event CloseRequested(bytes32 indexed channelId, address indexed buyer)"],Wx=900;function $x(e){return`${e.slice(0,6)}...${e.slice(-4)}`}function PN(e){return e.closeRequestedAt===0?"active":Math.floor(Date.now()/1e3)<e.closeRequestedAt+Wx?"closing":"withdrawable"}function TN({status:e}){const n={active:{bg:"var(--accent-dim)",color:"var(--accent-text)",label:"Active"},closing:{bg:"var(--amber-dim)",color:"var(--amber)",label:"Closing..."},withdrawable:{bg:"rgba(59, 130, 246, 0.08)",color:"#3b82f6",label:"Withdrawable"}}[e];return W.jsx("span",{style:{display:"inline-block",padding:"2px 8px",borderRadius:12,fontSize:11,fontWeight:600,background:n.bg,color:n.color},children:n.label})}function ON(e){const t=Math.floor(Date.now()/1e3),n=e+Wx-t;if(n<=0)return"0:00";const r=Math.floor(n/60),i=n%60;return`${r}:${i.toString().padStart(2,"0")}`}const Wb=kd(_N);function RN({session:e,config:t,onRefresh:n}){const r=PN(e),{expectedChainId:i,ensureCorrectNetwork:a}=w1(t),[c,u]=R.useState(null),{writeContract:d,data:f}=Mc(),{isSuccess:p}=Nc({hash:f,chainId:i}),{writeContract:g,data:m}=Mc(),{isSuccess:y}=Nc({hash:m,chainId:i}),w=R.useCallback(async()=>{u(null);try{await a(),d({address:t.channelsContractAddress,abi:Wb,functionName:"requestClose",chainId:i,args:[e.channelId]})}catch(C){u(Fo(C))}},[t.channelsContractAddress,a,i,e.channelId,d]),b=R.useCallback(async()=>{u(null);try{await a(),g({address:t.channelsContractAddress,abi:Wb,functionName:"withdraw",chainId:i,args:[e.channelId]})}catch(C){u(Fo(C))}},[t.channelsContractAddress,a,i,e.channelId,g]);return W.jsxs("div",{style:{background:"var(--card-bg)",border:"1px solid var(--card-border)",borderRadius:12,padding:16,marginBottom:12},children:[W.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:12},children:[W.jsxs("span",{style:{fontSize:13,color:"var(--text-secondary)",fontWeight:500},children:["Seller: ",$x(e.seller)]}),W.jsx(TN,{status:r})]}),W.jsxs("div",{style:{display:"flex",gap:24,marginBottom:12},children:[W.jsxs("div",{children:[W.jsx("div",{style:{fontSize:10,fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Reserved"}),W.jsxs("div",{style:{fontSize:16,fontWeight:700,color:"var(--text-primary)"},children:["$",e.deposit]})]}),W.jsxs("div",{children:[W.jsx("div",{style:{fontSize:10,fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Used"}),W.jsxs("div",{style:{fontSize:16,fontWeight:700,color:"var(--text-primary)"},children:["$",e.settled]})]})]}),r==="active"&&!p&&W.jsx("button",{className:"btn-outline",onClick:w,style:{fontSize:12,padding:"8px 0"},children:"Request Close"}),r==="closing"&&W.jsxs("button",{className:"btn-outline",disabled:!0,style:{fontSize:12,padding:"8px 0"},children:["Waiting... ",ON(e.closeRequestedAt)]}),r==="withdrawable"&&!y&&W.jsx("button",{className:"btn-primary",onClick:b,style:{fontSize:12,padding:"8px 0"},children:"Withdraw"}),p&&W.jsxs("div",{className:"status-msg status-success",style:{fontSize:11},children:["Close requested. Tx: ",f==null?void 0:f.slice(0,18),"... ",W.jsx("button",{className:"btn-link",onClick:n,style:{fontSize:11},children:"Refresh"})]}),y&&W.jsxs("div",{className:"status-msg status-success",style:{fontSize:11},children:["Withdrawn. Tx: ",m==null?void 0:m.slice(0,18),"... ",W.jsx("button",{className:"btn-link",onClick:n,style:{fontSize:11},children:"Refresh"})]}),c&&W.jsx("div",{className:"status-msg status-error",style:{fontSize:11},children:c})]})}function NN({session:e}){const t=e.status===2?"Settled":e.status===3?"Timed out":"Closed";return W.jsxs("div",{style:{background:"var(--card-bg)",border:"1px solid var(--card-border)",borderRadius:12,padding:12,marginBottom:8,opacity:.75},children:[W.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[W.jsxs("span",{style:{fontSize:12,color:"var(--text-secondary)",fontWeight:500},children:["Seller: ",$x(e.seller)]}),W.jsx("span",{style:{display:"inline-block",padding:"2px 8px",borderRadius:12,fontSize:11,fontWeight:600,background:"rgba(148, 163, 184, 0.12)",color:"var(--text-muted)"},children:t})]}),W.jsxs("div",{style:{display:"flex",gap:24},children:[W.jsxs("div",{children:[W.jsx("div",{style:{fontSize:10,fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Reserved"}),W.jsxs("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:["$",e.deposit]})]}),W.jsxs("div",{children:[W.jsx("div",{style:{fontSize:10,fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Used"}),W.jsxs("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:["$",e.settled]})]})]})]})}function MN({config:e}){const[t,n]=R.useState([]),[r,i]=R.useState([]),[a,c]=R.useState(!0),[u,d]=R.useState(null),f=R.useCallback(async()=>{c(!0);try{const[p,g]=await Promise.all([xN().catch(()=>({channels:[],history:[]})),CN().catch(()=>null)]);n(p.channels),i(p.history??[]),g&&d(g.operator!=="0x0000000000000000000000000000000000000000")}finally{c(!1)}},[]);return R.useEffect(()=>{f()},[f]),W.jsxs("div",{children:[W.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[W.jsx("div",{className:"card-section-title",style:{marginBottom:0},children:"Active Channels"}),W.jsx("button",{className:"btn-outline",onClick:f,style:{width:"auto",padding:"6px 14px",fontSize:12},children:"Refresh"})]}),u===!1&&W.jsx(LN,{config:e,onSet:f}),a?W.jsx("div",{style:{textAlign:"center",padding:32,color:"var(--text-muted)",fontSize:13},children:"Loading channels..."}):t.length===0?W.jsx("div",{style:{textAlign:"center",padding:32,color:"var(--text-muted)",fontSize:13},children:"No active channels"}):e&&t.map(p=>W.jsx(RN,{session:p,config:e,onRefresh:f},p.channelId)),r.length>0&&W.jsxs("div",{style:{marginTop:24},children:[W.jsx("div",{className:"card-section-title",style:{marginBottom:12},children:"History"}),r.map(p=>W.jsx(NN,{session:p},p.channelId))]})]})}const DN=kd(["function setOperator(address buyer, address operator, uint256 nonce, bytes buyerSig) external"]);function LN({config:e,onSet:t}){const{address:n}=xt(),[r,i]=R.useState(!1),[a,c]=R.useState(null),{expectedChainId:u,ensureCorrectNetwork:d}=w1(e),{writeContract:f,data:p,reset:g}=Mc(),{isSuccess:m}=Nc({hash:p,chainId:u});R.useEffect(()=>{m&&r&&(i(!1),t())},[m,r,t]);const y=R.useCallback(async()=>{if(!(!n||!(e!=null&&e.depositsContractAddress))){c(null),i(!0),g();try{await d();const w=await EN(n);if(!w.ok){i(!1),c("Failed to sign wallet authorization");return}f({address:e.depositsContractAddress,abi:DN,functionName:"setOperator",chainId:u,args:[w.buyer,n,BigInt(w.nonce),w.signature]},{onError:b=>{i(!1),c(Fo(b))}})}catch(w){i(!1),c(Fo(w,"Failed to set wallet"))}}},[n,e,d,u,f,g]);return W.jsxs("div",{className:"status-msg",style:{marginTop:0,marginBottom:16,fontSize:12},children:[W.jsx("div",{style:{color:"var(--text-secondary)",marginBottom:8},children:"No wallet set. This is the wallet used to claim ANTS rewards and manage channels. Set your connected wallet to continue."}),W.jsx("button",{className:"btn-outline",style:{fontSize:12,padding:"4px 12px"},onClick:y,disabled:r||!n,children:r?"Setting wallet...":"Set Your Wallet"}),a&&W.jsx("div",{style:{color:"var(--error)",marginTop:6},children:a})]})}function FN({size:e=24}){return W.jsxs("svg",{width:e,height:e,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[W.jsx("path",{d:"M14 9.625C14.9665 9.625 15.75 8.763 15.75 7.7C15.75 6.637 14.9665 5.775 14 5.775C13.0335 5.775 12.25 6.637 12.25 7.7C12.25 8.763 13.0335 9.625 14 9.625Z",fill:"currentColor"}),W.jsx("path",{d:"M14 15.4C15.353 15.4 16.45 14.146 16.45 12.6C16.45 11.054 15.353 9.8 14 9.8C12.647 9.8 11.55 11.054 11.55 12.6C11.55 14.146 12.647 15.4 14 15.4Z",fill:"currentColor"}),W.jsx("path",{d:"M14 23.45C15.74 23.45 17.15 21.57 17.15 19.25C17.15 16.93 15.74 15.05 14 15.05C12.26 15.05 10.85 16.93 10.85 19.25C10.85 21.57 12.26 23.45 14 23.45Z",fill:"currentColor"}),W.jsx("path",{opacity:"0.6",d:"M12.95 5.95L9.8 2.1",stroke:"currentColor",strokeWidth:"0.6",strokeLinecap:"round"}),W.jsx("path",{opacity:"0.6",d:"M15.05 5.95L18.2 2.1",stroke:"currentColor",strokeWidth:"0.6",strokeLinecap:"round"}),W.jsx("circle",{cx:"9.8",cy:"2.1",r:"0.875",fill:"currentColor"}),W.jsx("circle",{cx:"18.2",cy:"2.1",r:"0.875",fill:"currentColor"}),W.jsx("path",{opacity:"0.4",d:"M12.25 11.2L6.125 7.7",stroke:"currentColor",strokeWidth:"0.52",strokeLinecap:"round"}),W.jsx("path",{opacity:"0.4",d:"M15.75 11.2L21.875 7.7",stroke:"currentColor",strokeWidth:"0.52",strokeLinecap:"round"}),W.jsx("circle",{cx:"6.3",cy:"7.7",r:"0.875",fill:"currentColor"}),W.jsx("circle",{cx:"21.7",cy:"7.7",r:"0.875",fill:"currentColor"})]})}function zN({isDark:e,onToggle:t}){return W.jsx("button",{className:"theme-toggle",onClick:t,title:e?"Switch to light":"Switch to dark",children:e?W.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[W.jsx("circle",{cx:"8",cy:"8",r:"3",stroke:"currentColor",strokeWidth:"1.2"}),W.jsx("path",{d:"M8 2V3.5M8 12.5V14M2 8H3.5M12.5 8H14M3.8 3.8L4.8 4.8M11.2 11.2L12.2 12.2M3.8 12.2L4.8 11.2M11.2 4.8L12.2 3.8",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]}):W.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:W.jsx("path",{d:"M13.5 10A5.5 5.5 0 016 2.5 5.5 5.5 0 108 13.5a5.5 5.5 0 005.5-3.5z",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"})})})}function UN(){const[e,t]=R.useState(null),[n,r]=R.useState(null),[i,a]=R.useState(()=>new URLSearchParams(window.location.search).get("tab")==="channels"?"channels":"deposit"),[c,u]=R.useState(()=>{const y=localStorage.getItem("antseed-payments-theme");return y?y==="dark":window.matchMedia("(prefers-color-scheme: dark)").matches});R.useEffect(()=>{document.documentElement.setAttribute("data-theme",c?"dark":"light"),localStorage.setItem("antseed-payments-theme",c?"dark":"light")},[c]);const d=R.useCallback(async()=>{try{const y=await wN();t(y)}catch{}},[]),f=R.useCallback(async()=>{await d(),setTimeout(d,3e3)},[d]);R.useEffect(()=>{d(),bN().then(r).catch(()=>{})},[d]);const p=e?parseFloat(e.available):0,g=e?parseFloat(e.reserved):0,m=e?parseFloat(e.creditLimit):0;return(n==null?void 0:n.evmAddress)??(e==null||e.evmAddress),W.jsxs("div",{className:"portal-page",children:[W.jsxs("div",{className:"portal-box",children:[W.jsxs("div",{className:"portal-header",children:[W.jsxs("div",{className:"portal-brand",children:[W.jsx(FN,{size:20}),W.jsx("span",{className:"portal-title",children:"AntSeed"})]}),W.jsxs("div",{className:"portal-header-right",children:[W.jsx(zN,{isDark:c,onToggle:()=>u(y=>!y)}),W.jsxs("div",{className:"portal-network",children:[W.jsx("span",{className:"portal-network-dot"}),"Base"]})]})]}),W.jsxs("div",{className:"balance-bar",children:[W.jsxs("div",{className:"balance-bar-item",children:[W.jsx("span",{className:"balance-bar-label",children:"Available"}),W.jsxs("span",{className:"balance-bar-value balance-bar-value--accent",children:["$",p.toFixed(2)]})]}),W.jsxs("div",{className:"balance-bar-item",children:[W.jsx("span",{className:"balance-bar-label",children:"Reserved"}),W.jsxs("span",{className:"balance-bar-value",children:["$",g.toFixed(2)]})]}),W.jsxs("div",{className:"balance-bar-item",children:[W.jsx("span",{className:"balance-bar-label",children:"Credit Limit"}),W.jsxs("span",{className:"balance-bar-value",children:["$",m.toFixed(2)]})]})]}),W.jsxs("div",{className:"tabs",children:[W.jsx("button",{className:`tab${i==="deposit"?" tab-active":""}`,onClick:()=>a("deposit"),children:"Deposit"}),W.jsx("button",{className:`tab${i==="channels"?" tab-active":""}`,onClick:()=>a("channels"),children:"Channels"})]}),W.jsx("div",{className:"portal-section",children:i==="deposit"?W.jsx(IN,{config:n,buyerAddress:(n==null?void 0:n.evmAddress)??null,onDeposited:f}):W.jsx(MN,{config:n})})]}),W.jsxs("div",{className:"portal-footer",children:[W.jsx("span",{children:"AntSeed Payments"}),W.jsxs("div",{className:"portal-footer-links",children:[W.jsx("a",{href:"https://antseed.com",target:"_blank",rel:"noopener noreferrer",children:"antseed.com"}),W.jsx("a",{href:"https://antseed.com/docs/payments",target:"_blank",rel:"noopener noreferrer",children:"Docs"})]})]})]})}const WN=new Xj,$N=document.getElementById("root");Q8.createRoot($N).render(W.jsx(vj,{config:gN,children:W.jsx(CB,{client:WN,children:W.jsx(DO,{children:W.jsx(UN,{})})})}));const $b=Object.freeze(Object.defineProperty({__proto__:null,default:Lp},Symbol.toStringTag,{value:"Module"}));export{SI as $,X8 as A,ne as B,ae as C,rA as D,iE as E,cM as F,nr as G,ac as H,Vt as I,Xk as J,$t as K,Jc as L,tr as M,vn as N,ZE as O,Um as P,St as Q,Ee as R,Dd as S,P2 as T,KN as U,h2 as V,Qo as W,ul as X,ea as Y,N5 as Z,de as _,O4 as a,w5 as a0,nM as a1,_E as a2,rM as a3,Wo as a4,LE as a5,lc as a6,PE as a7,FE as a8,e5 as a9,p6 as aA,Zc as aB,Pm as aa,Hw as ab,sj as ac,Je as ad,At as ae,od as af,Ln as ag,kd as ah,el as ai,an as aj,B4 as ak,Kh as al,im as am,ok as an,gm as ao,Cr as ap,Tm as aq,Uc as ar,e1 as as,hk as at,N2 as au,fM as av,dM as aw,qo as ax,Pi as ay,P4 as az,Dn as b,ca as c,m4 as d,Wi as e,xr as f,om as g,xn as h,Pc as i,G2 as j,fS as k,_d as l,HN as m,t6 as n,jd as o,jI as p,Qu as q,VN as r,kt as s,sn as t,ir as u,ct as v,ra as w,Ks as x,m6 as y,j6 as z};