Files
frontend/dist/assets/index-5UhazDjJ.js
2026-06-15 23:06:24 +03:00

162 lines
605 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var Lm=a=>{throw TypeError(a)};var fd=(a,i,c)=>i.has(a)||Lm("Cannot "+c);var T=(a,i,c)=>(fd(a,i,"read from private field"),c?c.call(a):i.get(a)),ie=(a,i,c)=>i.has(a)?Lm("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(a):i.set(a,c),J=(a,i,c,r)=>(fd(a,i,"write to private field"),r?r.call(a,c):i.set(a,c),c),Se=(a,i,c)=>(fd(a,i,"access private method"),c);var jo=(a,i,c,r)=>({set _(d){J(a,i,d,c)},get _(){return T(a,i,r)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))r(d);new MutationObserver(d=>{for(const f of d)if(f.type==="childList")for(const p of f.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&r(p)}).observe(document,{childList:!0,subtree:!0});function c(d){const f={};return d.integrity&&(f.integrity=d.integrity),d.referrerPolicy&&(f.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?f.credentials="include":d.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(d){if(d.ep)return;d.ep=!0;const f=c(d);fetch(d.href,f)}})();function r3(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var hd={exports:{}},Ec={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var zm;function ny(){if(zm)return Ec;zm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(r,d,f){var p=null;if(f!==void 0&&(p=""+f),d.key!==void 0&&(p=""+d.key),"key"in d){f={};for(var g in d)g!=="key"&&(f[g]=d[g])}else f=d;return d=f.ref,{$$typeof:a,type:r,key:p,ref:d!==void 0?d:null,props:f}}return Ec.Fragment=i,Ec.jsx=c,Ec.jsxs=c,Ec}var Dm;function ly(){return Dm||(Dm=1,hd.exports=ny()),hd.exports}var l=ly(),md={exports:{}},ve={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var km;function ay(){if(km)return ve;km=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function N(R){return R===null||typeof R!="object"?null:(R=b&&R[b]||R["@@iterator"],typeof R=="function"?R:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,w={};function O(R,V,Z){this.props=R,this.context=V,this.refs=w,this.updater=Z||S}O.prototype.isReactComponent={},O.prototype.setState=function(R,V){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,V,"setState")},O.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function H(){}H.prototype=O.prototype;function L(R,V,Z){this.props=R,this.context=V,this.refs=w,this.updater=Z||S}var U=L.prototype=new H;U.constructor=L,C(U,O.prototype),U.isPureReactComponent=!0;var I=Array.isArray;function W(){}var B={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function le(R,V,Z){var te=Z.ref;return{$$typeof:a,type:R,key:V,ref:te!==void 0?te:null,props:Z}}function me(R,V){return le(R.type,V,R.props)}function he(R){return typeof R=="object"&&R!==null&&R.$$typeof===a}function Ee(R){var V={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(Z){return V[Z]})}var re=/\/+/g;function ge(R,V){return typeof R=="object"&&R!==null&&R.key!=null?Ee(""+R.key):V.toString(36)}function de(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(W,W):(R.status="pending",R.then(function(V){R.status==="pending"&&(R.status="fulfilled",R.value=V)},function(V){R.status==="pending"&&(R.status="rejected",R.reason=V)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function q(R,V,Z,te,pe){var be=typeof R;(be==="undefined"||be==="boolean")&&(R=null);var De=!1;if(R===null)De=!0;else switch(be){case"bigint":case"string":case"number":De=!0;break;case"object":switch(R.$$typeof){case a:case i:De=!0;break;case v:return De=R._init,q(De(R._payload),V,Z,te,pe)}}if(De)return pe=pe(R),De=te===""?"."+ge(R,0):te,I(pe)?(Z="",De!=null&&(Z=De.replace(re,"$&/")+"/"),q(pe,V,Z,"",function(ll){return ll})):pe!=null&&(he(pe)&&(pe=me(pe,Z+(pe.key==null||R&&R.key===pe.key?"":(""+pe.key).replace(re,"$&/")+"/")+De)),V.push(pe)),1;De=0;var Nt=te===""?".":te+":";if(I(R))for(var tt=0;tt<R.length;tt++)te=R[tt],be=Nt+ge(te,tt),De+=q(te,V,Z,be,pe);else if(tt=N(R),typeof tt=="function")for(R=tt.call(R),tt=0;!(te=R.next()).done;)te=te.value,be=Nt+ge(te,tt++),De+=q(te,V,Z,be,pe);else if(be==="object"){if(typeof R.then=="function")return q(de(R),V,Z,te,pe);throw V=String(R),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return De}function P(R,V,Z){if(R==null)return R;var te=[],pe=0;return q(R,te,"","",function(be){return V.call(Z,be,pe++)}),te}function se(R){if(R._status===-1){var V=R._result;V=V(),V.then(function(Z){(R._status===0||R._status===-1)&&(R._status=1,R._result=Z)},function(Z){(R._status===0||R._status===-1)&&(R._status=2,R._result=Z)}),R._status===-1&&(R._status=0,R._result=V)}if(R._status===1)return R._result.default;throw R._result}var Te=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},Re={map:P,forEach:function(R,V,Z){P(R,function(){V.apply(this,arguments)},Z)},count:function(R){var V=0;return P(R,function(){V++}),V},toArray:function(R){return P(R,function(V){return V})||[]},only:function(R){if(!he(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return ve.Activity=y,ve.Children=Re,ve.Component=O,ve.Fragment=c,ve.Profiler=d,ve.PureComponent=L,ve.StrictMode=r,ve.Suspense=h,ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,ve.__COMPILER_RUNTIME={__proto__:null,c:function(R){return B.H.useMemoCache(R)}},ve.cache=function(R){return function(){return R.apply(null,arguments)}},ve.cacheSignal=function(){return null},ve.cloneElement=function(R,V,Z){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var te=C({},R.props),pe=R.key;if(V!=null)for(be in V.key!==void 0&&(pe=""+V.key),V)!Y.call(V,be)||be==="key"||be==="__self"||be==="__source"||be==="ref"&&V.ref===void 0||(te[be]=V[be]);var be=arguments.length-2;if(be===1)te.children=Z;else if(1<be){for(var De=Array(be),Nt=0;Nt<be;Nt++)De[Nt]=arguments[Nt+2];te.children=De}return le(R.type,pe,te)},ve.createContext=function(R){return R={$$typeof:p,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},ve.createElement=function(R,V,Z){var te,pe={},be=null;if(V!=null)for(te in V.key!==void 0&&(be=""+V.key),V)Y.call(V,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(pe[te]=V[te]);var De=arguments.length-2;if(De===1)pe.children=Z;else if(1<De){for(var Nt=Array(De),tt=0;tt<De;tt++)Nt[tt]=arguments[tt+2];pe.children=Nt}if(R&&R.defaultProps)for(te in De=R.defaultProps,De)pe[te]===void 0&&(pe[te]=De[te]);return le(R,be,pe)},ve.createRef=function(){return{current:null}},ve.forwardRef=function(R){return{$$typeof:g,render:R}},ve.isValidElement=he,ve.lazy=function(R){return{$$typeof:v,_payload:{_status:-1,_result:R},_init:se}},ve.memo=function(R,V){return{$$typeof:m,type:R,compare:V===void 0?null:V}},ve.startTransition=function(R){var V=B.T,Z={};B.T=Z;try{var te=R(),pe=B.S;pe!==null&&pe(Z,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(W,Te)}catch(be){Te(be)}finally{V!==null&&Z.types!==null&&(V.types=Z.types),B.T=V}},ve.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},ve.use=function(R){return B.H.use(R)},ve.useActionState=function(R,V,Z){return B.H.useActionState(R,V,Z)},ve.useCallback=function(R,V){return B.H.useCallback(R,V)},ve.useContext=function(R){return B.H.useContext(R)},ve.useDebugValue=function(){},ve.useDeferredValue=function(R,V){return B.H.useDeferredValue(R,V)},ve.useEffect=function(R,V){return B.H.useEffect(R,V)},ve.useEffectEvent=function(R){return B.H.useEffectEvent(R)},ve.useId=function(){return B.H.useId()},ve.useImperativeHandle=function(R,V,Z){return B.H.useImperativeHandle(R,V,Z)},ve.useInsertionEffect=function(R,V){return B.H.useInsertionEffect(R,V)},ve.useLayoutEffect=function(R,V){return B.H.useLayoutEffect(R,V)},ve.useMemo=function(R,V){return B.H.useMemo(R,V)},ve.useOptimistic=function(R,V){return B.H.useOptimistic(R,V)},ve.useReducer=function(R,V,Z){return B.H.useReducer(R,V,Z)},ve.useRef=function(R){return B.H.useRef(R)},ve.useState=function(R){return B.H.useState(R)},ve.useSyncExternalStore=function(R,V,Z){return B.H.useSyncExternalStore(R,V,Z)},ve.useTransition=function(){return B.H.useTransition()},ve.version="19.2.5",ve}var Bm;function f2(){return Bm||(Bm=1,md.exports=ay()),md.exports}var j=f2();const Et=r3(j);var pd={exports:{}},Tc={},_d={exports:{}},gd={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Um;function sy(){return Um||(Um=1,(function(a){function i(q,P){var se=q.length;q.push(P);e:for(;0<se;){var Te=se-1>>>1,Re=q[Te];if(0<d(Re,P))q[Te]=P,q[se]=Re,se=Te;else break e}}function c(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var P=q[0],se=q.pop();if(se!==P){q[0]=se;e:for(var Te=0,Re=q.length,R=Re>>>1;Te<R;){var V=2*(Te+1)-1,Z=q[V],te=V+1,pe=q[te];if(0>d(Z,se))te<Re&&0>d(pe,Z)?(q[Te]=pe,q[te]=se,Te=te):(q[Te]=Z,q[V]=se,Te=V);else if(te<Re&&0>d(pe,se))q[Te]=pe,q[te]=se,Te=te;else break e}}return P}function d(q,P){var se=q.sortIndex-P.sortIndex;return se!==0?se:q.id-P.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var p=Date,g=p.now();a.unstable_now=function(){return p.now()-g}}var h=[],m=[],v=1,y=null,b=3,N=!1,S=!1,C=!1,w=!1,O=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function U(q){for(var P=c(m);P!==null;){if(P.callback===null)r(m);else if(P.startTime<=q)r(m),P.sortIndex=P.expirationTime,i(h,P);else break;P=c(m)}}function I(q){if(C=!1,U(q),!S)if(c(h)!==null)S=!0,W||(W=!0,Ee());else{var P=c(m);P!==null&&de(I,P.startTime-q)}}var W=!1,B=-1,Y=5,le=-1;function me(){return w?!0:!(a.unstable_now()-le<Y)}function he(){if(w=!1,W){var q=a.unstable_now();le=q;var P=!0;try{e:{S=!1,C&&(C=!1,H(B),B=-1),N=!0;var se=b;try{t:{for(U(q),y=c(h);y!==null&&!(y.expirationTime>q&&me());){var Te=y.callback;if(typeof Te=="function"){y.callback=null,b=y.priorityLevel;var Re=Te(y.expirationTime<=q);if(q=a.unstable_now(),typeof Re=="function"){y.callback=Re,U(q),P=!0;break t}y===c(h)&&r(h),U(q)}else r(h);y=c(h)}if(y!==null)P=!0;else{var R=c(m);R!==null&&de(I,R.startTime-q),P=!1}}break e}finally{y=null,b=se,N=!1}P=void 0}}finally{P?Ee():W=!1}}}var Ee;if(typeof L=="function")Ee=function(){L(he)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,ge=re.port2;re.port1.onmessage=he,Ee=function(){ge.postMessage(null)}}else Ee=function(){O(he,0)};function de(q,P){B=O(function(){q(a.unstable_now())},P)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(q){q.callback=null},a.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<q?Math.floor(1e3/q):5},a.unstable_getCurrentPriorityLevel=function(){return b},a.unstable_next=function(q){switch(b){case 1:case 2:case 3:var P=3;break;default:P=b}var se=b;b=P;try{return q()}finally{b=se}},a.unstable_requestPaint=function(){w=!0},a.unstable_runWithPriority=function(q,P){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var se=b;b=q;try{return P()}finally{b=se}},a.unstable_scheduleCallback=function(q,P,se){var Te=a.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?Te+se:Te):se=Te,q){case 1:var Re=-1;break;case 2:Re=250;break;case 5:Re=1073741823;break;case 4:Re=1e4;break;default:Re=5e3}return Re=se+Re,q={id:v++,callback:P,priorityLevel:q,startTime:se,expirationTime:Re,sortIndex:-1},se>Te?(q.sortIndex=se,i(m,q),c(h)===null&&q===c(m)&&(C?(H(B),B=-1):C=!0,de(I,se-Te))):(q.sortIndex=Re,i(h,q),S||N||(S=!0,W||(W=!0,Ee()))),q},a.unstable_shouldYield=me,a.unstable_wrapCallback=function(q){var P=b;return function(){var se=b;b=P;try{return q.apply(this,arguments)}finally{b=se}}}})(gd)),gd}var $m;function iy(){return $m||($m=1,_d.exports=sy()),_d.exports}var vd={exports:{}},Gt={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Hm;function cy(){if(Hm)return Gt;Hm=1;var a=f2();function i(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},d=Symbol.for("react.portal");function f(h,m,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:y==null?null:""+y,children:h,containerInfo:m,implementation:v}}var p=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Gt.createPortal=function(h,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return f(h,m,null,v)},Gt.flushSync=function(h){var m=p.T,v=r.p;try{if(p.T=null,r.p=2,h)return h()}finally{p.T=m,r.p=v,r.d.f()}},Gt.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(h,m))},Gt.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},Gt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var v=m.as,y=g(v,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,N=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?r.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:N}):v==="script"&&r.d.X(h,{crossOrigin:y,integrity:b,fetchPriority:N,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Gt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=g(m.as,m.crossOrigin);r.d.M(h,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(h)},Gt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,y=g(v,m.crossOrigin);r.d.L(h,v,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Gt.preloadModule=function(h,m){if(typeof h=="string")if(m){var v=g(m.as,m.crossOrigin);r.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(h)},Gt.requestFormReset=function(h){r.d.r(h)},Gt.unstable_batchedUpdates=function(h,m){return h(m)},Gt.useFormState=function(h,m,v){return p.H.useFormState(h,m,v)},Gt.useFormStatus=function(){return p.H.useHostTransitionStatus()},Gt.version="19.2.5",Gt}var qm;function ry(){if(qm)return vd.exports;qm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),vd.exports=cy(),vd.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Fm;function oy(){if(Fm)return Tc;Fm=1;var a=iy(),i=f2(),c=ry();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(r(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,s=t;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(s=o.return,s!==null){n=s;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return h(o),e;if(u===s)return h(o),t;u=u.sibling}throw Error(r(188))}if(n.return!==s.return)n=o,s=u;else{for(var _=!1,x=o.child;x;){if(x===n){_=!0,n=o,s=u;break}if(x===s){_=!0,s=o,n=u;break}x=x.sibling}if(!_){for(x=u.child;x;){if(x===n){_=!0,n=u,s=o;break}if(x===s){_=!0,s=u,n=o;break}x=x.sibling}if(!_)throw Error(r(189))}}if(n.alternate!==s)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),L=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),me=Symbol.for("react.memo_cache_sentinel"),he=Symbol.iterator;function Ee(e){return e===null||typeof e!="object"?null:(e=he&&e[he]||e["@@iterator"],typeof e=="function"?e:null)}var re=Symbol.for("react.client.reference");function ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case O:return"Profiler";case w:return"StrictMode";case I:return"Suspense";case W:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case S:return"Portal";case L:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case U:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return t=e.displayName||null,t!==null?t:ge(e.type)||"Memo";case Y:t=e._payload,e=e._init;try{return ge(e(t))}catch{}}return null}var de=Array.isArray,q=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},Te=[],Re=-1;function R(e){return{current:e}}function V(e){0>Re||(e.current=Te[Re],Te[Re]=null,Re--)}function Z(e,t){Re++,Te[Re]=e.current,e.current=t}var te=R(null),pe=R(null),be=R(null),De=R(null);function Nt(e,t){switch(Z(be,t),Z(pe,e),Z(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?nm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=nm(t),e=lm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(te),Z(te,e)}function tt(){V(te),V(pe),V(be)}function ll(e){e.memoizedState!==null&&Z(De,e);var t=te.current,n=lm(t,e.type);t!==n&&(Z(pe,e),Z(te,n))}function _l(e){pe.current===e&&(V(te),V(pe)),De.current===e&&(V(De),Sc._currentValue=se)}var Pl,Xl;function Ce(e){if(Pl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Pl=t&&t[1]||"",Xl=-1<n.stack.indexOf(`
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Pl+e+Xl}var Pt=!1;function gl(e,t){if(!e||Pt)return"";Pt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch($){var k=$}Reflect.construct(e,[],Q)}else{try{Q.call()}catch($){k=$}e.call(Q.prototype)}}else{try{throw Error()}catch($){k=$}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch($){if($&&k&&typeof $.stack=="string")return[$.stack,k.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=s.DetermineComponentFrameRoot(),_=u[0],x=u[1];if(_&&x){var E=_.split(`
`),D=x.split(`
`);for(o=s=0;s<E.length&&!E[s].includes("DetermineComponentFrameRoot");)s++;for(;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;if(s===E.length||o===D.length)for(s=E.length-1,o=D.length-1;1<=s&&0<=o&&E[s]!==D[o];)o--;for(;1<=s&&0<=o;s--,o--)if(E[s]!==D[o]){if(s!==1||o!==1)do if(s--,o--,0>o||E[s]!==D[o]){var F=`
`+E[s].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=s&&0<=o);break}}}finally{Pt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ce(n):""}function Ke(e,t){switch(e.tag){case 26:case 27:case 5:return Ce(e.type);case 16:return Ce("Lazy");case 13:return e.child!==t&&t!==null?Ce("Suspense Fallback"):Ce("Suspense");case 19:return Ce("SuspenseList");case 0:case 15:return gl(e.type,!1);case 11:return gl(e.type.render,!1);case 1:return gl(e.type,!0);case 31:return Ce("Activity");default:return""}}function ln(e){try{var t="",n=null;do t+=Ke(e,n),n=e,e=e.return;while(e);return t}catch(s){return`
Error generating stack: `+s.message+`
`+s.stack}}var bs=Object.prototype.hasOwnProperty,js=a.unstable_scheduleCallback,Jo=a.unstable_cancelCallback,z_=a.unstable_shouldYield,D_=a.unstable_requestPaint,gn=a.unstable_now,k_=a.unstable_getCurrentPriorityLevel,L2=a.unstable_ImmediatePriority,z2=a.unstable_UserBlockingPriority,ar=a.unstable_NormalPriority,B_=a.unstable_LowPriority,D2=a.unstable_IdlePriority,U_=a.log,$_=a.unstable_setDisableYieldValue,Di=null,vn=null;function Zl(e){if(typeof U_=="function"&&$_(e),vn&&typeof vn.setStrictMode=="function")try{vn.setStrictMode(Di,e)}catch{}}var yn=Math.clz32?Math.clz32:F_,H_=Math.log,q_=Math.LN2;function F_(e){return e>>>=0,e===0?32:31-(H_(e)/q_|0)|0}var sr=256,ir=262144,cr=4194304;function ka(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function rr(e,t,n){var s=e.pendingLanes;if(s===0)return 0;var o=0,u=e.suspendedLanes,_=e.pingedLanes;e=e.warmLanes;var x=s&134217727;return x!==0?(s=x&~u,s!==0?o=ka(s):(_&=x,_!==0?o=ka(_):n||(n=x&~e,n!==0&&(o=ka(n))))):(x=s&~u,x!==0?o=ka(x):_!==0?o=ka(_):n||(n=s&~e,n!==0&&(o=ka(n)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:o}function ki(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function G_(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function k2(){var e=cr;return cr<<=1,(cr&62914560)===0&&(cr=4194304),e}function eu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function V_(e,t,n,s,o,u){var _=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var x=e.entanglements,E=e.expirationTimes,D=e.hiddenUpdates;for(n=_&~n;0<n;){var F=31-yn(n),Q=1<<F;x[F]=0,E[F]=-1;var k=D[F];if(k!==null)for(D[F]=null,F=0;F<k.length;F++){var $=k[F];$!==null&&($.lane&=-536870913)}n&=~Q}s!==0&&B2(e,s,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(_&~t))}function B2(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-yn(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|n&261930}function U2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-yn(n),o=1<<s;o&t|e[s]&t&&(e[s]|=t),n&=~o}}function $2(e,t){var n=t&-t;return n=(n&42)!==0?1:tu(n),(n&(e.suspendedLanes|t))!==0?0:n}function tu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function nu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function H2(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:Cm(e.type))}function q2(e,t){var n=P.p;try{return P.p=e,t()}finally{P.p=n}}var Kl=Math.random().toString(36).slice(2),Bt="__reactFiber$"+Kl,an="__reactProps$"+Kl,Ss="__reactContainer$"+Kl,lu="__reactEvents$"+Kl,Q_="__reactListeners$"+Kl,Y_="__reactHandles$"+Kl,F2="__reactResources$"+Kl,Ui="__reactMarker$"+Kl;function au(e){delete e[Bt],delete e[an],delete e[lu],delete e[Q_],delete e[Y_]}function Ns(e){var t=e[Bt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ss]||n[Bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=um(e);e!==null;){if(n=e[Bt])return n;e=um(e)}return t}e=n,n=e.parentNode}return null}function ws(e){if(e=e[Bt]||e[Ss]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function $i(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Cs(e){var t=e[F2];return t||(t=e[F2]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Rt(e){e[Ui]=!0}var G2=new Set,V2={};function Ba(e,t){Es(e,t),Es(e+"Capture",t)}function Es(e,t){for(V2[e]=t,e=0;e<t.length;e++)G2.add(t[e])}var I_=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Q2={},Y2={};function P_(e){return bs.call(Y2,e)?!0:bs.call(Q2,e)?!1:I_.test(e)?Y2[e]=!0:(Q2[e]=!0,!1)}function or(e,t,n){if(P_(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ur(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function vl(e,t,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+s)}}function Dn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function I2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function X_(e,t,n){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var o=s.get,u=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(_){n=""+_,u.call(this,_)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return n},setValue:function(_){n=""+_},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function su(e){if(!e._valueTracker){var t=I2(e)?"checked":"value";e._valueTracker=X_(e,t,""+e[t])}}function P2(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=I2(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function dr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Z_=/[\n"\\]/g;function kn(e){return e.replace(Z_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function iu(e,t,n,s,o,u,_,x){e.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?e.type=_:e.removeAttribute("type"),t!=null?_==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dn(t)):e.value!==""+Dn(t)&&(e.value=""+Dn(t)):_!=="submit"&&_!=="reset"||e.removeAttribute("value"),t!=null?cu(e,_,Dn(t)):n!=null?cu(e,_,Dn(n)):s!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Dn(x):e.removeAttribute("name")}function X2(e,t,n,s,o,u,_,x){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){su(e);return}n=n!=null?""+Dn(n):"",t=t!=null?""+Dn(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}s=s??o,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=x?e.checked:!!s,e.defaultChecked=!!s,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(e.name=_),su(e)}function cu(e,t,n){t==="number"&&dr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ts(e,t,n,s){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&s&&(e[n].defaultSelected=!0)}else{for(n=""+Dn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,s&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Z2(e,t,n){if(t!=null&&(t=""+Dn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Dn(n):""}function K2(e,t,n,s){if(t==null){if(s!=null){if(n!=null)throw Error(r(92));if(de(s)){if(1<s.length)throw Error(r(93));s=s[0]}n=s}n==null&&(n=""),t=n}n=Dn(t),e.defaultValue=n,s=e.textContent,s===n&&s!==""&&s!==null&&(e.value=s),su(e)}function Rs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var K_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function W2(e,t,n){var s=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,n):typeof n!="number"||n===0||K_.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function J2(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var s in n)!n.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var o in t)s=t[o],t.hasOwnProperty(o)&&n[o]!==s&&W2(e,o,s)}else for(var u in t)t.hasOwnProperty(u)&&W2(e,u,t[u])}function ru(e){if(e.indexOf("-")===-1)return!1;switch(e){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 W_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),J_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function fr(e){return J_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function yl(){}var ou=null;function uu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var As=null,Os=null;function ef(e){var t=ws(e);if(t&&(e=t.stateNode)){var n=e[an]||null;e:switch(e=t.stateNode,t.type){case"input":if(iu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+kn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var o=s[an]||null;if(!o)throw Error(r(90));iu(s,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)s=n[t],s.form===e.form&&P2(s)}break e;case"textarea":Z2(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ts(e,!!n.multiple,t,!1)}}}var du=!1;function tf(e,t,n){if(du)return e(t,n);du=!0;try{var s=e(t);return s}finally{if(du=!1,(As!==null||Os!==null)&&(Jr(),As&&(t=As,e=Os,Os=As=null,ef(t),e)))for(t=0;t<e.length;t++)ef(e[t])}}function Hi(e,t){var n=e.stateNode;if(n===null)return null;var s=n[an]||null;if(s===null)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var xl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fu=!1;if(xl)try{var qi={};Object.defineProperty(qi,"passive",{get:function(){fu=!0}}),window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{fu=!1}var Wl=null,hu=null,hr=null;function nf(){if(hr)return hr;var e,t=hu,n=t.length,s,o="value"in Wl?Wl.value:Wl.textContent,u=o.length;for(e=0;e<n&&t[e]===o[e];e++);var _=n-e;for(s=1;s<=_&&t[n-s]===o[u-s];s++);return hr=o.slice(e,1<s?1-s:void 0)}function mr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function pr(){return!0}function lf(){return!1}function sn(e){function t(n,s,o,u,_){this._reactName=n,this._targetInst=o,this.type=s,this.nativeEvent=u,this.target=_,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(u):u[x]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?pr:lf,this.isPropagationStopped=lf,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=pr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=pr)},persist:function(){},isPersistent:pr}),t}var Ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_r=sn(Ua),Fi=y({},Ua,{view:0,detail:0}),eg=sn(Fi),mu,pu,Gi,gr=y({},Fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Gi&&(Gi&&e.type==="mousemove"?(mu=e.screenX-Gi.screenX,pu=e.screenY-Gi.screenY):pu=mu=0,Gi=e),mu)},movementY:function(e){return"movementY"in e?e.movementY:pu}}),af=sn(gr),tg=y({},gr,{dataTransfer:0}),ng=sn(tg),lg=y({},Fi,{relatedTarget:0}),_u=sn(lg),ag=y({},Ua,{animationName:0,elapsedTime:0,pseudoElement:0}),sg=sn(ag),ig=y({},Ua,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cg=sn(ig),rg=y({},Ua,{data:0}),sf=sn(rg),og={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ug={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"},dg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=dg[e])?!!t[e]:!1}function gu(){return fg}var hg=y({},Fi,{key:function(e){if(e.key){var t=og[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=mr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ug[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gu,charCode:function(e){return e.type==="keypress"?mr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?mr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mg=sn(hg),pg=y({},gr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cf=sn(pg),_g=y({},Fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gu}),gg=sn(_g),vg=y({},Ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),yg=sn(vg),xg=y({},gr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),bg=sn(xg),jg=y({},Ua,{newState:0,oldState:0}),Sg=sn(jg),Ng=[9,13,27,32],vu=xl&&"CompositionEvent"in window,Vi=null;xl&&"documentMode"in document&&(Vi=document.documentMode);var wg=xl&&"TextEvent"in window&&!Vi,rf=xl&&(!vu||Vi&&8<Vi&&11>=Vi),of=" ",uf=!1;function df(e,t){switch(e){case"keyup":return Ng.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ff(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ms=!1;function Cg(e,t){switch(e){case"compositionend":return ff(t);case"keypress":return t.which!==32?null:(uf=!0,of);case"textInput":return e=t.data,e===of&&uf?null:e;default:return null}}function Eg(e,t){if(Ms)return e==="compositionend"||!vu&&df(e,t)?(e=nf(),hr=hu=Wl=null,Ms=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return rf&&t.locale!=="ko"?null:t.data;default:return null}}var Tg={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 hf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Tg[e.type]:t==="textarea"}function mf(e,t,n,s){As?Os?Os.push(s):Os=[s]:As=s,t=io(t,"onChange"),0<t.length&&(n=new _r("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var Qi=null,Yi=null;function Rg(e){Z1(e,0)}function vr(e){var t=$i(e);if(P2(t))return e}function pf(e,t){if(e==="change")return t}var _f=!1;if(xl){var yu;if(xl){var xu="oninput"in document;if(!xu){var gf=document.createElement("div");gf.setAttribute("oninput","return;"),xu=typeof gf.oninput=="function"}yu=xu}else yu=!1;_f=yu&&(!document.documentMode||9<document.documentMode)}function vf(){Qi&&(Qi.detachEvent("onpropertychange",yf),Yi=Qi=null)}function yf(e){if(e.propertyName==="value"&&vr(Yi)){var t=[];mf(t,Yi,e,uu(e)),tf(Rg,t)}}function Ag(e,t,n){e==="focusin"?(vf(),Qi=t,Yi=n,Qi.attachEvent("onpropertychange",yf)):e==="focusout"&&vf()}function Og(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vr(Yi)}function Mg(e,t){if(e==="click")return vr(t)}function Lg(e,t){if(e==="input"||e==="change")return vr(t)}function zg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xn=typeof Object.is=="function"?Object.is:zg;function Ii(e,t){if(xn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var o=n[s];if(!bs.call(t,o)||!xn(e[o],t[o]))return!1}return!0}function xf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function bf(e,t){var n=xf(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=xf(n)}}function jf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=dr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=dr(e.document)}return t}function bu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Dg=xl&&"documentMode"in document&&11>=document.documentMode,Ls=null,ju=null,Pi=null,Su=!1;function Nf(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Su||Ls==null||Ls!==dr(s)||(s=Ls,"selectionStart"in s&&bu(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Pi&&Ii(Pi,s)||(Pi=s,s=io(ju,"onSelect"),0<s.length&&(t=new _r("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Ls)))}function $a(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var zs={animationend:$a("Animation","AnimationEnd"),animationiteration:$a("Animation","AnimationIteration"),animationstart:$a("Animation","AnimationStart"),transitionrun:$a("Transition","TransitionRun"),transitionstart:$a("Transition","TransitionStart"),transitioncancel:$a("Transition","TransitionCancel"),transitionend:$a("Transition","TransitionEnd")},Nu={},wf={};xl&&(wf=document.createElement("div").style,"AnimationEvent"in window||(delete zs.animationend.animation,delete zs.animationiteration.animation,delete zs.animationstart.animation),"TransitionEvent"in window||delete zs.transitionend.transition);function Ha(e){if(Nu[e])return Nu[e];if(!zs[e])return e;var t=zs[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in wf)return Nu[e]=t[n];return e}var Cf=Ha("animationend"),Ef=Ha("animationiteration"),Tf=Ha("animationstart"),kg=Ha("transitionrun"),Bg=Ha("transitionstart"),Ug=Ha("transitioncancel"),Rf=Ha("transitionend"),Af=new Map,wu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");wu.push("scrollEnd");function Pn(e,t){Af.set(e,t),Ba(t,[e])}var yr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Bn=[],Ds=0,Cu=0;function xr(){for(var e=Ds,t=Cu=Ds=0;t<e;){var n=Bn[t];Bn[t++]=null;var s=Bn[t];Bn[t++]=null;var o=Bn[t];Bn[t++]=null;var u=Bn[t];if(Bn[t++]=null,s!==null&&o!==null){var _=s.pending;_===null?o.next=o:(o.next=_.next,_.next=o),s.pending=o}u!==0&&Of(n,o,u)}}function br(e,t,n,s){Bn[Ds++]=e,Bn[Ds++]=t,Bn[Ds++]=n,Bn[Ds++]=s,Cu|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Eu(e,t,n,s){return br(e,t,n,s),jr(e)}function qa(e,t){return br(e,null,null,t),jr(e)}function Of(e,t,n){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n);for(var o=!1,u=e.return;u!==null;)u.childLanes|=n,s=u.alternate,s!==null&&(s.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-yn(n),e=u.hiddenUpdates,s=e[o],s===null?e[o]=[t]:s.push(t),t.lane=n|536870912),u):null}function jr(e){if(50<_c)throw _c=0,k0=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ks={};function $g(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bn(e,t,n,s){return new $g(e,t,n,s)}function Tu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bl(e,t){var n=e.alternate;return n===null?(n=bn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Mf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Sr(e,t,n,s,o,u){var _=0;if(s=e,typeof e=="function")Tu(e)&&(_=1);else if(typeof e=="string")_=Vv(e,n,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=bn(31,n,t,o),e.elementType=le,e.lanes=u,e;case C:return Fa(n.children,o,u,t);case w:_=8,o|=24;break;case O:return e=bn(12,n,t,o|2),e.elementType=O,e.lanes=u,e;case I:return e=bn(13,n,t,o),e.elementType=I,e.lanes=u,e;case W:return e=bn(19,n,t,o),e.elementType=W,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:_=10;break e;case H:_=9;break e;case U:_=11;break e;case B:_=14;break e;case Y:_=16,s=null;break e}_=29,n=Error(r(130,e===null?"null":typeof e,"")),s=null}return t=bn(_,n,t,o),t.elementType=e,t.type=s,t.lanes=u,t}function Fa(e,t,n,s){return e=bn(7,e,s,t),e.lanes=n,e}function Ru(e,t,n){return e=bn(6,e,null,t),e.lanes=n,e}function Lf(e){var t=bn(18,null,null,0);return t.stateNode=e,t}function Au(e,t,n){return t=bn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zf=new WeakMap;function Un(e,t){if(typeof e=="object"&&e!==null){var n=zf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:ln(t)},zf.set(e,t),t)}return{value:e,source:t,stack:ln(t)}}var Bs=[],Us=0,Nr=null,Xi=0,$n=[],Hn=0,Jl=null,al=1,sl="";function jl(e,t){Bs[Us++]=Xi,Bs[Us++]=Nr,Nr=e,Xi=t}function Df(e,t,n){$n[Hn++]=al,$n[Hn++]=sl,$n[Hn++]=Jl,Jl=e;var s=al;e=sl;var o=32-yn(s)-1;s&=~(1<<o),n+=1;var u=32-yn(t)+o;if(30<u){var _=o-o%5;u=(s&(1<<_)-1).toString(32),s>>=_,o-=_,al=1<<32-yn(t)+o|n<<o|s,sl=u+e}else al=1<<u|n<<o|s,sl=e}function Ou(e){e.return!==null&&(jl(e,1),Df(e,1,0))}function Mu(e){for(;e===Nr;)Nr=Bs[--Us],Bs[Us]=null,Xi=Bs[--Us],Bs[Us]=null;for(;e===Jl;)Jl=$n[--Hn],$n[Hn]=null,sl=$n[--Hn],$n[Hn]=null,al=$n[--Hn],$n[Hn]=null}function kf(e,t){$n[Hn++]=al,$n[Hn++]=sl,$n[Hn++]=Jl,al=t.id,sl=t.overflow,Jl=e}var Ut=null,nt=null,ke=!1,ea=null,qn=!1,Lu=Error(r(519));function ta(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zi(Un(t,e)),Lu}function Bf(e){var t=e.stateNode,n=e.type,s=e.memoizedProps;switch(t[Bt]=e,t[an]=s,n){case"dialog":Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":case"embed":Oe("load",t);break;case"video":case"audio":for(n=0;n<vc.length;n++)Oe(vc[n],t);break;case"source":Oe("error",t);break;case"img":case"image":case"link":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"input":Oe("invalid",t),X2(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),K2(t,s.value,s.defaultValue,s.children)}n=s.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||s.suppressHydrationWarning===!0||em(t.textContent,n)?(s.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),s.onScroll!=null&&Oe("scroll",t),s.onScrollEnd!=null&&Oe("scrollend",t),s.onClick!=null&&(t.onclick=yl),t=!0):t=!1,t||ta(e,!0)}function Uf(e){for(Ut=e.return;Ut;)switch(Ut.tag){case 5:case 31:case 13:qn=!1;return;case 27:case 3:qn=!0;return;default:Ut=Ut.return}}function $s(e){if(e!==Ut)return!1;if(!ke)return Uf(e),ke=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||K0(e.type,e.memoizedProps)),n=!n),n&&nt&&ta(e),Uf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));nt=om(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));nt=om(e)}else t===27?(t=nt,pa(e.type)?(e=nd,nd=null,nt=e):nt=t):nt=Ut?Gn(e.stateNode.nextSibling):null;return!0}function Ga(){nt=Ut=null,ke=!1}function zu(){var e=ea;return e!==null&&(un===null?un=e:un.push.apply(un,e),ea=null),e}function Zi(e){ea===null?ea=[e]:ea.push(e)}var Du=R(null),Va=null,Sl=null;function na(e,t,n){Z(Du,t._currentValue),t._currentValue=n}function Nl(e){e._currentValue=Du.current,V(Du)}function ku(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function Bu(e,t,n,s){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var _=o.child;u=u.firstContext;e:for(;u!==null;){var x=u;u=o;for(var E=0;E<t.length;E++)if(x.context===t[E]){u.lanes|=n,x=u.alternate,x!==null&&(x.lanes|=n),ku(u.return,n,e),s||(_=null);break e}u=x.next}}else if(o.tag===18){if(_=o.return,_===null)throw Error(r(341));_.lanes|=n,u=_.alternate,u!==null&&(u.lanes|=n),ku(_,n,e),_=null}else _=o.child;if(_!==null)_.return=o;else for(_=o;_!==null;){if(_===e){_=null;break}if(o=_.sibling,o!==null){o.return=_.return,_=o;break}_=_.return}o=_}}function Hs(e,t,n,s){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var _=o.alternate;if(_===null)throw Error(r(387));if(_=_.memoizedProps,_!==null){var x=o.type;xn(o.pendingProps.value,_.value)||(e!==null?e.push(x):e=[x])}}else if(o===De.current){if(_=o.alternate,_===null)throw Error(r(387));_.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Sc):e=[Sc])}o=o.return}e!==null&&Bu(t,e,n,s),t.flags|=262144}function wr(e){for(e=e.firstContext;e!==null;){if(!xn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Qa(e){Va=e,Sl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $t(e){return $f(Va,e)}function Cr(e,t){return Va===null&&Qa(e),$f(e,t)}function $f(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Sl===null){if(e===null)throw Error(r(308));Sl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Sl=Sl.next=t;return n}var Hg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},qg=a.unstable_scheduleCallback,Fg=a.unstable_NormalPriority,yt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Uu(){return{controller:new Hg,data:new Map,refCount:0}}function Ki(e){e.refCount--,e.refCount===0&&qg(Fg,function(){e.controller.abort()})}var Wi=null,$u=0,qs=0,Fs=null;function Gg(e,t){if(Wi===null){var n=Wi=[];$u=0,qs=F0(),Fs={status:"pending",value:void 0,then:function(s){n.push(s)}}}return $u++,t.then(Hf,Hf),t}function Hf(){if(--$u===0&&Wi!==null){Fs!==null&&(Fs.status="fulfilled");var e=Wi;Wi=null,qs=0,Fs=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Vg(e,t){var n=[],s={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(s.status="rejected",s.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),s}var qf=q.S;q.S=function(e,t){N1=gn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Gg(e,t),qf!==null&&qf(e,t)};var Ya=R(null);function Hu(){var e=Ya.current;return e!==null?e:Ze.pooledCache}function Er(e,t){t===null?Z(Ya,Ya.current):Z(Ya,t.pool)}function Ff(){var e=Hu();return e===null?null:{parent:yt._currentValue,pool:e}}var Gs=Error(r(460)),qu=Error(r(474)),Tr=Error(r(542)),Rr={then:function(){}};function Gf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Vf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(yl,yl),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Yf(e),e;default:if(typeof t.status=="string")t.then(yl,yl);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=s}},function(s){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Yf(e),e}throw Pa=t,Gs}}function Ia(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Pa=n,Gs):n}}var Pa=null;function Qf(){if(Pa===null)throw Error(r(459));var e=Pa;return Pa=null,e}function Yf(e){if(e===Gs||e===Tr)throw Error(r(483))}var Vs=null,Ji=0;function Ar(e){var t=Ji;return Ji+=1,Vs===null&&(Vs=[]),Vf(Vs,e,t)}function ec(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Or(e,t){throw t.$$typeof===b?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function If(e){function t(M,A){if(e){var z=M.deletions;z===null?(M.deletions=[A],M.flags|=16):z.push(A)}}function n(M,A){if(!e)return null;for(;A!==null;)t(M,A),A=A.sibling;return null}function s(M){for(var A=new Map;M!==null;)M.key!==null?A.set(M.key,M):A.set(M.index,M),M=M.sibling;return A}function o(M,A){return M=bl(M,A),M.index=0,M.sibling=null,M}function u(M,A,z){return M.index=z,e?(z=M.alternate,z!==null?(z=z.index,z<A?(M.flags|=67108866,A):z):(M.flags|=67108866,A)):(M.flags|=1048576,A)}function _(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function x(M,A,z,G){return A===null||A.tag!==6?(A=Ru(z,M.mode,G),A.return=M,A):(A=o(A,z),A.return=M,A)}function E(M,A,z,G){var ce=z.type;return ce===C?F(M,A,z.props.children,G,z.key):A!==null&&(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===Y&&Ia(ce)===A.type)?(A=o(A,z.props),ec(A,z),A.return=M,A):(A=Sr(z.type,z.key,z.props,null,M.mode,G),ec(A,z),A.return=M,A)}function D(M,A,z,G){return A===null||A.tag!==4||A.stateNode.containerInfo!==z.containerInfo||A.stateNode.implementation!==z.implementation?(A=Au(z,M.mode,G),A.return=M,A):(A=o(A,z.children||[]),A.return=M,A)}function F(M,A,z,G,ce){return A===null||A.tag!==7?(A=Fa(z,M.mode,G,ce),A.return=M,A):(A=o(A,z),A.return=M,A)}function Q(M,A,z){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Ru(""+A,M.mode,z),A.return=M,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case N:return z=Sr(A.type,A.key,A.props,null,M.mode,z),ec(z,A),z.return=M,z;case S:return A=Au(A,M.mode,z),A.return=M,A;case Y:return A=Ia(A),Q(M,A,z)}if(de(A)||Ee(A))return A=Fa(A,M.mode,z,null),A.return=M,A;if(typeof A.then=="function")return Q(M,Ar(A),z);if(A.$$typeof===L)return Q(M,Cr(M,A),z);Or(M,A)}return null}function k(M,A,z,G){var ce=A!==null?A.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return ce!==null?null:x(M,A,""+z,G);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case N:return z.key===ce?E(M,A,z,G):null;case S:return z.key===ce?D(M,A,z,G):null;case Y:return z=Ia(z),k(M,A,z,G)}if(de(z)||Ee(z))return ce!==null?null:F(M,A,z,G,null);if(typeof z.then=="function")return k(M,A,Ar(z),G);if(z.$$typeof===L)return k(M,A,Cr(M,z),G);Or(M,z)}return null}function $(M,A,z,G,ce){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return M=M.get(z)||null,x(A,M,""+G,ce);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case N:return M=M.get(G.key===null?z:G.key)||null,E(A,M,G,ce);case S:return M=M.get(G.key===null?z:G.key)||null,D(A,M,G,ce);case Y:return G=Ia(G),$(M,A,z,G,ce)}if(de(G)||Ee(G))return M=M.get(z)||null,F(A,M,G,ce,null);if(typeof G.then=="function")return $(M,A,z,Ar(G),ce);if(G.$$typeof===L)return $(M,A,z,Cr(A,G),ce);Or(A,G)}return null}function ne(M,A,z,G){for(var ce=null,$e=null,ae=A,je=A=0,ze=null;ae!==null&&je<z.length;je++){ae.index>je?(ze=ae,ae=null):ze=ae.sibling;var He=k(M,ae,z[je],G);if(He===null){ae===null&&(ae=ze);break}e&&ae&&He.alternate===null&&t(M,ae),A=u(He,A,je),$e===null?ce=He:$e.sibling=He,$e=He,ae=ze}if(je===z.length)return n(M,ae),ke&&jl(M,je),ce;if(ae===null){for(;je<z.length;je++)ae=Q(M,z[je],G),ae!==null&&(A=u(ae,A,je),$e===null?ce=ae:$e.sibling=ae,$e=ae);return ke&&jl(M,je),ce}for(ae=s(ae);je<z.length;je++)ze=$(ae,M,je,z[je],G),ze!==null&&(e&&ze.alternate!==null&&ae.delete(ze.key===null?je:ze.key),A=u(ze,A,je),$e===null?ce=ze:$e.sibling=ze,$e=ze);return e&&ae.forEach(function(xa){return t(M,xa)}),ke&&jl(M,je),ce}function fe(M,A,z,G){if(z==null)throw Error(r(151));for(var ce=null,$e=null,ae=A,je=A=0,ze=null,He=z.next();ae!==null&&!He.done;je++,He=z.next()){ae.index>je?(ze=ae,ae=null):ze=ae.sibling;var xa=k(M,ae,He.value,G);if(xa===null){ae===null&&(ae=ze);break}e&&ae&&xa.alternate===null&&t(M,ae),A=u(xa,A,je),$e===null?ce=xa:$e.sibling=xa,$e=xa,ae=ze}if(He.done)return n(M,ae),ke&&jl(M,je),ce;if(ae===null){for(;!He.done;je++,He=z.next())He=Q(M,He.value,G),He!==null&&(A=u(He,A,je),$e===null?ce=He:$e.sibling=He,$e=He);return ke&&jl(M,je),ce}for(ae=s(ae);!He.done;je++,He=z.next())He=$(ae,M,je,He.value,G),He!==null&&(e&&He.alternate!==null&&ae.delete(He.key===null?je:He.key),A=u(He,A,je),$e===null?ce=He:$e.sibling=He,$e=He);return e&&ae.forEach(function(ty){return t(M,ty)}),ke&&jl(M,je),ce}function Pe(M,A,z,G){if(typeof z=="object"&&z!==null&&z.type===C&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case N:e:{for(var ce=z.key;A!==null;){if(A.key===ce){if(ce=z.type,ce===C){if(A.tag===7){n(M,A.sibling),G=o(A,z.props.children),G.return=M,M=G;break e}}else if(A.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===Y&&Ia(ce)===A.type){n(M,A.sibling),G=o(A,z.props),ec(G,z),G.return=M,M=G;break e}n(M,A);break}else t(M,A);A=A.sibling}z.type===C?(G=Fa(z.props.children,M.mode,G,z.key),G.return=M,M=G):(G=Sr(z.type,z.key,z.props,null,M.mode,G),ec(G,z),G.return=M,M=G)}return _(M);case S:e:{for(ce=z.key;A!==null;){if(A.key===ce)if(A.tag===4&&A.stateNode.containerInfo===z.containerInfo&&A.stateNode.implementation===z.implementation){n(M,A.sibling),G=o(A,z.children||[]),G.return=M,M=G;break e}else{n(M,A);break}else t(M,A);A=A.sibling}G=Au(z,M.mode,G),G.return=M,M=G}return _(M);case Y:return z=Ia(z),Pe(M,A,z,G)}if(de(z))return ne(M,A,z,G);if(Ee(z)){if(ce=Ee(z),typeof ce!="function")throw Error(r(150));return z=ce.call(z),fe(M,A,z,G)}if(typeof z.then=="function")return Pe(M,A,Ar(z),G);if(z.$$typeof===L)return Pe(M,A,Cr(M,z),G);Or(M,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,A!==null&&A.tag===6?(n(M,A.sibling),G=o(A,z),G.return=M,M=G):(n(M,A),G=Ru(z,M.mode,G),G.return=M,M=G),_(M)):n(M,A)}return function(M,A,z,G){try{Ji=0;var ce=Pe(M,A,z,G);return Vs=null,ce}catch(ae){if(ae===Gs||ae===Tr)throw ae;var $e=bn(29,ae,null,M.mode);return $e.lanes=G,$e.return=M,$e}finally{}}}var Xa=If(!0),Pf=If(!1),la=!1;function Fu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function aa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function sa(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(qe&2)!==0){var o=s.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),s.pending=t,t=jr(e),Of(e,null,n),t}return br(e,s,t,n),jr(e)}function tc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,U2(e,n)}}function Vu(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var _={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?o=u=_:u=u.next=_,n=n.next}while(n!==null);u===null?o=u=t:u=u.next=t}else o=u=t;n={baseState:s.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:s.shared,callbacks:s.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Qu=!1;function nc(){if(Qu){var e=Fs;if(e!==null)throw e}}function lc(e,t,n,s){Qu=!1;var o=e.updateQueue;la=!1;var u=o.firstBaseUpdate,_=o.lastBaseUpdate,x=o.shared.pending;if(x!==null){o.shared.pending=null;var E=x,D=E.next;E.next=null,_===null?u=D:_.next=D,_=E;var F=e.alternate;F!==null&&(F=F.updateQueue,x=F.lastBaseUpdate,x!==_&&(x===null?F.firstBaseUpdate=D:x.next=D,F.lastBaseUpdate=E))}if(u!==null){var Q=o.baseState;_=0,F=D=E=null,x=u;do{var k=x.lane&-536870913,$=k!==x.lane;if($?(Le&k)===k:(s&k)===k){k!==0&&k===qs&&(Qu=!0),F!==null&&(F=F.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ne=e,fe=x;k=t;var Pe=n;switch(fe.tag){case 1:if(ne=fe.payload,typeof ne=="function"){Q=ne.call(Pe,Q,k);break e}Q=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=fe.payload,k=typeof ne=="function"?ne.call(Pe,Q,k):ne,k==null)break e;Q=y({},Q,k);break e;case 2:la=!0}}k=x.callback,k!==null&&(e.flags|=64,$&&(e.flags|=8192),$=o.callbacks,$===null?o.callbacks=[k]:$.push(k))}else $={lane:k,tag:x.tag,payload:x.payload,callback:x.callback,next:null},F===null?(D=F=$,E=Q):F=F.next=$,_|=k;if(x=x.next,x===null){if(x=o.shared.pending,x===null)break;$=x,x=$.next,$.next=null,o.lastBaseUpdate=$,o.shared.pending=null}}while(!0);F===null&&(E=Q),o.baseState=E,o.firstBaseUpdate=D,o.lastBaseUpdate=F,u===null&&(o.shared.lanes=0),ua|=_,e.lanes=_,e.memoizedState=Q}}function Xf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Zf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Xf(n[e],t)}var Qs=R(null),Mr=R(0);function Kf(e,t){e=Ll,Z(Mr,e),Z(Qs,t),Ll=e|t.baseLanes}function Yu(){Z(Mr,Ll),Z(Qs,Qs.current)}function Iu(){Ll=Mr.current,V(Qs),V(Mr)}var jn=R(null),Fn=null;function ia(e){var t=e.alternate;Z(mt,mt.current&1),Z(jn,e),Fn===null&&(t===null||Qs.current!==null||t.memoizedState!==null)&&(Fn=e)}function Pu(e){Z(mt,mt.current),Z(jn,e),Fn===null&&(Fn=e)}function Wf(e){e.tag===22?(Z(mt,mt.current),Z(jn,e),Fn===null&&(Fn=e)):ca()}function ca(){Z(mt,mt.current),Z(jn,jn.current)}function Sn(e){V(jn),Fn===e&&(Fn=null),V(mt)}var mt=R(0);function Lr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||ed(n)||td(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wl=0,xe=null,Ye=null,xt=null,zr=!1,Ys=!1,Za=!1,Dr=0,ac=0,Is=null,Qg=0;function ut(){throw Error(r(321))}function Xu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!xn(e[n],t[n]))return!1;return!0}function Zu(e,t,n,s,o,u){return wl=u,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,q.H=e===null||e.memoizedState===null?Dh:d0,Za=!1,u=n(s,o),Za=!1,Ys&&(u=eh(t,n,s,o)),Jf(e),u}function Jf(e){q.H=cc;var t=Ye!==null&&Ye.next!==null;if(wl=0,xt=Ye=xe=null,zr=!1,ac=0,Is=null,t)throw Error(r(300));e===null||bt||(e=e.dependencies,e!==null&&wr(e)&&(bt=!0))}function eh(e,t,n,s){xe=e;var o=0;do{if(Ys&&(Is=null),ac=0,Ys=!1,25<=o)throw Error(r(301));if(o+=1,xt=Ye=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}q.H=kh,u=t(n,s)}while(Ys);return u}function Yg(){var e=q.H,t=e.useState()[0];return t=typeof t.then=="function"?sc(t):t,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(xe.flags|=1024),t}function Ku(){var e=Dr!==0;return Dr=0,e}function Wu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ju(e){if(zr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zr=!1}wl=0,xt=Ye=xe=null,Ys=!1,ac=Dr=0,Is=null}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xt===null?xe.memoizedState=xt=e:xt=xt.next=e,xt}function pt(){if(Ye===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=xt===null?xe.memoizedState:xt.next;if(t!==null)xt=t,Ye=e;else{if(e===null)throw xe.alternate===null?Error(r(467)):Error(r(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},xt===null?xe.memoizedState=xt=e:xt=xt.next=e}return xt}function kr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sc(e){var t=ac;return ac+=1,Is===null&&(Is=[]),e=Vf(Is,e,t),t=xe,(xt===null?t.memoizedState:xt.next)===null&&(t=t.alternate,q.H=t===null||t.memoizedState===null?Dh:d0),e}function Br(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return sc(e);if(e.$$typeof===L)return $t(e)}throw Error(r(438,String(e)))}function e0(e){var t=null,n=xe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var s=xe.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=kr(),xe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),s=0;s<e;s++)n[s]=me;return t.index++,n}function Cl(e,t){return typeof t=="function"?t(e):t}function Ur(e){var t=pt();return t0(t,Ye,e)}function t0(e,t,n){var s=e.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var o=e.baseQueue,u=s.pending;if(u!==null){if(o!==null){var _=o.next;o.next=u.next,u.next=_}t.baseQueue=o=u,s.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var x=_=null,E=null,D=t,F=!1;do{var Q=D.lane&-536870913;if(Q!==D.lane?(Le&Q)===Q:(wl&Q)===Q){var k=D.revertLane;if(k===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),Q===qs&&(F=!0);else if((wl&k)===k){D=D.next,k===qs&&(F=!0);continue}else Q={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},E===null?(x=E=Q,_=u):E=E.next=Q,xe.lanes|=k,ua|=k;Q=D.action,Za&&n(u,Q),u=D.hasEagerState?D.eagerState:n(u,Q)}else k={lane:Q,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},E===null?(x=E=k,_=u):E=E.next=k,xe.lanes|=Q,ua|=Q;D=D.next}while(D!==null&&D!==t);if(E===null?_=u:E.next=x,!xn(u,e.memoizedState)&&(bt=!0,F&&(n=Fs,n!==null)))throw n;e.memoizedState=u,e.baseState=_,e.baseQueue=E,s.lastRenderedState=u}return o===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function n0(e){var t=pt(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var s=n.dispatch,o=n.pending,u=t.memoizedState;if(o!==null){n.pending=null;var _=o=o.next;do u=e(u,_.action),_=_.next;while(_!==o);xn(u,t.memoizedState)||(bt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,s]}function th(e,t,n){var s=xe,o=pt(),u=ke;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=t();var _=!xn((Ye||o).memoizedState,n);if(_&&(o.memoizedState=n,bt=!0),o=o.queue,s0(ah.bind(null,s,o,e),[e]),o.getSnapshot!==t||_||xt!==null&&xt.memoizedState.tag&1){if(s.flags|=2048,Ps(9,{destroy:void 0},lh.bind(null,s,o,n,t),null),Ze===null)throw Error(r(349));u||(wl&127)!==0||nh(s,t,n)}return n}function nh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t=kr(),xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function lh(e,t,n,s){t.value=n,t.getSnapshot=s,sh(t)&&ih(e)}function ah(e,t,n){return n(function(){sh(t)&&ih(e)})}function sh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!xn(e,n)}catch{return!0}}function ih(e){var t=qa(e,2);t!==null&&dn(t,e,2)}function l0(e){var t=Xt();if(typeof e=="function"){var n=e;if(e=n(),Za){Zl(!0);try{n()}finally{Zl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cl,lastRenderedState:e},t}function ch(e,t,n,s){return e.baseState=n,t0(e,Ye,typeof s=="function"?s:Cl)}function Ig(e,t,n,s,o){if(qr(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){u.listeners.push(_)}};q.T!==null?n(!0):u.isTransition=!1,s(u),n=t.pending,n===null?(u.next=t.pending=u,rh(t,u)):(u.next=n.next,t.pending=n.next=u)}}function rh(e,t){var n=t.action,s=t.payload,o=e.state;if(t.isTransition){var u=q.T,_={};q.T=_;try{var x=n(o,s),E=q.S;E!==null&&E(_,x),oh(e,t,x)}catch(D){a0(e,t,D)}finally{u!==null&&_.types!==null&&(u.types=_.types),q.T=u}}else try{u=n(o,s),oh(e,t,u)}catch(D){a0(e,t,D)}}function oh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(s){uh(e,t,s)},function(s){return a0(e,t,s)}):uh(e,t,n)}function uh(e,t,n){t.status="fulfilled",t.value=n,dh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,rh(e,n)))}function a0(e,t,n){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=n,dh(t),t=t.next;while(t!==s)}e.action=null}function dh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function fh(e,t){return t}function hh(e,t){if(ke){var n=Ze.formState;if(n!==null){e:{var s=xe;if(ke){if(nt){t:{for(var o=nt,u=qn;o.nodeType!==8;){if(!u){o=null;break t}if(o=Gn(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){nt=Gn(o.nextSibling),s=o.data==="F!";break e}}ta(s)}s=!1}s&&(t=n[0])}}return n=Xt(),n.memoizedState=n.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fh,lastRenderedState:t},n.queue=s,n=Mh.bind(null,xe,s),s.dispatch=n,s=l0(!1),u=u0.bind(null,xe,!1,s.queue),s=Xt(),o={state:t,dispatch:null,action:e,pending:null},s.queue=o,n=Ig.bind(null,xe,o,u,n),o.dispatch=n,s.memoizedState=e,[t,n,!1]}function mh(e){var t=pt();return ph(t,Ye,e)}function ph(e,t,n){if(t=t0(e,t,fh)[0],e=Ur(Cl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=sc(t)}catch(_){throw _===Gs?Tr:_}else s=t;t=pt();var o=t.queue,u=o.dispatch;return n!==t.memoizedState&&(xe.flags|=2048,Ps(9,{destroy:void 0},Pg.bind(null,o,n),null)),[s,u,e]}function Pg(e,t){e.action=t}function _h(e){var t=pt(),n=Ye;if(n!==null)return ph(t,n,e);pt(),t=t.memoizedState,n=pt();var s=n.queue.dispatch;return n.memoizedState=e,[t,s,!1]}function Ps(e,t,n,s){return e={tag:e,create:n,deps:s,inst:t,next:null},t=xe.updateQueue,t===null&&(t=kr(),xe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e),e}function gh(){return pt().memoizedState}function $r(e,t,n,s){var o=Xt();xe.flags|=e,o.memoizedState=Ps(1|t,{destroy:void 0},n,s===void 0?null:s)}function Hr(e,t,n,s){var o=pt();s=s===void 0?null:s;var u=o.memoizedState.inst;Ye!==null&&s!==null&&Xu(s,Ye.memoizedState.deps)?o.memoizedState=Ps(t,u,n,s):(xe.flags|=e,o.memoizedState=Ps(1|t,u,n,s))}function vh(e,t){$r(8390656,8,e,t)}function s0(e,t){Hr(2048,8,e,t)}function Xg(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=kr(),xe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function yh(e){var t=pt().memoizedState;return Xg({ref:t,nextImpl:e}),function(){if((qe&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function xh(e,t){return Hr(4,2,e,t)}function bh(e,t){return Hr(4,4,e,t)}function jh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Sh(e,t,n){n=n!=null?n.concat([e]):null,Hr(4,4,jh.bind(null,t,e),n)}function i0(){}function Nh(e,t){var n=pt();t=t===void 0?null:t;var s=n.memoizedState;return t!==null&&Xu(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function wh(e,t){var n=pt();t=t===void 0?null:t;var s=n.memoizedState;if(t!==null&&Xu(t,s[1]))return s[0];if(s=e(),Za){Zl(!0);try{e()}finally{Zl(!1)}}return n.memoizedState=[s,t],s}function c0(e,t,n){return n===void 0||(wl&1073741824)!==0&&(Le&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=C1(),xe.lanes|=e,ua|=e,n)}function Ch(e,t,n,s){return xn(n,t)?n:Qs.current!==null?(e=c0(e,n,s),xn(e,t)||(bt=!0),e):(wl&42)===0||(wl&1073741824)!==0&&(Le&261930)===0?(bt=!0,e.memoizedState=n):(e=C1(),xe.lanes|=e,ua|=e,t)}function Eh(e,t,n,s,o){var u=P.p;P.p=u!==0&&8>u?u:8;var _=q.T,x={};q.T=x,u0(e,!1,t,n);try{var E=o(),D=q.S;if(D!==null&&D(x,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var F=Vg(E,s);ic(e,t,F,Cn(e))}else ic(e,t,s,Cn(e))}catch(Q){ic(e,t,{then:function(){},status:"rejected",reason:Q},Cn())}finally{P.p=u,_!==null&&x.types!==null&&(_.types=x.types),q.T=_}}function Zg(){}function r0(e,t,n,s){if(e.tag!==5)throw Error(r(476));var o=Th(e).queue;Eh(e,o,t,se,n===null?Zg:function(){return Rh(e),n(s)})}function Th(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cl,lastRenderedState:se},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cl,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Rh(e){var t=Th(e);t.next===null&&(t=e.alternate.memoizedState),ic(e,t.next.queue,{},Cn())}function o0(){return $t(Sc)}function Ah(){return pt().memoizedState}function Oh(){return pt().memoizedState}function Kg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Cn();e=aa(n);var s=sa(t,e,n);s!==null&&(dn(s,t,n),tc(s,t,n)),t={cache:Uu()},e.payload=t;return}t=t.return}}function Wg(e,t,n){var s=Cn();n={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},qr(e)?Lh(t,n):(n=Eu(e,t,n,s),n!==null&&(dn(n,e,s),zh(n,t,s)))}function Mh(e,t,n){var s=Cn();ic(e,t,n,s)}function ic(e,t,n,s){var o={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(qr(e))Lh(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var _=t.lastRenderedState,x=u(_,n);if(o.hasEagerState=!0,o.eagerState=x,xn(x,_))return br(e,t,o,0),Ze===null&&xr(),!1}catch{}finally{}if(n=Eu(e,t,o,s),n!==null)return dn(n,e,s),zh(n,t,s),!0}return!1}function u0(e,t,n,s){if(s={lane:2,revertLane:F0(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},qr(e)){if(t)throw Error(r(479))}else t=Eu(e,n,s,2),t!==null&&dn(t,e,2)}function qr(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function Lh(e,t){Ys=zr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zh(e,t,n){if((n&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,U2(e,n)}}var cc={readContext:$t,use:Br,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut};cc.useEffectEvent=ut;var Dh={readContext:$t,use:Br,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:$t,useEffect:vh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,$r(4194308,4,jh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $r(4194308,4,e,t)},useInsertionEffect:function(e,t){$r(4,2,e,t)},useMemo:function(e,t){var n=Xt();t=t===void 0?null:t;var s=e();if(Za){Zl(!0);try{e()}finally{Zl(!1)}}return n.memoizedState=[s,t],s},useReducer:function(e,t,n){var s=Xt();if(n!==void 0){var o=n(t);if(Za){Zl(!0);try{n(t)}finally{Zl(!1)}}}else o=t;return s.memoizedState=s.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},s.queue=e,e=e.dispatch=Wg.bind(null,xe,e),[s.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:function(e){e=l0(e);var t=e.queue,n=Mh.bind(null,xe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:i0,useDeferredValue:function(e,t){var n=Xt();return c0(n,e,t)},useTransition:function(){var e=l0(!1);return e=Eh.bind(null,xe,e.queue,!0,!1),Xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var s=xe,o=Xt();if(ke){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Ze===null)throw Error(r(349));(Le&127)!==0||nh(s,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,vh(ah.bind(null,s,u,e),[e]),s.flags|=2048,Ps(9,{destroy:void 0},lh.bind(null,s,u,n,t),null),n},useId:function(){var e=Xt(),t=Ze.identifierPrefix;if(ke){var n=sl,s=al;n=(s&~(1<<32-yn(s)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Dr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Qg++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:o0,useFormState:hh,useActionState:hh,useOptimistic:function(e){var t=Xt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=u0.bind(null,xe,!0,n),n.dispatch=t,[e,t]},useMemoCache:e0,useCacheRefresh:function(){return Xt().memoizedState=Kg.bind(null,xe)},useEffectEvent:function(e){var t=Xt(),n={impl:e};return t.memoizedState=n,function(){if((qe&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},d0={readContext:$t,use:Br,useCallback:Nh,useContext:$t,useEffect:s0,useImperativeHandle:Sh,useInsertionEffect:xh,useLayoutEffect:bh,useMemo:wh,useReducer:Ur,useRef:gh,useState:function(){return Ur(Cl)},useDebugValue:i0,useDeferredValue:function(e,t){var n=pt();return Ch(n,Ye.memoizedState,e,t)},useTransition:function(){var e=Ur(Cl)[0],t=pt().memoizedState;return[typeof e=="boolean"?e:sc(e),t]},useSyncExternalStore:th,useId:Ah,useHostTransitionStatus:o0,useFormState:mh,useActionState:mh,useOptimistic:function(e,t){var n=pt();return ch(n,Ye,e,t)},useMemoCache:e0,useCacheRefresh:Oh};d0.useEffectEvent=yh;var kh={readContext:$t,use:Br,useCallback:Nh,useContext:$t,useEffect:s0,useImperativeHandle:Sh,useInsertionEffect:xh,useLayoutEffect:bh,useMemo:wh,useReducer:n0,useRef:gh,useState:function(){return n0(Cl)},useDebugValue:i0,useDeferredValue:function(e,t){var n=pt();return Ye===null?c0(n,e,t):Ch(n,Ye.memoizedState,e,t)},useTransition:function(){var e=n0(Cl)[0],t=pt().memoizedState;return[typeof e=="boolean"?e:sc(e),t]},useSyncExternalStore:th,useId:Ah,useHostTransitionStatus:o0,useFormState:_h,useActionState:_h,useOptimistic:function(e,t){var n=pt();return Ye!==null?ch(n,Ye,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:e0,useCacheRefresh:Oh};kh.useEffectEvent=yh;function f0(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var h0={enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Cn(),o=aa(s);o.payload=t,n!=null&&(o.callback=n),t=sa(e,o,s),t!==null&&(dn(t,e,s),tc(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Cn(),o=aa(s);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=sa(e,o,s),t!==null&&(dn(t,e,s),tc(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cn(),s=aa(n);s.tag=2,t!=null&&(s.callback=t),t=sa(e,s,n),t!==null&&(dn(t,e,n),tc(t,e,n))}};function Bh(e,t,n,s,o,u,_){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,_):t.prototype&&t.prototype.isPureReactComponent?!Ii(n,s)||!Ii(o,u):!0}function Uh(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&h0.enqueueReplaceState(t,t.state,null)}function Ka(e,t){var n=t;if("ref"in t){n={};for(var s in t)s!=="ref"&&(n[s]=t[s])}if(e=e.defaultProps){n===t&&(n=y({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function $h(e){yr(e)}function Hh(e){console.error(e)}function qh(e){yr(e)}function Fr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function Fh(e,t,n){try{var s=e.onCaughtError;s(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function m0(e,t,n){return n=aa(n),n.tag=3,n.payload={element:null},n.callback=function(){Fr(e,t)},n}function Gh(e){return e=aa(e),e.tag=3,e}function Vh(e,t,n,s){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var u=s.value;e.payload=function(){return o(u)},e.callback=function(){Fh(t,n,s)}}var _=n.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(e.callback=function(){Fh(t,n,s),typeof o!="function"&&(da===null?da=new Set([this]):da.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function Jg(e,t,n,s,o){if(n.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=n.alternate,t!==null&&Hs(t,n,o,!0),n=jn.current,n!==null){switch(n.tag){case 31:case 13:return Fn===null?eo():n.alternate===null&&dt===0&&(dt=3),n.flags&=-257,n.flags|=65536,n.lanes=o,s===Rr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([s]):t.add(s),$0(e,s,o)),!1;case 22:return n.flags|=65536,s===Rr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([s]):n.add(s)),$0(e,s,o)),!1}throw Error(r(435,n.tag))}return $0(e,s,o),eo(),!1}if(ke)return t=jn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,s!==Lu&&(e=Error(r(422),{cause:s}),Zi(Un(e,n)))):(s!==Lu&&(t=Error(r(423),{cause:s}),Zi(Un(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,s=Un(s,n),o=m0(e.stateNode,s,o),Vu(e,o),dt!==4&&(dt=2)),!1;var u=Error(r(520),{cause:s});if(u=Un(u,n),pc===null?pc=[u]:pc.push(u),dt!==4&&(dt=2),t===null)return!0;s=Un(s,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=m0(n.stateNode,s,e),Vu(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(da===null||!da.has(u))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Gh(o),Vh(o,e,n,s),Vu(n,o),!1}n=n.return}while(n!==null);return!1}var p0=Error(r(461)),bt=!1;function Ht(e,t,n,s){t.child=e===null?Pf(t,null,n,s):Xa(t,e.child,n,s)}function Qh(e,t,n,s,o){n=n.render;var u=t.ref;if("ref"in s){var _={};for(var x in s)x!=="ref"&&(_[x]=s[x])}else _=s;return Qa(t),s=Zu(e,t,n,_,u,o),x=Ku(),e!==null&&!bt?(Wu(e,t,o),El(e,t,o)):(ke&&x&&Ou(t),t.flags|=1,Ht(e,t,s,o),t.child)}function Yh(e,t,n,s,o){if(e===null){var u=n.type;return typeof u=="function"&&!Tu(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,Ih(e,t,u,s,o)):(e=Sr(n.type,null,s,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!S0(e,o)){var _=u.memoizedProps;if(n=n.compare,n=n!==null?n:Ii,n(_,s)&&e.ref===t.ref)return El(e,t,o)}return t.flags|=1,e=bl(u,s),e.ref=t.ref,e.return=t,t.child=e}function Ih(e,t,n,s,o){if(e!==null){var u=e.memoizedProps;if(Ii(u,s)&&e.ref===t.ref)if(bt=!1,t.pendingProps=s=u,S0(e,o))(e.flags&131072)!==0&&(bt=!0);else return t.lanes=e.lanes,El(e,t,o)}return _0(e,t,n,s,o)}function Ph(e,t,n,s){var o=s.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(s=t.child=e.child,o=0;s!==null;)o=o|s.lanes|s.childLanes,s=s.sibling;s=o&~u}else s=0,t.child=null;return Xh(e,t,u,n,s)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Er(t,u!==null?u.cachePool:null),u!==null?Kf(t,u):Yu(),Wf(t);else return s=t.lanes=536870912,Xh(e,t,u!==null?u.baseLanes|n:n,n,s)}else u!==null?(Er(t,u.cachePool),Kf(t,u),ca(),t.memoizedState=null):(e!==null&&Er(t,null),Yu(),ca());return Ht(e,t,o,n),t.child}function rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Xh(e,t,n,s,o){var u=Hu();return u=u===null?null:{parent:yt._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Er(t,null),Yu(),Wf(t),e!==null&&Hs(e,t,s,!0),t.childLanes=o,null}function Gr(e,t){return t=Qr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zh(e,t,n){return Xa(t,e.child,null,n),e=Gr(t,t.pendingProps),e.flags|=2,Sn(t),t.memoizedState=null,e}function ev(e,t,n){var s=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ke){if(s.mode==="hidden")return e=Gr(t,s),t.lanes=536870912,rc(null,e);if(Pu(t),(e=nt)?(e=rm(e,qn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Jl!==null?{id:al,overflow:sl}:null,retryLane:536870912,hydrationErrors:null},n=Lf(e),n.return=t,t.child=n,Ut=t,nt=null)):e=null,e===null)throw ta(t);return t.lanes=536870912,null}return Gr(t,s)}var u=e.memoizedState;if(u!==null){var _=u.dehydrated;if(Pu(t),o)if(t.flags&256)t.flags&=-257,t=Zh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(bt||Hs(e,t,n,!1),o=(n&e.childLanes)!==0,bt||o){if(s=Ze,s!==null&&(_=$2(s,n),_!==0&&_!==u.retryLane))throw u.retryLane=_,qa(e,_),dn(s,e,_),p0;eo(),t=Zh(e,t,n)}else e=u.treeContext,nt=Gn(_.nextSibling),Ut=t,ke=!0,ea=null,qn=!1,e!==null&&kf(t,e),t=Gr(t,s),t.flags|=4096;return t}return e=bl(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Vr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function _0(e,t,n,s,o){return Qa(t),n=Zu(e,t,n,s,void 0,o),s=Ku(),e!==null&&!bt?(Wu(e,t,o),El(e,t,o)):(ke&&s&&Ou(t),t.flags|=1,Ht(e,t,n,o),t.child)}function Kh(e,t,n,s,o,u){return Qa(t),t.updateQueue=null,n=eh(t,s,n,o),Jf(e),s=Ku(),e!==null&&!bt?(Wu(e,t,u),El(e,t,u)):(ke&&s&&Ou(t),t.flags|=1,Ht(e,t,n,u),t.child)}function Wh(e,t,n,s,o){if(Qa(t),t.stateNode===null){var u=ks,_=n.contextType;typeof _=="object"&&_!==null&&(u=$t(_)),u=new n(s,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=h0,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=s,u.state=t.memoizedState,u.refs={},Fu(t),_=n.contextType,u.context=typeof _=="object"&&_!==null?$t(_):ks,u.state=t.memoizedState,_=n.getDerivedStateFromProps,typeof _=="function"&&(f0(t,n,_,s),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(_=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),_!==u.state&&h0.enqueueReplaceState(u,u.state,null),lc(t,s,u,o),nc(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){u=t.stateNode;var x=t.memoizedProps,E=Ka(n,x);u.props=E;var D=u.context,F=n.contextType;_=ks,typeof F=="object"&&F!==null&&(_=$t(F));var Q=n.getDerivedStateFromProps;F=typeof Q=="function"||typeof u.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,F||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(x||D!==_)&&Uh(t,u,s,_),la=!1;var k=t.memoizedState;u.state=k,lc(t,s,u,o),nc(),D=t.memoizedState,x||k!==D||la?(typeof Q=="function"&&(f0(t,n,Q,s),D=t.memoizedState),(E=la||Bh(t,n,E,s,k,D,_))?(F||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=D),u.props=s,u.state=D,u.context=_,s=E):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{u=t.stateNode,Gu(e,t),_=t.memoizedProps,F=Ka(n,_),u.props=F,Q=t.pendingProps,k=u.context,D=n.contextType,E=ks,typeof D=="object"&&D!==null&&(E=$t(D)),x=n.getDerivedStateFromProps,(D=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(_!==Q||k!==E)&&Uh(t,u,s,E),la=!1,k=t.memoizedState,u.state=k,lc(t,s,u,o),nc();var $=t.memoizedState;_!==Q||k!==$||la||e!==null&&e.dependencies!==null&&wr(e.dependencies)?(typeof x=="function"&&(f0(t,n,x,s),$=t.memoizedState),(F=la||Bh(t,n,F,s,k,$,E)||e!==null&&e.dependencies!==null&&wr(e.dependencies))?(D||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,$,E),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,$,E)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||_===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=$),u.props=s,u.state=$,u.context=E,s=F):(typeof u.componentDidUpdate!="function"||_===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||_===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),s=!1)}return u=s,Vr(e,t),s=(t.flags&128)!==0,u||s?(u=t.stateNode,n=s&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&s?(t.child=Xa(t,e.child,null,o),t.child=Xa(t,null,n,o)):Ht(e,t,n,o),t.memoizedState=u.state,e=t.child):e=El(e,t,o),e}function Jh(e,t,n,s){return Ga(),t.flags|=256,Ht(e,t,n,s),t.child}var g0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function v0(e){return{baseLanes:e,cachePool:Ff()}}function y0(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=wn),e}function e1(e,t,n){var s=t.pendingProps,o=!1,u=(t.flags&128)!==0,_;if((_=u)||(_=e!==null&&e.memoizedState===null?!1:(mt.current&2)!==0),_&&(o=!0,t.flags&=-129),_=(t.flags&32)!==0,t.flags&=-33,e===null){if(ke){if(o?ia(t):ca(),(e=nt)?(e=rm(e,qn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Jl!==null?{id:al,overflow:sl}:null,retryLane:536870912,hydrationErrors:null},n=Lf(e),n.return=t,t.child=n,Ut=t,nt=null)):e=null,e===null)throw ta(t);return td(e)?t.lanes=32:t.lanes=536870912,null}var x=s.children;return s=s.fallback,o?(ca(),o=t.mode,x=Qr({mode:"hidden",children:x},o),s=Fa(s,o,n,null),x.return=t,s.return=t,x.sibling=s,t.child=x,s=t.child,s.memoizedState=v0(n),s.childLanes=y0(e,_,n),t.memoizedState=g0,rc(null,s)):(ia(t),x0(t,x))}var E=e.memoizedState;if(E!==null&&(x=E.dehydrated,x!==null)){if(u)t.flags&256?(ia(t),t.flags&=-257,t=b0(e,t,n)):t.memoizedState!==null?(ca(),t.child=e.child,t.flags|=128,t=null):(ca(),x=s.fallback,o=t.mode,s=Qr({mode:"visible",children:s.children},o),x=Fa(x,o,n,null),x.flags|=2,s.return=t,x.return=t,s.sibling=x,t.child=s,Xa(t,e.child,null,n),s=t.child,s.memoizedState=v0(n),s.childLanes=y0(e,_,n),t.memoizedState=g0,t=rc(null,s));else if(ia(t),td(x)){if(_=x.nextSibling&&x.nextSibling.dataset,_)var D=_.dgst;_=D,s=Error(r(419)),s.stack="",s.digest=_,Zi({value:s,source:null,stack:null}),t=b0(e,t,n)}else if(bt||Hs(e,t,n,!1),_=(n&e.childLanes)!==0,bt||_){if(_=Ze,_!==null&&(s=$2(_,n),s!==0&&s!==E.retryLane))throw E.retryLane=s,qa(e,s),dn(_,e,s),p0;ed(x)||eo(),t=b0(e,t,n)}else ed(x)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,nt=Gn(x.nextSibling),Ut=t,ke=!0,ea=null,qn=!1,e!==null&&kf(t,e),t=x0(t,s.children),t.flags|=4096);return t}return o?(ca(),x=s.fallback,o=t.mode,E=e.child,D=E.sibling,s=bl(E,{mode:"hidden",children:s.children}),s.subtreeFlags=E.subtreeFlags&65011712,D!==null?x=bl(D,x):(x=Fa(x,o,n,null),x.flags|=2),x.return=t,s.return=t,s.sibling=x,t.child=s,rc(null,s),s=t.child,x=e.child.memoizedState,x===null?x=v0(n):(o=x.cachePool,o!==null?(E=yt._currentValue,o=o.parent!==E?{parent:E,pool:E}:o):o=Ff(),x={baseLanes:x.baseLanes|n,cachePool:o}),s.memoizedState=x,s.childLanes=y0(e,_,n),t.memoizedState=g0,rc(e.child,s)):(ia(t),n=e.child,e=n.sibling,n=bl(n,{mode:"visible",children:s.children}),n.return=t,n.sibling=null,e!==null&&(_=t.deletions,_===null?(t.deletions=[e],t.flags|=16):_.push(e)),t.child=n,t.memoizedState=null,n)}function x0(e,t){return t=Qr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Qr(e,t){return e=bn(22,e,null,t),e.lanes=0,e}function b0(e,t,n){return Xa(t,e.child,null,n),e=x0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function t1(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),ku(e.return,t,n)}function j0(e,t,n,s,o,u){var _=e.memoizedState;_===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:o,treeForkCount:u}:(_.isBackwards=t,_.rendering=null,_.renderingStartTime=0,_.last=s,_.tail=n,_.tailMode=o,_.treeForkCount=u)}function n1(e,t,n){var s=t.pendingProps,o=s.revealOrder,u=s.tail;s=s.children;var _=mt.current,x=(_&2)!==0;if(x?(_=_&1|2,t.flags|=128):_&=1,Z(mt,_),Ht(e,t,s,n),s=ke?Xi:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&t1(e,n,t);else if(e.tag===19)t1(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Lr(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),j0(t,!1,o,n,u,s);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Lr(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}j0(t,!0,n,null,u,s);break;case"together":j0(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function El(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ua|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Hs(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=bl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=bl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function S0(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&wr(e)))}function tv(e,t,n){switch(t.tag){case 3:Nt(t,t.stateNode.containerInfo),na(t,yt,e.memoizedState.cache),Ga();break;case 27:case 5:ll(t);break;case 4:Nt(t,t.stateNode.containerInfo);break;case 10:na(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Pu(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(ia(t),t.flags|=128,null):(n&t.child.childLanes)!==0?e1(e,t,n):(ia(t),e=El(e,t,n),e!==null?e.sibling:null);ia(t);break;case 19:var o=(e.flags&128)!==0;if(s=(n&t.childLanes)!==0,s||(Hs(e,t,n,!1),s=(n&t.childLanes)!==0),o){if(s)return n1(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Z(mt,mt.current),s)break;return null;case 22:return t.lanes=0,Ph(e,t,n,t.pendingProps);case 24:na(t,yt,e.memoizedState.cache)}return El(e,t,n)}function l1(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)bt=!0;else{if(!S0(e,n)&&(t.flags&128)===0)return bt=!1,tv(e,t,n);bt=(e.flags&131072)!==0}else bt=!1,ke&&(t.flags&1048576)!==0&&Df(t,Xi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=Ia(t.elementType),t.type=e,typeof e=="function")Tu(e)?(s=Ka(e,s),t.tag=1,t=Wh(null,t,e,s,n)):(t.tag=0,t=_0(null,t,e,s,n));else{if(e!=null){var o=e.$$typeof;if(o===U){t.tag=11,t=Qh(null,t,e,s,n);break e}else if(o===B){t.tag=14,t=Yh(null,t,e,s,n);break e}}throw t=ge(e)||e,Error(r(306,t,""))}}return t;case 0:return _0(e,t,t.type,t.pendingProps,n);case 1:return s=t.type,o=Ka(s,t.pendingProps),Wh(e,t,s,o,n);case 3:e:{if(Nt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));s=t.pendingProps;var u=t.memoizedState;o=u.element,Gu(e,t),lc(t,s,null,n);var _=t.memoizedState;if(s=_.cache,na(t,yt,s),s!==u.cache&&Bu(t,[yt],n,!0),nc(),s=_.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:_.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Jh(e,t,s,n);break e}else if(s!==o){o=Un(Error(r(424)),t),Zi(o),t=Jh(e,t,s,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(nt=Gn(e.firstChild),Ut=t,ke=!0,ea=null,qn=!0,n=Pf(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ga(),s===o){t=El(e,t,n);break e}Ht(e,t,s,n)}t=t.child}return t;case 26:return Vr(e,t),e===null?(n=mm(t.type,null,t.pendingProps,null))?t.memoizedState=n:ke||(n=t.type,e=t.pendingProps,s=co(be.current).createElement(n),s[Bt]=t,s[an]=e,qt(s,n,e),Rt(s),t.stateNode=s):t.memoizedState=mm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ll(t),e===null&&ke&&(s=t.stateNode=dm(t.type,t.pendingProps,be.current),Ut=t,qn=!0,o=nt,pa(t.type)?(nd=o,nt=Gn(s.firstChild)):nt=o),Ht(e,t,t.pendingProps.children,n),Vr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ke&&((o=s=nt)&&(s=Ov(s,t.type,t.pendingProps,qn),s!==null?(t.stateNode=s,Ut=t,nt=Gn(s.firstChild),qn=!1,o=!0):o=!1),o||ta(t)),ll(t),o=t.type,u=t.pendingProps,_=e!==null?e.memoizedProps:null,s=u.children,K0(o,u)?s=null:_!==null&&K0(o,_)&&(t.flags|=32),t.memoizedState!==null&&(o=Zu(e,t,Yg,null,null,n),Sc._currentValue=o),Vr(e,t),Ht(e,t,s,n),t.child;case 6:return e===null&&ke&&((e=n=nt)&&(n=Mv(n,t.pendingProps,qn),n!==null?(t.stateNode=n,Ut=t,nt=null,e=!0):e=!1),e||ta(t)),null;case 13:return e1(e,t,n);case 4:return Nt(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Xa(t,null,s,n):Ht(e,t,s,n),t.child;case 11:return Qh(e,t,t.type,t.pendingProps,n);case 7:return Ht(e,t,t.pendingProps,n),t.child;case 8:return Ht(e,t,t.pendingProps.children,n),t.child;case 12:return Ht(e,t,t.pendingProps.children,n),t.child;case 10:return s=t.pendingProps,na(t,t.type,s.value),Ht(e,t,s.children,n),t.child;case 9:return o=t.type._context,s=t.pendingProps.children,Qa(t),o=$t(o),s=s(o),t.flags|=1,Ht(e,t,s,n),t.child;case 14:return Yh(e,t,t.type,t.pendingProps,n);case 15:return Ih(e,t,t.type,t.pendingProps,n);case 19:return n1(e,t,n);case 31:return ev(e,t,n);case 22:return Ph(e,t,n,t.pendingProps);case 24:return Qa(t),s=$t(yt),e===null?(o=Hu(),o===null&&(o=Ze,u=Uu(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=n),o=u),t.memoizedState={parent:s,cache:o},Fu(t),na(t,yt,o)):((e.lanes&n)!==0&&(Gu(e,t),lc(t,null,null,n),nc()),o=e.memoizedState,u=t.memoizedState,o.parent!==s?(o={parent:s,cache:s},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),na(t,yt,s)):(s=u.cache,na(t,yt,s),s!==o.cache&&Bu(t,[yt],n,!0))),Ht(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Tl(e){e.flags|=4}function N0(e,t,n,s,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(A1())e.flags|=8192;else throw Pa=Rr,qu}else e.flags&=-16777217}function a1(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ym(t))if(A1())e.flags|=8192;else throw Pa=Rr,qu}function Yr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?k2():536870912,e.lanes|=t,Ws|=t)}function oc(e,t){if(!ke)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,s|=o.subtreeFlags&65011712,s|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,s|=o.subtreeFlags,s|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function nv(e,t,n){var s=t.pendingProps;switch(Mu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return lt(t),null;case 3:return n=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),Nl(yt),tt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&($s(t)?Tl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,zu())),lt(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(Tl(t),u!==null?(lt(t),a1(t,u)):(lt(t),N0(t,o,null,s,n))):u?u!==e.memoizedState?(Tl(t),lt(t),a1(t,u)):(lt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&Tl(t),lt(t),N0(t,o,e,s,n)),null;case 27:if(_l(t),n=be.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Tl(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return lt(t),null}e=te.current,$s(t)?Bf(t):(e=dm(o,s,n),t.stateNode=e,Tl(t))}return lt(t),null;case 5:if(_l(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Tl(t);else{if(!s){if(t.stateNode===null)throw Error(r(166));return lt(t),null}if(u=te.current,$s(t))Bf(t);else{var _=co(be.current);switch(u){case 1:u=_.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=_.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=_.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=_.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=_.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof s.is=="string"?_.createElement("select",{is:s.is}):_.createElement("select"),s.multiple?u.multiple=!0:s.size&&(u.size=s.size);break;default:u=typeof s.is=="string"?_.createElement(o,{is:s.is}):_.createElement(o)}}u[Bt]=t,u[an]=s;e:for(_=t.child;_!==null;){if(_.tag===5||_.tag===6)u.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===t)break e;for(;_.sibling===null;){if(_.return===null||_.return===t)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}t.stateNode=u;e:switch(qt(u,o,s),o){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Tl(t)}}return lt(t),N0(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Tl(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(r(166));if(e=be.current,$s(t)){if(e=t.stateNode,n=t.memoizedProps,s=null,o=Ut,o!==null)switch(o.tag){case 27:case 5:s=o.memoizedProps}e[Bt]=t,e=!!(e.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||em(e.nodeValue,n)),e||ta(t,!0)}else e=co(e).createTextNode(s),e[Bt]=t,t.stateNode=e}return lt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(s=$s(t),n!==null){if(e===null){if(!s)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Bt]=t}else Ga(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),e=!1}else n=zu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Sn(t),t):(Sn(t),null);if((t.flags&128)!==0)throw Error(r(558))}return lt(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=$s(t),s!==null&&s.dehydrated!==null){if(e===null){if(!o)throw Error(r(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[Bt]=t}else Ga(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),o=!1}else o=zu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Sn(t),t):(Sn(t),null)}return Sn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=s!==null,e=e!==null&&e.memoizedState!==null,n&&(s=t.child,o=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(o=s.alternate.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==o&&(s.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Yr(t,t.updateQueue),lt(t),null);case 4:return tt(),e===null&&Y0(t.stateNode.containerInfo),lt(t),null;case 10:return Nl(t.type),lt(t),null;case 19:if(V(mt),s=t.memoizedState,s===null)return lt(t),null;if(o=(t.flags&128)!==0,u=s.rendering,u===null)if(o)oc(s,!1);else{if(dt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Lr(e),u!==null){for(t.flags|=128,oc(s,!1),e=u.updateQueue,t.updateQueue=e,Yr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Mf(n,e),n=n.sibling;return Z(mt,mt.current&1|2),ke&&jl(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&gn()>Kr&&(t.flags|=128,o=!0,oc(s,!1),t.lanes=4194304)}else{if(!o)if(e=Lr(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Yr(t,e),oc(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!ke)return lt(t),null}else 2*gn()-s.renderingStartTime>Kr&&n!==536870912&&(t.flags|=128,o=!0,oc(s,!1),t.lanes=4194304);s.isBackwards?(u.sibling=t.child,t.child=u):(e=s.last,e!==null?e.sibling=u:t.child=u,s.last=u)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=gn(),e.sibling=null,n=mt.current,Z(mt,o?n&1|2:n&1),ke&&jl(t,s.treeForkCount),e):(lt(t),null);case 22:case 23:return Sn(t),Iu(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(n&536870912)!==0&&(t.flags&128)===0&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),n=t.updateQueue,n!==null&&Yr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==n&&(t.flags|=2048),e!==null&&V(Ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Nl(yt),lt(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function lv(e,t){switch(Mu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Nl(yt),tt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _l(t),null;case 31:if(t.memoizedState!==null){if(Sn(t),t.alternate===null)throw Error(r(340));Ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Sn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(mt),null;case 4:return tt(),null;case 10:return Nl(t.type),null;case 22:case 23:return Sn(t),Iu(),e!==null&&V(Ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Nl(yt),null;case 25:return null;default:return null}}function s1(e,t){switch(Mu(t),t.tag){case 3:Nl(yt),tt();break;case 26:case 27:case 5:_l(t);break;case 4:tt();break;case 31:t.memoizedState!==null&&Sn(t);break;case 13:Sn(t);break;case 19:V(mt);break;case 10:Nl(t.type);break;case 22:case 23:Sn(t),Iu(),e!==null&&V(Ya);break;case 24:Nl(yt)}}function uc(e,t){try{var n=t.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var o=s.next;n=o;do{if((n.tag&e)===e){s=void 0;var u=n.create,_=n.inst;s=u(),_.destroy=s}n=n.next}while(n!==o)}}catch(x){Ve(t,t.return,x)}}function ra(e,t,n){try{var s=t.updateQueue,o=s!==null?s.lastEffect:null;if(o!==null){var u=o.next;s=u;do{if((s.tag&e)===e){var _=s.inst,x=_.destroy;if(x!==void 0){_.destroy=void 0,o=t;var E=n,D=x;try{D()}catch(F){Ve(o,E,F)}}}s=s.next}while(s!==u)}}catch(F){Ve(t,t.return,F)}}function i1(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Zf(t,n)}catch(s){Ve(e,e.return,s)}}}function c1(e,t,n){n.props=Ka(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(s){Ve(e,t,s)}}function dc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof n=="function"?e.refCleanup=n(s):n.current=s}}catch(o){Ve(e,t,o)}}function il(e,t){var n=e.ref,s=e.refCleanup;if(n!==null)if(typeof s=="function")try{s()}catch(o){Ve(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Ve(e,t,o)}else n.current=null}function r1(e){var t=e.type,n=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&s.focus();break e;case"img":n.src?s.src=n.src:n.srcSet&&(s.srcset=n.srcSet)}}catch(o){Ve(e,e.return,o)}}function w0(e,t,n){try{var s=e.stateNode;wv(s,e.type,n,t),s[an]=t}catch(o){Ve(e,e.return,o)}}function o1(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&pa(e.type)||e.tag===4}function C0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||o1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&pa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function E0(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=yl));else if(s!==4&&(s===27&&pa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(E0(e,t,n),e=e.sibling;e!==null;)E0(e,t,n),e=e.sibling}function Ir(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(s===27&&pa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ir(e,t,n),e=e.sibling;e!==null;)Ir(e,t,n),e=e.sibling}function u1(e){var t=e.stateNode,n=e.memoizedProps;try{for(var s=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);qt(t,s,n),t[Bt]=e,t[an]=n}catch(u){Ve(e,e.return,u)}}var Rl=!1,jt=!1,T0=!1,d1=typeof WeakSet=="function"?WeakSet:Set,At=null;function av(e,t){if(e=e.containerInfo,X0=po,e=Sf(e),bu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var o=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var _=0,x=-1,E=-1,D=0,F=0,Q=e,k=null;t:for(;;){for(var $;Q!==n||o!==0&&Q.nodeType!==3||(x=_+o),Q!==u||s!==0&&Q.nodeType!==3||(E=_+s),Q.nodeType===3&&(_+=Q.nodeValue.length),($=Q.firstChild)!==null;)k=Q,Q=$;for(;;){if(Q===e)break t;if(k===n&&++D===o&&(x=_),k===u&&++F===s&&(E=_),($=Q.nextSibling)!==null)break;Q=k,k=Q.parentNode}Q=$}n=x===-1||E===-1?null:{start:x,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(Z0={focusedElem:e,selectionRange:n},po=!1,At=t;At!==null;)if(t=At,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,At=e;else for(;At!==null;){switch(t=At,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,o=u.memoizedProps,u=u.memoizedState,s=n.stateNode;try{var ne=Ka(n.type,o);e=s.getSnapshotBeforeUpdate(ne,u),s.__reactInternalSnapshotBeforeUpdate=e}catch(fe){Ve(n,n.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)J0(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":J0(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,At=e;break}At=t.return}}function f1(e,t,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:Ol(e,n),s&4&&uc(5,n);break;case 1:if(Ol(e,n),s&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(_){Ve(n,n.return,_)}else{var o=Ka(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(_){Ve(n,n.return,_)}}s&64&&i1(n),s&512&&dc(n,n.return);break;case 3:if(Ol(e,n),s&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Zf(e,t)}catch(_){Ve(n,n.return,_)}}break;case 27:t===null&&s&4&&u1(n);case 26:case 5:Ol(e,n),t===null&&s&4&&r1(n),s&512&&dc(n,n.return);break;case 12:Ol(e,n);break;case 31:Ol(e,n),s&4&&p1(e,n);break;case 13:Ol(e,n),s&4&&_1(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=hv.bind(null,n),Lv(e,n))));break;case 22:if(s=n.memoizedState!==null||Rl,!s){t=t!==null&&t.memoizedState!==null||jt,o=Rl;var u=jt;Rl=s,(jt=t)&&!u?Ml(e,n,(n.subtreeFlags&8772)!==0):Ol(e,n),Rl=o,jt=u}break;case 30:break;default:Ol(e,n)}}function h1(e){var t=e.alternate;t!==null&&(e.alternate=null,h1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&au(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var at=null,cn=!1;function Al(e,t,n){for(n=n.child;n!==null;)m1(e,t,n),n=n.sibling}function m1(e,t,n){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(Di,n)}catch{}switch(n.tag){case 26:jt||il(n,t),Al(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:jt||il(n,t);var s=at,o=cn;pa(n.type)&&(at=n.stateNode,cn=!1),Al(e,t,n),xc(n.stateNode),at=s,cn=o;break;case 5:jt||il(n,t);case 6:if(s=at,o=cn,at=null,Al(e,t,n),at=s,cn=o,at!==null)if(cn)try{(at.nodeType===9?at.body:at.nodeName==="HTML"?at.ownerDocument.body:at).removeChild(n.stateNode)}catch(u){Ve(n,t,u)}else try{at.removeChild(n.stateNode)}catch(u){Ve(n,t,u)}break;case 18:at!==null&&(cn?(e=at,im(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ii(e)):im(at,n.stateNode));break;case 4:s=at,o=cn,at=n.stateNode.containerInfo,cn=!0,Al(e,t,n),at=s,cn=o;break;case 0:case 11:case 14:case 15:ra(2,n,t),jt||ra(4,n,t),Al(e,t,n);break;case 1:jt||(il(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"&&c1(n,t,s)),Al(e,t,n);break;case 21:Al(e,t,n);break;case 22:jt=(s=jt)||n.memoizedState!==null,Al(e,t,n),jt=s;break;default:Al(e,t,n)}}function p1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ii(e)}catch(n){Ve(t,t.return,n)}}}function _1(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ii(e)}catch(n){Ve(t,t.return,n)}}function sv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new d1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new d1),t;default:throw Error(r(435,e.tag))}}function Pr(e,t){var n=sv(e);t.forEach(function(s){if(!n.has(s)){n.add(s);var o=mv.bind(null,e,s);s.then(o,o)}})}function rn(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var o=n[s],u=e,_=t,x=_;e:for(;x!==null;){switch(x.tag){case 27:if(pa(x.type)){at=x.stateNode,cn=!1;break e}break;case 5:at=x.stateNode,cn=!1;break e;case 3:case 4:at=x.stateNode.containerInfo,cn=!0;break e}x=x.return}if(at===null)throw Error(r(160));m1(u,_,o),at=null,cn=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)g1(t,e),t=t.sibling}var Xn=null;function g1(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:rn(t,e),on(e),s&4&&(ra(3,e,e.return),uc(3,e),ra(5,e,e.return));break;case 1:rn(t,e),on(e),s&512&&(jt||n===null||il(n,n.return)),s&64&&Rl&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?s:n.concat(s))));break;case 26:var o=Xn;if(rn(t,e),on(e),s&512&&(jt||n===null||il(n,n.return)),s&4){var u=n!==null?n.memoizedState:null;if(s=e.memoizedState,n===null)if(s===null)if(e.stateNode===null){e:{s=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(s){case"title":u=o.getElementsByTagName("title")[0],(!u||u[Ui]||u[Bt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(s),o.head.insertBefore(u,o.querySelector("head > title"))),qt(u,s,n),u[Bt]=e,Rt(u),s=u;break e;case"link":var _=gm("link","href",o).get(s+(n.href||""));if(_){for(var x=0;x<_.length;x++)if(u=_[x],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){_.splice(x,1);break t}}u=o.createElement(s),qt(u,s,n),o.head.appendChild(u);break;case"meta":if(_=gm("meta","content",o).get(s+(n.content||""))){for(x=0;x<_.length;x++)if(u=_[x],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){_.splice(x,1);break t}}u=o.createElement(s),qt(u,s,n),o.head.appendChild(u);break;default:throw Error(r(468,s))}u[Bt]=e,Rt(u),s=u}e.stateNode=s}else vm(o,e.type,e.stateNode);else e.stateNode=_m(o,s,e.memoizedProps);else u!==s?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,s===null?vm(o,e.type,e.stateNode):_m(o,s,e.memoizedProps)):s===null&&e.stateNode!==null&&w0(e,e.memoizedProps,n.memoizedProps)}break;case 27:rn(t,e),on(e),s&512&&(jt||n===null||il(n,n.return)),n!==null&&s&4&&w0(e,e.memoizedProps,n.memoizedProps);break;case 5:if(rn(t,e),on(e),s&512&&(jt||n===null||il(n,n.return)),e.flags&32){o=e.stateNode;try{Rs(o,"")}catch(ne){Ve(e,e.return,ne)}}s&4&&e.stateNode!=null&&(o=e.memoizedProps,w0(e,o,n!==null?n.memoizedProps:o)),s&1024&&(T0=!0);break;case 6:if(rn(t,e),on(e),s&4){if(e.stateNode===null)throw Error(r(162));s=e.memoizedProps,n=e.stateNode;try{n.nodeValue=s}catch(ne){Ve(e,e.return,ne)}}break;case 3:if(uo=null,o=Xn,Xn=ro(t.containerInfo),rn(t,e),Xn=o,on(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{ii(t.containerInfo)}catch(ne){Ve(e,e.return,ne)}T0&&(T0=!1,v1(e));break;case 4:s=Xn,Xn=ro(e.stateNode.containerInfo),rn(t,e),on(e),Xn=s;break;case 12:rn(t,e),on(e);break;case 31:rn(t,e),on(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Pr(e,s)));break;case 13:rn(t,e),on(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Zr=gn()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Pr(e,s)));break;case 22:o=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,D=Rl,F=jt;if(Rl=D||o,jt=F||E,rn(t,e),jt=F,Rl=D,on(e),s&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||E||Rl||jt||Wa(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(u=E.stateNode,o)_=u.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{x=E.stateNode;var Q=E.memoizedProps.style,k=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;x.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(ne){Ve(E,E.return,ne)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=o?"":E.memoizedProps}catch(ne){Ve(E,E.return,ne)}}}else if(t.tag===18){if(n===null){E=t;try{var $=E.stateNode;o?cm($,!0):cm(E.stateNode,!1)}catch(ne){Ve(E,E.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(n=s.retryQueue,n!==null&&(s.retryQueue=null,Pr(e,n))));break;case 19:rn(t,e),on(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Pr(e,s)));break;case 30:break;case 21:break;default:rn(t,e),on(e)}}function on(e){var t=e.flags;if(t&2){try{for(var n,s=e.return;s!==null;){if(o1(s)){n=s;break}s=s.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode,u=C0(e);Ir(e,u,o);break;case 5:var _=n.stateNode;n.flags&32&&(Rs(_,""),n.flags&=-33);var x=C0(e);Ir(e,x,_);break;case 3:case 4:var E=n.stateNode.containerInfo,D=C0(e);E0(e,D,E);break;default:throw Error(r(161))}}catch(F){Ve(e,e.return,F)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function v1(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;v1(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ol(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)f1(e,t.alternate,t),t=t.sibling}function Wa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ra(4,t,t.return),Wa(t);break;case 1:il(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&c1(t,t.return,n),Wa(t);break;case 27:xc(t.stateNode);case 26:case 5:il(t,t.return),Wa(t);break;case 22:t.memoizedState===null&&Wa(t);break;case 30:Wa(t);break;default:Wa(t)}e=e.sibling}}function Ml(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,o=e,u=t,_=u.flags;switch(u.tag){case 0:case 11:case 15:Ml(o,u,n),uc(4,u);break;case 1:if(Ml(o,u,n),s=u,o=s.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(D){Ve(s,s.return,D)}if(s=u,o=s.updateQueue,o!==null){var x=s.stateNode;try{var E=o.shared.hiddenCallbacks;if(E!==null)for(o.shared.hiddenCallbacks=null,o=0;o<E.length;o++)Xf(E[o],x)}catch(D){Ve(s,s.return,D)}}n&&_&64&&i1(u),dc(u,u.return);break;case 27:u1(u);case 26:case 5:Ml(o,u,n),n&&s===null&&_&4&&r1(u),dc(u,u.return);break;case 12:Ml(o,u,n);break;case 31:Ml(o,u,n),n&&_&4&&p1(o,u);break;case 13:Ml(o,u,n),n&&_&4&&_1(o,u);break;case 22:u.memoizedState===null&&Ml(o,u,n),dc(u,u.return);break;case 30:break;default:Ml(o,u,n)}t=t.sibling}}function R0(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ki(n))}function A0(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ki(e))}function Zn(e,t,n,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)y1(e,t,n,s),t=t.sibling}function y1(e,t,n,s){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Zn(e,t,n,s),o&2048&&uc(9,t);break;case 1:Zn(e,t,n,s);break;case 3:Zn(e,t,n,s),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ki(e)));break;case 12:if(o&2048){Zn(e,t,n,s),e=t.stateNode;try{var u=t.memoizedProps,_=u.id,x=u.onPostCommit;typeof x=="function"&&x(_,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Ve(t,t.return,E)}}else Zn(e,t,n,s);break;case 31:Zn(e,t,n,s);break;case 13:Zn(e,t,n,s);break;case 23:break;case 22:u=t.stateNode,_=t.alternate,t.memoizedState!==null?u._visibility&2?Zn(e,t,n,s):fc(e,t):u._visibility&2?Zn(e,t,n,s):(u._visibility|=2,Xs(e,t,n,s,(t.subtreeFlags&10256)!==0||!1)),o&2048&&R0(_,t);break;case 24:Zn(e,t,n,s),o&2048&&A0(t.alternate,t);break;default:Zn(e,t,n,s)}}function Xs(e,t,n,s,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,_=t,x=n,E=s,D=_.flags;switch(_.tag){case 0:case 11:case 15:Xs(u,_,x,E,o),uc(8,_);break;case 23:break;case 22:var F=_.stateNode;_.memoizedState!==null?F._visibility&2?Xs(u,_,x,E,o):fc(u,_):(F._visibility|=2,Xs(u,_,x,E,o)),o&&D&2048&&R0(_.alternate,_);break;case 24:Xs(u,_,x,E,o),o&&D&2048&&A0(_.alternate,_);break;default:Xs(u,_,x,E,o)}t=t.sibling}}function fc(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,s=t,o=s.flags;switch(s.tag){case 22:fc(n,s),o&2048&&R0(s.alternate,s);break;case 24:fc(n,s),o&2048&&A0(s.alternate,s);break;default:fc(n,s)}t=t.sibling}}var hc=8192;function Zs(e,t,n){if(e.subtreeFlags&hc)for(e=e.child;e!==null;)x1(e,t,n),e=e.sibling}function x1(e,t,n){switch(e.tag){case 26:Zs(e,t,n),e.flags&hc&&e.memoizedState!==null&&Qv(n,Xn,e.memoizedState,e.memoizedProps);break;case 5:Zs(e,t,n);break;case 3:case 4:var s=Xn;Xn=ro(e.stateNode.containerInfo),Zs(e,t,n),Xn=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=hc,hc=16777216,Zs(e,t,n),hc=s):Zs(e,t,n));break;default:Zs(e,t,n)}}function b1(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function mc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];At=s,S1(s,e)}b1(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)j1(e),e=e.sibling}function j1(e){switch(e.tag){case 0:case 11:case 15:mc(e),e.flags&2048&&ra(9,e,e.return);break;case 3:mc(e);break;case 12:mc(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xr(e)):mc(e);break;default:mc(e)}}function Xr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];At=s,S1(s,e)}b1(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ra(8,t,t.return),Xr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Xr(t));break;default:Xr(t)}e=e.sibling}}function S1(e,t){for(;At!==null;){var n=At;switch(n.tag){case 0:case 11:case 15:ra(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var s=n.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Ki(n.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,At=s;else e:for(n=e;At!==null;){s=At;var o=s.sibling,u=s.return;if(h1(s),s===n){At=null;break e}if(o!==null){o.return=u,At=o;break e}At=u}}}var iv={getCacheForType:function(e){var t=$t(yt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return $t(yt).controller.signal}},cv=typeof WeakMap=="function"?WeakMap:Map,qe=0,Ze=null,Ae=null,Le=0,Ge=0,Nn=null,oa=!1,Ks=!1,O0=!1,Ll=0,dt=0,ua=0,Ja=0,M0=0,wn=0,Ws=0,pc=null,un=null,L0=!1,Zr=0,N1=0,Kr=1/0,Wr=null,da=null,wt=0,fa=null,Js=null,zl=0,z0=0,D0=null,w1=null,_c=0,k0=null;function Cn(){return(qe&2)!==0&&Le!==0?Le&-Le:q.T!==null?F0():H2()}function C1(){if(wn===0)if((Le&536870912)===0||ke){var e=ir;ir<<=1,(ir&3932160)===0&&(ir=262144),wn=e}else wn=536870912;return e=jn.current,e!==null&&(e.flags|=32),wn}function dn(e,t,n){(e===Ze&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(ei(e,0),ha(e,Le,wn,!1)),Bi(e,n),((qe&2)===0||e!==Ze)&&(e===Ze&&((qe&2)===0&&(Ja|=n),dt===4&&ha(e,Le,wn,!1)),cl(e))}function E1(e,t,n){if((qe&6)!==0)throw Error(r(327));var s=!n&&(t&127)===0&&(t&e.expiredLanes)===0||ki(e,t),o=s?uv(e,t):U0(e,t,!0),u=s;do{if(o===0){Ks&&!s&&ha(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!rv(n)){o=U0(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var _=0;else _=e.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){t=_;e:{var x=e;o=pc;var E=x.current.memoizedState.isDehydrated;if(E&&(ei(x,_).flags|=256),_=U0(x,_,!1),_!==2){if(O0&&!E){x.errorRecoveryDisabledLanes|=u,Ja|=u,o=4;break e}u=un,un=o,u!==null&&(un===null?un=u:un.push.apply(un,u))}o=_}if(u=!1,o!==2)continue}}if(o===1){ei(e,0),ha(e,t,0,!0);break}e:{switch(s=e,u=o,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:ha(s,t,wn,!oa);break e;case 2:un=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(o=Zr+300-gn(),10<o)){if(ha(s,t,wn,!oa),rr(s,0,!0)!==0)break e;zl=t,s.timeoutHandle=am(T1.bind(null,s,n,un,Wr,L0,t,wn,Ja,Ws,oa,u,"Throttled",-0,0),o);break e}T1(s,n,un,Wr,L0,t,wn,Ja,Ws,oa,u,null,-0,0)}}break}while(!0);cl(e)}function T1(e,t,n,s,o,u,_,x,E,D,F,Q,k,$){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yl},x1(t,u,Q);var ne=(u&62914560)===u?Zr-gn():(u&4194048)===u?N1-gn():0;if(ne=Yv(Q,ne),ne!==null){zl=u,e.cancelPendingCommit=ne(k1.bind(null,e,t,u,n,s,o,_,x,E,F,Q,null,k,$)),ha(e,u,_,!D);return}}k1(e,t,u,n,s,o,_,x,E)}function rv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var s=0;s<n.length;s++){var o=n[s],u=o.getSnapshot;o=o.value;try{if(!xn(u(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ha(e,t,n,s){t&=~M0,t&=~Ja,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var o=t;0<o;){var u=31-yn(o),_=1<<u;s[u]=-1,o&=~_}n!==0&&B2(e,n,t)}function Jr(){return(qe&6)===0?(gc(0),!1):!0}function B0(){if(Ae!==null){if(Ge===0)var e=Ae.return;else e=Ae,Sl=Va=null,Ju(e),Vs=null,Ji=0,e=Ae;for(;e!==null;)s1(e.alternate,e),e=e.return;Ae=null}}function ei(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Tv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),zl=0,B0(),Ze=e,Ae=n=bl(e.current,null),Le=t,Ge=0,Nn=null,oa=!1,Ks=ki(e,t),O0=!1,Ws=wn=M0=Ja=ua=dt=0,un=pc=null,L0=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var o=31-yn(s),u=1<<o;t|=e[o],s&=~u}return Ll=t,xr(),n}function R1(e,t){xe=null,q.H=cc,t===Gs||t===Tr?(t=Qf(),Ge=3):t===qu?(t=Qf(),Ge=4):Ge=t===p0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Nn=t,Ae===null&&(dt=1,Fr(e,Un(t,e.current)))}function A1(){var e=jn.current;return e===null?!0:(Le&4194048)===Le?Fn===null:(Le&62914560)===Le||(Le&536870912)!==0?e===Fn:!1}function O1(){var e=q.H;return q.H=cc,e===null?cc:e}function M1(){var e=q.A;return q.A=iv,e}function eo(){dt=4,oa||(Le&4194048)!==Le&&jn.current!==null||(Ks=!0),(ua&134217727)===0&&(Ja&134217727)===0||Ze===null||ha(Ze,Le,wn,!1)}function U0(e,t,n){var s=qe;qe|=2;var o=O1(),u=M1();(Ze!==e||Le!==t)&&(Wr=null,ei(e,t)),t=!1;var _=dt;e:do try{if(Ge!==0&&Ae!==null){var x=Ae,E=Nn;switch(Ge){case 8:B0(),_=6;break e;case 3:case 2:case 9:case 6:jn.current===null&&(t=!0);var D=Ge;if(Ge=0,Nn=null,ti(e,x,E,D),n&&Ks){_=0;break e}break;default:D=Ge,Ge=0,Nn=null,ti(e,x,E,D)}}ov(),_=dt;break}catch(F){R1(e,F)}while(!0);return t&&e.shellSuspendCounter++,Sl=Va=null,qe=s,q.H=o,q.A=u,Ae===null&&(Ze=null,Le=0,xr()),_}function ov(){for(;Ae!==null;)L1(Ae)}function uv(e,t){var n=qe;qe|=2;var s=O1(),o=M1();Ze!==e||Le!==t?(Wr=null,Kr=gn()+500,ei(e,t)):Ks=ki(e,t);e:do try{if(Ge!==0&&Ae!==null){t=Ae;var u=Nn;t:switch(Ge){case 1:Ge=0,Nn=null,ti(e,t,u,1);break;case 2:case 9:if(Gf(u)){Ge=0,Nn=null,z1(t);break}t=function(){Ge!==2&&Ge!==9||Ze!==e||(Ge=7),cl(e)},u.then(t,t);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:Gf(u)?(Ge=0,Nn=null,z1(t)):(Ge=0,Nn=null,ti(e,t,u,7));break;case 5:var _=null;switch(Ae.tag){case 26:_=Ae.memoizedState;case 5:case 27:var x=Ae;if(_?ym(_):x.stateNode.complete){Ge=0,Nn=null;var E=x.sibling;if(E!==null)Ae=E;else{var D=x.return;D!==null?(Ae=D,to(D)):Ae=null}break t}}Ge=0,Nn=null,ti(e,t,u,5);break;case 6:Ge=0,Nn=null,ti(e,t,u,6);break;case 8:B0(),dt=6;break e;default:throw Error(r(462))}}dv();break}catch(F){R1(e,F)}while(!0);return Sl=Va=null,q.H=s,q.A=o,qe=n,Ae!==null?0:(Ze=null,Le=0,xr(),dt)}function dv(){for(;Ae!==null&&!z_();)L1(Ae)}function L1(e){var t=l1(e.alternate,e,Ll);e.memoizedProps=e.pendingProps,t===null?to(e):Ae=t}function z1(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Kh(n,t,t.pendingProps,t.type,void 0,Le);break;case 11:t=Kh(n,t,t.pendingProps,t.type.render,t.ref,Le);break;case 5:Ju(t);default:s1(n,t),t=Ae=Mf(t,Ll),t=l1(n,t,Ll)}e.memoizedProps=e.pendingProps,t===null?to(e):Ae=t}function ti(e,t,n,s){Sl=Va=null,Ju(t),Vs=null,Ji=0;var o=t.return;try{if(Jg(e,o,t,n,Le)){dt=1,Fr(e,Un(n,e.current)),Ae=null;return}}catch(u){if(o!==null)throw Ae=o,u;dt=1,Fr(e,Un(n,e.current)),Ae=null;return}t.flags&32768?(ke||s===1?e=!0:Ks||(Le&536870912)!==0?e=!1:(oa=e=!0,(s===2||s===9||s===3||s===6)&&(s=jn.current,s!==null&&s.tag===13&&(s.flags|=16384))),D1(t,e)):to(t)}function to(e){var t=e;do{if((t.flags&32768)!==0){D1(t,oa);return}e=t.return;var n=nv(t.alternate,t,Ll);if(n!==null){Ae=n;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);dt===0&&(dt=5)}function D1(e,t){do{var n=lv(e.alternate,e);if(n!==null){n.flags&=32767,Ae=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=n}while(e!==null);dt=6,Ae=null}function k1(e,t,n,s,o,u,_,x,E){e.cancelPendingCommit=null;do no();while(wt!==0);if((qe&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=Cu,V_(e,n,u,_,x,E),e===Ze&&(Ae=Ze=null,Le=0),Js=t,fa=e,zl=n,z0=u,D0=o,w1=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,pv(ar,function(){return q1(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=q.T,q.T=null,o=P.p,P.p=2,_=qe,qe|=4;try{av(e,t,n)}finally{qe=_,P.p=o,q.T=s}}wt=1,B1(),U1(),$1()}}function B1(){if(wt===1){wt=0;var e=fa,t=Js,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=q.T,q.T=null;var s=P.p;P.p=2;var o=qe;qe|=4;try{g1(t,e);var u=Z0,_=Sf(e.containerInfo),x=u.focusedElem,E=u.selectionRange;if(_!==x&&x&&x.ownerDocument&&jf(x.ownerDocument.documentElement,x)){if(E!==null&&bu(x)){var D=E.start,F=E.end;if(F===void 0&&(F=D),"selectionStart"in x)x.selectionStart=D,x.selectionEnd=Math.min(F,x.value.length);else{var Q=x.ownerDocument||document,k=Q&&Q.defaultView||window;if(k.getSelection){var $=k.getSelection(),ne=x.textContent.length,fe=Math.min(E.start,ne),Pe=E.end===void 0?fe:Math.min(E.end,ne);!$.extend&&fe>Pe&&(_=Pe,Pe=fe,fe=_);var M=bf(x,fe),A=bf(x,Pe);if(M&&A&&($.rangeCount!==1||$.anchorNode!==M.node||$.anchorOffset!==M.offset||$.focusNode!==A.node||$.focusOffset!==A.offset)){var z=Q.createRange();z.setStart(M.node,M.offset),$.removeAllRanges(),fe>Pe?($.addRange(z),$.extend(A.node,A.offset)):(z.setEnd(A.node,A.offset),$.addRange(z))}}}}for(Q=[],$=x;$=$.parentNode;)$.nodeType===1&&Q.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Q.length;x++){var G=Q[x];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}po=!!X0,Z0=X0=null}finally{qe=o,P.p=s,q.T=n}}e.current=t,wt=2}}function U1(){if(wt===2){wt=0;var e=fa,t=Js,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=q.T,q.T=null;var s=P.p;P.p=2;var o=qe;qe|=4;try{f1(e,t.alternate,t)}finally{qe=o,P.p=s,q.T=n}}wt=3}}function $1(){if(wt===4||wt===3){wt=0,D_();var e=fa,t=Js,n=zl,s=w1;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?wt=5:(wt=0,Js=fa=null,H1(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(da=null),nu(n),t=t.stateNode,vn&&typeof vn.onCommitFiberRoot=="function")try{vn.onCommitFiberRoot(Di,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=q.T,o=P.p,P.p=2,q.T=null;try{for(var u=e.onRecoverableError,_=0;_<s.length;_++){var x=s[_];u(x.value,{componentStack:x.stack})}}finally{q.T=t,P.p=o}}(zl&3)!==0&&no(),cl(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===k0?_c++:(_c=0,k0=e):_c=0,gc(0)}}function H1(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ki(t)))}function no(){return B1(),U1(),$1(),q1()}function q1(){if(wt!==5)return!1;var e=fa,t=z0;z0=0;var n=nu(zl),s=q.T,o=P.p;try{P.p=32>n?32:n,q.T=null,n=D0,D0=null;var u=fa,_=zl;if(wt=0,Js=fa=null,zl=0,(qe&6)!==0)throw Error(r(331));var x=qe;if(qe|=4,j1(u.current),y1(u,u.current,_,n),qe=x,gc(0,!1),vn&&typeof vn.onPostCommitFiberRoot=="function")try{vn.onPostCommitFiberRoot(Di,u)}catch{}return!0}finally{P.p=o,q.T=s,H1(e,t)}}function F1(e,t,n){t=Un(n,t),t=m0(e.stateNode,t,2),e=sa(e,t,2),e!==null&&(Bi(e,2),cl(e))}function Ve(e,t,n){if(e.tag===3)F1(e,e,n);else for(;t!==null;){if(t.tag===3){F1(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(da===null||!da.has(s))){e=Un(n,e),n=Gh(2),s=sa(t,n,2),s!==null&&(Vh(n,s,t,e),Bi(s,2),cl(s));break}}t=t.return}}function $0(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new cv;var o=new Set;s.set(t,o)}else o=s.get(t),o===void 0&&(o=new Set,s.set(t,o));o.has(n)||(O0=!0,o.add(n),e=fv.bind(null,e,t,n),t.then(e,e))}function fv(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ze===e&&(Le&n)===n&&(dt===4||dt===3&&(Le&62914560)===Le&&300>gn()-Zr?(qe&2)===0&&ei(e,0):M0|=n,Ws===Le&&(Ws=0)),cl(e)}function G1(e,t){t===0&&(t=k2()),e=qa(e,t),e!==null&&(Bi(e,t),cl(e))}function hv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),G1(e,n)}function mv(e,t){var n=0;switch(e.tag){case 31:case 13:var s=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(t),G1(e,n)}function pv(e,t){return js(e,t)}var lo=null,ni=null,H0=!1,ao=!1,q0=!1,ma=0;function cl(e){e!==ni&&e.next===null&&(ni===null?lo=ni=e:ni=ni.next=e),ao=!0,H0||(H0=!0,gv())}function gc(e,t){if(!q0&&ao){q0=!0;do for(var n=!1,s=lo;s!==null;){if(e!==0){var o=s.pendingLanes;if(o===0)var u=0;else{var _=s.suspendedLanes,x=s.pingedLanes;u=(1<<31-yn(42|e)+1)-1,u&=o&~(_&~x),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,I1(s,u))}else u=Le,u=rr(s,s===Ze?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||ki(s,u)||(n=!0,I1(s,u));s=s.next}while(n);q0=!1}}function _v(){V1()}function V1(){ao=H0=!1;var e=0;ma!==0&&Ev()&&(e=ma);for(var t=gn(),n=null,s=lo;s!==null;){var o=s.next,u=Q1(s,t);u===0?(s.next=null,n===null?lo=o:n.next=o,o===null&&(ni=n)):(n=s,(e!==0||(u&3)!==0)&&(ao=!0)),s=o}wt!==0&&wt!==5||gc(e),ma!==0&&(ma=0)}function Q1(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var _=31-yn(u),x=1<<_,E=o[_];E===-1?((x&n)===0||(x&s)!==0)&&(o[_]=G_(x,t)):E<=t&&(e.expiredLanes|=x),u&=~x}if(t=Ze,n=Le,n=rr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,n===0||e===t&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Jo(s),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ki(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(s!==null&&Jo(s),nu(n)){case 2:case 8:n=z2;break;case 32:n=ar;break;case 268435456:n=D2;break;default:n=ar}return s=Y1.bind(null,e),n=js(n,s),e.callbackPriority=t,e.callbackNode=n,t}return s!==null&&s!==null&&Jo(s),e.callbackPriority=2,e.callbackNode=null,2}function Y1(e,t){if(wt!==0&&wt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(no()&&e.callbackNode!==n)return null;var s=Le;return s=rr(e,e===Ze?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(E1(e,s,t),Q1(e,gn()),e.callbackNode!=null&&e.callbackNode===n?Y1.bind(null,e):null)}function I1(e,t){if(no())return null;E1(e,t,!0)}function gv(){Rv(function(){(qe&6)!==0?js(L2,_v):V1()})}function F0(){if(ma===0){var e=qs;e===0&&(e=sr,sr<<=1,(sr&261888)===0&&(sr=256)),ma=e}return ma}function P1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fr(""+e)}function X1(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function vv(e,t,n,s,o){if(t==="submit"&&n&&n.stateNode===o){var u=P1((o[an]||null).action),_=s.submitter;_&&(t=(t=_[an]||null)?P1(t.formAction):_.getAttribute("formAction"),t!==null&&(u=t,_=null));var x=new _r("action","action",null,s,o);e.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ma!==0){var E=_?X1(o,_):new FormData(o);r0(n,{pending:!0,data:E,method:o.method,action:u},null,E)}}else typeof u=="function"&&(x.preventDefault(),E=_?X1(o,_):new FormData(o),r0(n,{pending:!0,data:E,method:o.method,action:u},u,E))},currentTarget:o}]})}}for(var G0=0;G0<wu.length;G0++){var V0=wu[G0],yv=V0.toLowerCase(),xv=V0[0].toUpperCase()+V0.slice(1);Pn(yv,"on"+xv)}Pn(Cf,"onAnimationEnd"),Pn(Ef,"onAnimationIteration"),Pn(Tf,"onAnimationStart"),Pn("dblclick","onDoubleClick"),Pn("focusin","onFocus"),Pn("focusout","onBlur"),Pn(kg,"onTransitionRun"),Pn(Bg,"onTransitionStart"),Pn(Ug,"onTransitionCancel"),Pn(Rf,"onTransitionEnd"),Es("onMouseEnter",["mouseout","mouseover"]),Es("onMouseLeave",["mouseout","mouseover"]),Es("onPointerEnter",["pointerout","pointerover"]),Es("onPointerLeave",["pointerout","pointerover"]),Ba("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ba("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ba("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ba("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ba("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ba("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vc="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(" "),bv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vc));function Z1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],o=s.event;s=s.listeners;e:{var u=void 0;if(t)for(var _=s.length-1;0<=_;_--){var x=s[_],E=x.instance,D=x.currentTarget;if(x=x.listener,E!==u&&o.isPropagationStopped())break e;u=x,o.currentTarget=D;try{u(o)}catch(F){yr(F)}o.currentTarget=null,u=E}else for(_=0;_<s.length;_++){if(x=s[_],E=x.instance,D=x.currentTarget,x=x.listener,E!==u&&o.isPropagationStopped())break e;u=x,o.currentTarget=D;try{u(o)}catch(F){yr(F)}o.currentTarget=null,u=E}}}}function Oe(e,t){var n=t[lu];n===void 0&&(n=t[lu]=new Set);var s=e+"__bubble";n.has(s)||(K1(t,e,2,!1),n.add(s))}function Q0(e,t,n){var s=0;t&&(s|=4),K1(n,e,s,t)}var so="_reactListening"+Math.random().toString(36).slice(2);function Y0(e){if(!e[so]){e[so]=!0,G2.forEach(function(n){n!=="selectionchange"&&(bv.has(n)||Q0(n,!1,e),Q0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[so]||(t[so]=!0,Q0("selectionchange",!1,t))}}function K1(e,t,n,s){switch(Cm(t)){case 2:var o=Xv;break;case 8:o=Zv;break;default:o=cd}n=o.bind(null,t,n,e),o=void 0,!fu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),s?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function I0(e,t,n,s,o){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var _=s.tag;if(_===3||_===4){var x=s.stateNode.containerInfo;if(x===o)break;if(_===4)for(_=s.return;_!==null;){var E=_.tag;if((E===3||E===4)&&_.stateNode.containerInfo===o)return;_=_.return}for(;x!==null;){if(_=Ns(x),_===null)return;if(E=_.tag,E===5||E===6||E===26||E===27){s=u=_;continue e}x=x.parentNode}}s=s.return}tf(function(){var D=u,F=uu(n),Q=[];e:{var k=Af.get(e);if(k!==void 0){var $=_r,ne=e;switch(e){case"keypress":if(mr(n)===0)break e;case"keydown":case"keyup":$=mg;break;case"focusin":ne="focus",$=_u;break;case"focusout":ne="blur",$=_u;break;case"beforeblur":case"afterblur":$=_u;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=af;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=ng;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=gg;break;case Cf:case Ef:case Tf:$=sg;break;case Rf:$=yg;break;case"scroll":case"scrollend":$=eg;break;case"wheel":$=bg;break;case"copy":case"cut":case"paste":$=cg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=cf;break;case"toggle":case"beforetoggle":$=Sg}var fe=(t&4)!==0,Pe=!fe&&(e==="scroll"||e==="scrollend"),M=fe?k!==null?k+"Capture":null:k;fe=[];for(var A=D,z;A!==null;){var G=A;if(z=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||z===null||M===null||(G=Hi(A,M),G!=null&&fe.push(yc(A,G,z))),Pe)break;A=A.return}0<fe.length&&(k=new $(k,ne,null,n,F),Q.push({event:k,listeners:fe}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",k&&n!==ou&&(ne=n.relatedTarget||n.fromElement)&&(Ns(ne)||ne[Ss]))break e;if(($||k)&&(k=F.window===F?F:(k=F.ownerDocument)?k.defaultView||k.parentWindow:window,$?(ne=n.relatedTarget||n.toElement,$=D,ne=ne?Ns(ne):null,ne!==null&&(Pe=f(ne),fe=ne.tag,ne!==Pe||fe!==5&&fe!==27&&fe!==6)&&(ne=null)):($=null,ne=D),$!==ne)){if(fe=af,G="onMouseLeave",M="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(fe=cf,G="onPointerLeave",M="onPointerEnter",A="pointer"),Pe=$==null?k:$i($),z=ne==null?k:$i(ne),k=new fe(G,A+"leave",$,n,F),k.target=Pe,k.relatedTarget=z,G=null,Ns(F)===D&&(fe=new fe(M,A+"enter",ne,n,F),fe.target=z,fe.relatedTarget=Pe,G=fe),Pe=G,$&&ne)t:{for(fe=jv,M=$,A=ne,z=0,G=M;G;G=fe(G))z++;G=0;for(var ce=A;ce;ce=fe(ce))G++;for(;0<z-G;)M=fe(M),z--;for(;0<G-z;)A=fe(A),G--;for(;z--;){if(M===A||A!==null&&M===A.alternate){fe=M;break t}M=fe(M),A=fe(A)}fe=null}else fe=null;$!==null&&W1(Q,k,$,fe,!1),ne!==null&&Pe!==null&&W1(Q,Pe,ne,fe,!0)}}e:{if(k=D?$i(D):window,$=k.nodeName&&k.nodeName.toLowerCase(),$==="select"||$==="input"&&k.type==="file")var $e=pf;else if(hf(k))if(_f)$e=Lg;else{$e=Og;var ae=Ag}else $=k.nodeName,!$||$.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?D&&ru(D.elementType)&&($e=pf):$e=Mg;if($e&&($e=$e(e,D))){mf(Q,$e,n,F);break e}ae&&ae(e,k,D),e==="focusout"&&D&&k.type==="number"&&D.memoizedProps.value!=null&&cu(k,"number",k.value)}switch(ae=D?$i(D):window,e){case"focusin":(hf(ae)||ae.contentEditable==="true")&&(Ls=ae,ju=D,Pi=null);break;case"focusout":Pi=ju=Ls=null;break;case"mousedown":Su=!0;break;case"contextmenu":case"mouseup":case"dragend":Su=!1,Nf(Q,n,F);break;case"selectionchange":if(Dg)break;case"keydown":case"keyup":Nf(Q,n,F)}var je;if(vu)e:{switch(e){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else Ms?df(e,n)&&(ze="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ze="onCompositionStart");ze&&(rf&&n.locale!=="ko"&&(Ms||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&Ms&&(je=nf()):(Wl=F,hu="value"in Wl?Wl.value:Wl.textContent,Ms=!0)),ae=io(D,ze),0<ae.length&&(ze=new sf(ze,e,null,n,F),Q.push({event:ze,listeners:ae}),je?ze.data=je:(je=ff(n),je!==null&&(ze.data=je)))),(je=wg?Cg(e,n):Eg(e,n))&&(ze=io(D,"onBeforeInput"),0<ze.length&&(ae=new sf("onBeforeInput","beforeinput",null,n,F),Q.push({event:ae,listeners:ze}),ae.data=je)),vv(Q,e,D,n,F)}Z1(Q,t)})}function yc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function io(e,t){for(var n=t+"Capture",s=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=Hi(e,n),o!=null&&s.unshift(yc(e,o,u)),o=Hi(e,t),o!=null&&s.push(yc(e,o,u))),e.tag===3)return s;e=e.return}return[]}function jv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function W1(e,t,n,s,o){for(var u=t._reactName,_=[];n!==null&&n!==s;){var x=n,E=x.alternate,D=x.stateNode;if(x=x.tag,E!==null&&E===s)break;x!==5&&x!==26&&x!==27||D===null||(E=D,o?(D=Hi(n,u),D!=null&&_.unshift(yc(n,D,E))):o||(D=Hi(n,u),D!=null&&_.push(yc(n,D,E)))),n=n.return}_.length!==0&&e.push({event:t,listeners:_})}var Sv=/\r\n?/g,Nv=/\u0000|\uFFFD/g;function J1(e){return(typeof e=="string"?e:""+e).replace(Sv,`
`).replace(Nv,"")}function em(e,t){return t=J1(t),J1(e)===t}function Ie(e,t,n,s,o,u){switch(n){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||Rs(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&Rs(e,""+s);break;case"className":ur(e,"class",s);break;case"tabIndex":ur(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":ur(e,n,s);break;case"style":J2(e,s,u);break;case"data":if(t!=="object"){ur(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=fr(""+s),e.setAttribute(n,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(t!=="input"&&Ie(e,t,"name",o.name,o,null),Ie(e,t,"formEncType",o.formEncType,o,null),Ie(e,t,"formMethod",o.formMethod,o,null),Ie(e,t,"formTarget",o.formTarget,o,null)):(Ie(e,t,"encType",o.encType,o,null),Ie(e,t,"method",o.method,o,null),Ie(e,t,"target",o.target,o,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=fr(""+s),e.setAttribute(n,s);break;case"onClick":s!=null&&(e.onclick=yl);break;case"onScroll":s!=null&&Oe("scroll",e);break;case"onScrollEnd":s!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(n=s.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}n=fr(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""+s):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":s===!0?e.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,s):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(n,s):e.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(n):e.setAttribute(n,s);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),or(e,"popover",s);break;case"xlinkActuate":vl(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":vl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":vl(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":vl(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":vl(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":vl(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":vl(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":vl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":vl(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":or(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=W_.get(n)||n,or(e,n,s))}}function P0(e,t,n,s,o,u){switch(n){case"style":J2(e,s,u);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(n=s.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof s=="string"?Rs(e,s):(typeof s=="number"||typeof s=="bigint")&&Rs(e,""+s);break;case"onScroll":s!=null&&Oe("scroll",e);break;case"onScrollEnd":s!=null&&Oe("scrollend",e);break;case"onClick":s!=null&&(e.onclick=yl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!V2.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),u=e[an]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof s=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,s,o);break e}n in e?e[n]=s:s===!0?e.setAttribute(n,""):or(e,n,s)}}}function qt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var s=!1,o=!1,u;for(u in n)if(n.hasOwnProperty(u)){var _=n[u];if(_!=null)switch(u){case"src":s=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ie(e,t,u,_,n,null)}}o&&Ie(e,t,"srcSet",n.srcSet,n,null),s&&Ie(e,t,"src",n.src,n,null);return;case"input":Oe("invalid",e);var x=u=_=o=null,E=null,D=null;for(s in n)if(n.hasOwnProperty(s)){var F=n[s];if(F!=null)switch(s){case"name":o=F;break;case"type":_=F;break;case"checked":E=F;break;case"defaultChecked":D=F;break;case"value":u=F;break;case"defaultValue":x=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(137,t));break;default:Ie(e,t,s,F,n,null)}}X2(e,u,x,E,D,_,o,!1);return;case"select":Oe("invalid",e),s=_=u=null;for(o in n)if(n.hasOwnProperty(o)&&(x=n[o],x!=null))switch(o){case"value":u=x;break;case"defaultValue":_=x;break;case"multiple":s=x;default:Ie(e,t,o,x,n,null)}t=u,n=_,e.multiple=!!s,t!=null?Ts(e,!!s,t,!1):n!=null&&Ts(e,!!s,n,!0);return;case"textarea":Oe("invalid",e),u=o=s=null;for(_ in n)if(n.hasOwnProperty(_)&&(x=n[_],x!=null))switch(_){case"value":s=x;break;case"defaultValue":o=x;break;case"children":u=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:Ie(e,t,_,x,n,null)}K2(e,s,o,u);return;case"option":for(E in n)if(n.hasOwnProperty(E)&&(s=n[E],s!=null))switch(E){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Ie(e,t,E,s,n,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(s=0;s<vc.length;s++)Oe(vc[s],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in n)if(n.hasOwnProperty(D)&&(s=n[D],s!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ie(e,t,D,s,n,null)}return;default:if(ru(t)){for(F in n)n.hasOwnProperty(F)&&(s=n[F],s!==void 0&&P0(e,t,F,s,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(s=n[x],s!=null&&Ie(e,t,x,s,n,null))}function wv(e,t,n,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,_=null,x=null,E=null,D=null,F=null;for($ in n){var Q=n[$];if(n.hasOwnProperty($)&&Q!=null)switch($){case"checked":break;case"value":break;case"defaultValue":E=Q;default:s.hasOwnProperty($)||Ie(e,t,$,null,s,Q)}}for(var k in s){var $=s[k];if(Q=n[k],s.hasOwnProperty(k)&&($!=null||Q!=null))switch(k){case"type":u=$;break;case"name":o=$;break;case"checked":D=$;break;case"defaultChecked":F=$;break;case"value":_=$;break;case"defaultValue":x=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(r(137,t));break;default:$!==Q&&Ie(e,t,k,$,s,Q)}}iu(e,_,x,E,D,F,u,o);return;case"select":$=_=x=k=null;for(u in n)if(E=n[u],n.hasOwnProperty(u)&&E!=null)switch(u){case"value":break;case"multiple":$=E;default:s.hasOwnProperty(u)||Ie(e,t,u,null,s,E)}for(o in s)if(u=s[o],E=n[o],s.hasOwnProperty(o)&&(u!=null||E!=null))switch(o){case"value":k=u;break;case"defaultValue":x=u;break;case"multiple":_=u;default:u!==E&&Ie(e,t,o,u,s,E)}t=x,n=_,s=$,k!=null?Ts(e,!!n,k,!1):!!s!=!!n&&(t!=null?Ts(e,!!n,t,!0):Ts(e,!!n,n?[]:"",!1));return;case"textarea":$=k=null;for(x in n)if(o=n[x],n.hasOwnProperty(x)&&o!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Ie(e,t,x,null,s,o)}for(_ in s)if(o=s[_],u=n[_],s.hasOwnProperty(_)&&(o!=null||u!=null))switch(_){case"value":k=o;break;case"defaultValue":$=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==u&&Ie(e,t,_,o,s,u)}Z2(e,k,$);return;case"option":for(var ne in n)if(k=n[ne],n.hasOwnProperty(ne)&&k!=null&&!s.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:Ie(e,t,ne,null,s,k)}for(E in s)if(k=s[E],$=n[E],s.hasOwnProperty(E)&&k!==$&&(k!=null||$!=null))switch(E){case"selected":e.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:Ie(e,t,E,k,s,$)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var fe in n)k=n[fe],n.hasOwnProperty(fe)&&k!=null&&!s.hasOwnProperty(fe)&&Ie(e,t,fe,null,s,k);for(D in s)if(k=s[D],$=n[D],s.hasOwnProperty(D)&&k!==$&&(k!=null||$!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(137,t));break;default:Ie(e,t,D,k,s,$)}return;default:if(ru(t)){for(var Pe in n)k=n[Pe],n.hasOwnProperty(Pe)&&k!==void 0&&!s.hasOwnProperty(Pe)&&P0(e,t,Pe,void 0,s,k);for(F in s)k=s[F],$=n[F],!s.hasOwnProperty(F)||k===$||k===void 0&&$===void 0||P0(e,t,F,k,s,$);return}}for(var M in n)k=n[M],n.hasOwnProperty(M)&&k!=null&&!s.hasOwnProperty(M)&&Ie(e,t,M,null,s,k);for(Q in s)k=s[Q],$=n[Q],!s.hasOwnProperty(Q)||k===$||k==null&&$==null||Ie(e,t,Q,k,s,$)}function tm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Cv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),s=0;s<n.length;s++){var o=n[s],u=o.transferSize,_=o.initiatorType,x=o.duration;if(u&&x&&tm(_)){for(_=0,x=o.responseEnd,s+=1;s<n.length;s++){var E=n[s],D=E.startTime;if(D>x)break;var F=E.transferSize,Q=E.initiatorType;F&&tm(Q)&&(E=E.responseEnd,_+=F*(E<x?1:(x-D)/(E-D)))}if(--s,t+=8*(u+_)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var X0=null,Z0=null;function co(e){return e.nodeType===9?e:e.ownerDocument}function nm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function lm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function K0(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var W0=null;function Ev(){var e=window.event;return e&&e.type==="popstate"?e===W0?!1:(W0=e,!0):(W0=null,!1)}var am=typeof setTimeout=="function"?setTimeout:void 0,Tv=typeof clearTimeout=="function"?clearTimeout:void 0,sm=typeof Promise=="function"?Promise:void 0,Rv=typeof queueMicrotask=="function"?queueMicrotask:typeof sm<"u"?function(e){return sm.resolve(null).then(e).catch(Av)}:am;function Av(e){setTimeout(function(){throw e})}function pa(e){return e==="head"}function im(e,t){var n=t,s=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(s===0){e.removeChild(o),ii(t);return}s--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")s++;else if(n==="html")xc(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,xc(n);for(var u=n.firstChild;u;){var _=u.nextSibling,x=u.nodeName;u[Ui]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=_}}else n==="body"&&xc(e.ownerDocument.body);n=o}while(n);ii(t)}function cm(e,t){var n=e;e=0;do{var s=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=s}while(n)}function J0(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":J0(n),au(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Ov(e,t,n,s){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Ui])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Gn(e.nextSibling),e===null)break}return null}function Mv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Gn(e.nextSibling),e===null))return null;return e}function rm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Gn(e.nextSibling),e===null))return null;return e}function ed(e){return e.data==="$?"||e.data==="$~"}function td(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Lv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var s=function(){t(),n.removeEventListener("DOMContentLoaded",s)};n.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Gn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var nd=null;function om(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Gn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function um(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function dm(e,t,n){switch(t=co(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function xc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);au(e)}var Vn=new Map,fm=new Set;function ro(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Dl=P.d;P.d={f:zv,r:Dv,D:kv,C:Bv,L:Uv,m:$v,X:qv,S:Hv,M:Fv};function zv(){var e=Dl.f(),t=Jr();return e||t}function Dv(e){var t=ws(e);t!==null&&t.tag===5&&t.type==="form"?Rh(t):Dl.r(e)}var li=typeof document>"u"?null:document;function hm(e,t,n){var s=li;if(s&&typeof t=="string"&&t){var o=kn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),fm.has(o)||(fm.add(o),e={rel:e,crossOrigin:n,href:t},s.querySelector(o)===null&&(t=s.createElement("link"),qt(t,"link",e),Rt(t),s.head.appendChild(t)))}}function kv(e){Dl.D(e),hm("dns-prefetch",e,null)}function Bv(e,t){Dl.C(e,t),hm("preconnect",e,t)}function Uv(e,t,n){Dl.L(e,t,n);var s=li;if(s&&e&&t){var o='link[rel="preload"][as="'+kn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+kn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+kn(n.imageSizes)+'"]')):o+='[href="'+kn(e)+'"]';var u=o;switch(t){case"style":u=ai(e);break;case"script":u=si(e)}Vn.has(u)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Vn.set(u,e),s.querySelector(o)!==null||t==="style"&&s.querySelector(bc(u))||t==="script"&&s.querySelector(jc(u))||(t=s.createElement("link"),qt(t,"link",e),Rt(t),s.head.appendChild(t)))}}function $v(e,t){Dl.m(e,t);var n=li;if(n&&e){var s=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+kn(s)+'"][href="'+kn(e)+'"]',u=o;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=si(e)}if(!Vn.has(u)&&(e=y({rel:"modulepreload",href:e},t),Vn.set(u,e),n.querySelector(o)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(jc(u)))return}s=n.createElement("link"),qt(s,"link",e),Rt(s),n.head.appendChild(s)}}}function Hv(e,t,n){Dl.S(e,t,n);var s=li;if(s&&e){var o=Cs(s).hoistableStyles,u=ai(e);t=t||"default";var _=o.get(u);if(!_){var x={loading:0,preload:null};if(_=s.querySelector(bc(u)))x.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Vn.get(u))&&ld(e,n);var E=_=s.createElement("link");Rt(E),qt(E,"link",e),E._p=new Promise(function(D,F){E.onload=D,E.onerror=F}),E.addEventListener("load",function(){x.loading|=1}),E.addEventListener("error",function(){x.loading|=2}),x.loading|=4,oo(_,t,s)}_={type:"stylesheet",instance:_,count:1,state:x},o.set(u,_)}}}function qv(e,t){Dl.X(e,t);var n=li;if(n&&e){var s=Cs(n).hoistableScripts,o=si(e),u=s.get(o);u||(u=n.querySelector(jc(o)),u||(e=y({src:e,async:!0},t),(t=Vn.get(o))&&ad(e,t),u=n.createElement("script"),Rt(u),qt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(o,u))}}function Fv(e,t){Dl.M(e,t);var n=li;if(n&&e){var s=Cs(n).hoistableScripts,o=si(e),u=s.get(o);u||(u=n.querySelector(jc(o)),u||(e=y({src:e,async:!0,type:"module"},t),(t=Vn.get(o))&&ad(e,t),u=n.createElement("script"),Rt(u),qt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(o,u))}}function mm(e,t,n,s){var o=(o=be.current)?ro(o):null;if(!o)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ai(n.href),n=Cs(o).hoistableStyles,s=n.get(t),s||(s={type:"style",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ai(n.href);var u=Cs(o).hoistableStyles,_=u.get(e);if(_||(o=o.ownerDocument||o,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,_),(u=o.querySelector(bc(e)))&&!u._p&&(_.instance=u,_.state.loading=5),Vn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Vn.set(e,n),u||Gv(o,e,n,_.state))),t&&s===null)throw Error(r(528,""));return _}if(t&&s!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=si(n),n=Cs(o).hoistableScripts,s=n.get(t),s||(s={type:"script",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function ai(e){return'href="'+kn(e)+'"'}function bc(e){return'link[rel="stylesheet"]['+e+"]"}function pm(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function Gv(e,t,n,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),qt(t,"link",n),Rt(t),e.head.appendChild(t))}function si(e){return'[src="'+kn(e)+'"]'}function jc(e){return"script[async]"+e}function _m(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+kn(n.href)+'"]');if(s)return t.instance=s,Rt(s),s;var o=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Rt(s),qt(s,"style",o),oo(s,n.precedence,e),t.instance=s;case"stylesheet":o=ai(n.href);var u=e.querySelector(bc(o));if(u)return t.state.loading|=4,t.instance=u,Rt(u),u;s=pm(n),(o=Vn.get(o))&&ld(s,o),u=(e.ownerDocument||e).createElement("link"),Rt(u);var _=u;return _._p=new Promise(function(x,E){_.onload=x,_.onerror=E}),qt(u,"link",s),t.state.loading|=4,oo(u,n.precedence,e),t.instance=u;case"script":return u=si(n.src),(o=e.querySelector(jc(u)))?(t.instance=o,Rt(o),o):(s=n,(o=Vn.get(u))&&(s=y({},n),ad(s,o)),e=e.ownerDocument||e,o=e.createElement("script"),Rt(o),qt(o,"link",s),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,oo(s,n.precedence,e));return t.instance}function oo(e,t,n){for(var s=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=s.length?s[s.length-1]:null,u=o,_=0;_<s.length;_++){var x=s[_];if(x.dataset.precedence===t)u=x;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function ld(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ad(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var uo=null;function gm(e,t,n){if(uo===null){var s=new Map,o=uo=new Map;o.set(n,s)}else o=uo,s=o.get(n),s||(s=new Map,o.set(n,s));if(s.has(e))return s;for(s.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var u=n[o];if(!(u[Ui]||u[Bt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var _=u.getAttribute(t)||"";_=e+_;var x=s.get(_);x?x.push(u):s.set(_,[u])}}return s}function vm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Vv(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function ym(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Qv(e,t,n,s){if(n.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=ai(s.href),u=t.querySelector(bc(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=fo.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,Rt(u);return}u=t.ownerDocument||t,s=pm(s),(o=Vn.get(o))&&ld(s,o),u=u.createElement("link"),Rt(u);var _=u;_._p=new Promise(function(x,E){_.onload=x,_.onerror=E}),qt(u,"link",s),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=fo.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var sd=0;function Yv(e,t){return e.stylesheets&&e.count===0&&mo(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var s=setTimeout(function(){if(e.stylesheets&&mo(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&sd===0&&(sd=62500*Cv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&mo(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>sd?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(o)}}:null}function fo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ho=null;function mo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ho=new Map,t.forEach(Iv,e),ho=null,fo.call(e))}function Iv(e,t){if(!(t.state.loading&4)){var n=ho.get(e);if(n)var s=n.get(null);else{n=new Map,ho.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var _=o[u];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(n.set(_.dataset.precedence,_),s=_)}s&&n.set(null,s)}o=t.instance,_=o.getAttribute("data-precedence"),u=n.get(_)||s,u===s&&n.set(null,o),n.set(_,o),this.count++,s=fo.bind(this),o.addEventListener("load",s),o.addEventListener("error",s),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Sc={$$typeof:L,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function Pv(e,t,n,s,o,u,_,x,E){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=eu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=eu(0),this.hiddenUpdates=eu(null),this.identifierPrefix=s,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function xm(e,t,n,s,o,u,_,x,E,D,F,Q){return e=new Pv(e,t,n,_,E,D,F,Q,x),t=1,u===!0&&(t|=24),u=bn(3,null,null,t),e.current=u,u.stateNode=e,t=Uu(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:s,isDehydrated:n,cache:t},Fu(u),e}function bm(e){return e?(e=ks,e):ks}function jm(e,t,n,s,o,u){o=bm(o),s.context===null?s.context=o:s.pendingContext=o,s=aa(t),s.payload={element:n},u=u===void 0?null:u,u!==null&&(s.callback=u),n=sa(e,s,t),n!==null&&(dn(n,e,t),tc(n,e,t))}function Sm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function id(e,t){Sm(e,t),(e=e.alternate)&&Sm(e,t)}function Nm(e){if(e.tag===13||e.tag===31){var t=qa(e,67108864);t!==null&&dn(t,e,67108864),id(e,67108864)}}function wm(e){if(e.tag===13||e.tag===31){var t=Cn();t=tu(t);var n=qa(e,t);n!==null&&dn(n,e,t),id(e,t)}}var po=!0;function Xv(e,t,n,s){var o=q.T;q.T=null;var u=P.p;try{P.p=2,cd(e,t,n,s)}finally{P.p=u,q.T=o}}function Zv(e,t,n,s){var o=q.T;q.T=null;var u=P.p;try{P.p=8,cd(e,t,n,s)}finally{P.p=u,q.T=o}}function cd(e,t,n,s){if(po){var o=rd(s);if(o===null)I0(e,t,s,_o,n),Em(e,s);else if(Wv(o,e,t,n,s))s.stopPropagation();else if(Em(e,s),t&4&&-1<Kv.indexOf(e)){for(;o!==null;){var u=ws(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var _=ka(u.pendingLanes);if(_!==0){var x=u;for(x.pendingLanes|=2,x.entangledLanes|=2;_;){var E=1<<31-yn(_);x.entanglements[1]|=E,_&=~E}cl(u),(qe&6)===0&&(Kr=gn()+500,gc(0))}}break;case 31:case 13:x=qa(u,2),x!==null&&dn(x,u,2),Jr(),id(u,2)}if(u=rd(s),u===null&&I0(e,t,s,_o,n),u===o)break;o=u}o!==null&&s.stopPropagation()}else I0(e,t,s,null,n)}}function rd(e){return e=uu(e),od(e)}var _o=null;function od(e){if(_o=null,e=Ns(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=p(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _o=e,null}function Cm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(k_()){case L2:return 2;case z2:return 8;case ar:case B_:return 32;case D2:return 268435456;default:return 32}default:return 32}}var ud=!1,_a=null,ga=null,va=null,Nc=new Map,wc=new Map,ya=[],Kv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Em(e,t){switch(e){case"focusin":case"focusout":_a=null;break;case"dragenter":case"dragleave":ga=null;break;case"mouseover":case"mouseout":va=null;break;case"pointerover":case"pointerout":Nc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wc.delete(t.pointerId)}}function Cc(e,t,n,s,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:u,targetContainers:[o]},t!==null&&(t=ws(t),t!==null&&Nm(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Wv(e,t,n,s,o){switch(t){case"focusin":return _a=Cc(_a,e,t,n,s,o),!0;case"dragenter":return ga=Cc(ga,e,t,n,s,o),!0;case"mouseover":return va=Cc(va,e,t,n,s,o),!0;case"pointerover":var u=o.pointerId;return Nc.set(u,Cc(Nc.get(u)||null,e,t,n,s,o)),!0;case"gotpointercapture":return u=o.pointerId,wc.set(u,Cc(wc.get(u)||null,e,t,n,s,o)),!0}return!1}function Tm(e){var t=Ns(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=p(n),t!==null){e.blockedOn=t,q2(e.priority,function(){wm(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,q2(e.priority,function(){wm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function go(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=rd(e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);ou=s,n.target.dispatchEvent(s),ou=null}else return t=ws(n),t!==null&&Nm(t),e.blockedOn=n,!1;t.shift()}return!0}function Rm(e,t,n){go(e)&&n.delete(t)}function Jv(){ud=!1,_a!==null&&go(_a)&&(_a=null),ga!==null&&go(ga)&&(ga=null),va!==null&&go(va)&&(va=null),Nc.forEach(Rm),wc.forEach(Rm)}function vo(e,t){e.blockedOn===t&&(e.blockedOn=null,ud||(ud=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Jv)))}var yo=null;function Am(e){yo!==e&&(yo=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){yo===e&&(yo=null);for(var t=0;t<e.length;t+=3){var n=e[t],s=e[t+1],o=e[t+2];if(typeof s!="function"){if(od(s||n)===null)continue;break}var u=ws(n);u!==null&&(e.splice(t,3),t-=3,r0(u,{pending:!0,data:o,method:n.method,action:s},s,o))}}))}function ii(e){function t(E){return vo(E,e)}_a!==null&&vo(_a,e),ga!==null&&vo(ga,e),va!==null&&vo(va,e),Nc.forEach(t),wc.forEach(t);for(var n=0;n<ya.length;n++){var s=ya[n];s.blockedOn===e&&(s.blockedOn=null)}for(;0<ya.length&&(n=ya[0],n.blockedOn===null);)Tm(n),n.blockedOn===null&&ya.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(s=0;s<n.length;s+=3){var o=n[s],u=n[s+1],_=o[an]||null;if(typeof u=="function")_||Am(n);else if(_){var x=null;if(u&&u.hasAttribute("formAction")){if(o=u,_=u[an]||null)x=_.formAction;else if(od(o)!==null)continue}else x=_.action;typeof x=="function"?n[s+1]=x:(n.splice(s,3),s-=3),Am(n)}}}function Om(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(_){return o=_})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),s||setTimeout(n,20)}function n(){if(!s&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function dd(e){this._internalRoot=e}xo.prototype.render=dd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,s=Cn();jm(n,s,e,t,null,null)},xo.prototype.unmount=dd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jm(e.current,2,null,e,null,null),Jr(),t[Ss]=null}};function xo(e){this._internalRoot=e}xo.prototype.unstable_scheduleHydration=function(e){if(e){var t=H2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ya.length&&t!==0&&t<ya[n].priority;n++);ya.splice(n,0,e),n===0&&Tm(e)}};var Mm=i.version;if(Mm!=="19.2.5")throw Error(r(527,Mm,"19.2.5"));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=m(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var ey={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bo.isDisabled&&bo.supportsFiber)try{Di=bo.inject(ey),vn=bo}catch{}}return Tc.createRoot=function(e,t){if(!d(e))throw Error(r(299));var n=!1,s="",o=$h,u=Hh,_=qh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(_=t.onRecoverableError)),t=xm(e,1,!1,null,null,n,s,null,o,u,_,Om),e[Ss]=t.current,Y0(e),new dd(t)},Tc.hydrateRoot=function(e,t,n){if(!d(e))throw Error(r(299));var s=!1,o="",u=$h,_=Hh,x=qh,E=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(_=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=xm(e,1,!0,t,n??null,s,o,E,u,_,x,Om),t.context=bm(null),n=t.current,s=Cn(),s=tu(s),o=aa(s),o.callback=null,sa(n,o,s),n=s,t.current.lanes=n,Bi(t,n),cl(t),e[Ss]=t.current,Y0(e),new xo(t)},Tc.version="19.2.5",Tc}var Gm;function uy(){if(Gm)return pd.exports;Gm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),pd.exports=oy(),pd.exports}var dy=uy();/**
* react-router v7.14.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var Vm="popstate";function Qm(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function fy(a={}){function i(r,d){var m;let f=(m=d.state)==null?void 0:m.masked,{pathname:p,search:g,hash:h}=f||r.location;return $d("",{pathname:p,search:g,hash:h},d.state&&d.state.usr||null,d.state&&d.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function c(r,d){return typeof d=="string"?d:qc(d)}return my(i,c,null,a)}function ct(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function el(a,i){if(!a){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function hy(){return Math.random().toString(36).substring(2,10)}function Ym(a,i){return{usr:a.state,key:a.key,idx:i,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function $d(a,i,c=null,r,d){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof i=="string"?Ri(i):i,state:c,key:i&&i.key||r||hy(),unstable_mask:d}}function qc({pathname:a="/",search:i="",hash:c=""}){return i&&i!=="?"&&(a+=i.charAt(0)==="?"?i:"?"+i),c&&c!=="#"&&(a+=c.charAt(0)==="#"?c:"#"+c),a}function Ri(a){let i={};if(a){let c=a.indexOf("#");c>=0&&(i.hash=a.substring(c),a=a.substring(0,c));let r=a.indexOf("?");r>=0&&(i.search=a.substring(r),a=a.substring(0,r)),a&&(i.pathname=a)}return i}function my(a,i,c,r={}){let{window:d=document.defaultView,v5Compat:f=!1}=r,p=d.history,g="POP",h=null,m=v();m==null&&(m=0,p.replaceState({...p.state,idx:m},""));function v(){return(p.state||{idx:null}).idx}function y(){g="POP";let w=v(),O=w==null?null:w-m;m=w,h&&h({action:g,location:C.location,delta:O})}function b(w,O){g="PUSH";let H=Qm(w)?w:$d(C.location,w,O);m=v()+1;let L=Ym(H,m),U=C.createHref(H.unstable_mask||H);try{p.pushState(L,"",U)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;d.location.assign(U)}f&&h&&h({action:g,location:C.location,delta:1})}function N(w,O){g="REPLACE";let H=Qm(w)?w:$d(C.location,w,O);m=v();let L=Ym(H,m),U=C.createHref(H.unstable_mask||H);p.replaceState(L,"",U),f&&h&&h({action:g,location:C.location,delta:0})}function S(w){return py(w)}let C={get action(){return g},get location(){return a(d,p)},listen(w){if(h)throw new Error("A history only accepts one active listener");return d.addEventListener(Vm,y),h=w,()=>{d.removeEventListener(Vm,y),h=null}},createHref(w){return i(d,w)},createURL:S,encodeLocation(w){let O=S(w);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:b,replace:N,go(w){return p.go(w)}};return C}function py(a,i=!1){let c="http://localhost";typeof window<"u"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),ct(c,"No window.location.(origin|href) available to create URL");let r=typeof a=="string"?a:qc(a);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=c+r),new URL(r,c)}function o3(a,i,c="/"){return _y(a,i,c,!1)}function _y(a,i,c,r){let d=typeof i=="string"?Ri(i):i,f=Vl(d.pathname||"/",c);if(f==null)return null;let p=u3(a);gy(p);let g=null;for(let h=0;g==null&&h<p.length;++h){let m=Ty(f);g=Cy(p[h],m,r)}return g}function u3(a,i=[],c=[],r="",d=!1){let f=(p,g,h=d,m)=>{let v={relativePath:m===void 0?p.path||"":m,caseSensitive:p.caseSensitive===!0,childrenIndex:g,route:p};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&h)return;ct(v.relativePath.startsWith(r),`Absolute route path "${v.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(r.length)}let y=Jn([r,v.relativePath]),b=c.concat(v);p.children&&p.children.length>0&&(ct(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),u3(p.children,i,b,y,h)),!(p.path==null&&!p.index)&&i.push({path:y,score:Ny(y,p.index),routesMeta:b})};return a.forEach((p,g)=>{var h;if(p.path===""||!((h=p.path)!=null&&h.includes("?")))f(p,g);else for(let m of d3(p.path))f(p,g,!0,m)}),i}function d3(a){let i=a.split("/");if(i.length===0)return[];let[c,...r]=i,d=c.endsWith("?"),f=c.replace(/\?$/,"");if(r.length===0)return d?[f,""]:[f];let p=d3(r.join("/")),g=[];return g.push(...p.map(h=>h===""?f:[f,h].join("/"))),d&&g.push(...p),g.map(h=>a.startsWith("/")&&h===""?"/":h)}function gy(a){a.sort((i,c)=>i.score!==c.score?c.score-i.score:wy(i.routesMeta.map(r=>r.childrenIndex),c.routesMeta.map(r=>r.childrenIndex)))}var vy=/^:[\w-]+$/,yy=3,xy=2,by=1,jy=10,Sy=-2,Im=a=>a==="*";function Ny(a,i){let c=a.split("/"),r=c.length;return c.some(Im)&&(r+=Sy),i&&(r+=xy),c.filter(d=>!Im(d)).reduce((d,f)=>d+(vy.test(f)?yy:f===""?by:jy),r)}function wy(a,i){return a.length===i.length&&a.slice(0,-1).every((r,d)=>r===i[d])?a[a.length-1]-i[i.length-1]:0}function Cy(a,i,c=!1){let{routesMeta:r}=a,d={},f="/",p=[];for(let g=0;g<r.length;++g){let h=r[g],m=g===r.length-1,v=f==="/"?i:i.slice(f.length)||"/",y=zo({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},v),b=h.route;if(!y&&m&&c&&!r[r.length-1].route.index&&(y=zo({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},v)),!y)return null;Object.assign(d,y.params),p.push({params:d,pathname:Jn([f,y.pathname]),pathnameBase:My(Jn([f,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(f=Jn([f,y.pathnameBase]))}return p}function zo(a,i){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[c,r]=Ey(a.path,a.caseSensitive,a.end),d=i.match(c);if(!d)return null;let f=d[0],p=f.replace(/(.)\/+$/,"$1"),g=d.slice(1);return{params:r.reduce((m,{paramName:v,isOptional:y},b)=>{if(v==="*"){let S=g[b]||"";p=f.slice(0,f.length-S.length).replace(/(.)\/+$/,"$1")}const N=g[b];return y&&!N?m[v]=void 0:m[v]=(N||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:p,pattern:a}}function Ey(a,i=!1,c=!0){el(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let r=[],d="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,g,h,m,v)=>{if(r.push({paramName:g,isOptional:h!=null}),h){let y=v.charAt(m+p.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(r.push({paramName:"*"}),d+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?d+="\\/*$":a!==""&&a!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,i?void 0:"i"),r]}function Ty(a){try{return a.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return el(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),a}}function Vl(a,i){if(i==="/")return a;if(!a.toLowerCase().startsWith(i.toLowerCase()))return null;let c=i.endsWith("/")?i.length-1:i.length,r=a.charAt(c);return r&&r!=="/"?null:a.slice(c)||"/"}var Ry=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Ay(a,i="/"){let{pathname:c,search:r="",hash:d=""}=typeof a=="string"?Ri(a):a,f;return c?(c=f3(c),c.startsWith("/")?f=Pm(c.substring(1),"/"):f=Pm(c,i)):f=i,{pathname:f,search:Ly(r),hash:zy(d)}}function Pm(a,i){let c=Do(i).split("/");return a.split("/").forEach(d=>{d===".."?c.length>1&&c.pop():d!=="."&&c.push(d)}),c.length>1?c.join("/"):"/"}function yd(a,i,c,r){return`Cannot include a '${a}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Oy(a){return a.filter((i,c)=>c===0||i.route.path&&i.route.path.length>0)}function h2(a){let i=Oy(a);return i.map((c,r)=>r===i.length-1?c.pathname:c.pathnameBase)}function Go(a,i,c,r=!1){let d;typeof a=="string"?d=Ri(a):(d={...a},ct(!d.pathname||!d.pathname.includes("?"),yd("?","pathname","search",d)),ct(!d.pathname||!d.pathname.includes("#"),yd("#","pathname","hash",d)),ct(!d.search||!d.search.includes("#"),yd("#","search","hash",d)));let f=a===""||d.pathname==="",p=f?"/":d.pathname,g;if(p==null)g=c;else{let y=i.length-1;if(!r&&p.startsWith("..")){let b=p.split("/");for(;b[0]==="..";)b.shift(),y-=1;d.pathname=b.join("/")}g=y>=0?i[y]:"/"}let h=Ay(d,g),m=p&&p!=="/"&&p.endsWith("/"),v=(f||p===".")&&c.endsWith("/");return!h.pathname.endsWith("/")&&(m||v)&&(h.pathname+="/"),h}var f3=a=>a.replace(/\/\/+/g,"/"),Jn=a=>f3(a.join("/")),Do=a=>a.replace(/\/+$/,""),My=a=>Do(a).replace(/^\/*/,"/"),Ly=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,zy=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,Dy=class{constructor(a,i,c,r=!1){this.status=a,this.statusText=i||"",this.internal=r,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function ky(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function By(a){let i=a.map(c=>c.route.path).filter(Boolean);return Jn(i)||"/"}var h3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function m3(a,i){let c=a;if(typeof c!="string"||!Ry.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let r=c,d=!1;if(h3)try{let f=new URL(window.location.href),p=c.startsWith("//")?new URL(f.protocol+c):new URL(c),g=Vl(p.pathname,i);p.origin===f.origin&&g!=null?c=g+p.search+p.hash:d=!0}catch{el(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:d,to:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var p3=["POST","PUT","PATCH","DELETE"];new Set(p3);var Uy=["GET",...p3];new Set(Uy);var Ai=j.createContext(null);Ai.displayName="DataRouter";var Vo=j.createContext(null);Vo.displayName="DataRouterState";var _3=j.createContext(!1);function $y(){return j.useContext(_3)}var g3=j.createContext({isTransitioning:!1});g3.displayName="ViewTransition";var Hy=j.createContext(new Map);Hy.displayName="Fetchers";var qy=j.createContext(null);qy.displayName="Await";var On=j.createContext(null);On.displayName="Navigation";var Jc=j.createContext(null);Jc.displayName="Location";var In=j.createContext({outlet:null,matches:[],isDataRoute:!1});In.displayName="Route";var m2=j.createContext(null);m2.displayName="RouteError";var v3="REACT_ROUTER_ERROR",Fy="REDIRECT",Gy="ROUTE_ERROR_RESPONSE";function Vy(a){if(a.startsWith(`${v3}:${Fy}:{`))try{let i=JSON.parse(a.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function Qy(a){if(a.startsWith(`${v3}:${Gy}:{`))try{let i=JSON.parse(a.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new Dy(i.status,i.statusText,i.data)}catch{}}function Yy(a,{relative:i}={}){ct(Oi(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:r}=j.useContext(On),{hash:d,pathname:f,search:p}=er(a,{relative:i}),g=f;return c!=="/"&&(g=f==="/"?c:Jn([c,f])),r.createHref({pathname:g,search:p,hash:d})}function Oi(){return j.useContext(Jc)!=null}function Mn(){return ct(Oi(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(Jc).location}var y3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function x3(a){j.useContext(On).static||j.useLayoutEffect(a)}function Ln(){let{isDataRoute:a}=j.useContext(In);return a?rx():Iy()}function Iy(){ct(Oi(),"useNavigate() may be used only in the context of a <Router> component.");let a=j.useContext(Ai),{basename:i,navigator:c}=j.useContext(On),{matches:r}=j.useContext(In),{pathname:d}=Mn(),f=JSON.stringify(h2(r)),p=j.useRef(!1);return x3(()=>{p.current=!0}),j.useCallback((h,m={})=>{if(el(p.current,y3),!p.current)return;if(typeof h=="number"){c.go(h);return}let v=Go(h,JSON.parse(f),d,m.relative==="path");a==null&&i!=="/"&&(v.pathname=v.pathname==="/"?i:Jn([i,v.pathname])),(m.replace?c.replace:c.push)(v,m.state,m)},[i,c,f,d,a])}var Py=j.createContext(null);function Xy(a){let i=j.useContext(In).outlet;return j.useMemo(()=>i&&j.createElement(Py.Provider,{value:a},i),[i,a])}function Zy(){let{matches:a}=j.useContext(In),i=a[a.length-1];return(i==null?void 0:i.params)??{}}function er(a,{relative:i}={}){let{matches:c}=j.useContext(In),{pathname:r}=Mn(),d=JSON.stringify(h2(c));return j.useMemo(()=>Go(a,JSON.parse(d),r,i==="path"),[a,d,r,i])}function Ky(a,i){return b3(a,i)}function b3(a,i,c){var w;ct(Oi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=j.useContext(On),{matches:d}=j.useContext(In),f=d[d.length-1],p=f?f.params:{},g=f?f.pathname:"/",h=f?f.pathnameBase:"/",m=f&&f.route;{let O=m&&m.path||"";S3(g,!m||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${O}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let v=Mn(),y;if(i){let O=typeof i=="string"?Ri(i):i;ct(h==="/"||((w=O.pathname)==null?void 0:w.startsWith(h)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${O.pathname}" was given in the \`location\` prop.`),y=O}else y=v;let b=y.pathname||"/",N=b;if(h!=="/"){let O=h.replace(/^\//,"").split("/");N="/"+b.replace(/^\//,"").split("/").slice(O.length).join("/")}let S=o3(a,{pathname:N});el(m||S!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),el(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=nx(S&&S.map(O=>Object.assign({},O,{params:Object.assign({},p,O.params),pathname:Jn([h,r.encodeLocation?r.encodeLocation(O.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?h:Jn([h,r.encodeLocation?r.encodeLocation(O.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathnameBase])})),d,c);return i&&C?j.createElement(Jc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...y},navigationType:"POP"}},C):C}function Wy(){let a=cx(),i=ky(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),c=a instanceof Error?a.stack:null,r="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},p=null;return console.error("Error handled by React Router default ErrorBoundary:",a),p=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:f},"ErrorBoundary")," or"," ",j.createElement("code",{style:f},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},i),c?j.createElement("pre",{style:d},c):null,p)}var Jy=j.createElement(Wy,null),j3=class extends j.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,i){return i.location!==a.location||i.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:i.error,location:i.location,revalidation:a.revalidation||i.revalidation}}componentDidCatch(a,i){this.props.onError?this.props.onError(a,i):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const c=Qy(a.digest);c&&(a=c)}let i=a!==void 0?j.createElement(In.Provider,{value:this.props.routeContext},j.createElement(m2.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?j.createElement(ex,{error:a},i):i}};j3.contextType=_3;var xd=new WeakMap;function ex({children:a,error:i}){let{basename:c}=j.useContext(On);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=Vy(i.digest);if(r){let d=xd.get(i);if(d)throw d;let f=m3(r.location,c);if(h3&&!xd.get(i))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw xd.set(i,p),p}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function tx({routeContext:a,match:i,children:c}){let r=j.useContext(Ai);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),j.createElement(In.Provider,{value:a},c)}function nx(a,i=[],c){let r=c==null?void 0:c.state;if(a==null){if(!r)return null;if(r.errors)a=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)a=r.matches;else return null}let d=a,f=r==null?void 0:r.errors;if(f!=null){let v=d.findIndex(y=>y.route.id&&(f==null?void 0:f[y.route.id])!==void 0);ct(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),d=d.slice(0,Math.min(d.length,v+1))}let p=!1,g=-1;if(c&&r){p=r.renderFallback;for(let v=0;v<d.length;v++){let y=d[v];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(g=v),y.route.id){let{loaderData:b,errors:N}=r,S=y.route.loader&&!b.hasOwnProperty(y.route.id)&&(!N||N[y.route.id]===void 0);if(y.route.lazy||S){c.isStatic&&(p=!0),g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}}let h=c==null?void 0:c.onError,m=r&&h?(v,y)=>{var b,N;h(v,{location:r.location,params:((N=(b=r.matches)==null?void 0:b[0])==null?void 0:N.params)??{},unstable_pattern:By(r.matches),errorInfo:y})}:void 0;return d.reduceRight((v,y,b)=>{let N,S=!1,C=null,w=null;r&&(N=f&&y.route.id?f[y.route.id]:void 0,C=y.route.errorElement||Jy,p&&(g<0&&b===0?(S3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,w=null):g===b&&(S=!0,w=y.route.hydrateFallbackElement||null)));let O=i.concat(d.slice(0,b+1)),H=()=>{let L;return N?L=C:S?L=w:y.route.Component?L=j.createElement(y.route.Component,null):y.route.element?L=y.route.element:L=v,j.createElement(tx,{match:y,routeContext:{outlet:v,matches:O,isDataRoute:r!=null},children:L})};return r&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?j.createElement(j3,{location:r.location,revalidation:r.revalidation,component:C,error:N,children:H(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:m}):H()},null)}function p2(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lx(a){let i=j.useContext(Ai);return ct(i,p2(a)),i}function ax(a){let i=j.useContext(Vo);return ct(i,p2(a)),i}function sx(a){let i=j.useContext(In);return ct(i,p2(a)),i}function _2(a){let i=sx(a),c=i.matches[i.matches.length-1];return ct(c.route.id,`${a} can only be used on routes that contain a unique "id"`),c.route.id}function ix(){return _2("useRouteId")}function cx(){var r;let a=j.useContext(m2),i=ax("useRouteError"),c=_2("useRouteError");return a!==void 0?a:(r=i.errors)==null?void 0:r[c]}function rx(){let{router:a}=lx("useNavigate"),i=_2("useNavigate"),c=j.useRef(!1);return x3(()=>{c.current=!0}),j.useCallback(async(d,f={})=>{el(c.current,y3),c.current&&(typeof d=="number"?await a.navigate(d):await a.navigate(d,{fromRouteId:i,...f}))},[a,i])}var Xm={};function S3(a,i,c){!i&&!Xm[a]&&(Xm[a]=!0,el(!1,c))}j.memo(ox);function ox({routes:a,future:i,state:c,isStatic:r,onError:d}){return b3(a,void 0,{state:c,isStatic:r,onError:d})}function Qo({to:a,replace:i,state:c,relative:r}){ct(Oi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=j.useContext(On);el(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=j.useContext(In),{pathname:p}=Mn(),g=Ln(),h=Go(a,h2(f),p,r==="path"),m=JSON.stringify(h);return j.useEffect(()=>{g(JSON.parse(m),{replace:i,state:c,relative:r})},[g,m,r,i,c]),null}function g2(a){return Xy(a.context)}function et(a){ct(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ux({basename:a="/",children:i=null,location:c,navigationType:r="POP",navigator:d,static:f=!1,unstable_useTransitions:p}){ct(!Oi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=a.replace(/^\/*/,"/"),h=j.useMemo(()=>({basename:g,navigator:d,static:f,unstable_useTransitions:p,future:{}}),[g,d,f,p]);typeof c=="string"&&(c=Ri(c));let{pathname:m="/",search:v="",hash:y="",state:b=null,key:N="default",unstable_mask:S}=c,C=j.useMemo(()=>{let w=Vl(m,g);return w==null?null:{location:{pathname:w,search:v,hash:y,state:b,key:N,unstable_mask:S},navigationType:r}},[g,m,v,y,b,N,r,S]);return el(C!=null,`<Router basename="${g}"> is not able to match the URL "${m}${v}${y}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:j.createElement(On.Provider,{value:h},j.createElement(Jc.Provider,{children:i,value:C}))}function dx({children:a,location:i}){return Ky(Hd(a),i)}function Hd(a,i=[]){let c=[];return j.Children.forEach(a,(r,d)=>{if(!j.isValidElement(r))return;let f=[...i,d];if(r.type===j.Fragment){c.push.apply(c,Hd(r.props.children,f));return}ct(r.type===et,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ct(!r.props.index||!r.props.children,"An index route cannot have child routes.");let p={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(p.children=Hd(r.props.children,f)),c.push(p)}),c}var Oo="get",Mo="application/x-www-form-urlencoded";function Yo(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function fx(a){return Yo(a)&&a.tagName.toLowerCase()==="button"}function hx(a){return Yo(a)&&a.tagName.toLowerCase()==="form"}function mx(a){return Yo(a)&&a.tagName.toLowerCase()==="input"}function px(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function _x(a,i){return a.button===0&&(!i||i==="_self")&&!px(a)}var So=null;function gx(){if(So===null)try{new FormData(document.createElement("form"),0),So=!1}catch{So=!0}return So}var vx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bd(a){return a!=null&&!vx.has(a)?(el(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mo}"`),null):a}function yx(a,i){let c,r,d,f,p;if(hx(a)){let g=a.getAttribute("action");r=g?Vl(g,i):null,c=a.getAttribute("method")||Oo,d=bd(a.getAttribute("enctype"))||Mo,f=new FormData(a)}else if(fx(a)||mx(a)&&(a.type==="submit"||a.type==="image")){let g=a.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=a.getAttribute("formaction")||g.getAttribute("action");if(r=h?Vl(h,i):null,c=a.getAttribute("formmethod")||g.getAttribute("method")||Oo,d=bd(a.getAttribute("formenctype"))||bd(g.getAttribute("enctype"))||Mo,f=new FormData(g,a),!gx()){let{name:m,type:v,value:y}=a;if(v==="image"){let b=m?`${m}.`:"";f.append(`${b}x`,"0"),f.append(`${b}y`,"0")}else m&&f.append(m,y)}}else{if(Yo(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=Oo,r=null,d=Mo,p=a}return f&&d==="text/plain"&&(p=f,f=void 0),{action:r,method:c.toLowerCase(),encType:d,formData:f,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function v2(a,i){if(a===!1||a===null||typeof a>"u")throw new Error(i)}function N3(a,i,c,r){let d=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return c?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${r}`:d.pathname=`${d.pathname}.${r}`:d.pathname==="/"?d.pathname=`_root.${r}`:i&&Vl(d.pathname,i)==="/"?d.pathname=`${Do(i)}/_root.${r}`:d.pathname=`${Do(d.pathname)}.${r}`,d}async function xx(a,i){if(a.id in i)return i[a.id];try{let c=await import(a.module);return i[a.id]=c,c}catch(c){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function bx(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function jx(a,i,c){let r=await Promise.all(a.map(async d=>{let f=i.routes[d.route.id];if(f){let p=await xx(f,c);return p.links?p.links():[]}return[]}));return Cx(r.flat(1).filter(bx).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Zm(a,i,c,r,d,f){let p=(h,m)=>c[m]?h.route.id!==c[m].route.id:!0,g=(h,m)=>{var v;return c[m].pathname!==h.pathname||((v=c[m].route.path)==null?void 0:v.endsWith("*"))&&c[m].params["*"]!==h.params["*"]};return f==="assets"?i.filter((h,m)=>p(h,m)||g(h,m)):f==="data"?i.filter((h,m)=>{var y;let v=r.routes[h.route.id];if(!v||!v.hasLoader)return!1;if(p(h,m)||g(h,m))return!0;if(h.route.shouldRevalidate){let b=h.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((y=c[0])==null?void 0:y.params)||{},nextUrl:new URL(a,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function Sx(a,i,{includeHydrateFallback:c}={}){return Nx(a.map(r=>{let d=i.routes[r.route.id];if(!d)return[];let f=[d.module];return d.clientActionModule&&(f=f.concat(d.clientActionModule)),d.clientLoaderModule&&(f=f.concat(d.clientLoaderModule)),c&&d.hydrateFallbackModule&&(f=f.concat(d.hydrateFallbackModule)),d.imports&&(f=f.concat(d.imports)),f}).flat(1))}function Nx(a){return[...new Set(a)]}function wx(a){let i={},c=Object.keys(a).sort();for(let r of c)i[r]=a[r];return i}function Cx(a,i){let c=new Set;return new Set(i),a.reduce((r,d)=>{let f=JSON.stringify(wx(d));return c.has(f)||(c.add(f),r.push({key:f,link:d})),r},[])}function y2(){let a=j.useContext(Ai);return v2(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function Ex(){let a=j.useContext(Vo);return v2(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var x2=j.createContext(void 0);x2.displayName="FrameworkContext";function b2(){let a=j.useContext(x2);return v2(a,"You must render this element inside a <HydratedRouter> element"),a}function Tx(a,i){let c=j.useContext(x2),[r,d]=j.useState(!1),[f,p]=j.useState(!1),{onFocus:g,onBlur:h,onMouseEnter:m,onMouseLeave:v,onTouchStart:y}=i,b=j.useRef(null);j.useEffect(()=>{if(a==="render"&&p(!0),a==="viewport"){let C=O=>{O.forEach(H=>{p(H.isIntersecting)})},w=new IntersectionObserver(C,{threshold:.5});return b.current&&w.observe(b.current),()=>{w.disconnect()}}},[a]),j.useEffect(()=>{if(r){let C=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(C)}}},[r]);let N=()=>{d(!0)},S=()=>{d(!1),p(!1)};return c?a!=="intent"?[f,b,{}]:[f,b,{onFocus:Rc(g,N),onBlur:Rc(h,S),onMouseEnter:Rc(m,N),onMouseLeave:Rc(v,S),onTouchStart:Rc(y,N)}]:[!1,b,{}]}function Rc(a,i){return c=>{a&&a(c),c.defaultPrevented||i(c)}}function Rx({page:a,...i}){let c=$y(),{router:r}=y2(),d=j.useMemo(()=>o3(r.routes,a,r.basename),[r.routes,a,r.basename]);return d?c?j.createElement(Ox,{page:a,matches:d,...i}):j.createElement(Mx,{page:a,matches:d,...i}):null}function Ax(a){let{manifest:i,routeModules:c}=b2(),[r,d]=j.useState([]);return j.useEffect(()=>{let f=!1;return jx(a,i,c).then(p=>{f||d(p)}),()=>{f=!0}},[a,i,c]),r}function Ox({page:a,matches:i,...c}){let r=Mn(),{future:d}=b2(),{basename:f}=y2(),p=j.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let g=N3(a,f,d.unstable_trailingSlashAwareDataRequests,"rsc"),h=!1,m=[];for(let v of i)typeof v.route.shouldRevalidate=="function"?h=!0:m.push(v.route.id);return h&&m.length>0&&g.searchParams.set("_routes",m.join(",")),[g.pathname+g.search]},[f,d.unstable_trailingSlashAwareDataRequests,a,r,i]);return j.createElement(j.Fragment,null,p.map(g=>j.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...c})))}function Mx({page:a,matches:i,...c}){let r=Mn(),{future:d,manifest:f,routeModules:p}=b2(),{basename:g}=y2(),{loaderData:h,matches:m}=Ex(),v=j.useMemo(()=>Zm(a,i,m,f,r,"data"),[a,i,m,f,r]),y=j.useMemo(()=>Zm(a,i,m,f,r,"assets"),[a,i,m,f,r]),b=j.useMemo(()=>{if(a===r.pathname+r.search+r.hash)return[];let C=new Set,w=!1;if(i.forEach(H=>{var U;let L=f.routes[H.route.id];!L||!L.hasLoader||(!v.some(I=>I.route.id===H.route.id)&&H.route.id in h&&((U=p[H.route.id])!=null&&U.shouldRevalidate)||L.hasClientLoader?w=!0:C.add(H.route.id))}),C.size===0)return[];let O=N3(a,g,d.unstable_trailingSlashAwareDataRequests,"data");return w&&C.size>0&&O.searchParams.set("_routes",i.filter(H=>C.has(H.route.id)).map(H=>H.route.id).join(",")),[O.pathname+O.search]},[g,d.unstable_trailingSlashAwareDataRequests,h,r,f,v,i,a,p]),N=j.useMemo(()=>Sx(y,f),[y,f]),S=Ax(y);return j.createElement(j.Fragment,null,b.map(C=>j.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...c})),N.map(C=>j.createElement("link",{key:C,rel:"modulepreload",href:C,...c})),S.map(({key:C,link:w})=>j.createElement("link",{key:C,nonce:c.nonce,...w,crossOrigin:w.crossOrigin??c.crossOrigin})))}function Lx(...a){return i=>{a.forEach(c=>{typeof c=="function"?c(i):c!=null&&(c.current=i)})}}var zx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{zx&&(window.__reactRouterVersion="7.14.2")}catch{}function Dx({basename:a,children:i,unstable_useTransitions:c,window:r}){let d=j.useRef();d.current==null&&(d.current=fy({window:r,v5Compat:!0}));let f=d.current,[p,g]=j.useState({action:f.action,location:f.location}),h=j.useCallback(m=>{c===!1?g(m):j.startTransition(()=>g(m))},[c]);return j.useLayoutEffect(()=>f.listen(h),[f,h]),j.createElement(ux,{basename:a,children:i,location:p.location,navigationType:p.action,navigator:f,unstable_useTransitions:c})}var w3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yt=j.forwardRef(function({onClick:i,discover:c="render",prefetch:r="none",relative:d,reloadDocument:f,replace:p,unstable_mask:g,state:h,target:m,to:v,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:N,...S},C){let{basename:w,navigator:O,unstable_useTransitions:H}=j.useContext(On),L=typeof v=="string"&&w3.test(v),U=m3(v,w);v=U.to;let I=Yy(v,{relative:d}),W=Mn(),B=null;if(g){let de=Go(g,[],W.unstable_mask?W.unstable_mask.pathname:"/",!0);w!=="/"&&(de.pathname=de.pathname==="/"?w:Jn([w,de.pathname])),B=O.createHref(de)}let[Y,le,me]=Tx(r,S),he=Ux(v,{replace:p,unstable_mask:g,state:h,target:m,preventScrollReset:y,relative:d,viewTransition:b,unstable_defaultShouldRevalidate:N,unstable_useTransitions:H});function Ee(de){i&&i(de),de.defaultPrevented||he(de)}let re=!(U.isExternal||f),ge=j.createElement("a",{...S,...me,href:(re?B:void 0)||U.absoluteURL||I,onClick:re?Ee:i,ref:Lx(C,le),target:m,"data-discover":!L&&c==="render"?"true":void 0});return Y&&!L?j.createElement(j.Fragment,null,ge,j.createElement(Rx,{page:I})):ge});Yt.displayName="Link";var qd=j.forwardRef(function({"aria-current":i="page",caseSensitive:c=!1,className:r="",end:d=!1,style:f,to:p,viewTransition:g,children:h,...m},v){let y=er(p,{relative:m.relative}),b=Mn(),N=j.useContext(Vo),{navigator:S,basename:C}=j.useContext(On),w=N!=null&&Gx(y)&&g===!0,O=S.encodeLocation?S.encodeLocation(y).pathname:y.pathname,H=b.pathname,L=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;c||(H=H.toLowerCase(),L=L?L.toLowerCase():null,O=O.toLowerCase()),L&&C&&(L=Vl(L,C)||L);const U=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let I=H===O||!d&&H.startsWith(O)&&H.charAt(U)==="/",W=L!=null&&(L===O||!d&&L.startsWith(O)&&L.charAt(O.length)==="/"),B={isActive:I,isPending:W,isTransitioning:w},Y=I?i:void 0,le;typeof r=="function"?le=r(B):le=[r,I?"active":null,W?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let me=typeof f=="function"?f(B):f;return j.createElement(Yt,{...m,"aria-current":Y,className:le,ref:v,style:me,to:p,viewTransition:g},typeof h=="function"?h(B):h)});qd.displayName="NavLink";var kx=j.forwardRef(({discover:a="render",fetcherKey:i,navigate:c,reloadDocument:r,replace:d,state:f,method:p=Oo,action:g,onSubmit:h,relative:m,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b,...N},S)=>{let{unstable_useTransitions:C}=j.useContext(On),w=qx(),O=Fx(g,{relative:m}),H=p.toLowerCase()==="get"?"get":"post",L=typeof g=="string"&&w3.test(g),U=I=>{if(h&&h(I),I.defaultPrevented)return;I.preventDefault();let W=I.nativeEvent.submitter,B=(W==null?void 0:W.getAttribute("formmethod"))||p,Y=()=>w(W||I.currentTarget,{fetcherKey:i,method:B,navigate:c,replace:d,state:f,relative:m,preventScrollReset:v,viewTransition:y,unstable_defaultShouldRevalidate:b});C&&c!==!1?j.startTransition(()=>Y()):Y()};return j.createElement("form",{ref:S,method:H,action:O,onSubmit:r?h:U,...N,"data-discover":!L&&a==="render"?"true":void 0})});kx.displayName="Form";function Bx(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function C3(a){let i=j.useContext(Ai);return ct(i,Bx(a)),i}function Ux(a,{target:i,replace:c,unstable_mask:r,state:d,preventScrollReset:f,relative:p,viewTransition:g,unstable_defaultShouldRevalidate:h,unstable_useTransitions:m}={}){let v=Ln(),y=Mn(),b=er(a,{relative:p});return j.useCallback(N=>{if(_x(N,i)){N.preventDefault();let S=c!==void 0?c:qc(y)===qc(b),C=()=>v(a,{replace:S,unstable_mask:r,state:d,preventScrollReset:f,relative:p,viewTransition:g,unstable_defaultShouldRevalidate:h});m?j.startTransition(()=>C()):C()}},[y,v,b,c,r,d,i,a,f,p,g,h,m])}var $x=0,Hx=()=>`__${String(++$x)}__`;function qx(){let{router:a}=C3("useSubmit"),{basename:i}=j.useContext(On),c=ix(),r=a.fetch,d=a.navigate;return j.useCallback(async(f,p={})=>{let{action:g,method:h,encType:m,formData:v,body:y}=yx(f,i);if(p.navigate===!1){let b=p.fetcherKey||Hx();await r(b,c,p.action||g,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:v,body:y,formMethod:p.method||h,formEncType:p.encType||m,flushSync:p.flushSync})}else await d(p.action||g,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:v,body:y,formMethod:p.method||h,formEncType:p.encType||m,replace:p.replace,state:p.state,fromRouteId:c,flushSync:p.flushSync,viewTransition:p.viewTransition})},[r,d,i,c])}function Fx(a,{relative:i}={}){let{basename:c}=j.useContext(On),r=j.useContext(In);ct(r,"useFormAction must be used inside a RouteContext");let[d]=r.matches.slice(-1),f={...er(a||".",{relative:i})},p=Mn();if(a==null){f.search=p.search;let g=new URLSearchParams(f.search),h=g.getAll("index");if(h.some(v=>v==="")){g.delete("index"),h.filter(y=>y).forEach(y=>g.append("index",y));let v=g.toString();f.search=v?`?${v}`:""}}return(!a||a===".")&&d.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(f.pathname=f.pathname==="/"?c:Jn([c,f.pathname])),qc(f)}function Gx(a,{relative:i}={}){let c=j.useContext(g3);ct(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=C3("useViewTransitionState"),d=er(a,{relative:i});if(!c.isTransitioning)return!1;let f=Vl(c.currentLocation.pathname,r)||c.currentLocation.pathname,p=Vl(c.nextLocation.pathname,r)||c.nextLocation.pathname;return zo(d.pathname,p)!=null||zo(d.pathname,f)!=null}const Vx="_btn_8fkbu_1",Qx="_primary_8fkbu_17",Yx="_danger_8fkbu_27",Ix="_ghost_8fkbu_37",Px="_outline_8fkbu_47",Km={btn:Vx,primary:Qx,danger:Yx,ghost:Ix,outline:Px};function nn({variant:a,children:i,onClick:c,type:r="button",disabled:d}){return l.jsx("button",{type:r,className:`${Km.btn} ${Km[a]}`,onClick:c,disabled:d,children:i})}const Xx="_field_1rkrg_1",Zx="_compact_1rkrg_5",Kx="_fieldError_1rkrg_9",Wx="_fieldLabel_1rkrg_15",Jx="_fieldInput_1rkrg_23",e4="_currency_1rkrg_49",t4="_currencyIcon_1rkrg_58",n4="_currencyRub_1rkrg_70",l4="_currencyUsdt_1rkrg_74",rl={field:Xx,compact:Zx,fieldError:Kx,fieldLabel:Wx,fieldInput:Jx,currency:e4,currencyIcon:t4,currencyRub:n4,currencyUsdt:l4};function ko({label:a,value:i,currency:c,onChange:r,error:d,compact:f}){const p=!r;return l.jsxs("div",{className:f?`${rl.field} ${rl.compact}`:rl.field,children:[a&&l.jsx("div",{className:rl.fieldLabel,children:a}),l.jsxs("div",{className:rl.fieldInput,children:[l.jsx("input",{type:"text",value:i,onChange:r?g=>r(g.target.value):void 0,readOnly:p,placeholder:"0",inputMode:p?void 0:"decimal"}),l.jsxs("div",{className:rl.currency,children:[l.jsx("span",{className:`${rl.currencyIcon} ${c==="USDT"?rl.currencyUsdt:rl.currencyRub}`,children:c==="USDT"?"₮":"₽"}),c]})]}),d&&l.jsx("div",{className:rl.fieldError,children:d})]})}const a4="_swapWrap_172k4_1",s4="_compact_172k4_6",i4="_swapBtn_172k4_10",No={swapWrap:a4,compact:s4,swapBtn:i4};function E3({onClick:a,compact:i}){return l.jsx("div",{className:i?`${No.swapWrap} ${No.compact}`:No.swapWrap,children:l.jsx("button",{type:"button",className:No.swapBtn,onClick:a,"aria-label":"Поменять направление",children:l.jsx("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",children:l.jsx("path",{d:"M8 2v12M4 10l4 4 4-4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})})})}const c4="_field_zffpb_1",r4="_label_zffpb_7",o4="_wrap_zffpb_14",u4="_input_zffpb_18",d4="_readonly_zffpb_37",f4="_copied_zffpb_44",h4="_iconCheck_zffpb_59",m4="_iconLock_zffpb_68",p4="_withToggle_zffpb_76",_4="_togglePw_zffpb_80",ol={field:c4,label:r4,wrap:o4,input:u4,readonly:d4,copied:f4,iconCheck:h4,iconLock:m4,withToggle:p4,togglePw:_4};function Ne({label:a,value:i,placeholder:c,type:r="text",onChange:d,onBlur:f,readOnly:p,required:g,icon:h}){const[m,v]=j.useState(!1),[y,b]=j.useState(!1),N=r==="password",S=N?y?"text":"password":r,C=()=>{p&&navigator.clipboard.writeText(i).then(()=>{v(!0),setTimeout(()=>v(!1),1500)})};return l.jsxs("div",{className:ol.field,children:[l.jsx("label",{className:ol.label,children:a}),l.jsxs("div",{className:ol.wrap,onClick:C,children:[l.jsx("input",{className:`${ol.input} ${N?ol.withToggle:""} ${p?ol.readonly:""} ${m?ol.copied:""}`,type:S,...d?{value:i,onChange:w=>d(w.target.value)}:{defaultValue:i},placeholder:c,readOnly:p,required:g,onBlur:f}),N&&l.jsx("button",{type:"button",className:ol.togglePw,onClick:w=>{w.stopPropagation(),b(O=>!O)},"aria-label":y?"Скрыть пароль":"Показать пароль",children:y?l.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[l.jsx("path",{d:"M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94"}),l.jsx("path",{d:"M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19"}),l.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):l.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[l.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8S1 12 1 12z"}),l.jsx("circle",{cx:"12",cy:"12",r:"3"})]})}),h==="check"&&l.jsx("span",{className:ol.iconCheck,children:"✓"}),h==="lock"&&l.jsx("span",{className:ol.iconLock,children:"🔒"})]})]})}const g4="_notification_m7zar_1",v4="_slideIn_m7zar_1",y4="_notificationWrapper_m7zar_19",x4="_closing_m7zar_24",b4="_slideOut_m7zar_1",j4="_icon_m7zar_52",S4="_success_m7zar_65",N4="_error_m7zar_70",w4="_info_m7zar_75",C4="_warning_m7zar_80",E4="_message_m7zar_85",T4="_close_m7zar_93",es={notification:g4,slideIn:v4,notificationWrapper:y4,closing:x4,slideOut:b4,icon:j4,success:S4,error:N4,info:w4,warning:C4,message:E4,close:T4},R4={success:"✓",error:"✕",info:"i",warning:"!"};function Ql({message:a,status:i,onClose:c}){const[r,d]=j.useState(!1);function f(){d(!0)}function p(){r&&c()}return l.jsxs("div",{className:`${es.notification} ${es[i]} ${r?es.closing:""}`,onAnimationEnd:p,children:[l.jsxs("div",{className:es.notificationWrapper,children:[l.jsx("span",{className:es.icon,children:R4[i]}),l.jsx("p",{className:es.message,children:a})]}),l.jsx("button",{className:es.close,onClick:f,children:"✕"})]})}const A4="_pill_3oadq_1",O4={pill:A4};function M4({children:a}){return l.jsx("span",{className:O4.pill,children:a})}const L4="_btn_ytb12_1",z4={btn:L4};function tl({label:a="Подтвердить своп",onClick:i,type:c="submit",disabled:r}){return l.jsx("button",{type:c,className:z4.btn,onClick:i,disabled:r,children:a})}const D4="_field_1845i_1",k4="_label_1845i_8",B4="_trigger_1845i_15",U4="_triggerOpen_1845i_41",$4="_value_1845i_46",H4="_placeholder_1845i_50",q4="_arrow_1845i_54",F4="_arrowOpen_1845i_61",G4="_dropdown_1845i_65",V4="_option_1845i_82",Q4="_optionSelected_1845i_95",Kn={field:D4,label:k4,trigger:B4,triggerOpen:U4,value:$4,placeholder:H4,arrow:q4,arrowOpen:F4,dropdown:G4,option:V4,optionSelected:Q4};function Y4({value:a,options:i,onChange:c,label:r,placeholder:d="Выберите",id:f,disabled:p}){const[g,h]=j.useState(!1),m=j.useRef(null),v=i.find(y=>y.value===a);return j.useEffect(()=>{if(!g)return;const y=N=>{m.current&&!m.current.contains(N.target)&&h(!1)},b=N=>{N.key==="Escape"&&h(!1)};return document.addEventListener("mousedown",y),document.addEventListener("keydown",b),()=>{document.removeEventListener("mousedown",y),document.removeEventListener("keydown",b)}},[g]),l.jsxs("div",{className:Kn.field,ref:m,children:[r&&l.jsx("label",{className:Kn.label,htmlFor:f,children:r}),l.jsxs("button",{type:"button",id:f,className:`${Kn.trigger} ${g?Kn.triggerOpen:""}`,onClick:()=>!p&&h(y=>!y),disabled:p,"aria-haspopup":"listbox","aria-expanded":g,children:[l.jsx("span",{className:v?Kn.value:Kn.placeholder,children:v?v.label:d}),l.jsx("span",{className:`${Kn.arrow} ${g?Kn.arrowOpen:""}`,"aria-hidden":!0,children:"▾"})]}),g&&l.jsx("ul",{className:Kn.dropdown,role:"listbox",children:i.map(y=>l.jsx("li",{role:"option","aria-selected":y.value===a,className:`${Kn.option} ${y.value===a?Kn.optionSelected:""}`,onClick:()=>{c(y.value),h(!1)},children:y.label},String(y.value)))})]})}const I4="_wrap_1ujmu_1",P4="_fullscreen_1ujmu_9",X4="_spinner_1ujmu_15",Z4="_spin_1ujmu_15",K4="_sm_1ujmu_24",W4="_md_1ujmu_30",J4="_lg_1ujmu_36",eb="_label_1ujmu_42",tb="_srOnly_1ujmu_49",ci={wrap:I4,fullscreen:P4,spinner:X4,spin:Z4,sm:K4,md:W4,lg:J4,label:eb,srOnly:tb};function T3({size:a="md",label:i,fullscreen:c,className:r}){const d=[ci.wrap,c?ci.fullscreen:"",r??""].filter(Boolean).join(" ");return l.jsxs("div",{className:d,role:"status","aria-live":"polite","aria-busy":"true",children:[l.jsx("span",{className:`${ci.spinner} ${ci[a]}`,"aria-hidden":"true"}),i?l.jsx("span",{className:ci.label,children:i}):null,l.jsx("span",{className:ci.srOnly,children:i??"Загрузка"})]})}const nb="_icon_73irc_1",lb={icon:nb};function Fc({letter:a,color:i,logo:c,size:r=40}){return l.jsx("div",{className:lb.icon,style:{background:c?"transparent":i,width:r,height:r,fontSize:r*.45},children:c?l.jsx("img",{src:c,alt:a,style:{width:r*.7,height:r*.7}}):a})}const ab="_section_11f1k_1",sb="_wrap_11f1k_7",ib="_descBlock_11f1k_16",cb="_descText_11f1k_22",rb="_right_11f1k_33",ob="_glow_11f1k_37",ub="_row_11f1k_49",db="_check_11f1k_87",fb="_text_11f1k_101",ul={section:ab,wrap:sb,descBlock:ib,descText:cb,right:rb,glow:ob,row:ub,check:db,text:fb},hb="_title_1ien9_1",mb={title:hb};function R3({children:a}){return l.jsx("h2",{className:mb.title,children:a})}const Wm=["Вся деятельность компании соответствует законодательству Российской Федерации и требованиям регуляторов","Вся документация компании открыта и доступна для ознакомления","Операции защищены шифрованием уровня ERC-20 и проходят верификацию в блокчейне"];function pb(){const[a,i]=j.useState(-1);return l.jsx("section",{id:"about",className:ul.section,children:l.jsxs("div",{className:ul.wrap,children:[l.jsxs("div",{children:[l.jsx(M4,{children:"О КОМПАНИИ"}),l.jsx(R3,{children:"О нас"}),l.jsxs("div",{className:ul.descBlock,children:[l.jsx("p",{className:ul.descText,children:"ЭКСА — молодая финтех-компания в сфере цифровых активов. Наша миссия — сделать оборот цифровых активов простым, прозрачным и законным."}),l.jsx("p",{className:ul.descText,children:"Мы создаём инфраструктуру для операций с криптовалютой и комплексные решения для физических и юридических лиц."})]})]}),l.jsxs("div",{className:ul.right,children:[l.jsx("div",{className:ul.glow}),Wm.map((c,r)=>l.jsxs("div",{className:ul.row,"data-hovered":a===r||void 0,"data-last":r===Wm.length-1||void 0,onMouseEnter:()=>i(r),onMouseLeave:()=>i(-1),children:[l.jsx("div",{className:ul.check,children:"✓"}),l.jsx("span",{className:ul.text,children:c})]},r))]})]})})}const Bo=[{min:5e3,max:3e4,pct:8},{min:30001,max:1e5,pct:6},{min:100001,max:6e5,pct:4}],jd=Bo[0].min,Jm=Bo[Bo.length-1].max;function _b(a){return a<=jd?0:a>=Jm?100:(a-jd)/(Jm-jd)*100}const gb="_title_ujt2o_1",vb="_table_ujt2o_8",yb="_row_ujt2o_15",xb="_range_ujt2o_31",bb="_pct_ujt2o_36",jb="_progressBar_ujt2o_43",Sb="_progressFill_ujt2o_51",Nb="_summary_ujt2o_58",wb="_summaryLabel_ujt2o_73",Cb="_summaryValue_ujt2o_78",En={title:gb,table:vb,row:yb,range:xb,pct:bb,progressBar:jb,progressFill:Sb,summary:Nb,summaryLabel:wb,summaryValue:Cb},ep=a=>a.toLocaleString("ru-RU");function A3({amount:a,progress:i,commission:c,effectiveRate:r}){return l.jsxs("div",{children:[l.jsx("div",{className:En.title,children:"КОМИССИЯ СЕРВИСА"}),l.jsx("div",{className:En.table,children:Bo.map((d,f)=>l.jsxs("div",{className:En.row,"data-active":a>=d.min&&a<=d.max||void 0,children:[l.jsxs("span",{className:En.range,children:[ep(d.min)," ",ep(d.max)," ₽"]}),l.jsxs("span",{className:En.pct,children:[d.pct,"%"]})]},f))}),l.jsx("div",{className:En.progressBar,children:l.jsx("div",{className:En.progressFill,style:{width:`${i}%`}})}),l.jsxs("div",{className:En.summary,children:[l.jsx("span",{className:En.summaryLabel,children:"Комиссия"}),l.jsxs("span",{className:En.summaryValue,children:[c.toLocaleString("ru-RU",{maximumFractionDigits:2})," ₽"]})]}),l.jsxs("div",{className:En.summary,children:[l.jsx("span",{className:En.summaryLabel,children:"Курс с комиссией"}),l.jsxs("span",{className:En.summaryValue,children:[r.toFixed(2)," ₽"]})]})]})}var Mi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},rs,Na,pi,Kp,Eb=(Kp=class extends Mi{constructor(){super();ie(this,rs);ie(this,Na);ie(this,pi);J(this,pi,i=>{if(typeof window<"u"&&window.addEventListener){const c=()=>i();return window.addEventListener("visibilitychange",c,!1),()=>{window.removeEventListener("visibilitychange",c)}}})}onSubscribe(){T(this,Na)||this.setEventListener(T(this,pi))}onUnsubscribe(){var i;this.hasListeners()||((i=T(this,Na))==null||i.call(this),J(this,Na,void 0))}setEventListener(i){var c;J(this,pi,i),(c=T(this,Na))==null||c.call(this),J(this,Na,i(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(i){T(this,rs)!==i&&(J(this,rs,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(c=>{c(i)})}isFocused(){var i;return typeof T(this,rs)=="boolean"?T(this,rs):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},rs=new WeakMap,Na=new WeakMap,pi=new WeakMap,Kp),j2=new Eb,Tb={setTimeout:(a,i)=>setTimeout(a,i),clearTimeout:a=>clearTimeout(a),setInterval:(a,i)=>setInterval(a,i),clearInterval:a=>clearInterval(a)},wa,d2,Wp,Rb=(Wp=class{constructor(){ie(this,wa,Tb);ie(this,d2,!1)}setTimeoutProvider(a){J(this,wa,a)}setTimeout(a,i){return T(this,wa).setTimeout(a,i)}clearTimeout(a){T(this,wa).clearTimeout(a)}setInterval(a,i){return T(this,wa).setInterval(a,i)}clearInterval(a){T(this,wa).clearInterval(a)}},wa=new WeakMap,d2=new WeakMap,Wp),cs=new Rb;function Ab(a){setTimeout(a,0)}var Ob=typeof window>"u"||"Deno"in globalThis;function tn(){}function Mb(a,i){return typeof a=="function"?a(i):a}function Fd(a){return typeof a=="number"&&a>=0&&a!==1/0}function O3(a,i){return Math.max(a+(i||0)-Date.now(),0)}function La(a,i){return typeof a=="function"?a(i):a}function An(a,i){return typeof a=="function"?a(i):a}function tp(a,i){const{type:c="all",exact:r,fetchStatus:d,predicate:f,queryKey:p,stale:g}=a;if(p){if(r){if(i.queryHash!==S2(p,i.options))return!1}else if(!Gc(i.queryKey,p))return!1}if(c!=="all"){const h=i.isActive();if(c==="active"&&!h||c==="inactive"&&h)return!1}return!(typeof g=="boolean"&&i.isStale()!==g||d&&d!==i.state.fetchStatus||f&&!f(i))}function np(a,i){const{exact:c,status:r,predicate:d,mutationKey:f}=a;if(f){if(!i.options.mutationKey)return!1;if(c){if(vs(i.options.mutationKey)!==vs(f))return!1}else if(!Gc(i.options.mutationKey,f))return!1}return!(r&&i.state.status!==r||d&&!d(i))}function S2(a,i){return((i==null?void 0:i.queryKeyHashFn)||vs)(a)}function vs(a){return JSON.stringify(a,(i,c)=>Gd(c)?Object.keys(c).sort().reduce((r,d)=>(r[d]=c[d],r),{}):c)}function Gc(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(c=>Gc(a[c],i[c])):!1}var Lb=Object.prototype.hasOwnProperty;function M3(a,i,c=0){if(a===i)return a;if(c>500)return i;const r=lp(a)&&lp(i);if(!r&&!(Gd(a)&&Gd(i)))return i;const f=(r?a:Object.keys(a)).length,p=r?i:Object.keys(i),g=p.length,h=r?new Array(g):{};let m=0;for(let v=0;v<g;v++){const y=r?v:p[v],b=a[y],N=i[y];if(b===N){h[y]=b,(r?v<f:Lb.call(a,y))&&m++;continue}if(b===null||N===null||typeof b!="object"||typeof N!="object"){h[y]=N;continue}const S=M3(b,N,c+1);h[y]=S,S===b&&m++}return f===g&&m===f?a:h}function Uo(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const c in a)if(a[c]!==i[c])return!1;return!0}function lp(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Gd(a){if(!ap(a))return!1;const i=a.constructor;if(i===void 0)return!0;const c=i.prototype;return!(!ap(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function ap(a){return Object.prototype.toString.call(a)==="[object Object]"}function zb(a){return new Promise(i=>{cs.setTimeout(i,a)})}function Vd(a,i,c){return typeof c.structuralSharing=="function"?c.structuralSharing(a,i):c.structuralSharing!==!1?M3(a,i):i}function Db(a,i,c=0){const r=[...a,i];return c&&r.length>c?r.slice(1):r}function kb(a,i,c=0){const r=[i,...a];return c&&r.length>c?r.slice(0,-1):r}var N2=Symbol();function L3(a,i){return!a.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!a.queryFn||a.queryFn===N2?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function w2(a,i){return typeof a=="function"?a(...i):!!a}function Bb(a,i,c){let r=!1,d;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(d??(d=i()),r||(r=!0,d.aborted?c():d.addEventListener("abort",c,{once:!0})),d)}),a}var Vc=(()=>{let a=()=>Ob;return{isServer(){return a()},setIsServer(i){a=i}}})();function Qd(){let a,i;const c=new Promise((d,f)=>{a=d,i=f});c.status="pending",c.catch(()=>{});function r(d){Object.assign(c,d),delete c.resolve,delete c.reject}return c.resolve=d=>{r({status:"fulfilled",value:d}),a(d)},c.reject=d=>{r({status:"rejected",reason:d}),i(d)},c}var Ub=Ab;function $b(){let a=[],i=0,c=g=>{g()},r=g=>{g()},d=Ub;const f=g=>{i?a.push(g):d(()=>{c(g)})},p=()=>{const g=a;a=[],g.length&&d(()=>{r(()=>{g.forEach(h=>{c(h)})})})};return{batch:g=>{let h;i++;try{h=g()}finally{i--,i||p()}return h},batchCalls:g=>(...h)=>{f(()=>{g(...h)})},schedule:f,setNotifyFunction:g=>{c=g},setBatchNotifyFunction:g=>{r=g},setScheduler:g=>{d=g}}}var Tt=$b(),_i,Ca,gi,Jp,Hb=(Jp=class extends Mi{constructor(){super();ie(this,_i,!0);ie(this,Ca);ie(this,gi);J(this,gi,i=>{if(typeof window<"u"&&window.addEventListener){const c=()=>i(!0),r=()=>i(!1);return window.addEventListener("online",c,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",c),window.removeEventListener("offline",r)}}})}onSubscribe(){T(this,Ca)||this.setEventListener(T(this,gi))}onUnsubscribe(){var i;this.hasListeners()||((i=T(this,Ca))==null||i.call(this),J(this,Ca,void 0))}setEventListener(i){var c;J(this,gi,i),(c=T(this,Ca))==null||c.call(this),J(this,Ca,i(this.setOnline.bind(this)))}setOnline(i){T(this,_i)!==i&&(J(this,_i,i),this.listeners.forEach(r=>{r(i)}))}isOnline(){return T(this,_i)}},_i=new WeakMap,Ca=new WeakMap,gi=new WeakMap,Jp),$o=new Hb;function qb(a){return Math.min(1e3*2**a,3e4)}function z3(a){return(a??"online")==="online"?$o.isOnline():!0}var Yd=class extends Error{constructor(a){super("CancelledError"),this.revert=a==null?void 0:a.revert,this.silent=a==null?void 0:a.silent}};function D3(a){let i=!1,c=0,r;const d=Qd(),f=()=>d.status!=="pending",p=C=>{var w;if(!f()){const O=new Yd(C);b(O),(w=a.onCancel)==null||w.call(a,O)}},g=()=>{i=!0},h=()=>{i=!1},m=()=>j2.isFocused()&&(a.networkMode==="always"||$o.isOnline())&&a.canRun(),v=()=>z3(a.networkMode)&&a.canRun(),y=C=>{f()||(r==null||r(),d.resolve(C))},b=C=>{f()||(r==null||r(),d.reject(C))},N=()=>new Promise(C=>{var w;r=O=>{(f()||m())&&C(O)},(w=a.onPause)==null||w.call(a)}).then(()=>{var C;r=void 0,f()||(C=a.onContinue)==null||C.call(a)}),S=()=>{if(f())return;let C;const w=c===0?a.initialPromise:void 0;try{C=w??a.fn()}catch(O){C=Promise.reject(O)}Promise.resolve(C).then(y).catch(O=>{var W;if(f())return;const H=a.retry??(Vc.isServer()?0:3),L=a.retryDelay??qb,U=typeof L=="function"?L(c,O):L,I=H===!0||typeof H=="number"&&c<H||typeof H=="function"&&H(c,O);if(i||!I){b(O);return}c++,(W=a.onFail)==null||W.call(a,c,O),zb(U).then(()=>m()?void 0:N()).then(()=>{i?b(O):S()})})};return{promise:d,status:()=>d.status,cancel:p,continue:()=>(r==null||r(),d),cancelRetry:g,continueRetry:h,canStart:v,start:()=>(v()?S():N().then(S),d)}}var os,e3,k3=(e3=class{constructor(){ie(this,os)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fd(this.gcTime)&&J(this,os,cs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(Vc.isServer()?1/0:300*1e3))}clearGcTimeout(){T(this,os)!==void 0&&(cs.clearTimeout(T(this,os)),J(this,os,void 0))}},os=new WeakMap,e3);function Fb(a){return{onFetch:(i,c)=>{var v,y,b,N,S;const r=i.options,d=(b=(y=(v=i.fetchOptions)==null?void 0:v.meta)==null?void 0:y.fetchMore)==null?void 0:b.direction,f=((N=i.state.data)==null?void 0:N.pages)||[],p=((S=i.state.data)==null?void 0:S.pageParams)||[];let g={pages:[],pageParams:[]},h=0;const m=async()=>{let C=!1;const w=L=>{Bb(L,()=>i.signal,()=>C=!0)},O=L3(i.options,i.fetchOptions),H=async(L,U,I)=>{if(C)return Promise.reject(i.signal.reason);if(U==null&&L.pages.length)return Promise.resolve(L);const B=(()=>{const he={client:i.client,queryKey:i.queryKey,pageParam:U,direction:I?"backward":"forward",meta:i.options.meta};return w(he),he})(),Y=await O(B),{maxPages:le}=i.options,me=I?kb:Db;return{pages:me(L.pages,Y,le),pageParams:me(L.pageParams,U,le)}};if(d&&f.length){const L=d==="backward",U=L?B3:Id,I={pages:f,pageParams:p},W=U(r,I);g=await H(I,W,L)}else{const L=a??f.length;do{const U=h===0?p[0]??r.initialPageParam:Id(r,g);if(h>0&&U==null)break;g=await H(g,U),h++}while(h<L)}return g};i.options.persister?i.fetchFn=()=>{var C,w;return(w=(C=i.options).persister)==null?void 0:w.call(C,m,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},c)}:i.fetchFn=m}}}function Id(a,{pages:i,pageParams:c}){const r=i.length-1;return i.length>0?a.getNextPageParam(i[r],i,c[r],c):void 0}function B3(a,{pages:i,pageParams:c}){var r;return i.length>0?(r=a.getPreviousPageParam)==null?void 0:r.call(a,i[0],i,c[0],c):void 0}function Gb(a,i){return i?Id(a,i)!=null:!1}function Vb(a,i){return!i||!a.getPreviousPageParam?!1:B3(a,i)!=null}var vi,us,yi,Yn,ds,Lt,Pc,fs,Rn,U3,Ul,t3,Qb=(t3=class extends k3{constructor(i){super();ie(this,Rn);ie(this,vi);ie(this,us);ie(this,yi);ie(this,Yn);ie(this,ds);ie(this,Lt);ie(this,Pc);ie(this,fs);J(this,fs,!1),J(this,Pc,i.defaultOptions),this.setOptions(i.options),this.observers=[],J(this,ds,i.client),J(this,Yn,T(this,ds).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,J(this,us,ip(this.options)),this.state=i.state??T(this,us),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return T(this,vi)}get promise(){var i;return(i=T(this,Lt))==null?void 0:i.promise}setOptions(i){if(this.options={...T(this,Pc),...i},i!=null&&i._type&&J(this,vi,i._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const c=ip(this.options);c.data!==void 0&&(this.setState(sp(c.data,c.dataUpdatedAt)),J(this,us,c))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,Yn).remove(this)}setData(i,c){const r=Vd(this.state.data,i,this.options);return Se(this,Rn,Ul).call(this,{data:r,type:"success",dataUpdatedAt:c==null?void 0:c.updatedAt,manual:c==null?void 0:c.manual}),r}setState(i){Se(this,Rn,Ul).call(this,{type:"setState",state:i})}cancel(i){var r,d;const c=(r=T(this,Lt))==null?void 0:r.promise;return(d=T(this,Lt))==null||d.cancel(i),c?c.then(tn).catch(tn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return T(this,us)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(i=>An(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===N2||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>La(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!O3(this.state.dataUpdatedAt,i)}onFocus(){var c;const i=this.observers.find(r=>r.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(c=T(this,Lt))==null||c.continue()}onOnline(){var c;const i=this.observers.find(r=>r.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(c=T(this,Lt))==null||c.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),T(this,Yn).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(c=>c!==i),this.observers.length||(T(this,Lt)&&(T(this,fs)||Se(this,Rn,U3).call(this)?T(this,Lt).cancel({revert:!0}):T(this,Lt).cancelRetry()),this.scheduleGc()),T(this,Yn).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Se(this,Rn,Ul).call(this,{type:"invalidate"})}async fetch(i,c){var m,v,y,b,N,S,C,w,O,H,L;if(this.state.fetchStatus!=="idle"&&((m=T(this,Lt))==null?void 0:m.status())!=="rejected"){if(this.state.data!==void 0&&(c!=null&&c.cancelRefetch))this.cancel({silent:!0});else if(T(this,Lt))return T(this,Lt).continueRetry(),T(this,Lt).promise}if(i&&this.setOptions(i),!this.options.queryFn){const U=this.observers.find(I=>I.options.queryFn);U&&this.setOptions(U.options)}const r=new AbortController,d=U=>{Object.defineProperty(U,"signal",{enumerable:!0,get:()=>(J(this,fs,!0),r.signal)})},f=()=>{const U=L3(this.options,c),W=(()=>{const B={client:T(this,ds),queryKey:this.queryKey,meta:this.meta};return d(B),B})();return J(this,fs,!1),this.options.persister?this.options.persister(U,W,this):U(W)},g=(()=>{const U={fetchOptions:c,options:this.options,queryKey:this.queryKey,client:T(this,ds),state:this.state,fetchFn:f};return d(U),U})(),h=T(this,vi)==="infinite"?Fb(this.options.pages):this.options.behavior;h==null||h.onFetch(g,this),J(this,yi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=g.fetchOptions)==null?void 0:v.meta))&&Se(this,Rn,Ul).call(this,{type:"fetch",meta:(y=g.fetchOptions)==null?void 0:y.meta}),J(this,Lt,D3({initialPromise:c==null?void 0:c.initialPromise,fn:g.fetchFn,onCancel:U=>{U instanceof Yd&&U.revert&&this.setState({...T(this,yi),fetchStatus:"idle"}),r.abort()},onFail:(U,I)=>{Se(this,Rn,Ul).call(this,{type:"failed",failureCount:U,error:I})},onPause:()=>{Se(this,Rn,Ul).call(this,{type:"pause"})},onContinue:()=>{Se(this,Rn,Ul).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const U=await T(this,Lt).start();if(U===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(U),(N=(b=T(this,Yn).config).onSuccess)==null||N.call(b,U,this),(C=(S=T(this,Yn).config).onSettled)==null||C.call(S,U,this.state.error,this),U}catch(U){if(U instanceof Yd){if(U.silent)return T(this,Lt).promise;if(U.revert){if(this.state.data===void 0)throw U;return this.state.data}}throw Se(this,Rn,Ul).call(this,{type:"error",error:U}),(O=(w=T(this,Yn).config).onError)==null||O.call(w,U,this),(L=(H=T(this,Yn).config).onSettled)==null||L.call(H,this.state.data,U,this),U}finally{this.scheduleGc()}}},vi=new WeakMap,us=new WeakMap,yi=new WeakMap,Yn=new WeakMap,ds=new WeakMap,Lt=new WeakMap,Pc=new WeakMap,fs=new WeakMap,Rn=new WeakSet,U3=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ul=function(i){const c=r=>{switch(i.type){case"failed":return{...r,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...$3(r.data,this.options),fetchMeta:i.meta??null};case"success":const d={...r,...sp(i.data,i.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return J(this,yi,i.manual?d:void 0),d;case"error":const f=i.error;return{...r,error:f,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...i.state}}};this.state=c(this.state),Tt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,Yn).notify({query:this,type:"updated",action:i})})},t3);function $3(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:z3(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function sp(a,i){return{data:a,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ip(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,c=i!==void 0,r=c?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:c?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var mn,Be,Xc,en,hs,xi,$l,Ea,Zc,bi,ji,ms,ps,Ta,Si,Fe,Uc,Pd,Xd,Zd,Kd,Wd,Jd,e2,q3,n3,H3=(n3=class extends Mi{constructor(i,c){super();ie(this,Fe);ie(this,mn);ie(this,Be);ie(this,Xc);ie(this,en);ie(this,hs);ie(this,xi);ie(this,$l);ie(this,Ea);ie(this,Zc);ie(this,bi);ie(this,ji);ie(this,ms);ie(this,ps);ie(this,Ta);ie(this,Si,new Set);this.options=c,J(this,mn,i),J(this,Ea,null),J(this,$l,Qd()),this.bindMethods(),this.setOptions(c)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,Be).addObserver(this),cp(T(this,Be),this.options)?Se(this,Fe,Uc).call(this):this.updateResult(),Se(this,Fe,Kd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return t2(T(this,Be),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return t2(T(this,Be),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Se(this,Fe,Wd).call(this),Se(this,Fe,Jd).call(this),T(this,Be).removeObserver(this)}setOptions(i){const c=this.options,r=T(this,Be);if(this.options=T(this,mn).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof An(this.options.enabled,T(this,Be))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Se(this,Fe,e2).call(this),T(this,Be).setOptions(this.options),c._defaulted&&!Uo(this.options,c)&&T(this,mn).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,Be),observer:this});const d=this.hasListeners();d&&rp(T(this,Be),r,this.options,c)&&Se(this,Fe,Uc).call(this),this.updateResult(),d&&(T(this,Be)!==r||An(this.options.enabled,T(this,Be))!==An(c.enabled,T(this,Be))||La(this.options.staleTime,T(this,Be))!==La(c.staleTime,T(this,Be)))&&Se(this,Fe,Pd).call(this);const f=Se(this,Fe,Xd).call(this);d&&(T(this,Be)!==r||An(this.options.enabled,T(this,Be))!==An(c.enabled,T(this,Be))||f!==T(this,Ta))&&Se(this,Fe,Zd).call(this,f)}getOptimisticResult(i){const c=T(this,mn).getQueryCache().build(T(this,mn),i),r=this.createResult(c,i);return Ib(this,r)&&(J(this,en,r),J(this,xi,this.options),J(this,hs,T(this,Be).state)),r}getCurrentResult(){return T(this,en)}trackResult(i,c){return new Proxy(i,{get:(r,d)=>(this.trackProp(d),c==null||c(d),d==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&T(this,$l).status==="pending"&&T(this,$l).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,d))})}trackProp(i){T(this,Si).add(i)}getCurrentQuery(){return T(this,Be)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const c=T(this,mn).defaultQueryOptions(i),r=T(this,mn).getQueryCache().build(T(this,mn),c);return r.fetch().then(()=>this.createResult(r,c))}fetch(i){return Se(this,Fe,Uc).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,en)))}createResult(i,c){var le;const r=T(this,Be),d=this.options,f=T(this,en),p=T(this,hs),g=T(this,xi),m=i!==r?i.state:T(this,Xc),{state:v}=i;let y={...v},b=!1,N;if(c._optimisticResults){const me=this.hasListeners(),he=!me&&cp(i,c),Ee=me&&rp(i,r,c,d);(he||Ee)&&(y={...y,...$3(v.data,i.options)}),c._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:S,errorUpdatedAt:C,status:w}=y;N=y.data;let O=!1;if(c.placeholderData!==void 0&&N===void 0&&w==="pending"){let me;f!=null&&f.isPlaceholderData&&c.placeholderData===(g==null?void 0:g.placeholderData)?(me=f.data,O=!0):me=typeof c.placeholderData=="function"?c.placeholderData((le=T(this,ji))==null?void 0:le.state.data,T(this,ji)):c.placeholderData,me!==void 0&&(w="success",N=Vd(f==null?void 0:f.data,me,c),b=!0)}if(c.select&&N!==void 0&&!O)if(f&&N===(p==null?void 0:p.data)&&c.select===T(this,Zc))N=T(this,bi);else try{J(this,Zc,c.select),N=c.select(N),N=Vd(f==null?void 0:f.data,N,c),J(this,bi,N),J(this,Ea,null)}catch(me){J(this,Ea,me)}T(this,Ea)&&(S=T(this,Ea),N=T(this,bi),C=Date.now(),w="error");const H=y.fetchStatus==="fetching",L=w==="pending",U=w==="error",I=L&&H,W=N!==void 0,Y={status:w,fetchStatus:y.fetchStatus,isPending:L,isSuccess:w==="success",isError:U,isInitialLoading:I,isLoading:I,data:N,dataUpdatedAt:y.dataUpdatedAt,error:S,errorUpdatedAt:C,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:i.isFetched(),isFetchedAfterMount:y.dataUpdateCount>m.dataUpdateCount||y.errorUpdateCount>m.errorUpdateCount,isFetching:H,isRefetching:H&&!L,isLoadingError:U&&!W,isPaused:y.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:U&&W,isStale:C2(i,c),refetch:this.refetch,promise:T(this,$l),isEnabled:An(c.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const me=Y.data!==void 0,he=Y.status==="error"&&!me,Ee=de=>{he?de.reject(Y.error):me&&de.resolve(Y.data)},re=()=>{const de=J(this,$l,Y.promise=Qd());Ee(de)},ge=T(this,$l);switch(ge.status){case"pending":i.queryHash===r.queryHash&&Ee(ge);break;case"fulfilled":(he||Y.data!==ge.value)&&re();break;case"rejected":(!he||Y.error!==ge.reason)&&re();break}}return Y}updateResult(){const i=T(this,en),c=this.createResult(T(this,Be),this.options);if(J(this,hs,T(this,Be).state),J(this,xi,this.options),T(this,hs).data!==void 0&&J(this,ji,T(this,Be)),Uo(c,i))return;J(this,en,c);const r=()=>{if(!i)return!0;const{notifyOnChangeProps:d}=this.options,f=typeof d=="function"?d():d;if(f==="all"||!f&&!T(this,Si).size)return!0;const p=new Set(f??T(this,Si));return this.options.throwOnError&&p.add("error"),Object.keys(T(this,en)).some(g=>{const h=g;return T(this,en)[h]!==i[h]&&p.has(h)})};Se(this,Fe,q3).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Se(this,Fe,Kd).call(this)}},mn=new WeakMap,Be=new WeakMap,Xc=new WeakMap,en=new WeakMap,hs=new WeakMap,xi=new WeakMap,$l=new WeakMap,Ea=new WeakMap,Zc=new WeakMap,bi=new WeakMap,ji=new WeakMap,ms=new WeakMap,ps=new WeakMap,Ta=new WeakMap,Si=new WeakMap,Fe=new WeakSet,Uc=function(i){Se(this,Fe,e2).call(this);let c=T(this,Be).fetch(this.options,i);return i!=null&&i.throwOnError||(c=c.catch(tn)),c},Pd=function(){Se(this,Fe,Wd).call(this);const i=La(this.options.staleTime,T(this,Be));if(Vc.isServer()||T(this,en).isStale||!Fd(i))return;const r=O3(T(this,en).dataUpdatedAt,i)+1;J(this,ms,cs.setTimeout(()=>{T(this,en).isStale||this.updateResult()},r))},Xd=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,Be)):this.options.refetchInterval)??!1},Zd=function(i){Se(this,Fe,Jd).call(this),J(this,Ta,i),!(Vc.isServer()||An(this.options.enabled,T(this,Be))===!1||!Fd(T(this,Ta))||T(this,Ta)===0)&&J(this,ps,cs.setInterval(()=>{(this.options.refetchIntervalInBackground||j2.isFocused())&&Se(this,Fe,Uc).call(this)},T(this,Ta)))},Kd=function(){Se(this,Fe,Pd).call(this),Se(this,Fe,Zd).call(this,Se(this,Fe,Xd).call(this))},Wd=function(){T(this,ms)!==void 0&&(cs.clearTimeout(T(this,ms)),J(this,ms,void 0))},Jd=function(){T(this,ps)!==void 0&&(cs.clearInterval(T(this,ps)),J(this,ps,void 0))},e2=function(){const i=T(this,mn).getQueryCache().build(T(this,mn),this.options);if(i===T(this,Be))return;const c=T(this,Be);J(this,Be,i),J(this,Xc,i.state),this.hasListeners()&&(c==null||c.removeObserver(this),i.addObserver(this))},q3=function(i){Tt.batch(()=>{i.listeners&&this.listeners.forEach(c=>{c(T(this,en))}),T(this,mn).getQueryCache().notify({query:T(this,Be),type:"observerResultsUpdated"})})},n3);function Yb(a,i){return An(i.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&An(i.retryOnMount,a)===!1)}function cp(a,i){return Yb(a,i)||a.state.data!==void 0&&t2(a,i,i.refetchOnMount)}function t2(a,i,c){if(An(i.enabled,a)!==!1&&La(i.staleTime,a)!=="static"){const r=typeof c=="function"?c(a):c;return r==="always"||r!==!1&&C2(a,i)}return!1}function rp(a,i,c,r){return(a!==i||An(r.enabled,a)===!1)&&(!c.suspense||a.state.status!=="error")&&C2(a,c)}function C2(a,i){return An(i.enabled,a)!==!1&&a.isStaleByTime(La(i.staleTime,a))}function Ib(a,i){return!Uo(a.getCurrentResult(),i)}var Pb=class extends H3{constructor(a,i){super(a,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(a){a._type="infinite",super.setOptions(a)}getOptimisticResult(a){return a._type="infinite",super.getOptimisticResult(a)}fetchNextPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"backward"}}})}createResult(a,i){var S,C;const{state:c}=a,r=super.createResult(a,i),{isFetching:d,isRefetching:f,isError:p,isRefetchError:g}=r,h=(C=(S=c.fetchMeta)==null?void 0:S.fetchMore)==null?void 0:C.direction,m=p&&h==="forward",v=d&&h==="forward",y=p&&h==="backward",b=d&&h==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Gb(i,c.data),hasPreviousPage:Vb(i,c.data),isFetchNextPageError:m,isFetchingNextPage:v,isFetchPreviousPageError:y,isFetchingPreviousPage:b,isRefetchError:g&&!m&&!y,isRefetching:f&&!v&&!b}}},Kc,fl,Qt,_s,hl,Sa,l3,Xb=(l3=class extends k3{constructor(i){super();ie(this,hl);ie(this,Kc);ie(this,fl);ie(this,Qt);ie(this,_s);J(this,Kc,i.client),this.mutationId=i.mutationId,J(this,Qt,i.mutationCache),J(this,fl,[]),this.state=i.state||F3(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){T(this,fl).includes(i)||(T(this,fl).push(i),this.clearGcTimeout(),T(this,Qt).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){J(this,fl,T(this,fl).filter(c=>c!==i)),this.scheduleGc(),T(this,Qt).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){T(this,fl).length||(this.state.status==="pending"?this.scheduleGc():T(this,Qt).remove(this))}continue(){var i;return((i=T(this,_s))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var p,g,h,m,v,y,b,N,S,C,w,O,H,L,U,I,W,B;const c=()=>{Se(this,hl,Sa).call(this,{type:"continue"})},r={client:T(this,Kc),meta:this.options.meta,mutationKey:this.options.mutationKey};J(this,_s,D3({fn:()=>this.options.mutationFn?this.options.mutationFn(i,r):Promise.reject(new Error("No mutationFn found")),onFail:(Y,le)=>{Se(this,hl,Sa).call(this,{type:"failed",failureCount:Y,error:le})},onPause:()=>{Se(this,hl,Sa).call(this,{type:"pause"})},onContinue:c,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,Qt).canRun(this)}));const d=this.state.status==="pending",f=!T(this,_s).canStart();try{if(d)c();else{Se(this,hl,Sa).call(this,{type:"pending",variables:i,isPaused:f}),T(this,Qt).config.onMutate&&await T(this,Qt).config.onMutate(i,this,r);const le=await((g=(p=this.options).onMutate)==null?void 0:g.call(p,i,r));le!==this.state.context&&Se(this,hl,Sa).call(this,{type:"pending",context:le,variables:i,isPaused:f})}const Y=await T(this,_s).start();return await((m=(h=T(this,Qt).config).onSuccess)==null?void 0:m.call(h,Y,i,this.state.context,this,r)),await((y=(v=this.options).onSuccess)==null?void 0:y.call(v,Y,i,this.state.context,r)),await((N=(b=T(this,Qt).config).onSettled)==null?void 0:N.call(b,Y,null,this.state.variables,this.state.context,this,r)),await((C=(S=this.options).onSettled)==null?void 0:C.call(S,Y,null,i,this.state.context,r)),Se(this,hl,Sa).call(this,{type:"success",data:Y}),Y}catch(Y){try{await((O=(w=T(this,Qt).config).onError)==null?void 0:O.call(w,Y,i,this.state.context,this,r))}catch(le){Promise.reject(le)}try{await((L=(H=this.options).onError)==null?void 0:L.call(H,Y,i,this.state.context,r))}catch(le){Promise.reject(le)}try{await((I=(U=T(this,Qt).config).onSettled)==null?void 0:I.call(U,void 0,Y,this.state.variables,this.state.context,this,r))}catch(le){Promise.reject(le)}try{await((B=(W=this.options).onSettled)==null?void 0:B.call(W,void 0,Y,i,this.state.context,r))}catch(le){Promise.reject(le)}throw Se(this,hl,Sa).call(this,{type:"error",error:Y}),Y}finally{T(this,Qt).runNext(this)}}},Kc=new WeakMap,fl=new WeakMap,Qt=new WeakMap,_s=new WeakMap,hl=new WeakSet,Sa=function(i){const c=r=>{switch(i.type){case"failed":return{...r,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...r,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:i.error,failureCount:r.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=c(this.state),Tt.batch(()=>{T(this,fl).forEach(r=>{r.onMutationUpdate(i)}),T(this,Qt).notify({mutation:this,type:"updated",action:i})})},l3);function F3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Hl,Wn,Wc,a3,Zb=(a3=class extends Mi{constructor(i={}){super();ie(this,Hl);ie(this,Wn);ie(this,Wc);this.config=i,J(this,Hl,new Set),J(this,Wn,new Map),J(this,Wc,0)}build(i,c,r){const d=new Xb({client:i,mutationCache:this,mutationId:++jo(this,Wc)._,options:i.defaultMutationOptions(c),state:r});return this.add(d),d}add(i){T(this,Hl).add(i);const c=wo(i);if(typeof c=="string"){const r=T(this,Wn).get(c);r?r.push(i):T(this,Wn).set(c,[i])}this.notify({type:"added",mutation:i})}remove(i){if(T(this,Hl).delete(i)){const c=wo(i);if(typeof c=="string"){const r=T(this,Wn).get(c);if(r)if(r.length>1){const d=r.indexOf(i);d!==-1&&r.splice(d,1)}else r[0]===i&&T(this,Wn).delete(c)}}this.notify({type:"removed",mutation:i})}canRun(i){const c=wo(i);if(typeof c=="string"){const r=T(this,Wn).get(c),d=r==null?void 0:r.find(f=>f.state.status==="pending");return!d||d===i}else return!0}runNext(i){var r;const c=wo(i);if(typeof c=="string"){const d=(r=T(this,Wn).get(c))==null?void 0:r.find(f=>f!==i&&f.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Tt.batch(()=>{T(this,Hl).forEach(i=>{this.notify({type:"removed",mutation:i})}),T(this,Hl).clear(),T(this,Wn).clear()})}getAll(){return Array.from(T(this,Hl))}find(i){const c={exact:!0,...i};return this.getAll().find(r=>np(c,r))}findAll(i={}){return this.getAll().filter(c=>np(i,c))}notify(i){Tt.batch(()=>{this.listeners.forEach(c=>{c(i)})})}resumePausedMutations(){const i=this.getAll().filter(c=>c.state.isPaused);return Tt.batch(()=>Promise.all(i.map(c=>c.continue().catch(tn))))}},Hl=new WeakMap,Wn=new WeakMap,Wc=new WeakMap,a3);function wo(a){var i;return(i=a.options.scope)==null?void 0:i.id}var ql,Ra,pn,Fl,Gl,Lo,n2,s3,Kb=(s3=class extends Mi{constructor(c,r){super();ie(this,Gl);ie(this,ql);ie(this,Ra);ie(this,pn);ie(this,Fl);J(this,ql,c),this.setOptions(r),this.bindMethods(),Se(this,Gl,Lo).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(c){var d;const r=this.options;this.options=T(this,ql).defaultMutationOptions(c),Uo(this.options,r)||T(this,ql).getMutationCache().notify({type:"observerOptionsUpdated",mutation:T(this,pn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&vs(r.mutationKey)!==vs(this.options.mutationKey)?this.reset():((d=T(this,pn))==null?void 0:d.state.status)==="pending"&&T(this,pn).setOptions(this.options)}onUnsubscribe(){var c;this.hasListeners()||(c=T(this,pn))==null||c.removeObserver(this)}onMutationUpdate(c){Se(this,Gl,Lo).call(this),Se(this,Gl,n2).call(this,c)}getCurrentResult(){return T(this,Ra)}reset(){var c;(c=T(this,pn))==null||c.removeObserver(this),J(this,pn,void 0),Se(this,Gl,Lo).call(this),Se(this,Gl,n2).call(this)}mutate(c,r){var d;return J(this,Fl,r),(d=T(this,pn))==null||d.removeObserver(this),J(this,pn,T(this,ql).getMutationCache().build(T(this,ql),this.options)),T(this,pn).addObserver(this),T(this,pn).execute(c)}},ql=new WeakMap,Ra=new WeakMap,pn=new WeakMap,Fl=new WeakMap,Gl=new WeakSet,Lo=function(){var r;const c=((r=T(this,pn))==null?void 0:r.state)??F3();J(this,Ra,{...c,isPending:c.status==="pending",isSuccess:c.status==="success",isError:c.status==="error",isIdle:c.status==="idle",mutate:this.mutate,reset:this.reset})},n2=function(c){Tt.batch(()=>{var r,d,f,p,g,h,m,v;if(T(this,Fl)&&this.hasListeners()){const y=T(this,Ra).variables,b=T(this,Ra).context,N={client:T(this,ql),meta:this.options.meta,mutationKey:this.options.mutationKey};if((c==null?void 0:c.type)==="success"){try{(d=(r=T(this,Fl)).onSuccess)==null||d.call(r,c.data,y,b,N)}catch(S){Promise.reject(S)}try{(p=(f=T(this,Fl)).onSettled)==null||p.call(f,c.data,null,y,b,N)}catch(S){Promise.reject(S)}}else if((c==null?void 0:c.type)==="error"){try{(h=(g=T(this,Fl)).onError)==null||h.call(g,c.error,y,b,N)}catch(S){Promise.reject(S)}try{(v=(m=T(this,Fl)).onSettled)==null||v.call(m,void 0,c.error,y,b,N)}catch(S){Promise.reject(S)}}}this.listeners.forEach(y=>{y(T(this,Ra))})})},s3),ml,i3,Wb=(i3=class extends Mi{constructor(i={}){super();ie(this,ml);this.config=i,J(this,ml,new Map)}build(i,c,r){const d=c.queryKey,f=c.queryHash??S2(d,c);let p=this.get(f);return p||(p=new Qb({client:i,queryKey:d,queryHash:f,options:i.defaultQueryOptions(c),state:r,defaultOptions:i.getQueryDefaults(d)}),this.add(p)),p}add(i){T(this,ml).has(i.queryHash)||(T(this,ml).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const c=T(this,ml).get(i.queryHash);c&&(i.destroy(),c===i&&T(this,ml).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){Tt.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return T(this,ml).get(i)}getAll(){return[...T(this,ml).values()]}find(i){const c={exact:!0,...i};return this.getAll().find(r=>tp(c,r))}findAll(i={}){const c=this.getAll();return Object.keys(i).length>0?c.filter(r=>tp(i,r)):c}notify(i){Tt.batch(()=>{this.listeners.forEach(c=>{c(i)})})}onFocus(){Tt.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){Tt.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},ml=new WeakMap,i3),ht,Aa,Oa,Ni,wi,Ma,Ci,Ei,c3,Jb=(c3=class{constructor(a={}){ie(this,ht);ie(this,Aa);ie(this,Oa);ie(this,Ni);ie(this,wi);ie(this,Ma);ie(this,Ci);ie(this,Ei);J(this,ht,a.queryCache||new Wb),J(this,Aa,a.mutationCache||new Zb),J(this,Oa,a.defaultOptions||{}),J(this,Ni,new Map),J(this,wi,new Map),J(this,Ma,0)}mount(){jo(this,Ma)._++,T(this,Ma)===1&&(J(this,Ci,j2.subscribe(async a=>{a&&(await this.resumePausedMutations(),T(this,ht).onFocus())})),J(this,Ei,$o.subscribe(async a=>{a&&(await this.resumePausedMutations(),T(this,ht).onOnline())})))}unmount(){var a,i;jo(this,Ma)._--,T(this,Ma)===0&&((a=T(this,Ci))==null||a.call(this),J(this,Ci,void 0),(i=T(this,Ei))==null||i.call(this),J(this,Ei,void 0))}isFetching(a){return T(this,ht).findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return T(this,Aa).findAll({...a,status:"pending"}).length}getQueryData(a){var c;const i=this.defaultQueryOptions({queryKey:a});return(c=T(this,ht).get(i.queryHash))==null?void 0:c.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),c=T(this,ht).build(this,i),r=c.state.data;return r===void 0?this.fetchQuery(a):(a.revalidateIfStale&&c.isStaleByTime(La(i.staleTime,c))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(a){return T(this,ht).findAll(a).map(({queryKey:i,state:c})=>{const r=c.data;return[i,r]})}setQueryData(a,i,c){const r=this.defaultQueryOptions({queryKey:a}),d=T(this,ht).get(r.queryHash),f=d==null?void 0:d.state.data,p=Mb(i,f);if(p!==void 0)return T(this,ht).build(this,r).setData(p,{...c,manual:!0})}setQueriesData(a,i,c){return Tt.batch(()=>T(this,ht).findAll(a).map(({queryKey:r})=>[r,this.setQueryData(r,i,c)]))}getQueryState(a){var c;const i=this.defaultQueryOptions({queryKey:a});return(c=T(this,ht).get(i.queryHash))==null?void 0:c.state}removeQueries(a){const i=T(this,ht);Tt.batch(()=>{i.findAll(a).forEach(c=>{i.remove(c)})})}resetQueries(a,i){const c=T(this,ht);return Tt.batch(()=>(c.findAll(a).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const c={revert:!0,...i},r=Tt.batch(()=>T(this,ht).findAll(a).map(d=>d.cancel(c)));return Promise.all(r).then(tn).catch(tn)}invalidateQueries(a,i={}){return Tt.batch(()=>(T(this,ht).findAll(a).forEach(c=>{c.invalidate()}),(a==null?void 0:a.refetchType)==="none"?Promise.resolve():this.refetchQueries({...a,type:(a==null?void 0:a.refetchType)??(a==null?void 0:a.type)??"active"},i)))}refetchQueries(a,i={}){const c={...i,cancelRefetch:i.cancelRefetch??!0},r=Tt.batch(()=>T(this,ht).findAll(a).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let f=d.fetch(void 0,c);return c.throwOnError||(f=f.catch(tn)),d.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(tn)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const c=T(this,ht).build(this,i);return c.isStaleByTime(La(i.staleTime,c))?c.fetch(i):Promise.resolve(c.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(tn).catch(tn)}fetchInfiniteQuery(a){return a._type="infinite",this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(tn).catch(tn)}ensureInfiniteQueryData(a){return a._type="infinite",this.ensureQueryData(a)}resumePausedMutations(){return $o.isOnline()?T(this,Aa).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,ht)}getMutationCache(){return T(this,Aa)}getDefaultOptions(){return T(this,Oa)}setDefaultOptions(a){J(this,Oa,a)}setQueryDefaults(a,i){T(this,Ni).set(vs(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...T(this,Ni).values()],c={};return i.forEach(r=>{Gc(a,r.queryKey)&&Object.assign(c,r.defaultOptions)}),c}setMutationDefaults(a,i){T(this,wi).set(vs(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...T(this,wi).values()],c={};return i.forEach(r=>{Gc(a,r.mutationKey)&&Object.assign(c,r.defaultOptions)}),c}defaultQueryOptions(a){if(a._defaulted)return a;const i={...T(this,Oa).queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=S2(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===N2&&(i.enabled=!1),i}defaultMutationOptions(a){return a!=null&&a._defaulted?a:{...T(this,Oa).mutations,...(a==null?void 0:a.mutationKey)&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){T(this,ht).clear(),T(this,Aa).clear()}},ht=new WeakMap,Aa=new WeakMap,Oa=new WeakMap,Ni=new WeakMap,wi=new WeakMap,Ma=new WeakMap,Ci=new WeakMap,Ei=new WeakMap,c3),G3=j.createContext(void 0),_n=a=>{const i=j.useContext(G3);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},e6=({client:a,children:i})=>(j.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),l.jsx(G3.Provider,{value:a,children:i})),V3=j.createContext(!1),t6=()=>j.useContext(V3);V3.Provider;function n6(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var l6=j.createContext(n6()),a6=()=>j.useContext(l6),s6=(a,i,c)=>{const r=c!=null&&c.state.error&&typeof a.throwOnError=="function"?w2(a.throwOnError,[c.state.error,c]):a.throwOnError;(a.suspense||a.experimental_prefetchInRender||r)&&(i.isReset()||(a.retryOnMount=!1))},i6=a=>{j.useEffect(()=>{a.clearReset()},[a])},c6=({result:a,errorResetBoundary:i,throwOnError:c,query:r,suspense:d})=>a.isError&&!i.isReset()&&!a.isFetching&&r&&(d&&a.data===void 0||w2(c,[a.error,r])),r6=a=>{if(a.suspense){const c=d=>d==="static"?d:Math.max(d??1e3,1e3),r=a.staleTime;a.staleTime=typeof r=="function"?(...d)=>c(r(...d)):c(r),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},o6=(a,i)=>a.isLoading&&a.isFetching&&!i,u6=(a,i)=>(a==null?void 0:a.suspense)&&i.isPending,op=(a,i,c)=>i.fetchOptimistic(a).catch(()=>{c.clearReset()});function Q3(a,i,c){var b,N,S,C;const r=t6(),d=a6(),f=_n(),p=f.defaultQueryOptions(a);(N=(b=f.getDefaultOptions().queries)==null?void 0:b._experimental_beforeQuery)==null||N.call(b,p);const g=f.getQueryCache().get(p.queryHash);p._optimisticResults=r?"isRestoring":"optimistic",r6(p),s6(p,d,g),i6(d);const h=!f.getQueryCache().get(p.queryHash),[m]=j.useState(()=>new i(f,p)),v=m.getOptimisticResult(p),y=!r&&a.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(w=>{const O=y?m.subscribe(Tt.batchCalls(w)):tn;return m.updateResult(),O},[m,y]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),j.useEffect(()=>{m.setOptions(p)},[p,m]),u6(p,v))throw op(p,m,d);if(c6({result:v,errorResetBoundary:d,throwOnError:p.throwOnError,query:g,suspense:p.suspense}))throw v.error;if((C=(S=f.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||C.call(S,p,v),p.experimental_prefetchInRender&&!Vc.isServer()&&o6(v,r)){const w=h?op(p,m,d):g==null?void 0:g.promise;w==null||w.catch(tn).finally(()=>{m.updateResult()})}return p.notifyOnChangeProps?v:m.trackResult(v)}function kt(a,i){return Q3(a,H3)}function vt(a,i){const c=_n(),[r]=j.useState(()=>new Kb(c,a));j.useEffect(()=>{r.setOptions(a)},[r,a]);const d=j.useSyncExternalStore(j.useCallback(p=>r.subscribe(Tt.batchCalls(p)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),f=j.useCallback((p,g)=>{r.mutate(p,g).catch(tn)},[r]);if(d.error&&w2(r.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:f,mutateAsync:d.mutate}}function d6(a,i){return Q3(a,Pb)}const Y3="https://app.auth.elcsa.ru/v1";let $c=null,is=null;function E2(){$c=null,is=null}function zn(){return $c?Promise.resolve($c):is||(is=fetch(`${Y3}/csrf/token`,{credentials:"include"}).then(a=>a.json()).then(a=>($c=a.token,is=null,$c)).catch(a=>{throw is=null,a}),is)}const f6=Object.freeze(Object.defineProperty({__proto__:null,clearCsrfCache:E2,getCsrfToken:zn},Symbol.toStringTag,{value:"Module"})),h6="modulepreload",m6=function(a){return"/"+a},up={},p6=function(i,c,r){let d=Promise.resolve();if(c&&c.length>0){let p=function(m){return Promise.all(m.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),h=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));d=p(c.map(m=>{if(m=m6(m),m in up)return;up[m]=!0;const v=m.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${y}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":h6,v||(b.as="script"),b.crossOrigin="",b.href=m,h&&b.setAttribute("nonce",h),document.head.appendChild(b),v)return new Promise((N,S)=>{b.addEventListener("load",N),b.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${m}`)))})}))}function f(p){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=p,window.dispatchEvent(g),!g.defaultPrevented)throw p}return d.then(p=>{for(const g of p||[])g.status==="rejected"&&f(g.reason);return i().catch(f)})};let Sd=null;const It={get:()=>Sd,set:a=>{Sd=a},clear:()=>{Sd=null}},_6="https://app.auth.elcsa.ru/v1/jwt/refresh";async function Yl(){const{getCsrfToken:a}=await p6(async()=>{const{getCsrfToken:d}=await Promise.resolve().then(()=>f6);return{getCsrfToken:d}},[]),i=await a(),c=await fetch(_6,{method:"POST",credentials:"include",headers:{"X-CSRF-Token":i}});if(!c.ok)throw new Error("Unauthorized");const r=await c.json();return r.access_token&&It.set(r.access_token),r.access_token??r.result??!0}const g6="https://app.payment.elcsa.ru";async function Li(a,i,c){const r=await zn(),d=await fetch(`${g6}${a}`,{...i,credentials:"include",headers:{"X-CSRF-Token":r,...i.headers}});if(d.status===401&&c)try{return await Yl(),Li(a,i,!1)}catch{throw new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}function v6(){return Li("/payment/config",{},!0)}function y6(a){return Li(`/payment/quote?usdt_amount=${a}`,{},!0)}function x6(a){return Li(`/payment/quote/rub?total_rub=${a}`,{},!0)}function b6(a){return Li("/order/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)},!0)}const l2=20;function j6(a,i=l2){return Li(`/payment/orders?offset=${a}&limit=${i}`,{},!0)}function S6(){return kt({queryKey:["payment","config"],queryFn:v6,staleTime:6e4})}function N6(a){return kt({queryKey:["payment","quote",a],queryFn:()=>y6(a),enabled:a>0,staleTime:3e4,retry:!1})}function w6(a){return kt({queryKey:["payment","quote","rub",a],queryFn:()=>x6(a),enabled:a>0,staleTime:3e4,retry:!1})}function C6(){return vt({mutationFn:b6,onSuccess:a=>{const i=a.order.itpay_payment_qr_url_desktop;i&&(window.location.href=i)}})}function E6(){return d6({queryKey:["payment","orders"],queryFn:({pageParam:a})=>j6(a),initialPageParam:0,getNextPageParam:(a,i)=>{if(!(a.orders.length<l2))return i.length*l2},staleTime:3e4})}function Qc(a,i){const[c,r]=j.useState(a);return j.useEffect(()=>{const d=setTimeout(()=>r(a),i);return()=>clearTimeout(d)},[a,i]),c}const T6=new Date("2026-05-21T00:00:00").getTime(),I3=80,R6=21,Nd=1e4,dp="Сумма слишком большая и превышает 600 000 ₽",fp=a=>a.replace(/[^0-9.]/g,"");function P3({rateFallback:a=0}={}){const[i,c]=j.useState("usdt_to_rub"),[r,d]=j.useState("1000"),[f,p]=j.useState(String(Nd)),{data:g}=S6(),h=Number(g==null?void 0:g.usdt_exchange_rate)||a,m=Number(g==null?void 0:g.gas_fee)||R6,v=i==="usdt_to_rub",y=Number.parseFloat(r)||0,b=Qc(y,400),{data:N,isError:S}=N6(v?b:0),C=Number.parseFloat(f)||0,w=Qc(C,400),{data:O,isError:H}=w6(v?0:w),L=!v&&C>0&&C<Nd,U=(N==null?void 0:N.total_price)??"",I=Number(U)||0,W=(O==null?void 0:O.usdt_amount)??"",B=Number(W)||0,Y=v?Number(N==null?void 0:N.service_fee)||0:Number(O==null?void 0:O.service_fee)||0,le=v?I:C,me=v?y>0?I/y:0:B>0?C/B:0;function he(){c(ge=>ge==="usdt_to_rub"?"rub_to_usdt":"usdt_to_rub")}const Ee=v?{value:r,currency:"USDT",onChange:ge=>d(fp(ge)),error:S?dp:void 0}:{value:f,currency:"RUB",onChange:ge=>p(fp(ge)),error:L?`Минимальная сумма: ${Nd.toLocaleString("ru-RU")}`:H?dp:void 0};return{isUsdtToRub:v,gasPriceRub:m,configUsdtRate:h,convert:Ee,pay:v?{value:U,currency:"RUB"}:{value:W,currency:"USDT"},onSwap:he,commission:{amount:le,progress:_b(le),commission:Y,effectiveRate:me},numUsdt:y,usdtFromRubNum:B,rubTotal:U,rubTotalNum:I,numRubInput:C,usdtFromRub:W,rubBelowMin:L}}const oe={HOME:"/",WALLET:"/wallet",WALLET_CHAIN:"/wallet/:chain",SWAP:"/swap",BRIDGE:"/bridge",LOGIN:"/login",REGISTER:"/register",REGISTER_TEST:"/register-test",CONVERTER_TEST:"/converter-test",PROFILE:"/profile",SEED_PHRASE:"/seed-phrase",CONVERTER:"/converter",KYC:"/kyc",STAKING:"/staking",RESTORE_PASSWORD:"/restore-password",PUBLICHNAYA_OFERTA:"/publichnaya-oferta",POLITIKA_PERSONALNYH_DANNYH:"/politika-personalnyh-dannyh",POLITIKA_COOKIE:"/politika-cookie",SOGLASIE_PERSONALNYH_DANNYH:"/soglasie-personalnyh-dannyh",REESTR_PD_RKN:"/reestr-pd-rkn",TRANSACTIONS:"/transactions"},A6="_section_tz8mb_1",O6="_wrap_tz8mb_6",M6="_header_tz8mb_17",L6="_subtitle_tz8mb_26",z6="_pills_tz8mb_33",D6="_pill_tz8mb_33",k6="_pillValue_tz8mb_47",B6="_body_tz8mb_57",U6="_tabs_tz8mb_63",$6="_tab_tz8mb_63",H6="_payBtn_tz8mb_95",Tn={section:A6,wrap:O6,header:M6,subtitle:L6,pills:z6,pill:D6,pillValue:k6,body:B6,tabs:U6,tab:$6,payBtn:H6};function q6(){const{gasPriceRub:a,configUsdtRate:i,convert:c,pay:r,onSwap:d,commission:f}=P3({rateFallback:I3});return l.jsx("section",{className:Tn.section,id:"converter",children:l.jsxs("div",{className:Tn.wrap,children:[l.jsxs("div",{className:Tn.header,children:[l.jsxs("div",{children:[l.jsx(R3,{children:"Конвертация"}),l.jsx("div",{className:Tn.subtitle,children:"Данные обновляются в реальном времени"})]}),l.jsxs("div",{className:Tn.pills,children:[l.jsxs("div",{className:Tn.pill,children:["Цена газа в RUB ",l.jsxs("span",{className:Tn.pillValue,children:[a.toFixed(2)," RUB"]})]}),l.jsxs("div",{className:Tn.pill,children:["USDT/RUB ",l.jsxs("span",{className:Tn.pillValue,children:[i.toFixed(2)," ₽"]})]})]})]}),l.jsxs("div",{className:Tn.body,children:[l.jsxs("div",{children:[l.jsx("div",{className:Tn.tabs,children:l.jsx("div",{className:Tn.tab,"data-active":!0,children:"КУПИТЬ"})}),l.jsx(ko,{compact:!0,...c}),l.jsx(E3,{compact:!0,onClick:d}),l.jsx(ko,{compact:!0,...r})]}),l.jsx(A3,{...f})]}),l.jsx(Yt,{to:oe.CONVERTER,className:Tn.payBtn,children:"Перейти к оплате"})]})})}const F6="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.827%201.094a3.733%203.733%200%2000-3.733%203.733v6.533a3.733%203.733%200%20003.733%203.734h6.533a3.733%203.733%200%20003.734-3.734V4.827a3.733%203.733%200%2000-3.734-3.733H4.827zm5.454%207a2.187%202.187%200%2011-4.375%200%202.187%202.187%200%20014.375%200zm1.313%200a3.5%203.5%200%2011-7%200%203.5%203.5%200%20017%200zm.469-2.938a1.25%201.25%200%20100-2.5%201.25%201.25%200%20000%202.5z'%20fill='%23000'%3e%3c/path%3e%3c/svg%3e",G6="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.108%207.617C5.4%205.768%208.262%204.55%209.694%203.961c4.088-1.682%204.938-1.974%205.492-1.984.68-.011.86.551.804%201.137-.221%202.302-1.18%207.887-1.668%2010.465-.43%202.277-1.958%201.292-3.338.397-1.296-.84-2.028-1.362-3.286-2.182-1.453-.947-.511-1.467.317-2.318.217-.223%203.984-3.61%204.057-3.918.06-.256-.167-.333-.373-.286-.13.029-2.2%201.382-6.21%204.058-.588.399-1.12.593-1.597.583-.66-.014-2.26-.583-3.88-1.492-.097-.277.399-.53%201.096-.804z'%20fill='%23000'%3e%3c/path%3e%3c/svg%3e",V6="data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.733%2011.784c-.708-1.191-1.221-2.408-1.221-3.823%200-3.566%202.905-6.457%206.488-6.457%203.583%200%206.488%202.891%206.488%206.457%200%203.565-2.905%206.456-6.488%206.456-1.332%200-2.496-.452-3.64-1.079-.734.18-1.468.362-2.2.55.195-.7.387-1.402.573-2.104zM0%2016s2.944-.768%204.147-1.06A7.995%207.995%200%20008%2015.92c4.418%200%208-3.564%208-7.96S12.418%200%208%200%200%203.564%200%207.96c0%201.479.405%202.862%201.11%204.048C.929%2012.693%200%2016%200%2016zm8.118-6.637a501.25%20501.25%200%2000-1.265-1.26c-.545-.576-.646-1.11-.392-1.298l.52-.298a.675.675%200%2000.248-.924l-.78-1.344a.681.681%200%2000-.928-.248L5%204.29c-1.685.968.271%204.078%201.09%204.892l.944.94c.818.814%203.943%202.76%204.916%201.084l.3-.517a.674.674%200%2000-.249-.924l-1.35-.776a.682.682%200%2000-.929.247l-.3.517c-.188.252-.725.152-1.305-.39z'%20fill='%23000'%3e%3c/path%3e%3c/svg%3e",Q6="_footer_1qm30_1",Y6="_top_1qm30_11",I6="_col_1qm30_18",P6="_heading_1qm30_35",X6="_companyName_1qm30_44",Z6="_phone_1qm30_51",K6="_email_1qm30_58",W6="_socialIcons_1qm30_62",J6="_socialLink_1qm30_67",e5="_divider_1qm30_94",t5="_bottom_1qm30_99",Vt={footer:Q6,top:Y6,col:I6,heading:P6,companyName:X6,phone:Z6,email:K6,socialIcons:W6,socialLink:J6,divider:e5,bottom:t5},n5=[{href:"#",icon:G6,label:"Telegram"},{href:"#",icon:V6,label:"WhatsApp"},{href:"#",icon:F6,label:"Instagram"}];function xs(){return l.jsxs("footer",{className:Vt.footer,children:[l.jsxs("div",{className:Vt.top,children:[l.jsxs("div",{className:Vt.col,children:[l.jsx("p",{className:Vt.companyName,children:"ООО «ЭКСА»"}),l.jsx("p",{children:"ИНН 9810001062"}),l.jsx("p",{children:"ОГРН 1257800060990"})]}),l.jsxs("div",{className:Vt.col,children:[l.jsx("h4",{className:Vt.heading,children:"О компании"}),l.jsx(Yt,{to:oe.PUBLICHNAYA_OFERTA,children:"Публичная оферта"}),l.jsx(Yt,{to:oe.POLITIKA_PERSONALNYH_DANNYH,children:"Политика персональных данных"}),l.jsx(Yt,{to:oe.POLITIKA_COOKIE,children:"Политика cookie"}),l.jsx(Yt,{to:oe.SOGLASIE_PERSONALNYH_DANNYH,children:"Согласие на обработку данных"}),l.jsx(Yt,{to:oe.REESTR_PD_RKN,children:"Реестр Роскомнадзора"})]}),l.jsxs("div",{className:Vt.col,children:[l.jsx("p",{className:Vt.phone,children:"+7 (812) 123-33-23"}),l.jsx("h4",{className:Vt.heading,children:"Адрес"}),l.jsx("p",{children:"196158, г. Санкт-Петербург, Московское шоссе, 25А, к.1, ПОМЕЩ. 3-Н"}),l.jsx("a",{href:"mailto:support@elcsa.ru",className:Vt.email,children:"support@elcsa.ru"})]}),l.jsxs("div",{className:Vt.col,children:[l.jsx("h4",{className:Vt.heading,children:"Мы в соцсетях"}),l.jsx("div",{className:Vt.socialIcons,children:n5.map(({href:a,icon:i,label:c})=>l.jsx("a",{href:a,className:Vt.socialLink,"aria-label":c,children:l.jsx("img",{src:i,alt:c})},c))})]})]}),l.jsx("div",{className:Vt.divider}),l.jsxs("div",{className:Vt.bottom,children:[l.jsx("p",{children:"© 2026. Все права защищены."}),l.jsx("p",{children:"Компания не является кредитной организацией."})]})]})}const pl="/assets/logo-full-white-DEb7oTyu.png",l5="_nav_5011x_1",a5="_logo_5011x_16",s5="_right_5011x_22",i5="_link_5011x_28",c5="_btn_5011x_47",Ac={nav:l5,logo:a5,right:s5,link:i5,btn:c5};function zi(){return l.jsxs("nav",{className:Ac.nav,children:[l.jsx("a",{className:Ac.logo,href:"/",children:l.jsx("img",{src:pl,alt:"ЭКСА"})}),l.jsxs("div",{className:Ac.right,children:[l.jsx("a",{className:Ac.link,href:"#about",children:"О нас"}),l.jsx(Yt,{className:Ac.btn,to:oe.WALLET,children:"Личный кабинет"})]})]})}const r5="_flow_1oxsf_1",o5="_card_1oxsf_7",u5="_cardRub_1oxsf_17",d5="_cardEksa_1oxsf_27",f5="_cardUsdt_1oxsf_37",h5="_eksaLogo_1oxsf_47",m5="_ghost_1oxsf_54",p5="_ghostBtc_1oxsf_69",_5="_ghostEth_1oxsf_74",g5="_logoCircle_1oxsf_79",v5="_logoRub_1oxsf_90",y5="_logoUsdt_1oxsf_95",x5="_badge_1oxsf_100",b5="_badgeRub_1oxsf_113",j5="_badgeUsdt_1oxsf_117",S5="_status_1oxsf_121",N5="_statusDot_1oxsf_132",w5="_path_1oxsf_139",rt={flow:r5,card:o5,cardRub:u5,cardEksa:d5,cardUsdt:f5,eksaLogo:h5,ghost:m5,ghostBtc:p5,ghostEth:_5,logoCircle:g5,logoRub:v5,logoUsdt:y5,badge:x5,badgeRub:b5,badgeUsdt:j5,status:S5,statusDot:N5,path:w5};function C5(){return l.jsxs("div",{className:rt.flow,children:[l.jsx("div",{className:`${rt.ghost} ${rt.ghostBtc}`,children:l.jsx("span",{style:{fontSize:20,color:"#F7931A"},children:"₿"})}),l.jsx("div",{className:`${rt.ghost} ${rt.ghostEth}`,children:l.jsx("span",{style:{fontSize:20,color:"#627EEA"},children:"Ξ"})}),l.jsxs("div",{className:`${rt.card} ${rt.cardRub}`,children:[l.jsx("div",{className:`${rt.logoCircle} ${rt.logoRub}`,children:"₽"}),l.jsx("div",{className:`${rt.badge} ${rt.badgeRub}`,children:"10 000 ₽"})]}),l.jsx("div",{className:`${rt.card} ${rt.cardEksa}`,children:l.jsx("img",{src:pl,alt:"ЭКСА",className:rt.eksaLogo})}),l.jsxs("div",{className:`${rt.card} ${rt.cardUsdt}`,children:[l.jsx("div",{className:`${rt.logoCircle} ${rt.logoUsdt}`,children:"₮"}),l.jsx("div",{className:`${rt.badge} ${rt.badgeUsdt}`,children:"≈ 125.3 USDT"}),l.jsxs("div",{className:rt.status,children:[l.jsx("span",{className:rt.statusDot})," ✓ Зачислено"]})]}),l.jsxs("svg",{className:rt.path,viewBox:"0 0 420 460",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[l.jsx("defs",{children:l.jsxs("linearGradient",{id:"pathGrad",x1:"0",y1:"0",x2:"1",y2:"1",children:[l.jsx("stop",{offset:"0%",stopColor:"rgba(255,255,255,0.4)"}),l.jsx("stop",{offset:"100%",stopColor:"#26A17B"})]})}),l.jsx("path",{d:"M60 68 C100 160, 250 140, 210 230 C170 310, 300 320, 350 360",stroke:"url(#pathGrad)",strokeWidth:2,strokeDasharray:"8 6",fill:"none"}),l.jsx("path",{d:"M60 68 C100 160, 250 140, 210 230 C170 310, 300 320, 350 360",stroke:"url(#pathGrad)",strokeWidth:8,strokeDasharray:"8 6",opacity:.08,fill:"none"}),l.jsx("circle",{cx:80,cy:110,r:3,fill:"#fff",opacity:.5}),l.jsx("circle",{cx:140,cy:160,r:2.5,fill:"#fff",opacity:.4}),l.jsx("circle",{cx:220,cy:200,r:3,fill:"#fff",opacity:.3}),l.jsx("circle",{cx:200,cy:270,r:2.5,fill:"#26A17B",opacity:.35}),l.jsx("circle",{cx:260,cy:310,r:3,fill:"#26A17B",opacity:.25}),l.jsx("circle",{cx:320,cy:345,r:2,fill:"#26A17B",opacity:.2})]})]})}function E5(a){const[i,c]=j.useState(Date.now());j.useEffect(()=>{const f=setInterval(()=>c(Date.now()),1e3);return()=>clearInterval(f)},[]);const r=Math.max(0,a-i),d=f=>String(f).padStart(2,"0");return{d:d(Math.floor(r/864e5)),h:d(Math.floor(r%864e5/36e5)),m:d(Math.floor(r%36e5/6e4)),s:d(Math.floor(r%6e4/1e3))}}const T5="_label_ikzdd_1",R5="_row_ikzdd_8",A5="_unit_ikzdd_14",O5="_num_ikzdd_21",M5="_lbl_ikzdd_29",Oc={label:T5,row:R5,unit:A5,num:O5,lbl:M5},L5=[["d","ДНЕЙ"],["h","ЧАСОВ"],["m","МИНУТ"],["s","СЕКУНД"]];function z5({target:a}){const i=E5(a);return l.jsxs("div",{children:[l.jsx("div",{className:Oc.label,children:"ДО ЗАПУСКА ОСТАЛОСЬ"}),l.jsx("div",{className:Oc.row,children:L5.map(([c,r])=>l.jsxs("div",{className:Oc.unit,children:[l.jsx("div",{className:Oc.num,children:i[c]}),l.jsx("div",{className:Oc.lbl,children:r})]},c))})]})}const D5="_card_17ihg_51",k5="_statusPill_17ihg_84",B5="_statusDot_17ihg_99",U5="_flowRow_17ihg_107",$5="_curBlock_17ihg_114",H5="_curIcon_17ihg_122",q5="_rub_17ihg_133",F5="_usdt_17ihg_141",G5="_flowLine_17ihg_150",V5="_curAmount_17ihg_154",Q5="_curLabel_17ihg_163",Y5="_curCheck_17ihg_171",I5="_bridge_17ihg_182",P5="_bridgeLine_17ihg_191",X5="_bridgeLabel_17ihg_198",Z5="_divider_17ihg_206",K5="_details_17ihg_212",W5="_detailRow_17ihg_220",J5="_detailLabel_17ihg_229",ej="_detailValue_17ihg_235",tj="_green_17ihg_242",Qe={card:D5,statusPill:k5,statusDot:B5,flowRow:U5,curBlock:$5,curIcon:H5,rub:q5,usdt:F5,flowLine:G5,curAmount:V5,curLabel:Q5,curCheck:Y5,bridge:I5,bridgeLine:P5,bridgeLabel:X5,divider:Z5,details:K5,detailRow:W5,detailLabel:J5,detailValue:ej,green:tj};function nj(){return l.jsxs("div",{className:Qe.card,children:[l.jsxs("div",{className:Qe.statusPill,children:[l.jsx("span",{className:Qe.statusDot}),"Операция завершена"]}),l.jsxs("div",{className:Qe.flowRow,children:[l.jsxs("div",{className:Qe.curBlock,children:[l.jsx("div",{className:`${Qe.curIcon} ${Qe.rub}`,children:"₽"}),l.jsx("div",{className:Qe.curAmount,children:"10 000 ₽"}),l.jsx("div",{className:Qe.curLabel,children:"Отправлено"})]}),l.jsxs("div",{className:Qe.bridge,children:[l.jsx("div",{className:Qe.bridgeLine,children:l.jsxs("svg",{width:48,height:12,viewBox:"0 0 48 12",fill:"none","aria-hidden":"true",children:[l.jsx("line",{x1:0,y1:6,x2:36,y2:6,stroke:"currentColor",strokeWidth:1.5,strokeDasharray:"4 3",className:Qe.flowLine}),l.jsx("path",{d:"M34 2l6 4-6 4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})}),l.jsx("div",{className:Qe.bridgeLabel,children:l.jsx("img",{src:pl,alt:"ЭКСА"})}),l.jsx("div",{className:Qe.bridgeLine,children:l.jsxs("svg",{width:48,height:12,viewBox:"0 0 48 12",fill:"none","aria-hidden":"true",children:[l.jsx("line",{x1:0,y1:6,x2:36,y2:6,stroke:"currentColor",strokeWidth:1.5,strokeDasharray:"4 3",className:Qe.flowLine}),l.jsx("path",{d:"M34 2l6 4-6 4",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})})]}),l.jsxs("div",{className:Qe.curBlock,children:[l.jsx("div",{className:`${Qe.curIcon} ${Qe.usdt}`,children:"₮"}),l.jsx("div",{className:Qe.curAmount,children:"125.3 USDT"}),l.jsxs("div",{className:Qe.curCheck,children:[l.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M2 6l3 3 5-5",stroke:"#26A17B",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})}),"Зачислено"]})]})]}),l.jsx("div",{className:Qe.divider}),l.jsxs("div",{className:Qe.details,children:[l.jsxs("div",{className:Qe.detailRow,children:[l.jsx("span",{className:Qe.detailLabel,children:"Курс"}),l.jsxs("span",{className:Qe.detailValue,children:[I3.toFixed(2)," ₽ / USDT"]})]}),l.jsxs("div",{className:Qe.detailRow,children:[l.jsx("span",{className:Qe.detailLabel,children:"Комиссия"}),l.jsx("span",{className:`${Qe.detailValue} ${Qe.green}`,children:"0%"})]})]})]})}const lj="_hero_mnobr_1",aj="_content_mnobr_33",sj="_left_mnobr_45",ij="_desktop_mnobr_52",cj="_mobile_mnobr_56",rj="_right_mnobr_60",oj="_title_mnobr_67",uj="_line2_mnobr_74",dj="_reflection_mnobr_85",fj="_cta_mnobr_96",dl={hero:lj,content:aj,left:sj,desktop:ij,mobile:cj,right:rj,title:oj,line2:uj,reflection:dj,cta:fj};function hj(){return l.jsx("section",{className:dl.hero,children:l.jsxs("div",{className:dl.content,children:[l.jsxs("div",{className:dl.left,children:[l.jsx("div",{className:dl.desktop,children:l.jsx(C5,{})}),l.jsx("div",{className:dl.mobile,children:l.jsx(nj,{})})]}),l.jsxs("div",{className:dl.right,children:[l.jsxs("h1",{className:dl.title,children:["Ваш мост",l.jsx("span",{className:dl.reflection,"aria-hidden":"true",children:"Ваш мост"}),l.jsxs("span",{className:dl.line2,children:["в мир",l.jsx("br",{}),"цифровых",l.jsx("br",{}),"активов"]})]}),l.jsxs("div",{children:[l.jsx(z5,{target:T6}),l.jsx("a",{href:"#converter",className:dl.cta,children:"Попробовать калькулятор"})]})]})]})})}const mj=[{name:"Bitcoin",ticker:"BTC",cls:"btc",icon:"₿",speed:30,color:"rgba(247,147,26,0.8)",fee:"~0.0001 BTC",confirm:"~10 мин"},{name:"Ethereum",ticker:"ETH",cls:"eth",icon:"Ξ",speed:60,color:"rgba(98,126,234,0.8)",fee:"~215 Gwei",confirm:"~15 сек"},{name:"Tron",ticker:"TRX",cls:"trx",icon:"◈",speed:90,color:"rgba(255,6,10,0.8)",fee:"~1 TRX",confirm:"~3 сек"},{name:"Solana",ticker:"SOL",cls:"sol",icon:"◎",speed:98,color:"rgba(153,69,255,0.8)",fee:"~0.000005 SOL",confirm:"~1 сек"},{name:"BSC Chain",ticker:"BNB",cls:"bnb",icon:"◆",speed:88,color:"rgba(243,186,47,0.8)",fee:"~0.0005 BNB",confirm:"~3 сек"}],pj="_section_10lhb_1",_j="_wrap_10lhb_6",gj="_title_10lhb_11",vj="_tableWrap_10lhb_18",yj="_table_10lhb_18",xj="_name_10lhb_52",bj="_icon_10lhb_58",jj="_icon_btc_10lhb_71",Sj="_icon_eth_10lhb_75",Nj="_icon_trx_10lhb_79",wj="_icon_sol_10lhb_83",Cj="_icon_bnb_10lhb_87",Ej="_label_10lhb_91",Tj="_ticker_10lhb_96",Rj="_speedBar_10lhb_102",Aj="_speedFill_10lhb_110",Oj="_fee_10lhb_115",Mj="_confirm_10lhb_121",Lj="_footnote_10lhb_126",Zt={section:pj,wrap:_j,title:gj,tableWrap:vj,table:yj,name:xj,icon:bj,icon_btc:jj,icon_eth:Sj,icon_trx:Nj,icon_sol:wj,icon_bnb:Cj,label:Ej,ticker:Tj,speedBar:Rj,speedFill:Aj,fee:Oj,confirm:Mj,footnote:Lj};function zj(){return l.jsx("section",{className:Zt.section,children:l.jsxs("div",{className:Zt.wrap,children:[l.jsx("h2",{className:Zt.title,children:"Поддерживаемые сети"}),l.jsx("div",{className:Zt.tableWrap,children:l.jsxs("table",{className:Zt.table,children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{children:"Сеть"}),l.jsx("th",{children:"Скорость"}),l.jsx("th",{children:"Комиссия"}),l.jsx("th",{children:"Подтверждение"})]})}),l.jsx("tbody",{children:mj.map(a=>l.jsxs("tr",{children:[l.jsx("td",{children:l.jsxs("div",{className:Zt.name,children:[l.jsx("div",{className:`${Zt.icon} ${Zt[`icon_${a.cls}`]}`,children:a.icon}),l.jsx("span",{className:Zt.label,children:a.name}),l.jsx("span",{className:Zt.ticker,children:a.ticker})]})}),l.jsx("td",{children:l.jsx("div",{className:Zt.speedBar,children:l.jsx("div",{className:Zt.speedFill,style:{width:`${a.speed}%`,background:a.color}})})}),l.jsx("td",{children:l.jsx("span",{className:Zt.fee,children:a.fee})}),l.jsx("td",{children:l.jsx("span",{className:Zt.confirm,children:a.confirm})})]},a.ticker))})]})}),l.jsx("div",{className:Zt.footnote,children:"* Комиссии и время подтверждения указаны приблизительно и зависят от загруженности сети"})]})})}function Dj(){return l.jsxs(l.Fragment,{children:[l.jsx(zi,{}),l.jsxs("main",{children:[l.jsx(hj,{}),l.jsx(pb,{}),l.jsx(q6,{}),l.jsx(zj,{})]}),l.jsx(xs,{})]})}async function a2(a,i,c){const r=await zn(),d=It.get(),f={"Content-Type":"application/json","X-CSRF-Token":r,...d?{Authorization:`Bearer ${d}`}:{},...i.headers},p=await fetch(`${Y3}${a}`,{...i,credentials:"include",headers:f});if(p.status===401&&c)try{return await Yl(),a2(a,i,!1)}catch{throw It.clear(),new Error("Unauthorized")}const g=await p.json();if(!p.ok)throw g;return g}const tr={get:a=>a2(a,{},!0),post:(a,i)=>a2(a,{method:"POST",body:JSON.stringify(i)},!0)};function kj(a){return tr.post("/auth/registration/start",a)}function Bj(a){return tr.post("/auth/registration/complete",a)}function Uj(a){return tr.post("/auth/login/start",a)}function $j(a){return tr.post("/auth/login/complete",a)}async function Hj(){const a=await zn();return tr.post("/auth/logout",{_csrf:a})}const nr="https://app.users.elcsa.ru";async function T2(){const a=await zn(),i=It.get();return{"X-CSRF-Token":a,...i?{Authorization:`Bearer ${i}`}:{}}}async function qj(){const a=await T2(),i=await fetch(`${nr}/me/`,{credentials:"include",headers:a}),c=await i.json();if(!i.ok)throw c;return c}async function Fj(a){const i=await T2(),c=await fetch(`${nr}/me/settings/avatar`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...i},body:JSON.stringify(a)}),r=await c.json();if(!c.ok)throw r;return r}async function Gj(a){const i=await zn(),c=await fetch(`${nr}/me/settings/password/forgot/start`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":i},body:JSON.stringify(a)});if(!c.ok)throw await c.json().catch(()=>({}))}async function Vj(a){const i=await T2(),c=await fetch(`${nr}/me/settings/phone`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json",...i},body:JSON.stringify({phone:a})});if(!c.ok)throw await c.json().catch(()=>({}))}async function Qj(a){const i=await zn(),c=await fetch(`${nr}/me/settings/password/forgot/complete`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":i},body:JSON.stringify(a)});if(!c.ok)throw await c.json().catch(()=>({}))}function Il(a){return kt({queryKey:["me"],queryFn:qj,staleTime:1/0,gcTime:1/0,retry:!1,...a})}function Yj(){const a=_n();return vt({mutationFn:Fj,onSuccess:i=>{a.setQueryData(["me"],i)}})}function Ij(){const a=_n();return vt({mutationFn:Vj,onSuccess:()=>{a.invalidateQueries({queryKey:["me"]})}})}const Io=["auth"];function Pj(){return kt({queryKey:Io,queryFn:Yl,retry:!1,staleTime:1/0,gcTime:1/0,refetchOnWindowFocus:!1})}function X3(){const{data:a,isLoading:i,isError:c}=Pj();return{isAuthenticated:!!a&&!c,isLoading:i}}const Xj="https://app.b2b.elcsa.ru";async function lr(a,i,c){const r=await zn(),d=await fetch(`${Xj}${a}`,{...i,credentials:"include",headers:{"X-CSRF-Token":r,...i.headers}});if(d.status===401&&c)try{return await Yl(),lr(a,i,!1)}catch{throw new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}function Zj(a){return lr("/purchase-requests",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)},!0)}function Kj(a=50,i=0){return lr(`/purchase-requests?limit=${a}&offset=${i}`,{},!0)}function Wj(){return lr("/v1/organizations/wallets",{},!0)}function Jj(){return lr("/v1/organizations/wallets/balances",{},!0)}function e8(){const a=_n();return vt({mutationFn:Zj,onSuccess:()=>{a.invalidateQueries({queryKey:["b2b","purchase-requests"]})}})}function Z3(){return kt({queryKey:["b2b","purchase-requests"],queryFn:()=>Kj(),staleTime:3e4})}const K3="https://app.cryptowallet.elcsa.ru",R2=["ETH","BSC","BTC","TRX","SOL"];async function Da(a,i=!0){const c=await zn(),r=It.get(),d=await fetch(`${K3}${a}`,{credentials:"include",headers:{"X-CSRF-Token":c,...r?{Authorization:`Bearer ${r}`}:{}}});if(d.status===401&&i)try{return await Yl(),Da(a,!1)}catch{throw It.clear(),new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}async function nl(a,i,c=!0,r={}){const d=await zn(),f=It.get(),p=await fetch(`${K3}${a}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":d,...f?{Authorization:`Bearer ${f}`}:{},...r},body:JSON.stringify(i)});if(p.status===401&&c)try{return await Yl(),nl(a,i,!1,r)}catch{throw It.clear(),new Error("Unauthorized")}const g=await p.json();if(!p.ok)throw g;return g}async function t8(){return(await Da("/api/wallets")).data}async function n8(a){return(await Da(`/api/wallets/${a}/balance`)).data}async function l8(a){return(await Da(`/api/prices?symbols=${a.join(",")}`)).data}async function a8(a,i){return nl(`/api/wallets/${a}/send`,i)}async function s8(){return(await Da("/api/wallets/portfolio")).data}const i8={ETH:"ETH",BNB:"BSC",BTC:"BTC",TRX:"TRX",SOL:"SOL"};function W3(a,i){const c=a==null?void 0:a.toUpperCase();return R2.includes(c)?c:(i?i8[i.toUpperCase()]:void 0)??null}function Ho(a){const i=typeof a=="number"?a:parseFloat(a??"");return Number.isFinite(i)?i:0}function hp(a){return{raw:a.raw,formatted:a.formatted,decimals:a.decimals,usdPrice:Ho(a.usd_price),usdValue:Ho(a.usd_value)}}function c8(a,i){const c={};for(const[r,d]of Object.entries(a.tokens??{}))c[r]=hp(d);return{chain:i,address:a.address,native:hp(a.native),tokens:c,totalUsd:Ho(a.total_usd),stale:!1,lastUpdated:0}}async function J3(){const a=await Jj(),i={};for(const c of a.items??[]){const r=W3(c.chain,c.native_symbol);r&&(i[r]=c8(c,r))}return{totalUsd:Ho(a.total_usd),hasErrors:!!a.has_errors,perChain:i}}const r8={raw:"0",formatted:"0",decimals:0,usdPrice:0,usdValue:0};async function o8(a){const c=(await J3()).perChain[a];return c?{chain:a,address:c.address,native:c.native,tokens:c.tokens}:{chain:a,address:"",native:r8,tokens:{}}}async function u8(){const a=await Wj(),i=[];for(const c of a??[]){const r=W3(c.chain);r&&i.push({chain:r,address:c.address,derivationPath:c.derivation_path})}return i}async function d8(){return(await Da("/api/tokens")).data}async function f8(){var i;const a=await Da("/api/jumper/tokens?chains=1,56,1151111081099710,728126428,20000000000001");return((i=a.data)==null?void 0:i.tokens)??a.tokens??{}}async function h8(a){var r;const i=new URLSearchParams({fromChain:a.fromChain,toChain:a.toChain,fromToken:a.fromToken,toToken:a.toToken,fromAmount:a.fromAmount,fromAddress:a.fromAddress,toAddress:a.toAddress,slippage:String(a.slippage)}).toString(),c=await Da(`/api/jumper/quote-best?${i}`);return((r=c.data)==null?void 0:r.body)??c.body??c}async function m8(a){var c;const i=await nl("/api/bridge/execute",a,!0,{"Idempotency-Key":crypto.randomUUID()});return((c=i.data)==null?void 0:c.data)??i}async function p8(a){return nl("/api/relay/quote",a)}async function _8(a){return nl("/api/relay/execute/swap",a)}async function g8(a,i){const c=`relay-${a.toLowerCase()}-${Date.now()}`;return nl(`/api/wallets/${a}/sign-raw-evm-tx`,i,!0,{"Idempotency-Key":c})}async function v8(a){return nl("/api/wallets/SOL/sign-and-broadcast-tx",a)}async function e_(a){return(await nl("/api/wallets/TRX/swap/quote",a)).data}async function y8(a){return nl("/api/wallets/TRX/swap",{quoteId:a},!0,{"Idempotency-Key":`trx-${Date.now()}`})}async function x8(){await nl("/api/wallets/create",{})}async function b8(){return(await nl("/api/wallets/mnemonic/reveal",{confirm:"I_UNDERSTAND_SEED_IS_SECRET"})).data.mnemonic}function A2(){const{data:a}=Il();return{isLegal:(a==null?void 0:a.account_type)==="legal_entity",ready:!!a}}function Yc(a){const{isLegal:i,ready:c}=A2();return kt({queryKey:["wallet","balance",a,i?"org":"self"],queryFn:i?()=>o8(a):()=>n8(a),enabled:i?c:!0,staleTime:3e4})}function j8(a){return kt({queryKey:["wallet","prices",a.join(",")],queryFn:()=>l8(a),staleTime:300*1e3})}function S8(){return vt({mutationFn:({chain:a,...i})=>a8(a,i)})}function Po(){const{isLegal:a,ready:i}=A2();return kt({queryKey:["wallet","addresses",a?"org":"self"],queryFn:a?u8:t8,enabled:a?i:!0,staleTime:600*1e3})}function Xo(){const{isLegal:a,ready:i}=A2();return kt({queryKey:["wallet","portfolio",a?"org":"self"],queryFn:a?J3:s8,enabled:a?i:!0,staleTime:3e4})}function N8(){return kt({queryKey:["wallet","tokens"],queryFn:d8,staleTime:600*1e3})}function w8(){return kt({queryKey:["wallet","jumper","tokens"],queryFn:f8,staleTime:600*1e3})}function C8(){return vt({mutationFn:a=>h8(a)})}function E8(){return vt({mutationFn:a=>m8(a)})}function T8(){return vt({mutationFn:x8})}function R8(){return kt({queryKey:["wallet","mnemonic"],queryFn:b8,staleTime:1/0,retry:!1})}function t_(a){return kt({queryKey:["relay","quote",a==null?void 0:a.originChainId,a==null?void 0:a.destinationChainId,a==null?void 0:a.originCurrency,a==null?void 0:a.destinationCurrency,a==null?void 0:a.amount],queryFn:()=>p8(a),enabled:!!a,staleTime:1e4})}function A8(){return vt({mutationFn:a=>_8(a)})}function O8(){return vt({mutationFn:({chain:a,txData:i})=>a==="SOL"?v8(i):g8(a,i)})}function M8(a){return kt({queryKey:["trx","quote",a==null?void 0:a.from,a==null?void 0:a.to,a==null?void 0:a.amountHuman],queryFn:()=>e_(a),enabled:!!a,staleTime:1e4})}function L8(){return vt({mutationFn:e_})}function z8(){return vt({mutationFn:a=>y8(a)})}const D8="_card_1kfaj_1",k8="_label_1kfaj_18",B8="_amount_1kfaj_27",U8="_actions_1kfaj_41",$8="_btn_1kfaj_46",ts={card:D8,label:k8,amount:B8,actions:U8,btn:$8},H8="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%2020010904//EN'%20'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'%3e%3csvg%20version='1.0'%20xmlns='http://www.w3.org/2000/svg'%20width='309.147797pt'%20height='144.859221pt'%20viewBox='0%200%20309.147797%20144.859221'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cmetadata%3e%20Created%20by%20potrace%201.16,%20written%20by%20Peter%20Selinger%202001-2019%20%3c/metadata%3e%3crect%20width='100%25'%20height='100%25'%20fill='none'/%3e%3cg%20transform='translate(-8.181291,146.963747)%20scale(0.100000,-0.100000)'%20fill='%23ffffff'%20stroke='none'%3e%3cpath%20d='M685%201459%20c-328%20-55%20-585%20-344%20-602%20-679%20-14%20-267%20104%20-496%20334%20-643%20282%20-183%20645%20-142%20888%2098%2098%2096%20128%20143%20325%20490%2084%20149%20172%20300%20195%20336%20180%20279%20488%20420%20765%20350%20253%20-64%20426%20-222%20507%20-466%2024%20-70%2027%20-96%2027%20-205%200%20-109%20-3%20-135%20-27%20-207%20-49%20-148%20-167%20-293%20-306%20-377%20-261%20-159%20-617%20-110%20-830%20114%20-30%2032%20-73%2089%20-96%20126%20-43%2070%20-75%2094%20-75%2055%200%20-29%20113%20-194%20163%20-236%20141%20-122%20290%20-185%20453%20-193%20126%20-6%20219%2010%20318%2053%20206%2089%20356%20258%20426%20480%2030%2095%2031%20257%202%20367%20-37%20138%20-111%20259%20-219%20357%20-81%2075%20-234%20154%20-338%20176%20-249%2052%20-515%20-37%20-697%20-234%20-76%20-82%20-145%20-187%20-283%20-436%20-161%20-288%20-191%20-340%20-242%20-412%20-81%20-115%20-208%20-214%20-342%20-266%20-64%20-25%20-94%20-31%20-189%20-35%20-146%20-6%20-213%208%20-341%2070%20-88%2042%20-117%2062%20-181%20127%20-166%20169%20-236%20408%20-181%20623%2063%20245%20223%20419%20461%20499%20211%2071%20430%2028%20628%20-124%2055%20-41%20134%20-138%20184%20-222%2026%20-43%2048%20-52%2048%20-20%200%2019%20-53%20108%20-101%20170%20-147%20193%20-433%20305%20-674%20264z'/%3e%3cpath%20d='M2339%201018%20c-51%20-95%20-108%20-198%20-126%20-228%20-18%20-30%20-33%20-61%20-33%20-69%200%20-13%2053%20-102%20191%20-323%2040%20-65%2059%20-87%2073%20-85%2026%203%20198%20279%20183%20293%20-8%209%20-85%20-89%20-132%20-168%20-26%20-44%20-49%20-77%20-51%20-75%20-17%2016%20-174%20280%20-170%20285%203%203%2042%20-16%2087%20-42%2077%20-45%2082%20-47%20105%20-31%2030%2020%2032%2039%202%2031%20-17%20-4%20-51%2012%20-125%2057%20-57%2034%20-103%2067%20-103%2074%200%2019%20194%20374%20204%20375%209%200%2048%20-66%20158%20-272%2048%20-90%2054%20-98%2070%20-82%209%209%20-1%2037%20-46%20124%20-96%20187%20-166%20308%20-180%20308%20-7%200%20-55%20-78%20-107%20-172z'/%3e%3cpath%20d='M688%201083%20l-3%20-38%20-57%20-3%20c-50%20-3%20-58%20-6%20-58%20-22%200%20-16%207%20-20%2030%20-20%20l30%200%20-2%20-247%20-3%20-248%20-27%20-3%20c-30%20-4%20-38%20-26%20-12%20-36%209%20-3%2035%20-6%2059%20-6%2043%200%2044%200%2047%20-37%202%20-27%208%20-39%2021%20-41%2014%20-3%2017%204%2017%2037%200%2037%203%2041%2024%2041%2021%200%2025%20-5%2028%20-37%204%20-52%2032%20-52%2036%20-2%203%2036%205%2037%2050%2044%2059%209%2093%2026%20125%2065%2054%2063%2048%20152%20-15%20214%20l-40%2040%2021%2037%20c12%2020%2021%2049%2021%2063%200%2065%20-58%20137%20-120%20151%20-23%205%20-30%2012%20-30%2030%200%2034%20-10%2055%20-26%2055%20-8%200%20-14%20-10%20-14%20-24%200%20-39%20-11%20-56%20-35%20-56%20-20%200%20-24%206%20-27%2037%20-2%2026%20-8%2039%20-20%2041%20-13%202%20-17%20-5%20-20%20-35z%20m176%20-97%20c42%20-18%2066%20-51%2066%20-94%200%20-76%20-42%20-102%20-165%20-102%20l-85%200%200%20105%200%20105%2075%200%20c42%200%2090%20-6%20109%20-14z%20m67%20-253%20c41%20-24%2062%20-83%2049%20-133%20-19%20-72%20-87%20-103%20-218%20-98%20l-77%203%20-3%20109%20c-1%2061%200%20116%202%20123%208%2021%20210%2018%20247%20-4z'/%3e%3c/g%3e%3c/svg%3e",q8="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%2020010904//EN'%20'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'%3e%3csvg%20version='1.0'%20xmlns='http://www.w3.org/2000/svg'%20width='735.823910pt'%20height='388.545063pt'%20viewBox='0%200%20735.823910%20388.545063'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cmetadata%3e%20Created%20by%20potrace%201.16,%20written%20by%20Peter%20Selinger%202001-2019%20%3c/metadata%3e%3crect%20width='100%25'%20height='100%25'%20fill='none'/%3e%3cg%20transform='translate(-7.217511,405.779758)%20scale(0.100000,-0.100000)'%20fill='%23ffffff'%20stroke='none'%3e%3cpath%20d='M1798%204049%20c-430%20-42%20-842%20-238%20-1148%20-548%20-301%20-304%20-486%20-664%20-555%20-1081%20-25%20-154%20-31%20-424%20-11%20-560%2078%20-530%20310%20-943%20721%20-1283%20108%20-89%20335%20-218%20495%20-280%20396%20-155%20886%20-166%201300%20-28%20135%2045%20358%20157%20475%20239%20266%20185%20495%20448%20625%20720%2024%2050%2047%2092%2050%2092%203%200%2034%20-57%2070%20-127%20192%20-377%20514%20-681%20905%20-855%20474%20-212%201031%20-221%201510%20-26%20569%20233%20990%20720%201136%201313%20126%20515%2051%201029%20-217%201487%20-254%20433%20-705%20771%20-1187%20887%20-194%2047%20-261%2055%20-447%2055%20-245%201%20-433%20-30%20-660%20-109%20-263%20-91%20-537%20-269%20-741%20-481%20-117%20-122%20-269%20-344%20-338%20-492%20-14%20-29%20-27%20-52%20-31%20-52%20-3%200%20-21%2030%20-39%2068%20-103%20210%20-277%20437%20-456%20595%20-395%20347%20-927%20517%20-1457%20466z%20m432%20-83%20c648%20-87%201206%20-513%201457%20-1113%2058%20-139%2070%20-143%20109%20-40%2086%20229%20283%20517%20465%20681%20172%20156%20423%20309%20613%20375%20241%2085%20441%20116%20686%20108%20197%20-7%20344%20-32%20523%20-91%20549%20-180%20993%20-630%201176%20-1194%2072%20-221%2086%20-314%2086%20-587%20-1%20-268%20-10%20-343%20-70%20-540%20-168%20-552%20-569%20-985%20-1113%20-1199%20-194%20-76%20-520%20-130%20-722%20-120%20-606%2032%20-1137%20334%20-1468%20835%20-54%2082%20-134%20237%20-172%20334%20-46%20115%20-55%20113%20-110%20-22%20-174%20-433%20-499%20-773%20-932%20-978%20-184%20-87%20-403%20-143%20-642%20-165%20-291%20-26%20-662%2047%20-937%20185%20-449%20225%20-784%20611%20-938%201082%20-71%20216%20-86%20314%20-86%20583%200%20183%204%20256%2018%20330%2091%20489%20342%20897%20733%201191%20256%20193%20549%20309%20889%20352%2076%2010%20340%205%20435%20-7z'/%3e%3cpath%20d='M5120%202656%20c0%20-459%20-2%20-515%20-16%20-520%20-9%20-3%20-78%20-6%20-155%20-6%20l-139%200%200%20-55%200%20-55%20155%200%20156%200%20-3%20-127%20-3%20-128%20-150%20-5%20-150%20-5%20-3%20-47%20-3%20-48%20155%200%20156%200%202%20-327%203%20-328%2055%200%2055%200%203%20327%202%20328%20363%202%20362%203%200%2045%200%2045%20-360%205%20-360%205%20-3%20127%20-3%20126%20383%204%20383%204%2082%2027%20c246%2082%20396%20288%20395%20542%200%20234%20-134%20436%20-345%20522%20-109%2045%20-207%2053%20-629%2053%20l-388%200%200%20-514z%20m940%20375%20c171%20-60%20266%20-168%20306%20-351%2052%20-230%20-99%20-468%20-337%20-531%20-47%20-13%20-722%20-26%20-765%20-15%20l-24%206%200%20461%200%20461%20378%20-4%20c362%20-4%20380%20-5%20442%20-27z'/%3e%3cpath%20d='M1199%203044%20c-5%20-7%20-8%20-75%20-7%20-155%20l3%20-144%20300%20-5%20300%20-5%203%20-317%202%20-318%20190%200%20c174%200%20190%201%20191%2018%200%209%201%20152%202%20317%20l2%20300%20303%203%20302%202%200%20155%20c0%20117%20-3%20155%20-12%20156%20-7%200%20-363%201%20-791%202%20-571%201%20-781%20-1%20-788%20-9z'/%3e%3cpath%20d='M1555%202404%20c-279%20-30%20-473%20-77%20-561%20-137%20-209%20-141%2095%20-294%20668%20-336%2064%20-5%20121%20-12%20127%20-15%208%20-5%2011%20-136%2011%20-437%20l0%20-429%20193%202%20192%203%203%20433%20c2%20403%203%20432%2020%20432%209%200%2082%207%20162%2015%20357%2035%20609%20109%20668%20195%2077%20115%20-127%20217%20-528%20264%20-240%2028%20-269%2029%20-276%2011%20-4%20-9%20-3%20-20%202%20-25%205%20-5%2070%20-14%20144%20-20%20276%20-23%20501%20-75%20562%20-129%2043%20-39%2033%20-63%20-45%20-100%20-321%20-157%20-1451%20-161%20-1799%20-8%20-68%2030%20-94%2062%20-75%2092%2040%2062%20261%20118%20577%20145%2074%207%20139%2015%20143%2019%204%204%205%2015%201%2024%20-7%2020%20-13%2020%20-189%201z'/%3e%3cpath%20d='M3365%202095%20c-30%20-30%20-31%20-54%20-4%20-89%2040%20-50%20119%20-21%20119%2044%200%2064%20-70%2091%20-115%2045z'/%3e%3cpath%20d='M3726%202099%20c-52%20-41%20-24%20-119%2044%20-119%2031%200%2044%208%2059%2037%2017%2033%2014%2051%20-14%2078%20-30%2030%20-54%2031%20-89%204z'/%3e%3cpath%20d='M4100%202113%20c-42%20-17%20-53%20-80%20-19%20-114%2028%20-28%2076%20-22%20102%2013%2018%2024%2019%2030%207%2058%20-16%2039%20-53%2057%20-90%2043z'/%3e%3c/g%3e%3c/svg%3e";function F8(){const{data:a,isLoading:i}=Xo(),c=i||!a||a.totalUsd==null?"$—":`$${a.totalUsd.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`;return l.jsxs("div",{className:ts.card,children:[l.jsxs("div",{className:ts.left,children:[l.jsx("div",{className:ts.label,children:"Общий баланс"}),l.jsx("div",{className:ts.amount,children:c})]}),l.jsxs("div",{className:ts.actions,children:[l.jsxs(Yt,{to:oe.CONVERTER,className:ts.btn,type:"button",children:[l.jsx("img",{src:q8,alt:"swap"}),"Пополнить кошелёк"]}),l.jsxs(Yt,{to:oe.SWAP,className:ts.btn,type:"button",children:[l.jsx("img",{src:H8,alt:"topup"}),"Своп / Бридж"]})]})]})}const G8="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%206H15C16.6569%206%2018%207.34315%2018%209C18%2010.6569%2016.6569%2012%2015%2012M10%206V12M10%206H7M10%206V3M15%2012H10M15%2012C16.6569%2012%2018%2013.3431%2018%2015C18%2016.6569%2016.6569%2018%2015%2018H10M10%2012V18M10%2018H7M10%2018V21M13%206V3M13%2021V18'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",V8="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pg0KDQo8IURPQ1RZUEUgc3ZnICBQVUJMSUMgJy0vL1czQy8vRFREIFNWRyAxLjEvL0VOJyAgJ2h0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCc+DQoNCjwhLS0gVXBsb2FkZWQgdG86IFNWRyBSZXBvLCB3d3cuc3ZncmVwby5jb20sIEdlbmVyYXRvcjogU1ZHIFJlcG8gTWl4ZXIgVG9vbHMgLS0+DQo8c3ZnIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDMyIDMyIiBpZD0iX3gzQ19MYXllcl94M0VfIiB2ZXJzaW9uPSIxLjEiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KDQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KPCFbQ0RBVEFbDQoJLnN0MHtmaWxsOm5vbmU7c3Ryb2tlOiNmZmY7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO30NCgkuc3Qxe2ZpbGw6bm9uZTtzdHJva2U6I2ZmZjtzdHJva2UtbGluZWNhcDpyb3VuZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fQ0KXV0+DQo8L3N0eWxlPg0KDQo8ZyBpZD0iRXRoZXJldW1feDJDX19jcnlwdG9feDJDX19jcnlwdG9jdXJyZW5jeV8xXyI+DQoNCjxnIGlkPSJYTUxJRF8xNV8iPg0KDQo8cG9seWdvbiBjbGFzcz0ic3QxIiBpZD0iWE1MSURfOF8iIHBvaW50cz0iMTYuMDEsMS41IDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8bGluZSBjbGFzcz0ic3QxIiBpZD0iWE1MSURfMzFfIiB4MT0iMTYuMDEiIHgyPSIxNi4wMSIgeTE9IjMwLjUiIHkyPSIyNC4xIi8+DQoNCjxwb2x5Z29uIGNsYXNzPSJzdDEiIGlkPSJYTUxJRF8xMl8iIHBvaW50cz0iMTYuMDEsMzAuNSA3LjYyLDE4LjgzIDE2LjAxLDI0LjEgMjQuMzgsMTguNzggICAiLz4NCg0KPHBvbHlnb24gY2xhc3M9InN0MSIgaWQ9IlhNTElEXzMwXyIgcG9pbnRzPSIxNi4wMSwxMi4zIDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8bGluZSBjbGFzcz0ic3QxIiBpZD0iWE1MSURfMzJfIiB4MT0iMTYuMDEiIHgyPSIxNi4wMSIgeTE9IjEuNSIgeTI9IjIxLjUiLz4NCg0KPHBvbHlnb24gY2xhc3M9InN0MSIgaWQ9IlhNTElEXzE5Ml8iIHBvaW50cz0iMTYuMDEsMS41IDcuNjIsMTYuMjMgMTYuMDEsMjEuNSAyNC4zOCwxNi4xOCAgICIvPg0KDQo8L2c+DQoNCjwvZz4NCg0KPC9zdmc+",Q8="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.08398%205.22265C7.17671%205.08355%207.33282%205%207.5%205H18.5C18.6844%205%2018.8538%205.10149%2018.9408%205.26407C19.0278%205.42665%2019.0183%205.62392%2018.916%205.77735L16.916%208.77735C16.8233%208.91645%2016.6672%209%2016.5%209H5.5C5.3156%209%205.14617%208.89851%205.05916%208.73593C4.97215%208.57335%204.98169%208.37608%205.08398%208.22265L7.08398%205.22265ZM7.76759%206L6.43426%208H16.2324L17.5657%206H7.76759Z'%20fill='%23fff'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.08398%2015.2226C7.17671%2015.0836%207.33282%2015%207.5%2015H18.5C18.6844%2015%2018.8538%2015.1015%2018.9408%2015.2641C19.0278%2015.4267%2019.0183%2015.6239%2018.916%2015.7774L16.916%2018.7774C16.8233%2018.9164%2016.6672%2019%2016.5%2019H5.5C5.3156%2019%205.14617%2018.8985%205.05916%2018.7359C4.97215%2018.5734%204.98169%2018.3761%205.08398%2018.2226L7.08398%2015.2226ZM7.76759%2016L6.43426%2018H16.2324L17.5657%2016H7.76759Z'%20fill='%23fff'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.08398%2013.7774C7.17671%2013.9164%207.33282%2014%207.5%2014H18.5C18.6844%2014%2018.8538%2013.8985%2018.9408%2013.7359C19.0278%2013.5733%2019.0183%2013.3761%2018.916%2013.2226L16.916%2010.2226C16.8233%2010.0836%2016.6672%2010%2016.5%2010H5.5C5.3156%2010%205.14617%2010.1015%205.05916%2010.2641C4.97215%2010.4267%204.98169%2010.6239%205.08398%2010.7774L7.08398%2013.7774ZM7.76759%2013L6.43426%2011H16.2324L17.5657%2013H7.76759Z'%20fill='%23fff'/%3e%3c/svg%3e",Y8="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.6109%204.68601C4.72546%204.54406%204.90822%204.47575%205.0878%204.50778L16.575%206.55656C16.6715%206.57377%2016.7608%206.61896%2016.8318%206.68651L19.3446%209.07676C19.5379%209.26064%2019.5528%209.5639%2019.3784%209.76583L11.122%2019.3268C11.0084%2019.4583%2010.8347%2019.5214%2010.6632%2019.4935C10.4917%2019.4656%2010.347%2019.3506%2010.281%2019.1898L4.53742%205.18979C4.46819%205.02103%204.49635%204.82796%204.6109%204.68601ZM6.19646%206.59904L10.4853%2017.053L11.2894%2010.6786L6.19646%206.59904ZM12.2688%2010.9045L11.4468%2017.4207L17.7491%2010.1226L12.2688%2010.9045ZM17.9075%209.08986L13.7298%209.68594L16.4453%207.69901L17.9075%209.08986ZM15.2483%207.33573L6.84451%205.83688L11.8343%209.83381L15.2483%207.33573Z'%20fill='%23fff'/%3e%3c/svg%3e",I8="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2026.0.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%202496%202496'%20style='enable-background:new%200%200%202496%202496;'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill-rule:evenodd;clip-rule:evenodd;fill:%23F0B90B;'%20d='M1248,0c689.3,0,1248,558.7,1248,1248s-558.7,1248-1248,1248%20S0,1937.3,0,1248S558.7,0,1248,0L1248,0z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M685.9,1248l0.9,330l280.4,165v193.2l-444.5-260.7v-524L685.9,1248L685.9,1248z%20M685.9,918v192.3%20l-163.3-96.6V821.4l163.3-96.6l164.1,96.6L685.9,918L685.9,918z%20M1084.3,821.4l163.3-96.6l164.1,96.6L1247.6,918L1084.3,821.4%20L1084.3,821.4z'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M803.9,1509.6v-193.2l163.3,96.6v192.3L803.9,1509.6L803.9,1509.6z%20M1084.3,1812.2l163.3,96.6%20l164.1-96.6v192.3l-164.1,96.6l-163.3-96.6V1812.2L1084.3,1812.2z%20M1645.9,821.4l163.3-96.6l164.1,96.6v192.3l-164.1,96.6V918%20L1645.9,821.4L1645.9,821.4L1645.9,821.4z%20M1809.2,1578l0.9-330l163.3-96.6v524l-444.5,260.7v-193.2L1809.2,1578L1809.2,1578%20L1809.2,1578z'/%3e%3cpolygon%20style='fill:%23FFFFFF;'%20points='1692.1,1509.6%201528.8,1605.3%201528.8,1413%201692.1,1316.4%201692.1,1509.6%20'/%3e%3cpath%20style='fill:%23FFFFFF;'%20d='M1692.1,986.4l0.9,193.2l-281.2,165v330.8l-163.3,95.7l-163.3-95.7v-330.8l-281.2-165V986.4%20L968,889.8l279.5,165.8l281.2-165.8l164.1,96.6H1692.1L1692.1,986.4z%20M803.9,656.5l443.7-261.6l444.5,261.6l-163.3,96.6%20l-281.2-165.8L967.2,753.1L803.9,656.5L803.9,656.5z'/%3e%3c/g%3e%3c/svg%3e",P8="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='151'%20height='172'%20viewBox='0%200%20151%20172'%20fill='none'%3e%3cpath%20d='M144.518%2039.2113L82.214%203.03438C80.1932%201.87961%2077.9919%201.28418%2075.7545%201.28418C73.5352%201.28418%2071.3158%201.87961%2069.3311%203.03438L7.00937%2039.2474C3.05788%2041.5569%200.585938%2045.8151%200.585938%2050.4162V122.842C0.585938%20127.443%203.05788%20131.756%207.00937%20134.047L18.2143%20140.561L34.5616%20150.052L38.2243%20139.965L71.8932%2047.1143C72.2%2046.2121%2071.5504%2045.2378%2070.54%2045.2378H54.752C53.5792%2045.2378%2052.4966%2045.9775%2052.1177%2047.0782L21.8951%20130.474L12.2961%20124.899C11.5743%20124.484%2011.1232%20123.708%2011.1232%20122.878V50.4162C11.1232%2049.5862%2011.5743%2048.8103%2012.2961%2048.3953L74.6178%2012.1824C74.9606%2011.9658%2075.3756%2011.8756%2075.7725%2011.8756C76.1875%2011.8756%2076.5665%2011.9839%2076.9454%2012.1824L139.285%2048.3953C140.007%2048.8103%20140.458%2049.5862%20140.458%2050.4162V122.842C140.458%20123.672%20140.007%20124.448%20139.285%20124.863L129.794%20130.384L104.822%2061.4768C104.371%2060.2137%20102.639%2060.2137%20102.188%2061.4768L93.9602%2084.1392C93.7257%2084.7707%2093.7257%2085.4744%2093.9602%2086.0879L113.447%20139.875L106.969%20143.646L91.0192%2099.6023C90.5681%2098.3393%2088.8359%2098.3393%2088.3848%2099.6023L80.1571%20122.265C79.9225%20122.896%2079.9225%20123.6%2080.1571%20124.213L90.6403%20153.137L76.9634%20161.094C76.6206%20161.311%2076.2056%20161.401%2075.7906%20161.401C75.3756%20161.401%2074.9967%20161.293%2074.6178%20161.094L61.1033%20153.227L99.5537%2047.1323C99.8965%2046.1941%2099.2108%2045.2017%2098.2365%2045.2017H82.4486C81.2758%2045.2017%2080.1932%2045.9414%2079.8142%2047.0421L44.756%20143.718L41.0932%20153.805L57.4405%20163.295L69.3672%20170.224C71.3519%20171.379%2073.5713%20171.974%2075.7906%20171.974C78.0099%20171.974%2080.2292%20171.379%2082.214%20170.224L144.554%20134.011C148.541%20131.701%20150.977%20127.443%20150.977%20122.806V50.4162C150.977%2045.8151%20148.505%2041.5028%20144.554%2039.2113H144.518Z'%20fill='white'/%3e%3c/svg%3e",X8="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='CIRCLE_OUTLINE_BLACK'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20512%20512'%20style='enable-background:new%200%200%20512%20512;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23FDDE00;}%20.st1{fill:%233C2D0C;}%20.st2{fill:%23E78C19;}%20.st3{fill:%23EFB99D;}%20.st4{fill:%23FBFBFB;}%20.st5{fill:%23E72D36;}%20%3c/style%3e%3ccircle%20class='st0'%20cx='256'%20cy='256'%20r='256'/%3e%3cpath%20class='st1'%20d='M131.4,181c0,0-13.2,16.7-8.8,92.2c0,0-28.9,74-19.1,111.8c9.8,37.7,48,35.8,48,35.8s61.3,53.9,108.3,6.4%20c47.1-47.6-39.2-231.9-39.2-231.9l-10.8-63.7c0,0-11.8,9.3-10.3,70.6s-24,18.1-24,18.1L131.4,181z'/%3e%3cpath%20class='st2'%20d='M136.3,247.7l-16.2,45.6l-5.9,31.9c0,0-20.1,71.1,62.8,70.1c0,0,64.7,57.9,106.9,19.1l11.3-12.3l19.6-30.4%20l32.4-96.6c0,0-10.3-66.2-75.5-93.6c0,0-5.4-2.9-15.2,1c0,0-27-60.8-44.1-53.4c0,0-14.7,7.8-2,67.7l-23,10.3%20c0,0-25.2-47.8-48.5-38.2C117.2,177.6,136.3,247.7,136.3,247.7z'/%3e%3cpath%20class='st3'%20d='M220.1,158.9l2,26.5c0,0,1.5,15.2,17.6,9.8c4.6-1.5,8.6-4.7,8.2-9.9c-0.3-3.9-3-7.5-4.8-10.8%20c-3.3-6.3-6-13-9.9-19.1c-2-3.1-6.1-10-10.6-9.2C222.6,146.2,219.2,145.2,220.1,158.9z'/%3e%3cpath%20class='st3'%20d='M149.3,188.7c0.3-0.2,6.9-8.5,20.6,11.7c13.7,20.2,12.3,17.6,12.3,17.6s7.4,8.1-7.7,18.5%20c-3.3,2.4-6.9,4.4-10.7,6c-2.4,0.9-4.9,1.4-7.4,1.4c-2.9-0.1-4.2-1.6-4.9-4.3c-2.3-8.8-4.9-17.6-6.2-26.6%20C144.3,206,142.3,193.2,149.3,188.7z'/%3e%3cpath%20class='st4'%20d='M308.5,229.4c0,4.8-7,8.7-15.7,8.7c-8.7,0-15.7-3.9-15.7-8.7s7.2-11.9,15.8-11.9S308.5,224.6,308.5,229.4z'/%3e%3cellipse%20transform='matrix(0.4925%20-0.8703%200.8703%200.4925%20-121.8385%20314.1253)'%20class='st4'%20cx='208.4'%20cy='261.5'%20rx='17.1'%20ry='11'/%3e%3cpath%20class='st4'%20d='M240.2,306.7l42.9-22.3c0,0,53.4-27.9,66.4-6.4s0,54.4,0,54.4s-5.6,38.5-44.9,41.9l-21.1,2.9l-27,0.7%20c0,0-43.4,2.5-75.3-21.1l-10.1-12.3c0,0-20.3-27.9-6.1-48s62.8,11,62.8,11S234.6,311.2,240.2,306.7z'/%3e%3ccircle%20class='st5'%20cx='337.5'%20cy='185.2'%20r='10.3'/%3e%3ccircle%20class='st5'%20cx='314.7'%20cy='159.9'%20r='10.3'/%3e%3ccircle%20class='st5'%20cx='278.2'%20cy='151.8'%20r='10.3'/%3e%3cpath%20class='st5'%20d='M286.3,78.8c2.2,30.4-2.2,57.9-9.6,57.9s-17.2-29.7-17.2-57.9c0-11.6,6.1-13.5,13.5-13.5%20C280.5,65.3,285.5,67.2,286.3,78.8z'/%3e%3cpath%20class='st5'%20d='M354.5,97.7c-11.2,28.3-27.1,51.2-33.7,48c-6.6-3.2-2.6-34.2,9.7-59.6c5.1-10.5,11.4-9.5,18-6.3%20C355.1,83.1,358.8,86.9,354.5,97.7z'/%3e%3cpath%20class='st5'%20d='M403.3,152.9c-24.7,17.9-50.3,28.7-54.2,22.4c-3.9-6.3,16.2-30.2,40.1-45.1c9.9-6.1,14.7-1.9,18.6,4.3%20C411.6,140.8,412.7,146,403.3,152.9z'/%3e%3cpath%20d='M238.2,276.8c-0.9,0.1-1.8,0.2-2.7,0.3c0.1,0.3,0.2,0.6,0.2,1c0,3.1-4.9,5.7-11,5.9c0,0.3-0.1,0.5,0,0.8%20c0.3,3.8,6.9,6.4,14.6,5.8c7.8-0.6,13.9-4.2,13.6-8C252.5,278.8,246,276.2,238.2,276.8z'/%3e%3cpath%20d='M292.4,263.4c-0.9,0.1-1.8,0.2-2.7,0.3c0.1,0.3,0.2,0.6,0.2,1c0,3.1-4.9,5.7-11,5.9c0,0.3-0.1,0.5,0,0.8%20c0.3,3.8,6.9,6.4,14.6,5.8c7.8-0.6,13.9-4.2,13.6-8C306.8,265.4,300.2,262.8,292.4,263.4z'/%3e%3cpath%20d='M310.2,279.3c0,0-21.5,6.3-20.2,18.4s27.2,18.4,27.2,18.4s7,2.8,11-3.9c4-6.6,9.9-15.6,8.3-28.5%20C336.5,283.7,336,274.1,310.2,279.3z'/%3e%3c/svg%3e",Z8="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20336.41%20337.42'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23f0b90b;stroke:%23f0b90b;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%201%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cpath%20class='cls-1'%20d='M168.2.71l41.5,42.5L105.2,147.71l-41.5-41.5Z'/%3e%3cpath%20class='cls-1'%20d='M231.2,63.71l41.5,42.5L105.2,273.71l-41.5-41.5Z'/%3e%3cpath%20class='cls-1'%20d='M42.2,126.71l41.5,42.5-41.5,41.5L.7,169.21Z'/%3e%3cpath%20class='cls-1'%20d='M294.2,126.71l41.5,42.5L168.2,336.71l-41.5-41.5Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",K8="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3c!--%20Creator:%20CorelDRAW%202019%20(64-Bit)%20--%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20width='100%25'%20height='100%25'%20version='1.1'%20shape-rendering='geometricPrecision'%20text-rendering='geometricPrecision'%20image-rendering='optimizeQuality'%20fill-rule='evenodd'%20clip-rule='evenodd'%20viewBox='0%200%20444.44%20444.44'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns:xodm='http://www.corel.com/coreldraw/odm/2003'%3e%3cg%20id='Layer_x0020_1'%3e%3cmetadata%20id='CorelCorpID_0Corel-Layer'/%3e%3cpath%20fill='%23F5AC37'%20fill-rule='nonzero'%20d='M222.22%200c122.74,0%20222.22,99.5%20222.22,222.22%200,122.74%20-99.48,222.22%20-222.22,222.22%20-122.72,0%20-222.22,-99.49%20-222.22,-222.22%200,-122.72%2099.5,-222.22%20222.22,-222.22z'/%3e%3cpath%20fill='%23FEFEFD'%20fill-rule='nonzero'%20d='M230.41%20237.91l84.44%200c1.8,0%202.65,0%202.78,-2.36%200.69,-8.59%200.69,-17.23%200,-25.83%200,-1.67%20-0.83,-2.36%20-2.64,-2.36l-168.05%200c-2.08,0%20-2.64,0.69%20-2.64,2.64l0%2024.72c0,3.19%200,3.19%203.33,3.19l82.78%200zm77.79%20-59.44c0.24,-0.63%200.24,-1.32%200,-1.94%20-1.41,-3.07%20-3.08,-6%20-5.02,-8.75%20-2.92,-4.7%20-6.36,-9.03%20-10.28,-12.92%20-1.85,-2.35%20-3.99,-4.46%20-6.39,-6.25%20-12.02,-10.23%20-26.31,-17.47%20-41.67,-21.11%20-7.75,-1.74%20-15.67,-2.57%20-23.61,-2.5l-74.58%200c-2.08,0%20-2.36,0.83%20-2.36,2.64l0%2049.3c0,2.08%200,2.64%202.64,2.64l160.27%200c0,0%201.39,-0.28%201.67,-1.11l-0.68%200zm0%2088.33c-2.36,-0.26%20-4.74,-0.26%20-7.1,0l-154.02%200c-2.08,0%20-2.78,0%20-2.78,2.78l0%2048.2c0,2.22%200,2.78%202.78,2.78l71.11%200c3.4,0.26%206.8,0.02%2010.13,-0.69%2010.32,-0.74%2020.47,-2.98%2030.15,-6.67%203.52,-1.22%206.92,-2.81%2010.13,-4.72l0.97%200c16.67,-8.67%2030.21,-22.29%2038.75,-39.01%200,0%200.97,-2.1%20-0.12,-2.65zm-191.81%2078.75l0%20-0.83%200%20-32.36%200%20-10.97%200%20-32.64c0,-1.81%200,-2.08%20-2.22,-2.08l-30.14%200c-1.67,0%20-2.36,0%20-2.36,-2.22l0%20-26.39%2032.22%200c1.8,0%202.5,0%202.5,-2.36l0%20-26.11c0,-1.67%200,-2.08%20-2.22,-2.08l-30.14%200c-1.67,0%20-2.36,0%20-2.36,-2.22l0%20-24.44c0,-1.53%200,-1.94%202.22,-1.94l29.86%200c2.08,0%202.64,0%202.64,-2.64l0%20-74.86c0,-2.22%200,-2.78%202.78,-2.78l104.16%200c7.56,0.3%2015.07,1.13%2022.5,2.5%2015.31,2.83%2030.02,8.3%2043.47,16.11%208.92,5.25%2017.13,11.59%2024.44,18.89%205.5,5.71%2010.46,11.89%2014.86,18.47%204.37,6.67%208,13.8%2010.85,21.25%200.35,1.94%202.21,3.25%204.15,2.92l24.86%200c3.19,0%203.19,0%203.33,3.06l0%2022.78c0,2.22%20-0.83,2.78%20-3.06,2.78l-19.17%200c-1.94,0%20-2.5,0%20-2.36,2.5%200.76,8.46%200.76,16.95%200,25.41%200,2.36%200,2.64%202.65,2.64l21.93%200c0.97,1.25%200,2.5%200,3.76%200.14,1.61%200.14,3.24%200,4.85l0%2016.81c0,2.36%20-0.69,3.06%20-2.78,3.06l-26.25%200c-1.83,-0.35%20-3.61,0.82%20-4.03,2.64%20-6.25,16.25%20-16.25,30.82%20-29.17,42.5%20-4.72,4.25%20-9.68,8.25%20-14.86,11.94%20-5.56,3.2%20-10.97,6.53%20-16.67,9.17%20-10.49,4.72%20-21.49,8.2%20-32.78,10.41%20-10.72,1.92%20-21.59,2.79%20-32.5,2.64l-96.39%200%200%20-0.14z'/%3e%3c/g%3e%3c/svg%3e",W8="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%202000%202000'%20width='2500'%20height='2500'%3e%3cg%20fill='%23c2a633'%3e%3cpath%20d='M1024%20659H881.12v281.69h224.79v117.94H881.12v281.67H1031c38.51%200%20316.16%204.35%20315.73-327.72S1077.44%20659%201024%20659z'/%3e%3cpath%20d='M1000%200C447.71%200%200%20447.71%200%201000s447.71%201000%201000%201000%201000-447.71%201000-1000S1552.29%200%201000%200zm39.29%201540.1H677.14v-481.46H549.48V940.7h127.65V459.21h310.82c73.53%200%20560.56-15.27%20560.56%20549.48%200%20574.09-509.21%20531.41-509.21%20531.41z'/%3e%3c/g%3e%3c/svg%3e",J8="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='katman_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20800%20800'%20style='enable-background:new%200%200%20800%20800;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23141726;}%20.st1{fill:url(%23SVGID_1_);}%20.st2{fill:url(%23SVGID_2_);}%20.st3{fill:url(%23SVGID_3_);}%20.st4{fill:url(%23SVGID_4_);}%20.st5{fill:url(%23SVGID_5_);}%20.st6{fill:url(%23SVGID_6_);}%20%3c/style%3e%3ccircle%20class='st0'%20cx='400'%20cy='400'%20r='400'/%3e%3clinearGradient%20id='SVGID_1_'%20gradientUnits='userSpaceOnUse'%20x1='574.9257'%20y1='665.8727'%20x2='248.5257'%20y2='142.3127'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st1'%20d='M536,568.9c-66.8-108.5-166.4-170-289.4-195.6c-43.5-9-87.2-8.9-129.4,7.7c-28.9,11.4-33.3,23.4-19.7,53.7%20c92.4-21.9,178.4-1.5,258.9,45c81.1,46.9,141.6,112.2,169.1,205c38.6-11.8,43.6-18.3,34.3-54.2C554.3,609.4,547.4,587.4,536,568.9%20L536,568.9z'/%3e%3clinearGradient%20id='SVGID_2_'%20gradientUnits='userSpaceOnUse'%20x1='572.5896'%20y1='667.3303'%20x2='246.1996'%20y2='143.7703'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st2'%20d='M609.1,480.6c-85.8-125-207.3-194.9-355.8-218.3c-39.3-6.2-79.4-4.5-116.2,14.3c-17.6,9-33.2,20.5-37.4,44.9%20c115.8-31.9,219.7-3.7,317.5,53c98.3,57,175.1,133.5,205,251.1c20.8-18.4,24.5-41,19.1-62C633.9,534.8,625.5,504.5,609.1,480.6%20L609.1,480.6z'/%3e%3clinearGradient%20id='SVGID_3_'%20gradientUnits='userSpaceOnUse'%20x1='577.0148'%20y1='664.5671'%20x2='250.6247'%20y2='141.0071'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st3'%20d='M105,488.6c7.3,16.2,12.1,34.5,23,47.6c5.5,6.7,22.2,4.1,33.8,5.7c1.8,0.2,3.6,0.5,5.4,0.7%20c102.9,15.3,184.1,65.1,242.1,152c3.4,5.1,8.9,12.7,13.4,12.7c17.4-0.1,34.9-2.8,52.5-4.5C449,557.5,232.8,438.3,105,488.6%20L105,488.6z'/%3e%3clinearGradient%20id='SVGID_4_'%20gradientUnits='userSpaceOnUse'%20x1='569.0272'%20y1='669.5518'%20x2='242.6272'%20y2='145.9917'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st4'%20d='M656.6,366.7C599.9,287.4,521.7,234.6,432.9,197c-61.5-26.1-125.2-41.8-192.8-33.7%20c-23.4,2.8-45.3,9.5-63.4,24.7c230.9,5.8,404.6,105.8,524,303.3c0.2-13.1,2.2-27.7-2.6-39.5C686.1,422.5,674.7,392,656.6,366.7z'/%3e%3clinearGradient%20id='SVGID_5_'%20gradientUnits='userSpaceOnUse'%20x1='571.6973'%20y1='667.8917'%20x2='245.2973'%20y2='144.3317'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st5'%20d='M709.8,325.3c-47-178.9-238-265-379.2-221.4C482.7,133.9,607.5,206.4,709.8,325.3z'/%3e%3clinearGradient%20id='SVGID_6_'%20gradientUnits='userSpaceOnUse'%20x1='579.0382'%20y1='663.3111'%20x2='252.6482'%20y2='139.7511'%20gradientTransform='matrix(1%200%200%20-1%200%20800)'%3e%3cstop%20offset='0.16'%20style='stop-color:%23C6F462'/%3e%3cstop%20offset='0.89'%20style='stop-color:%2333D9FF'/%3e%3c/linearGradient%3e%3cpath%20class='st6'%20d='M155.4,583.9c54.6,69.3,124,109.7,213,122.8C334.4,643.2,214.6,574.5,155.4,583.9L155.4,583.9z'/%3e%3c/svg%3e",e7="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2037.8%2043.6'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%232a5ada;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%201%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3cpath%20class='cls-1'%20d='M18.9,0l-4,2.3L4,8.6,0,10.9V32.7L4,35l11,6.3,4,2.3,4-2.3L33.8,35l4-2.3V10.9l-4-2.3L22.9,2.3ZM8,28.1V15.5L18.9,9.2l10.9,6.3V28.1L18.9,34.4Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",t7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='CIRCLE_OUTLINE_BLACK'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20512%20512'%20style='enable-background:new%200%200%20512%20512;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23FFD15C;}%20.st1{fill:%23FFFFFF;}%20%3c/style%3e%3cpath%20class='st0'%20d='M512,256c0,141.4-114.6,256-256,256S0,397.4,0,256S114.6,0,256,0S512,114.6,512,256z'/%3e%3cpath%20class='st1'%20d='M193.5,152.3c-10.4,1.5-4.6,10.4-4.6,10.4l-0.3,2.5c14.9,25.7,39.5,52.7,64.6,70.7c18.5,13.2,32.3,32.7,39,54.9%20c6.6,21.9,5.4,44.6-3.2,62.2c-10.4,21.2-30.1,33.5-55.3,34.7c-25.1,1.2-54.9-8.7-88.6-29.4c-0.3,0.8-0.7,1.6-1.1,2.3%20c29.2,30.1,63,48.1,98.1,52.2c35.5,4.2,71.9-5.8,102.7-27.9c-0.8,0-1.4-0.2-1.9-0.5C446.5,298.8,276.9,140.4,193.5,152.3%20L193.5,152.3z'/%3e%3cpath%20d='M462.6,267.4c-0.1-1.9-0.2-4.2-0.6-6.9c-1.3-10.5-5.5-26.6-17.7-43.7c-0.6-0.8-1.2-1.6-1.8-2.4c-0.1-0.2-0.3-0.4-0.4-0.6%20c-0.5-0.7-1.1-1.4-1.6-2.1c0,0-0.1-0.1-0.1-0.1c-0.6-0.7-1.2-1.5-1.8-2.2c-0.1-0.2-0.3-0.3-0.4-0.5c-0.5-0.6-1.1-1.3-1.6-1.9%20c-0.1-0.1-0.1-0.1-0.2-0.2c-0.6-0.7-1.2-1.3-1.8-2c-0.1-0.1-0.3-0.3-0.4-0.4c-0.5-0.6-1-1.1-1.5-1.6c-0.1-0.1-0.2-0.2-0.2-0.3%20c-0.6-0.6-1.2-1.2-1.7-1.7c-0.1-0.1-0.2-0.2-0.4-0.4c-0.5-0.5-1-1-1.5-1.4c-0.1-0.1-0.2-0.2-0.3-0.3c-0.6-0.5-1.1-1-1.7-1.5%20c-0.1-0.1-0.2-0.2-0.3-0.3c-0.5-0.4-1-0.8-1.4-1.2c-0.1-0.1-0.2-0.2-0.3-0.3c-0.5-0.5-1.1-0.9-1.6-1.3c-0.1-0.1-0.2-0.2-0.3-0.3%20c-0.4-0.4-0.9-0.7-1.3-1.1c-0.1-0.1-0.3-0.2-0.4-0.3c-0.5-0.4-1-0.8-1.5-1.1c-0.1-0.1-0.2-0.2-0.3-0.2c-0.4-0.3-0.8-0.6-1.2-0.9%20c-0.1-0.1-0.3-0.2-0.4-0.3c-0.5-0.3-0.9-0.6-1.4-1c-0.1-0.1-0.2-0.2-0.4-0.2c-0.4-0.2-0.7-0.5-1-0.7c-0.2-0.1-0.3-0.2-0.5-0.3%20c-0.4-0.2-0.8-0.5-1.1-0.7c-0.2-0.1-0.4-0.2-0.5-0.3c-0.3-0.2-0.5-0.3-0.8-0.5c-0.2-0.1-0.4-0.2-0.6-0.3c-0.2-0.1-0.5-0.3-0.7-0.4%20c-0.3-0.2-0.6-0.4-1-0.5c-0.2-0.1-0.3-0.2-0.5-0.3c-0.2-0.1-0.4-0.2-0.7-0.3c-0.1-0.1-0.2-0.1-0.3-0.2c-0.4-0.2-0.9-0.5-1.3-0.7%20c0,0-0.1,0-0.1,0c-2.7-4.8-5.7-9.6-8.9-14.4c-37.3-54.6-78.2-81.1-124.9-81.2h-0.2c-19.8,0-37.9,4.5-53,8.9c-4.3,1.3-8.8,2.6-13.1,4%20c-11,3.4-21.4,6.7-30.3,8.1c-5.6,0.9-10,3-13.1,6.2c-2.8,3-4.5,7.1-5,12.1c-1,9.7,2.5,22.8,10.1,37.8c15.3,30.4,44.6,63.9,74.6,85.4%20c3.5,2.5,6.7,5.2,9.7,8.2c-0.6,0.1-1.2,0.2-1.9,0.3c-23.5,3.4-35.8,28.6-40.7,42.3c-1.3,3.6,2.2,6.8,5.8,5.5%20c14.6-4.9,44.3-12.9,61-2.6c0.1,0,0.3-0.1,0.4-0.1c3,15,1.6,29.8-4.1,41.3c-7.5,15.1-21.8,24-40.3,24.9%20c-21.8,1.1-48.6-8.2-79.7-27.6l-0.5-0.3c-0.3-0.1-0.6-0.3-0.8-0.5c24.2-27.5,9.9-69.9,4.3-83.8c-0.7-1.8-3.3-1.8-4.3-0.1%20c-13,22.1-39.8,20.4-39.3,46.7c0,0,0,0,0-0.1c-20.4-16.6-35.6,5.5-61,2.2c-2-0.3-3.5,1.7-2.5,3.4c7.7,13.3,33.5,52.3,71.6,47.9%20l-1.8,1.3l6.8,7.5c33.3,36.7,72.9,58.7,114.6,63.6c6,0.7,12,1.1,18,1.1c34.9,0,69.6-11.7,99.4-33.9c34.2-25.4,57.9-61.3,66.8-101%20c3-13.2,4.2-26.4,3.7-39.5c7.5-3,15.7,0.3,22.2,4.7c0.1,0,0.1,0.1,0.2,0.1c0.3,0.2,0.5,0.4,0.8,0.5c0.1,0,0.1,0.1,0.2,0.1%20c0.8,0.5,1.5,1.1,2.2,1.6c0.1,0.1,0.3,0.2,0.4,0.3c0.2,0.1,0.3,0.3,0.5,0.4c0.2,0.1,0.3,0.3,0.5,0.4c0.1,0.1,0.3,0.2,0.4,0.4%20c0.3,0.2,0.6,0.5,0.8,0.7c0.1,0.1,0.2,0.2,0.3,0.2c0.2,0.2,0.4,0.4,0.6,0.5c0.1,0.1,0.2,0.2,0.3,0.3c0.2,0.2,0.4,0.3,0.6,0.5%20c0.1,0.1,0.2,0.1,0.2,0.2c0.2,0.2,0.5,0.5,0.7,0.7c0.1,0.1,0.2,0.1,0.2,0.2c0.5,0.4,1.1,0.5,1.6,0.5%20C461.7,269.5,462.7,268.6,462.6,267.4z%20M342.9,384.5c0.5,0.3,1.1,0.4,1.9,0.5c-30.8,22.2-67.2,32.1-102.7,27.9%20c-35.2-4.1-68.9-22.1-98.1-52.2c0.4-0.8,0.8-1.5,1.1-2.3c33.7,20.7,63.5,30.6,88.6,29.4c25.2-1.2,44.9-13.6,55.3-34.7%20c8.7-17.6,9.8-40.2,3.2-62.2c-6.7-22.2-20.5-41.7-39-54.9c-25.2-18-49.7-45-64.6-70.7l0.3-2.5c0,0-5.8-8.9,4.6-10.4%20C276.9,140.4,446.5,298.8,342.9,384.5z'/%3e%3cpath%20class='st1'%20d='M280.3,146.5c-2.9-4.1-8.7-15.1,9.3-15.1c18,0,45.4,20.3,51,27.8c-1.7,4.6-13.3,5.6-19.1,5.2%20s-15.6-1.4-23.2-5.2C290.8,155.6,283.2,150.6,280.3,146.5z'/%3e%3c/svg%3e",n7="/assets/popcat-DOGy5LFs.svg",l7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='CIRCLE_OUTLINE_BLACK'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20512%20512'%20style='enable-background:new%200%200%20512%20512;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23E6DAFE;}%20%3c/style%3e%3ccircle%20class='st0'%20cx='256'%20cy='256'%20r='256'/%3e%3cpath%20d='M303.4,228.5c0,20.7-16.7,37.5-37.4,37.5v37.5c41.3,0,74.7-33.5,74.7-74.9s-33.5-74.9-74.7-74.9c-13.6,0-26.4,3.6-37.4,10%20c-22.3,12.9-37.4,37.2-37.4,64.9v187.3l33.6,33.7l3.8,3.8V228.5c0-20.7,16.7-37.5,37.4-37.5S303.4,207.9,303.4,228.5z'/%3e%3cpath%20d='M266,78.7c-27.2,0-52.7,7.3-74.7,20.1c-14.1,8.1-26.7,18.5-37.4,30.7c-23.2,26.4-37.4,61.1-37.4,99.1v112.4l37.4,37.5V228.5%20c0-33.3,14.4-63.2,37.4-83.8c10.8-9.7,23.4-17.3,37.4-22.2c11.7-4.2,24.3-6.4,37.4-6.4c61.9,0,112.1,50.3,112.1,112.4%20S327.9,340.9,266,340.9v37.5c82.5,0,149.4-67.1,149.4-149.8S348.5,78.7,266,78.7z'/%3e%3c/svg%3e",a7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2032%2036.9'%20style='enable-background:new%200%200%2032%2036.9;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:url(%23SVGID_1_);}%20.st1{fill:url(%23SVGID_2_);}%20.st2{fill:url(%23SVGID_3_);}%20.st3{fill:url(%23SVGID_4_);}%20%3c/style%3e%3clinearGradient%20id='SVGID_1_'%20gradientUnits='userSpaceOnUse'%20x1='32.95'%20y1='26.3048'%20x2='-0.9788'%20y2='12.7367'%20gradientTransform='matrix(1%200%200%20-1%200%2038)'%3e%3cstop%20offset='0'%20style='stop-color:%23C200FB'/%3e%3cstop%20offset='0.4897'%20style='stop-color:%233772FF'/%3e%3cstop%20offset='1'%20style='stop-color:%235AC4BE'/%3e%3c/linearGradient%3e%3cpath%20class='st0'%20d='M30.3,13.9v12.9L16,35L1.7,26.7V10.2L16,1.9l11,6.4l1.7-1L16,0L0,9.2v18.5l16,9.2l16-9.2V12.9L30.3,13.9z'/%3e%3clinearGradient%20id='SVGID_2_'%20gradientUnits='userSpaceOnUse'%20x1='32.2949'%20y1='27.9428'%20x2='-1.6339'%20y2='14.3747'%20gradientTransform='matrix(1%200%200%20-1%200%2038)'%3e%3cstop%20offset='0'%20style='stop-color:%23C200FB'/%3e%3cstop%20offset='0.4897'%20style='stop-color:%233772FF'/%3e%3cstop%20offset='1'%20style='stop-color:%235AC4BE'/%3e%3c/linearGradient%3e%3cpath%20class='st1'%20d='M12,26.8H9.6v-8h8c0.8,0,1.5-0.3,2-0.9c0.5-0.5,0.8-1.3,0.8-2c0-0.4-0.1-0.7-0.2-1.1c-0.1-0.3-0.4-0.7-0.6-0.9%20c-0.3-0.3-0.6-0.5-0.9-0.6S18,13,17.6,13h-8v-2.4h8c1.4,0,2.7,0.6,3.7,1.6c1,1,1.6,2.3,1.6,3.7c0,1.1-0.3,2.1-0.9,3%20c-0.6,0.8-1.4,1.5-2.3,1.9c-0.9,0.3-1.9,0.4-2.9,0.4H12V26.8z'/%3e%3clinearGradient%20id='SVGID_3_'%20gradientUnits='userSpaceOnUse'%20x1='35.6876'%20y1='19.4591'%20x2='1.7588'%20y2='5.891'%20gradientTransform='matrix(1%200%200%20-1%200%2038)'%3e%3cstop%20offset='0'%20style='stop-color:%23C200FB'/%3e%3cstop%20offset='0.4897'%20style='stop-color:%233772FF'/%3e%3cstop%20offset='1'%20style='stop-color:%235AC4BE'/%3e%3c/linearGradient%3e%3cpath%20class='st2'%20d='M22.8,26.6H20l-2.2-3.8c0.9-0.1,1.7-0.2,2.5-0.5L22.8,26.6z'/%3e%3clinearGradient%20id='SVGID_4_'%20gradientUnits='userSpaceOnUse'%20x1='32.0678'%20y1='28.5037'%20x2='-1.861'%20y2='14.9356'%20gradientTransform='matrix(1%200%200%20-1%200%2038)'%3e%3cstop%20offset='0'%20style='stop-color:%23C200FB'/%3e%3cstop%20offset='0.4897'%20style='stop-color:%233772FF'/%3e%3cstop%20offset='1'%20style='stop-color:%235AC4BE'/%3e%3c/linearGradient%3e%3cpath%20class='st3'%20d='M28.7,11.2l1.7,0.9l1.7-0.9V9.2l-1.7-1l-1.7,1V11.2z'/%3e%3c/svg%3e",s7="/assets/uni-C5oaqT41.svg",i7="data:image/svg+xml,%3csvg%20width='96'%20height='96'%20viewBox='0%200%2096%2096'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M48%2095C73.9574%2095%2095%2073.9574%2095%2048C95%2022.0426%2073.9574%201%2048%201C22.0426%201%201%2022.0426%201%2048C1%2073.9574%2022.0426%2095%2048%2095Z'%20fill='%230B53BF'/%3e%3cpath%20d='M56.4609%2013.7778V19.8291C68.5341%2023.4716%2077.3759%2034.6928%2077.3759%2047.9997C77.3759%2061.3066%2068.5341%2072.5278%2056.4609%2076.1703V82.2216C71.8534%2078.4616%2083.2509%2064.5672%2083.2509%2047.9997C83.2509%2031.4322%2071.8534%2017.5378%2056.4609%2013.7778Z'%20fill='white'/%3e%3cpath%20d='M18.625%2047.9997C18.625%2034.6928%2027.4669%2023.4716%2039.54%2019.8291V13.7778C24.1475%2017.5378%2012.75%2031.4322%2012.75%2047.9997C12.75%2064.5672%2024.1475%2078.4616%2039.54%2082.2216V76.1703C27.4669%2072.5572%2018.625%2061.3066%2018.625%2047.9997Z'%20fill='white'/%3e%3cpath%20d='M60.6319%2054.5506C60.6319%2042.5362%2041.8025%2047.4713%2041.8025%2040.8325C41.8025%2038.4531%2043.7119%2036.9256%2047.3544%2036.9256C51.7019%2036.9256%2053.2%2039.0406%2053.67%2041.89H59.6625C59.1279%2036.5426%2056.0588%2033.1662%2050.9382%2032.1604V27.4375H45.0632V31.9918C39.4534%2032.7062%2035.9275%2035.973%2035.9275%2040.8325C35.9275%2052.9056%2054.7863%2048.3819%2054.7863%2054.9031C54.7863%2057.3706%2052.4069%2059.0156%2048.3825%2059.0156C43.1244%2059.0156%2041.3913%2056.695%2040.745%2053.4931H34.8994C35.2781%2059.3502%2038.8897%2063.0159%2045.0632%2063.9307V68.5625H50.9382V63.9923C56.9633%2063.2139%2060.6319%2059.7089%2060.6319%2054.5506Z'%20fill='white'/%3e%3c/svg%3e",c7="data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20339.43%20295.27'%3e%3ctitle%3etether-usdt-logo%3c/title%3e%3cpath%20d='M62.15,1.45l-61.89,130a2.52,2.52,0,0,0,.54,2.94L167.95,294.56a2.55,2.55,0,0,0,3.53,0L338.63,134.4a2.52,2.52,0,0,0,.54-2.94l-61.89-130A2.5,2.5,0,0,0,275,0H64.45a2.5,2.5,0,0,0-2.3,1.45h0Z'%20style='fill:%2350af95;fill-rule:evenodd'/%3e%3cpath%20d='M191.19,144.8v0c-1.2.09-7.4,0.46-21.23,0.46-11,0-18.81-.33-21.55-0.46v0c-42.51-1.87-74.24-9.27-74.24-18.13s31.73-16.25,74.24-18.15v28.91c2.78,0.2,10.74.67,21.74,0.67,13.2,0,19.81-.55,21-0.66v-28.9c42.42,1.89,74.08,9.29,74.08,18.13s-31.65,16.24-74.08,18.12h0Zm0-39.25V79.68h59.2V40.23H89.21V79.68H148.4v25.86c-48.11,2.21-84.29,11.74-84.29,23.16s36.18,20.94,84.29,23.16v82.9h42.78V151.83c48-2.21,84.12-11.73,84.12-23.14s-36.09-20.93-84.12-23.15h0Zm0,0h0Z'%20style='fill:%23fff;fill-rule:evenodd'/%3e%3c/svg%3e",r7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20696.8%20697.9'%20style='enable-background:new%200%200%20696.8%20697.9;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:url(%23SVGID_1_);}%20.st1{fill:url(%23SVGID_2_);}%20.st2{fill:url(%23SVGID_3_);}%20.st3{fill:url(%23SVGID_4_);}%20%3c/style%3e%3clinearGradient%20id='SVGID_1_'%20gradientUnits='userSpaceOnUse'%20x1='716.2648'%20y1='102.511'%20x2='-52.0246'%20y2='621.5151'%20gradientTransform='matrix(1%200%200%20-1%200%20700)'%3e%3cstop%20offset='0'%20style='stop-color:%230F0C48'/%3e%3cstop%20offset='1'%20style='stop-color:%23262769'/%3e%3c/linearGradient%3e%3cpath%20class='st0'%20d='M348.4,697.9c-92.3-0.1-180.9-36.8-246.2-102.2C36.9,530.3,0.1,441.5,0,349c0.1-92.6,36.9-181.3,102.2-246.7%20C167.5,36.9,256.1,0.1,348.4,0c92.3,0.1,180.9,36.9,246.2,102.3c65.3,65.4,102.1,154.1,102.2,246.7%20c-0.1,92.6-36.9,181.3-102.2,246.7S440.7,697.9,348.4,697.9z%20M348.4,26.9c-85.2,0.1-166.9,34-227.2,94.4%20C60.9,181.6,26.9,263.5,26.8,349c0.1,85.4,34,167.4,94.3,227.8c60.3,60.4,142,94.3,227.3,94.3c85.2,0,167-33.9,227.3-94.3%20C636,516.3,669.9,434.4,670,349c-0.1-85.4-34.1-167.3-94.3-227.7C515.3,60.9,433.6,26.9,348.4,26.9L348.4,26.9z'/%3e%3clinearGradient%20id='SVGID_2_'%20gradientUnits='userSpaceOnUse'%20x1='697.22'%20y1='140.5214'%20x2='60.6977'%20y2='570.4864'%20gradientTransform='matrix(1%200%200%20-1%200%20700)'%3e%3cstop%20offset='0'%20style='stop-color:%230F0C48'/%3e%3cstop%20offset='1'%20style='stop-color:%23262769'/%3e%3c/linearGradient%3e%3cpath%20class='st1'%20d='M392.4,642.7c-76.5-0.1-149.8-30.5-203.9-84.7c-54.1-54.2-84.6-127.7-84.7-204.4%20c0.1-76.7,30.6-150.2,84.7-204.4C242.6,95,315.9,64.5,392.4,64.5c76.5,0.1,149.8,30.5,203.9,84.7c54.1,54.2,84.6,127.7,84.7,204.4%20c-0.1,76.7-30.6,150.2-84.7,204.4C542.3,612.2,468.9,642.7,392.4,642.7z%20M392.4,85.3c-71,0.1-139,28.3-189.2,78.6%20s-78.4,118.5-78.6,189.6c0.1,71.1,28.4,139.3,78.6,189.6c50.2,50.3,118.2,78.5,189.2,78.6c71-0.1,139-28.3,189.2-78.6%20c50.2-50.3,78.5-118.5,78.6-189.6c-0.1-71.1-28.4-139.3-78.6-189.6C531.4,113.7,463.4,85.4,392.4,85.3L392.4,85.3z'/%3e%3clinearGradient%20id='SVGID_3_'%20gradientUnits='userSpaceOnUse'%20x1='678.1428'%20y1='178.4569'%20x2='173.4188'%20y2='519.3949'%20gradientTransform='matrix(1%200%200%20-1%200%20700)'%3e%3cstop%20offset='0'%20style='stop-color:%230F0C48'/%3e%3cstop%20offset='1'%20style='stop-color:%23262769'/%3e%3c/linearGradient%3e%3cpath%20class='st2'%20d='M436.5,587.5c-60.7,0-118.8-24.2-161.7-67.2c-42.9-43-67.1-101.3-67.1-162.1c0.1-60.8,24.2-119.1,67.1-162.1%20s101.1-67.1,161.7-67.2c60.7,0,118.8,24.2,161.7,67.2c42.9,43,67,101.3,67.1,162.1c-0.1,60.8-24.2,119.1-67.1,162.1%20C555.3,563.3,497.1,587.5,436.5,587.5L436.5,587.5z%20M436.5,144c-56.7,0-111.1,22.6-151.2,62.8c-40.1,40.2-62.7,94.7-62.8,151.5%20c0.1,56.8,22.7,111.3,62.8,151.5s94.5,62.8,151.2,62.8c56.7,0,111.1-22.6,151.2-62.8c40.1-40.2,62.7-94.7,62.8-151.5%20c-0.1-56.9-22.7-111.4-62.8-151.5C547.5,166.6,493.2,144,436.5,144L436.5,144z'/%3e%3clinearGradient%20id='SVGID_4_'%20gradientUnits='userSpaceOnUse'%20x1='659.0872'%20y1='216.4527'%20x2='286.1323'%20y2='468.3527'%20gradientTransform='matrix(1%200%200%20-1%200%20700)'%3e%3cstop%20offset='0'%20style='stop-color:%230F0C48'/%3e%3cstop%20offset='1'%20style='stop-color:%23262769'/%3e%3c/linearGradient%3e%3cpath%20class='st3'%20d='M480.5,532.3c-44.8,0-87.8-17.9-119.5-49.6c-31.7-31.8-49.5-74.8-49.6-119.7c0.1-44.9,17.9-88,49.6-119.8%20c31.7-31.8,74.7-49.6,119.5-49.7c44.8,0,87.8,17.9,119.5,49.7c31.7,31.8,49.5,74.8,49.6,119.8c-0.1,44.9-17.9,88-49.6,119.7%20C568.3,514.4,525.3,532.3,480.5,532.3L480.5,532.3z%20M480.5,202.5c-42.5,0-83.2,17-113.2,47c-30,30.1-46.9,70.9-47,113.4%20c0.1,42.6,17,83.3,47,113.4c30,30.1,70.7,47,113.2,47c42.4,0,83.1-16.9,113.2-47c30-30.1,46.9-70.9,47-113.4%20c-0.1-42.6-17-83.4-47-113.4C563.7,219.4,523,202.5,480.5,202.5z'/%3e%3c/svg%3e",o7="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20600%20600'%20style='enable-background:new%200%200%20600%20600;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23EFBFA8;}%20%3c/style%3e%3cpath%20class='st0'%20d='M300,0C134.3,0,0,134.3,0,300s134.3,300,300,300s300-134.3,300-300S465.7,0,300,0z%20M449,347%20c-13-29-61-93-131-86c-73,8-156,49-180,109c-37-29-5-79,17-102c-5-22,9-70,17-90c3-17,17-29,24-32c-1-12,20-18,30-20l1-2%20c3-9,6-20,32-28c22-8,42,12,50,23c2-6,10-15,18-8c72,11,96,90,100,127c14,10,43,36,50,60c7,29-1,35-11,43l-2,2%20C459,349,453,349,449,347z%20M435,378c-15.7,65.8-68.5,116.3-135,129c-42,0-109-66-128-97c-39-3-30-23-21-32l-5-2c18-42,69-92,169-104%20c55-7,97,32,122,72C438,357,437,371,435,378z%20M216,328c6,15,24,39,50,11C264,331,250,317,216,328z%20M256,470c-4-6,20-9,32-10l16-4%20c3-13-3-14-6-13c-24,2-22-26-16-35c7-8,22-5,27-4c5,2,13,0,16-1c15-1,14,17,11,26c-1,12-18,16-26,16c-1,9,1,13,3,13l34,8%20c13,5,6,6,0,7c-17-11-29-7-37-5l-6,2c-14-5-29-4-35-2C266,471,259,475,256,470z%20M345,344c1-12,13-32,48-14C388,342,371,361,345,344z%20'/%3e%3c/svg%3e",it={BTC:G8,ETH:V8,SOL:Q8,TRX:Y8,BNB:I8,ARB:P8,BONK:X8,BUSD:Z8,DAI:K8,DOGE:W8,JUP:J8,LINK:e7,ORCA:t7,POPCAT:n7,PYTH:l7,RAY:a7,UNI:s7,USDC:i7,USDT:c7,W:r7,WIF:o7};function n_(a){return it[a.toUpperCase()]}function Ft(a,i=8){const c=typeof a=="number"?a.toString():a,r=c.indexOf(".");return r===-1?c:c.slice(0,r+1+i)}const u7=[{ticker:"BTC",name:"Bitcoin",logo:it.BTC,color:"#F7931A",price:"$66,916.00",change:.12,bal:"0.003295",usd:"$220.57",fav:!0},{ticker:"ETH",name:"Ethereum",logo:it.ETH,color:"#627EEA",price:"$2,053.97",change:-.12,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"SOL",name:"Solana",logo:it.SOL,color:"#9945FF",price:"$163.84",change:-1.57,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"TRX",name:"Tron",logo:it.TRX,color:"#FF060A",price:"$0.1197",change:1.33,bal:"0.07636",usd:"$156.51",fav:!1},{ticker:"BNB",name:"BNB",logo:it.BNB,color:"#F3BA2F",price:"$0.00",change:0,bal:"0.00000",usd:"$0.00",fav:!1}],d7={BTC:"BTC",ETH:"ETH",SOL:"SOL",TRX:"TRX",BSC:"BNB"},f7={BTC:"Bitcoin",ETH:"Ethereum",SOL:"Solana",TRX:"Tron",BSC:"BNB"},l_="#2A2D3A";function a_(a){return a==null?"$—":`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function s_(a){return a==null?"$—":a>=1?`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:`$${a.toLocaleString("en-US",{minimumFractionDigits:4,maximumFractionDigits:6})}`}function i_(a){return u7.find(i=>i.ticker===a)}function c_(a,i){const c=d7[a],r=i_(c);return{id:`${a}-${c}`,chain:a,ticker:c,name:f7[a],logo:n_(c)??(r==null?void 0:r.logo),color:(r==null?void 0:r.color)??l_,price:s_(i.usdPrice),change:0,bal:Ft(i.formatted),usd:a_(i.usdValue),usdValue:i.usdValue,fav:!1}}function r_(a,i,c){const r=i_(i);return{id:`${a}-${i}`,chain:a,ticker:i,name:(r==null?void 0:r.name)??i,logo:n_(i)??(r==null?void 0:r.logo),color:(r==null?void 0:r.color)??l_,price:s_(c.usdPrice),change:0,bal:Ft(c.formatted),usd:a_(c.usdValue),usdValue:c.usdValue,fav:!1}}function mp(a){return parseFloat(a.formatted)>0}function h7(a){const{data:i,isLoading:c}=Yc(a);if(!i)return{rows:[],isLoading:c};const r=c_(a,i.native),d=Object.entries(i.tokens??{}).map(([f,p])=>r_(a,f,p));return{rows:[r,...d],isLoading:c}}function m7(){var r;const{data:a,isLoading:i}=Xo();if(!a)return{rows:[],isLoading:i};const c=[];for(const d of R2){const f=(r=a.perChain)==null?void 0:r[d];if(!f)continue;const p=[];f.native&&mp(f.native)&&p.push(c_(d,f.native));for(const[g,h]of Object.entries(f.tokens??{}))mp(h)&&p.push(r_(d,g,h));p.sort((g,h)=>(h.usdValue??0)-(g.usdValue??0)),c.push(...p)}return{rows:c,isLoading:i}}const p7={ETH:["USDT","USDC","DAI","WBTC","LINK","UNI"],BSC:["USDT","USDC","BUSD","WBNB","DOGE"],BTC:[],TRX:["USDT","USDC"],SOL:["USDC","USDT","RAY","BONK","JTO","PYTH","WIF","JUP","ORCA","MNGO","MSOL","STSOL","SAMO","ATLAS"]},_7={ETH:{label:"Ethereum",nativeSymbol:"ETH",hasToken:!0,hasFeeTier:!0,addressPlaceholder:"0x…",unit:"wei",color:"#627EEA",nativeDecimals:18},BSC:{label:"BSC Chain",nativeSymbol:"BSC",hasToken:!0,hasFeeTier:!1,addressPlaceholder:"0x…",unit:"wei",color:"#F3BA2F",nativeDecimals:18},BTC:{label:"Bitcoin",nativeSymbol:"BTC",hasToken:!1,hasFeeTier:!0,addressPlaceholder:"bc1q…",unit:"satoshi",color:"#F7931A",nativeDecimals:8},TRX:{label:"Tron",nativeSymbol:"TRX",hasToken:!0,hasFeeTier:!1,addressPlaceholder:"T…",unit:"sun",color:"#FF060A",nativeDecimals:6},SOL:{label:"Solana",nativeSymbol:"SOL",hasToken:!0,hasFeeTier:!1,addressPlaceholder:"Fg3R…",unit:"lamport",color:"#9945FF",nativeDecimals:9}},g7={BTC:"BTC",ETH:"ETH",SOL:"SOL",TRX:"TRX",BSC:"BSC"},v7="_overlay_1hejd_1",y7="_dialog_1hejd_14",x7="_dialogIn_1hejd_1",b7="_header_1hejd_37",j7="_title_1hejd_44",S7="_close_1hejd_50",N7="_selectsRow_1hejd_72",w7="_selectGroup_1hejd_79",C7="_selectLabel_1hejd_83",E7="_selectTrigger_1hejd_93",T7="_selectTriggerOpen_1hejd_112",R7="_selectValue_1hejd_117",A7="_chevron_1hejd_125",O7="_chevronOpen_1hejd_131",M7="_tokenDot_1hejd_137",L7="_speedDot_1hejd_158",z7="_speedDot_slow_1hejd_165",D7="_speedDot_normal_1hejd_170",k7="_speedDot_fast_1hejd_175",B7="_dropdown_1hejd_182",U7="_dropdownItem_1hejd_195",$7="_dropdownItemActive_1hejd_215",H7="_dropdownTicker_1hejd_220",q7="_dropdownName_1hejd_225",F7="_field_1hejd_233",G7="_fieldLabel_1hejd_237",V7="_input_1hejd_247",Q7="_amountWrap_1hejd_283",Y7="_amountInput_1hejd_287",I7="_amountTicker_1hejd_291",P7="_maxHint_1hejd_304",X7="_maxBtn_1hejd_314",Z7="_errorMsg_1hejd_333",K7="_submitBtn_1hejd_346",ue={overlay:v7,dialog:y7,dialogIn:x7,header:b7,title:j7,close:S7,selectsRow:N7,selectGroup:w7,selectLabel:C7,selectTrigger:E7,selectTriggerOpen:T7,selectValue:R7,chevron:A7,chevronOpen:O7,tokenDot:M7,speedDot:L7,speedDot_slow:z7,speedDot_normal:D7,speedDot_fast:k7,dropdown:B7,dropdownItem:U7,dropdownItemActive:$7,dropdownTicker:H7,dropdownName:q7,field:F7,fieldLabel:G7,input:V7,amountWrap:Q7,amountInput:Y7,amountTicker:I7,maxHint:P7,maxBtn:X7,errorMsg:Z7,submitBtn:K7},pp=[{value:"slow",label:"Медленно"},{value:"normal",label:"Нормально"},{value:"fast",label:"Быстро"}];function W7(a){var i;if(a instanceof Error)return a.message;if(a&&typeof a=="object"){const c=a;if(typeof c.message=="string")return c.message;if(typeof c.error=="string")return c.error;if(Array.isArray(c.detail)&&((i=c.detail[0])!=null&&i.msg))return String(c.detail[0].msg)}return"Что-то пошло не так. Попробуйте ещё раз."}function J7({open:a,onClose:i,network:c,tokens:r=[],initialToken:d=""}){var Ee;const f=_7[c],p=p7[c],[g,h]=j.useState(d),[m,v]=j.useState("normal"),[y,b]=j.useState(""),[N,S]=j.useState(""),[C,w]=j.useState(null),O=S8(),H=((Ee=pp.find(re=>re.value===m))==null?void 0:Ee.label)??"Нормально",L=g===""?f.nativeSymbol:g,U=r.find(re=>re.ticker===(g===""?f.nativeSymbol:g));if(j.useEffect(()=>{h(d)},[d]),j.useEffect(()=>{h("")},[c]),j.useEffect(()=>{O.isSuccess&&i()},[O.isSuccess,i]),j.useEffect(()=>{if(!a){b(""),S(""),w(null),O.reset();return}const re=ge=>{ge.key==="Escape"&&i()};return document.addEventListener("keydown",re),()=>document.removeEventListener("keydown",re)},[a,i]),!a)return null;const I=f.hasToken,W=f.hasFeeTier,B=I||W,Y=I&&W?2:1;function le(){C?w(null):i()}function me(re,ge){const[de,q=""]=re.split("."),P=q.slice(0,ge).padEnd(ge,"0");return(BigInt(de||"0")*10n**BigInt(ge)+BigInt(P||"0")).toString()}function he(){const ge=g===""?me(N,f.nativeDecimals):N;O.mutate({chain:c,to:y,amount:ge,...g?{token:g}:{},...f.hasFeeTier?{feeTier:m}:{}})}return l.jsx("div",{className:ue.overlay,onClick:le,children:l.jsxs("div",{className:ue.dialog,onClick:re=>re.stopPropagation(),children:[l.jsxs("div",{className:ue.header,children:[l.jsxs("div",{className:ue.headerLeft,children:[l.jsx("span",{className:ue.chainDot,style:{background:f.color}}),l.jsxs("span",{className:ue.title,children:["Отправить · ",f.label]})]}),l.jsx("button",{className:ue.close,onClick:i,type:"button","aria-label":"Закрыть",children:l.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:l.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),B&&l.jsxs("div",{className:ue.selectsRow,style:{gridTemplateColumns:`repeat(${Y}, 1fr)`},children:[I&&l.jsxs("div",{className:ue.selectGroup,children:[l.jsx("label",{className:ue.selectLabel,children:"Токен"}),l.jsxs("button",{type:"button",className:`${ue.selectTrigger} ${C==="token"?ue.selectTriggerOpen:""}`,onClick:()=>w(re=>re==="token"?null:"token"),children:[l.jsx("span",{className:ue.tokenDot,style:{background:f.color},children:L[0]}),l.jsx("span",{className:ue.selectValue,children:L}),l.jsx("svg",{className:`${ue.chevron} ${C==="token"?ue.chevronOpen:""}`,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:l.jsx("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),C==="token"&&l.jsxs("div",{className:ue.dropdown,children:[l.jsxs("button",{type:"button",className:`${ue.dropdownItem} ${g===""?ue.dropdownItemActive:""}`,onClick:()=>{h(""),w(null)},children:[l.jsx("span",{className:ue.tokenDot,style:{background:f.color},children:f.nativeSymbol[0]}),l.jsx("span",{className:ue.dropdownTicker,children:f.nativeSymbol}),l.jsx("span",{className:ue.dropdownName,children:"Нативный"})]}),p.map(re=>l.jsxs("button",{type:"button",className:`${ue.dropdownItem} ${g===re?ue.dropdownItemActive:""}`,onClick:()=>{h(re),w(null)},children:[l.jsx("span",{className:ue.tokenDot,style:{background:"rgba(255,255,255,0.12)"},children:re[0]}),l.jsx("span",{className:ue.dropdownTicker,children:re})]},re))]})]}),W&&l.jsxs("div",{className:ue.selectGroup,children:[l.jsx("label",{className:ue.selectLabel,children:"Скорость"}),l.jsxs("button",{type:"button",className:`${ue.selectTrigger} ${C==="speed"?ue.selectTriggerOpen:""}`,onClick:()=>w(re=>re==="speed"?null:"speed"),children:[l.jsx("span",{className:`${ue.speedDot} ${ue[`speedDot_${m}`]}`}),l.jsx("span",{className:ue.selectValue,children:H}),l.jsx("svg",{className:`${ue.chevron} ${C==="speed"?ue.chevronOpen:""}`,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:l.jsx("path",{d:"M2 4l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),C==="speed"&&l.jsx("div",{className:ue.dropdown,children:pp.map(re=>l.jsxs("button",{type:"button",className:`${ue.dropdownItem} ${re.value===m?ue.dropdownItemActive:""}`,onClick:()=>{v(re.value),w(null)},children:[l.jsx("span",{className:`${ue.speedDot} ${ue[`speedDot_${re.value}`]}`}),l.jsx("span",{children:re.label})]},re.value))})]})]}),l.jsxs("div",{className:ue.field,children:[l.jsx("label",{className:ue.fieldLabel,children:"Адрес кошелька"}),l.jsx("input",{className:ue.input,type:"text",placeholder:f.addressPlaceholder,value:y,onChange:re=>b(re.target.value),autoComplete:"off",spellCheck:!1})]}),l.jsxs("div",{className:ue.field,children:[l.jsx("label",{className:ue.fieldLabel,children:"Количество"}),l.jsxs("div",{className:ue.amountWrap,children:[l.jsx("input",{className:`${ue.input} ${ue.amountInput}`,type:"number",placeholder:"0.00",value:N,onChange:re=>S(re.target.value),min:"0",step:"any"}),l.jsx("span",{className:ue.amountTicker,children:L})]}),U&&l.jsxs("div",{className:ue.maxHint,children:["Макс:"," ",l.jsxs("button",{type:"button",className:ue.maxBtn,onClick:()=>S(U.bal),children:[U.bal," ",L]})]})]}),O.isError&&l.jsx("div",{className:ue.errorMsg,children:W7(O.error)}),l.jsx("button",{className:ue.submitBtn,type:"button",disabled:O.isPending,onClick:he,children:O.isPending?"Отправка…":"Отправить"})]})})}var e9=Object.defineProperty,qo=Object.getOwnPropertySymbols,o_=Object.prototype.hasOwnProperty,u_=Object.prototype.propertyIsEnumerable,_p=(a,i,c)=>i in a?e9(a,i,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[i]=c,s2=(a,i)=>{for(var c in i||(i={}))o_.call(i,c)&&_p(a,c,i[c]);if(qo)for(var c of qo(i))u_.call(i,c)&&_p(a,c,i[c]);return a},i2=(a,i)=>{var c={};for(var r in a)o_.call(a,r)&&i.indexOf(r)<0&&(c[r]=a[r]);if(a!=null&&qo)for(var r of qo(a))i.indexOf(r)<0&&u_.call(a,r)&&(c[r]=a[r]);return c};/**
* @license QR Code generator library (TypeScript)
* Copyright (c) Project Nayuki.
* SPDX-License-Identifier: MIT
*/var ys;(a=>{const i=class Me{constructor(h,m,v,y){if(this.version=h,this.errorCorrectionLevel=m,this.modules=[],this.isFunction=[],h<Me.MIN_VERSION||h>Me.MAX_VERSION)throw new RangeError("Version value out of range");if(y<-1||y>7)throw new RangeError("Mask value out of range");this.size=h*4+17;let b=[];for(let S=0;S<this.size;S++)b.push(!1);for(let S=0;S<this.size;S++)this.modules.push(b.slice()),this.isFunction.push(b.slice());this.drawFunctionPatterns();const N=this.addEccAndInterleave(v);if(this.drawCodewords(N),y==-1){let S=1e9;for(let C=0;C<8;C++){this.applyMask(C),this.drawFormatBits(C);const w=this.getPenaltyScore();w<S&&(y=C,S=w),this.applyMask(C)}}d(0<=y&&y<=7),this.mask=y,this.applyMask(y),this.drawFormatBits(y),this.isFunction=[]}static encodeText(h,m){const v=a.QrSegment.makeSegments(h);return Me.encodeSegments(v,m)}static encodeBinary(h,m){const v=a.QrSegment.makeBytes(h);return Me.encodeSegments([v],m)}static encodeSegments(h,m,v=1,y=40,b=-1,N=!0){if(!(Me.MIN_VERSION<=v&&v<=y&&y<=Me.MAX_VERSION)||b<-1||b>7)throw new RangeError("Invalid value");let S,C;for(S=v;;S++){const L=Me.getNumDataCodewords(S,m)*8,U=p.getTotalBits(h,S);if(U<=L){C=U;break}if(S>=y)throw new RangeError("Data too long")}for(const L of[Me.Ecc.MEDIUM,Me.Ecc.QUARTILE,Me.Ecc.HIGH])N&&C<=Me.getNumDataCodewords(S,L)*8&&(m=L);let w=[];for(const L of h){c(L.mode.modeBits,4,w),c(L.numChars,L.mode.numCharCountBits(S),w);for(const U of L.getData())w.push(U)}d(w.length==C);const O=Me.getNumDataCodewords(S,m)*8;d(w.length<=O),c(0,Math.min(4,O-w.length),w),c(0,(8-w.length%8)%8,w),d(w.length%8==0);for(let L=236;w.length<O;L^=253)c(L,8,w);let H=[];for(;H.length*8<w.length;)H.push(0);return w.forEach((L,U)=>H[U>>>3]|=L<<7-(U&7)),new Me(S,m,H,b)}getModule(h,m){return 0<=h&&h<this.size&&0<=m&&m<this.size&&this.modules[m][h]}getModules(){return this.modules}drawFunctionPatterns(){for(let v=0;v<this.size;v++)this.setFunctionModule(6,v,v%2==0),this.setFunctionModule(v,6,v%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const h=this.getAlignmentPatternPositions(),m=h.length;for(let v=0;v<m;v++)for(let y=0;y<m;y++)v==0&&y==0||v==0&&y==m-1||v==m-1&&y==0||this.drawAlignmentPattern(h[v],h[y]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(h){const m=this.errorCorrectionLevel.formatBits<<3|h;let v=m;for(let b=0;b<10;b++)v=v<<1^(v>>>9)*1335;const y=(m<<10|v)^21522;d(y>>>15==0);for(let b=0;b<=5;b++)this.setFunctionModule(8,b,r(y,b));this.setFunctionModule(8,7,r(y,6)),this.setFunctionModule(8,8,r(y,7)),this.setFunctionModule(7,8,r(y,8));for(let b=9;b<15;b++)this.setFunctionModule(14-b,8,r(y,b));for(let b=0;b<8;b++)this.setFunctionModule(this.size-1-b,8,r(y,b));for(let b=8;b<15;b++)this.setFunctionModule(8,this.size-15+b,r(y,b));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let h=this.version;for(let v=0;v<12;v++)h=h<<1^(h>>>11)*7973;const m=this.version<<12|h;d(m>>>18==0);for(let v=0;v<18;v++){const y=r(m,v),b=this.size-11+v%3,N=Math.floor(v/3);this.setFunctionModule(b,N,y),this.setFunctionModule(N,b,y)}}drawFinderPattern(h,m){for(let v=-4;v<=4;v++)for(let y=-4;y<=4;y++){const b=Math.max(Math.abs(y),Math.abs(v)),N=h+y,S=m+v;0<=N&&N<this.size&&0<=S&&S<this.size&&this.setFunctionModule(N,S,b!=2&&b!=4)}}drawAlignmentPattern(h,m){for(let v=-2;v<=2;v++)for(let y=-2;y<=2;y++)this.setFunctionModule(h+y,m+v,Math.max(Math.abs(y),Math.abs(v))!=1)}setFunctionModule(h,m,v){this.modules[m][h]=v,this.isFunction[m][h]=!0}addEccAndInterleave(h){const m=this.version,v=this.errorCorrectionLevel;if(h.length!=Me.getNumDataCodewords(m,v))throw new RangeError("Invalid argument");const y=Me.NUM_ERROR_CORRECTION_BLOCKS[v.ordinal][m],b=Me.ECC_CODEWORDS_PER_BLOCK[v.ordinal][m],N=Math.floor(Me.getNumRawDataModules(m)/8),S=y-N%y,C=Math.floor(N/y);let w=[];const O=Me.reedSolomonComputeDivisor(b);for(let L=0,U=0;L<y;L++){let I=h.slice(U,U+C-b+(L<S?0:1));U+=I.length;const W=Me.reedSolomonComputeRemainder(I,O);L<S&&I.push(0),w.push(I.concat(W))}let H=[];for(let L=0;L<w[0].length;L++)w.forEach((U,I)=>{(L!=C-b||I>=S)&&H.push(U[L])});return d(H.length==N),H}drawCodewords(h){if(h.length!=Math.floor(Me.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let m=0;for(let v=this.size-1;v>=1;v-=2){v==6&&(v=5);for(let y=0;y<this.size;y++)for(let b=0;b<2;b++){const N=v-b,C=(v+1&2)==0?this.size-1-y:y;!this.isFunction[C][N]&&m<h.length*8&&(this.modules[C][N]=r(h[m>>>3],7-(m&7)),m++)}}d(m==h.length*8)}applyMask(h){if(h<0||h>7)throw new RangeError("Mask value out of range");for(let m=0;m<this.size;m++)for(let v=0;v<this.size;v++){let y;switch(h){case 0:y=(v+m)%2==0;break;case 1:y=m%2==0;break;case 2:y=v%3==0;break;case 3:y=(v+m)%3==0;break;case 4:y=(Math.floor(v/3)+Math.floor(m/2))%2==0;break;case 5:y=v*m%2+v*m%3==0;break;case 6:y=(v*m%2+v*m%3)%2==0;break;case 7:y=((v+m)%2+v*m%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[m][v]&&y&&(this.modules[m][v]=!this.modules[m][v])}}getPenaltyScore(){let h=0;for(let b=0;b<this.size;b++){let N=!1,S=0,C=[0,0,0,0,0,0,0];for(let w=0;w<this.size;w++)this.modules[b][w]==N?(S++,S==5?h+=Me.PENALTY_N1:S>5&&h++):(this.finderPenaltyAddHistory(S,C),N||(h+=this.finderPenaltyCountPatterns(C)*Me.PENALTY_N3),N=this.modules[b][w],S=1);h+=this.finderPenaltyTerminateAndCount(N,S,C)*Me.PENALTY_N3}for(let b=0;b<this.size;b++){let N=!1,S=0,C=[0,0,0,0,0,0,0];for(let w=0;w<this.size;w++)this.modules[w][b]==N?(S++,S==5?h+=Me.PENALTY_N1:S>5&&h++):(this.finderPenaltyAddHistory(S,C),N||(h+=this.finderPenaltyCountPatterns(C)*Me.PENALTY_N3),N=this.modules[w][b],S=1);h+=this.finderPenaltyTerminateAndCount(N,S,C)*Me.PENALTY_N3}for(let b=0;b<this.size-1;b++)for(let N=0;N<this.size-1;N++){const S=this.modules[b][N];S==this.modules[b][N+1]&&S==this.modules[b+1][N]&&S==this.modules[b+1][N+1]&&(h+=Me.PENALTY_N2)}let m=0;for(const b of this.modules)m=b.reduce((N,S)=>N+(S?1:0),m);const v=this.size*this.size,y=Math.ceil(Math.abs(m*20-v*10)/v)-1;return d(0<=y&&y<=9),h+=y*Me.PENALTY_N4,d(0<=h&&h<=2568888),h}getAlignmentPatternPositions(){if(this.version==1)return[];{const h=Math.floor(this.version/7)+2,m=this.version==32?26:Math.ceil((this.version*4+4)/(h*2-2))*2;let v=[6];for(let y=this.size-7;v.length<h;y-=m)v.splice(1,0,y);return v}}static getNumRawDataModules(h){if(h<Me.MIN_VERSION||h>Me.MAX_VERSION)throw new RangeError("Version number out of range");let m=(16*h+128)*h+64;if(h>=2){const v=Math.floor(h/7)+2;m-=(25*v-10)*v-55,h>=7&&(m-=36)}return d(208<=m&&m<=29648),m}static getNumDataCodewords(h,m){return Math.floor(Me.getNumRawDataModules(h)/8)-Me.ECC_CODEWORDS_PER_BLOCK[m.ordinal][h]*Me.NUM_ERROR_CORRECTION_BLOCKS[m.ordinal][h]}static reedSolomonComputeDivisor(h){if(h<1||h>255)throw new RangeError("Degree out of range");let m=[];for(let y=0;y<h-1;y++)m.push(0);m.push(1);let v=1;for(let y=0;y<h;y++){for(let b=0;b<m.length;b++)m[b]=Me.reedSolomonMultiply(m[b],v),b+1<m.length&&(m[b]^=m[b+1]);v=Me.reedSolomonMultiply(v,2)}return m}static reedSolomonComputeRemainder(h,m){let v=m.map(y=>0);for(const y of h){const b=y^v.shift();v.push(0),m.forEach((N,S)=>v[S]^=Me.reedSolomonMultiply(N,b))}return v}static reedSolomonMultiply(h,m){if(h>>>8||m>>>8)throw new RangeError("Byte out of range");let v=0;for(let y=7;y>=0;y--)v=v<<1^(v>>>7)*285,v^=(m>>>y&1)*h;return d(v>>>8==0),v}finderPenaltyCountPatterns(h){const m=h[1];d(m<=this.size*3);const v=m>0&&h[2]==m&&h[3]==m*3&&h[4]==m&&h[5]==m;return(v&&h[0]>=m*4&&h[6]>=m?1:0)+(v&&h[6]>=m*4&&h[0]>=m?1:0)}finderPenaltyTerminateAndCount(h,m,v){return h&&(this.finderPenaltyAddHistory(m,v),m=0),m+=this.size,this.finderPenaltyAddHistory(m,v),this.finderPenaltyCountPatterns(v)}finderPenaltyAddHistory(h,m){m[0]==0&&(h+=this.size),m.pop(),m.unshift(h)}};i.MIN_VERSION=1,i.MAX_VERSION=40,i.PENALTY_N1=3,i.PENALTY_N2=3,i.PENALTY_N3=40,i.PENALTY_N4=10,i.ECC_CODEWORDS_PER_BLOCK=[[-1,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],[-1,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],[-1,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],[-1,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]],i.NUM_ERROR_CORRECTION_BLOCKS=[[-1,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],[-1,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],[-1,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],[-1,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]],a.QrCode=i;function c(g,h,m){if(h<0||h>31||g>>>h)throw new RangeError("Value out of range");for(let v=h-1;v>=0;v--)m.push(g>>>v&1)}function r(g,h){return(g>>>h&1)!=0}function d(g){if(!g)throw new Error("Assertion error")}const f=class ft{constructor(h,m,v){if(this.mode=h,this.numChars=m,this.bitData=v,m<0)throw new RangeError("Invalid argument");this.bitData=v.slice()}static makeBytes(h){let m=[];for(const v of h)c(v,8,m);return new ft(ft.Mode.BYTE,h.length,m)}static makeNumeric(h){if(!ft.isNumeric(h))throw new RangeError("String contains non-numeric characters");let m=[];for(let v=0;v<h.length;){const y=Math.min(h.length-v,3);c(parseInt(h.substring(v,v+y),10),y*3+1,m),v+=y}return new ft(ft.Mode.NUMERIC,h.length,m)}static makeAlphanumeric(h){if(!ft.isAlphanumeric(h))throw new RangeError("String contains unencodable characters in alphanumeric mode");let m=[],v;for(v=0;v+2<=h.length;v+=2){let y=ft.ALPHANUMERIC_CHARSET.indexOf(h.charAt(v))*45;y+=ft.ALPHANUMERIC_CHARSET.indexOf(h.charAt(v+1)),c(y,11,m)}return v<h.length&&c(ft.ALPHANUMERIC_CHARSET.indexOf(h.charAt(v)),6,m),new ft(ft.Mode.ALPHANUMERIC,h.length,m)}static makeSegments(h){return h==""?[]:ft.isNumeric(h)?[ft.makeNumeric(h)]:ft.isAlphanumeric(h)?[ft.makeAlphanumeric(h)]:[ft.makeBytes(ft.toUtf8ByteArray(h))]}static makeEci(h){let m=[];if(h<0)throw new RangeError("ECI assignment value out of range");if(h<128)c(h,8,m);else if(h<16384)c(2,2,m),c(h,14,m);else if(h<1e6)c(6,3,m),c(h,21,m);else throw new RangeError("ECI assignment value out of range");return new ft(ft.Mode.ECI,0,m)}static isNumeric(h){return ft.NUMERIC_REGEX.test(h)}static isAlphanumeric(h){return ft.ALPHANUMERIC_REGEX.test(h)}getData(){return this.bitData.slice()}static getTotalBits(h,m){let v=0;for(const y of h){const b=y.mode.numCharCountBits(m);if(y.numChars>=1<<b)return 1/0;v+=4+b+y.bitData.length}return v}static toUtf8ByteArray(h){h=encodeURI(h);let m=[];for(let v=0;v<h.length;v++)h.charAt(v)!="%"?m.push(h.charCodeAt(v)):(m.push(parseInt(h.substring(v+1,v+3),16)),v+=2);return m}};f.NUMERIC_REGEX=/^[0-9]*$/,f.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,f.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let p=f;a.QrSegment=f})(ys||(ys={}));(a=>{(i=>{const c=class{constructor(d,f){this.ordinal=d,this.formatBits=f}};c.LOW=new c(0,1),c.MEDIUM=new c(1,0),c.QUARTILE=new c(2,3),c.HIGH=new c(3,2),i.Ecc=c})(a.QrCode||(a.QrCode={}))})(ys||(ys={}));(a=>{(i=>{const c=class{constructor(d,f){this.modeBits=d,this.numBitsCharCount=f}numCharCountBits(d){return this.numBitsCharCount[Math.floor((d+7)/17)]}};c.NUMERIC=new c(1,[10,12,14]),c.ALPHANUMERIC=new c(2,[9,11,13]),c.BYTE=new c(4,[8,16,16]),c.KANJI=new c(8,[8,10,12]),c.ECI=new c(7,[0,0,0]),i.Mode=c})(a.QrSegment||(a.QrSegment={}))})(ys||(ys={}));var mi=ys;/**
* @license qrcode.react
* Copyright (c) Paul O'Shannessy
* SPDX-License-Identifier: ISC
*/var t9={L:mi.QrCode.Ecc.LOW,M:mi.QrCode.Ecc.MEDIUM,Q:mi.QrCode.Ecc.QUARTILE,H:mi.QrCode.Ecc.HIGH},d_=128,f_="L",h_="#FFFFFF",m_="#000000",p_=!1,__=1,n9=4,l9=0,a9=.1;function g_(a,i=0){const c=[];return a.forEach(function(r,d){let f=null;r.forEach(function(p,g){if(!p&&f!==null){c.push(`M${f+i} ${d+i}h${g-f}v1H${f+i}z`),f=null;return}if(g===r.length-1){if(!p)return;f===null?c.push(`M${g+i},${d+i} h1v1H${g+i}z`):c.push(`M${f+i},${d+i} h${g+1-f}v1H${f+i}z`);return}p&&f===null&&(f=g)})}),c.join("")}function v_(a,i){return a.slice().map((c,r)=>r<i.y||r>=i.y+i.h?c:c.map((d,f)=>f<i.x||f>=i.x+i.w?d:!1))}function s9(a,i,c,r){if(r==null)return null;const d=a.length+c*2,f=Math.floor(i*a9),p=d/i,g=(r.width||f)*p,h=(r.height||f)*p,m=r.x==null?a.length/2-g/2:r.x*p,v=r.y==null?a.length/2-h/2:r.y*p,y=r.opacity==null?1:r.opacity;let b=null;if(r.excavate){let S=Math.floor(m),C=Math.floor(v),w=Math.ceil(g+m-S),O=Math.ceil(h+v-C);b={x:S,y:C,w,h:O}}const N=r.crossOrigin;return{x:m,y:v,h,w:g,excavation:b,opacity:y,crossOrigin:N}}function i9(a,i){return i!=null?Math.max(Math.floor(i),0):a?n9:l9}function y_({value:a,level:i,minVersion:c,includeMargin:r,marginSize:d,imageSettings:f,size:p,boostLevel:g}){let h=Et.useMemo(()=>{const S=(Array.isArray(a)?a:[a]).reduce((C,w)=>(C.push(...mi.QrSegment.makeSegments(w)),C),[]);return mi.QrCode.encodeSegments(S,t9[i],c,void 0,void 0,g)},[a,i,c,g]);const{cells:m,margin:v,numCells:y,calculatedImageSettings:b}=Et.useMemo(()=>{let N=h.getModules();const S=i9(r,d),C=N.length+S*2,w=s9(N,p,S,f);return{cells:N,margin:S,numCells:C,calculatedImageSettings:w}},[h,p,f,r,d]);return{qrcode:h,margin:v,cells:m,numCells:y,calculatedImageSettings:b}}var c9=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),r9=Et.forwardRef(function(i,c){const r=i,{value:d,size:f=d_,level:p=f_,bgColor:g=h_,fgColor:h=m_,includeMargin:m=p_,minVersion:v=__,boostLevel:y,marginSize:b,imageSettings:N}=r,C=i2(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:w}=C,O=i2(C,["style"]),H=N==null?void 0:N.src,L=Et.useRef(null),U=Et.useRef(null),I=Et.useCallback(ge=>{L.current=ge,typeof c=="function"?c(ge):c&&(c.current=ge)},[c]),[W,B]=Et.useState(!1),{margin:Y,cells:le,numCells:me,calculatedImageSettings:he}=y_({value:d,level:p,minVersion:v,boostLevel:y,includeMargin:m,marginSize:b,imageSettings:N,size:f});Et.useEffect(()=>{if(L.current!=null){const ge=L.current,de=ge.getContext("2d");if(!de)return;let q=le;const P=U.current,se=he!=null&&P!==null&&P.complete&&P.naturalHeight!==0&&P.naturalWidth!==0;se&&he.excavation!=null&&(q=v_(le,he.excavation));const Te=window.devicePixelRatio||1;ge.height=ge.width=f*Te;const Re=f/me*Te;de.scale(Re,Re),de.fillStyle=g,de.fillRect(0,0,me,me),de.fillStyle=h,c9?de.fill(new Path2D(g_(q,Y))):le.forEach(function(R,V){R.forEach(function(Z,te){Z&&de.fillRect(te+Y,V+Y,1,1)})}),he&&(de.globalAlpha=he.opacity),se&&de.drawImage(P,he.x+Y,he.y+Y,he.w,he.h)}}),Et.useEffect(()=>{B(!1)},[H]);const Ee=s2({height:f,width:f},w);let re=null;return H!=null&&(re=Et.createElement("img",{src:H,key:H,style:{display:"none"},onLoad:()=>{B(!0)},ref:U,crossOrigin:he==null?void 0:he.crossOrigin})),Et.createElement(Et.Fragment,null,Et.createElement("canvas",s2({style:Ee,height:f,width:f,ref:I,role:"img"},O)),re)});r9.displayName="QRCodeCanvas";var x_=Et.forwardRef(function(i,c){const r=i,{value:d,size:f=d_,level:p=f_,bgColor:g=h_,fgColor:h=m_,includeMargin:m=p_,minVersion:v=__,boostLevel:y,title:b,marginSize:N,imageSettings:S}=r,C=i2(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:w,cells:O,numCells:H,calculatedImageSettings:L}=y_({value:d,level:p,minVersion:v,boostLevel:y,includeMargin:m,marginSize:N,imageSettings:S,size:f});let U=O,I=null;S!=null&&L!=null&&(L.excavation!=null&&(U=v_(O,L.excavation)),I=Et.createElement("image",{href:S.src,height:L.h,width:L.w,x:L.x+w,y:L.y+w,preserveAspectRatio:"none",opacity:L.opacity,crossOrigin:L.crossOrigin}));const W=g_(U,w);return Et.createElement("svg",s2({height:f,width:f,viewBox:`0 0 ${H} ${H}`,ref:c,role:"img"},C),!!b&&Et.createElement("title",null,b),Et.createElement("path",{fill:g,d:`M0,0 h${H}v${H}H0z`,shapeRendering:"crispEdges"}),Et.createElement("path",{fill:h,d:W,shapeRendering:"crispEdges"}),I)});x_.displayName="QRCodeSVG";const o9="_overlay_1nlll_6",u9="_dialog_1nlll_18",d9="_header_1nlll_27",f9="_title_1nlll_34",h9="_closeBtn_1nlll_40",m9="_body_1nlll_55",p9="_qrWrap_1nlll_62",_9="_label_1nlll_71",g9="_fieldRow_1nlll_77",v9="_addressInput_1nlll_82",y9="_copyBtn_1nlll_101",x9="_copyBtnDone_1nlll_127",b9="_skeleton_1nlll_132",j9="_error_1nlll_145",fn={overlay:o9,dialog:u9,header:d9,title:f9,closeBtn:h9,body:m9,qrWrap:p9,label:_9,fieldRow:g9,addressInput:v9,copyBtn:y9,copyBtnDone:x9,skeleton:b9,error:j9},S9={ETH:"Ethereum",BSC:"BSC Smart Chain",BTC:"Bitcoin",TRX:"Tron",SOL:"Solana"};function N9({open:a,onClose:i,chain:c}){const{data:r,isLoading:d,isError:f}=Po(),[p,g]=j.useState(!1);if(j.useEffect(()=>{if(!a)return;function b(N){N.key==="Escape"&&i()}return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a,i]),j.useEffect(()=>{a||g(!1)},[a]),!a)return null;const h=r==null?void 0:r.find(b=>b.chain===c),m=(h==null?void 0:h.address)??"";function v(){m&&navigator.clipboard.writeText(m).then(()=>{g(!0),setTimeout(()=>g(!1),2e3)})}function y(b){b.target===b.currentTarget&&i()}return l.jsx("div",{className:fn.overlay,onMouseDown:y,children:l.jsxs("div",{className:fn.dialog,children:[l.jsxs("div",{className:fn.header,children:[l.jsxs("span",{className:fn.title,children:["Получить ",S9[c]]}),l.jsx("button",{className:fn.closeBtn,type:"button",onClick:i,"aria-label":"Закрыть",children:"✕"})]}),l.jsxs("div",{className:fn.body,children:[d&&l.jsx("div",{className:fn.skeleton}),f&&l.jsx("p",{className:fn.error,children:"Не удалось загрузить адрес. Попробуйте позже."}),!d&&!f&&l.jsxs(l.Fragment,{children:[l.jsxs("label",{className:fn.label,children:["Ваш ",c,"-адрес"]}),l.jsxs("div",{className:fn.fieldRow,children:[l.jsx("input",{className:fn.addressInput,type:"text",readOnly:!0,value:m,onFocus:b=>b.target.select()}),l.jsx("button",{className:`${fn.copyBtn} ${p?fn.copyBtnDone:""}`,type:"button",onClick:v,disabled:!m,children:p?"Скопировано!":"Копировать"})]}),m&&l.jsx("div",{className:fn.qrWrap,children:l.jsx(x_,{value:m,size:196,level:"M",bgColor:"#ffffff",fgColor:"#000000",marginSize:2})})]})]})]})})}const w9="_wrap_uur6k_1",C9="_loading_uur6k_9",E9="_table_uur6k_14",T9="_thStar_uur6k_44",R9="_groupHeader_uur6k_49",A9="_groupHeaderInner_uur6k_58",O9="_groupLabel_uur6k_66",M9="_groupIcon_uur6k_77",L9="_groupTotal_uur6k_83",z9="_mobileGroupHeader_uur6k_90",D9="_right_uur6k_99",k9="_center_uur6k_103",B9="_btnGroup_uur6k_108",U9="_star_uur6k_114",$9="_starOn_uur6k_129",H9="_tokId_uur6k_133",q9="_tokLogo_uur6k_139",F9="_price_uur6k_174",G9="_balCol_uur6k_201",V9="_sendBtn_uur6k_214",Q9="_receiveBtn_uur6k_237",Y9="_noFont_uur6k_260",I9="_mobileList_uur6k_265",P9="_card_uur6k_269",X9="_cardInfo_uur6k_281",Z9="_cardTop_uur6k_286",K9="_cardTicker_uur6k_293",W9="_cardName_uur6k_299",J9="_cardBalCrypto_uur6k_305",eS="_cardBot_uur6k_312",tS="_cardPrice_uur6k_318",nS="_cardBalUsd_uur6k_330",lS="_mobileActions_uur6k_351",_e={wrap:w9,loading:C9,table:E9,thStar:T9,groupHeader:R9,groupHeaderInner:A9,groupLabel:O9,groupIcon:M9,groupTotal:L9,mobileGroupHeader:z9,right:D9,center:k9,btnGroup:B9,star:U9,starOn:$9,tokId:H9,tokLogo:q9,price:F9,balCol:G9,sendBtn:V9,receiveBtn:Q9,noFont:Y9,mobileList:I9,card:P9,cardInfo:X9,cardTop:Z9,cardTicker:K9,cardName:W9,cardBalCrypto:J9,cardBot:eS,cardPrice:tS,cardBalUsd:nS,mobileActions:lS},gp={BTC:{label:"Bitcoin",icon:it.BTC},ETH:{label:"Ethereum",icon:it.ETH},SOL:{label:"Solana",icon:it.SOL},TRX:{label:"Tron",icon:it.TRX},BSC:{label:"BNB Chain",icon:it.BNB}};function vp(a){return`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function aS(a){const i=[],c=new Map;for(const r of a){const d=r.chain??"ETH";let f=c.get(d);f||(f={chain:d,rows:[],totalUsd:0},c.set(d,f),i.push(f)),f.rows.push(r),f.totalUsd+=r.usdValue??0}return i}function yp(a){return a.id??a.ticker}function b_({rows:a,isLoading:i,fallbackChain:c="ETH",groupByChain:r=!1}){const[d,f]=j.useState({}),[p,g]=j.useState({open:!1,network:"ETH"}),[h,m]=j.useState({open:!1,chain:"ETH"});function v(B){return B.chain??g7[B.ticker]??c}function y(B){g({open:!0,network:v(B)})}function b(){g(B=>({...B,open:!1}))}function N(B){m({open:!0,chain:v(B)})}function S(){m(B=>({...B,open:!1}))}function C(B){f(Y=>({...Y,[B]:!Y[B]}))}const w=l.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#4A6DFF",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:l.jsx("path",{d:"M7 17L17 7M17 7H7M17 7v10"})}),O=l.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"#00C48C",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:l.jsx("path",{d:"M17 7L7 17M7 17H17M7 17V7"})});function H(B){const Y=yp(B);return l.jsxs("tr",{children:[l.jsx("td",{children:l.jsx("button",{className:`${_e.star} ${d[Y]?_e.starOn:""}`,onClick:()=>C(Y),type:"button","aria-label":d[Y]?"Убрать из избранного":"В избранное",children:"★"})}),l.jsx("td",{children:l.jsxs("div",{className:_e.tokId,children:[l.jsx("div",{className:_e.tokLogo,style:{background:B.color},children:B.logo?l.jsx("img",{src:B.logo,alt:B.ticker,className:""}):B.ticker[0]}),l.jsxs("div",{className:_e.balCol,children:[l.jsx("b",{className:_e.cardTicker,children:B.ticker}),l.jsx("span",{className:_e.noFont,children:B.name})]})]})}),l.jsx("td",{className:_e.right,children:l.jsx("span",{className:_e.price,children:B.price})}),l.jsx("td",{className:_e.right,children:l.jsxs("div",{className:_e.balCol,children:[l.jsx("b",{children:B.bal}),l.jsx("span",{children:B.usd})]})}),l.jsx("td",{className:_e.center,children:l.jsxs("div",{className:_e.btnGroup,children:[l.jsxs("button",{className:_e.receiveBtn,type:"button",onClick:le=>{le.stopPropagation(),N(B)},children:[O,"Получить"]}),l.jsxs("button",{className:_e.sendBtn,type:"button",onClick:le=>{le.stopPropagation(),y(B)},children:[w,"Отправить"]})]})})]},Y)}function L(B){const Y=yp(B);return l.jsxs("div",{className:_e.card,children:[l.jsx("button",{className:`${_e.star} ${d[Y]?_e.starOn:""}`,onClick:()=>C(Y),type:"button","aria-label":d[Y]?"Убрать из избранного":"В избранное",children:"★"}),l.jsx("div",{className:_e.tokLogo,style:{background:B.color},children:B.logo?l.jsx("img",{src:B.logo,alt:B.ticker,className:""}):B.ticker[0]}),l.jsxs("div",{className:_e.cardInfo,children:[l.jsxs("div",{className:_e.cardTop,children:[l.jsxs("div",{children:[l.jsx("span",{className:_e.cardTicker,children:B.ticker}),l.jsx("span",{className:_e.cardName,children:B.name})]}),l.jsx("span",{className:_e.cardBalCrypto,children:B.bal})]}),l.jsxs("div",{className:_e.cardBot,children:[l.jsx("span",{className:_e.cardPrice,children:B.price}),l.jsx("span",{className:_e.cardBalUsd,children:B.usd})]})]})]},Y)}function U(B){const Y=gp[B.chain];return l.jsx("tr",{className:_e.groupHeader,children:l.jsx("td",{colSpan:5,children:l.jsxs("div",{className:_e.groupHeaderInner,children:[l.jsxs("span",{className:_e.groupLabel,children:[l.jsx("img",{src:Y.icon,alt:"",className:_e.groupIcon}),Y.label]}),l.jsx("span",{className:_e.groupTotal,children:vp(B.totalUsd)})]})})},`h-${B.chain}`)}function I(B){const Y=gp[B.chain];return l.jsxs("div",{className:_e.mobileGroupHeader,children:[l.jsxs("span",{className:_e.groupLabel,children:[l.jsx("img",{src:Y.icon,alt:"",className:_e.groupIcon}),Y.label]}),l.jsx("span",{className:_e.groupTotal,children:vp(B.totalUsd)})]},`mh-${B.chain}`)}const W=r?aS(a):null;return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:`${_e.wrap} ${i?_e.loading:""}`,children:[l.jsxs("table",{className:_e.table,children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{className:_e.thStar,children:"☆"}),l.jsx("th",{children:"Токены"}),l.jsx("th",{className:_e.right,children:"Цена"}),l.jsx("th",{className:_e.right,children:"Баланс"}),l.jsx("th",{className:_e.center})]})}),l.jsx("tbody",{children:W?W.map(B=>l.jsxs(j.Fragment,{children:[U(B),B.rows.map(H)]},B.chain)):a.map(H)})]}),l.jsx("div",{className:_e.mobileList,children:W?W.map(B=>l.jsxs(j.Fragment,{children:[I(B),B.rows.map(L)]},B.chain)):a.map(L)})]}),l.jsxs("div",{className:_e.mobileActions,children:[l.jsxs("button",{className:_e.receiveBtn,type:"button",onClick:()=>a[0]&&N(a[0]),children:[O,"Получить"]}),l.jsxs("button",{className:_e.sendBtn,type:"button",onClick:()=>a[0]&&y(a[0]),children:[w,"Отправить"]})]}),l.jsx(J7,{open:p.open,onClose:b,network:p.network,tokens:a}),l.jsx(N9,{open:h.open,onClose:S,chain:h.chain})]})}function sS({chain:a}){const{rows:i,isLoading:c}=h7(a);return l.jsx(b_,{rows:i,isLoading:c,fallbackChain:a})}function iS(){const{rows:a,isLoading:i}=m7();return l.jsx(b_,{rows:a,isLoading:i,groupByChain:!0})}const cS="_nav_ip34n_1",rS="_logo_ip34n_11",oS="_ticker_ip34n_16",uS="_tick_ip34n_16",dS="_accountWrapper_ip34n_42",fS="_account_ip34n_42",hS="_dropdown_ip34n_56",mS="_dropdownItem_ip34n_70",pS="_danger_ip34n_89",_S="_avatar_ip34n_93",Kt={nav:cS,logo:rS,ticker:oS,tick:uS,accountWrapper:dS,account:fS,dropdown:hS,dropdownItem:mS,danger:pS,avatar:_S},xp=["BTC","ETH","SOL"],gS=a=>a?a[0].toUpperCase()+a.slice(1).toLowerCase():"";function vS(a){return a==null?"$—":a>=1?`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`:`$${a.toLocaleString("en-US",{minimumFractionDigits:4,maximumFractionDigits:6})}`}function Zo(){var b;const[a,i]=j.useState(!1),[c,r]=j.useState(!1),d=j.useRef(null),f=Ln(),p=_n(),{data:g}=Il(),{data:h}=j8(xp),m=g?[g.first_name,g.middle_name].filter(Boolean).map(gS).join(" "):"",{mutate:v}=vt({mutationFn:Hj,onSuccess:()=>{It.clear(),p.clear(),p.setQueryData(Io,null),f(oe.HOME)},onError:()=>r(!0)});j.useEffect(()=>{function N(S){d.current&&!d.current.contains(S.target)&&i(!1)}return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]);function y(){v(),i(!1)}return l.jsxs(l.Fragment,{children:[l.jsxs("nav",{className:Kt.nav,children:[l.jsx("a",{href:"/",className:Kt.logo,children:l.jsx("img",{src:pl,alt:"ЭКСА"})}),l.jsx("div",{className:Kt.ticker,children:xp.map(N=>{var S;return l.jsxs("div",{className:Kt.tick,children:[l.jsx("b",{children:N}),l.jsx("span",{children:vS((S=h==null?void 0:h[N])==null?void 0:S.usd)})]},N)})}),l.jsxs("div",{className:Kt.accountWrapper,ref:d,children:[l.jsxs("button",{className:Kt.account,onClick:()=>i(N=>!N),children:[g!=null&&g.avatar_link?l.jsx("img",{src:g.avatar_link,alt:"",className:Kt.avatar}):l.jsx("div",{className:Kt.avatar}),l.jsx("span",{children:m||((b=g==null?void 0:g.legal_entity)==null?void 0:b.name)||"Test account"})]}),a&&l.jsxs("div",{className:Kt.dropdown,children:[l.jsx(Yt,{to:oe.PROFILE,className:Kt.dropdownItem,onClick:()=>i(!1),children:"Личный кабинет"}),l.jsx(Yt,{to:oe.WALLET,className:Kt.dropdownItem,onClick:()=>i(!1),children:"Кошелёк"}),l.jsx(Yt,{to:oe.STAKING,className:Kt.dropdownItem,onClick:()=>i(!1),children:"Стейкинг"}),l.jsx(Yt,{to:oe.TRANSACTIONS,className:Kt.dropdownItem,onClick:()=>i(!1),children:"Транзакции"}),l.jsx("button",{className:`${Kt.dropdownItem} ${Kt.danger}`,onClick:y,children:"Выйти"})]})]})]}),c&&l.jsx(Ql,{status:"error",message:"Произошла ошибка сервера",onClose:()=>r(!1)})]})}const yS="_tabs_1ne0a_1",xS="_tab_1ne0a_1",bS="_active_1ne0a_31",jS="_icon_1ne0a_37",ns={tabs:yS,tab:xS,active:bS,icon:jS},SS=[{chain:"BTC",label:"BTC",icon:it.BTC},{chain:"ETH",label:"ETH",icon:it.ETH},{chain:"SOL",label:"SOL",icon:it.SOL},{chain:"TRX",label:"TRX",icon:it.TRX},{chain:"BSC",label:"BSC",icon:it.BNB}],NS=l.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[l.jsx("ellipse",{cx:"12",cy:"6",rx:"8",ry:"3"}),l.jsx("path",{d:"M4 6v6c0 1.66 3.58 3 8 3s8-1.34 8-3V6"}),l.jsx("path",{d:"M4 12v6c0 1.66 3.58 3 8 3s8-1.34 8-3v-6"})]});function wS(){return l.jsxs("div",{className:ns.tabs,children:[l.jsxs(qd,{to:"/wallet",end:!0,className:({isActive:a})=>`${ns.tab} ${a?ns.active:""}`,children:[l.jsx("span",{className:ns.icon,children:NS}),l.jsx("span",{children:"Все монеты"})]}),SS.map(a=>l.jsxs(qd,{to:`/wallet/${a.chain.toLowerCase()}`,className:({isActive:i})=>`${ns.tab} ${i?ns.active:""}`,children:[l.jsx("img",{src:a.icon,alt:a.label,className:ns.icon}),l.jsx("span",{children:a.label})]},a.chain))]})}const CS="_page_10fz2_1",ES="_main_10fz2_8",TS="_glow_10fz2_17",RS="_error_10fz2_29",AS="_noWallet_10fz2_38",Mc={page:CS,main:ES,glow:TS,error:RS,noWallet:AS};function bp(){var y;const{data:a,isLoading:i,isError:c}=Il(),{error:r}=Xo(),{mutate:d,isPending:f}=T8(),p=Ln(),{chain:g}=Zy(),h=(y=r==null?void 0:r.error)==null?void 0:y.includes("No wallets");if(i)return null;if(c)return l.jsx("div",{className:Mc.error,children:"Произошла ошибка. Попробуйте обновить страницу."});if(a&&!a.kyc_verified)return l.jsx(Qo,{to:oe.KYC,replace:!0});const m=g==null?void 0:g.toUpperCase(),v=m&&R2.includes(m)?m:void 0;return l.jsxs("div",{className:Mc.page,children:[l.jsx(Zo,{}),l.jsxs("main",{className:Mc.main,children:[l.jsx("div",{className:Mc.glow}),h?l.jsxs("div",{className:Mc.noWallet,children:[l.jsx("p",{children:"У вас пока нет кошелька. Создайте его, чтобы начать."}),l.jsx(nn,{variant:"outline",onClick:()=>d(void 0,{onSuccess:()=>p(oe.SEED_PHRASE)}),disabled:f,children:f?"Создание...":"Создать кошелёк"})]}):l.jsxs(l.Fragment,{children:[l.jsx(F8,{}),l.jsx(wS,{}),v?l.jsx(sS,{chain:v}):l.jsx(iS,{})]})]})]})}const j_=it.BTC,S_=it.ETH,N_=it.SOL,w_=it.TRX,C_=it.ARB,c2={BTC:{symbol:"BTC",letter:"₿",logo:j_,color:"#F7931A",network:"BITCOIN",balance:0,usdRate:67412,decimals:8},ETH:{symbol:"ETH",letter:"E",logo:S_,color:"#627EEA",network:"ETHEREUM",balance:0,usdRate:3521,decimals:18},SOL:{symbol:"SOL",letter:"S",logo:N_,color:"#9945FF",network:"SOLANA",balance:.994,usdRate:163.84,decimals:9},TRX:{symbol:"TRX",letter:"T",logo:w_,color:"#FF060A",network:"TRON",balance:0,usdRate:.12,decimals:6},ARB:{symbol:"ARB",letter:"A",logo:C_,color:"#4A6DFF",network:"ARBITRUM",balance:0,usdRate:.92,decimals:18},USDC:{symbol:"USDC",letter:"$",color:"#2775CA",network:"SOLANA",balance:0,usdRate:1,decimals:6},USDT:{symbol:"USDT",letter:"$",color:"#26A17B",network:"ETHEREUM",balance:0,usdRate:1,decimals:6}},OS=Object.values(c2),r2={BTC:{letter:"₿",logo:j_,color:"#F7931A"},ETH:{letter:"E",logo:S_,color:"#627EEA"},BSC:{letter:"B",color:"#F3BA2F"},SOL:{letter:"S",logo:N_,color:"#9945FF"},TRX:{letter:"T",logo:w_,color:"#FF060A"},ARB:{letter:"A",logo:C_,color:"#4A6DFF"},USDC:{letter:"$",color:"#2775CA"},USDT:{letter:"$",color:"#26A17B"},DAI:{letter:"D",color:"#F5AC37"},BUSD:{letter:"B",color:"#F0B90B"},WBTC:{letter:"W",color:"#F7931A"},LINK:{letter:"L",color:"#2A5ADA"},UNI:{letter:"U",color:"#FF007A"},WBNB:{letter:"W",color:"#F3BA2F"},DOGE:{letter:"D",color:"#C2A633"},JUP:{letter:"J",color:"#C7A52D"},WIF:{letter:"W",color:"#9333EA"},BONK:{letter:"B",color:"#FF8C00"},RAY:{letter:"R",color:"#5AC4BE"},ORCA:{letter:"O",color:"#1B8EF2"},PYTH:{letter:"P",color:"#8B5CF6"},JTO:{letter:"J",color:"#06B6D4"},W:{letter:"W",color:"#6B7280"},PUMP:{letter:"P",color:"#00D4AA"},POPCAT:{letter:"P",color:"#FF6B6B"},TRUMP:{letter:"T",color:"#E63946"},PENGU:{letter:"P",color:"#60A5FA"}},MS={ETH:"ETH",BSC:"BSC",BTC:"BTC",TRX:"TRX",SOL:"SOL"};function E_(a){const i=[],c=MS[a.chain]??a.chain,r=r2[c];i.push({symbol:c,letter:(r==null?void 0:r.letter)??c[0],color:(r==null?void 0:r.color)??"#888",logo:r==null?void 0:r.logo,network:a.chain,balance:parseFloat(a.native.formatted),usdRate:a.native.usdPrice,decimals:a.native.decimals});for(const[d,f]of Object.entries(a.tokens??{})){const p=r2[d];i.push({symbol:d,letter:(p==null?void 0:p.letter)??d[0],color:(p==null?void 0:p.color)??"#888",logo:p==null?void 0:p.logo,network:a.chain,balance:parseFloat(f.formatted),usdRate:f.usdPrice,decimals:f.decimals})}return i}const jp=82.2578;function T_(){const[a,i]=j.useState("0"),[c,r]=j.useState(c2.SOL),[d,f]=j.useState(c2.USDC),[p,g]=j.useState(!1),h=parseFloat(a)||0,m=(h*jp).toFixed(4),v=(h*c.usdRate).toFixed(2),y=(h*jp*d.usdRate).toFixed(2);function b(w){i(w)}function N(w){i((c.balance*w/100).toFixed(4))}function S(){r(d),f(c)}function C(){g(!0),setTimeout(()=>g(!1),400)}return{fromAmount:a,toAmount:m,fromUsd:v,toUsd:y,fromToken:c,toToken:d,isRefreshing:p,setFromAmount:b,setPercent:N,swapTokens:S,refreshRate:C,setFromToken:r,setToToken:f}}const LS="_wrap_18yiu_1",zS="_trigger_18yiu_6",DS="_name_18yiu_22",kS="_chevron_18yiu_29",BS="_chevronOpen_18yiu_37",US="_dropdown_18yiu_41",$S="_dropdownWrapper_18yiu_47",HS="_option_18yiu_60",qS="_optionActive_18yiu_78",FS="_optionInfo_18yiu_82",GS="_optionSymbol_18yiu_90",VS="_optionNetwork_18yiu_96",QS="_check_18yiu_103",YS="_triggerCompact_18yiu_110",IS="_nameCompact_18yiu_116",Wt={wrap:LS,trigger:zS,name:DS,chevron:kS,chevronOpen:BS,dropdown:US,dropdownWrapper:$S,option:HS,optionActive:qS,optionInfo:FS,optionSymbol:GS,optionNetwork:VS,check:QS,triggerCompact:YS,nameCompact:IS};function Sp({value:a,options:i,onChange:c,compact:r=!1}){const[d,f]=j.useState(!1),p=j.useRef(null);j.useEffect(()=>{function h(m){p.current&&!p.current.contains(m.target)&&f(!1)}return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]);function g(h){c(h),f(!1)}return l.jsxs("div",{className:Wt.wrap,ref:p,children:[l.jsxs("button",{className:`${Wt.trigger} ${r?Wt.triggerCompact:""}`,onClick:()=>f(h=>!h),children:[l.jsx(Fc,{letter:a.letter,color:a.color,logo:a.logo,size:r?24:40}),l.jsx("span",{className:`${Wt.name} ${r?Wt.nameCompact:""}`,children:a.symbol}),l.jsx("span",{className:`${Wt.chevron} ${d?Wt.chevronOpen:""}`,children:"▾"})]}),d&&l.jsx("div",{className:Wt.dropdownWrapper,children:l.jsx("div",{className:Wt.dropdown,children:i.map(h=>l.jsxs("button",{className:`${Wt.option} ${h.symbol===a.symbol?Wt.optionActive:""}`,onClick:()=>g(h),children:[l.jsx(Fc,{letter:h.letter,color:h.color,logo:h.logo,size:32}),l.jsxs("div",{className:Wt.optionInfo,children:[l.jsx("span",{className:Wt.optionSymbol,children:h.symbol}),l.jsx("span",{className:Wt.optionNetwork,children:h.network})]}),h.symbol===a.symbol&&l.jsx("span",{className:Wt.check,children:"✓"})]},h.symbol))})})]})}const PS="_wrapper_19brp_1",XS="_pillsOuter_19brp_8",ZS="_card_19brp_13",KS="_top_19brp_20",WS="_label_19brp_33",JS="_networkPills_19brp_54",eN="_networkBtn_19brp_60",tN="_networkBtnActive_19brp_79",nN="_pillsInner_19brp_85",lN="_pill_19brp_8",aN="_selectTop_19brp_109",sN="_selectMid_19brp_113",iN="_mid_19brp_118",cN="_input_19brp_126",rN="_display_19brp_142",oN="_int_19brp_151",uN="_dec_19brp_156",dN="_bottom_19brp_161",fN="_usd_19brp_167",hN="_balance_19brp_176",mN="_max_19brp_184",_t={wrapper:PS,pillsOuter:XS,card:ZS,top:KS,label:WS,networkPills:JS,networkBtn:eN,networkBtnActive:tN,pillsInner:nN,pill:lN,selectTop:aN,selectMid:sN,mid:iN,input:cN,display:rN,int:oN,dec:uN,bottom:dN,usd:fN,balance:hN,max:mN},pN=["ETH","BSC","TRX","SOL"],_N=[25,50,100];function Fo({mode:a,token:i,tokenOptions:c,amount:r,usd:d,onTokenChange:f,onAmountChange:p,onSetPercent:g,selectedNetwork:h,onNetworkChange:m,hideNetworkSelect:v}){const[y,b]=Ft(r,8).split("."),N=g&&l.jsx(l.Fragment,{children:_N.map(S=>l.jsxs("button",{className:_t.pill,onClick:()=>g(S),children:[S,"%"]},S))});return l.jsxs("div",{className:_t.wrapper,children:[a==="from"&&N&&l.jsx("div",{className:_t.pillsOuter,children:N}),l.jsxs("div",{className:_t.card,children:[l.jsxs("div",{className:_t.top,children:[l.jsx("div",{className:_t.label,children:a==="from"&&!v&&l.jsx("div",{className:_t.networkPills,children:pN.map(S=>l.jsx("button",{className:`${_t.networkBtn} ${S===h?_t.networkBtnActive:""}`,onClick:()=>m==null?void 0:m(S),children:S},S))})}),a==="from"&&N&&l.jsx("div",{className:_t.pillsInner,children:N}),l.jsx("div",{className:_t.selectTop,children:l.jsx(Sp,{value:i,options:c,onChange:f,compact:!0})})]}),l.jsxs("div",{className:_t.mid,children:[a==="from"?l.jsx("input",{className:_t.input,type:"text",value:r,onChange:S=>{const C=S.target.value;(/^(\d+\.?\d*|\.?\d*)$/.test(C)||C==="")&&(p==null||p(C))},placeholder:"0"}):l.jsxs("div",{className:_t.display,children:[l.jsx("span",{className:_t.int,children:y}),b&&l.jsxs("span",{className:_t.dec,children:[".",b]})]}),l.jsx("div",{className:_t.selectMid,children:l.jsx(Sp,{value:i,options:c,onChange:f})})]}),l.jsxs("div",{className:_t.bottom,children:[d&&l.jsxs("span",{className:_t.usd,children:["≈ $",d]}),l.jsxs("span",{className:_t.balance,children:[l.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-secondary)",strokeWidth:"2",children:[l.jsx("rect",{x:"2",y:"6",width:"20",height:"14",rx:"3"}),l.jsx("path",{d:"M6 6V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v2"})]}),Ft(i.balance,8),a==="from"&&g&&l.jsx("button",{className:_t.max,onClick:()=>g(100),children:"МАКС"})]})]})]})]})}const gN="_wrap_wqzoz_1",vN="_line_wqzoz_11",yN="_circle_wqzoz_19",wd={wrap:gN,line:vN,circle:yN};function xN({onClick:a}){const[i,c]=j.useState(!1);function r(){c(!0),setTimeout(()=>c(!1),300),a()}return l.jsxs("div",{className:wd.wrap,children:[l.jsx("div",{className:wd.line}),l.jsx("button",{className:wd.circle,style:{transform:i?"rotate(180deg)":"rotate(0deg)"},onClick:r,"aria-label":"Поменять токены",children:"⇅"})]})}const bN="_panel_16d4z_1",jN="_row_16d4z_10",SN="_label_16d4z_22",NN="_value_16d4z_30",wN="_link_16d4z_36",Lc={panel:bN,row:jN,label:SN,value:NN,link:wN};function CN({gasFee:a}){const i=[{label:"ПРОВАЙДЕР",value:"ЛУЧШИЙ",link:!1},{label:"СКОЛЬЖЕНИЕ",value:"АВТО (0.5%)",link:!0},{label:"СЕТЕВОЙ СБОР",value:a?`$${a}`:"—",link:!1}];return l.jsx("div",{className:Lc.panel,children:i.map(({label:c,value:r,link:d})=>l.jsxs("div",{className:Lc.row,children:[l.jsx("span",{className:Lc.label,children:c}),l.jsx("span",{className:`${Lc.value} ${d?Lc.link:""}`,children:r})]},c))})}const EN="_overlay_2rqh7_1",TN="_card_2rqh7_12",RN="_header_2rqh7_24",AN="_title_2rqh7_30",ON="_closeBtn_2rqh7_36",MN="_flow_2rqh7_51",LN="_token_2rqh7_57",zN="_tokenLabel_2rqh7_67",DN="_tokenAmount_2rqh7_75",kN="_tokenUsd_2rqh7_81",BN="_arrow_2rqh7_86",UN="_details_2rqh7_93",$N="_row_2rqh7_99",HN="_rowLabel_2rqh7_105",qN="_rowValue_2rqh7_110",FN="_impact_2rqh7_116",GN="_warning_2rqh7_120",VN="_confirmBtn_2rqh7_132",Xe={overlay:EN,card:TN,header:RN,title:AN,closeBtn:ON,flow:MN,token:LN,tokenLabel:zN,tokenAmount:DN,tokenUsd:kN,arrow:BN,details:UN,row:$N,rowLabel:HN,rowValue:qN,impact:FN,warning:GN,confirmBtn:VN};function QN({data:a,insufficientBalance:i,onConfirm:c,onClose:r}){const{details:d,fees:f}=a,{currencyIn:p,currencyOut:g,totalImpact:h,rate:m}=d,v=parseFloat(h.percent),y=parseFloat(m).toFixed(4);return l.jsx("div",{className:Xe.overlay,onClick:r,children:l.jsxs("div",{className:Xe.card,onClick:b=>b.stopPropagation(),children:[l.jsxs("div",{className:Xe.header,children:[l.jsx("span",{className:Xe.title,children:"Подтвердить своп"}),l.jsx("button",{className:Xe.closeBtn,onClick:r,children:"×"})]}),l.jsxs("div",{className:Xe.flow,children:[l.jsxs("div",{className:Xe.token,children:[l.jsx("span",{className:Xe.tokenLabel,children:"Отдаёте"}),l.jsxs("span",{className:Xe.tokenAmount,children:[p.amountFormatted," ",p.currency.symbol]}),l.jsxs("span",{className:Xe.tokenUsd,children:["≈ $",p.amountUsd]})]}),l.jsx("div",{className:Xe.arrow,children:"↓"}),l.jsxs("div",{className:Xe.token,children:[l.jsx("span",{className:Xe.tokenLabel,children:"Получаете"}),l.jsxs("span",{className:Xe.tokenAmount,children:[g.amountFormatted," ",g.currency.symbol]}),l.jsxs("span",{className:Xe.tokenUsd,children:["≈ $",g.amountUsd]})]})]}),l.jsxs("div",{className:Xe.details,children:[l.jsxs("div",{className:Xe.row,children:[l.jsx("span",{className:Xe.rowLabel,children:"Курс"}),l.jsxs("span",{className:Xe.rowValue,children:["1 ",p.currency.symbol," = ",y," ",g.currency.symbol]})]}),l.jsxs("div",{className:Xe.row,children:[l.jsx("span",{className:Xe.rowLabel,children:"Комиссия сети"}),l.jsxs("span",{className:Xe.rowValue,children:["$",f.gas.amountUsd]})]}),l.jsxs("div",{className:Xe.row,children:[l.jsx("span",{className:Xe.rowLabel,children:"Влияние на цену"}),l.jsxs("span",{className:`${Xe.rowValue} ${v<0?Xe.impact:""}`,children:[h.percent,"%"]})]})]}),i&&l.jsx("p",{className:Xe.warning,children:"Введённое количество превышает баланс кошелька — своп будет отклонён."}),l.jsx("button",{className:Xe.confirmBtn,onClick:c,children:"Подтвердить"})]})})}const YN="_overlay_1rpvx_1",IN="_card_1rpvx_12",PN="_header_1rpvx_24",XN="_title_1rpvx_30",ZN="_closeBtn_1rpvx_36",KN="_flow_1rpvx_51",WN="_token_1rpvx_57",JN="_tokenLabel_1rpvx_67",ew="_tokenAmount_1rpvx_75",tw="_minOut_1rpvx_81",nw="_arrow_1rpvx_86",lw="_details_1rpvx_93",aw="_row_1rpvx_99",sw="_rowLabel_1rpvx_105",iw="_rowValue_1rpvx_110",cw="_warning_1rpvx_116",rw="_confirmBtn_1rpvx_128",St={overlay:YN,card:IN,header:PN,title:XN,closeBtn:ZN,flow:KN,token:WN,tokenLabel:JN,tokenAmount:ew,minOut:tw,arrow:nw,details:lw,row:aw,rowLabel:sw,rowValue:iw,warning:cw,confirmBtn:rw};function ow({quote:a,fromSymbol:i,toSymbol:c,amountHuman:r,insufficientBalance:d,onConfirm:f,onClose:p}){const{expectedOutFormatted:g,minOutFormatted:h,fees:m}=a;return l.jsx("div",{className:St.overlay,onClick:p,children:l.jsxs("div",{className:St.card,onClick:v=>v.stopPropagation(),children:[l.jsxs("div",{className:St.header,children:[l.jsx("span",{className:St.title,children:"Подтвердить своп"}),l.jsx("button",{className:St.closeBtn,onClick:p,children:"×"})]}),l.jsxs("div",{className:St.flow,children:[l.jsxs("div",{className:St.token,children:[l.jsx("span",{className:St.tokenLabel,children:"Отдаёте"}),l.jsxs("span",{className:St.tokenAmount,children:[r," ",i]})]}),l.jsx("div",{className:St.arrow,children:"↓"}),l.jsxs("div",{className:St.token,children:[l.jsx("span",{className:St.tokenLabel,children:"Получаете"}),l.jsxs("span",{className:St.tokenAmount,children:[g," ",c]}),l.jsxs("span",{className:St.minOut,children:["Минимум: ",h," ",c]})]})]}),l.jsx("div",{className:St.details,children:l.jsxs("div",{className:St.row,children:[l.jsx("span",{className:St.rowLabel,children:"Комиссия сети"}),l.jsxs("span",{className:St.rowValue,children:[m.network.amountFormatted," ",m.network.asset," (≈$",m.network.amountUsd,")"]})]})}),d&&l.jsx("p",{className:St.warning,children:"Введённое количество превышает баланс кошелька — своп будет отклонён."}),l.jsx("button",{className:St.confirmBtn,onClick:f,children:"Подтвердить"})]})})}const uw="_form_1fk2f_1",dw={form:uw},fw={ETH:1,BSC:56,SOL:792703809},Np={SOL:"11111111111111111111111111111111",DEFAULT:"0x0000000000000000000000000000000000000000"};function wp(a){return Np[a]??Np.DEFAULT}function hw(){var Xl,Ce,Pt,gl;const a=Ln(),i=_n(),{fromAmount:c,fromUsd:r,fromToken:d,toToken:f,setFromAmount:p,setPercent:g,swapTokens:h,setFromToken:m,setToToken:v}=T_(),[y,b]=j.useState("ETH"),[N,S]=j.useState(null),[C,w]=j.useState(null),[O,H]=j.useState(null),L=y==="TRX",{data:U}=Yc(y),I=U?E_(U):OS;j.useEffect(()=>{I.length!==0&&(m(Ke=>I.find(ln=>ln.symbol===Ke.symbol)??I[0]),v(Ke=>I.find(ln=>ln.symbol===Ke.symbol)??I[1]??I[0]))},[U,y]);const W=Qc(c,500),{data:B}=Po(),{data:Y}=N8(),le=parseFloat(W),me=fw[y],he=(Xl=B==null?void 0:B.find(Ke=>Ke.chain===y))==null?void 0:Xl.address,Ee=((Ce=Y==null?void 0:Y.find(Ke=>Ke.chain===y&&Ke.symbol===d.symbol))==null?void 0:Ce.contract)??wp(y),re=((Pt=Y==null?void 0:Y.find(Ke=>Ke.chain===y&&Ke.symbol===f.symbol))==null?void 0:Pt.contract)??wp(y),ge=!L&&me&&he&&le>0?{user:he,recipient:he,originChainId:me,destinationChainId:me,originCurrency:Ee,destinationCurrency:re,amount:Math.round(le*Math.pow(10,d.decimals)).toString(),tradeType:"EXACT_INPUT"}:null,{data:de}=t_(ge),{mutate:q,isPending:P}=A8(),{mutate:se,isPending:Te}=O8(),Re=L&&le>0?{from:d.symbol,to:f.symbol,amountHuman:W}:null,{data:R}=M8(Re),{mutate:V,isPending:Z}=L8(),{mutate:te,isPending:pe}=z8(),be=Te||pe,De=(parseFloat(c)||0)>d.balance,Nt=L?(R==null?void 0:R.expectedOutFormatted)??"0":(de==null?void 0:de.details.currencyOut.amountFormatted)??"0",tt=L||de==null?void 0:de.details.currencyOut.amountUsd,ll=L?(gl=R==null?void 0:R.fees.network.amountUsd)==null?void 0:gl.toString():de==null?void 0:de.fees.gas.amountUsd,_l=L?le<=0||Z:!ge||P;function Pl(){if(L){if(!Re)return;V(Re,{onSuccess:Ke=>w(Ke)})}else{if(!ge)return;q(ge,{onSuccess:Ke=>S(Ke)})}}return l.jsxs("div",{className:dw.form,children:[l.jsx(Fo,{mode:"from",token:d,tokenOptions:I,amount:c,usd:r,onAmountChange:p,onSetPercent:g,onTokenChange:m,selectedNetwork:y,onNetworkChange:b}),l.jsx(xN,{onClick:h}),l.jsx(Fo,{mode:"to",token:f,tokenOptions:I,amount:Nt,usd:tt,onTokenChange:v}),l.jsx(CN,{gasFee:ll}),l.jsx(tl,{label:P||Z?"Загрузка...":void 0,onClick:Pl,disabled:_l}),N&&l.jsx(QN,{data:N,insufficientBalance:De,onClose:()=>S(null),onConfirm:()=>{var ln,bs;const Ke=(bs=(ln=N.steps[0])==null?void 0:ln.items[0])==null?void 0:bs.data;Ke&&(H(null),se({chain:y,txData:Ke},{onSuccess:()=>{i.invalidateQueries({queryKey:["wallet","balance",y]}),i.invalidateQueries({queryKey:["wallet","portfolio"]}),a(oe.WALLET)},onError:js=>{H(js instanceof Error?js.message:"Не удалось подписать транзакцию")}})),S(null)}}),C&&l.jsx(ow,{quote:C,fromSymbol:d.symbol,toSymbol:f.symbol,amountHuman:c,insufficientBalance:De,onClose:()=>w(null),onConfirm:()=>{H(null),te(C.quoteId,{onSuccess:()=>{i.invalidateQueries({queryKey:["wallet","balance","TRX"]}),i.invalidateQueries({queryKey:["wallet","portfolio"]}),a(oe.WALLET)},onError:Ke=>{H(Ke instanceof Error?Ke.message:"Не удалось выполнить свап")}}),w(null)}}),be&&l.jsx(Ql,{status:"warning",message:"Обработка транзакции...",onClose:()=>{}}),O&&l.jsx(Ql,{status:"error",message:O,onClose:()=>H(null)})]})}const mw="_tabs_1sxhr_1",pw="_tab_1sxhr_1",_w="_active_1sxhr_19",gw="_inactive_1sxhr_24",ls={tabs:mw,tab:pw,active:_w,inactive:gw};function R_({active:a}){const i=Ln();return l.jsxs("div",{className:ls.tabs,children:[l.jsx("button",{className:`${ls.tab} ${a==="swap"?ls.active:ls.inactive}`,onClick:()=>i(oe.SWAP),children:"СВОП"}),l.jsx("button",{className:`${ls.tab} ${a==="bridge"?ls.active:ls.inactive}`,onClick:()=>i(oe.BRIDGE),children:"БРИДЖ"})]})}const vw="_content_1pe49_1",yw={content:vw};function xw(){return l.jsxs(l.Fragment,{children:[l.jsx(R_,{active:"swap"}),l.jsx("div",{className:yw.content,children:l.jsx(hw,{})})]})}function Ic(a,i){const[c,r=""]=a.split("."),d=r.slice(0,i).padEnd(i,"0");return`${c}${d}`.replace(/^0+(?=\d)/,"")||"0"}function o2(a,i){const c=a.padStart(i+1,"0"),r=c.slice(0,c.length-i),d=c.slice(c.length-i).replace(/0+$/,"");return d?`${r}.${d}`:r}const bw="_wrap_njjv3_1",jw="_label_njjv3_9",Sw="_select_njjv3_18",Cd={wrap:bw,label:jw,select:Sw};function Cp({label:a,value:i,onChange:c,options:r}){return l.jsxs("div",{className:Cd.wrap,children:[l.jsx("span",{className:Cd.label,children:a}),l.jsx("select",{className:Cd.select,value:i,onChange:d=>c(d.target.value),children:r.map(d=>l.jsx("option",{value:d,children:d},d))})]})}const Nw="_overlay_13tuw_1",ww="_card_13tuw_12",Cw="_header_13tuw_24",Ew="_title_13tuw_30",Tw="_closeBtn_13tuw_36",Rw="_flow_13tuw_51",Aw="_token_13tuw_57",Ow="_tokenLabel_13tuw_67",Mw="_tokenAmount_13tuw_75",Lw="_minOut_13tuw_81",zw="_arrow_13tuw_86",Dw="_details_13tuw_93",kw="_row_13tuw_99",Bw="_rowLabel_13tuw_105",Uw="_rowValue_13tuw_110",$w="_warning_13tuw_116",Hw="_confirmBtn_13tuw_128",ot={overlay:Nw,card:ww,header:Cw,title:Ew,closeBtn:Tw,flow:Rw,token:Aw,tokenLabel:Ow,tokenAmount:Mw,minOut:Lw,arrow:zw,details:Dw,row:kw,rowLabel:Bw,rowValue:Uw,warning:$w,confirmBtn:Hw};function qw({quote:a,fromAmountHuman:i,insufficientBalance:c,isExecuting:r,onConfirm:d,onClose:f}){const{action:p,estimate:g,toolDetails:h}=a,m=p.toToken.symbol,v=p.fromToken.symbol,y=Ft(o2(g.toAmount,p.toToken.decimals),8),b=Ft(o2(g.toAmountMin,p.toToken.decimals),8),N=(g.feeCosts??[]).reduce((S,C)=>S+(parseFloat(C.amountUSD)||0),0).toFixed(2);return l.jsx("div",{className:ot.overlay,onClick:f,children:l.jsxs("div",{className:ot.card,onClick:S=>S.stopPropagation(),children:[l.jsxs("div",{className:ot.header,children:[l.jsx("span",{className:ot.title,children:"Подтвердить бридж"}),l.jsx("button",{className:ot.closeBtn,onClick:f,children:"×"})]}),l.jsxs("div",{className:ot.flow,children:[l.jsxs("div",{className:ot.token,children:[l.jsx("span",{className:ot.tokenLabel,children:"Отдаёте"}),l.jsxs("span",{className:ot.tokenAmount,children:[i," ",v]})]}),l.jsx("div",{className:ot.arrow,children:"↓"}),l.jsxs("div",{className:ot.token,children:[l.jsx("span",{className:ot.tokenLabel,children:"Получаете"}),l.jsxs("span",{className:ot.tokenAmount,children:[y," ",m]}),l.jsxs("span",{className:ot.minOut,children:["Минимум: ",b," ",m]})]})]}),l.jsxs("div",{className:ot.details,children:[l.jsxs("div",{className:ot.row,children:[l.jsx("span",{className:ot.rowLabel,children:"Комиссия"}),l.jsxs("span",{className:ot.rowValue,children:["≈$",N]})]}),l.jsxs("div",{className:ot.row,children:[l.jsx("span",{className:ot.rowLabel,children:"Мост"}),l.jsx("span",{className:ot.rowValue,children:h.name})]})]}),c&&l.jsx("p",{className:ot.warning,children:"Введённое количество превышает баланс кошелька — бридж будет отклонён."}),l.jsx("button",{className:ot.confirmBtn,onClick:d,disabled:r,children:r?"Обработка...":"Подтвердить бридж"})]})})}const Fw="_form_htwuf_1",Ep={form:Fw},Ed=["ETH","BSC","SOL","TRX","BTC"],hi={ETH:"1",BSC:"56",SOL:"1151111081099710",TRX:"728126428",BTC:"20000000000001"},Gw=Object.fromEntries(Object.entries(hi).map(([a,i])=>[i,a])),Tp={ETH:1,BSC:56,SOL:792703809,TRX:728126428,BTC:8253038};function Vw(a){const i=r2[a.symbol];return{symbol:a.symbol,letter:(i==null?void 0:i.letter)??a.symbol[0],color:(i==null?void 0:i.color)??"#888",logo:a.logoURI??(i==null?void 0:i.logo),network:Gw[String(a.chainId)]??a.symbol,balance:0,usdRate:parseFloat(a.priceUSD)||0,decimals:a.decimals}}function Qw(a){const i={};for(const c of E_(a))i[c.symbol]=c.balance;return i}function Yw(){var ll,_l,Pl,Xl;const a=Ln(),i=_n(),{fromAmount:c,fromUsd:r,fromToken:d,toToken:f,setFromAmount:p,setPercent:g,setFromToken:h,setToToken:m}=T_(),[v,y]=j.useState("ETH"),[b,N]=j.useState("BSC"),[S,C]=j.useState(null),[w,O]=j.useState(null),{data:H}=w8(),{data:L}=Yc(v),{data:U}=Yc(b),{data:I}=Po(),{mutate:W,isPending:B}=C8(),{mutate:Y,isPending:le}=E8();function me(Ce,Pt){const gl=((H==null?void 0:H[hi[Ce]])??[]).map(Vw);if(!Pt)return gl;const Ke=Qw(Pt);return gl.map(ln=>Ke[ln.symbol]!=null?{...ln,balance:Ke[ln.symbol]}:ln)}const he=me(v,L),Ee=me(b,U);j.useEffect(()=>{he.length!==0&&h(Ce=>he.find(Pt=>Pt.symbol===Ce.symbol)??he[0])},[H,L,v]),j.useEffect(()=>{Ee.length!==0&&m(Ce=>Ee.find(Pt=>Pt.symbol===Ce.symbol)??Ee[0])},[H,U,b]);const re=parseFloat(c),ge=(re||0)>d.balance,de=(ll=H==null?void 0:H[hi[v]])==null?void 0:ll.find(Ce=>Ce.symbol===d.symbol),q=(_l=H==null?void 0:H[hi[b]])==null?void 0:_l.find(Ce=>Ce.symbol===f.symbol),P=(Pl=I==null?void 0:I.find(Ce=>Ce.chain===v))==null?void 0:Pl.address,se=(Xl=I==null?void 0:I.find(Ce=>Ce.chain===b))==null?void 0:Xl.address,Te=de&&q&&P&&se&&re>0?{fromChain:hi[v],toChain:hi[b],fromToken:de.address,toToken:q.address,fromAmount:Ic(c,d.decimals),fromAddress:P,toAddress:se,slippage:.005}:null,Re=Qc(c,500),R=parseFloat(Re),V=Tp[v],Z=Tp[b],te=de&&q&&P&&se&&V&&Z&&R>0?{user:P,recipient:se,originChainId:V,destinationChainId:Z,originCurrency:de.address,destinationCurrency:q.address,amount:Ic(Re,d.decimals),tradeType:"EXACT_INPUT"}:null,{data:pe}=t_(te),be=pe?pe.details.currencyOut.amountFormatted:S?Ft(o2(S.estimate.toAmount,S.action.toToken.decimals),8):"0";function De(Ce){y(Ce),Ce===b&&N(Ed.find(Pt=>Pt!==Ce)??b)}function Nt(){Te&&(O(null),W(Te,{onSuccess:Ce=>C(Ce),onError:Ce=>O(Ce instanceof Error?Ce.message:"Не удалось получить котировку")}))}function tt(){S&&(O(null),Y({provider:"jumper",fromChain:S.action.fromChainId,toChain:S.action.toChainId,fromToken:S.action.fromToken.address,toToken:S.action.toToken.address,fromAmount:S.action.fromAmount,fromAddress:S.action.fromAddress,toAddress:S.action.toAddress,acceptedMinOut:S.estimate.toAmountMin},{onSuccess:()=>{i.invalidateQueries({queryKey:["wallet","balance",v]}),i.invalidateQueries({queryKey:["wallet","balance",b]}),i.invalidateQueries({queryKey:["wallet","portfolio"]}),C(null),a(oe.WALLET)},onError:Ce=>O(Ce instanceof Error?Ce.message:"Не удалось выполнить бридж")}))}return H?l.jsxs("div",{className:Ep.form,children:[l.jsx(Cp,{label:"ИЗ",value:v,onChange:De,options:Ed}),l.jsx(Fo,{mode:"from",token:d,tokenOptions:he,amount:c,usd:r,onAmountChange:p,onSetPercent:g,onTokenChange:h,hideNetworkSelect:!0}),l.jsx(Cp,{label:"В",value:b,onChange:N,options:Ed.filter(Ce=>Ce!==v)}),l.jsx(Fo,{mode:"to",token:f,tokenOptions:Ee,amount:be,onTokenChange:m,hideNetworkSelect:!0}),l.jsx(tl,{label:B?"Загрузка...":"Подтвердить бридж",onClick:Nt,disabled:!Te||B}),S&&l.jsx(qw,{quote:S,fromAmountHuman:c,insufficientBalance:ge,isExecuting:le,onConfirm:tt,onClose:()=>C(null)}),w&&l.jsx(Ql,{status:"error",message:w,onClose:()=>O(null)})]}):l.jsx("div",{className:Ep.form})}const Iw="_content_1pe49_1",Pw={content:Iw};function Xw(){return l.jsxs(l.Fragment,{children:[l.jsx(R_,{active:"bridge"}),l.jsx("div",{className:Pw.content,children:l.jsx(Yw,{})})]})}var u2=function(a,i){return u2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,r){c.__proto__=r}||function(c,r){for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&(c[d]=r[d])},u2(a,i)};function Zw(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");u2(a,i);function c(){this.constructor=a}a.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}var zt=function(){return zt=Object.assign||function(i){for(var c,r=1,d=arguments.length;r<d;r++){c=arguments[r];for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(i[f]=c[f])}return i},zt.apply(this,arguments)};var Td,Rp;function Kw(){if(Rp)return Td;Rp=1;var a=!1,i,c,r,d,f,p,g,h,m,v,y,b,N,S,C;function w(){if(!a){a=!0;var H=navigator.userAgent,L=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(H),U=/(Mac OS X)|(Windows)|(Linux)/.exec(H);if(b=/\b(iPhone|iP[ao]d)/.exec(H),N=/\b(iP[ao]d)/.exec(H),v=/Android/i.exec(H),S=/FBAN\/\w+;/i.exec(H),C=/Mobile/i.exec(H),y=!!/Win64/.exec(H),L){i=L[1]?parseFloat(L[1]):L[5]?parseFloat(L[5]):NaN,i&&document&&document.documentMode&&(i=document.documentMode);var I=/(?:Trident\/(\d+.\d+))/.exec(H);p=I?parseFloat(I[1])+4:i,c=L[2]?parseFloat(L[2]):NaN,r=L[3]?parseFloat(L[3]):NaN,d=L[4]?parseFloat(L[4]):NaN,d?(L=/(?:Chrome\/(\d+\.\d+))/.exec(H),f=L&&L[1]?parseFloat(L[1]):NaN):f=NaN}else i=c=r=f=d=NaN;if(U){if(U[1]){var W=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(H);g=W?parseFloat(W[1].replace("_",".")):!0}else g=!1;h=!!U[2],m=!!U[3]}else g=h=m=!1}}var O={ie:function(){return w()||i},ieCompatibilityMode:function(){return w()||p>i},ie64:function(){return O.ie()&&y},firefox:function(){return w()||c},opera:function(){return w()||r},webkit:function(){return w()||d},safari:function(){return O.webkit()},chrome:function(){return w()||f},windows:function(){return w()||h},osx:function(){return w()||g},linux:function(){return w()||m},iphone:function(){return w()||b},mobile:function(){return w()||b||N||v||C},nativeApp:function(){return w()||S},android:function(){return w()||v},ipad:function(){return w()||N}};return Td=O,Td}var Rd,Ap;function Ww(){if(Ap)return Rd;Ap=1;var a=!!(typeof window<"u"&&window.document&&window.document.createElement),i={canUseDOM:a,canUseWorkers:typeof Worker<"u",canUseEventListeners:a&&!!(window.addEventListener||window.attachEvent),canUseViewport:a&&!!window.screen,isInWorker:!a};return Rd=i,Rd}var Ad,Op;function Jw(){if(Op)return Ad;Op=1;var a=Ww(),i;a.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/function c(r,d){if(!a.canUseDOM||d&&!("addEventListener"in document))return!1;var f="on"+r,p=f in document;if(!p){var g=document.createElement("div");g.setAttribute(f,"return;"),p=typeof g[f]=="function"}return!p&&i&&r==="wheel"&&(p=document.implementation.hasFeature("Events.wheel","3.0")),p}return Ad=c,Ad}var Od,Mp;function eC(){if(Mp)return Od;Mp=1;var a=Kw(),i=Jw(),c=10,r=40,d=800;function f(p){var g=0,h=0,m=0,v=0;return"detail"in p&&(h=p.detail),"wheelDelta"in p&&(h=-p.wheelDelta/120),"wheelDeltaY"in p&&(h=-p.wheelDeltaY/120),"wheelDeltaX"in p&&(g=-p.wheelDeltaX/120),"axis"in p&&p.axis===p.HORIZONTAL_AXIS&&(g=h,h=0),m=g*c,v=h*c,"deltaY"in p&&(v=p.deltaY),"deltaX"in p&&(m=p.deltaX),(m||v)&&p.deltaMode&&(p.deltaMode==1?(m*=r,v*=r):(m*=d,v*=d)),m&&!g&&(g=m<1?-1:1),v&&!h&&(h=v<1?-1:1),{spinX:g,spinY:h,pixelX:m,pixelY:v}}return f.getEventType=function(){return a.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},Od=f,Od}var Md,Lp;function tC(){return Lp||(Lp=1,Md=eC()),Md}var nC=tC();const lC=r3(nC);function aC(a,i,c,r,d,f){f===void 0&&(f=0);var p=Ti(a,i,f),g=p.width,h=p.height,m=Math.min(g,c),v=Math.min(h,r);return m>v*d?{width:v*d,height:v}:{width:m,height:m/d}}function sC(a){return a.width>a.height?a.width/a.naturalWidth:a.height/a.naturalHeight}function zc(a,i,c,r,d){d===void 0&&(d=0);var f=Ti(i.width,i.height,d),p=f.width,g=f.height;return{x:zp(a.x,p,c.width,r),y:zp(a.y,g,c.height,r)}}function zp(a,i,c,r){var d=Math.abs(i*r/2-c/2);return Ko(a,-d,d)}function Dp(a,i){return Math.sqrt(Math.pow(a.y-i.y,2)+Math.pow(a.x-i.x,2))}function kp(a,i){return Math.atan2(i.y-a.y,i.x-a.x)*180/Math.PI}function iC(a,i,c,r,d,f,p){f===void 0&&(f=0),p===void 0&&(p=!0);var g=p?cC:rC,h=Ti(i.width,i.height,f),m=Ti(i.naturalWidth,i.naturalHeight,f),v={x:g(100,((h.width-c.width/d)/2-a.x/d)/h.width*100),y:g(100,((h.height-c.height/d)/2-a.y/d)/h.height*100),width:g(100,c.width/h.width*100/d),height:g(100,c.height/h.height*100/d)},y=Math.round(g(m.width,v.width*m.width/100)),b=Math.round(g(m.height,v.height*m.height/100)),N=m.width>=m.height*r,S=N?{width:Math.round(b*r),height:b}:{width:y,height:Math.round(y/r)},C=zt(zt({},S),{x:Math.round(g(m.width-S.width,v.x*m.width/100)),y:Math.round(g(m.height-S.height,v.y*m.height/100))});return{croppedAreaPercentages:v,croppedAreaPixels:C}}function cC(a,i){return Math.min(a,Math.max(0,i))}function rC(a,i){return i}function oC(a,i,c,r,d,f){var p=Ti(i.width,i.height,c),g=Ko(r.width/p.width*(100/a.width),d,f),h={x:g*p.width/2-r.width/2-p.width*g*(a.x/100),y:g*p.height/2-r.height/2-p.height*g*(a.y/100)};return{crop:h,zoom:g}}function uC(a,i,c){var r=sC(i);return c.height>c.width?c.height/(a.height*r):c.width/(a.width*r)}function dC(a,i,c,r,d,f){c===void 0&&(c=0);var p=Ti(i.naturalWidth,i.naturalHeight,c),g=Ko(uC(a,i,r),d,f),h=r.height>r.width?r.height/a.height:r.width/a.width,m={x:((p.width-a.width)/2-a.x)*h,y:((p.height-a.height)/2-a.y)*h};return{crop:m,zoom:g}}function Bp(a,i){return{x:(i.x+a.x)/2,y:(i.y+a.y)/2}}function fC(a){return a*Math.PI/180}function Ti(a,i,c){var r=fC(c);return{width:Math.abs(Math.cos(r)*a)+Math.abs(Math.sin(r)*i),height:Math.abs(Math.sin(r)*a)+Math.abs(Math.cos(r)*i)}}function Ko(a,i,c){return Math.min(Math.max(a,i),c)}function Co(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];return a.filter(function(c){return typeof c=="string"&&c.length>0}).join(" ").trim()}var hC=`.reactEasyCrop_Container {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
user-select: none;
touch-action: none;
cursor: move;
display: flex;
justify-content: center;
align-items: center;
}
.reactEasyCrop_Image,
.reactEasyCrop_Video {
will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */
}
.reactEasyCrop_Contain {
max-width: 100%;
max-height: 100%;
margin: auto;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.reactEasyCrop_Cover_Horizontal {
width: 100%;
height: auto;
}
.reactEasyCrop_Cover_Vertical {
width: auto;
height: 100%;
}
.reactEasyCrop_CropArea {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border: 1px solid rgba(255, 255, 255, 0.5);
box-sizing: border-box;
box-shadow: 0 0 0 9999em;
color: rgba(0, 0, 0, 0.5);
overflow: hidden;
}
.reactEasyCrop_CropAreaRound {
border-radius: 50%;
}
.reactEasyCrop_CropAreaGrid::before {
content: ' ';
box-sizing: border-box;
position: absolute;
border: 1px solid rgba(255, 255, 255, 0.5);
top: 0;
bottom: 0;
left: 33.33%;
right: 33.33%;
border-top: 0;
border-bottom: 0;
}
.reactEasyCrop_CropAreaGrid::after {
content: ' ';
box-sizing: border-box;
position: absolute;
border: 1px solid rgba(255, 255, 255, 0.5);
top: 33.33%;
bottom: 33.33%;
left: 0;
right: 0;
border-left: 0;
border-right: 0;
}
`,mC=1,pC=3,_C=1,gC=(function(a){Zw(i,a);function i(){var c=a!==null&&a.apply(this,arguments)||this;return c.cropperRef=j.createRef(),c.imageRef=j.createRef(),c.videoRef=j.createRef(),c.containerPosition={x:0,y:0},c.containerRef=null,c.styleRef=null,c.containerRect=null,c.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},c.dragStartPosition={x:0,y:0},c.dragStartCrop={x:0,y:0},c.gestureZoomStart=0,c.gestureRotationStart=0,c.isTouching=!1,c.lastPinchDistance=0,c.lastPinchRotation=0,c.rafDragTimeout=null,c.rafPinchTimeout=null,c.wheelTimer=null,c.currentDoc=typeof document<"u"?document:null,c.currentWindow=typeof window<"u"?window:null,c.resizeObserver=null,c.previousCropSize=null,c.isInitialized=!1,c.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},c.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!c.containerRef)){var r=!0;c.resizeObserver=new window.ResizeObserver(function(d){if(r){r=!1;return}c.computeSizes()}),c.resizeObserver.observe(c.containerRef)}},c.preventZoomSafari=function(r){return r.preventDefault()},c.cleanEvents=function(){c.currentDoc&&(c.currentDoc.removeEventListener("mousemove",c.onMouseMove),c.currentDoc.removeEventListener("mouseup",c.onDragStopped),c.currentDoc.removeEventListener("touchmove",c.onTouchMove),c.currentDoc.removeEventListener("touchend",c.onDragStopped),c.currentDoc.removeEventListener("gesturechange",c.onGestureChange),c.currentDoc.removeEventListener("gestureend",c.onGestureEnd),c.currentDoc.removeEventListener("scroll",c.onScroll))},c.clearScrollEvent=function(){c.containerRef&&c.containerRef.removeEventListener("wheel",c.onWheel),c.wheelTimer&&clearTimeout(c.wheelTimer)},c.onMediaLoad=function(){var r=c.computeSizes();r&&(c.previousCropSize=r,c.emitCropData(),c.setInitialCrop(r),c.isInitialized=!0),c.props.onMediaLoaded&&c.props.onMediaLoaded(c.mediaSize)},c.setInitialCrop=function(r){if(c.props.initialCroppedAreaPercentages){var d=oC(c.props.initialCroppedAreaPercentages,c.mediaSize,c.props.rotation,r,c.props.minZoom,c.props.maxZoom),f=d.crop,p=d.zoom;c.props.onCropChange(f),c.props.onZoomChange&&c.props.onZoomChange(p)}else if(c.props.initialCroppedAreaPixels){var g=dC(c.props.initialCroppedAreaPixels,c.mediaSize,c.props.rotation,r,c.props.minZoom,c.props.maxZoom),f=g.crop,p=g.zoom;c.props.onCropChange(f),c.props.onZoomChange&&c.props.onZoomChange(p)}},c.computeSizes=function(){var r,d,f,p,g,h,m=c.imageRef.current||c.videoRef.current;if(m&&c.containerRef){c.containerRect=c.containerRef.getBoundingClientRect(),c.saveContainerPosition();var v=c.containerRect.width/c.containerRect.height,y=((r=c.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((d=c.videoRef.current)===null||d===void 0?void 0:d.videoWidth)||0,b=((f=c.imageRef.current)===null||f===void 0?void 0:f.naturalHeight)||((p=c.videoRef.current)===null||p===void 0?void 0:p.videoHeight)||0,N=m.offsetWidth<y||m.offsetHeight<b,S=y/b,C=void 0;if(N)switch(c.state.mediaObjectFit){default:case"contain":C=v>S?{width:c.containerRect.height*S,height:c.containerRect.height}:{width:c.containerRect.width,height:c.containerRect.width/S};break;case"horizontal-cover":C={width:c.containerRect.width,height:c.containerRect.width/S};break;case"vertical-cover":C={width:c.containerRect.height*S,height:c.containerRect.height};break}else C={width:m.offsetWidth,height:m.offsetHeight};c.mediaSize=zt(zt({},C),{naturalWidth:y,naturalHeight:b}),c.props.setMediaSize&&c.props.setMediaSize(c.mediaSize);var w=c.props.cropSize?c.props.cropSize:aC(c.mediaSize.width,c.mediaSize.height,c.containerRect.width,c.containerRect.height,c.props.aspect,c.props.rotation);return(((g=c.state.cropSize)===null||g===void 0?void 0:g.height)!==w.height||((h=c.state.cropSize)===null||h===void 0?void 0:h.width)!==w.width)&&c.props.onCropSizeChange&&c.props.onCropSizeChange(w),c.setState({cropSize:w},c.recomputeCropPosition),c.props.setCropSize&&c.props.setCropSize(w),w}},c.saveContainerPosition=function(){if(c.containerRef){var r=c.containerRef.getBoundingClientRect();c.containerPosition={x:r.left,y:r.top}}},c.onMouseDown=function(r){c.currentDoc&&(r.preventDefault(),c.currentDoc.addEventListener("mousemove",c.onMouseMove),c.currentDoc.addEventListener("mouseup",c.onDragStopped),c.saveContainerPosition(),c.onDragStart(i.getMousePoint(r)))},c.onMouseMove=function(r){return c.onDrag(i.getMousePoint(r))},c.onScroll=function(r){c.currentDoc&&(r.preventDefault(),c.saveContainerPosition())},c.onTouchStart=function(r){c.currentDoc&&(c.isTouching=!0,!(c.props.onTouchRequest&&!c.props.onTouchRequest(r))&&(c.currentDoc.addEventListener("touchmove",c.onTouchMove,{passive:!1}),c.currentDoc.addEventListener("touchend",c.onDragStopped),c.saveContainerPosition(),r.touches.length===2?c.onPinchStart(r):r.touches.length===1&&c.onDragStart(i.getTouchPoint(r.touches[0]))))},c.onTouchMove=function(r){r.preventDefault(),r.touches.length===2?c.onPinchMove(r):r.touches.length===1&&c.onDrag(i.getTouchPoint(r.touches[0]))},c.onGestureStart=function(r){c.currentDoc&&(r.preventDefault(),c.currentDoc.addEventListener("gesturechange",c.onGestureChange),c.currentDoc.addEventListener("gestureend",c.onGestureEnd),c.gestureZoomStart=c.props.zoom,c.gestureRotationStart=c.props.rotation)},c.onGestureChange=function(r){if(r.preventDefault(),!c.isTouching){var d=i.getMousePoint(r),f=c.gestureZoomStart-1+r.scale;if(c.setNewZoom(f,d,{shouldUpdatePosition:!0}),c.props.onRotationChange){var p=c.gestureRotationStart+r.rotation;c.props.onRotationChange(p)}}},c.onGestureEnd=function(r){c.cleanEvents()},c.onDragStart=function(r){var d,f,p=r.x,g=r.y;c.dragStartPosition={x:p,y:g},c.dragStartCrop=zt({},c.props.crop),(f=(d=c.props).onInteractionStart)===null||f===void 0||f.call(d)},c.onDrag=function(r){var d=r.x,f=r.y;c.currentWindow&&(c.rafDragTimeout&&c.currentWindow.cancelAnimationFrame(c.rafDragTimeout),c.rafDragTimeout=c.currentWindow.requestAnimationFrame(function(){if(c.state.cropSize&&!(d===void 0||f===void 0)){var p=d-c.dragStartPosition.x,g=f-c.dragStartPosition.y,h={x:c.dragStartCrop.x+p,y:c.dragStartCrop.y+g},m=c.props.restrictPosition?zc(h,c.mediaSize,c.state.cropSize,c.props.zoom,c.props.rotation):h;c.props.onCropChange(m)}}))},c.onDragStopped=function(){var r,d;c.isTouching=!1,c.cleanEvents(),c.emitCropData(),(d=(r=c.props).onInteractionEnd)===null||d===void 0||d.call(r)},c.onWheel=function(r){if(c.currentWindow&&!(c.props.onWheelRequest&&!c.props.onWheelRequest(r))){r.preventDefault();var d=i.getMousePoint(r),f=lC(r).pixelY,p=c.props.zoom-f*c.props.zoomSpeed/200;c.setNewZoom(p,d,{shouldUpdatePosition:!0}),c.state.hasWheelJustStarted||c.setState({hasWheelJustStarted:!0},function(){var g,h;return(h=(g=c.props).onInteractionStart)===null||h===void 0?void 0:h.call(g)}),c.wheelTimer&&clearTimeout(c.wheelTimer),c.wheelTimer=c.currentWindow.setTimeout(function(){return c.setState({hasWheelJustStarted:!1},function(){var g,h;return(h=(g=c.props).onInteractionEnd)===null||h===void 0?void 0:h.call(g)})},250)}},c.getPointOnContainer=function(r,d){var f=r.x,p=r.y;if(!c.containerRect)throw new Error("The Cropper is not mounted");return{x:c.containerRect.width/2-(f-d.x),y:c.containerRect.height/2-(p-d.y)}},c.getPointOnMedia=function(r){var d=r.x,f=r.y,p=c.props,g=p.crop,h=p.zoom;return{x:(d+g.x)/h,y:(f+g.y)/h}},c.setNewZoom=function(r,d,f){var p=f===void 0?{}:f,g=p.shouldUpdatePosition,h=g===void 0?!0:g;if(!(!c.state.cropSize||!c.props.onZoomChange)){var m=Ko(r,c.props.minZoom,c.props.maxZoom);if(h){var v=c.getPointOnContainer(d,c.containerPosition),y=c.getPointOnMedia(v),b={x:y.x*m-v.x,y:y.y*m-v.y},N=c.props.restrictPosition?zc(b,c.mediaSize,c.state.cropSize,m,c.props.rotation):b;c.props.onCropChange(N)}c.props.onZoomChange(m)}},c.getCropData=function(){if(!c.state.cropSize)return null;var r=c.props.restrictPosition?zc(c.props.crop,c.mediaSize,c.state.cropSize,c.props.zoom,c.props.rotation):c.props.crop;return iC(r,c.mediaSize,c.state.cropSize,c.getAspect(),c.props.zoom,c.props.rotation,c.props.restrictPosition)},c.emitCropData=function(){var r=c.getCropData();if(r){var d=r.croppedAreaPercentages,f=r.croppedAreaPixels;c.props.onCropComplete&&c.props.onCropComplete(d,f),c.props.onCropAreaChange&&c.props.onCropAreaChange(d,f)}},c.emitCropAreaChange=function(){var r=c.getCropData();if(r){var d=r.croppedAreaPercentages,f=r.croppedAreaPixels;c.props.onCropAreaChange&&c.props.onCropAreaChange(d,f)}},c.recomputeCropPosition=function(){var r,d;if(c.state.cropSize){var f=c.props.crop;if(c.isInitialized&&(!((r=c.previousCropSize)===null||r===void 0)&&r.width)&&(!((d=c.previousCropSize)===null||d===void 0)&&d.height)){var p=Math.abs(c.previousCropSize.width-c.state.cropSize.width)>1e-6||Math.abs(c.previousCropSize.height-c.state.cropSize.height)>1e-6;if(p){var g=c.state.cropSize.width/c.previousCropSize.width,h=c.state.cropSize.height/c.previousCropSize.height;f={x:c.props.crop.x*g,y:c.props.crop.y*h}}}var m=c.props.restrictPosition?zc(f,c.mediaSize,c.state.cropSize,c.props.zoom,c.props.rotation):f;c.previousCropSize=c.state.cropSize,c.props.onCropChange(m),c.emitCropData()}},c.onKeyDown=function(r){var d,f,p=c.props,g=p.crop,h=p.onCropChange,m=p.keyboardStep,v=p.zoom,y=p.rotation,b=m;if(c.state.cropSize){r.shiftKey&&(b*=.2);var N=zt({},g);switch(r.key){case"ArrowUp":N.y-=b,r.preventDefault();break;case"ArrowDown":N.y+=b,r.preventDefault();break;case"ArrowLeft":N.x-=b,r.preventDefault();break;case"ArrowRight":N.x+=b,r.preventDefault();break;default:return}c.props.restrictPosition&&(N=zc(N,c.mediaSize,c.state.cropSize,v,y)),r.repeat||(f=(d=c.props).onInteractionStart)===null||f===void 0||f.call(d),h(N)}},c.onKeyUp=function(r){var d,f;switch(r.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":r.preventDefault();break;default:return}c.emitCropData(),(f=(d=c.props).onInteractionEnd)===null||f===void 0||f.call(d)},c}return i.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=hC,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},i.prototype.componentWillUnmount=function(){var c,r;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(c=this.resizeObserver)===null||c===void 0||c.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((r=this.styleRef.parentNode)===null||r===void 0||r.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},i.prototype.componentDidUpdate=function(c){var r,d,f,p,g,h,m,v,y;c.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):c.aspect!==this.props.aspect?this.computeSizes():c.objectFit!==this.props.objectFit?this.computeSizes():c.zoom!==this.props.zoom?this.recomputeCropPosition():((r=c.cropSize)===null||r===void 0?void 0:r.height)!==((d=this.props.cropSize)===null||d===void 0?void 0:d.height)||((f=c.cropSize)===null||f===void 0?void 0:f.width)!==((p=this.props.cropSize)===null||p===void 0?void 0:p.width)?this.computeSizes():(((g=c.crop)===null||g===void 0?void 0:g.x)!==((h=this.props.crop)===null||h===void 0?void 0:h.x)||((m=c.crop)===null||m===void 0?void 0:m.y)!==((v=this.props.crop)===null||v===void 0?void 0:v.y))&&this.emitCropAreaChange(),c.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),c.video!==this.props.video&&((y=this.videoRef.current)===null||y===void 0||y.load());var b=this.getObjectFit();b!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:b},this.computeSizes)},i.prototype.getAspect=function(){var c=this.props,r=c.cropSize,d=c.aspect;return r?r.width/r.height:d},i.prototype.getObjectFit=function(){var c,r,d,f;if(this.props.objectFit==="cover"){var p=this.imageRef.current||this.videoRef.current;if(p&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var g=this.containerRect.width/this.containerRect.height,h=((c=this.imageRef.current)===null||c===void 0?void 0:c.naturalWidth)||((r=this.videoRef.current)===null||r===void 0?void 0:r.videoWidth)||0,m=((d=this.imageRef.current)===null||d===void 0?void 0:d.naturalHeight)||((f=this.videoRef.current)===null||f===void 0?void 0:f.videoHeight)||0,v=h/m;return v<g?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},i.prototype.onPinchStart=function(c){var r=i.getTouchPoint(c.touches[0]),d=i.getTouchPoint(c.touches[1]);this.lastPinchDistance=Dp(r,d),this.lastPinchRotation=kp(r,d),this.onDragStart(Bp(r,d))},i.prototype.onPinchMove=function(c){var r=this;if(!(!this.currentDoc||!this.currentWindow)){var d=i.getTouchPoint(c.touches[0]),f=i.getTouchPoint(c.touches[1]),p=Bp(d,f);this.onDrag(p),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var g=Dp(d,f),h=r.props.zoom*(g/r.lastPinchDistance);r.setNewZoom(h,p,{shouldUpdatePosition:!1}),r.lastPinchDistance=g;var m=kp(d,f),v=r.props.rotation+(m-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(v),r.lastPinchRotation=m})}},i.prototype.render=function(){var c=this,r,d=this.props,f=d.image,p=d.video,g=d.mediaProps,h=d.cropperProps,m=d.transform,v=d.crop,y=v.x,b=v.y,N=d.rotation,S=d.zoom,C=d.cropShape,w=d.showGrid,O=d.roundCropAreaPixels,H=d.style,L=H.containerStyle,U=H.cropAreaStyle,I=H.mediaStyle,W=d.classes,B=W.containerClassName,Y=W.cropAreaClassName,le=W.mediaClassName,me=(r=this.state.mediaObjectFit)!==null&&r!==void 0?r:this.getObjectFit();return j.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(Ee){return c.containerRef=Ee},"data-testid":"container",style:L,className:Co("reactEasyCrop_Container",B)},f?j.createElement("img",zt({alt:"",className:Co("reactEasyCrop_Image",me==="contain"&&"reactEasyCrop_Contain",me==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",me==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",le)},g,{src:f,ref:this.imageRef,style:zt(zt({},I),{transform:m||"translate(".concat(y,"px, ").concat(b,"px) rotate(").concat(N,"deg) scale(").concat(S,")")}),onLoad:this.onMediaLoad})):p&&j.createElement("video",zt({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:Co("reactEasyCrop_Video",me==="contain"&&"reactEasyCrop_Contain",me==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",me==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",le)},g,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:zt(zt({},I),{transform:m||"translate(".concat(y,"px, ").concat(b,"px) rotate(").concat(N,"deg) scale(").concat(S,")")}),controls:!1}),(Array.isArray(p)?p:[{src:p}]).map(function(he){return j.createElement("source",zt({key:he.src},he))})),this.state.cropSize&&j.createElement("div",zt({ref:this.cropperRef,style:zt(zt({},U),{width:O?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:O?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:Co("reactEasyCrop_CropArea",C==="round"&&"reactEasyCrop_CropAreaRound",w&&"reactEasyCrop_CropAreaGrid",Y)},h)))},i.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:pC,minZoom:mC,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:_C},i.getMousePoint=function(c){return{x:Number(c.clientX),y:Number(c.clientY)}},i.getTouchPoint=function(c){return{x:Number(c.clientX),y:Number(c.clientY)}},i})(j.Component);function vC(a){return new Promise((i,c)=>{const r=new Image;r.onload=()=>i(r),r.onerror=()=>c(new Error("Не удалось загрузить изображение")),r.src=a})}async function yC(a,i,c=512){const r=await vC(a),d=document.createElement("canvas");d.width=c,d.height=c;const f=d.getContext("2d");if(!f)throw new Error("Canvas 2D context недоступен");return f.drawImage(r,i.x,i.y,i.width,i.height,0,0,c,c),new Promise((p,g)=>{d.toBlob(h=>{h?p(h):g(new Error("Пустой Blob после обрезки"))},"image/jpeg",.9)})}const xC="_backdrop_1cfz6_1",bC="_card_1cfz6_12",jC="_title_1cfz6_25",SC="_cropArea_1cfz6_31",NC="_controls_1cfz6_40",wC="_zoom_1cfz6_52",CC="_actions_1cfz6_57",EC="_error_1cfz6_63",ba={backdrop:xC,card:bC,title:jC,cropArea:SC,controls:NC,zoom:wC,actions:CC,error:EC};function TC({imageSrc:a,isSaving:i,onCancel:c,onConfirm:r}){const[d,f]=j.useState({x:0,y:0}),[p,g]=j.useState(1),[h,m]=j.useState(null),[v,y]=j.useState(null),b=j.useCallback((S,C)=>{m(C)},[]);j.useEffect(()=>{const S=C=>{C.key==="Escape"&&!i&&c()};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[c,i]);const N=async()=>{if(h){y(null);try{const S=await yC(a,h);await r(S)}catch{y("Не удалось обрезать изображение")}}};return l.jsx("div",{className:ba.backdrop,onClick:i?void 0:c,children:l.jsxs("div",{className:ba.card,onClick:S=>S.stopPropagation(),children:[l.jsx("h3",{className:ba.title,children:"Выберите область аватара"}),l.jsx("div",{className:ba.cropArea,children:l.jsx(gC,{image:a,crop:d,zoom:p,aspect:1,cropShape:"round",showGrid:!1,onCropChange:f,onZoomChange:g,onCropComplete:b})}),l.jsxs("div",{className:ba.controls,children:[l.jsx("label",{htmlFor:"avatar-zoom",children:"Масштаб"}),l.jsx("input",{id:"avatar-zoom",className:ba.zoom,type:"range",min:1,max:3,step:.01,value:p,onChange:S=>g(Number(S.target.value))})]}),v&&l.jsx("span",{className:ba.error,children:v}),l.jsxs("div",{className:ba.actions,children:[l.jsx(nn,{variant:"ghost",onClick:c,disabled:i,children:"Отмена"}),l.jsx(nn,{variant:"primary",onClick:N,disabled:i||!h,children:i?"Загрузка...":"Сохранить"})]})]})})}const RC="_col_1gh35_1",AC="_avatar_1gh35_10",OC="_avatarImg_1gh35_30",MC="_error_1gh35_37",LC="_overlay_1gh35_43",zC="_addPhoto_1gh35_68",ri={col:RC,avatar:AC,avatarImg:OC,error:MC,overlay:LC,addPhoto:zC};function DC(a){return new Promise((i,c)=>{const r=new FileReader;r.onload=()=>{const d=r.result,f=d.indexOf(",");i(f>=0?d.slice(f+1):d)},r.onerror=()=>c(r.error),r.readAsDataURL(a)})}function kC(){const{data:a}=Il(),{mutateAsync:i,isPending:c}=Yj(),r=j.useRef(null),[d,f]=j.useState(null),[p,g]=j.useState(!1),[h,m]=j.useState(null),v=(a==null?void 0:a.avatar_link)??null,y=v&&!p;j.useEffect(()=>{g(!1)},[v]),j.useEffect(()=>()=>{h&&URL.revokeObjectURL(h)},[h]);const b=()=>{var w;c||(w=r.current)==null||w.click()},N=w=>{var H;const O=(H=w.target.files)==null?void 0:H[0];w.target.value="",O&&(f(null),m(URL.createObjectURL(O)))},S=()=>{h&&URL.revokeObjectURL(h),m(null)},C=async w=>{try{const O=await DC(w);await i({photo_base64:O,decoded_bytes:String(w.size)}),S()}catch{f("Не удалось загрузить фото"),S()}};return l.jsxs("div",{className:ri.col,children:[l.jsxs("div",{className:ri.avatar,onClick:b,children:[y?l.jsx("img",{src:v,alt:"avatar",className:ri.avatarImg,referrerPolicy:"no-referrer",onError:()=>{console.warn("[avatar] failed to load",v),g(!0)}}):l.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[l.jsx("circle",{cx:"12",cy:"8",r:"4"}),l.jsx("path",{d:"M4 20c0-4 4-7 8-7s8 3 8 7"})]}),l.jsx("div",{className:ri.overlay,children:l.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[l.jsx("path",{d:"M23 19a2 2 0 01-2 2H3a2 2 0 01-2-2V8a2 2 0 012-2h4l2-3h6l2 3h4a2 2 0 012 2z"}),l.jsx("circle",{cx:"12",cy:"13",r:"4"})]})})]}),l.jsx("input",{ref:r,type:"file",accept:"image/*",onChange:N,hidden:!0}),l.jsx("div",{className:ri.addPhoto,children:l.jsx(nn,{variant:"ghost",onClick:b,disabled:c,children:c?"ЗАГРУЗКА...":"ДОБАВИТЬ ФОТО"})}),d&&l.jsx("span",{className:ri.error,children:d}),h&&l.jsx(TC,{imageSrc:h,isSaving:c,onCancel:S,onConfirm:C})]})}const BC="_card_17od5_1",UC="_title_17od5_8",$C="_actions_17od5_17",Ld={card:BC,title:UC,actions:$C};function gs({title:a,children:i,actions:c}){return l.jsxs("div",{className:Ld.card,children:[l.jsx("div",{className:Ld.title,children:a}),i,c&&l.jsx("div",{className:Ld.actions,children:c})]})}const HC="_page_h0psp_1",qC="_kycBanner_h0psp_8",FC="_main_h0psp_19",GC="_profileTop_h0psp_29",VC="_userInfo_h0psp_33",QC="_sections_h0psp_37",YC="_grid2_h0psp_44",IC="_grid1_h0psp_50",PC="_mnemonicRow_h0psp_56",XC="_mnemonicInfo_h0psp_63",ZC="_mnemonicIcon_h0psp_69",KC="_mnemonicText_h0psp_73",WC="_userName_h0psp_105",JC="_userBalance_h0psp_112",Dt={page:HC,kycBanner:qC,main:FC,profileTop:GC,userInfo:VC,sections:QC,grid2:YC,grid1:IC,mnemonicRow:PC,mnemonicInfo:XC,mnemonicIcon:ZC,mnemonicText:KC,userName:WC,userBalance:JC};function eE({data:a,fullName:i,phone:c,onPhoneChange:r,onPhoneBlur:d}){return l.jsxs(l.Fragment,{children:[l.jsx(gs,{title:"Личные данные",children:l.jsxs("div",{className:Dt.grid2,children:[l.jsx(Ne,{label:"Полное ФИО",value:i,placeholder:"Например: Иванов Иван Иванович",readOnly:!0}),l.jsx(Ne,{label:"Адрес электронной почты",value:a.email??"",type:"email",icon:"check",placeholder:"example@mail.ru",readOnly:!0}),l.jsx(Ne,{label:"Серия и номер паспорта",value:a.passport_data??"",placeholder:"0000 000000",readOnly:!0}),l.jsx(Ne,{label:"Номер телефона",value:c,onChange:r,onBlur:d,type:"tel",placeholder:"+7 (999) 000-00-00"})]})}),l.jsx(gs,{title:"Верификация",children:l.jsxs("div",{className:Dt.grid2,children:[l.jsx(Ne,{label:"ИНН",value:a.inn??"",readOnly:!0,icon:"lock",placeholder:"000000000000"}),l.jsx(Ne,{label:"ID аккаунта",value:a.id??"",readOnly:!0,icon:"lock",placeholder:"ECSA-00000000"})]})})]})}function tE({data:a}){const i=a.legal_entity;return i?l.jsxs(l.Fragment,{children:[l.jsx(gs,{title:"Данные организации",children:l.jsxs("div",{className:Dt.grid2,children:[l.jsx(Ne,{label:"Наименование",value:i.name??"",placeholder:"ООО «Ромашка»",readOnly:!0}),l.jsx(Ne,{label:"Краткое наименование",value:i.short_name??"",placeholder:"Ромашка",readOnly:!0}),l.jsx(Ne,{label:"ИНН",value:i.inn??"",readOnly:!0,icon:"lock",placeholder:"000000000000"}),l.jsx(Ne,{label:"ОГРН",value:i.ogrn??"",placeholder:"1027700132195",readOnly:!0}),l.jsx(Ne,{label:"КПП",value:i.kpp??"",placeholder:"770801001",readOnly:!0}),l.jsx(Ne,{label:"Адрес электронной почты",value:a.email??"",type:"email",icon:"check",placeholder:"org@mail.ru",readOnly:!0})]})}),l.jsx(gs,{title:"Адреса",children:l.jsxs("div",{className:Dt.grid2,children:[l.jsx(Ne,{label:"Юридический адрес",value:i.legal_address??"",placeholder:"г. Москва, ул. Тверская, д. 1",readOnly:!0}),l.jsx(Ne,{label:"Фактический адрес",value:i.actual_address??"",placeholder:"г. Москва, ул. Тверская, д. 1",readOnly:!0})]})}),l.jsx(gs,{title:"Контакты и верификация",children:l.jsxs("div",{className:Dt.grid2,children:[l.jsx(Ne,{label:"Контактное лицо",value:i.contact_person??"",placeholder:"Иванов Иван Иванович",readOnly:!0}),l.jsx(Ne,{label:"Контактный телефон",value:i.contact_phone??"",type:"tel",placeholder:"+7 (999) 000-00-00",readOnly:!0}),l.jsx(Ne,{label:"Статус",value:i.status??"",placeholder:"active",readOnly:!0}),l.jsx(Ne,{label:"ID аккаунта",value:a.id??"",readOnly:!0,icon:"lock",placeholder:"ECSA-00000000"})]})})]}):null}function nE(){var L;const{data:a}=Il(),{data:i,isLoading:c}=Xo(),{data:r}=Po(),d=Ij(),f=Ln(),[p,g]=j.useState(""),[h,m]=j.useState(""),[v,y]=j.useState(null);j.useEffect(()=>{(a==null?void 0:a.phone)!=null&&(g(a.phone),m(a.phone))},[a==null?void 0:a.phone]);function b(U){g(U.replace(/[^\d+\s()-]/g,""))}function N(){const U=p.trim();U===h||d.isPending||d.mutate(U,{onSuccess:()=>{m(U),y({status:"success",message:"Номер телефона обновлён"})},onError:()=>{y({status:"error",message:"Не удалось обновить номер телефона"})}})}const S=U=>U?U[0].toUpperCase()+U.slice(1).toLowerCase():"",C=a?[a.last_name,a.first_name,a.middle_name].filter(Boolean).map(S).join(" "):"",w=!!a&&a.account_type!=="individual",O=w?((L=a==null?void 0:a.legal_entity)==null?void 0:L.name)??"":C,H=c||!i||i.totalUsd==null?"$—":`$${i.totalUsd.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`;return l.jsxs("div",{className:Dt.page,children:[l.jsx(Zo,{}),a&&!a.kyc_verified&&l.jsx("div",{className:Dt.kycBanner,children:"Для полного доступа к платформе необходимо пройти верификацию личности (KYC)"}),l.jsxs("main",{className:Dt.main,children:[l.jsxs("div",{className:Dt.profileTop,children:[l.jsx(kC,{}),l.jsxs("div",{className:Dt.userInfo,children:[l.jsx("span",{className:Dt.userName,children:O}),l.jsx("span",{className:Dt.userBalance,children:H})]})]}),l.jsxs("div",{className:Dt.sections,children:[a&&(w?l.jsx(tE,{data:a}):l.jsx(eE,{data:a,fullName:C,phone:p,onPhoneChange:b,onPhoneBlur:N})),l.jsx(gs,{title:"Безопасность",actions:l.jsxs(l.Fragment,{children:[l.jsx(nn,{variant:"danger",children:"⚠️ Посмотреть приватный ключ"}),l.jsx(nn,{variant:"primary",children:"СОХРАНИТЬ"})]}),children:l.jsx("div",{className:Dt.grid1,children:r==null?void 0:r.map(({chain:U,address:I})=>l.jsx(Ne,{label:`Адрес ${U}`,readOnly:!0,icon:"lock",value:I,placeholder:"—"},U))})}),l.jsx(gs,{title:"Мнемоника",children:l.jsxs("div",{className:Dt.mnemonicRow,children:[l.jsxs("div",{className:Dt.mnemonicInfo,children:[l.jsx("span",{className:Dt.mnemonicIcon,children:"🔑"}),l.jsx("span",{className:Dt.mnemonicText,children:"Сид-фраза из 12 слов для восстановления кошелька"})]}),l.jsx(nn,{variant:"danger",onClick:()=>f(oe.SEED_PHRASE),children:"⚠ Показать мнемонику"})]})})]})]}),v&&l.jsx(Ql,{status:v.status,message:v.message,onClose:()=>y(null)})]})}const lE="_card_1erii_1",aE="_logo_1erii_10",sE="_title_1erii_20",iE="_twoCol_1erii_29",cE="_leftCol_1erii_36",rE="_rightCol_1erii_42",oE="_codeHint_1erii_48",uE="_error_1erii_55",dE="_submitWrapper_1erii_62",fE="_footer_1erii_66",hE="_forgot_1erii_73",mE="_divider_1erii_88",Qn={card:lE,logo:aE,title:sE,twoCol:iE,leftCol:cE,rightCol:rE,codeHint:oE,error:uE,submitWrapper:dE,footer:fE,forgot:hE,divider:mE};function Up(a){var c,r;const i=a;return((r=(c=i==null?void 0:i.detail)==null?void 0:c[0])==null?void 0:r.msg)??"Произошла ошибка"}function pE(){const[a,i]=j.useState(""),[c,r]=j.useState(""),[d,f]=j.useState(""),[p,g]=j.useState(!1),h=_n(),m=Ln(),v=vt({mutationFn:Uj,onSuccess:()=>g(!0)}),y=vt({mutationFn:$j,onSuccess:async({access_token:C})=>{E2(),h.clear(),C&&It.set(C),await h.invalidateQueries({queryKey:Io}),m(oe.PROFILE)}}),b=()=>{a&&v.mutate({email:a})},N=C=>{C.preventDefault(),y.mutate({email:a,password:c,code:d})},S=(v.isError?Up(v.error):null)??(y.isError?Up(y.error):null);return{email:a,setEmail:i,password:c,setPassword:r,verificationCode:d,setVerificationCode:f,codeSent:p,isLoadingCode:v.isPending,isLoadingSubmit:y.isPending,error:S,handleRequestCode:b,handleSubmit:N}}function _E(){const{email:a,setEmail:i,password:c,setPassword:r,verificationCode:d,setVerificationCode:f,codeSent:p,isLoadingCode:g,isLoadingSubmit:h,error:m,handleRequestCode:v,handleSubmit:y}=pE(),b=Ln();return l.jsxs("form",{className:Qn.card,onSubmit:y,children:[l.jsx("div",{className:Qn.logo,children:l.jsx("img",{src:pl,alt:"ЭКСА"})}),l.jsx("h1",{className:Qn.title,children:"Войти в кошелёк ЭКСА"}),l.jsxs("div",{className:Qn.twoCol,children:[l.jsxs("div",{className:Qn.leftCol,children:[l.jsx(Ne,{label:"Адрес электронной почты",type:"email",value:a,onChange:i,placeholder:"example@mail.ru",required:!0}),l.jsx(Ne,{label:"Пароль",type:"password",value:c,onChange:r,placeholder:"••••••••",required:!0})]}),l.jsxs("div",{className:Qn.rightCol,children:[l.jsx(nn,{variant:"ghost",type:"button",onClick:v,disabled:p||g,children:g?"Отправка...":p?"Код отправлен":"Получить код на email"}),l.jsx("span",{className:Qn.codeHint,children:"Код не пришёл"}),l.jsx(Ne,{label:"Ввести код",type:"text",value:d,onChange:f,placeholder:"000 000",required:!0})]})]}),m&&l.jsx("p",{className:Qn.error,children:m}),l.jsx("div",{className:Qn.submitWrapper,children:l.jsx(tl,{label:h?"Вход...":"Войти",disabled:h})}),l.jsxs("div",{className:Qn.footer,children:[l.jsx("a",{className:Qn.forgot,onClick:()=>b(oe.RESTORE_PASSWORD),children:"Забыли пароль?"}),l.jsx("div",{className:Qn.divider,children:l.jsx("span",{children:"или"})}),l.jsx(nn,{variant:"outline",type:"button",onClick:()=>b(oe.REGISTER),children:"Создать новый кошелёк"})]})]})}const gE="_page_a6ygb_1",vE={page:gE};function yE(){return l.jsx("div",{className:vE.page,children:l.jsx(_E,{})})}function $p(a){var c,r;const i=a;return((r=(c=i==null?void 0:i.detail)==null?void 0:c[0])==null?void 0:r.msg)??"Произошла ошибка"}function xE(){const a=Ln(),i=_n(),[c,r]=j.useState(""),[d,f]=j.useState(""),[p,g]=j.useState(""),[h,m]=j.useState(""),[v,y]=j.useState(!1),[b,N]=j.useState(null),S=vt({mutationFn:kj,onSuccess:()=>y(!0)}),C=vt({mutationFn:Bj,onSuccess:async({access_token:L})=>{E2(),i.clear(),L&&It.set(L),await i.invalidateQueries({queryKey:Io}),a(oe.WALLET)}}),w=()=>{c&&S.mutate({email:c})},O=L=>{if(L.preventDefault(),d!==p){N("Пароли не совпадают");return}N(null),C.mutate({email:c,password:d,confirm_password:p,code:h})},H=b??(S.isError?$p(S.error):null)??(C.isError?$p(C.error):null);return{email:c,setEmail:r,password:d,setPassword:f,confirmPassword:p,setConfirmPassword:g,verificationCode:h,setVerificationCode:m,codeSent:v,isLoadingCode:S.isPending,isLoadingSubmit:C.isPending,error:H,handleRequestCode:w,handleSubmit:O}}const bE="_card_4lgff_1",jE="_logo_4lgff_10",SE="_title_4lgff_20",NE="_typeSelect_4lgff_29",wE="_back_4lgff_39",CE="_legalInfo_4lgff_55",EE="_legalIntro_4lgff_61",TE="_docsBlock_4lgff_67",RE="_emailBlock_4lgff_68",AE="_docsLabel_4lgff_74",OE="_docsList_4lgff_80",ME="_emailLink_4lgff_94",LE="_legalDone_4lgff_105",zE="_legalDoneTitle_4lgff_113",DE="_legalDoneText_4lgff_119",kE="_twoCol_4lgff_125",BE="_leftCol_4lgff_132",UE="_rightCol_4lgff_138",$E="_codeHint_4lgff_149",HE="_error_4lgff_156",qE="_submitWrapper_4lgff_163",FE="_legal_4lgff_55",st={card:bE,logo:jE,title:SE,typeSelect:NE,back:wE,legalInfo:CE,legalIntro:EE,docsBlock:TE,emailBlock:RE,docsLabel:AE,docsList:OE,emailLink:ME,legalDone:LE,legalDoneTitle:zE,legalDoneText:DE,twoCol:kE,leftCol:BE,rightCol:UE,codeHint:$E,error:HE,submitWrapper:qE,legal:FE};function GE(){const{email:a,setEmail:i,password:c,setPassword:r,confirmPassword:d,setConfirmPassword:f,verificationCode:p,setVerificationCode:g,codeSent:h,isLoadingCode:m,isLoadingSubmit:v,error:y,handleRequestCode:b,handleSubmit:N}=xE();return l.jsxs("form",{onSubmit:N,children:[l.jsxs("div",{className:st.twoCol,children:[l.jsxs("div",{className:st.leftCol,children:[l.jsx(Ne,{label:"Введите адрес электронной почты",type:"email",value:a,onChange:i,placeholder:"example@mail.ru",required:!0}),l.jsx(Ne,{label:"Придумайте пароль",type:"password",value:c,onChange:r,placeholder:"••••••••",required:!0}),l.jsx(Ne,{label:"Повторите пароль",type:"password",value:d,onChange:f,placeholder:"••••••••",required:!0})]}),l.jsxs("div",{className:st.rightCol,children:[l.jsx(nn,{variant:"ghost",type:"button",onClick:b,disabled:h||m,children:m?"Отправка...":h?"Код отправлен":"Получить проверочный код"}),l.jsx("span",{className:st.codeHint,children:"Код не пришёл"}),l.jsx(Ne,{label:"Ввести код",type:"text",value:p,onChange:g,placeholder:"000 000",required:!0})]})]}),y&&l.jsx("p",{className:st.error,children:y}),l.jsx("div",{className:st.submitWrapper,children:l.jsx(tl,{label:v?"Создание...":"Создать",disabled:v})}),l.jsxs("p",{className:st.legal,children:["Нажимая «Создать», вы принимаете",l.jsx("br",{}),l.jsx("a",{href:"#",children:"Пользовательское соглашение"})," и ",l.jsx("a",{href:"#",children:"Политику конфиденциальности"})]})]})}const Hp="support@elcsa.ru",VE=["Устав организации в действующей редакции","Решение (протокол) о создании организации и о назначении руководителя","Выписка по расчётному счёту из банка за последние шесть месяцев","Выписка из Единого государственного реестра юридических лиц (ЕГРЮЛ)","Идентификатор электронного документооборота (ЭДО)","Реквизиты расчётного счёта: номер Р/С, БИК и наименование банка"];function QE(){const[a,i]=j.useState(!1);return a?l.jsxs("div",{className:st.legalDone,children:[l.jsx("h2",{className:st.legalDoneTitle,children:"Спасибо!"}),l.jsx("p",{className:st.legalDoneText,children:"Мы получили уведомление об отправке документов. После проверки мы свяжемся с вами по указанному адресу электронной почты."})]}):l.jsxs("div",{className:st.legalInfo,children:[l.jsx("p",{className:st.legalIntro,children:"Для регистрации юридического лица отправьте перечисленные ниже документы на нашу электронную почту. После проверки мы свяжемся с вами для завершения регистрации."}),l.jsxs("div",{className:st.docsBlock,children:[l.jsx("span",{className:st.docsLabel,children:"Необходимые документы"}),l.jsx("ul",{className:st.docsList,children:VE.map(c=>l.jsx("li",{children:c},c))})]}),l.jsxs("div",{className:st.emailBlock,children:[l.jsx("span",{className:st.docsLabel,children:"Адрес для отправки документов"}),l.jsx("a",{href:`mailto:${Hp}`,className:st.emailLink,children:Hp})]}),l.jsx("div",{className:st.submitWrapper,children:l.jsx(tl,{label:"Документы отправлены",type:"button",onClick:()=>i(!0)})})]})}function YE(){const[a,i]=j.useState(null);return l.jsxs("div",{className:st.card,children:[l.jsx("div",{className:st.logo,children:l.jsx("img",{src:pl,alt:"ЭКСА"})}),l.jsx("h1",{className:st.title,children:"Создать кошелёк ЭКСА"}),a===null?l.jsxs("div",{className:st.typeSelect,children:[l.jsx(nn,{variant:"primary",onClick:()=>i("individual"),children:"Зарегистрироваться как физическое лицо"}),l.jsx(nn,{variant:"outline",onClick:()=>i("legal"),children:"Зарегистрироваться как юридическое лицо"})]}):l.jsxs(l.Fragment,{children:[l.jsx("button",{type:"button",className:st.back,onClick:()=>i(null),children:"← Назад к выбору"}),a==="individual"?l.jsx(GE,{}):l.jsx(QE,{})]})]})}const IE="_page_a6ygb_1",PE={page:IE};function XE(){return l.jsx("div",{className:PE.page,children:l.jsx(YE,{})})}const ZE="_page_1bkwz_1",KE="_card_1bkwz_9",WE="_logo_1bkwz_18",JE="_title_1bkwz_28",eT="_typeSwitch_1bkwz_38",tT="_typeOption_1bkwz_49",nT="_typeOptionActive_1bkwz_66",lT="_twoCol_1bkwz_71",aT="_leftCol_1bkwz_78",sT="_rightCol_1bkwz_84",iT="_codeHint_1bkwz_90",cT="_backButton_1bkwz_98",rT="_documentsSubtitle_1bkwz_131",oT="_documentsList_1bkwz_137",uT="_documentItem_1bkwz_146",dT="_documentName_1bkwz_157",fT="_attachButton_1bkwz_163",hT="_fileInput_1bkwz_181",mT="_submitWrapper_1bkwz_192",pT="_legal_1bkwz_196",We={page:ZE,card:KE,logo:WE,title:JE,typeSwitch:eT,typeOption:tT,typeOptionActive:nT,twoCol:lT,leftCol:aT,rightCol:sT,codeHint:iT,backButton:cT,documentsSubtitle:rT,documentsList:oT,documentItem:uT,documentName:dT,attachButton:fT,fileInput:hT,submitWrapper:mT,legal:pT},_T=["Свидетельство о государственной регистрации (ОГРН)","Свидетельство о постановке на учёт в налоговом органе (ИНН)","Устав организации (действующая редакция)","Решение/протокол о назначении руководителя","Документ, подтверждающий полномочия лица, открывающего счёт","Карточка с образцами подписей и оттиска печати"];function gT(){const[a,i]=j.useState(""),[c,r]=j.useState(""),[d,f]=j.useState(""),[p,g]=j.useState(""),[h,m]=j.useState("individual"),[v,y]=j.useState("info"),b=h==="legal",N=C=>{C.preventDefault(),y("documents")},S=C=>{C.preventDefault()};return l.jsx("div",{className:We.page,children:v==="info"?l.jsxs("form",{className:We.card,onSubmit:N,children:[l.jsx("div",{className:We.logo,children:l.jsx("img",{src:pl,alt:"ЭКСА"})}),l.jsx("h1",{className:We.title,children:"Создать кошелёк ЭКСА"}),l.jsxs("div",{className:We.typeSwitch,role:"tablist","aria-label":"Тип регистрации",children:[l.jsx("button",{type:"button",role:"tab","aria-selected":!b,className:`${We.typeOption} ${b?"":We.typeOptionActive}`,onClick:()=>m("individual"),children:"Физическое лицо"}),l.jsx("button",{type:"button",role:"tab","aria-selected":b,className:`${We.typeOption} ${b?We.typeOptionActive:""}`,onClick:()=>m("legal"),children:"Юридическое лицо"})]}),l.jsxs("div",{className:We.twoCol,children:[l.jsxs("div",{className:We.leftCol,children:[l.jsx(Ne,{label:b?"Введите корпоративный email":"Введите адрес электронной почты",type:"email",value:a,onChange:i,placeholder:b?"name@company.ru":"example@mail.ru"}),l.jsx(Ne,{label:"Придумайте пароль",type:"password",value:c,onChange:r,placeholder:"••••••••"}),l.jsx(Ne,{label:"Повторите пароль",type:"password",value:d,onChange:f,placeholder:"••••••••"})]}),l.jsxs("div",{className:We.rightCol,children:[l.jsx(nn,{variant:"ghost",type:"button",children:"Получить проверочный код"}),l.jsx("span",{className:We.codeHint,children:"Код не пришёл"}),l.jsx(Ne,{label:"Ввести код",type:"text",value:p,onChange:g,placeholder:"000 000"})]})]}),l.jsx("div",{className:We.submitWrapper,children:l.jsx(tl,{label:"Создать"})}),l.jsxs("p",{className:We.legal,children:["Нажимая «Создать», вы принимаете",l.jsx("br",{}),l.jsx("a",{href:"#",children:"Пользовательское соглашение"})," и ",l.jsx("a",{href:"#",children:"Политику конфиденциальности"})]})]}):l.jsxs("form",{className:We.card,onSubmit:S,children:[l.jsx("div",{className:We.logo,children:l.jsx("img",{src:pl,alt:"ЭКСА"})}),l.jsx("button",{type:"button",className:We.backButton,onClick:()=>y("info"),children:"← Назад к данным"}),l.jsx("h1",{className:We.title,children:"Прикрепите документы"}),l.jsx("p",{className:We.documentsSubtitle,children:"Для открытия счёта юридическому лицу прикрепите сканы или фотографии следующих документов:"}),l.jsx("ul",{className:We.documentsList,children:_T.map(C=>l.jsxs("li",{className:We.documentItem,children:[l.jsx("span",{className:We.documentName,children:C}),l.jsxs("label",{className:We.attachButton,children:["Прикрепить",l.jsx("input",{type:"file",className:We.fileInput,multiple:!0})]})]},C))}),l.jsx("div",{className:We.submitWrapper,children:l.jsx(tl,{label:"Создать аккаунт"})})]})})}const vT="_page_cc0zl_1",yT="_wrap_cc0zl_9",xT="_header_cc0zl_20",bT="_title_cc0zl_24",jT="_subtitle_cc0zl_29",ST="_body_cc0zl_37",NT="_formCol_cc0zl_43",wT="_hint_cc0zl_49",CT="_infoCol_cc0zl_56",ET="_infoTitle_cc0zl_61",TT="_infoRow_cc0zl_68",RT="_infoLabel_cc0zl_84",AT="_infoValue_cc0zl_89",OT="_note_cc0zl_95",MT="_submitBtn_cc0zl_102",gt={page:vT,wrap:yT,header:xT,title:bT,subtitle:jT,body:ST,formCol:NT,hint:wT,infoCol:CT,infoTitle:ET,infoRow:TT,infoLabel:RT,infoValue:AT,note:OT,submitBtn:MT},zd=5e5,qp=.03,Eo=a=>a.toLocaleString("ru-RU",{maximumFractionDigits:0});function LT(){const[a,i]=j.useState(""),[c,r]=j.useState(""),[d,f]=j.useState(""),p=Number(a.replace(/\D/g,""))||0,g=p>0&&p<zd,h=p*qp,m=y=>{const b=y.replace(/\D/g,"");i(b?Eo(Number(b)):"")},v=y=>{y.preventDefault()};return l.jsx("div",{className:gt.page,children:l.jsxs("form",{className:gt.wrap,onSubmit:v,children:[l.jsxs("div",{className:gt.header,children:[l.jsx("h1",{className:gt.title,children:"Оставить заявку"}),l.jsx("p",{className:gt.subtitle,children:"Конвертация крупных объёмов по индивидуальному курсу. Оставьте заявку — менеджер свяжется с вами, подтвердит актуальный курс и сопроводит сделку."})]}),l.jsxs("div",{className:gt.body,children:[l.jsxs("div",{className:gt.formCol,children:[l.jsx(Ne,{label:"Объём заявки, ₽",type:"text",value:a,onChange:m,placeholder:"от 500 000"}),g&&l.jsxs("p",{className:gt.hint,children:["Минимальный объём заявки — ",Eo(zd)," ₽"]}),l.jsx(Ne,{label:"Как к вам обращаться",type:"text",value:c,onChange:r,placeholder:"Имя"}),l.jsx(Ne,{label:"Email или телефон для связи",type:"text",value:d,onChange:f,placeholder:"example@mail.ru / +7 900 000-00-00"})]}),l.jsxs("div",{className:gt.infoCol,children:[l.jsx("div",{className:gt.infoTitle,children:"УСЛОВИЯ"}),l.jsxs("div",{className:gt.infoRow,children:[l.jsx("span",{className:gt.infoLabel,children:"Минимальный объём"}),l.jsxs("span",{className:gt.infoValue,children:[Eo(zd)," ₽"]})]}),l.jsxs("div",{className:gt.infoRow,children:[l.jsx("span",{className:gt.infoLabel,children:"Примерная комиссия"}),l.jsxs("span",{className:gt.infoValue,children:[(qp*100).toFixed(0)," %"]})]}),l.jsxs("div",{className:gt.infoRow,"data-accent":!0,children:[l.jsx("span",{className:gt.infoLabel,children:"Комиссия с объёма"}),l.jsx("span",{className:gt.infoValue,children:p>0?`${Eo(h)}`:"—"})]}),l.jsx("p",{className:gt.note,children:"Итоговая комиссия рассчитывается индивидуально и зависит от объёма, валюты и направления сделки."})]})]}),l.jsx("button",{type:"submit",className:gt.submitBtn,disabled:g,children:"Оставить заявку"})]})})}const zT="Сумма для конвертации слишком мала. Увеличьте сумму и попробуйте снова.";function DT(){const a=P3(),[i,c]=j.useState(!1),[r,d]=j.useState(null),{mutate:f,isPending:p}=C6();function g(){d(null),f(a.isUsdtToRub?{usdt_amount:a.numUsdt,usdt_exchange_rate:1,gas_fee:1,total_price:a.rubTotalNum}:{usdt_amount:a.usdtFromRubNum,usdt_exchange_rate:1,gas_fee:1,total_price:a.numRubInput},{onError:()=>d({status:"error",message:zT})})}const h=a.isUsdtToRub?!a.rubTotal||p||!i:!a.usdtFromRub||p||!i||a.rubBelowMin;return{...a,agreed:i,setAgreed:c,onPay:g,isPending:p,isPayDisabled:h,notification:r,dismissNotification:()=>d(null)}}const kT="_wrap_6xfms_1",BT="_box_6xfms_12",UT="_text_6xfms_39",$T="_link_6xfms_46",HT="_required_6xfms_51",Dc={wrap:kT,box:BT,text:UT,link:$T,required:HT};function qT({checked:a,onToggle:i}){return l.jsxs("button",{type:"button",className:Dc.wrap,onClick:i,"aria-pressed":a,children:[l.jsx("span",{className:Dc.box,"data-checked":a||void 0,children:l.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M2 6l3 3 5-5",stroke:"#fff",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})})}),l.jsxs("span",{className:Dc.text,children:["Я ознакомлен и согласен с"," ",l.jsx("a",{href:"/publichnaya-oferta",className:Dc.link,target:"_blank",rel:"noopener noreferrer",onClick:c=>c.stopPropagation(),children:"публичной офертой"}),". Вся деятельность компании соответствует законодательству Российской Федерации.",l.jsx("br",{}),l.jsx("span",{className:Dc.required,children:"ОБЯЗАТЕЛЬНОЕ ПОЛЕ"})]})]})}const FT="_wrap_1senc_1",GT="_header_1senc_8",VT="_title_1senc_17",QT="_subtitle_1senc_22",YT="_pills_1senc_29",IT="_pill_1senc_29",PT="_pillValue_1senc_43",XT="_body_1senc_53",ZT="_tabs_1senc_59",KT="_tab_1senc_59",WT="_bottom_1senc_91",JT="_payBtn_1senc_99",hn={wrap:FT,header:GT,title:VT,subtitle:QT,pills:YT,pill:IT,pillValue:PT,body:XT,tabs:ZT,tab:KT,bottom:WT,payBtn:JT};function eR(){const{isUsdtToRub:a,gasPriceRub:i,configUsdtRate:c,convert:r,pay:d,onSwap:f,commission:p,agreed:g,setAgreed:h,onPay:m,isPending:v,isPayDisabled:y,notification:b,dismissNotification:N}=DT();return l.jsxs("div",{className:hn.wrap,children:[l.jsxs("div",{className:hn.header,children:[l.jsxs("div",{children:[l.jsx("h1",{className:hn.title,children:"Конвертация"}),l.jsx("div",{className:hn.subtitle,children:"Данные обновляются в реальном времени"})]}),l.jsxs("div",{className:hn.pills,children:[l.jsxs("div",{className:hn.pill,children:["Цена газа в RUB ",l.jsxs("span",{className:hn.pillValue,children:[i.toFixed(2)," RUB"]})]}),l.jsxs("div",{className:hn.pill,children:["USDT/RUB ",l.jsxs("span",{className:hn.pillValue,children:[c.toFixed(2)," ₽"]})]})]})]}),l.jsxs("div",{className:hn.body,children:[l.jsxs("div",{children:[l.jsx("div",{className:hn.tabs,children:l.jsx("div",{className:hn.tab,"data-active":!0,children:"КУПИТЬ"})}),l.jsx(ko,{label:a?"Конвертируете":"Платите",...r}),l.jsx(E3,{onClick:f}),l.jsx(ko,{label:a?"Платите":"Конвертируете",...d})]}),l.jsx(A3,{...p})]}),l.jsx("div",{className:hn.bottom,children:l.jsx(qT,{checked:g,onToggle:()=>h(!g)})}),l.jsx("button",{type:"button",className:hn.payBtn,onClick:m,disabled:y,children:v?"Обработка...":"Оплатить"}),b&&l.jsx(Ql,{status:b.status,message:b.message,onClose:N})]})}const tR="_wrap_12wuz_1",nR="_header_12wuz_12",lR="_title_12wuz_16",aR="_subtitle_12wuz_21",sR="_body_12wuz_29",iR="_formCol_12wuz_35",cR="_hint_12wuz_41",rR="_infoCol_12wuz_48",oR="_infoTitle_12wuz_53",uR="_infoRow_12wuz_60",dR="_infoLabel_12wuz_76",fR="_infoValue_12wuz_81",hR="_note_12wuz_87",mR="_submitBtn_12wuz_94",Je={wrap:tR,header:nR,title:lR,subtitle:aR,body:sR,formCol:iR,hint:cR,infoCol:rR,infoTitle:oR,infoRow:uR,infoLabel:dR,infoValue:fR,note:hR,submitBtn:mR},Dd=5e5,kc=[{days:3,rate:.05},{days:4,rate:.04636},{days:5,rate:.04273},{days:6,rate:.03909},{days:7,rate:.03545},{days:8,rate:.03182},{days:9,rate:.02818},{days:10,rate:.02455},{days:11,rate:.02091},{days:12,rate:.01727},{days:13,rate:.01364},{days:14,rate:.01}],ja=a=>a.toLocaleString("ru-RU",{maximumFractionDigits:0}),pR=a=>{var i,c,r,d;return{name:((c=(i=a==null?void 0:a.match(/Имя:\s*([^;]+)/))==null?void 0:i[1])==null?void 0:c.trim())??"",contact:((d=(r=a==null?void 0:a.match(/Контакт:\s*([^;]+)/))==null?void 0:r[1])==null?void 0:d.trim())??""}},_R=a=>a.reduce((i,c)=>!i||(c.created_at??"")>(i.created_at??"")?c:i,null),kd=a=>{const i=a%10,c=a%100;return i===1&&c!==11?`${a} день`:i>=2&&i<=4&&(c<10||c>=20)?`${a} дня`:`${a} дней`};function gR(){var W;const[a,i]=j.useState(""),[c,r]=j.useState(""),[d,f]=j.useState(""),[p,g]=j.useState(kc[0].days),[h,m]=j.useState(null),{mutate:v,isPending:y}=e8(),{data:b}=Z3(),[N,S]=j.useState(!1);j.useEffect(()=>{if(N||!b)return;const B=_R(b.items);if(!B)return;const Y=pR(B.comment);Y.name&&r(Y.name),Y.contact&&f(Y.contact),S(!0)},[N,b]);const C=Number(a.replace(/\D/g,""))||0,w=C>0&&C<Dd,O=((W=kc.find(B=>B.days===p))==null?void 0:W.rate)??kc[0].rate,H=C*O,L=C+H,U=B=>{const Y=B.replace(/\D/g,"");i(Y?ja(Number(Y)):"")},I=B=>{if(B.preventDefault(),C===0||w||y)return;const Y=[c&&`Имя: ${c}`,d&&`Контакт: ${d}`,`Срок ожидания: ${kd(p)}`,`Сумма: ${ja(C)}`,`Комиссия: ≈${ja(H)}`,`Итого: ≈${ja(L)}`].filter(Boolean).join("; ");v({usdt_amount:C,comment:Y},{onSuccess:()=>{m("success"),i(""),r(""),f(""),g(kc[0].days)},onError:()=>m("error")})};return l.jsxs("form",{className:Je.wrap,onSubmit:I,children:[l.jsxs("div",{className:Je.header,children:[l.jsx("h1",{className:Je.title,children:"Оставить заявку"}),l.jsx("p",{className:Je.subtitle,children:"Конвертация крупных объёмов по индивидуальному курсу. Оставьте заявку — менеджер свяжется с вами, подтвердит актуальный курс и сопроводит сделку."})]}),l.jsxs("div",{className:Je.body,children:[l.jsxs("div",{className:Je.formCol,children:[l.jsx(Ne,{label:"Объём заявки, ₽",type:"text",value:a,onChange:U,placeholder:"от 500 000"}),w&&l.jsxs("p",{className:Je.hint,children:["Минимальный объём заявки — ",ja(Dd)," ₽"]}),l.jsx(Y4,{id:"term",label:"Срок ожидания операции",value:p,onChange:g,options:kc.map(B=>({value:B.days,label:`${kd(B.days)} — комиссия ${(B.rate*100).toFixed(3)} %`}))}),l.jsx(Ne,{label:"Как к вам обращаться",type:"text",value:c,onChange:r,placeholder:"Имя"}),l.jsx(Ne,{label:"Email или телефон для связи",type:"text",value:d,onChange:f,placeholder:"example@mail.ru / +7 900 000-00-00"})]}),l.jsxs("div",{className:Je.infoCol,children:[l.jsx("div",{className:Je.infoTitle,children:"УСЛОВИЯ"}),l.jsxs("div",{className:Je.infoRow,children:[l.jsx("span",{className:Je.infoLabel,children:"Минимальный объём"}),l.jsxs("span",{className:Je.infoValue,children:[ja(Dd)," ₽"]})]}),l.jsxs("div",{className:Je.infoRow,children:[l.jsx("span",{className:Je.infoLabel,children:"Срок ожидания"}),l.jsx("span",{className:Je.infoValue,children:kd(p)})]}),l.jsxs("div",{className:Je.infoRow,children:[l.jsx("span",{className:Je.infoLabel,children:"Ставка комиссии"}),l.jsxs("span",{className:Je.infoValue,children:[(O*100).toFixed(3)," %"]})]}),l.jsxs("div",{className:Je.infoRow,children:[l.jsx("span",{className:Je.infoLabel,children:"Сумма комиссии"}),l.jsx("span",{className:Je.infoValue,children:C>0?`${ja(H)}`:"—"})]}),l.jsxs("div",{className:Je.infoRow,"data-accent":!0,children:[l.jsx("span",{className:Je.infoLabel,children:"Итого к оплате"}),l.jsx("span",{className:Je.infoValue,children:C>0?`${ja(L)}`:"—"})]}),l.jsx("p",{className:Je.note,children:"Итоговая комиссия рассчитывается индивидуально и зависит от объёма, валюты и направления сделки."})]})]}),l.jsx("button",{type:"submit",className:Je.submitBtn,disabled:w||C===0||y,children:y?"Отправляем...":"Оставить заявку"}),h&&l.jsx(Ql,{status:h,message:h==="success"?"Заявка отправлена":"Не удалось отправить заявку",onClose:()=>m(null)})]})}function vR(){const{data:a,isLoading:i}=Il();return i?l.jsx(T3,{fullscreen:!0,size:"lg",label:"Загрузка данных аккаунта"}):!!a&&a.account_type!=="individual"?l.jsx(gR,{}):l.jsx(eR,{})}const Fp=52;function yR(a){const[i,c]=j.useState(!1),[r,d]=j.useState(Fp),[f,p]=j.useState(!1),g=j.useRef(null),h=j.useCallback(()=>{g.current&&clearInterval(g.current),d(Fp),g.current=setInterval(()=>{d(y=>y<=1?(clearInterval(g.current),c(!0),0):y-1)},1e3)},[]);j.useEffect(()=>(h(),()=>{g.current&&clearInterval(g.current)}),[h]);const m=j.useCallback(()=>{c(y=>y?(h(),!1):(g.current&&clearInterval(g.current),!0))},[h]),v=j.useCallback(()=>{navigator.clipboard.writeText(a.join(" ")).then(()=>{p(!0),setTimeout(()=>p(!1),1500)})},[a]);return{hidden:i,countdown:r,copied:f,handleHide:m,handleCopy:v}}const xR="_content_o6p8v_1",bR="_titleRow_o6p8v_6",jR="_title_o6p8v_6",SR="_titleButtons_o6p8v_19",NR="_btnFixed_o6p8v_26",wR="_subtitle_o6p8v_34",CR="_countdown_o6p8v_42",ER="_seedGrid_o6p8v_47",TR="_seedCard_o6p8v_54",RR="_seedNum_o6p8v_73",AR="_seedWord_o6p8v_80",OR="_seedWordHidden_o6p8v_88",MR="_warning_o6p8v_93",LR="_warningIcon_o6p8v_101",zR="_warningText_o6p8v_107",DR="_profileLinkRow_o6p8v_115",kR="_profileLink_o6p8v_115",Ot={content:xR,titleRow:bR,title:jR,titleButtons:SR,btnFixed:NR,subtitle:wR,countdown:CR,seedGrid:ER,seedCard:TR,seedNum:RR,seedWord:AR,seedWordHidden:OR,warning:MR,warningIcon:LR,warningText:zR,profileLinkRow:DR,profileLink:kR};function BR({words:a}){const{hidden:i,countdown:c,copied:r,handleHide:d,handleCopy:f}=yR(a);return l.jsxs("div",{className:Ot.content,children:[l.jsxs("div",{className:Ot.titleRow,children:[l.jsx("h1",{className:Ot.title,children:"СИД ФРАЗА"}),l.jsxs("div",{className:Ot.titleButtons,children:[l.jsx("div",{className:Ot.btnFixed,children:l.jsx(nn,{variant:"outline",onClick:d,children:i?"ПОКАЗАТЬ":"СКРЫТЬ"})}),l.jsx("div",{className:Ot.btnFixed,children:l.jsx(nn,{variant:"outline",onClick:f,children:r?"СКОПИРОВАНО":"КОПИРОВАТЬ"})})]})]}),!i&&l.jsxs("div",{className:Ot.subtitle,children:["АВТОМАТИЧЕСКОЕ СКРЫТИЕ ЧЕРЕЗ"," ",l.jsx("span",{className:Ot.countdown,children:c}),"С"]}),l.jsx("div",{className:Ot.seedGrid,children:a.map((p,g)=>l.jsxs("div",{className:Ot.seedCard,children:[l.jsxs("span",{className:Ot.seedNum,children:[g+1,"."]}),l.jsx("span",{className:`${Ot.seedWord} ${i?Ot.seedWordHidden:""}`,children:i?"•••••":p})]},g))}),l.jsxs("div",{className:Ot.warning,children:[l.jsx("span",{className:Ot.warningIcon,children:"⚠️"}),l.jsx("p",{className:Ot.warningText,children:"Никогда не передавайте сид-фразу третьим лицам. Тот, кто знает фразу — владеет кошельком."})]}),l.jsx("div",{className:Ot.profileLinkRow,children:l.jsx(Yt,{to:oe.PROFILE,className:Ot.profileLink,children:"Перейти в профиль"})})]})}const UR="_page_1mk6w_1",$R="_main_1mk6w_8",HR="_glow_1mk6w_17",Bd={page:UR,main:$R,glow:HR};function qR(){const{data:a,isLoading:i}=R8(),c=a?a.split(" "):[];return l.jsxs("div",{className:Bd.page,children:[l.jsx(Zo,{}),l.jsxs("main",{className:Bd.main,children:[l.jsx("div",{className:Bd.glow}),!i&&l.jsx(BR,{words:c})]})]})}const FR="https://app.kyc.elcsa.ru";function GR(){return A_(!0)}async function A_(a){const i=await zn(),c=await fetch(`${FR}/kyc/create`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":i},body:JSON.stringify({})});if(c.status===401&&a)try{return await Yl(),A_(!1)}catch{throw It.clear(),new Error("Unauthorized")}const r=await c.json();if(!c.ok)throw r;return r}function VR(){const a=vt({mutationFn:GR});return{trigger:a.mutate,data:a.data,isLoading:a.isPending,isError:a.isError}}const QR="_backdrop_1do7s_1",YR="_modal_1do7s_12",IR="_closeBtn_1do7s_22",PR="_body_1do7s_40",XR="_qrBlock_1do7s_47",ZR="_qrImage_1do7s_55",KR="_linkBtn_1do7s_63",as={backdrop:QR,modal:YR,closeBtn:IR,body:PR,qrBlock:XR,qrImage:ZR,linkBtn:KR};function WR({data:a,onClose:i}){return l.jsx("div",{className:as.backdrop,onClick:i,children:l.jsxs("div",{className:as.modal,onClick:c=>c.stopPropagation(),children:[l.jsx("button",{className:as.closeBtn,onClick:i,type:"button",children:"×"}),l.jsx("div",{className:as.body,children:l.jsxs("div",{className:as.qrBlock,children:[l.jsx("img",{className:as.qrImage,src:a.qr_code,alt:"QR-код для верификации"}),l.jsx("a",{className:as.linkBtn,href:a.link,target:"_blank",rel:"noopener noreferrer",children:"Перейти к верификации"})]})})]})})}const JR="_card_omb8e_1",eA="_logo_omb8e_13",tA="_iconWrapper_omb8e_21",nA="_description_omb8e_34",lA="_buttonWrapper_omb8e_42",aA="_error_omb8e_47",oi={card:JR,logo:eA,iconWrapper:tA,description:nA,buttonWrapper:lA,error:aA};function sA(){const{trigger:a,data:i,isLoading:c,isError:r}=VR(),d=Ln(),f=_n(),{data:p}=Il({refetchInterval:i?5e3:!1});j.useEffect(()=>{p!=null&&p.kyc_verified&&d(oe.SEED_PHRASE,{replace:!0})},[p==null?void 0:p.kyc_verified,d]);const g=()=>{f.invalidateQueries({queryKey:["me"]})};return l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:oi.card,children:[l.jsx("div",{className:oi.logo,children:l.jsx("img",{src:pl,alt:"ЭКСА"})}),l.jsx("div",{className:oi.iconWrapper,children:l.jsxs("svg",{width:"38",height:"38",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l.jsx("path",{d:"M12 2L3 6v6c0 5.25 3.75 10.15 9 11.35C17.25 22.15 21 17.25 21 12V6l-9-4z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),l.jsx("path",{d:"M9 12l2 2 4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),l.jsx("p",{className:oi.description,children:"Для продолжения работы необходимо пройти KYC верификацию"}),l.jsx("div",{className:oi.buttonWrapper,children:l.jsx(tl,{label:c?"Загрузка...":"Подтвердить личность",type:"button",onClick:()=>a(),disabled:c})}),r&&l.jsx("p",{className:oi.error,children:"Произошла ошибка. Попробуй перезагрузить страницу и попробовать снова."})]}),i&&l.jsx(WR,{data:i,onClose:g})]})}const iA="_page_6lnfw_1",cA={page:iA};function rA(){const{data:a,isLoading:i}=Il();return i?null:a!=null&&a.kyc_verified?l.jsx(Qo,{to:oe.PROFILE,replace:!0}):l.jsx("div",{className:cA.page,children:l.jsx(sA,{})})}const oA="_card_mzeuq_1",uA="_logo_mzeuq_10",dA="_title_mzeuq_20",fA="_fields_mzeuq_29",hA="_emailRow_mzeuq_35",mA="_error_mzeuq_41",pA="_submitWrapper_mzeuq_48",_A="_footer_mzeuq_52",gA="_back_mzeuq_58",kl={card:oA,logo:uA,title:dA,fields:fA,emailRow:hA,error:mA,submitWrapper:pA,footer:_A,back:gA};function vA(){const[a,i]=j.useState(""),[c,r]=j.useState(!1),[d,f]=j.useState(!1),[p,g]=j.useState(""),[h,m]=j.useState(""),[v,y]=j.useState(""),[b,N]=j.useState(""),[S,C]=j.useState(!1),[w,O]=j.useState(null),H=Ln();async function L(){N(""),f(!0);try{await Gj({email:a}),r(!0),O({status:"success",message:`Код отправлен на ${a}`})}catch{O({status:"error",message:"Не удалось отправить письмо. Проверьте email и попробуйте снова."})}finally{f(!1)}}async function U(I){if(I.preventDefault(),N(""),h!==v){N("Пароли не совпадают");return}C(!0);try{await Qj({email:a,code:p,new_password:h,confirm_password:v}),H(oe.LOGIN)}catch{N("Не удалось изменить пароль. Проверьте код и попробуйте снова.")}finally{C(!1)}}return l.jsxs(l.Fragment,{children:[l.jsxs("form",{className:kl.card,onSubmit:U,children:[l.jsx("div",{className:kl.logo,children:l.jsx("img",{src:pl,alt:"ЭКСА"})}),l.jsx("h1",{className:kl.title,children:"Восстановление пароля"}),l.jsxs("div",{className:kl.fields,children:[l.jsxs("div",{className:kl.emailRow,children:[l.jsx(Ne,{label:"E-Mail",type:"email",value:a,onChange:i,placeholder:"example@mail.com",required:!0}),l.jsx(tl,{label:d?"Отправка...":"Получить код",disabled:d||!a,type:"button",onClick:L})]}),c&&l.jsxs(l.Fragment,{children:[l.jsx(Ne,{label:"Код с почты",type:"text",value:p,onChange:g,placeholder:"000 000",required:!0}),l.jsx(Ne,{label:"Новый пароль",type:"password",value:h,onChange:m,placeholder:"••••••••",required:!0}),l.jsx(Ne,{label:"Повторить пароль",type:"password",value:v,onChange:y,placeholder:"••••••••",required:!0})]})]}),b&&l.jsx("p",{className:kl.error,children:b}),c&&l.jsx("div",{className:kl.submitWrapper,children:l.jsx(tl,{label:S?"Сохранение...":"Изменить пароль",disabled:S})}),l.jsx("div",{className:kl.footer,children:l.jsx("a",{className:kl.back,onClick:()=>H(oe.LOGIN),children:"Вернуться ко входу"})})]}),w&&l.jsx(Ql,{status:w.status,message:w.message,onClose:()=>O(null)})]})}const yA="_page_6lnfw_1",xA={page:yA};function bA(){return l.jsx("div",{className:xA.page,children:l.jsx(vA,{})})}const jA="_main_1fqml_1",SA="_container_1fqml_7",NA="_title_1fqml_13",wA="_subtitle_1fqml_21",CA="_section_1fqml_29",EA="_sectionTitle_1fqml_33",TA="_definitions_1fqml_42",RA="_definition_1fqml_42",AA="_requisites_1fqml_56",we={main:jA,container:SA,title:NA,subtitle:wA,section:CA,sectionTitle:EA,definitions:TA,definition:RA,requisites:AA};function OA(){return l.jsxs(l.Fragment,{children:[l.jsx(zi,{}),l.jsx("main",{className:we.main,children:l.jsxs("div",{className:we.container,children:[l.jsx("h1",{className:we.title,children:"ПУБЛИЧНЫЙ ДОГОВОР ОФЕРТЫ"}),l.jsx("h2",{className:we.subtitle,children:"ООО БИТФОРС"}),l.jsxs("section",{className:we.section,children:[l.jsx("h3",{className:we.sectionTitle,children:"Агентский договор"}),l.jsx("p",{children:"Настоящая оферта на заключение агентского договора (далее Оферта, Договор) является публичным предложением Общества с ограниченной ответственностью «БИТФОРС», заключить договор на условиях и в порядке, определенных настоящей Офертой."}),l.jsx("p",{children:"Акцепт оферты производится в соответствии с пунктом 2 статьи 437 Гражданского кодекса Российской Федерации и равносилен заключению агентского договора в письменной форме."})]}),l.jsxs("section",{className:we.section,children:[l.jsx("h3",{className:we.sectionTitle,children:"Основные понятия и определения действующего договора"}),l.jsxs("div",{className:we.definitions,children:[l.jsxs("div",{className:we.definition,children:[l.jsx("strong",{children:"Агент"})," юридическое лицо или индивидуальный предприниматель, зарегистрированный на территории Российской Федерации, в установленном действующим законодательством порядке."]}),l.jsxs("div",{className:we.definition,children:[l.jsx("strong",{children:"Принципал"})," сторона агентского договора, по поручению которой агент осуществляет юридические и иные действия от своего имени, но за счет принципала либо от имени и за счет принципала."]}),l.jsxs("div",{className:we.definition,children:[l.jsx("strong",{children:"Агентский договор"})," соглашение, по которому агент обязуется за вознаграждение совершать по поручению принципала юридические и иные действия от своего имени, но за счет принципала либо от имени и за счет принципала в соответствии с п. 1 ст. 1005 Гражданского Кодекса Российской Федерации."]}),l.jsxs("div",{className:we.definition,children:[l.jsx("strong",{children:"Личный кабинета Агента"})," ресурс, размещенный на сайте Принципала, предназначенный для взаимодействия Агента и Принципала."]}),l.jsxs("div",{className:we.definition,children:[l.jsx("strong",{children:"Отчетный период"})," период для взаиморасчетов с Агентом, равный одному календарному кварталу с даты активации любой из услуг, предоставляемой Принципалу."]}),l.jsxs("div",{className:we.definition,children:[l.jsx("strong",{children:"Отчет о сумме начислений (Отчет)"})," отчет, формируемый в Личном кабинете Агента на основании данных систем учета Принципала."]}),l.jsxs("div",{className:we.definition,children:[l.jsx("strong",{children:"Оферта (Договор)"})," настоящий документ, который отражает предложение и намерение ООО «БИТФОРС» считать заключенным договор с лицом, которым будет принято предложение на условиях, изложенных ниже."]})]})]}),l.jsxs("section",{className:we.section,children:[l.jsx("h3",{className:we.sectionTitle,children:"1. Акцепт оферты и заключение агентского договора"}),l.jsx("p",{children:"Акцепт настоящей Оферты и заключение Агентского договора осуществляется Принципалом в процессе регистрации в Личном кабинете Принципала (на сайте Агента), при прочтении текста настоящей Оферты, путем проставления специальной отметки (галочки) напротив фразы «Я ознакомился с Офертой и принимаю ее условия» и нажатия кнопки «Подписать»."}),l.jsx("p",{children:"Особый порядок принятия условий Оферты путем проставления специальной отметки (галочки) определяется интерфейсом Личного кабинета Принципала. Принципал не может зарегистрироваться в Личном кабинете и получить к нему доступ без подтверждения принятия условий Оферты."}),l.jsx("p",{children:"Принимая Оферту, Принципал подтверждает, что прочел и полностью согласен с документами, размещенными на сайте в разделе, предназначенном для Принципала, которые являются неотъемлемой частью настоящей Оферты (Договора) и обязательны для исполнения Сторонами."})]}),l.jsxs("section",{className:we.section,children:[l.jsx("h3",{className:we.sectionTitle,children:"2. Общие положения"}),l.jsx("p",{children:"Публикуемые на сайте Агента документы (формы, требования, правила и т.п.), устанавливающие порядок и условия выполнения действий, предусмотренных настоящим Договором, являются неотъемлемой частью настоящего Договора и обязательны для исполнения Сторонами. Принципал обязан использовать формы документов, утвержденных Агентом, и не вправе вносить в них какие-либо изменения или дополнения."}),l.jsx("p",{children:"Агент обязуется уведомлять Принципала обо всех изменениях в документах, связанных с исполнением настоящего Договора, путем направления электронных сообщений (через Личный кабинет или на электронную почту Принципала) или размещением уведомлений об изменениях на сайте Агентов в разделе, предназначенном для размещения объявлений."})]}),l.jsxs("section",{className:we.section,children:[l.jsx("h3",{className:we.sectionTitle,children:"3. Предмет договора"}),l.jsx("p",{children:"По настоящему Договору Принципал поручает, а Агент принимает на себя обязательство совершать от имени и за счет Принципала указанные действия, а Принципал обязуется выплатить Агенту вознаграждение за совершенные действия."}),l.jsx("p",{children:"По настоящему Договору Агент совершает следующие действия:"}),l.jsxs("ul",{children:[l.jsx("li",{children:"Консультирование Принципала об услугах Агента, включая, помимо прочего, порядок активации и оказания услуг, работу в Личном кабинете Принципала и иные дополнительные услуги, оказываемые Агентом;"}),l.jsx("li",{children:"Совершение сделок и иных юридических действий Агентом от своего имени, но за счёт Принципала."})]}),l.jsx("p",{children:"Настоящий Договор действует на территории Российской Федерации и иного иностранного государства."}),l.jsx("p",{children:"Права и обязанности по сделкам, совершенным Агентом во исполнение настоящего Договора, возникают непосредственно у Принципала."})]}),l.jsxs("section",{className:we.section,children:[l.jsx("h3",{className:we.sectionTitle,children:"4. Права и обязанности сторон"}),l.jsx("p",{children:"Агент обязуется совершать действия, составляющие предмет настоящего Договора, в соответствии с законными интересами Принципала, сообщать Принципалу по его требованию все сведения о ходе исполнения настоящего Договора, передавать Принципалу в течение 7 рабочих дней имущество, полученное по сделкам."}),l.jsx("p",{children:"Агент несет ответственность за сохранность документов и персональных данных, переданных ему Принципалом для исполнения настоящего Договора."}),l.jsx("p",{children:"Принципал обязан без промедления принять отчет Агента, все предоставленные им документы, обеспечить Агента документами и материалами, необходимыми для выполнения настоящего Договора, возместить Агенту понесенные расходы и выплатить обусловленное Договором агентское вознаграждение."})]}),l.jsxs("section",{className:we.section,children:[l.jsx("h3",{className:we.sectionTitle,children:"5. Агентское вознаграждение и порядок оплаты"}),l.jsx("p",{children:"Сумма вознаграждения Агента по настоящему Договору составляет:"}),l.jsxs("ul",{children:[l.jsx("li",{children:"8% от 5 000 до 30 000 рублей"}),l.jsx("li",{children:"6% от 30 000 до 100 000 рублей"}),l.jsx("li",{children:"4% от 100 000 до 600 000 рублей"})]}),l.jsx("p",{children:"Вознаграждение выплачивается Агенту с момента подписания настоящего Договора об исполнении поручения Агентом от своего имени, но за счет Принципала."}),l.jsx("p",{children:"Принципал возмещает следующие расходы Агента в сумме не более 30 000 рублей на оплату банковских услуг и иных комиссий."})]}),l.jsxs("section",{className:we.section,children:[l.jsx("h3",{className:we.sectionTitle,children:"6. Ответственность сторон"}),l.jsx("p",{children:"В случае нарушения Агентом сроков, установленных Договором для передачи Принципалу полученного имущества, Принципал вправе предъявить требование об уплате неустойки в размере 0,1% от непереданной суммы за каждый день просрочки."}),l.jsx("p",{children:"В случае нарушения Принципалом сроков уплаты вознаграждения или возмещения расходов, Агент вправе предъявить требование об уплате неустойки в размере 0,1% от не уплаченной в срок суммы за каждый день просрочки."})]}),l.jsxs("section",{className:we.section,children:[l.jsx("h3",{className:we.sectionTitle,children:"7. Форс-мажор"}),l.jsx("p",{children:"Стороны освобождаются от ответственности за частичное или полное неисполнение обязательств по настоящему Договору, если это неисполнение явилось следствием возникших после заключения настоящего Договора обстоятельств непреодолимой силы."}),l.jsx("p",{children:"При наступлении форс-мажорных обстоятельств каждая Сторона должна без промедления известить о них в письменном виде другую Сторону с указанием характера обстоятельств и их влияния на исполнение обязательств."})]}),l.jsxs("section",{className:we.section,children:[l.jsx("h3",{className:we.sectionTitle,children:"8. Конфиденциальность"}),l.jsx("p",{children:"Стороны принимают все необходимые меры для того, чтобы их сотрудники, агенты, правопреемники без предварительного согласия другой Стороны не информировали третьих лиц о конфиденциальной информации и персональных данных Сторон настоящего Договора."})]}),l.jsxs("section",{className:we.section,children:[l.jsx("h3",{className:we.sectionTitle,children:"9. Изменение и прекращение договора"}),l.jsx("p",{children:"Настоящий договор вступает в силу с момента его подписания и действует до момента исполнения сторонами своих обязательств по настоящему договору."}),l.jsx("p",{children:"Настоящий Договор может быть изменен или прекращен по письменному соглашению Сторон, а также в других случаях, предусмотренных законодательством Российской Федерации."}),l.jsx("p",{children:"Принципал вправе в любое время отказаться от исполнения настоящего Договора путем направления письменного уведомления Агенту за 3 рабочих дня."})]}),l.jsxs("section",{className:we.section,children:[l.jsx("h3",{className:we.sectionTitle,children:"10. Заключительные положения"}),l.jsx("p",{children:"Ни одна из сторон не вправе передавать свои права и обязанности по настоящему договору третьим лицам без согласия другой стороны."}),l.jsx("p",{children:"Сообщения Стороны могут направлять по факсу, электронной почте или другим способом связи при условии, что он позволяет достоверно установить, от кого исходило сообщение и кому оно адресовано."}),l.jsx("p",{children:"Споры, вытекающие из настоящего Договора, разрешаются в досудебном порядке. При неурегулировании возникших разногласий спор разрешается в Арбитражном суде г. Санкт–Петербурга и Ленинградской области с обязательным соблюдением претензионного порядка."})]}),l.jsxs("section",{className:we.section,children:[l.jsx("h3",{className:we.sectionTitle,children:"Реквизиты сторон"}),l.jsxs("div",{className:we.requisites,children:[l.jsx("p",{children:"Общество с ограниченной ответственностью «БИТФОРС»"}),l.jsx("p",{children:"196246, г. Санкт-Петербург, Московский р-н, Московское шоссе, д.25к1 литера в, помещ. 3-Н"}),l.jsx("p",{children:"ИНН / КПП: 9810001062 / 781001001"}),l.jsx("p",{children:"ОГРН: 1257800060990"}),l.jsx("p",{children:"ОКПО / ОКАТО / ОКТМО: 68342261 / 40284000000 / 40377000000"}),l.jsx("p",{children:"Руководитель: Кленин Михаил Васильевич"}),l.jsx("p",{children:"Электронная почта: company@bitforcefoundation.ru"}),l.jsx("p",{children:'Наименование банка: ФИЛИАЛ "САНКТ-ПЕТЕРБУРГСКИЙ" АО "АЛЬФА-БАНК"'}),l.jsx("p",{children:"Корреспондентский счет: 30101810600000000786"}),l.jsx("p",{children:"БИК: 044030786"}),l.jsx("p",{children:"Расчетный счет: 40702810632250004861"})]})]})]})}),l.jsx(xs,{})]})}const MA="_main_14e6d_1",LA="_container_14e6d_7",zA="_title_14e6d_13",DA="_subtitle_14e6d_21",kA="_section_14e6d_29",BA="_sectionTitle_14e6d_33",UA="_subSectionTitle_14e6d_42",$A="_definitions_14e6d_50",HA="_definition_14e6d_50",qA="_list_14e6d_64",FA="_goalsList_14e6d_75",GA="_goal_14e6d_75",VA="_contacts_14e6d_105",X={main:MA,container:LA,title:zA,subtitle:DA,section:kA,sectionTitle:BA,subSectionTitle:UA,definitions:$A,definition:HA,list:qA,goalsList:FA,goal:GA,contacts:VA};function QA(){return l.jsxs(l.Fragment,{children:[l.jsx(zi,{}),l.jsx("main",{className:X.main,children:l.jsxs("div",{className:X.container,children:[l.jsx("h1",{className:X.title,children:"ПОЛИТИКА ОБРАБОТКИ ПЕРСОНАЛЬНЫХ ДАННЫХ"}),l.jsx("h2",{className:X.subtitle,children:"ООО «БИТФОРС»"}),l.jsxs("section",{className:X.section,children:[l.jsx("h3",{className:X.sectionTitle,children:"1. Общие положения"}),l.jsx("p",{children:"Настоящая Политика обработки персональных данных разработана в соответствии с Федеральным законом от 27.07.2006 № 152-ФЗ «О персональных данных» и определяет порядок обработки персональных данных и меры по обеспечению безопасности персональных данных, предпринимаемые ООО «БИТФОРС»."}),l.jsx("p",{children:"Оператор ставит своей важнейшей целью и условием осуществления своей деятельности соблюдение прав и свобод человека и гражданина при обработке его персональных данных, в том числе защиты права на неприкосновенность частной жизни, личную и семейную тайну."}),l.jsx("p",{children:"Настоящая Политика действует в отношении всех персональных данных, которые обрабатываются Оператором с использованием средств автоматизации и без использования таких средств."}),l.jsx("h4",{className:X.subSectionTitle,children:"1.4. Основные понятия"}),l.jsxs("div",{className:X.definitions,children:[l.jsxs("div",{className:X.definition,children:[l.jsx("strong",{children:"Автоматизированная обработка персональных данных"})," — обработка персональных данных с помощью средств вычислительной техники."]}),l.jsxs("div",{className:X.definition,children:[l.jsx("strong",{children:"Обработка персональных данных"})," — любое действие или совокупность действий, совершаемых с использованием средств автоматизации или без использования таких средств с персональными данными, включая сбор, запись, систематизацию, накопление, хранение, уточнение, извлечение, использование, передачу, обезличивание, блокирование, удаление, уничтожение."]}),l.jsxs("div",{className:X.definition,children:[l.jsx("strong",{children:"Оператор"})," — юридическое или физическое лицо, организующие и осуществляющие обработку персональных данных."]}),l.jsxs("div",{className:X.definition,children:[l.jsx("strong",{children:"Персональные данные"})," — любая информация, относящаяся к прямо или косвенно определенному или определяемому физическому лицу."]}),l.jsxs("div",{className:X.definition,children:[l.jsx("strong",{children:"Пользователь"})," — любой посетитель веб-сайта https://bitforce-foundation.ru."]})]})]}),l.jsxs("section",{className:X.section,children:[l.jsx("h3",{className:X.sectionTitle,children:"2. Сведения об операторе"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Полное наименование: Общество с ограниченной ответственностью «БИТФОРС»"}),l.jsx("li",{children:"Сокращенное наименование: ООО «БИТФОРС»"}),l.jsx("li",{children:"ИНН: 9810001062"}),l.jsx("li",{children:"ОГРН: 1257800060990"}),l.jsx("li",{children:"Юридический адрес: 196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н"}),l.jsx("li",{children:"Электронная почта: company@bitforcefoundation.ru"}),l.jsx("li",{children:"Веб-сайт: https://bitforce-foundation.ru"})]})]}),l.jsxs("section",{className:X.section,children:[l.jsx("h3",{className:X.sectionTitle,children:"3. Общие цели обработки персональных данных"}),l.jsx("h4",{className:X.subSectionTitle,children:"3.1.1. Основная деятельность:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Предоставление услуг по конвертации иного имущества"}),l.jsx("li",{children:"Осуществление операций на криптовалютных рынках"}),l.jsx("li",{children:"Предоставление услуг в области блокчейн технологий"}),l.jsx("li",{children:"Обеспечение функционирования интернет-платформы и мобильных приложений"})]}),l.jsx("h4",{className:X.subSectionTitle,children:"3.1.2. Обеспечение безопасности:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Предотвращение мошенничества и отмывания денежных средств"}),l.jsx("li",{children:"Обеспечение безопасности платежных операций"}),l.jsx("li",{children:"Выполнение требований по противодействию легализации доходов"}),l.jsx("li",{children:"Идентификация и верификация клиентов"})]}),l.jsx("h4",{className:X.subSectionTitle,children:"3.1.3. Соблюдение законодательства:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Исполнение требований российского и международного законодательства"}),l.jsx("li",{children:"Взаимодействие с контролирующими и правоохранительными органами"}),l.jsx("li",{children:"Ведение обязательной отчетности и документооборота"}),l.jsx("li",{children:"Соблюдение налогового законодательства"})]})]}),l.jsxs("section",{className:X.section,children:[l.jsx("h3",{className:X.sectionTitle,children:"4. Цели сбора персональных данных"}),l.jsxs("div",{className:X.goalsList,children:[l.jsxs("div",{className:X.goal,children:[l.jsx("strong",{children:"Регистрация и идентификация пользователей:"}),l.jsxs("ul",{children:[l.jsx("li",{children:"Создание учетной записи на веб-сайте"}),l.jsx("li",{children:"Верификация личности в соответствии с требованиями законодательства"}),l.jsx("li",{children:"Подтверждение права на осуществление операций"})]})]}),l.jsxs("div",{className:X.goal,children:[l.jsx("strong",{children:"Обработка платежей и финансовых операций:"}),l.jsxs("ul",{children:[l.jsx("li",{children:"Осуществление операций по конвертации криптовалют"}),l.jsx("li",{children:"Проведение расчетов и переводов денежных средств"}),l.jsx("li",{children:"Ведение учета и истории транзакций"})]})]}),l.jsxs("div",{className:X.goal,children:[l.jsx("strong",{children:"Коммуникация с клиентами:"}),l.jsxs("ul",{children:[l.jsx("li",{children:"Предоставление технической поддержки"}),l.jsx("li",{children:"Уведомления о состоянии операций и счетов"}),l.jsx("li",{children:"Информирование об изменениях в условиях предоставления услуг"})]})]})]})]}),l.jsxs("section",{className:X.section,children:[l.jsx("h3",{className:X.sectionTitle,children:"5. Правовые основания обработки персональных данных"}),l.jsx("h4",{className:X.subSectionTitle,children:"5.1.1. Согласие субъекта персональных данных:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Обработка персональных данных в маркетинговых целях"}),l.jsx("li",{children:"Использование файлов cookie и метрик"}),l.jsx("li",{children:"Персонализация сервисов и предложений"})]}),l.jsx("h4",{className:X.subSectionTitle,children:"5.1.2. Необходимость исполнения договора:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Регистрация и ведение учетных записей пользователей"}),l.jsx("li",{children:"Осуществление финансовых операций и переводов"}),l.jsx("li",{children:"Предоставление доступа к платформе и сервисам"}),l.jsx("li",{children:"Техническая поддержка и обслуживание клиентов"})]}),l.jsx("h4",{className:X.subSectionTitle,children:"5.1.3. Соблюдение правовой обязанности:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Выполнение требований валютного законодательства"}),l.jsx("li",{children:"Противодействие легализации доходов, полученных преступным путем"}),l.jsx("li",{children:"Соблюдение требований по налоговому учету и отчетности"})]})]}),l.jsxs("section",{className:X.section,children:[l.jsx("h3",{className:X.sectionTitle,children:"6. Объем и категории обрабатываемых персональных данных"}),l.jsx("h4",{className:X.subSectionTitle,children:"6.1.1. Пользователи веб-сайта и мобильного приложения:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Зарегистрированные пользователи"}),l.jsx("li",{children:"Посетители сайта без регистрации"}),l.jsx("li",{children:"Потенциальные клиенты"}),l.jsx("li",{children:"Бывшие клиенты"})]}),l.jsx("h4",{className:X.subSectionTitle,children:"6.2.1. Идентификационные данные:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Фамилия, имя, отчество"}),l.jsx("li",{children:"Дата рождения"}),l.jsx("li",{children:"Гражданство"})]}),l.jsx("h4",{className:X.subSectionTitle,children:"6.2.3. Контактная информация:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Номера телефонов (мобильный, домашний, рабочий)"}),l.jsx("li",{children:"Адреса электронной почты"})]}),l.jsx("h4",{className:X.subSectionTitle,children:"6.2.4. Финансовая информация:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Номера банковских счетов и карт"}),l.jsx("li",{children:"Реквизиты кошельков криптовалют"}),l.jsx("li",{children:"История операций и транзакций"}),l.jsx("li",{children:"Данные о доходах и источниках средств"})]}),l.jsx("h4",{className:X.subSectionTitle,children:"6.2.5. Техническая информация:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"IP-адреса устройств"}),l.jsx("li",{children:"Данные о браузере и операционной системе"}),l.jsx("li",{children:"Файлы cookie и локальное хранилище"}),l.jsx("li",{children:"Логи действий на сайте"})]})]}),l.jsxs("section",{className:X.section,children:[l.jsx("h3",{className:X.sectionTitle,children:"7. Порядок и условия обработки персональных данных"}),l.jsx("h4",{className:X.subSectionTitle,children:"7.1. Принципы обработки персональных данных:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Обработка осуществляется на законной и справедливой основе"}),l.jsx("li",{children:"Обработка ограничивается достижением конкретных, заранее определенных целей"}),l.jsx("li",{children:"Содержание и объем данных соответствуют заявленным целям"}),l.jsx("li",{children:"Обрабатываемые персональные данные являются точными и актуальными"})]}),l.jsx("h4",{className:X.subSectionTitle,children:"7.4. Сроки обработки персональных данных:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Персональные данные обрабатываются в течение времени, необходимого для достижения целей"}),l.jsx("li",{children:"После достижения целей персональные данные подлежат уничтожению или обезличиванию"}),l.jsx("li",{children:"Сроки хранения определяются требованиями законодательства"})]}),l.jsx("h4",{className:X.subSectionTitle,children:"7.5. Места обработки персональных данных:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Основные серверы и хранилища данных расположены на территории Российской Федерации"}),l.jsx("li",{children:"Резервные копии могут храниться в дата-центрах на территории РФ"})]})]}),l.jsxs("section",{className:X.section,children:[l.jsx("h3",{className:X.sectionTitle,children:"8. Актуализация, исправление, удаление и уничтожение персональных данных"}),l.jsx("h4",{className:X.subSectionTitle,children:"8.2.2. Процедура исправления:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Рассмотрение запроса в течение 30 дней"}),l.jsx("li",{children:"Проверка обоснованности требования об исправлении"}),l.jsx("li",{children:"Внесение изменений во все информационные системы"}),l.jsx("li",{children:"Уведомление субъекта о проведенных исправлениях"})]}),l.jsx("h4",{className:X.subSectionTitle,children:"8.3.2. Процедура удаления:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Проверка наличия законных оснований для продолжения обработки"}),l.jsx("li",{children:"Удаление из всех информационных систем и баз данных"}),l.jsx("li",{children:"Удаление резервных копий (кроме архивных)"}),l.jsx("li",{children:"Уведомление субъекта о выполненном удалении"})]})]}),l.jsxs("section",{className:X.section,children:[l.jsx("h3",{className:X.sectionTitle,children:"9. Ответы на запросы субъектов персональных данных"}),l.jsx("h4",{className:X.subSectionTitle,children:"9.1.1. Право на информацию:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Подтверждение факта обработки персональных данных"}),l.jsx("li",{children:"Правовые основания и цели обработки"}),l.jsx("li",{children:"Применяемые способы обработки"}),l.jsx("li",{children:"Наименование и местонахождение оператора"}),l.jsx("li",{children:"Лица, имеющие доступ к персональным данным"})]}),l.jsx("h4",{className:X.subSectionTitle,children:"9.2.2. Сроки рассмотрения:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Срок рассмотрения запроса составляет 30 дней с момента получения"}),l.jsx("li",{children:"Срок может быть продлен на 30 дней при большом объеме информации"}),l.jsx("li",{children:"О продлении срока субъект уведомляется в течение 30 дней"})]}),l.jsx("h4",{className:X.subSectionTitle,children:"9.4. Плата за предоставление информации:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Первый запрос в течение года обрабатывается бесплатно"}),l.jsx("li",{children:"За повторные запросы может взиматься плата в размере расходов"}),l.jsx("li",{children:"Субъект уведомляется о размере платы до предоставления информации"})]})]}),l.jsxs("section",{className:X.section,children:[l.jsx("h3",{className:X.sectionTitle,children:"10. Обеспечение безопасности персональных данных"}),l.jsx("h4",{className:X.subSectionTitle,children:"10.1. Правовые меры:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Назначение ответственного за организацию обработки персональных данных"}),l.jsx("li",{children:"Принятие локальных актов по вопросам обработки персональных данных"}),l.jsx("li",{children:"Ознакомление работников с требованиями законодательства"}),l.jsx("li",{children:"Применение мер ответственности за нарушение требований"})]}),l.jsx("h4",{className:X.subSectionTitle,children:"10.3. Технические меры:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Предотвращение несанкционированного доступа к персональным данным"}),l.jsx("li",{children:"Своевременное обнаружение фактов несанкционированного доступа"}),l.jsx("li",{children:"Возможность незамедлительного восстановления персональных данных"}),l.jsx("li",{children:"Постоянный контроль за обеспечением уровня защищенности"})]}),l.jsx("h4",{className:X.subSectionTitle,children:"10.4. Конкретные технические решения:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Использование сертифицированных средств защиты информации"}),l.jsx("li",{children:"Шифрование персональных данных при передаче и хранении"}),l.jsx("li",{children:"Применение межсетевых экранов и систем обнаружения вторжений"}),l.jsx("li",{children:"Резервное копирование и обеспечение отказоустойчивости"}),l.jsx("li",{children:"Антивирусная защита и обновление программного обеспечения"})]})]}),l.jsxs("section",{className:X.section,children:[l.jsx("h3",{className:X.sectionTitle,children:"12. Заключительные положения"}),l.jsx("h4",{className:X.subSectionTitle,children:"12.2. Жалобы и обращения:"}),l.jsxs("ul",{className:X.list,children:[l.jsx("li",{children:"Субъекты персональных данных могут обратиться к Оператору по вопросам обработки"}),l.jsx("li",{children:"Жалобы рассматриваются в установленном законом порядке"}),l.jsx("li",{children:"При неурегулировании разногласий возможно обращение в Роскомнадзор или суд"})]}),l.jsx("h4",{className:X.subSectionTitle,children:"12.4. Контактная информация для обращений:"}),l.jsxs("p",{className:X.contacts,children:["Почтовый адрес: 196246, г. Санкт-Петербург, Московское ш., д. 25, к. 1, лит. В, пом. 3-н",l.jsx("br",{}),"Электронная почта: company@bitforcefoundation.ru"]})]})]})}),l.jsx(xs,{})]})}const YA="_main_iq2qw_1",IA="_container_iq2qw_7",PA="_title_iq2qw_13",XA="_section_iq2qw_21",ZA="_sectionTitle_iq2qw_25",KA="_subSectionTitle_iq2qw_34",WA="_list_iq2qw_42",JA="_info_iq2qw_57",eO="_example_iq2qw_71",tO="_warning_iq2qw_81",ee={main:YA,container:IA,title:PA,section:XA,sectionTitle:ZA,subSectionTitle:KA,list:WA,info:JA,example:eO,warning:tO};function nO(){return l.jsxs(l.Fragment,{children:[l.jsx(zi,{}),l.jsx("main",{className:ee.main,children:l.jsxs("div",{className:ee.container,children:[l.jsx("h1",{className:ee.title,children:"ПОЛИТИКА ИСПОЛЬЗОВАНИЯ ФАЙЛОВ COOKIE"}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Общие положения и терминология"}),l.jsx("p",{children:"Настоящая Политика использования файлов cookie устанавливает порядок обработки файлов cookie и содержащихся в них персональных данных ООО «БИТФОРС» при использовании пользователями интернет-ресурса https://bitforce-foundation.ru."}),l.jsx("p",{children:"Файлы cookie — это текстовые файлы небольшого размера, которые устанавливаются на пользовательское устройство при посещении интернет-ресурса или совершении на нем определенных действий. Файлы cookie остаются сохраненными на устройстве даже после покидания ресурса, что позволяет «узнавать» пользователя при последующих посещениях."}),l.jsx("p",{children:"К персональным данным относится не сам файл cookie, а его содержимое — уникальные идентификаторы, IP-адреса, информация о предпочтениях пользователя и другие данные, позволяющие прямо или косвенно идентифицировать физическое лицо."})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Оператор персональных данных"}),l.jsx("p",{children:"Оператором персональных данных, содержащихся в файлах cookie, является:"}),l.jsxs("div",{className:ee.info,children:[l.jsx("p",{children:"ООО «БИТФОРС»"}),l.jsx("p",{children:"ИНН: 9810001062"}),l.jsx("p",{children:"ОГРН: 1257800060990"}),l.jsx("p",{children:"Юридический адрес: 196246, город Санкт-Петербург, Московское ш, д. 25 к. 1 литера В, помещ. 3-н"})]}),l.jsx("p",{children:"Оператор определяет цели обработки персональных данных, их состав, а также действия с персональными данными, включая случаи использования сторонних файлов cookie."})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Категории файлов cookie и их назначение"}),l.jsx("h4",{className:ee.subSectionTitle,children:"1. Строго необходимые (технические) файлы cookie"}),l.jsx("p",{children:"Данные файлы обеспечивают работу интернет-ресурса и предоставление необходимого уровня сервиса: авторизацию, навигацию, отображение контента в соответствии с параметрами устройства, обеспечение безопасности."}),l.jsx("p",{children:"Обработка таких файлов cookie осуществляется на основании п. 5 ч. 1 ст. 6 ФЗ № 152 (заключение и исполнение договора). Согласие на использование строго необходимых файлов cookie не требуется."}),l.jsx("p",{className:ee.example,children:"Примеры: файлы сессий (PHPSESSID), настройки безопасности, файлы аутентификации."}),l.jsx("h4",{className:ee.subSectionTitle,children:"2. Функциональные файлы cookie"}),l.jsx("p",{children:"Используются для запоминания пользовательских предпочтений и персонализации взаимодействия с сайтом: сохранение выбранного языка, региона, настроек отображения, размера шрифта."}),l.jsx("p",{children:"Обработка осуществляется на основании согласия субъекта персональных данных, поскольку данная обработка не является строго необходимой для функционирования сайта."}),l.jsx("p",{className:ee.example,children:"Примеры: настройки языка интерфейса, предпочтения отображения, настройки доступности."}),l.jsx("h4",{className:ee.subSectionTitle,children:"3. Аналитические файлы cookie"}),l.jsx("p",{children:"Собирают информацию о взаимодействии пользователей с интернет-ресурсом для анализа его использования, выявления популярных разделов, обнаружения ошибок и улучшения пользовательского опыта. Могут содержать персональные данные, включая IP-адреса пользователей."}),l.jsx("p",{children:"Обработка осуществляется на основании согласия субъекта персональных данных."}),l.jsx("h4",{className:ee.subSectionTitle,children:"4. Маркетинговые файлы cookie"}),l.jsx("p",{children:"Используются для отслеживания пользователей в целях персонализированной рекламы, анализа эффективности рекламных кампаний, ретаргетинга."}),l.jsx("p",{children:"Обработка осуществляется исключительно на основании согласия субъекта персональных данных."}),l.jsx("p",{className:ee.example,children:"Примеры: пиксели социальных сетей, рекламные идентификаторы, файлы ретаргетинга."})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Правовые основания обработки персональных данных"}),l.jsx("p",{children:"Обработка персональных данных, содержащихся в файлах cookie, осуществляется на следующих правовых основаниях:"}),l.jsxs("ul",{className:ee.list,children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Согласие субъекта персональных данных"})," — для функциональных, аналитических и маркетинговых файлов cookie"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Заключение и исполнение договора"})," — для строго необходимых файлов cookie, обеспечивающих работу интернет-ресурса"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Законные интересы оператора"})," — в исключительных случаях, когда отсутствуют иные основания"]})]})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Порядок получения согласия"}),l.jsx("h4",{className:ee.subSectionTitle,children:"Принципы получения согласия:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Согласие должно быть получено до начала обработки персональных данных"}),l.jsx("li",{children:"Информация об использовании файлов cookie размещается на первом уровне интернет-ресурса"}),l.jsx("li",{children:"Предоставляется возможность выбора категорий файлов cookie"}),l.jsx("li",{children:"Используются активные формулировки вместо пассивных"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Критерии действительного согласия:"}),l.jsxs("ul",{className:ee.list,children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Добровольность"})," — согласие дается по свободной воле субъекта"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Конкретность"})," — четко определены цели обработки"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Информированность"})," — предоставлена полная информация об обработке"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Однозначность"})," — согласие выражено в недвусмысленной форме"]})]})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Сторонние файлы cookie"}),l.jsx("h4",{className:ee.subSectionTitle,children:"Использование сторонних сервисов:"}),l.jsx("p",{children:"Наш интернет-ресурс использует файлы cookie сторонних сервисов, включая:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Яндекс.Метрика (ООО «ЯНДЕКС», Россия)"}),l.jsx("li",{children:"Социальные сети и сервисы интеграции"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Обеспечение защиты:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Получено согласие на передачу"}),l.jsx("li",{children:"Применяются дополнительные меры защиты данных"}),l.jsx("li",{children:"Контролируется соблюдение принципов обработки персональных данных получателями"})]})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Сроки обработки и хранения"}),l.jsx("h4",{className:ee.subSectionTitle,children:"Категории по срокам хранения:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Сеансовые cookie — удаляются автоматически при закрытии браузера"}),l.jsx("li",{children:"Постоянные cookie — хранятся установленный период или до удаления пользователем"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Конкретные сроки:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Необходимые файлы cookie — до 12 месяцев"}),l.jsx("li",{children:"Функциональные файлы cookie — до 12 месяцев"}),l.jsx("li",{children:"Аналитические файлы cookie — до 24 месяцев"}),l.jsx("li",{children:"Маркетинговые файлы cookie — до 24 месяцев"})]}),l.jsx("p",{children:"По истечении установленных сроков файлы cookie удаляются автоматически. Пользователь может удалить файлы cookie досрочно через настройки браузера или отозвать согласие на их обработку."})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Права субъектов персональных данных"}),l.jsx("h4",{className:ee.subSectionTitle,children:"Право на информацию:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Получение информации о обработке персональных данных"}),l.jsx("li",{children:"Сведения о правовых основаниях и целях обработки"}),l.jsx("li",{children:"Информация о сроках обработки и составе данных"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Право на доступ:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Получение подтверждения факта обработки"}),l.jsx("li",{children:"Ознакомление с обрабатываемыми персональными данными"}),l.jsx("li",{children:"Получение информации об источниках персональных данных"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Право на уточнение, блокирование, удаление:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Требование уточнения неточных данных"}),l.jsx("li",{children:"Блокирование недостоверных данных"}),l.jsx("li",{children:"Удаление незаконно полученных данных"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Право на отзыв согласия:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Отзыв согласия в любое время"}),l.jsx("li",{children:"Прекращение обработки после отзыва согласия"}),l.jsx("li",{children:"Сохранение права на обжалование действий оператора"})]})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Способы управления файлами cookie"}),l.jsx("h4",{className:ee.subSectionTitle,children:"Управление через настройки сайта:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Использование баннера согласия на файлы cookie"}),l.jsx("li",{children:"Изменение настроек в любое время через интерфейс сайта"}),l.jsx("li",{children:"Отзыв согласия на использование отдельных категорий файлов cookie"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Управление через браузер:"}),l.jsx("p",{children:"Большинство браузеров позволяют контролировать файлы cookie:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Блокировка — запрет установки новых файлов cookie"}),l.jsx("li",{children:"Удаление — очистка существующих файлов cookie"}),l.jsx("li",{children:"Уведомления — получение предупреждений при установке файлов cookie"}),l.jsx("li",{children:"Селективная настройка — разрешение файлов cookie только для определенных сайтов"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Инструкции для популярных браузеров:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Google Chrome: Настройки → Конфиденциальность и безопасность → Файлы cookie"}),l.jsx("li",{children:"Mozilla Firefox: Настройки → Приватность и Защита → Файлы cookie"}),l.jsx("li",{children:"Safari: Настройки → Конфиденциальность → Файлы cookie"}),l.jsx("li",{children:"Microsoft Edge: Настройки → Файлы cookie и разрешения сайтов"})]}),l.jsx("p",{className:ee.warning,children:"Блокировка необходимых файлов cookie может привести к ограничению функциональности интернет-ресурса."})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Меры безопасности"}),l.jsx("p",{children:"Оператор применяет правовые, организационные и технические меры для защиты персональных данных:"}),l.jsx("h4",{className:ee.subSectionTitle,children:"Правовые меры:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Назначение ответственного за организацию обработки персональных данных"}),l.jsx("li",{children:"Ознакомление сотрудников с требованиями законодательства"}),l.jsx("li",{children:"Заключение соглашений о неразглашении персональных данных"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Организационные меры:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Определение перечня лиц, допущенных к обработке персональных данных"}),l.jsx("li",{children:"Установление правил доступа к персональным данным"}),l.jsx("li",{children:"Контроль за соблюдением требований по защите персональных данных"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Технические меры:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Использование средств защиты информации"}),l.jsx("li",{children:"Применение криптографических средств защиты"}),l.jsx("li",{children:"Обеспечение целостности и доступности персональных данных"}),l.jsx("li",{children:"Регулярное обновление систем защиты информации"})]})]}),l.jsxs("section",{className:ee.section,children:[l.jsx("h3",{className:ee.sectionTitle,children:"Контактная информация и обращения"}),l.jsx("p",{children:"Для реализации прав субъекта персональных данных обращайтесь к нам:"}),l.jsxs("div",{className:ee.info,children:[l.jsx("p",{children:"ООО «БИТФОРС»"}),l.jsx("p",{children:"ИНН: 9810001062"}),l.jsx("p",{children:"ОГРН: 1257800060990"}),l.jsx("p",{children:"Юридический адрес: 196246, город Санкт-Петербург, Московское ш, д. 25 к. 1 литера В, помещ. 3-н"}),l.jsx("p",{children:"Email компании: company@bitforcefoundation.ru"})]}),l.jsx("h4",{className:ee.subSectionTitle,children:"Порядок рассмотрения обращений:"}),l.jsxs("ul",{className:ee.list,children:[l.jsx("li",{children:"Срок рассмотрения обращений — до 30 дней с момента получения"}),l.jsx("li",{children:"Обращения рассматриваются в письменной форме"}),l.jsx("li",{children:"Ответ направляется способом, указанным в обращении"}),l.jsx("li",{children:"При отказе в удовлетворении требований указываются мотивированные основания"})]})]})]})}),l.jsx(xs,{})]})}const lO="_main_9j8kd_1",aO="_container_9j8kd_7",sO="_title_9j8kd_13",iO="_subtitle_9j8kd_21",cO="_section_9j8kd_29",rO="_sectionTitle_9j8kd_33",oO="_subSectionTitle_9j8kd_42",uO="_list_9j8kd_50",dO="_info_9j8kd_65",fO="_contacts_9j8kd_79",hO="_confirmation_9j8kd_92",K={main:lO,container:aO,title:sO,subtitle:iO,section:cO,sectionTitle:rO,subSectionTitle:oO,list:uO,info:dO,contacts:fO,confirmation:hO};function mO(){return l.jsxs(l.Fragment,{children:[l.jsx(zi,{}),l.jsx("main",{className:K.main,children:l.jsxs("div",{className:K.container,children:[l.jsx("h1",{className:K.title,children:"СОГЛАСИЕ НА ОБРАБОТКУ ПЕРСОНАЛЬНЫХ ДАННЫХ"}),l.jsx("h2",{className:K.subtitle,children:"ООО «БИТФОРС»"}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"Преамбула"}),l.jsx("p",{children:"Я, субъект персональных данных, действуя своей волей и в своем интересе, в соответствии с требованиями Федерального закона от 27.07.2006 № 152-ФЗ «О персональных данных», предоставляю ООО «БИТФОРС» согласие на обработку моих персональных данных на условиях и для целей, определенных настоящим Согласием."})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"1. Сведения об операторе"}),l.jsxs("div",{className:K.info,children:[l.jsx("p",{children:"Полное наименование: Общество с ограниченной ответственностью «БИТФОРС»"}),l.jsx("p",{children:"ИНН: 9810001062"}),l.jsx("p",{children:"ОГРН: 1257800060990"}),l.jsx("p",{children:"Юридический адрес: 196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н"}),l.jsx("p",{children:"Электронная почта: company@bitforcefoundation.ru"}),l.jsx("p",{children:"Веб-сайт: https://bitforce-foundation.ru"})]})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"2. Правовые основания обработки"}),l.jsx("p",{children:"Настоящее согласие предоставляется на основании пункта 1 части 1 статьи 6 Федерального закона «О персональных данных» и является правовым основанием для обработки персональных данных Оператором."}),l.jsx("p",{children:"Согласие дается добровольно, своей волей и в своих интересах."}),l.jsx("p",{children:"Субъект персональных данных понимает последствия предоставления согласия, включая возможные риски, связанные с обработкой персональных данных."})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"3. Цели обработки персональных данных"}),l.jsx("h4",{className:K.subSectionTitle,children:"3.1. Основные цели:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Регистрация и ведение учетной записи на веб-сайте и в мобильном приложении"}),l.jsx("li",{children:"Идентификация и верификация личности в соответствии с требованиями законодательства"}),l.jsx("li",{children:"Предоставление услуг по обмену криптовалют и электронных денежных средств"}),l.jsx("li",{children:"Проведение финансовых операций, переводов и расчетов"}),l.jsx("li",{children:"Ведение учета и истории операций"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"3.2. Дополнительные цели:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Обеспечение безопасности операций и предотвращение мошенничества"}),l.jsx("li",{children:"Выполнение требований по противодействию легализации доходов"}),l.jsx("li",{children:"Соблюдение требований валютного, налогового и иного применимого законодательства"}),l.jsx("li",{children:"Предоставление технической поддержки и клиентского сервиса"}),l.jsx("li",{children:"Рассылка уведомлений о состоянии операций и изменениях в условиях"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"3.3. Маркетинговые цели (при дополнительном согласии):"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Направление информационных и рекламных материалов"}),l.jsx("li",{children:"Проведение маркетинговых исследований и опросов"}),l.jsx("li",{children:"Персонализация предложений и услуг"}),l.jsx("li",{children:"Анализ предпочтений и поведения для улучшения сервисов"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"3.4. Аналитические цели:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Анализ использования веб-сайта и мобильного приложения"}),l.jsx("li",{children:"Улучшение качества предоставляемых услуг"}),l.jsx("li",{children:"Разработка новых продуктов и сервисов"}),l.jsx("li",{children:"Создание статистических отчетов в обезличенном виде"})]})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"4. Перечень персональных данных"}),l.jsx("h4",{className:K.subSectionTitle,children:"4.1. Идентификационные данные:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Фамилия, имя, отчество"}),l.jsx("li",{children:"Дата рождения"}),l.jsx("li",{children:"Гражданство"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"4.2. Документы, удостоверяющие личность:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Серия и номер паспорта гражданина Российской Федерации"}),l.jsx("li",{children:"Дата выдачи и код подразделения"}),l.jsx("li",{children:"Адрес регистрации по месту жительства"}),l.jsx("li",{children:"Цифровые копии (сканы) документов"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"4.3. Контактная информация:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Номера телефонов (мобильный, домашний, рабочий)"}),l.jsx("li",{children:"Адреса электронной почты"}),l.jsx("li",{children:"Почтовые адреса (фактического проживания, для корреспонденции)"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"4.4. Финансовая информация:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Номера банковских счетов и реквизиты банковских карт"}),l.jsx("li",{children:"Реквизиты криптовалютных кошельков и адресов"}),l.jsx("li",{children:"Информация о доходах и источниках происхождения денежных средств"}),l.jsx("li",{children:"История финансовых операций и транзакций"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"4.5. Техническая информация:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"IP-адреса устройств, с которых осуществляется доступ к сервисам"}),l.jsx("li",{children:"Информация о браузере, операционной системе и устройстве"}),l.jsx("li",{children:"Файлы cookie и данные локального хранилища"}),l.jsx("li",{children:"Логи действий и история использования сервисов"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"4.6. Дополнительная информация:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Фотографии для процедур верификации"}),l.jsx("li",{children:"Видеозаписи процедур видеоидентификации"}),l.jsx("li",{children:"Биометрические данные (при использовании соответствующих технологий)"}),l.jsx("li",{children:"Информация о семейном положении и профессиональной деятельности"})]})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"5. Перечень действий с персональными данными"}),l.jsx("p",{children:"Согласие распространяется на следующие действия (операции) с персональными данными:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Сбор, запись и первичная обработка персональных данных"}),l.jsx("li",{children:"Накопление и систематизация в базах данных"}),l.jsx("li",{children:"Создание резервных копий и архивирование"}),l.jsx("li",{children:"Извлечение, использование и анализ данных"}),l.jsx("li",{children:"Уточнение, обновление и актуализация информации"}),l.jsx("li",{children:"Передача данных третьим лицам"}),l.jsx("li",{children:"Обезличивание и удаление данных"}),l.jsx("li",{children:"Автоматизированная обработка и профилирование"})]})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"6. Лица, которым могут быть переданы персональные данные"}),l.jsx("h4",{className:K.subSectionTitle,children:"6.1. Сотрудники Оператора:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Уполномоченные сотрудники, непосредственно участвующие в обработке"}),l.jsx("li",{children:"Сотрудники службы безопасности и комплаенса"}),l.jsx("li",{children:"Сотрудники технической поддержки"}),l.jsx("li",{children:"Руководящий состав в рамках их полномочий"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"6.2. Государственные и муниципальные органы:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Федеральная служба по финансовому мониторингу"}),l.jsx("li",{children:"Федеральная налоговая служба"}),l.jsx("li",{children:"Правоохранительные органы (при наличии законных требований)"}),l.jsx("li",{children:"Суды и органы исполнения судебных решений"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"6.3. Партнеры и контрагенты:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Банки и платежные системы"}),l.jsx("li",{children:"Операторы электронных денежных средств"}),l.jsx("li",{children:"Поставщики технологических решений"}),l.jsx("li",{children:"Аудиторские и консалтинговые организации"})]})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"7. Сроки обработки персональных данных"}),l.jsx("h4",{className:K.subSectionTitle,children:"7.1. Общие принципы:"}),l.jsx("p",{children:"Персональные данные обрабатываются в течение времени, необходимого для достижения целей обработки. После достижения целей данные подлежат уничтожению или обезличиванию."}),l.jsx("h4",{className:K.subSectionTitle,children:"7.2. Конкретные сроки обработки:"}),l.jsxs("ul",{className:K.list,children:[l.jsxs("li",{children:[l.jsx("strong",{children:"Данные активных клиентов:"})," в течение всего периода отношений плюс 5 лет после прекращения"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Данные для идентификации:"})," 5 лет с момента прекращения отношений"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Финансовая информация:"})," 5 лет с даты совершения операции"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Маркетинговые данные:"})," до отзыва согласия, но не более 3 лет"]}),l.jsxs("li",{children:[l.jsx("strong",{children:"Техническая информация:"})," 1 год для безопасности, 6 месяцев для логов"]})]})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"8. Права субъекта персональных данных"}),l.jsx("h4",{className:K.subSectionTitle,children:"8.1. Право на информацию:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Получение подтверждения факта обработки персональных данных"}),l.jsx("li",{children:"Получение информации о целях и способах обработки"}),l.jsx("li",{children:"Информация о сроках обработки и составе данных"}),l.jsx("li",{children:"Сведения о лицах, которым передаются данные"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"8.2. Право на доступ:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Получение копий обрабатываемых персональных данных"}),l.jsx("li",{children:"Ознакомление с историей обработки и изменений"}),l.jsx("li",{children:"Получение информации об источниках персональных данных"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"8.3. Право на исправление и удаление:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Требование исправления неточных или неполных данных"}),l.jsx("li",{children:"Требование удаления персональных данных при наличии оснований"}),l.jsx("li",{children:"Удаление данных после отзыва согласия"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"8.4. Право на отзыв согласия:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Согласие может быть отозвано в любое время"}),l.jsx("li",{children:"Отзыв оформляется в письменной форме"}),l.jsx("li",{children:"После отзыва обработка прекращается в разумные сроки"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"8.5. Право на обжалование:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Обращение к Оператору с жалобами на действия по обработке данных"}),l.jsx("li",{children:"Обращение в Роскомнадзор или его территориальные органы"}),l.jsx("li",{children:"Обращение в суд для защиты нарушенных прав"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"8.6. Порядок реализации прав:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Обращения направляются на адрес: company@bitforcefoundation.ru"}),l.jsx("li",{children:"Обращения рассматриваются в течение 30 дней"}),l.jsx("li",{children:"При необходимости срок может быть продлен на 30 дней"})]})]}),l.jsxs("section",{className:K.section,children:[l.jsx("h3",{className:K.sectionTitle,children:"9. Заключительные положения"}),l.jsx("h4",{className:K.subSectionTitle,children:"9.1. Действие согласия:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Согласие действует с момента его предоставления"}),l.jsx("li",{children:"Согласие действует до его отзыва или до достижения целей обработки"}),l.jsx("li",{children:"При существенных изменениях целей требуется новое согласие"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"9.2. Форма предоставления согласия:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Согласие может быть предоставлено в письменной форме"}),l.jsx("li",{children:"Согласие может быть предоставлено в электронной форме"}),l.jsx("li",{children:"Согласие может выражаться путем совершения конклюдентных действий"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"9.3. Последствия непредоставления согласия:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Отказ в предоставлении согласия может повлечь невозможность регистрации"}),l.jsx("li",{children:"Отказ может ограничить доступ к отдельным услугам"}),l.jsx("li",{children:"Отказ в согласии на маркетинг не влияет на основные услуги"}),l.jsx("li",{children:"Субъект вправе предоставить частичное согласие"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"9.4. Контактная информация:"}),l.jsxs("div",{className:K.contacts,children:[l.jsx("p",{children:"Почтовый адрес: 196246, г. Санкт-Петербург, Московское ш., д. 25, к. 1, лит. В, пом. 3-н"}),l.jsx("p",{children:"Электронная почта: company@bitforcefoundation.ru"}),l.jsx("p",{children:"Ответственное лицо: Кленин Михаил Васильевич"}),l.jsx("p",{children:"Официальный сайт: https://bitforce-foundation.ru"})]}),l.jsx("h4",{className:K.subSectionTitle,children:"9.5. Подтверждение понимания:"}),l.jsx("p",{className:K.confirmation,children:"Предоставляя настоящее согласие, я подтверждаю, что:"}),l.jsxs("ul",{className:K.list,children:[l.jsx("li",{children:"Ознакомлен с содержанием согласия и понимаю его значение"}),l.jsx("li",{children:"Понимаю цели и способы обработки моих персональных данных"}),l.jsx("li",{children:"Знаю о своих правах и способах их реализации"}),l.jsx("li",{children:"Согласие предоставляется добровольно и осознанно"}),l.jsx("li",{children:"Имею возможность отозвать согласие в любое время"})]})]})]})}),l.jsx(xs,{})]})}const pO="_main_2hruc_1",_O="_container_2hruc_7",gO="_title_2hruc_13",vO="_subtitle_2hruc_21",yO="_section_2hruc_29",xO="_sectionTitle_2hruc_33",bO="_description_2hruc_42",jO="_info_2hruc_49",SO="_linkBlock_2hruc_56",NO="_button_2hruc_64",wO="_operatorInfo_2hruc_81",Jt={main:pO,container:_O,title:gO,subtitle:vO,section:yO,sectionTitle:xO,description:bO,info:jO,linkBlock:SO,button:NO,operatorInfo:wO};function CO(){return l.jsxs(l.Fragment,{children:[l.jsx(zi,{}),l.jsx("main",{className:Jt.main,children:l.jsxs("div",{className:Jt.container,children:[l.jsx("h1",{className:Jt.title,children:"Реестр операторов персональных данных"}),l.jsx("h2",{className:Jt.subtitle,children:"ООО «БИТФОРС»"}),l.jsxs("section",{className:Jt.section,children:[l.jsx("p",{className:Jt.description,children:"Информация об операторе персональных данных размещена в реестре операторов персональных данных Федеральной службы по надзору в сфере связи, информационных технологий и массовых коммуникаций (Роскомнадзор)."}),l.jsx("p",{className:Jt.info,children:"Вы можете просмотреть информацию об операторе в реестре Роскомнадзора, перейдя по ссылке ниже:"}),l.jsx("div",{className:Jt.linkBlock,children:l.jsx("a",{href:"https://pd.rkn.gov.ru/operators-registry/operators-list/?act=search&name_full=%D0%91%D0%B8%D1%82%D1%84%D0%BE%D1%80%D1%81&inn=9810001062&regn=",target:"_blank",rel:"noopener noreferrer",className:Jt.button,children:"Открыть реестр Роскомнадзора"})}),l.jsx("p",{className:Jt.info,children:"Реестр содержит информацию об операторах персональных данных, включая сведения о целях и методах обработки персональных данных, а также меры по обеспечению безопасности персональных данных."})]}),l.jsxs("section",{className:Jt.section,children:[l.jsx("h3",{className:Jt.sectionTitle,children:"Информация об операторе"}),l.jsxs("div",{className:Jt.operatorInfo,children:[l.jsxs("p",{children:[l.jsx("strong",{children:"Наименование:"})," ООО «БИТФОРС»"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"ИНН:"})," 9810001062"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"ОГРН:"})," 1257800060990"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"Юридический адрес:"})," 196246, город Санкт-Петербург, Московское шоссе, дом 25, корпус 1, литера В, помещение 3-н"]}),l.jsxs("p",{children:[l.jsx("strong",{children:"Контактная информация:"})," company@bitforcefoundation.ru"]})]})]}),l.jsxs("section",{className:Jt.section,children:[l.jsx("h3",{className:Jt.sectionTitle,children:"О Роскомнадзоре"}),l.jsx("p",{children:"Федеральная служба по надзору в сфере связи, информационных технологий и массовых коммуникаций (Роскомнадзор) — это федеральный орган исполнительной власти, осуществляющий функции по контролю и надзору в области персональных данных."}),l.jsx("p",{children:"Роскомнадзор ведет реестр операторов персональных данных в соответствии с требованиями Федерального закона «О персональных данных». Реестр является открытой информационной системой и доступен всем заинтересованным лицам."})]})]})}),l.jsx(xs,{})]})}function Gp(a){return a?new Date(a).toLocaleString("ru-RU",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}function EO(a){return a?a.length<=16?a:`${a.slice(0,8)}${a.slice(-6)}`:"—"}function Vp(a){return Number(a).toLocaleString("ru-RU")}const TO={pending:"Ожидание",money_accepted:"Деньги получены",web3_processing:"Обработка в сети",web3_hash_error:"Ошибка хэша",web3_balance_problem:"Проблема с балансом",receipt_error:"Ошибка чека",completed:"Завершён",usdt_delivered:"USDT отправлен"},RO="_badge_1d3cq_1",AO="_status_pending_1d3cq_10",OO="_status_completed_1d3cq_15",MO="_status_money_accepted_1d3cq_20",LO="_status_web3_processing_1d3cq_25",zO="_status_web3_hash_error_1d3cq_30",DO="_status_web3_balance_problem_1d3cq_35",kO="_status_receipt_error_1d3cq_40",BO="_status_usdt_delivered_1d3cq_45",Qp={badge:RO,status_pending:AO,status_completed:OO,status_money_accepted:MO,status_web3_processing:LO,status_web3_hash_error:zO,status_web3_balance_problem:DO,status_receipt_error:kO,status_usdt_delivered:BO};function Yp({status:a}){return l.jsx("span",{className:`${Qp.badge} ${Qp[`status_${a}`]??""}`,children:TO[a]??a})}const UO="_button_1q7wx_1",$O={button:UO};function HO({value:a}){const[i,c]=j.useState(!1);function r(){navigator.clipboard.writeText(a).then(()=>{c(!0),setTimeout(()=>c(!1),1500)})}return l.jsx("button",{className:$O.button,onClick:r,type:"button",title:"Скопировать",children:i?l.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:l.jsx("polyline",{points:"20 6 9 17 4 12"})}):l.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[l.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2"}),l.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]})})}const qO="_item_1ymly_1",FO="_summary_1ymly_8",GO="_summaryLeft_1ymly_25",VO="_summaryDate_1ymly_34",QO="_summaryRight_1ymly_41",YO="_amount_1ymly_48",IO="_totalAmount_1ymly_56",PO="_chevron_1ymly_64",XO="_chevronOpen_1ymly_70",ZO="_bodyOuter_1ymly_74",KO="_bodyOuterOpen_1ymly_80",WO="_bodyInner_1ymly_84",JO="_body_1ymly_74",eM="_col_1ymly_96",tM="_colTitle_1ymly_101",nM="_infoRow_1ymly_110",lM="_infoRowTotal_1ymly_123",aM="_infoLabel_1ymly_128",sM="_infoValue_1ymly_129",iM="_infoValueRow_1ymly_148",cM="_infoLink_1ymly_154",Ue={item:qO,summary:FO,summaryLeft:GO,summaryDate:VO,summaryRight:QO,amount:YO,totalAmount:IO,chevron:PO,chevronOpen:XO,bodyOuter:ZO,bodyOuterOpen:KO,bodyInner:WO,body:JO,col:eM,colTitle:tM,infoRow:nM,infoRowTotal:lM,infoLabel:aM,infoValue:sM,infoValueRow:iM,infoLink:cM};function rM({item:a}){const[i,c]=j.useState(!1),{order:r,payment:d}=a;return l.jsxs("div",{className:Ue.item,children:[l.jsxs("button",{className:Ue.summary,onClick:()=>c(f=>!f),type:"button","aria-expanded":i,children:[l.jsxs("div",{className:Ue.summaryLeft,children:[l.jsx("span",{className:Ue.summaryDate,children:Gp(r.created_at)}),d&&l.jsx(Yp,{status:d.status})]}),l.jsxs("div",{className:Ue.summaryRight,children:[l.jsxs("span",{className:Ue.amount,children:[r.usdt_amount," USDT"]}),l.jsxs("span",{className:Ue.totalAmount,children:[Vp(r.total_price)," ₽"]}),l.jsx("svg",{className:`${Ue.chevron} ${i?Ue.chevronOpen:""}`,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:l.jsx("polyline",{points:"6 9 12 15 18 9"})})]})]}),l.jsx("div",{className:`${Ue.bodyOuter} ${i?Ue.bodyOuterOpen:""}`,children:l.jsx("div",{className:Ue.bodyInner,children:l.jsxs("div",{className:Ue.body,children:[l.jsxs("div",{className:Ue.col,children:[l.jsx("p",{className:Ue.colTitle,children:"Заказ"}),l.jsx(ss,{label:"Сумма USDT",value:`${r.usdt_amount} USDT`}),l.jsx(ss,{label:"Курс обмена",value:`1 USDT = ${r.usdt_exchange_rate}`}),l.jsx(ss,{label:"Сервисный сбор",value:`${r.service_fee} USDT`}),l.jsx(ss,{label:"Комиссия за газ",value:`${r.gas_fee} USDT`}),l.jsx(ss,{label:"Итого к оплате",value:`${Vp(r.total_price)}`,emphasised:!0})]}),l.jsxs("div",{className:Ue.col,children:[l.jsx("p",{className:Ue.colTitle,children:"Платёж"}),d?l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:Ue.infoRow,children:[l.jsx("span",{className:Ue.infoLabel,children:"Статус"}),l.jsx(Yp,{status:d.status})]}),l.jsx(ss,{label:"Оплачено",value:d.itpay_paid_amount||"—"}),l.jsx(ss,{label:"Истекает",value:Gp(d.expired_date)}),l.jsxs("div",{className:Ue.infoRow,children:[l.jsx("span",{className:Ue.infoLabel,children:"Хэш транзакции"}),l.jsxs("span",{className:Ue.infoValueRow,children:[l.jsx("span",{className:Ue.infoValue,title:d.web3_transaction_hash||void 0,children:EO(d.web3_transaction_hash)}),d.web3_transaction_hash&&l.jsx(HO,{value:d.web3_transaction_hash})]})]}),l.jsxs("div",{className:Ue.infoRow,children:[l.jsx("span",{className:Ue.infoLabel,children:"Чек"}),d.receipt_cloudekassir_link?l.jsx("a",{href:d.receipt_cloudekassir_link,target:"_blank",rel:"noopener noreferrer",className:Ue.infoLink,children:"Открыть →"}):l.jsx("span",{className:Ue.infoValue,children:"—"})]})]}):l.jsx("div",{className:Ue.infoRow,children:l.jsx("span",{className:Ue.infoValue,children:"—"})})]})]})})})]})}function ss({label:a,value:i,emphasised:c}){return l.jsxs("div",{className:`${Ue.infoRow} ${c?Ue.infoRowTotal:""}`,children:[l.jsx("span",{className:Ue.infoLabel,children:a}),l.jsx("span",{className:Ue.infoValue,children:i})]})}const oM="_list_gxp0d_1",uM="_empty_gxp0d_9",dM="_status_gxp0d_16",fM="_statusError_gxp0d_23",hM="_loadMore_gxp0d_30",mM="_loadMoreBtn_gxp0d_38",ui={list:oM,empty:uM,status:dM,statusError:fM,loadMore:hM,loadMoreBtn:mM};function pM(){const{data:a,isLoading:i,isError:c,fetchNextPage:r,hasNextPage:d,isFetchingNextPage:f}=E6(),p=(a==null?void 0:a.pages.flatMap(g=>g.orders))??[];return i?l.jsx("p",{className:ui.status,children:"Загрузка..."}):c?l.jsx("p",{className:ui.statusError,children:"Не удалось загрузить транзакции. Попробуйте обновить страницу."}):p.length===0?l.jsx("p",{className:ui.empty,children:"У вас пока нет транзакций."}):l.jsxs(l.Fragment,{children:[l.jsx("div",{className:ui.list,children:p.map(g=>l.jsx(rM,{item:g},g.order.id))}),d&&l.jsx("div",{className:ui.loadMore,children:l.jsx("button",{className:ui.loadMoreBtn,onClick:()=>r(),disabled:f,type:"button",children:f?"Загрузка...":"Загрузить ещё"})})]})}const _M="_status_1yzxr_1",gM="_statusError_1yzxr_8",vM="_empty_1yzxr_15",yM="_tableWrap_1yzxr_22",xM="_table_1yzxr_22",bM="_mono_1yzxr_53",jM="_statusBadge_1yzxr_57",Bl={status:_M,statusError:gM,empty:vM,tableWrap:yM,table:xM,mono:bM,statusBadge:jM};function Ip(a,i){return a?`${a} ${i}`:"—"}function SM(a){if(!a)return"—";const i=new Date(a);return Number.isNaN(i.getTime())?"—":i.toLocaleString("ru-RU")}function NM(){const{data:a,isLoading:i,isError:c}=Z3();return i?l.jsx("p",{className:Bl.status,children:"Загрузка..."}):c?l.jsx("p",{className:Bl.statusError,children:"Не удалось загрузить заявки. Попробуйте обновить страницу."}):!a||a.items.length===0?l.jsx("p",{className:Bl.empty,children:"У вас пока нет заявок."}):l.jsx("div",{className:Bl.tableWrap,children:l.jsxs("table",{className:Bl.table,children:[l.jsx("thead",{children:l.jsxs("tr",{children:[l.jsx("th",{children:"USDT"}),l.jsx("th",{children:"Сумма ₽"}),l.jsx("th",{children:"Курс"}),l.jsx("th",{children:"Статус"}),l.jsx("th",{children:"Создана"})]})}),l.jsx("tbody",{children:a.items.map(r=>l.jsxs("tr",{children:[l.jsx("td",{className:Bl.mono,children:Ip(r.usdt_amount,"USDT")}),l.jsx("td",{className:Bl.mono,children:Ip(r.rub_amount,"₽")}),l.jsx("td",{className:Bl.mono,children:r.exchange_rate??"—"}),l.jsx("td",{children:l.jsx("span",{className:Bl.statusBadge,children:r.status})}),l.jsx("td",{children:SM(r.created_at)})]},r.id))})]})})}const wM="_inner_1umld_1",CM="_glow_1umld_9",EM="_title_1umld_21",TM="_tabs_1umld_30",RM="_tab_1umld_30",di={inner:wM,glow:CM,title:EM,tabs:TM,tab:RM};function AM(){const{data:a}=Il(),[i,c]=j.useState("transactions"),r=!!a&&a.account_type!=="individual",d=r?i:"transactions";return l.jsxs("div",{className:di.inner,children:[l.jsx("div",{className:di.glow}),l.jsx("h1",{className:di.title,children:"Транзакции"}),r&&l.jsxs("div",{className:di.tabs,children:[l.jsx("button",{type:"button",className:di.tab,"data-active":d==="transactions"||void 0,onClick:()=>c("transactions"),children:"Транзакции"}),l.jsx("button",{type:"button",className:di.tab,"data-active":d==="requests"||void 0,onClick:()=>c("requests"),children:"Заявки"})]}),d==="transactions"?l.jsx(pM,{}):l.jsx(NM,{})]})}const O_={ETH:{symbol:"ETH",aprLabel:"APR",protocol:"Lido"},SOL:{symbol:"SOL",aprLabel:"APY",protocol:"Нативный"}},OM=[{chain:"ETH",label:"ETH · Lido"},{chain:"SOL",label:"SOL · нативный"}],MM={active:{label:"Активна",variant:"active"},activating:{label:"Активируется",variant:"muted"},deactivating:{label:"Деактивация",variant:"muted"},inactive:{label:"Завершена",variant:"ready"}},LM="_toggle_xc9o8_1",zM="_tab_xc9o8_6",DM="_active_xc9o8_18",kM="_inactive_xc9o8_23",To={toggle:LM,tab:zM,active:DM,inactive:kM};function BM({value:a,onChange:i}){return l.jsx("div",{className:To.toggle,children:OM.map(({chain:c,label:r})=>l.jsx("button",{className:`${To.tab} ${a===c?To.active:To.inactive}`,onClick:()=>i(c),children:r},c))})}const M_="https://app.cryptowallet.elcsa.ru",O2={ETH:18,SOL:9};async function M2(a,i=!0){const c=await zn(),r=It.get(),d=await fetch(`${M_}${a}`,{credentials:"include",headers:{"X-CSRF-Token":c,...r?{Authorization:`Bearer ${r}`}:{}}});if(d.status===401&&i)try{return await Yl(),M2(a,!1)}catch{throw It.clear(),new Error("Unauthorized")}const f=await d.json();if(!d.ok)throw f;return f}async function za(a,i,c=!0,r={}){const d=await zn(),f=It.get(),p=await fetch(`${M_}${a}`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json","X-CSRF-Token":d,...f?{Authorization:`Bearer ${f}`}:{},...r},body:JSON.stringify(i)});if(p.status===401&&c)try{return await Yl(),za(a,i,!1,r)}catch{throw It.clear(),new Error("Unauthorized")}const g=await p.json();if(!p.ok)throw g;return g}function Wo(){return{"Idempotency-Key":crypto.randomUUID()}}async function UM(a,i){const c=Ic(i,O2[a]);if(a==="ETH"){const p=(await za("/api/wallets/ETH/stake/quote",{amount:c})).data;return{chain:a,amountHuman:p.amountWeiHuman,feeHuman:p.appFeeWeiHuman,afterFeeHuman:p.stakeAmountWeiHuman,resultHuman:p.expectedStEthWeiHuman,aprPercent:p.aprPercent}}const d=(await za("/api/wallets/SOL/stake/quote",{amount:c})).data;return{chain:a,amountHuman:d.amountLamportsHuman,feeHuman:d.appFeeLamportsHuman,afterFeeHuman:d.stakeLamportsHuman,resultHuman:d.stakeLamportsHuman,aprPercent:d.estApyPercent,validator:d.validator}}async function $M(a,i){const c=Ic(i,O2[a]);await za(`/api/wallets/${a}/stake`,{amount:c},!0,Wo())}async function HM(){return(await M2("/api/wallets/ETH/stake/positions")).data}async function qM(){return(await M2("/api/wallets/SOL/stake/positions")).data}async function FM(a,i){const c=Ic(a,O2.ETH);return(await za("/api/wallets/ETH/unstake",{amount:c,mode:i},!0,Wo())).data}async function GM(a){return(await za("/api/wallets/SOL/unstake",{stakeAccount:a},!0,Wo())).data}async function VM(a){await za("/api/wallets/ETH/unstake/claim",{requestId:a},!0,Wo())}async function QM(a,i){return(await za(`/api/wallets/${a}/op-cost`,{token:a,amountHuman:i})).data}function Hc(a){if(a&&typeof a=="object"&&"error"in a){const i=a.error;if(typeof i=="string")return i}return a instanceof Error?a.message==="Unauthorized"?"Сессия истекла — войдите снова.":a.message:"Произошла ошибка. Попробуйте ещё раз."}function YM(a,i){const c=parseFloat(i);return kt({queryKey:["staking","quote",a,i],queryFn:()=>UM(a,i),enabled:Number.isFinite(c)&&c>0,staleTime:15e3,retry:!1})}function IM(a,i){const c=parseFloat(i);return kt({queryKey:["staking","op-cost",a,i],queryFn:()=>QM(a,i),enabled:Number.isFinite(c)&&c>0,staleTime:15e3,retry:!1})}function PM(a){return kt({queryKey:["staking","positions",a],queryFn:()=>a==="ETH"?HM():qM(),staleTime:3e4,retry:!1})}function XM(){const a=_n();return vt({mutationFn:({chain:i,amountHuman:c})=>$M(i,c),onSuccess:(i,{chain:c})=>a.invalidateQueries({queryKey:["staking","positions",c]})})}function ZM(){const a=_n();return vt({mutationFn:i=>i.chain==="ETH"?FM(i.amountHuman,i.mode):GM(i.stakeAccount),onSuccess:(i,c)=>a.invalidateQueries({queryKey:["staking","positions",c.chain]})})}function KM(){const a=_n();return vt({mutationFn:i=>VM(i),onSuccess:()=>a.invalidateQueries({queryKey:["staking","positions","ETH"]})})}const WM="_panel_jkxe7_1",JM="_row_jkxe7_13",eL="_label_jkxe7_26",tL="_value_jkxe7_31",nL="_success_jkxe7_39",lL="_highlight_jkxe7_43",Bc={panel:WM,row:JM,label:eL,value:tL,success:nL,highlight:lL};function aL({rows:a,loading:i}){return l.jsx("div",{className:Bc.panel,"data-loading":i?"true":void 0,children:a.map(({label:c,value:r,accent:d})=>l.jsxs("div",{className:Bc.row,children:[l.jsx("span",{className:Bc.label,children:c}),l.jsx("span",{className:`${Bc.value} ${d?Bc[d]:""}`,children:r})]},c))})}const sL="_wrapper_1s9eh_1",iL="_pillsOuter_1s9eh_7",cL="_card_1s9eh_12",rL="_top_1s9eh_19",oL="_tag_1s9eh_27",uL="_right_1s9eh_35",dL="_apr_1s9eh_41",fL="_pillsInner_1s9eh_52",hL="_pill_1s9eh_7",mL="_mid_1s9eh_75",pL="_input_1s9eh_83",_L="_token_1s9eh_99",gL="_bottom_1s9eh_109",vL="_balance_1s9eh_116",yL="_max_1s9eh_124",xL="_hint_1s9eh_139",bL="_stakeBtn_1s9eh_147",jL="_stakeBtnDisabled_1s9eh_151",Mt={wrapper:sL,pillsOuter:iL,card:cL,top:rL,tag:oL,right:uL,apr:dL,pillsInner:fL,pill:hL,mid:mL,input:pL,token:_L,bottom:gL,balance:vL,max:yL,hint:xL,stakeBtn:bL,stakeBtnDisabled:jL},SL=[25,50,100],fi="—";function NL(a){return`$${a.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function wL(a,i,c,r,d){var C,w;const f=a.symbol==="ETH"?"Получите stETH":"Делегируется валидатору",p=`Годовая доходность (${a.aprLabel})`,g=i?`${Ft(i.feeHuman,8)} ${a.symbol}`:fi,h=i?`${Ft(i.afterFeeHuman,8)} ${a.symbol}`:fi,m=i?a.symbol==="ETH"?`${Ft(i.resultHuman,8)}`:`${Ft(i.resultHuman,8)} SOL`:fi,v=(i==null?void 0:i.aprPercent)!=null?`${i.aprPercent}%`:fi,y=(w=(C=c==null?void 0:c.balance)==null?void 0:C.gas)==null?void 0:w.needReserve,b=y!=null&&parseFloat(String(y))||0,N=y!=null?`${Ft(String(y),8)} ${a.symbol}`:fi,S=c&&d>0&&r>0?NL((r+b)*d):fi;return[{label:"Комиссия сервиса (0.7%)",value:g},{label:"Сетевой сбор (газ)",value:N},{label:"Сумма после комиссии",value:h},{label:f,value:m,accent:"highlight"},{label:"Итого к списанию",value:S},{label:p,value:v,accent:"success"}]}function CL({chain:a,amount:i,onAmountChange:c,onStake:r,isStaking:d}){var W,B;const f=O_[a],{data:p}=Yc(a),g=(p==null?void 0:p.native.formatted)??"0",h=parseFloat(g)||0,m=Qc(i,400),{data:v,isFetching:y}=YM(a,m),{data:b,isError:N}=IM(a,m),S=parseFloat(i)||0,C=S>0&&S<=h,w=N?C:(b==null?void 0:b.sufficient)===!0,O=C&&(b==null?void 0:b.sufficient)===!1,H=O&&((B=(W=b==null?void 0:b.balance)==null?void 0:W.gas)==null?void 0:B.sufficient)===!1,L=C&&w&&!d,U=Y=>c((h*Y/100).toString()),I=l.jsx(l.Fragment,{children:SL.map(Y=>l.jsxs("button",{className:Mt.pill,onClick:()=>U(Y),children:[Y,"%"]},Y))});return l.jsxs("div",{className:Mt.wrapper,children:[l.jsx("div",{className:Mt.pillsOuter,children:I}),l.jsxs("div",{className:Mt.card,children:[l.jsxs("div",{className:Mt.top,children:[l.jsx("span",{className:Mt.tag,children:"Сумма стейка"}),l.jsxs("div",{className:Mt.right,children:[l.jsxs("span",{className:Mt.apr,children:[f.aprLabel," ",(v==null?void 0:v.aprPercent)!=null?`${v.aprPercent}%`:"—"]}),l.jsx("div",{className:Mt.pillsInner,children:I})]})]}),l.jsxs("div",{className:Mt.mid,children:[l.jsx("input",{className:Mt.input,type:"text",inputMode:"decimal",value:i,onChange:Y=>{const le=Y.target.value;(/^(\d+\.?\d*|\.?\d*)$/.test(le)||le==="")&&c(le)},placeholder:"0"}),l.jsxs("div",{className:Mt.token,children:[l.jsx(Fc,{letter:f.symbol[0],color:"var(--grad-center)",logo:it[f.symbol],size:28}),l.jsx("span",{children:f.symbol})]})]}),l.jsx("div",{className:Mt.bottom,children:l.jsxs("span",{className:Mt.balance,children:["Баланс: ",Ft(g,6)," ",f.symbol,l.jsx("button",{className:Mt.max,onClick:()=>U(100),children:"МАКС"})]})}),l.jsx(aL,{rows:wL(f,v,b,S,(p==null?void 0:p.native.usdPrice)??0),loading:y}),O&&l.jsx("p",{className:Mt.hint,children:H?`Недостаточно ${f.symbol} на сетевую комиссию (газ).`:"Недостаточно средств для стейкинга с учётом комиссии и газа."}),l.jsx("div",{className:`${Mt.stakeBtn} ${L?"":Mt.stakeBtnDisabled}`,children:l.jsx(tl,{label:d?"Отправка…":"Застейкать",type:"button",onClick:r,disabled:!L})})]})]})}const EL="_notice_up7yt_1",TL="_icon_up7yt_14",RL="_compact_up7yt_29",Ud={notice:EL,icon:TL,compact:RL};function L_({compact:a}){return l.jsxs("div",{className:`${Ud.notice} ${a?Ud.compact:""}`,children:[l.jsx("span",{className:Ud.icon,"aria-hidden":"true",children:"!"}),l.jsx("span",{children:"Вывод средств из стейкинга может занимать до 2 недель."})]})}const AL="_panel_1u8is_1",OL="_head_1u8is_11",ML="_title_1u8is_17",LL="_total_1u8is_25",zL="_totalUnit_1u8is_31",DL="_subhead_1u8is_36",kL="_list_1u8is_45",BL="_pos_1u8is_51",UL="_reqCard_1u8is_58",$L="_posTop_1u8is_62",HL="_coin_1u8is_70",qL="_amount_1u8is_79",FL="_meta_1u8is_86",GL="_badge_1u8is_93",VL="_badgeActive_1u8is_101",QL="_badgeReady_1u8is_106",YL="_badgeMuted_1u8is_111",IL="_btn_1u8is_116",PL="_btnPrimary_1u8is_139",XL="_note_1u8is_151",ZL="_empty_1u8is_158",ye={panel:AL,head:OL,title:ML,total:LL,totalUnit:zL,subhead:DL,list:kL,pos:BL,reqCard:UL,posTop:$L,coin:HL,amount:qL,meta:FL,badge:GL,badgeActive:VL,badgeReady:QL,badgeMuted:YL,btn:IL,btnPrimary:PL,note:XL,empty:ZL};function KL({chain:a,onUnstakeEth:i,onUnstakeSol:c,onClaim:r,unstakePending:d,claimPending:f}){const{data:p,isLoading:g,isError:h,error:m}=PM(a),v={active:ye.badgeActive,ready:ye.badgeReady,muted:ye.badgeMuted},y=(p==null?void 0:p.chain)==="ETH"?p.stEthBalanceWeiHuman:(p==null?void 0:p.chain)==="SOL"?p.positions.reduce((w,O)=>w+(parseFloat(O.lamportsHuman)||0),0).toString():"0",b=a==="ETH"?"stETH":"SOL",N=(p==null?void 0:p.chain)==="ETH"&&(parseFloat(p.stEthBalanceWeiHuman)||0)===0&&p.withdrawalRequests.length===0,S=(p==null?void 0:p.chain)==="SOL"&&p.positions.length===0,C=N||S;return l.jsxs("div",{className:ye.panel,children:[l.jsxs("div",{className:ye.head,children:[l.jsx("span",{className:ye.title,children:"Мои позиции"}),l.jsxs("div",{className:ye.total,children:[Ft(y,6)," ",l.jsx("span",{className:ye.totalUnit,children:b})]})]}),l.jsx(L_,{compact:!0}),g&&l.jsx(T3,{label:"Загрузка позиций"}),h&&l.jsx("div",{className:ye.empty,children:Hc(m)}),!g&&!h&&C&&l.jsx("div",{className:ye.empty,children:"У вас пока нет активных позиций стейкинга."}),(p==null?void 0:p.chain)==="ETH"&&!C&&l.jsxs(l.Fragment,{children:[(parseFloat(p.stEthBalanceWeiHuman)||0)>0&&l.jsx("div",{className:ye.list,children:l.jsxs("div",{className:ye.pos,children:[l.jsxs("div",{className:ye.posTop,children:[l.jsxs("span",{className:ye.coin,children:[l.jsx(Fc,{letter:"E",color:"var(--grad-center)",logo:it.ETH,size:24}),"stETH"]}),l.jsxs("span",{className:`${ye.badge} ${ye.badgeActive}`,children:["Активна",p.aprPercent!=null?` · APR ${p.aprPercent}%`:""]})]}),l.jsx("div",{className:ye.amount,children:Ft(p.stEthBalanceWeiHuman,8)}),l.jsx("button",{className:ye.btn,onClick:()=>i(p.stEthBalanceWeiHuman),disabled:d,children:"Вывести"})]})}),p.withdrawalRequests.length>0&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:ye.subhead,children:"Заявки на вывод"}),l.jsx("div",{className:ye.list,children:p.withdrawalRequests.map(w=>{const O=w.isFinalized&&!w.isClaimed;return l.jsxs("div",{className:`${ye.pos} ${O?ye.reqCard:""}`,children:[l.jsxs("div",{className:ye.posTop,children:[l.jsxs("span",{className:ye.coin,children:["Заявка #",w.requestId]}),l.jsx("span",{className:`${ye.badge} ${w.isClaimed?ye.badgeMuted:O?ye.badgeReady:ye.badgeMuted}`,children:w.isClaimed?"Выведено":O?"Готово к выводу":"В очереди"})]}),l.jsxs("div",{className:ye.amount,children:[Ft(w.amountStEthWeiHuman,8)," ETH"]}),O?l.jsx("button",{className:`${ye.btn} ${ye.btnPrimary}`,onClick:()=>r(w.requestId),disabled:f,children:"Забрать ETH"}):w.isClaimed?null:l.jsx("div",{className:ye.note,children:"Ожидает финализации в Lido"})]},w.requestId)})})]})]}),(p==null?void 0:p.chain)==="SOL"&&!C&&l.jsx("div",{className:ye.list,children:p.positions.map(w=>{const O=MM[w.state];return l.jsxs("div",{className:ye.pos,children:[l.jsxs("div",{className:ye.posTop,children:[l.jsxs("span",{className:ye.coin,children:[l.jsx(Fc,{letter:"S",color:"var(--grad-center)",logo:it.SOL,size:24}),"SOL"]}),l.jsx("span",{className:`${ye.badge} ${v[O.variant]}`,children:O.label})]}),l.jsx("div",{className:ye.amount,children:Ft(w.lamportsHuman,8)}),l.jsxs("div",{className:ye.meta,children:["Валидатор: ",w.validator," · ",w.stakeAccount]}),w.state==="active"&&l.jsx("button",{className:ye.btn,onClick:()=>c(w),disabled:d,children:"Вывести"}),w.state==="inactive"&&l.jsx("button",{className:`${ye.btn} ${ye.btnPrimary}`,onClick:()=>c(w),disabled:d,children:"Вывести средства"}),w.state==="deactivating"&&l.jsx("div",{className:ye.note,children:"Разблокируется через 12 эпохи"}),w.state==="activating"&&l.jsx("div",{className:ye.note,children:"Активируется…"})]},w.stakeAccount)})})]})}const WL="_overlay_1b35g_1",JL="_card_1b35g_13",ez="_header_1b35g_25",tz="_title_1b35g_31",nz="_closeBtn_1b35g_37",lz="_token_1b35g_52",az="_tokenLabel_1b35g_62",sz="_tokenAmount_1b35g_70",iz="_modes_1b35g_77",cz="_mode_1b35g_77",rz="_modeActive_1b35g_101",oz="_modeTitle_1b35g_106",uz="_modeDesc_1b35g_112",dz="_solNote_1b35g_118",fz="_confirmBtn_1b35g_125",Ct={overlay:WL,card:JL,header:ez,title:tz,closeBtn:nz,token:lz,tokenLabel:az,tokenAmount:sz,modes:iz,mode:cz,modeActive:rz,modeTitle:oz,modeDesc:uz,solNote:dz,confirmBtn:fz};function Pp({chain:a,symbol:i,amount:c,solState:r,pending:d,onConfirm:f,onClose:p}){const[g,h]=j.useState("swap");j.useEffect(()=>{function b(N){N.key==="Escape"&&p()}return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[p]);const m=a==="SOL"&&r==="inactive",v=d?"Отправка…":a==="ETH"?"Подтвердить вывод":m?"Вывести средства":"Запустить деактивацию",y=a==="SOL"||a==="ETH"&&g==="queue";return l.jsx("div",{className:Ct.overlay,onClick:p,children:l.jsxs("div",{className:Ct.card,onClick:b=>b.stopPropagation(),children:[l.jsxs("div",{className:Ct.header,children:[l.jsx("span",{className:Ct.title,children:"Вывод из стейкинга"}),l.jsx("button",{className:Ct.closeBtn,onClick:p,children:"×"})]}),l.jsxs("div",{className:Ct.token,children:[l.jsx("span",{className:Ct.tokenLabel,children:"Сумма"}),l.jsxs("span",{className:Ct.tokenAmount,children:[c," ",a==="ETH"?"stETH":i]})]}),a==="ETH"&&l.jsxs("div",{className:Ct.modes,children:[l.jsxs("button",{className:`${Ct.mode} ${g==="swap"?Ct.modeActive:""}`,onClick:()=>h("swap"),children:[l.jsx("span",{className:Ct.modeTitle,children:"Мгновенно"}),l.jsx("span",{className:Ct.modeDesc,children:"Своп stETH → ETH через Curve"})]}),l.jsxs("button",{className:`${Ct.mode} ${g==="queue"?Ct.modeActive:""}`,onClick:()=>h("queue"),children:[l.jsx("span",{className:Ct.modeTitle,children:"Очередь"}),l.jsx("span",{className:Ct.modeDesc,children:"Заявка в Lido Withdrawal Queue"})]})]}),a==="SOL"&&!m&&l.jsx("p",{className:Ct.solNote,children:"Средства разблокируются через 12 эпохи. После завершения вернитесь и подтвердите вывод."}),y&&l.jsx(L_,{}),l.jsx("button",{className:Ct.confirmBtn,onClick:()=>f(a==="ETH"?g:void 0),disabled:d,children:v})]})})}const hz="_widget_1unuq_1",mz="_grid_1unuq_7",Xp={widget:hz,grid:mz};function pz(){const[a,i]=j.useState("ETH"),[c,r]=j.useState(""),[d,f]=j.useState(null),[p,g]=j.useState(null),h=XM(),m=ZM(),v=KM();function y(C){i(C),r("")}function b(){h.mutate({chain:a,amountHuman:c},{onSuccess:()=>{g({status:"success",message:`Стейкинг ${c} ${O_[a].symbol} выполнен`}),r("")},onError:C=>g({status:"error",message:Hc(C)})})}function N(C){if((d==null?void 0:d.kind)==="eth"){const w=C??"swap";m.mutate({chain:"ETH",amountHuman:d.amount,mode:w},{onSuccess:()=>{f(null),g({status:"success",message:w==="queue"?"Заявка на вывод добавлена в очередь Lido":"Вывод stETH → ETH выполнен"})},onError:O=>g({status:"error",message:Hc(O)})})}else(d==null?void 0:d.kind)==="sol"&&m.mutate({chain:"SOL",stakeAccount:d.position.stakeAccount},{onSuccess:w=>{f(null);const O="action"in w&&w.action==="withdraw";g({status:"success",message:O?"Средства выведены на кошелёк":"Деактивация запущена — вывод через 12 эпохи"})},onError:w=>g({status:"error",message:Hc(w)})})}function S(C){v.mutate(C,{onSuccess:()=>g({status:"success",message:"ETH забран на кошелёк"}),onError:w=>g({status:"error",message:Hc(w)})})}return l.jsxs("div",{className:Xp.widget,children:[l.jsx(BM,{value:a,onChange:y}),l.jsxs("div",{className:Xp.grid,children:[l.jsx(CL,{chain:a,amount:c,onAmountChange:r,onStake:b,isStaking:h.isPending}),l.jsx(KL,{chain:a,onUnstakeEth:C=>f({kind:"eth",amount:C}),onUnstakeSol:C=>f({kind:"sol",position:C}),onClaim:S,unstakePending:m.isPending,claimPending:v.isPending})]}),(d==null?void 0:d.kind)==="eth"&&l.jsx(Pp,{chain:"ETH",symbol:"ETH",amount:d.amount,pending:m.isPending,onConfirm:N,onClose:()=>f(null)}),(d==null?void 0:d.kind)==="sol"&&l.jsx(Pp,{chain:"SOL",symbol:"SOL",amount:d.position.lamportsHuman,solState:d.position.state,pending:m.isPending,onConfirm:N,onClose:()=>f(null)}),p&&l.jsx(Ql,{status:p.status,message:p.message,onClose:()=>g(null)})]})}const _z="_page_1ljkt_1",gz="_head_1ljkt_8",vz="_title_1ljkt_12",yz="_subtitle_1ljkt_19",Ro={page:_z,head:gz,title:vz,subtitle:yz};function xz(){return l.jsxs("div",{className:Ro.page,children:[l.jsxs("header",{className:Ro.head,children:[l.jsx("h1",{className:Ro.title,children:"Стейкинг"}),l.jsx("p",{className:Ro.subtitle,children:"Зарабатывайте на хранении ETH и SOL. Комиссия сервиса — 0.7%."})]}),l.jsx(pz,{})]})}const bz="_page_uz94v_1",jz="_main_uz94v_8",Sz="_center_uz94v_13",Ao={page:bz,main:jz,center:Sz};function Zp({footer:a=!1,center:i=!1}){return l.jsxs("div",{className:Ao.page,children:[l.jsx(Zo,{}),l.jsx("main",{className:i?`${Ao.main} ${Ao.center}`:Ao.main,children:l.jsx(g2,{})}),a&&l.jsx(xs,{})]})}function Nz(){const{pathname:a}=Mn();return j.useEffect(()=>{window.scrollTo(0,0)},[a]),null}function wz(){const{isAuthenticated:a,isLoading:i}=X3(),c=Mn();return i?null:a?l.jsx(g2,{}):l.jsx(Qo,{to:oe.LOGIN,state:{from:c},replace:!0})}function Cz(){var d,f;const{isAuthenticated:a,isLoading:i}=X3(),r=((f=(d=Mn().state)==null?void 0:d.from)==null?void 0:f.pathname)??oe.WALLET;return i?null:a?l.jsx(Qo,{to:r,replace:!0}):l.jsx(g2,{})}function Ez(){return l.jsxs(Dx,{children:[l.jsx(Nz,{}),l.jsxs(dx,{children:[l.jsx(et,{path:oe.HOME,element:l.jsx(Dj,{})}),l.jsx(et,{path:oe.PUBLICHNAYA_OFERTA,element:l.jsx(OA,{})}),l.jsx(et,{path:oe.POLITIKA_PERSONALNYH_DANNYH,element:l.jsx(QA,{})}),l.jsx(et,{path:oe.POLITIKA_COOKIE,element:l.jsx(nO,{})}),l.jsx(et,{path:oe.SOGLASIE_PERSONALNYH_DANNYH,element:l.jsx(mO,{})}),l.jsx(et,{path:oe.REESTR_PD_RKN,element:l.jsx(CO,{})}),l.jsx(et,{path:oe.REGISTER_TEST,element:l.jsx(gT,{})}),l.jsx(et,{path:oe.CONVERTER_TEST,element:l.jsx(LT,{})}),l.jsxs(et,{element:l.jsx(Cz,{}),children:[l.jsx(et,{path:oe.LOGIN,element:l.jsx(yE,{})}),l.jsx(et,{path:oe.REGISTER,element:l.jsx(XE,{})}),l.jsx(et,{path:oe.RESTORE_PASSWORD,element:l.jsx(bA,{})})]}),l.jsxs(et,{element:l.jsx(wz,{}),children:[l.jsx(et,{element:l.jsx(Zp,{footer:!0,center:!0}),children:l.jsx(et,{path:oe.CONVERTER,element:l.jsx(vR,{})})}),l.jsxs(et,{element:l.jsx(Zp,{footer:!0}),children:[l.jsx(et,{path:oe.SWAP,element:l.jsx(xw,{})}),l.jsx(et,{path:oe.BRIDGE,element:l.jsx(Xw,{})}),l.jsx(et,{path:oe.TRANSACTIONS,element:l.jsx(AM,{})}),l.jsx(et,{path:oe.STAKING,element:l.jsx(xz,{})})]}),l.jsx(et,{path:oe.WALLET,element:l.jsx(bp,{})}),l.jsx(et,{path:oe.WALLET_CHAIN,element:l.jsx(bp,{})}),l.jsx(et,{path:oe.PROFILE,element:l.jsx(nE,{})}),l.jsx(et,{path:oe.SEED_PHRASE,element:l.jsx(qR,{})}),l.jsx(et,{path:oe.KYC,element:l.jsx(rA,{})})]})]})]})}const Tz=new Jb({defaultOptions:{queries:{retry:!1}}});function Rz({children:a}){return l.jsx(e6,{client:Tz,children:a})}function Az(){return l.jsx(Rz,{children:l.jsx(Ez,{})})}dy.createRoot(document.getElementById("root")).render(l.jsx(j.StrictMode,{children:l.jsx(Az,{})}));