(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('._lds-dual-ring_8bn90_1{display:inline-block;width:auto;height:100%}._lds-dual-ring_8bn90_1:after{content:" ";opacity:.8;display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid currentColor;border-color:currentColor transparent currentColor transparent;animation:_lds-dual-ring_8bn90_1 1.2s linear infinite}@keyframes _lds-dual-ring_8bn90_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._modal_pf7vp_1{box-sizing:border-box;position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0009;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:all .3s ease-in-out;overflow:hidden;z-index:var(--modal-z-index, 999);animation:_modal-enter_pf7vp_1 .2s ease-in-out}@keyframes _modal-enter_pf7vp_1{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}._modal_pf7vp_1 svg{width:unset;height:unset}._modal-content_pf7vp_34{box-sizing:border-box;font-family:var(--modal-font-family, inherit);background:var(--modal-background);color:var(--modal-foreground, #121212);border-radius:var(--modal-border-radius);padding:var(--modal-gutter, "32px 30px");width:var(--modal-width, 90%);max-width:var(--modal-max-width, 470px);min-height:var(--modal-min-height, auto);max-height:var(--modal-max-height, 320px);display:grid;grid-template-columns:auto;grid-template-rows:max-content 1fr max-content}._modal-content-body_pf7vp_50{overflow-y:auto;max-height:100%}._modal-header_pf7vp_55{display:grid;grid-template-columns:32px 1fr 32px;justify-items:center;align-items:center;font-size:var(--modal-header-font-size, 1.5rem);text-align:center}._modal-header_pf7vp_55:after{content:"";display:block;margin-bottom:var(--modal-gutter)}._modal-content-footer_pf7vp_71:before{content:"";display:block;margin-top:var(--modal-gutter)}button._icon-button_pf7vp_78{padding:0;border:none;outline:none;font:inherit;color:inherit;background:none;cursor:pointer;display:inline-flex;align-items:center;align-self:baseline;opacity:.5}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})(); "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react"),mr=require("react-dom");function gr(o){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const f in o)if(f!=="default"){const u=Object.getOwnPropertyDescriptor(o,f);Object.defineProperty(l,f,u.get?u:{enumerable:!0,get:()=>o[f]})}}return l.default=o,Object.freeze(l)}const Y=gr(S);var te={exports:{}},N={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ce;function hr(){if(Ce)return N;Ce=1;var o=S,l=Symbol.for("react.element"),f=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,_=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function O(j,m,k){var g,R={},C=null,V=null;k!==void 0&&(C=""+k),m.key!==void 0&&(C=""+m.key),m.ref!==void 0&&(V=m.ref);for(g in m)u.call(m,g)&&!d.hasOwnProperty(g)&&(R[g]=m[g]);if(j&&j.defaultProps)for(g in m=j.defaultProps,m)R[g]===void 0&&(R[g]=m[g]);return{$$typeof:l,type:j,key:C,ref:V,props:R,_owner:_.current}}return N.Fragment=f,N.jsx=O,N.jsxs=O,N}var M={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ke;function yr(){return ke||(ke=1,process.env.NODE_ENV!=="production"&&function(){var o=S,l=Symbol.for("react.element"),f=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),j=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen"),ne=Symbol.iterator,De="@@iterator";function Ae(e){if(e===null||typeof e!="object")return null;var r=ne&&e[ne]||e[De];return typeof r=="function"?r:null}var A=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n=1&&p>=0&&a[v]!==y[p];)p--;for(;v>=1&&p>=0;v--,p--)if(a[v]!==y[p]){if(v!==1||p!==1)do if(v--,p--,p<0||a[v]!==y[p]){var w=` `+a[v].replace(" at new "," at ");return e.displayName&&w.includes("")&&(w=w.replace("",e.displayName)),typeof e=="function"&&B.set(e,w),w}while(v>=1&&p>=0);break}}}finally{G=!1,K.current=c,Ue(),Error.prepareStackTrace=s}var F=e?e.displayName||e.name:"",P=F?U(F):"";return typeof e=="function"&&B.set(e,P),P}function Je(e,r,t){return pe(e,!1)}function qe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function J(e,r,t){if(e==null)return"";if(typeof e=="function")return pe(e,qe(e));if(typeof e=="string")return U(e);switch(e){case k:return U("Suspense");case g:return U("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return Je(e.render);case R:return J(e.type,r,t);case C:{var n=e,s=n._payload,c=n._init;try{return J(c(s),r,t)}catch{}}}return""}var W=Object.prototype.hasOwnProperty,me={},ge=A.ReactDebugCurrentFrame;function q(e){if(e){var r=e._owner,t=J(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}function Ke(e,r,t,n,s){{var c=Function.call.bind(W);for(var i in e)if(c(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var y=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(v){a=v}a&&!(a instanceof Error)&&(q(s),h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),q(null)),a instanceof Error&&!(a.message in me)&&(me[a.message]=!0,q(s),h("Failed %s type: %s",t,a.message),q(null))}}}var ze=Array.isArray;function X(e){return ze(e)}function Ge(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Xe(e){try{return he(e),!1}catch{return!0}}function he(e){return""+e}function ye(e){if(Xe(e))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ge(e)),he(e)}var I=A.ReactCurrentOwner,He={key:!0,ref:!0,__self:!0,__source:!0},be,_e,H;H={};function Ze(e){if(W.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Qe(e){if(W.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function er(e,r){if(typeof e.ref=="string"&&I.current&&r&&I.current.stateNode!==r){var t=T(I.current.type);H[t]||(h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',T(I.current.type),e.ref),H[t]=!0)}}function rr(e,r){{var t=function(){be||(be=!0,h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function tr(e,r){{var t=function(){_e||(_e=!0,h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var nr=function(e,r,t,n,s,c,i){var a={$$typeof:l,type:e,key:r,ref:t,props:i,_owner:c};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ar(e,r,t,n,s){{var c,i={},a=null,y=null;t!==void 0&&(ye(t),a=""+t),Qe(r)&&(ye(r.key),a=""+r.key),Ze(r)&&(y=r.ref,er(r,s));for(c in r)W.call(r,c)&&!He.hasOwnProperty(c)&&(i[c]=r[c]);if(e&&e.defaultProps){var v=e.defaultProps;for(c in v)i[c]===void 0&&(i[c]=v[c])}if(a||y){var p=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&rr(i,p),y&&tr(i,p)}return nr(e,a,y,s,n,I.current,i)}}var Z=A.ReactCurrentOwner,Ee=A.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,t=J(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===l}function Re(){{if(Z.current){var e=T(Z.current.type);if(e)return` Check the render method of \``+e+"`."}return""}}function or(e){return""}var we={};function ir(e){{var r=Re();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=` Check the top-level render call using <`+t+">.")}return r}}function Oe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ir(r);if(we[t])return;we[t]=!0;var n="";e&&e._owner&&e._owner!==Z.current&&(n=" It was passed a child from "+T(e._owner.type)+"."),L(e),h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),L(null)}}function Se(e,r){{if(typeof e!="object")return;if(X(e))for(var t=0;t",a=" Did you accidentally export a JSX literal instead of a component?"):v=typeof e,h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",v,a)}var p=ar(e,r,t,s,c);if(p==null)return p;if(i){var w=r.children;if(w!==void 0)if(n)if(X(w)){for(var F=0;F0?"{key: someKey, "+b.join(": ..., ")+": ...}":"{key: someKey}";if(!je[P+re]){var vr=b.length>0?"{"+b.join(": ..., ")+": ...}":"{}";h(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,re,P,vr,P),je[P+re]=!0}}return e===u?ur(p):sr(p),p}}function lr(e,r,t){return Te(e,r,t,!0)}function cr(e,r,t){return Te(e,r,t,!1)}var fr=cr,dr=lr;M.Fragment=u,M.jsx=fr,M.jsxs=dr}()),M}process.env.NODE_ENV==="production"?te.exports=hr():te.exports=yr();var E=te.exports;const br={"lds-dual-ring":"_lds-dual-ring_8bn90_1"},_r=({className:o="",style:l})=>E.jsx("div",{className:`${br["lds-dual-ring"]} ${o}`,style:l}),Er=o=>Y.createElement("svg",{width:10,height:18,viewBox:"0 0 10 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},Y.createElement("path",{d:"M9 1L0.999999 9L9 17",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Rr=o=>Y.createElement("svg",{width:32,height:32,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o},Y.createElement("path",{d:"M30 10L10 30",stroke:"currentColor",strokeWidth:3.33333,strokeLinecap:"round",strokeLinejoin:"round"}),Y.createElement("path",{d:"M10 10L30 30",stroke:"currentColor",strokeWidth:3.33333,strokeLinecap:"round",strokeLinejoin:"round"}));function xe(o,l){S.useEffect(()=>{const f=u=>{const _=o==null?void 0:o.current;!_||_.contains(u.target)||l(u)};return document.addEventListener("mousedown",f),document.addEventListener("touchstart",f),()=>{document.removeEventListener("mousedown",f),document.removeEventListener("touchstart",f)}},[o,l])}const wr="_modal_pf7vp_1",D={modal:wr,"modal-enter":"_modal-enter_pf7vp_1","modal-content":"_modal-content_pf7vp_34","modal-content-body":"_modal-content-body_pf7vp_50","modal-header":"_modal-header_pf7vp_55","modal-content-footer":"_modal-content-footer_pf7vp_71","icon-button":"_icon-button_pf7vp_78"};function Or(o,l){const f=document.createElement("div");f.setAttribute("id",o);const u=l?document.getElementById(l):document.body;return u&&u.appendChild(f),f}function Sr({children:o,wrapperId:l="react-portal-wrapper",appId:f}){const[u,_]=S.useState(null);return S.useEffect(()=>{let d=document.getElementById(l),O=!1;return d||(O=!0,d=Or(l,f)),_(d),()=>{O&&(d!=null&&d.parentNode)&&d.parentNode.removeChild(d)}},[f,l]),u===null?null:mr.createPortal(o,u)}function jr(o){const{children:l,isOpen:f,handleClose:u,handleBack:_,title:d,className:O="",footer:j,appId:m}=o,k=S.useRef(null),g=S.useRef(null);return xe(g,u),S.useEffect(()=>{const R=C=>C.key==="Escape"?u():null;return document.body.addEventListener("keydown",R),()=>{document.body.removeEventListener("keydown",R)}},[u]),f?E.jsx(Sr,{wrapperId:"react-portal-modal-container",appId:m,children:E.jsx("div",{ref:k,className:`${D.modal} ${O}`,children:E.jsxs("div",{ref:g,className:D["modal-content"],children:[E.jsxs("header",{className:D["modal-header"],children:[E.jsx("span",{children:_&&E.jsx("button",{onClick:_,className:D["icon-button"],children:E.jsx(Er,{})})}),E.jsx("div",{children:d}),E.jsx("button",{onClick:u,className:D["icon-button"],children:E.jsx(Rr,{width:24,height:24})})]}),E.jsx("main",{className:D["modal-content-body"],children:l}),j&&E.jsx("footer",{className:D["modal-content-footer"],children:j})]})})}):null}function Tr(o,l=""){const[f,u]=S.useState(l);return S.useEffect(()=>{if(typeof window>"u")return;const d=window.localStorage.getItem(o);if(d)try{u(JSON.parse(d))}catch{u(d)}},[o,u]),[f,d=>{u(d),window.localStorage.setItem(o,JSON.stringify(d))}]}const Pe=(o,l=4,f=4)=>`${o.substring(0,l)}…${o.substring(o.length-f)}`,Cr=Pe;exports.DualRingLoader=_r;exports.Modal=jr;exports.shortenAddress=Pe;exports.truncateMiddle=Cr;exports.useLocalStorage=Tr;exports.useOnClickOutside=xe;