(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))u(f);new MutationObserver(f=>{for(const p of f)if(p.type==="childList")for(const h of p.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&u(h)}).observe(document,{childList:!0,subtree:!0});function o(f){const p={};return f.integrity&&(p.integrity=f.integrity),f.referrerPolicy&&(p.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?p.credentials="include":f.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function u(f){if(f.ep)return;f.ep=!0;const p=o(f);fetch(f.href,p)}})();function cm(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Mo={exports:{}},bi={};/**
 * @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 bh;function Tg(){if(bh)return bi;bh=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function o(u,f,p){var h=null;if(p!==void 0&&(h=""+p),f.key!==void 0&&(h=""+f.key),"key"in f){p={};for(var y in f)y!=="key"&&(p[y]=f[y])}else p=f;return f=p.ref,{$$typeof:n,type:u,key:h,ref:f!==void 0?f:null,props:p}}return bi.Fragment=s,bi.jsx=o,bi.jsxs=o,bi}var Sh;function _g(){return Sh||(Sh=1,Mo.exports=Tg()),Mo.exports}var c=_g(),Uo={exports:{}},de={};/**
 * @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 Eh;function Og(){if(Eh)return de;Eh=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),O=Symbol.iterator;function B(E){return E===null||typeof E!="object"?null:(E=O&&E[O]||E["@@iterator"],typeof E=="function"?E:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,w={};function R(E,U,K){this.props=E,this.context=U,this.refs=w,this.updater=K||G}R.prototype.isReactComponent={},R.prototype.setState=function(E,U){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,U,"setState")},R.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Y(){}Y.prototype=R.prototype;function X(E,U,K){this.props=E,this.context=U,this.refs=w,this.updater=K||G}var $=X.prototype=new Y;$.constructor=X,k($,R.prototype),$.isPureReactComponent=!0;var F=Array.isArray;function te(){}var P={H:null,A:null,T:null,S:null},xe=Object.prototype.hasOwnProperty;function Ee(E,U,K){var W=K.ref;return{$$typeof:n,type:E,key:U,ref:W!==void 0?W:null,props:K}}function Te(E,U){return Ee(E.type,U,E.props)}function ce(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function Ae(E){var U={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(K){return U[K]})}var Ne=/\/+/g;function ze(E,U){return typeof E=="object"&&E!==null&&E.key!=null?Ae(""+E.key):U.toString(36)}function fe(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(te,te):(E.status="pending",E.then(function(U){E.status==="pending"&&(E.status="fulfilled",E.value=U)},function(U){E.status==="pending"&&(E.status="rejected",E.reason=U)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function M(E,U,K,W,L){var Z=typeof E;(Z==="undefined"||Z==="boolean")&&(E=null);var le=!1;if(E===null)le=!0;else switch(Z){case"bigint":case"string":case"number":le=!0;break;case"object":switch(E.$$typeof){case n:case s:le=!0;break;case v:return le=E._init,M(le(E._payload),U,K,W,L)}}if(le)return L=L(E),le=W===""?"."+ze(E,0):W,F(L)?(K="",le!=null&&(K=le.replace(Ne,"$&/")+"/"),M(L,U,K,"",function(Ve){return Ve})):L!=null&&(ce(L)&&(L=Te(L,K+(L.key==null||E&&E.key===L.key?"":(""+L.key).replace(Ne,"$&/")+"/")+le)),U.push(L)),1;le=0;var pe=W===""?".":W+":";if(F(E))for(var he=0;he<E.length;he++)W=E[he],Z=pe+ze(W,he),le+=M(W,U,K,Z,L);else if(he=B(E),typeof he=="function")for(E=he.call(E),he=0;!(W=E.next()).done;)W=W.value,Z=pe+ze(W,he++),le+=M(W,U,K,Z,L);else if(Z==="object"){if(typeof E.then=="function")return M(fe(E),U,K,W,L);throw U=String(E),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return le}function J(E,U,K){if(E==null)return E;var W=[],L=0;return M(E,W,"","",function(Z){return U.call(K,Z,L++)}),W}function ie(E){if(E._status===-1){var U=E._result;U=U(),U.then(function(K){(E._status===0||E._status===-1)&&(E._status=1,E._result=K)},function(K){(E._status===0||E._status===-1)&&(E._status=2,E._result=K)}),E._status===-1&&(E._status=0,E._result=U)}if(E._status===1)return E._result.default;throw E._result}var ae=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=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(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},se={map:J,forEach:function(E,U,K){J(E,function(){U.apply(this,arguments)},K)},count:function(E){var U=0;return J(E,function(){U++}),U},toArray:function(E){return J(E,function(U){return U})||[]},only:function(E){if(!ce(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return de.Activity=b,de.Children=se,de.Component=R,de.Fragment=o,de.Profiler=f,de.PureComponent=X,de.StrictMode=u,de.Suspense=x,de.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,de.__COMPILER_RUNTIME={__proto__:null,c:function(E){return P.H.useMemoCache(E)}},de.cache=function(E){return function(){return E.apply(null,arguments)}},de.cacheSignal=function(){return null},de.cloneElement=function(E,U,K){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var W=k({},E.props),L=E.key;if(U!=null)for(Z in U.key!==void 0&&(L=""+U.key),U)!xe.call(U,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&U.ref===void 0||(W[Z]=U[Z]);var Z=arguments.length-2;if(Z===1)W.children=K;else if(1<Z){for(var le=Array(Z),pe=0;pe<Z;pe++)le[pe]=arguments[pe+2];W.children=le}return Ee(E.type,L,W)},de.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:p,_context:E},E},de.createElement=function(E,U,K){var W,L={},Z=null;if(U!=null)for(W in U.key!==void 0&&(Z=""+U.key),U)xe.call(U,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(L[W]=U[W]);var le=arguments.length-2;if(le===1)L.children=K;else if(1<le){for(var pe=Array(le),he=0;he<le;he++)pe[he]=arguments[he+2];L.children=pe}if(E&&E.defaultProps)for(W in le=E.defaultProps,le)L[W]===void 0&&(L[W]=le[W]);return Ee(E,Z,L)},de.createRef=function(){return{current:null}},de.forwardRef=function(E){return{$$typeof:y,render:E}},de.isValidElement=ce,de.lazy=function(E){return{$$typeof:v,_payload:{_status:-1,_result:E},_init:ie}},de.memo=function(E,U){return{$$typeof:g,type:E,compare:U===void 0?null:U}},de.startTransition=function(E){var U=P.T,K={};P.T=K;try{var W=E(),L=P.S;L!==null&&L(K,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(te,ae)}catch(Z){ae(Z)}finally{U!==null&&K.types!==null&&(U.types=K.types),P.T=U}},de.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},de.use=function(E){return P.H.use(E)},de.useActionState=function(E,U,K){return P.H.useActionState(E,U,K)},de.useCallback=function(E,U){return P.H.useCallback(E,U)},de.useContext=function(E){return P.H.useContext(E)},de.useDebugValue=function(){},de.useDeferredValue=function(E,U){return P.H.useDeferredValue(E,U)},de.useEffect=function(E,U){return P.H.useEffect(E,U)},de.useEffectEvent=function(E){return P.H.useEffectEvent(E)},de.useId=function(){return P.H.useId()},de.useImperativeHandle=function(E,U,K){return P.H.useImperativeHandle(E,U,K)},de.useInsertionEffect=function(E,U){return P.H.useInsertionEffect(E,U)},de.useLayoutEffect=function(E,U){return P.H.useLayoutEffect(E,U)},de.useMemo=function(E,U){return P.H.useMemo(E,U)},de.useOptimistic=function(E,U){return P.H.useOptimistic(E,U)},de.useReducer=function(E,U,K){return P.H.useReducer(E,U,K)},de.useRef=function(E){return P.H.useRef(E)},de.useState=function(E){return P.H.useState(E)},de.useSyncExternalStore=function(E,U,K){return P.H.useSyncExternalStore(E,U,K)},de.useTransition=function(){return P.H.useTransition()},de.version="19.2.7",de}var jh;function rc(){return jh||(jh=1,Uo.exports=Og()),Uo.exports}var j=rc();const Ng=cm(j);var Bo={exports:{}},Si={},Lo={exports:{}},Ho={};/**
 * @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 Rh;function wg(){return Rh||(Rh=1,(function(n){function s(M,J){var ie=M.length;M.push(J);e:for(;0<ie;){var ae=ie-1>>>1,se=M[ae];if(0<f(se,J))M[ae]=J,M[ie]=se,ie=ae;else break e}}function o(M){return M.length===0?null:M[0]}function u(M){if(M.length===0)return null;var J=M[0],ie=M.pop();if(ie!==J){M[0]=ie;e:for(var ae=0,se=M.length,E=se>>>1;ae<E;){var U=2*(ae+1)-1,K=M[U],W=U+1,L=M[W];if(0>f(K,ie))W<se&&0>f(L,K)?(M[ae]=L,M[W]=ie,ae=W):(M[ae]=K,M[U]=ie,ae=U);else if(W<se&&0>f(L,ie))M[ae]=L,M[W]=ie,ae=W;else break e}}return J}function f(M,J){var ie=M.sortIndex-J.sortIndex;return ie!==0?ie:M.id-J.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var p=performance;n.unstable_now=function(){return p.now()}}else{var h=Date,y=h.now();n.unstable_now=function(){return h.now()-y}}var x=[],g=[],v=1,b=null,O=3,B=!1,G=!1,k=!1,w=!1,R=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function $(M){for(var J=o(g);J!==null;){if(J.callback===null)u(g);else if(J.startTime<=M)u(g),J.sortIndex=J.expirationTime,s(x,J);else break;J=o(g)}}function F(M){if(k=!1,$(M),!G)if(o(x)!==null)G=!0,te||(te=!0,Ae());else{var J=o(g);J!==null&&fe(F,J.startTime-M)}}var te=!1,P=-1,xe=5,Ee=-1;function Te(){return w?!0:!(n.unstable_now()-Ee<xe)}function ce(){if(w=!1,te){var M=n.unstable_now();Ee=M;var J=!0;try{e:{G=!1,k&&(k=!1,Y(P),P=-1),B=!0;var ie=O;try{t:{for($(M),b=o(x);b!==null&&!(b.expirationTime>M&&Te());){var ae=b.callback;if(typeof ae=="function"){b.callback=null,O=b.priorityLevel;var se=ae(b.expirationTime<=M);if(M=n.unstable_now(),typeof se=="function"){b.callback=se,$(M),J=!0;break t}b===o(x)&&u(x),$(M)}else u(x);b=o(x)}if(b!==null)J=!0;else{var E=o(g);E!==null&&fe(F,E.startTime-M),J=!1}}break e}finally{b=null,O=ie,B=!1}J=void 0}}finally{J?Ae():te=!1}}}var Ae;if(typeof X=="function")Ae=function(){X(ce)};else if(typeof MessageChannel<"u"){var Ne=new MessageChannel,ze=Ne.port2;Ne.port1.onmessage=ce,Ae=function(){ze.postMessage(null)}}else Ae=function(){R(ce,0)};function fe(M,J){P=R(function(){M(n.unstable_now())},J)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(M){M.callback=null},n.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xe=0<M?Math.floor(1e3/M):5},n.unstable_getCurrentPriorityLevel=function(){return O},n.unstable_next=function(M){switch(O){case 1:case 2:case 3:var J=3;break;default:J=O}var ie=O;O=J;try{return M()}finally{O=ie}},n.unstable_requestPaint=function(){w=!0},n.unstable_runWithPriority=function(M,J){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var ie=O;O=M;try{return J()}finally{O=ie}},n.unstable_scheduleCallback=function(M,J,ie){var ae=n.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?ae+ie:ae):ie=ae,M){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=ie+se,M={id:v++,callback:J,priorityLevel:M,startTime:ie,expirationTime:se,sortIndex:-1},ie>ae?(M.sortIndex=ie,s(g,M),o(x)===null&&M===o(g)&&(k?(Y(P),P=-1):k=!0,fe(F,ie-ae))):(M.sortIndex=se,s(x,M),G||B||(G=!0,te||(te=!0,Ae()))),M},n.unstable_shouldYield=Te,n.unstable_wrapCallback=function(M){var J=O;return function(){var ie=O;O=J;try{return M.apply(this,arguments)}finally{O=ie}}}})(Ho)),Ho}var Ch;function Dg(){return Ch||(Ch=1,Lo.exports=wg()),Lo.exports}var ko={exports:{}},vt={};/**
 * @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 Ah;function Mg(){if(Ah)return vt;Ah=1;var n=rc();function s(x){var g="https://react.dev/errors/"+x;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)g+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+x+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var u={d:{f:o,r:function(){throw Error(s(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},f=Symbol.for("react.portal");function p(x,g,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:b==null?null:""+b,children:x,containerInfo:g,implementation:v}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(x,g){if(x==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,vt.createPortal=function(x,g){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(s(299));return p(x,g,null,v)},vt.flushSync=function(x){var g=h.T,v=u.p;try{if(h.T=null,u.p=2,x)return x()}finally{h.T=g,u.p=v,u.d.f()}},vt.preconnect=function(x,g){typeof x=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,u.d.C(x,g))},vt.prefetchDNS=function(x){typeof x=="string"&&u.d.D(x)},vt.preinit=function(x,g){if(typeof x=="string"&&g&&typeof g.as=="string"){var v=g.as,b=y(v,g.crossOrigin),O=typeof g.integrity=="string"?g.integrity:void 0,B=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;v==="style"?u.d.S(x,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:O,fetchPriority:B}):v==="script"&&u.d.X(x,{crossOrigin:b,integrity:O,fetchPriority:B,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},vt.preinitModule=function(x,g){if(typeof x=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var v=y(g.as,g.crossOrigin);u.d.M(x,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&u.d.M(x)},vt.preload=function(x,g){if(typeof x=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var v=g.as,b=y(v,g.crossOrigin);u.d.L(x,v,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},vt.preloadModule=function(x,g){if(typeof x=="string")if(g){var v=y(g.as,g.crossOrigin);u.d.m(x,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else u.d.m(x)},vt.requestFormReset=function(x){u.d.r(x)},vt.unstable_batchedUpdates=function(x,g){return x(g)},vt.useFormState=function(x,g,v){return h.H.useFormState(x,g,v)},vt.useFormStatus=function(){return h.H.useHostTransitionStatus()},vt.version="19.2.7",vt}var zh;function Ug(){if(zh)return ko.exports;zh=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),ko.exports=Mg(),ko.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 Th;function Bg(){if(Th)return Si;Th=1;var n=Dg(),s=rc(),o=Ug();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function p(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function h(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 y(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 x(e){if(p(e)!==e)throw Error(u(188))}function g(e){var t=e.alternate;if(!t){if(t=p(e),t===null)throw Error(u(188));return t!==e?null:e}for(var l=e,a=t;;){var i=l.return;if(i===null)break;var r=i.alternate;if(r===null){if(a=i.return,a!==null){l=a;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===l)return x(i),e;if(r===a)return x(i),t;r=r.sibling}throw Error(u(188))}if(l.return!==a.return)l=i,a=r;else{for(var d=!1,m=i.child;m;){if(m===l){d=!0,l=i,a=r;break}if(m===a){d=!0,a=i,l=r;break}m=m.sibling}if(!d){for(m=r.child;m;){if(m===l){d=!0,l=r,a=i;break}if(m===a){d=!0,a=r,l=i;break}m=m.sibling}if(!d)throw Error(u(189))}}if(l.alternate!==a)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?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 b=Object.assign,O=Symbol.for("react.element"),B=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),X=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),Ee=Symbol.for("react.activity"),Te=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function Ae(e){return e===null||typeof e!="object"?null:(e=ce&&e[ce]||e["@@iterator"],typeof e=="function"?e:null)}var Ne=Symbol.for("react.client.reference");function ze(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case R:return"Profiler";case w:return"StrictMode";case F:return"Suspense";case te:return"SuspenseList";case Ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case G:return"Portal";case X:return e.displayName||"Context";case Y:return(e._context.displayName||"Context")+".Consumer";case $:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return t=e.displayName||null,t!==null?t:ze(e.type)||"Memo";case xe:t=e._payload,e=e._init;try{return ze(e(t))}catch{}}return null}var fe=Array.isArray,M=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},ae=[],se=-1;function E(e){return{current:e}}function U(e){0>se||(e.current=ae[se],ae[se]=null,se--)}function K(e,t){se++,ae[se]=e.current,e.current=t}var W=E(null),L=E(null),Z=E(null),le=E(null);function pe(e,t){switch(K(Z,t),K(L,e),K(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Xp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Xp(t),e=Gp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(W),K(W,e)}function he(){U(W),U(L),U(Z)}function Ve(e){e.memoizedState!==null&&K(le,e);var t=W.current,l=Gp(t,e.type);t!==l&&(K(L,e),K(W,l))}function Fe(e){L.current===e&&(U(W),U(L)),le.current===e&&(U(le),yi._currentValue=ie)}var it,Xt;function ut(e){if(it===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);it=t&&t[1]||"",Xt=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+it+e+Xt}var Et=!1;function oe(e,t){if(!e||Et)return"";Et=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(D){var N=D}Reflect.construct(e,[],V)}else{try{V.call()}catch(D){N=D}e.call(V.prototype)}}else{try{throw Error()}catch(D){N=D}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(D){if(D&&N&&typeof D.stack=="string")return[D.stack,N.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),d=r[0],m=r[1];if(d&&m){var S=d.split(`
`),_=m.split(`
`);for(i=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;i<_.length&&!_[i].includes("DetermineComponentFrameRoot");)i++;if(a===S.length||i===_.length)for(a=S.length-1,i=_.length-1;1<=a&&0<=i&&S[a]!==_[i];)i--;for(;1<=a&&0<=i;a--,i--)if(S[a]!==_[i]){if(a!==1||i!==1)do if(a--,i--,0>i||S[a]!==_[i]){var H=`
`+S[a].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=a&&0<=i);break}}}finally{Et=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?ut(l):""}function ot(e,t){switch(e.tag){case 26:case 27:case 5:return ut(e.type);case 16:return ut("Lazy");case 13:return e.child!==t&&t!==null?ut("Suspense Fallback"):ut("Suspense");case 19:return ut("SuspenseList");case 0:case 15:return oe(e.type,!1);case 11:return oe(e.type.render,!1);case 1:return oe(e.type,!0);case 31:return ut("Activity");default:return""}}function Mt(e){try{var t="",l=null;do t+=ot(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Ct=Object.prototype.hasOwnProperty,ll=n.unstable_scheduleCallback,ca=n.unstable_cancelCallback,pl=n.unstable_shouldYield,Di=n.unstable_requestPaint,jt=n.unstable_now,vs=n.unstable_getCurrentPriorityLevel,Q=n.unstable_ImmediatePriority,ye=n.unstable_UserBlockingPriority,Ue=n.unstable_NormalPriority,Xe=n.unstable_LowPriority,at=n.unstable_IdlePriority,vl=n.log,al=n.unstable_setDisableYieldValue,nl=null,ct=null;function Ie(e){if(typeof vl=="function"&&al(e),ct&&typeof ct.setStrictMode=="function")try{ct.setStrictMode(nl,e)}catch{}}var xt=Math.clz32?Math.clz32:h0,bs=Math.log,p0=Math.LN2;function h0(e){return e>>>=0,e===0?32:31-(bs(e)/p0|0)|0}var Mi=256,Ui=262144,Bi=4194304;function fa(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 Li(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,r=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var m=a&134217727;return m!==0?(a=m&~r,a!==0?i=fa(a):(d&=m,d!==0?i=fa(d):l||(l=m&~e,l!==0&&(i=fa(l))))):(m=a&~r,m!==0?i=fa(m):d!==0?i=fa(d):l||(l=a&~e,l!==0&&(i=fa(l)))),i===0?0:t!==0&&t!==i&&(t&r)===0&&(r=i&-i,l=t&-t,r>=l||r===32&&(l&4194048)!==0)?t:i}function _n(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function m0(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 jc(){var e=Bi;return Bi<<=1,(Bi&62914560)===0&&(Bi=4194304),e}function Ss(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function On(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function y0(e,t,l,a,i,r){var d=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var m=e.entanglements,S=e.expirationTimes,_=e.hiddenUpdates;for(l=d&~l;0<l;){var H=31-xt(l),V=1<<H;m[H]=0,S[H]=-1;var N=_[H];if(N!==null)for(_[H]=null,H=0;H<N.length;H++){var D=N[H];D!==null&&(D.lane&=-536870913)}l&=~V}a!==0&&Rc(e,a,0),r!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=r&~(d&~t))}function Rc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-xt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Cc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-xt(l),i=1<<a;i&t|e[a]&t&&(e[a]|=t),l&=~i}}function Ac(e,t){var l=t&-t;return l=(l&42)!==0?1:Es(l),(l&(e.suspendedLanes|t))!==0?0:l}function Es(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 js(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function zc(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:ph(e.type))}function Tc(e,t){var l=J.p;try{return J.p=e,t()}finally{J.p=l}}var kl=Math.random().toString(36).slice(2),ft="__reactFiber$"+kl,At="__reactProps$"+kl,Ua="__reactContainer$"+kl,Rs="__reactEvents$"+kl,g0="__reactListeners$"+kl,x0="__reactHandles$"+kl,_c="__reactResources$"+kl,Nn="__reactMarker$"+kl;function Cs(e){delete e[ft],delete e[At],delete e[Rs],delete e[g0],delete e[x0]}function Ba(e){var t=e[ft];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Ua]||l[ft]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=$p(e);e!==null;){if(l=e[ft])return l;e=$p(e)}return t}e=l,l=e.parentNode}return null}function La(e){if(e=e[ft]||e[Ua]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function wn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Ha(e){var t=e[_c];return t||(t=e[_c]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[Nn]=!0}var Oc=new Set,Nc={};function da(e,t){ka(e,t),ka(e+"Capture",t)}function ka(e,t){for(Nc[e]=t,e=0;e<t.length;e++)Oc.add(t[e])}var v0=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]*$"),wc={},Dc={};function b0(e){return Ct.call(Dc,e)?!0:Ct.call(wc,e)?!1:v0.test(e)?Dc[e]=!0:(wc[e]=!0,!1)}function Hi(e,t,l){if(b0(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function ki(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function bl(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Gt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function S0(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,r=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(d){l=""+d,r.call(this,d)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(d){l=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function As(e){if(!e._valueTracker){var t=Mc(e)?"checked":"value";e._valueTracker=S0(e,t,""+e[t])}}function Uc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Mc(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function qi(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 E0=/[\n"\\]/g;function Qt(e){return e.replace(E0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function zs(e,t,l,a,i,r,d,m){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Gt(t)):e.value!==""+Gt(t)&&(e.value=""+Gt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Ts(e,d,Gt(t)):l!=null?Ts(e,d,Gt(l)):a!=null&&e.removeAttribute("value"),i==null&&r!=null&&(e.defaultChecked=!!r),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+Gt(m):e.removeAttribute("name")}function Bc(e,t,l,a,i,r,d,m){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||l!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){As(e);return}l=l!=null?""+Gt(l):"",t=t!=null?""+Gt(t):l,m||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=m?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),As(e)}function Ts(e,t,l){t==="number"&&qi(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function qa(e,t,l,a){if(e=e.options,t){t={};for(var i=0;i<l.length;i++)t["$"+l[i]]=!0;for(l=0;l<e.length;l++)i=t.hasOwnProperty("$"+e[l].value),e[l].selected!==i&&(e[l].selected=i),i&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Gt(l),t=null,i=0;i<e.length;i++){if(e[i].value===l){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Lc(e,t,l){if(t!=null&&(t=""+Gt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Gt(l):""}function Hc(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(u(92));if(fe(a)){if(1<a.length)throw Error(u(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Gt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),As(e)}function Ya(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var j0=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 kc(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||j0.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function qc(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&l[i]!==a&&kc(e,i,a)}else for(var r in t)t.hasOwnProperty(r)&&kc(e,r,t[r])}function _s(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 R0=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"]]),C0=/^[\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 Yi(e){return C0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Sl(){}var Os=null;function Ns(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Va=null,Xa=null;function Yc(e){var t=La(e);if(t&&(e=t.stateNode)){var l=e[At]||null;e:switch(e=t.stateNode,t.type){case"input":if(zs(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Qt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var i=a[At]||null;if(!i)throw Error(u(90));zs(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Uc(a)}break e;case"textarea":Lc(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&qa(e,!!l.multiple,t,!1)}}}var ws=!1;function Vc(e,t,l){if(ws)return e(t,l);ws=!0;try{var a=e(t);return a}finally{if(ws=!1,(Va!==null||Xa!==null)&&(Tr(),Va&&(t=Va,e=Xa,Xa=Va=null,Yc(t),e)))for(t=0;t<e.length;t++)Yc(e[t])}}function Dn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[At]||null;if(a===null)return null;l=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(u(231,t,typeof l));return l}var El=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ds=!1;if(El)try{var Mn={};Object.defineProperty(Mn,"passive",{get:function(){Ds=!0}}),window.addEventListener("test",Mn,Mn),window.removeEventListener("test",Mn,Mn)}catch{Ds=!1}var ql=null,Ms=null,Vi=null;function Xc(){if(Vi)return Vi;var e,t=Ms,l=t.length,a,i="value"in ql?ql.value:ql.textContent,r=i.length;for(e=0;e<l&&t[e]===i[e];e++);var d=l-e;for(a=1;a<=d&&t[l-a]===i[r-a];a++);return Vi=i.slice(e,1<a?1-a:void 0)}function Xi(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 Gi(){return!0}function Gc(){return!1}function zt(e){function t(l,a,i,r,d){this._reactName=l,this._targetInst=i,this.type=a,this.nativeEvent=r,this.target=d,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(l=e[m],this[m]=l?l(r):r[m]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Gi:Gc,this.isPropagationStopped=Gc,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Gi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Gi)},persist:function(){},isPersistent:Gi}),t}var pa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qi=zt(pa),Un=b({},pa,{view:0,detail:0}),A0=zt(Un),Us,Bs,Bn,Fi=b({},Un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hs,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!==Bn&&(Bn&&e.type==="mousemove"?(Us=e.screenX-Bn.screenX,Bs=e.screenY-Bn.screenY):Bs=Us=0,Bn=e),Us)},movementY:function(e){return"movementY"in e?e.movementY:Bs}}),Qc=zt(Fi),z0=b({},Fi,{dataTransfer:0}),T0=zt(z0),_0=b({},Un,{relatedTarget:0}),Ls=zt(_0),O0=b({},pa,{animationName:0,elapsedTime:0,pseudoElement:0}),N0=zt(O0),w0=b({},pa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),D0=zt(w0),M0=b({},pa,{data:0}),Fc=zt(M0),U0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},B0={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"},L0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function H0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=L0[e])?!!t[e]:!1}function Hs(){return H0}var k0=b({},Un,{key:function(e){if(e.key){var t=U0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?B0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hs,charCode:function(e){return e.type==="keypress"?Xi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),q0=zt(k0),Y0=b({},Fi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zc=zt(Y0),V0=b({},Un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hs}),X0=zt(V0),G0=b({},pa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Q0=zt(G0),F0=b({},Fi,{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}),Z0=zt(F0),K0=b({},pa,{newState:0,oldState:0}),J0=zt(K0),W0=[9,13,27,32],ks=El&&"CompositionEvent"in window,Ln=null;El&&"documentMode"in document&&(Ln=document.documentMode);var $0=El&&"TextEvent"in window&&!Ln,Kc=El&&(!ks||Ln&&8<Ln&&11>=Ln),Jc=" ",Wc=!1;function $c(e,t){switch(e){case"keyup":return W0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ic(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ga=!1;function I0(e,t){switch(e){case"compositionend":return Ic(t);case"keypress":return t.which!==32?null:(Wc=!0,Jc);case"textInput":return e=t.data,e===Jc&&Wc?null:e;default:return null}}function P0(e,t){if(Ga)return e==="compositionend"||!ks&&$c(e,t)?(e=Xc(),Vi=Ms=ql=null,Ga=!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 Kc&&t.locale!=="ko"?null:t.data;default:return null}}var ey={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 Pc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ey[e.type]:t==="textarea"}function ef(e,t,l,a){Va?Xa?Xa.push(a):Xa=[a]:Va=a,t=Ur(t,"onChange"),0<t.length&&(l=new Qi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Hn=null,kn=null;function ty(e){Lp(e,0)}function Zi(e){var t=wn(e);if(Uc(t))return e}function tf(e,t){if(e==="change")return t}var lf=!1;if(El){var qs;if(El){var Ys="oninput"in document;if(!Ys){var af=document.createElement("div");af.setAttribute("oninput","return;"),Ys=typeof af.oninput=="function"}qs=Ys}else qs=!1;lf=qs&&(!document.documentMode||9<document.documentMode)}function nf(){Hn&&(Hn.detachEvent("onpropertychange",rf),kn=Hn=null)}function rf(e){if(e.propertyName==="value"&&Zi(kn)){var t=[];ef(t,kn,e,Ns(e)),Vc(ty,t)}}function ly(e,t,l){e==="focusin"?(nf(),Hn=t,kn=l,Hn.attachEvent("onpropertychange",rf)):e==="focusout"&&nf()}function ay(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zi(kn)}function ny(e,t){if(e==="click")return Zi(t)}function iy(e,t){if(e==="input"||e==="change")return Zi(t)}function ry(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ut=typeof Object.is=="function"?Object.is:ry;function qn(e,t){if(Ut(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var i=l[a];if(!Ct.call(t,i)||!Ut(e[i],t[i]))return!1}return!0}function sf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uf(e,t){var l=sf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=sf(l)}}function of(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?of(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function cf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=qi(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=qi(e.document)}return t}function Vs(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 sy=El&&"documentMode"in document&&11>=document.documentMode,Qa=null,Xs=null,Yn=null,Gs=!1;function ff(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Gs||Qa==null||Qa!==qi(a)||(a=Qa,"selectionStart"in a&&Vs(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Yn&&qn(Yn,a)||(Yn=a,a=Ur(Xs,"onSelect"),0<a.length&&(t=new Qi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Qa)))}function ha(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Fa={animationend:ha("Animation","AnimationEnd"),animationiteration:ha("Animation","AnimationIteration"),animationstart:ha("Animation","AnimationStart"),transitionrun:ha("Transition","TransitionRun"),transitionstart:ha("Transition","TransitionStart"),transitioncancel:ha("Transition","TransitionCancel"),transitionend:ha("Transition","TransitionEnd")},Qs={},df={};El&&(df=document.createElement("div").style,"AnimationEvent"in window||(delete Fa.animationend.animation,delete Fa.animationiteration.animation,delete Fa.animationstart.animation),"TransitionEvent"in window||delete Fa.transitionend.transition);function ma(e){if(Qs[e])return Qs[e];if(!Fa[e])return e;var t=Fa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in df)return Qs[e]=t[l];return e}var pf=ma("animationend"),hf=ma("animationiteration"),mf=ma("animationstart"),uy=ma("transitionrun"),oy=ma("transitionstart"),cy=ma("transitioncancel"),yf=ma("transitionend"),gf=new Map,Fs="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(" ");Fs.push("scrollEnd");function il(e,t){gf.set(e,t),da(t,[e])}var Ki=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)},Ft=[],Za=0,Zs=0;function Ji(){for(var e=Za,t=Zs=Za=0;t<e;){var l=Ft[t];Ft[t++]=null;var a=Ft[t];Ft[t++]=null;var i=Ft[t];Ft[t++]=null;var r=Ft[t];if(Ft[t++]=null,a!==null&&i!==null){var d=a.pending;d===null?i.next=i:(i.next=d.next,d.next=i),a.pending=i}r!==0&&xf(l,i,r)}}function Wi(e,t,l,a){Ft[Za++]=e,Ft[Za++]=t,Ft[Za++]=l,Ft[Za++]=a,Zs|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ks(e,t,l,a){return Wi(e,t,l,a),$i(e)}function ya(e,t){return Wi(e,null,null,t),$i(e)}function xf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var i=!1,r=e.return;r!==null;)r.childLanes|=l,a=r.alternate,a!==null&&(a.childLanes|=l),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(i=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,i&&t!==null&&(i=31-xt(l),e=r.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=l|536870912),r):null}function $i(e){if(50<oi)throw oi=0,ao=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ka={};function fy(e,t,l,a){this.tag=e,this.key=l,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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bt(e,t,l,a){return new fy(e,t,l,a)}function Js(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jl(e,t){var l=e.alternate;return l===null?(l=Bt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function vf(e,t){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ii(e,t,l,a,i,r){var d=0;if(a=e,typeof e=="function")Js(e)&&(d=1);else if(typeof e=="string")d=yg(e,l,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ee:return e=Bt(31,l,t,i),e.elementType=Ee,e.lanes=r,e;case k:return ga(l.children,i,r,t);case w:d=8,i|=24;break;case R:return e=Bt(12,l,t,i|2),e.elementType=R,e.lanes=r,e;case F:return e=Bt(13,l,t,i),e.elementType=F,e.lanes=r,e;case te:return e=Bt(19,l,t,i),e.elementType=te,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:d=10;break e;case Y:d=9;break e;case $:d=11;break e;case P:d=14;break e;case xe:d=16,a=null;break e}d=29,l=Error(u(130,e===null?"null":typeof e,"")),a=null}return t=Bt(d,l,t,i),t.elementType=e,t.type=a,t.lanes=r,t}function ga(e,t,l,a){return e=Bt(7,e,a,t),e.lanes=l,e}function Ws(e,t,l){return e=Bt(6,e,null,t),e.lanes=l,e}function bf(e){var t=Bt(18,null,null,0);return t.stateNode=e,t}function $s(e,t,l){return t=Bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Sf=new WeakMap;function Zt(e,t){if(typeof e=="object"&&e!==null){var l=Sf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Mt(t)},Sf.set(e,t),t)}return{value:e,source:t,stack:Mt(t)}}var Ja=[],Wa=0,Pi=null,Vn=0,Kt=[],Jt=0,Yl=null,hl=1,ml="";function Rl(e,t){Ja[Wa++]=Vn,Ja[Wa++]=Pi,Pi=e,Vn=t}function Ef(e,t,l){Kt[Jt++]=hl,Kt[Jt++]=ml,Kt[Jt++]=Yl,Yl=e;var a=hl;e=ml;var i=32-xt(a)-1;a&=~(1<<i),l+=1;var r=32-xt(t)+i;if(30<r){var d=i-i%5;r=(a&(1<<d)-1).toString(32),a>>=d,i-=d,hl=1<<32-xt(t)+i|l<<i|a,ml=r+e}else hl=1<<r|l<<i|a,ml=e}function Is(e){e.return!==null&&(Rl(e,1),Ef(e,1,0))}function Ps(e){for(;e===Pi;)Pi=Ja[--Wa],Ja[Wa]=null,Vn=Ja[--Wa],Ja[Wa]=null;for(;e===Yl;)Yl=Kt[--Jt],Kt[Jt]=null,ml=Kt[--Jt],Kt[Jt]=null,hl=Kt[--Jt],Kt[Jt]=null}function jf(e,t){Kt[Jt++]=hl,Kt[Jt++]=ml,Kt[Jt++]=Yl,hl=t.id,ml=t.overflow,Yl=e}var dt=null,qe=null,Ce=!1,Vl=null,Wt=!1,eu=Error(u(519));function Xl(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xn(Zt(t,e)),eu}function Rf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[ft]=e,t[At]=a,l){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(l=0;l<fi.length;l++)be(fi[l],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),Bc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),Hc(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Yp(t.textContent,l)?(a.popover!=null&&(be("beforetoggle",t),be("toggle",t)),a.onScroll!=null&&be("scroll",t),a.onScrollEnd!=null&&be("scrollend",t),a.onClick!=null&&(t.onclick=Sl),t=!0):t=!1,t||Xl(e,!0)}function Cf(e){for(dt=e.return;dt;)switch(dt.tag){case 5:case 31:case 13:Wt=!1;return;case 27:case 3:Wt=!0;return;default:dt=dt.return}}function $a(e){if(e!==dt)return!1;if(!Ce)return Cf(e),Ce=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||vo(e.type,e.memoizedProps)),l=!l),l&&qe&&Xl(e),Cf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));qe=Wp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));qe=Wp(e)}else t===27?(t=qe,aa(e.type)?(e=Ro,Ro=null,qe=e):qe=t):qe=dt?It(e.stateNode.nextSibling):null;return!0}function xa(){qe=dt=null,Ce=!1}function tu(){var e=Vl;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),Vl=null),e}function Xn(e){Vl===null?Vl=[e]:Vl.push(e)}var lu=E(null),va=null,Cl=null;function Gl(e,t,l){K(lu,t._currentValue),t._currentValue=l}function Al(e){e._currentValue=lu.current,U(lu)}function au(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function nu(e,t,l,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var r=i.dependencies;if(r!==null){var d=i.child;r=r.firstContext;e:for(;r!==null;){var m=r;r=i;for(var S=0;S<t.length;S++)if(m.context===t[S]){r.lanes|=l,m=r.alternate,m!==null&&(m.lanes|=l),au(r.return,l,e),a||(d=null);break e}r=m.next}}else if(i.tag===18){if(d=i.return,d===null)throw Error(u(341));d.lanes|=l,r=d.alternate,r!==null&&(r.lanes|=l),au(d,l,e),d=null}else d=i.child;if(d!==null)d.return=i;else for(d=i;d!==null;){if(d===e){d=null;break}if(i=d.sibling,i!==null){i.return=d.return,d=i;break}d=d.return}i=d}}function Ia(e,t,l,a){e=null;for(var i=t,r=!1;i!==null;){if(!r){if((i.flags&524288)!==0)r=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var d=i.alternate;if(d===null)throw Error(u(387));if(d=d.memoizedProps,d!==null){var m=i.type;Ut(i.pendingProps.value,d.value)||(e!==null?e.push(m):e=[m])}}else if(i===le.current){if(d=i.alternate,d===null)throw Error(u(387));d.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(yi):e=[yi])}i=i.return}e!==null&&nu(t,e,l,a),t.flags|=262144}function er(e){for(e=e.firstContext;e!==null;){if(!Ut(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ba(e){va=e,Cl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return Af(va,e)}function tr(e,t){return va===null&&ba(e),Af(e,t)}function Af(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Cl===null){if(e===null)throw Error(u(308));Cl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Cl=Cl.next=t;return l}var dy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},py=n.unstable_scheduleCallback,hy=n.unstable_NormalPriority,Pe={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function iu(){return{controller:new dy,data:new Map,refCount:0}}function Gn(e){e.refCount--,e.refCount===0&&py(hy,function(){e.controller.abort()})}var Qn=null,ru=0,Pa=0,en=null;function my(e,t){if(Qn===null){var l=Qn=[];ru=0,Pa=oo(),en={status:"pending",value:void 0,then:function(a){l.push(a)}}}return ru++,t.then(zf,zf),t}function zf(){if(--ru===0&&Qn!==null){en!==null&&(en.status="fulfilled");var e=Qn;Qn=null,Pa=0,en=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function yy(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(i){l.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<l.length;i++)(0,l[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<l.length;i++)(0,l[i])(void 0)}),a}var Tf=M.S;M.S=function(e,t){fp=jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&my(e,t),Tf!==null&&Tf(e,t)};var Sa=E(null);function su(){var e=Sa.current;return e!==null?e:ke.pooledCache}function lr(e,t){t===null?K(Sa,Sa.current):K(Sa,t.pool)}function _f(){var e=su();return e===null?null:{parent:Pe._currentValue,pool:e}}var tn=Error(u(460)),uu=Error(u(474)),ar=Error(u(542)),nr={then:function(){}};function Of(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Nf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Sl,Sl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Df(e),e;default:if(typeof t.status=="string")t.then(Sl,Sl);else{if(e=ke,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Df(e),e}throw ja=t,tn}}function Ea(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ja=l,tn):l}}var ja=null;function wf(){if(ja===null)throw Error(u(459));var e=ja;return ja=null,e}function Df(e){if(e===tn||e===ar)throw Error(u(483))}var ln=null,Fn=0;function ir(e){var t=Fn;return Fn+=1,ln===null&&(ln=[]),Nf(ln,e,t)}function Zn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function rr(e,t){throw t.$$typeof===O?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Mf(e){function t(z,C){if(e){var T=z.deletions;T===null?(z.deletions=[C],z.flags|=16):T.push(C)}}function l(z,C){if(!e)return null;for(;C!==null;)t(z,C),C=C.sibling;return null}function a(z){for(var C=new Map;z!==null;)z.key!==null?C.set(z.key,z):C.set(z.index,z),z=z.sibling;return C}function i(z,C){return z=jl(z,C),z.index=0,z.sibling=null,z}function r(z,C,T){return z.index=T,e?(T=z.alternate,T!==null?(T=T.index,T<C?(z.flags|=67108866,C):T):(z.flags|=67108866,C)):(z.flags|=1048576,C)}function d(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function m(z,C,T,q){return C===null||C.tag!==6?(C=Ws(T,z.mode,q),C.return=z,C):(C=i(C,T),C.return=z,C)}function S(z,C,T,q){var re=T.type;return re===k?H(z,C,T.props.children,q,T.key):C!==null&&(C.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===xe&&Ea(re)===C.type)?(C=i(C,T.props),Zn(C,T),C.return=z,C):(C=Ii(T.type,T.key,T.props,null,z.mode,q),Zn(C,T),C.return=z,C)}function _(z,C,T,q){return C===null||C.tag!==4||C.stateNode.containerInfo!==T.containerInfo||C.stateNode.implementation!==T.implementation?(C=$s(T,z.mode,q),C.return=z,C):(C=i(C,T.children||[]),C.return=z,C)}function H(z,C,T,q,re){return C===null||C.tag!==7?(C=ga(T,z.mode,q,re),C.return=z,C):(C=i(C,T),C.return=z,C)}function V(z,C,T){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Ws(""+C,z.mode,T),C.return=z,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case B:return T=Ii(C.type,C.key,C.props,null,z.mode,T),Zn(T,C),T.return=z,T;case G:return C=$s(C,z.mode,T),C.return=z,C;case xe:return C=Ea(C),V(z,C,T)}if(fe(C)||Ae(C))return C=ga(C,z.mode,T,null),C.return=z,C;if(typeof C.then=="function")return V(z,ir(C),T);if(C.$$typeof===X)return V(z,tr(z,C),T);rr(z,C)}return null}function N(z,C,T,q){var re=C!==null?C.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return re!==null?null:m(z,C,""+T,q);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case B:return T.key===re?S(z,C,T,q):null;case G:return T.key===re?_(z,C,T,q):null;case xe:return T=Ea(T),N(z,C,T,q)}if(fe(T)||Ae(T))return re!==null?null:H(z,C,T,q,null);if(typeof T.then=="function")return N(z,C,ir(T),q);if(T.$$typeof===X)return N(z,C,tr(z,T),q);rr(z,T)}return null}function D(z,C,T,q,re){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return z=z.get(T)||null,m(C,z,""+q,re);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case B:return z=z.get(q.key===null?T:q.key)||null,S(C,z,q,re);case G:return z=z.get(q.key===null?T:q.key)||null,_(C,z,q,re);case xe:return q=Ea(q),D(z,C,T,q,re)}if(fe(q)||Ae(q))return z=z.get(T)||null,H(C,z,q,re,null);if(typeof q.then=="function")return D(z,C,T,ir(q),re);if(q.$$typeof===X)return D(z,C,T,tr(C,q),re);rr(C,q)}return null}function ee(z,C,T,q){for(var re=null,_e=null,ne=C,ge=C=0,Re=null;ne!==null&&ge<T.length;ge++){ne.index>ge?(Re=ne,ne=null):Re=ne.sibling;var Oe=N(z,ne,T[ge],q);if(Oe===null){ne===null&&(ne=Re);break}e&&ne&&Oe.alternate===null&&t(z,ne),C=r(Oe,C,ge),_e===null?re=Oe:_e.sibling=Oe,_e=Oe,ne=Re}if(ge===T.length)return l(z,ne),Ce&&Rl(z,ge),re;if(ne===null){for(;ge<T.length;ge++)ne=V(z,T[ge],q),ne!==null&&(C=r(ne,C,ge),_e===null?re=ne:_e.sibling=ne,_e=ne);return Ce&&Rl(z,ge),re}for(ne=a(ne);ge<T.length;ge++)Re=D(ne,z,ge,T[ge],q),Re!==null&&(e&&Re.alternate!==null&&ne.delete(Re.key===null?ge:Re.key),C=r(Re,C,ge),_e===null?re=Re:_e.sibling=Re,_e=Re);return e&&ne.forEach(function(ua){return t(z,ua)}),Ce&&Rl(z,ge),re}function ue(z,C,T,q){if(T==null)throw Error(u(151));for(var re=null,_e=null,ne=C,ge=C=0,Re=null,Oe=T.next();ne!==null&&!Oe.done;ge++,Oe=T.next()){ne.index>ge?(Re=ne,ne=null):Re=ne.sibling;var ua=N(z,ne,Oe.value,q);if(ua===null){ne===null&&(ne=Re);break}e&&ne&&ua.alternate===null&&t(z,ne),C=r(ua,C,ge),_e===null?re=ua:_e.sibling=ua,_e=ua,ne=Re}if(Oe.done)return l(z,ne),Ce&&Rl(z,ge),re;if(ne===null){for(;!Oe.done;ge++,Oe=T.next())Oe=V(z,Oe.value,q),Oe!==null&&(C=r(Oe,C,ge),_e===null?re=Oe:_e.sibling=Oe,_e=Oe);return Ce&&Rl(z,ge),re}for(ne=a(ne);!Oe.done;ge++,Oe=T.next())Oe=D(ne,z,ge,Oe.value,q),Oe!==null&&(e&&Oe.alternate!==null&&ne.delete(Oe.key===null?ge:Oe.key),C=r(Oe,C,ge),_e===null?re=Oe:_e.sibling=Oe,_e=Oe);return e&&ne.forEach(function(zg){return t(z,zg)}),Ce&&Rl(z,ge),re}function He(z,C,T,q){if(typeof T=="object"&&T!==null&&T.type===k&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case B:e:{for(var re=T.key;C!==null;){if(C.key===re){if(re=T.type,re===k){if(C.tag===7){l(z,C.sibling),q=i(C,T.props.children),q.return=z,z=q;break e}}else if(C.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===xe&&Ea(re)===C.type){l(z,C.sibling),q=i(C,T.props),Zn(q,T),q.return=z,z=q;break e}l(z,C);break}else t(z,C);C=C.sibling}T.type===k?(q=ga(T.props.children,z.mode,q,T.key),q.return=z,z=q):(q=Ii(T.type,T.key,T.props,null,z.mode,q),Zn(q,T),q.return=z,z=q)}return d(z);case G:e:{for(re=T.key;C!==null;){if(C.key===re)if(C.tag===4&&C.stateNode.containerInfo===T.containerInfo&&C.stateNode.implementation===T.implementation){l(z,C.sibling),q=i(C,T.children||[]),q.return=z,z=q;break e}else{l(z,C);break}else t(z,C);C=C.sibling}q=$s(T,z.mode,q),q.return=z,z=q}return d(z);case xe:return T=Ea(T),He(z,C,T,q)}if(fe(T))return ee(z,C,T,q);if(Ae(T)){if(re=Ae(T),typeof re!="function")throw Error(u(150));return T=re.call(T),ue(z,C,T,q)}if(typeof T.then=="function")return He(z,C,ir(T),q);if(T.$$typeof===X)return He(z,C,tr(z,T),q);rr(z,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,C!==null&&C.tag===6?(l(z,C.sibling),q=i(C,T),q.return=z,z=q):(l(z,C),q=Ws(T,z.mode,q),q.return=z,z=q),d(z)):l(z,C)}return function(z,C,T,q){try{Fn=0;var re=He(z,C,T,q);return ln=null,re}catch(ne){if(ne===tn||ne===ar)throw ne;var _e=Bt(29,ne,null,z.mode);return _e.lanes=q,_e.return=z,_e}finally{}}}var Ra=Mf(!0),Uf=Mf(!1),Ql=!1;function ou(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cu(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 Fl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Zl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(we&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=$i(e),xf(e,null,l),t}return Wi(e,a,t,l),$i(e)}function Kn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Cc(e,l)}}function fu(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,r=null;if(l=l.firstBaseUpdate,l!==null){do{var d={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};r===null?i=r=d:r=r.next=d,l=l.next}while(l!==null);r===null?i=r=t:r=r.next=t}else i=r=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var du=!1;function Jn(){if(du){var e=en;if(e!==null)throw e}}function Wn(e,t,l,a){du=!1;var i=e.updateQueue;Ql=!1;var r=i.firstBaseUpdate,d=i.lastBaseUpdate,m=i.shared.pending;if(m!==null){i.shared.pending=null;var S=m,_=S.next;S.next=null,d===null?r=_:d.next=_,d=S;var H=e.alternate;H!==null&&(H=H.updateQueue,m=H.lastBaseUpdate,m!==d&&(m===null?H.firstBaseUpdate=_:m.next=_,H.lastBaseUpdate=S))}if(r!==null){var V=i.baseState;d=0,H=_=S=null,m=r;do{var N=m.lane&-536870913,D=N!==m.lane;if(D?(je&N)===N:(a&N)===N){N!==0&&N===Pa&&(du=!0),H!==null&&(H=H.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var ee=e,ue=m;N=t;var He=l;switch(ue.tag){case 1:if(ee=ue.payload,typeof ee=="function"){V=ee.call(He,V,N);break e}V=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=ue.payload,N=typeof ee=="function"?ee.call(He,V,N):ee,N==null)break e;V=b({},V,N);break e;case 2:Ql=!0}}N=m.callback,N!==null&&(e.flags|=64,D&&(e.flags|=8192),D=i.callbacks,D===null?i.callbacks=[N]:D.push(N))}else D={lane:N,tag:m.tag,payload:m.payload,callback:m.callback,next:null},H===null?(_=H=D,S=V):H=H.next=D,d|=N;if(m=m.next,m===null){if(m=i.shared.pending,m===null)break;D=m,m=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);H===null&&(S=V),i.baseState=S,i.firstBaseUpdate=_,i.lastBaseUpdate=H,r===null&&(i.shared.lanes=0),Il|=d,e.lanes=d,e.memoizedState=V}}function Bf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Lf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Bf(l[e],t)}var an=E(null),sr=E(0);function Hf(e,t){e=Ul,K(sr,e),K(an,t),Ul=e|t.baseLanes}function pu(){K(sr,Ul),K(an,an.current)}function hu(){Ul=sr.current,U(an),U(sr)}var Lt=E(null),$t=null;function Kl(e){var t=e.alternate;K(Je,Je.current&1),K(Lt,e),$t===null&&(t===null||an.current!==null||t.memoizedState!==null)&&($t=e)}function mu(e){K(Je,Je.current),K(Lt,e),$t===null&&($t=e)}function kf(e){e.tag===22?(K(Je,Je.current),K(Lt,e),$t===null&&($t=e)):Jl()}function Jl(){K(Je,Je.current),K(Lt,Lt.current)}function Ht(e){U(Lt),$t===e&&($t=null),U(Je)}var Je=E(0);function ur(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Eo(l)||jo(l)))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 zl=0,me=null,Be=null,et=null,or=!1,nn=!1,Ca=!1,cr=0,$n=0,rn=null,gy=0;function Ze(){throw Error(u(321))}function yu(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ut(e[l],t[l]))return!1;return!0}function gu(e,t,l,a,i,r){return zl=r,me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Ed:wu,Ca=!1,r=l(a,i),Ca=!1,nn&&(r=Yf(t,l,a,i)),qf(e),r}function qf(e){M.H=ei;var t=Be!==null&&Be.next!==null;if(zl=0,et=Be=me=null,or=!1,$n=0,rn=null,t)throw Error(u(300));e===null||tt||(e=e.dependencies,e!==null&&er(e)&&(tt=!0))}function Yf(e,t,l,a){me=e;var i=0;do{if(nn&&(rn=null),$n=0,nn=!1,25<=i)throw Error(u(301));if(i+=1,et=Be=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}M.H=jd,r=t(l,a)}while(nn);return r}function xy(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?In(t):t,e=e.useState()[0],(Be!==null?Be.memoizedState:null)!==e&&(me.flags|=1024),t}function xu(){var e=cr!==0;return cr=0,e}function vu(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function bu(e){if(or){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}or=!1}zl=0,et=Be=me=null,nn=!1,$n=cr=0,rn=null}function Rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?me.memoizedState=et=e:et=et.next=e,et}function We(){if(Be===null){var e=me.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=et===null?me.memoizedState:et.next;if(t!==null)et=t,Be=e;else{if(e===null)throw me.alternate===null?Error(u(467)):Error(u(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},et===null?me.memoizedState=et=e:et=et.next=e}return et}function fr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function In(e){var t=$n;return $n+=1,rn===null&&(rn=[]),e=Nf(rn,e,t),t=me,(et===null?t.memoizedState:et.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Ed:wu),e}function dr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return In(e);if(e.$$typeof===X)return pt(e)}throw Error(u(438,String(e)))}function Su(e){var t=null,l=me.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=me.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=fr(),me.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Te;return t.index++,l}function Tl(e,t){return typeof t=="function"?t(e):t}function pr(e){var t=We();return Eu(t,Be,e)}function Eu(e,t,l){var a=e.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=l;var i=e.baseQueue,r=a.pending;if(r!==null){if(i!==null){var d=i.next;i.next=r.next,r.next=d}t.baseQueue=i=r,a.pending=null}if(r=e.baseState,i===null)e.memoizedState=r;else{t=i.next;var m=d=null,S=null,_=t,H=!1;do{var V=_.lane&-536870913;if(V!==_.lane?(je&V)===V:(zl&V)===V){var N=_.revertLane;if(N===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),V===Pa&&(H=!0);else if((zl&N)===N){_=_.next,N===Pa&&(H=!0);continue}else V={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},S===null?(m=S=V,d=r):S=S.next=V,me.lanes|=N,Il|=N;V=_.action,Ca&&l(r,V),r=_.hasEagerState?_.eagerState:l(r,V)}else N={lane:V,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},S===null?(m=S=N,d=r):S=S.next=N,me.lanes|=V,Il|=V;_=_.next}while(_!==null&&_!==t);if(S===null?d=r:S.next=m,!Ut(r,e.memoizedState)&&(tt=!0,H&&(l=en,l!==null)))throw l;e.memoizedState=r,e.baseState=d,e.baseQueue=S,a.lastRenderedState=r}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function ju(e){var t=We(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var a=l.dispatch,i=l.pending,r=t.memoizedState;if(i!==null){l.pending=null;var d=i=i.next;do r=e(r,d.action),d=d.next;while(d!==i);Ut(r,t.memoizedState)||(tt=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),l.lastRenderedState=r}return[r,a]}function Vf(e,t,l){var a=me,i=We(),r=Ce;if(r){if(l===void 0)throw Error(u(407));l=l()}else l=t();var d=!Ut((Be||i).memoizedState,l);if(d&&(i.memoizedState=l,tt=!0),i=i.queue,Au(Qf.bind(null,a,i,e),[e]),i.getSnapshot!==t||d||et!==null&&et.memoizedState.tag&1){if(a.flags|=2048,sn(9,{destroy:void 0},Gf.bind(null,a,i,l,t),null),ke===null)throw Error(u(349));r||(zl&127)!==0||Xf(a,t,l)}return l}function Xf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=me.updateQueue,t===null?(t=fr(),me.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Gf(e,t,l,a){t.value=l,t.getSnapshot=a,Ff(t)&&Zf(e)}function Qf(e,t,l){return l(function(){Ff(t)&&Zf(e)})}function Ff(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ut(e,l)}catch{return!0}}function Zf(e){var t=ya(e,2);t!==null&&wt(t,e,2)}function Ru(e){var t=Rt();if(typeof e=="function"){var l=e;if(e=l(),Ca){Ie(!0);try{l()}finally{Ie(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:e},t}function Kf(e,t,l,a){return e.baseState=l,Eu(e,Be,typeof a=="function"?a:Tl)}function vy(e,t,l,a,i){if(yr(e))throw Error(u(485));if(e=t.action,e!==null){var r={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){r.listeners.push(d)}};M.T!==null?l(!0):r.isTransition=!1,a(r),l=t.pending,l===null?(r.next=t.pending=r,Jf(t,r)):(r.next=l.next,t.pending=l.next=r)}}function Jf(e,t){var l=t.action,a=t.payload,i=e.state;if(t.isTransition){var r=M.T,d={};M.T=d;try{var m=l(i,a),S=M.S;S!==null&&S(d,m),Wf(e,t,m)}catch(_){Cu(e,t,_)}finally{r!==null&&d.types!==null&&(r.types=d.types),M.T=r}}else try{r=l(i,a),Wf(e,t,r)}catch(_){Cu(e,t,_)}}function Wf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){$f(e,t,a)},function(a){return Cu(e,t,a)}):$f(e,t,l)}function $f(e,t,l){t.status="fulfilled",t.value=l,If(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Jf(e,l)))}function Cu(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,If(t),t=t.next;while(t!==a)}e.action=null}function If(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Pf(e,t){return t}function ed(e,t){if(Ce){var l=ke.formState;if(l!==null){e:{var a=me;if(Ce){if(qe){t:{for(var i=qe,r=Wt;i.nodeType!==8;){if(!r){i=null;break t}if(i=It(i.nextSibling),i===null){i=null;break t}}r=i.data,i=r==="F!"||r==="F"?i:null}if(i){qe=It(i.nextSibling),a=i.data==="F!";break e}}Xl(a)}a=!1}a&&(t=l[0])}}return l=Rt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pf,lastRenderedState:t},l.queue=a,l=vd.bind(null,me,a),a.dispatch=l,a=Ru(!1),r=Nu.bind(null,me,!1,a.queue),a=Rt(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,l=vy.bind(null,me,i,r,l),i.dispatch=l,a.memoizedState=e,[t,l,!1]}function td(e){var t=We();return ld(t,Be,e)}function ld(e,t,l){if(t=Eu(e,t,Pf)[0],e=pr(Tl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=In(t)}catch(d){throw d===tn?ar:d}else a=t;t=We();var i=t.queue,r=i.dispatch;return l!==t.memoizedState&&(me.flags|=2048,sn(9,{destroy:void 0},by.bind(null,i,l),null)),[a,r,e]}function by(e,t){e.action=t}function ad(e){var t=We(),l=Be;if(l!==null)return ld(t,l,e);We(),t=t.memoizedState,l=We();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function sn(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=me.updateQueue,t===null&&(t=fr(),me.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function nd(){return We().memoizedState}function hr(e,t,l,a){var i=Rt();me.flags|=e,i.memoizedState=sn(1|t,{destroy:void 0},l,a===void 0?null:a)}function mr(e,t,l,a){var i=We();a=a===void 0?null:a;var r=i.memoizedState.inst;Be!==null&&a!==null&&yu(a,Be.memoizedState.deps)?i.memoizedState=sn(t,r,l,a):(me.flags|=e,i.memoizedState=sn(1|t,r,l,a))}function id(e,t){hr(8390656,8,e,t)}function Au(e,t){mr(2048,8,e,t)}function Sy(e){me.flags|=4;var t=me.updateQueue;if(t===null)t=fr(),me.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function rd(e){var t=We().memoizedState;return Sy({ref:t,nextImpl:e}),function(){if((we&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function sd(e,t){return mr(4,2,e,t)}function ud(e,t){return mr(4,4,e,t)}function od(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cd(e,t,l){l=l!=null?l.concat([e]):null,mr(4,4,od.bind(null,t,e),l)}function zu(){}function fd(e,t){var l=We();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&yu(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function dd(e,t){var l=We();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&yu(t,a[1]))return a[0];if(a=e(),Ca){Ie(!0);try{e()}finally{Ie(!1)}}return l.memoizedState=[a,t],a}function Tu(e,t,l){return l===void 0||(zl&1073741824)!==0&&(je&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=pp(),me.lanes|=e,Il|=e,l)}function pd(e,t,l,a){return Ut(l,t)?l:an.current!==null?(e=Tu(e,l,a),Ut(e,t)||(tt=!0),e):(zl&42)===0||(zl&1073741824)!==0&&(je&261930)===0?(tt=!0,e.memoizedState=l):(e=pp(),me.lanes|=e,Il|=e,t)}function hd(e,t,l,a,i){var r=J.p;J.p=r!==0&&8>r?r:8;var d=M.T,m={};M.T=m,Nu(e,!1,t,l);try{var S=i(),_=M.S;if(_!==null&&_(m,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var H=yy(S,a);Pn(e,t,H,Yt(e))}else Pn(e,t,a,Yt(e))}catch(V){Pn(e,t,{then:function(){},status:"rejected",reason:V},Yt())}finally{J.p=r,d!==null&&m.types!==null&&(d.types=m.types),M.T=d}}function Ey(){}function _u(e,t,l,a){if(e.tag!==5)throw Error(u(476));var i=md(e).queue;hd(e,i,t,ie,l===null?Ey:function(){return yd(e),l(a)})}function md(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:ie},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function yd(e){var t=md(e);t.next===null&&(t=e.alternate.memoizedState),Pn(e,t.next.queue,{},Yt())}function Ou(){return pt(yi)}function gd(){return We().memoizedState}function xd(){return We().memoizedState}function jy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Yt();e=Fl(l);var a=Zl(t,e,l);a!==null&&(wt(a,t,l),Kn(a,t,l)),t={cache:iu()},e.payload=t;return}t=t.return}}function Ry(e,t,l){var a=Yt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},yr(e)?bd(t,l):(l=Ks(e,t,l,a),l!==null&&(wt(l,e,a),Sd(l,t,a)))}function vd(e,t,l){var a=Yt();Pn(e,t,l,a)}function Pn(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(yr(e))bd(t,i);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var d=t.lastRenderedState,m=r(d,l);if(i.hasEagerState=!0,i.eagerState=m,Ut(m,d))return Wi(e,t,i,0),ke===null&&Ji(),!1}catch{}finally{}if(l=Ks(e,t,i,a),l!==null)return wt(l,e,a),Sd(l,t,a),!0}return!1}function Nu(e,t,l,a){if(a={lane:2,revertLane:oo(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},yr(e)){if(t)throw Error(u(479))}else t=Ks(e,l,a,2),t!==null&&wt(t,e,2)}function yr(e){var t=e.alternate;return e===me||t!==null&&t===me}function bd(e,t){nn=or=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Sd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Cc(e,l)}}var ei={readContext:pt,use:dr,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze};ei.useEffectEvent=Ze;var Ed={readContext:pt,use:dr,useCallback:function(e,t){return Rt().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:id,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,hr(4194308,4,od.bind(null,t,e),l)},useLayoutEffect:function(e,t){return hr(4194308,4,e,t)},useInsertionEffect:function(e,t){hr(4,2,e,t)},useMemo:function(e,t){var l=Rt();t=t===void 0?null:t;var a=e();if(Ca){Ie(!0);try{e()}finally{Ie(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Rt();if(l!==void 0){var i=l(t);if(Ca){Ie(!0);try{l(t)}finally{Ie(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=Ry.bind(null,me,e),[a.memoizedState,e]},useRef:function(e){var t=Rt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ru(e);var t=e.queue,l=vd.bind(null,me,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:zu,useDeferredValue:function(e,t){var l=Rt();return Tu(l,e,t)},useTransition:function(){var e=Ru(!1);return e=hd.bind(null,me,e.queue,!0,!1),Rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=me,i=Rt();if(Ce){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),ke===null)throw Error(u(349));(je&127)!==0||Xf(a,t,l)}i.memoizedState=l;var r={value:l,getSnapshot:t};return i.queue=r,id(Qf.bind(null,a,r,e),[e]),a.flags|=2048,sn(9,{destroy:void 0},Gf.bind(null,a,r,l,t),null),l},useId:function(){var e=Rt(),t=ke.identifierPrefix;if(Ce){var l=ml,a=hl;l=(a&~(1<<32-xt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=cr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=gy++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ou,useFormState:ed,useActionState:ed,useOptimistic:function(e){var t=Rt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Nu.bind(null,me,!0,l),l.dispatch=t,[e,t]},useMemoCache:Su,useCacheRefresh:function(){return Rt().memoizedState=jy.bind(null,me)},useEffectEvent:function(e){var t=Rt(),l={impl:e};return t.memoizedState=l,function(){if((we&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},wu={readContext:pt,use:dr,useCallback:fd,useContext:pt,useEffect:Au,useImperativeHandle:cd,useInsertionEffect:sd,useLayoutEffect:ud,useMemo:dd,useReducer:pr,useRef:nd,useState:function(){return pr(Tl)},useDebugValue:zu,useDeferredValue:function(e,t){var l=We();return pd(l,Be.memoizedState,e,t)},useTransition:function(){var e=pr(Tl)[0],t=We().memoizedState;return[typeof e=="boolean"?e:In(e),t]},useSyncExternalStore:Vf,useId:gd,useHostTransitionStatus:Ou,useFormState:td,useActionState:td,useOptimistic:function(e,t){var l=We();return Kf(l,Be,e,t)},useMemoCache:Su,useCacheRefresh:xd};wu.useEffectEvent=rd;var jd={readContext:pt,use:dr,useCallback:fd,useContext:pt,useEffect:Au,useImperativeHandle:cd,useInsertionEffect:sd,useLayoutEffect:ud,useMemo:dd,useReducer:ju,useRef:nd,useState:function(){return ju(Tl)},useDebugValue:zu,useDeferredValue:function(e,t){var l=We();return Be===null?Tu(l,e,t):pd(l,Be.memoizedState,e,t)},useTransition:function(){var e=ju(Tl)[0],t=We().memoizedState;return[typeof e=="boolean"?e:In(e),t]},useSyncExternalStore:Vf,useId:gd,useHostTransitionStatus:Ou,useFormState:ad,useActionState:ad,useOptimistic:function(e,t){var l=We();return Be!==null?Kf(l,Be,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Su,useCacheRefresh:xd};jd.useEffectEvent=rd;function Du(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:b({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Mu={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Yt(),i=Fl(a);i.payload=t,l!=null&&(i.callback=l),t=Zl(e,i,a),t!==null&&(wt(t,e,a),Kn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Yt(),i=Fl(a);i.tag=1,i.payload=t,l!=null&&(i.callback=l),t=Zl(e,i,a),t!==null&&(wt(t,e,a),Kn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Yt(),a=Fl(l);a.tag=2,t!=null&&(a.callback=t),t=Zl(e,a,l),t!==null&&(wt(t,e,l),Kn(t,e,l))}};function Rd(e,t,l,a,i,r,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,r,d):t.prototype&&t.prototype.isPureReactComponent?!qn(l,a)||!qn(i,r):!0}function Cd(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Mu.enqueueReplaceState(t,t.state,null)}function Aa(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=b({},l));for(var i in e)l[i]===void 0&&(l[i]=e[i])}return l}function Ad(e){Ki(e)}function zd(e){console.error(e)}function Td(e){Ki(e)}function gr(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function _d(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Uu(e,t,l){return l=Fl(l),l.tag=3,l.payload={element:null},l.callback=function(){gr(e,t)},l}function Od(e){return e=Fl(e),e.tag=3,e}function Nd(e,t,l,a){var i=l.type.getDerivedStateFromError;if(typeof i=="function"){var r=a.value;e.payload=function(){return i(r)},e.callback=function(){_d(t,l,a)}}var d=l.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){_d(t,l,a),typeof i!="function"&&(Pl===null?Pl=new Set([this]):Pl.add(this));var m=a.stack;this.componentDidCatch(a.value,{componentStack:m!==null?m:""})})}function Cy(e,t,l,a,i){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Ia(t,l,i,!0),l=Lt.current,l!==null){switch(l.tag){case 31:case 13:return $t===null?_r():l.alternate===null&&Ke===0&&(Ke=3),l.flags&=-257,l.flags|=65536,l.lanes=i,a===nr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),ro(e,a,i)),!1;case 22:return l.flags|=65536,a===nr?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),ro(e,a,i)),!1}throw Error(u(435,l.tag))}return ro(e,a,i),_r(),!1}if(Ce)return t=Lt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==eu&&(e=Error(u(422),{cause:a}),Xn(Zt(e,l)))):(a!==eu&&(t=Error(u(423),{cause:a}),Xn(Zt(t,l))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=Zt(a,l),i=Uu(e.stateNode,a,i),fu(e,i),Ke!==4&&(Ke=2)),!1;var r=Error(u(520),{cause:a});if(r=Zt(r,l),ui===null?ui=[r]:ui.push(r),Ke!==4&&(Ke=2),t===null)return!0;a=Zt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=i&-i,l.lanes|=e,e=Uu(l.stateNode,a,e),fu(l,e),!1;case 1:if(t=l.type,r=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Pl===null||!Pl.has(r))))return l.flags|=65536,i&=-i,l.lanes|=i,i=Od(i),Nd(i,e,l,a),fu(l,i),!1}l=l.return}while(l!==null);return!1}var Bu=Error(u(461)),tt=!1;function ht(e,t,l,a){t.child=e===null?Uf(t,null,l,a):Ra(t,e.child,l,a)}function wd(e,t,l,a,i){l=l.render;var r=t.ref;if("ref"in a){var d={};for(var m in a)m!=="ref"&&(d[m]=a[m])}else d=a;return ba(t),a=gu(e,t,l,d,r,i),m=xu(),e!==null&&!tt?(vu(e,t,i),_l(e,t,i)):(Ce&&m&&Is(t),t.flags|=1,ht(e,t,a,i),t.child)}function Dd(e,t,l,a,i){if(e===null){var r=l.type;return typeof r=="function"&&!Js(r)&&r.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=r,Md(e,t,r,a,i)):(e=Ii(l.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Gu(e,i)){var d=r.memoizedProps;if(l=l.compare,l=l!==null?l:qn,l(d,a)&&e.ref===t.ref)return _l(e,t,i)}return t.flags|=1,e=jl(r,a),e.ref=t.ref,e.return=t,t.child=e}function Md(e,t,l,a,i){if(e!==null){var r=e.memoizedProps;if(qn(r,a)&&e.ref===t.ref)if(tt=!1,t.pendingProps=a=r,Gu(e,i))(e.flags&131072)!==0&&(tt=!0);else return t.lanes=e.lanes,_l(e,t,i)}return Lu(e,t,l,a,i)}function Ud(e,t,l,a){var i=a.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|l:l,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~r}else a=0,t.child=null;return Bd(e,t,r,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&lr(t,r!==null?r.cachePool:null),r!==null?Hf(t,r):pu(),kf(t);else return a=t.lanes=536870912,Bd(e,t,r!==null?r.baseLanes|l:l,l,a)}else r!==null?(lr(t,r.cachePool),Hf(t,r),Jl(),t.memoizedState=null):(e!==null&&lr(t,null),pu(),Jl());return ht(e,t,i,l),t.child}function ti(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Bd(e,t,l,a,i){var r=su();return r=r===null?null:{parent:Pe._currentValue,pool:r},t.memoizedState={baseLanes:l,cachePool:r},e!==null&&lr(t,null),pu(),kf(t),e!==null&&Ia(e,t,a,!0),t.childLanes=i,null}function xr(e,t){return t=br({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ld(e,t,l){return Ra(t,e.child,null,l),e=xr(t,t.pendingProps),e.flags|=2,Ht(t),t.memoizedState=null,e}function Ay(e,t,l){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ce){if(a.mode==="hidden")return e=xr(t,a),t.lanes=536870912,ti(null,e);if(mu(t),(e=qe)?(e=Jp(e,Wt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yl!==null?{id:hl,overflow:ml}:null,retryLane:536870912,hydrationErrors:null},l=bf(e),l.return=t,t.child=l,dt=t,qe=null)):e=null,e===null)throw Xl(t);return t.lanes=536870912,null}return xr(t,a)}var r=e.memoizedState;if(r!==null){var d=r.dehydrated;if(mu(t),i)if(t.flags&256)t.flags&=-257,t=Ld(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(tt||Ia(e,t,l,!1),i=(l&e.childLanes)!==0,tt||i){if(a=ke,a!==null&&(d=Ac(a,l),d!==0&&d!==r.retryLane))throw r.retryLane=d,ya(e,d),wt(a,e,d),Bu;_r(),t=Ld(e,t,l)}else e=r.treeContext,qe=It(d.nextSibling),dt=t,Ce=!0,Vl=null,Wt=!1,e!==null&&jf(t,e),t=xr(t,a),t.flags|=4096;return t}return e=jl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function vr(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Lu(e,t,l,a,i){return ba(t),l=gu(e,t,l,a,void 0,i),a=xu(),e!==null&&!tt?(vu(e,t,i),_l(e,t,i)):(Ce&&a&&Is(t),t.flags|=1,ht(e,t,l,i),t.child)}function Hd(e,t,l,a,i,r){return ba(t),t.updateQueue=null,l=Yf(t,a,l,i),qf(e),a=xu(),e!==null&&!tt?(vu(e,t,r),_l(e,t,r)):(Ce&&a&&Is(t),t.flags|=1,ht(e,t,l,r),t.child)}function kd(e,t,l,a,i){if(ba(t),t.stateNode===null){var r=Ka,d=l.contextType;typeof d=="object"&&d!==null&&(r=pt(d)),r=new l(a,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Mu,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=a,r.state=t.memoizedState,r.refs={},ou(t),d=l.contextType,r.context=typeof d=="object"&&d!==null?pt(d):Ka,r.state=t.memoizedState,d=l.getDerivedStateFromProps,typeof d=="function"&&(Du(t,l,d,a),r.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(d=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),d!==r.state&&Mu.enqueueReplaceState(r,r.state,null),Wn(t,a,r,i),Jn(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){r=t.stateNode;var m=t.memoizedProps,S=Aa(l,m);r.props=S;var _=r.context,H=l.contextType;d=Ka,typeof H=="object"&&H!==null&&(d=pt(H));var V=l.getDerivedStateFromProps;H=typeof V=="function"||typeof r.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,H||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(m||_!==d)&&Cd(t,r,a,d),Ql=!1;var N=t.memoizedState;r.state=N,Wn(t,a,r,i),Jn(),_=t.memoizedState,m||N!==_||Ql?(typeof V=="function"&&(Du(t,l,V,a),_=t.memoizedState),(S=Ql||Rd(t,l,S,a,N,_,d))?(H||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=_),r.props=a,r.state=_,r.context=d,a=S):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{r=t.stateNode,cu(e,t),d=t.memoizedProps,H=Aa(l,d),r.props=H,V=t.pendingProps,N=r.context,_=l.contextType,S=Ka,typeof _=="object"&&_!==null&&(S=pt(_)),m=l.getDerivedStateFromProps,(_=typeof m=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==V||N!==S)&&Cd(t,r,a,S),Ql=!1,N=t.memoizedState,r.state=N,Wn(t,a,r,i),Jn();var D=t.memoizedState;d!==V||N!==D||Ql||e!==null&&e.dependencies!==null&&er(e.dependencies)?(typeof m=="function"&&(Du(t,l,m,a),D=t.memoizedState),(H=Ql||Rd(t,l,H,a,N,D,S)||e!==null&&e.dependencies!==null&&er(e.dependencies))?(_||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,D,S),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,D,S)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=D),r.props=a,r.state=D,r.context=S,a=H):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),a=!1)}return r=a,vr(e,t),a=(t.flags&128)!==0,r||a?(r=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&a?(t.child=Ra(t,e.child,null,i),t.child=Ra(t,null,l,i)):ht(e,t,l,i),t.memoizedState=r.state,e=t.child):e=_l(e,t,i),e}function qd(e,t,l,a){return xa(),t.flags|=256,ht(e,t,l,a),t.child}var Hu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ku(e){return{baseLanes:e,cachePool:_f()}}function qu(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=qt),e}function Yd(e,t,l){var a=t.pendingProps,i=!1,r=(t.flags&128)!==0,d;if((d=r)||(d=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),d&&(i=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(i?Kl(t):Jl(),(e=qe)?(e=Jp(e,Wt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yl!==null?{id:hl,overflow:ml}:null,retryLane:536870912,hydrationErrors:null},l=bf(e),l.return=t,t.child=l,dt=t,qe=null)):e=null,e===null)throw Xl(t);return jo(e)?t.lanes=32:t.lanes=536870912,null}var m=a.children;return a=a.fallback,i?(Jl(),i=t.mode,m=br({mode:"hidden",children:m},i),a=ga(a,i,l,null),m.return=t,a.return=t,m.sibling=a,t.child=m,a=t.child,a.memoizedState=ku(l),a.childLanes=qu(e,d,l),t.memoizedState=Hu,ti(null,a)):(Kl(t),Yu(t,m))}var S=e.memoizedState;if(S!==null&&(m=S.dehydrated,m!==null)){if(r)t.flags&256?(Kl(t),t.flags&=-257,t=Vu(e,t,l)):t.memoizedState!==null?(Jl(),t.child=e.child,t.flags|=128,t=null):(Jl(),m=a.fallback,i=t.mode,a=br({mode:"visible",children:a.children},i),m=ga(m,i,l,null),m.flags|=2,a.return=t,m.return=t,a.sibling=m,t.child=a,Ra(t,e.child,null,l),a=t.child,a.memoizedState=ku(l),a.childLanes=qu(e,d,l),t.memoizedState=Hu,t=ti(null,a));else if(Kl(t),jo(m)){if(d=m.nextSibling&&m.nextSibling.dataset,d)var _=d.dgst;d=_,a=Error(u(419)),a.stack="",a.digest=d,Xn({value:a,source:null,stack:null}),t=Vu(e,t,l)}else if(tt||Ia(e,t,l,!1),d=(l&e.childLanes)!==0,tt||d){if(d=ke,d!==null&&(a=Ac(d,l),a!==0&&a!==S.retryLane))throw S.retryLane=a,ya(e,a),wt(d,e,a),Bu;Eo(m)||_r(),t=Vu(e,t,l)}else Eo(m)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,qe=It(m.nextSibling),dt=t,Ce=!0,Vl=null,Wt=!1,e!==null&&jf(t,e),t=Yu(t,a.children),t.flags|=4096);return t}return i?(Jl(),m=a.fallback,i=t.mode,S=e.child,_=S.sibling,a=jl(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,_!==null?m=jl(_,m):(m=ga(m,i,l,null),m.flags|=2),m.return=t,a.return=t,a.sibling=m,t.child=a,ti(null,a),a=t.child,m=e.child.memoizedState,m===null?m=ku(l):(i=m.cachePool,i!==null?(S=Pe._currentValue,i=i.parent!==S?{parent:S,pool:S}:i):i=_f(),m={baseLanes:m.baseLanes|l,cachePool:i}),a.memoizedState=m,a.childLanes=qu(e,d,l),t.memoizedState=Hu,ti(e.child,a)):(Kl(t),l=e.child,e=l.sibling,l=jl(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=l,t.memoizedState=null,l)}function Yu(e,t){return t=br({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function br(e,t){return e=Bt(22,e,null,t),e.lanes=0,e}function Vu(e,t,l){return Ra(t,e.child,null,l),e=Yu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vd(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),au(e.return,t,l)}function Xu(e,t,l,a,i,r){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:i,treeForkCount:r}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=l,d.tailMode=i,d.treeForkCount=r)}function Xd(e,t,l){var a=t.pendingProps,i=a.revealOrder,r=a.tail;a=a.children;var d=Je.current,m=(d&2)!==0;if(m?(d=d&1|2,t.flags|=128):d&=1,K(Je,d),ht(e,t,a,l),a=Ce?Vn:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vd(e,l,t);else if(e.tag===19)Vd(e,l,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(i){case"forwards":for(l=t.child,i=null;l!==null;)e=l.alternate,e!==null&&ur(e)===null&&(i=l),l=l.sibling;l=i,l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null),Xu(t,!1,i,l,r,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ur(e)===null){t.child=i;break}e=i.sibling,i.sibling=l,l=i,i=e}Xu(t,!0,l,null,r,a);break;case"together":Xu(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function _l(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Il|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ia(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,l=jl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=jl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Gu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&er(e)))}function zy(e,t,l){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Gl(t,Pe,e.memoizedState.cache),xa();break;case 27:case 5:Ve(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Gl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,mu(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Kl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Yd(e,t,l):(Kl(t),e=_l(e,t,l),e!==null?e.sibling:null);Kl(t);break;case 19:var i=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Ia(e,t,l,!1),a=(l&t.childLanes)!==0),i){if(a)return Xd(e,t,l);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),K(Je,Je.current),a)break;return null;case 22:return t.lanes=0,Ud(e,t,l,t.pendingProps);case 24:Gl(t,Pe,e.memoizedState.cache)}return _l(e,t,l)}function Gd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)tt=!0;else{if(!Gu(e,l)&&(t.flags&128)===0)return tt=!1,zy(e,t,l);tt=(e.flags&131072)!==0}else tt=!1,Ce&&(t.flags&1048576)!==0&&Ef(t,Vn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ea(t.elementType),t.type=e,typeof e=="function")Js(e)?(a=Aa(e,a),t.tag=1,t=kd(null,t,e,a,l)):(t.tag=0,t=Lu(null,t,e,a,l));else{if(e!=null){var i=e.$$typeof;if(i===$){t.tag=11,t=wd(null,t,e,a,l);break e}else if(i===P){t.tag=14,t=Dd(null,t,e,a,l);break e}}throw t=ze(e)||e,Error(u(306,t,""))}}return t;case 0:return Lu(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,i=Aa(a,t.pendingProps),kd(e,t,a,i,l);case 3:e:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(u(387));a=t.pendingProps;var r=t.memoizedState;i=r.element,cu(e,t),Wn(t,a,null,l);var d=t.memoizedState;if(a=d.cache,Gl(t,Pe,a),a!==r.cache&&nu(t,[Pe],l,!0),Jn(),a=d.element,r.isDehydrated)if(r={element:a,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=qd(e,t,a,l);break e}else if(a!==i){i=Zt(Error(u(424)),t),Xn(i),t=qd(e,t,a,l);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(qe=It(e.firstChild),dt=t,Ce=!0,Vl=null,Wt=!0,l=Uf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(xa(),a===i){t=_l(e,t,l);break e}ht(e,t,a,l)}t=t.child}return t;case 26:return vr(e,t),e===null?(l=th(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ce||(l=t.type,e=t.pendingProps,a=Br(Z.current).createElement(l),a[ft]=t,a[At]=e,mt(a,l,e),rt(a),t.stateNode=a):t.memoizedState=th(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ve(t),e===null&&Ce&&(a=t.stateNode=Ip(t.type,t.pendingProps,Z.current),dt=t,Wt=!0,i=qe,aa(t.type)?(Ro=i,qe=It(a.firstChild)):qe=i),ht(e,t,t.pendingProps.children,l),vr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((i=a=qe)&&(a=ag(a,t.type,t.pendingProps,Wt),a!==null?(t.stateNode=a,dt=t,qe=It(a.firstChild),Wt=!1,i=!0):i=!1),i||Xl(t)),Ve(t),i=t.type,r=t.pendingProps,d=e!==null?e.memoizedProps:null,a=r.children,vo(i,r)?a=null:d!==null&&vo(i,d)&&(t.flags|=32),t.memoizedState!==null&&(i=gu(e,t,xy,null,null,l),yi._currentValue=i),vr(e,t),ht(e,t,a,l),t.child;case 6:return e===null&&Ce&&((e=l=qe)&&(l=ng(l,t.pendingProps,Wt),l!==null?(t.stateNode=l,dt=t,qe=null,e=!0):e=!1),e||Xl(t)),null;case 13:return Yd(e,t,l);case 4:return pe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ra(t,null,a,l):ht(e,t,a,l),t.child;case 11:return wd(e,t,t.type,t.pendingProps,l);case 7:return ht(e,t,t.pendingProps,l),t.child;case 8:return ht(e,t,t.pendingProps.children,l),t.child;case 12:return ht(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Gl(t,t.type,a.value),ht(e,t,a.children,l),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,ba(t),i=pt(i),a=a(i),t.flags|=1,ht(e,t,a,l),t.child;case 14:return Dd(e,t,t.type,t.pendingProps,l);case 15:return Md(e,t,t.type,t.pendingProps,l);case 19:return Xd(e,t,l);case 31:return Ay(e,t,l);case 22:return Ud(e,t,l,t.pendingProps);case 24:return ba(t),a=pt(Pe),e===null?(i=su(),i===null&&(i=ke,r=iu(),i.pooledCache=r,r.refCount++,r!==null&&(i.pooledCacheLanes|=l),i=r),t.memoizedState={parent:a,cache:i},ou(t),Gl(t,Pe,i)):((e.lanes&l)!==0&&(cu(e,t),Wn(t,null,null,l),Jn()),i=e.memoizedState,r=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Gl(t,Pe,a)):(a=r.cache,Gl(t,Pe,a),a!==i.cache&&nu(t,[Pe],l,!0))),ht(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Ol(e){e.flags|=4}function Qu(e,t,l,a,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(gp())e.flags|=8192;else throw ja=nr,uu}else e.flags&=-16777217}function Qd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!rh(t))if(gp())e.flags|=8192;else throw ja=nr,uu}function Sr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?jc():536870912,e.lanes|=t,fn|=t)}function li(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)l|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Ty(e,t,l){var a=t.pendingProps;switch(Ps(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return Ye(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Al(Pe),he(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&($a(t)?Ol(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,tu())),Ye(t),null;case 26:var i=t.type,r=t.memoizedState;return e===null?(Ol(t),r!==null?(Ye(t),Qd(t,r)):(Ye(t),Qu(t,i,null,a,l))):r?r!==e.memoizedState?(Ol(t),Ye(t),Qd(t,r)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Ol(t),Ye(t),Qu(t,i,e,a,l)),null;case 27:if(Fe(t),l=Z.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ol(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return Ye(t),null}e=W.current,$a(t)?Rf(t):(e=Ip(i,a,l),t.stateNode=e,Ol(t))}return Ye(t),null;case 5:if(Fe(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ol(t);else{if(!a){if(t.stateNode===null)throw Error(u(166));return Ye(t),null}if(r=W.current,$a(t))Rf(t);else{var d=Br(Z.current);switch(r){case 1:r=d.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:r=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":r=d.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":r=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":r=d.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?d.createElement(i,{is:a.is}):d.createElement(i)}}r[ft]=t,r[At]=a;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)r.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=r;e:switch(mt(r,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Ol(t)}}return Ye(t),Qu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Ol(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(u(166));if(e=Z.current,$a(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,i=dt,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[ft]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Yp(e.nodeValue,l)),e||Xl(t,!0)}else e=Br(e).createTextNode(a),e[ft]=t,t.stateNode=e}return Ye(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=$a(t),l!==null){if(e===null){if(!a)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ft]=t}else xa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else l=tu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Ht(t),t):(Ht(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Ye(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=$a(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(u(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(u(317));i[ft]=t}else xa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),i=!1}else i=tu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Ht(t),t):(Ht(t),null)}return Ht(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Sr(t,t.updateQueue),Ye(t),null);case 4:return he(),e===null&&ho(t.stateNode.containerInfo),Ye(t),null;case 10:return Al(t.type),Ye(t),null;case 19:if(U(Je),a=t.memoizedState,a===null)return Ye(t),null;if(i=(t.flags&128)!==0,r=a.rendering,r===null)if(i)li(a,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=ur(e),r!==null){for(t.flags|=128,li(a,!1),e=r.updateQueue,t.updateQueue=e,Sr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)vf(l,e),l=l.sibling;return K(Je,Je.current&1|2),Ce&&Rl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&jt()>Ar&&(t.flags|=128,i=!0,li(a,!1),t.lanes=4194304)}else{if(!i)if(e=ur(r),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Sr(t,e),li(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!Ce)return Ye(t),null}else 2*jt()-a.renderingStartTime>Ar&&l!==536870912&&(t.flags|=128,i=!0,li(a,!1),t.lanes=4194304);a.isBackwards?(r.sibling=t.child,t.child=r):(e=a.last,e!==null?e.sibling=r:t.child=r,a.last=r)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=jt(),e.sibling=null,l=Je.current,K(Je,i?l&1|2:l&1),Ce&&Rl(t,a.treeForkCount),e):(Ye(t),null);case 22:case 23:return Ht(t),hu(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),l=t.updateQueue,l!==null&&Sr(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&U(Sa),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Al(Pe),Ye(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function _y(e,t){switch(Ps(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Al(Pe),he(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Fe(t),null;case 31:if(t.memoizedState!==null){if(Ht(t),t.alternate===null)throw Error(u(340));xa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ht(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));xa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Je),null;case 4:return he(),null;case 10:return Al(t.type),null;case 22:case 23:return Ht(t),hu(),e!==null&&U(Sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Al(Pe),null;case 25:return null;default:return null}}function Fd(e,t){switch(Ps(t),t.tag){case 3:Al(Pe),he();break;case 26:case 27:case 5:Fe(t);break;case 4:he();break;case 31:t.memoizedState!==null&&Ht(t);break;case 13:Ht(t);break;case 19:U(Je);break;case 10:Al(t.type);break;case 22:case 23:Ht(t),hu(),e!==null&&U(Sa);break;case 24:Al(Pe)}}function ai(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&e)===e){a=void 0;var r=l.create,d=l.inst;a=r(),d.destroy=a}l=l.next}while(l!==i)}}catch(m){Me(t,t.return,m)}}function Wl(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var r=i.next;a=r;do{if((a.tag&e)===e){var d=a.inst,m=d.destroy;if(m!==void 0){d.destroy=void 0,i=t;var S=l,_=m;try{_()}catch(H){Me(i,S,H)}}}a=a.next}while(a!==r)}}catch(H){Me(t,t.return,H)}}function Zd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Lf(t,l)}catch(a){Me(e,e.return,a)}}}function Kd(e,t,l){l.props=Aa(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function ni(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(i){Me(e,t,i)}}function yl(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Me(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(i){Me(e,t,i)}else l.current=null}function Jd(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(i){Me(e,e.return,i)}}function Fu(e,t,l){try{var a=e.stateNode;$y(a,e.type,l,t),a[At]=t}catch(i){Me(e,e.return,i)}}function Wd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&aa(e.type)||e.tag===4}function Zu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wd(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&&aa(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 Ku(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Sl));else if(a!==4&&(a===27&&aa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ku(e,t,l),e=e.sibling;e!==null;)Ku(e,t,l),e=e.sibling}function Er(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&aa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Er(e,t,l),e=e.sibling;e!==null;)Er(e,t,l),e=e.sibling}function $d(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);mt(t,a,l),t[ft]=e,t[At]=l}catch(r){Me(e,e.return,r)}}var Nl=!1,lt=!1,Ju=!1,Id=typeof WeakSet=="function"?WeakSet:Set,st=null;function Oy(e,t){if(e=e.containerInfo,go=Xr,e=cf(e),Vs(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var i=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{l.nodeType,r.nodeType}catch{l=null;break e}var d=0,m=-1,S=-1,_=0,H=0,V=e,N=null;t:for(;;){for(var D;V!==l||i!==0&&V.nodeType!==3||(m=d+i),V!==r||a!==0&&V.nodeType!==3||(S=d+a),V.nodeType===3&&(d+=V.nodeValue.length),(D=V.firstChild)!==null;)N=V,V=D;for(;;){if(V===e)break t;if(N===l&&++_===i&&(m=d),N===r&&++H===a&&(S=d),(D=V.nextSibling)!==null)break;V=N,N=V.parentNode}V=D}l=m===-1||S===-1?null:{start:m,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(xo={focusedElem:e,selectionRange:l},Xr=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,r=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(l=0;l<e.length;l++)i=e[l],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,l=t,i=r.memoizedProps,r=r.memoizedState,a=l.stateNode;try{var ee=Aa(l.type,i);e=a.getSnapshotBeforeUpdate(ee,r),a.__reactInternalSnapshotBeforeUpdate=e}catch(ue){Me(l,l.return,ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)So(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":So(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,st=e;break}st=t.return}}function Pd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Dl(e,l),a&4&&ai(5,l);break;case 1:if(Dl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(d){Me(l,l.return,d)}else{var i=Aa(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Me(l,l.return,d)}}a&64&&Zd(l),a&512&&ni(l,l.return);break;case 3:if(Dl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Lf(e,t)}catch(d){Me(l,l.return,d)}}break;case 27:t===null&&a&4&&$d(l);case 26:case 5:Dl(e,l),t===null&&a&4&&Jd(l),a&512&&ni(l,l.return);break;case 12:Dl(e,l);break;case 31:Dl(e,l),a&4&&lp(e,l);break;case 13:Dl(e,l),a&4&&ap(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=ky.bind(null,l),ig(e,l))));break;case 22:if(a=l.memoizedState!==null||Nl,!a){t=t!==null&&t.memoizedState!==null||lt,i=Nl;var r=lt;Nl=a,(lt=t)&&!r?Ml(e,l,(l.subtreeFlags&8772)!==0):Dl(e,l),Nl=i,lt=r}break;case 30:break;default:Dl(e,l)}}function ep(e){var t=e.alternate;t!==null&&(e.alternate=null,ep(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cs(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 Ge=null,Tt=!1;function wl(e,t,l){for(l=l.child;l!==null;)tp(e,t,l),l=l.sibling}function tp(e,t,l){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(nl,l)}catch{}switch(l.tag){case 26:lt||yl(l,t),wl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:lt||yl(l,t);var a=Ge,i=Tt;aa(l.type)&&(Ge=l.stateNode,Tt=!1),wl(e,t,l),pi(l.stateNode),Ge=a,Tt=i;break;case 5:lt||yl(l,t);case 6:if(a=Ge,i=Tt,Ge=null,wl(e,t,l),Ge=a,Tt=i,Ge!==null)if(Tt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(l.stateNode)}catch(r){Me(l,t,r)}else try{Ge.removeChild(l.stateNode)}catch(r){Me(l,t,r)}break;case 18:Ge!==null&&(Tt?(e=Ge,Zp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),vn(e)):Zp(Ge,l.stateNode));break;case 4:a=Ge,i=Tt,Ge=l.stateNode.containerInfo,Tt=!0,wl(e,t,l),Ge=a,Tt=i;break;case 0:case 11:case 14:case 15:Wl(2,l,t),lt||Wl(4,l,t),wl(e,t,l);break;case 1:lt||(yl(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Kd(l,t,a)),wl(e,t,l);break;case 21:wl(e,t,l);break;case 22:lt=(a=lt)||l.memoizedState!==null,wl(e,t,l),lt=a;break;default:wl(e,t,l)}}function lp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{vn(e)}catch(l){Me(t,t.return,l)}}}function ap(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{vn(e)}catch(l){Me(t,t.return,l)}}function Ny(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Id),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Id),t;default:throw Error(u(435,e.tag))}}function jr(e,t){var l=Ny(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var i=qy.bind(null,e,a);a.then(i,i)}})}function _t(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var i=l[a],r=e,d=t,m=d;e:for(;m!==null;){switch(m.tag){case 27:if(aa(m.type)){Ge=m.stateNode,Tt=!1;break e}break;case 5:Ge=m.stateNode,Tt=!1;break e;case 3:case 4:Ge=m.stateNode.containerInfo,Tt=!0;break e}m=m.return}if(Ge===null)throw Error(u(160));tp(r,d,i),Ge=null,Tt=!1,r=i.alternate,r!==null&&(r.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)np(t,e),t=t.sibling}var rl=null;function np(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_t(t,e),Ot(e),a&4&&(Wl(3,e,e.return),ai(3,e),Wl(5,e,e.return));break;case 1:_t(t,e),Ot(e),a&512&&(lt||l===null||yl(l,l.return)),a&64&&Nl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var i=rl;if(_t(t,e),Ot(e),a&512&&(lt||l===null||yl(l,l.return)),a&4){var r=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":r=i.getElementsByTagName("title")[0],(!r||r[Nn]||r[ft]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=i.createElement(a),i.head.insertBefore(r,i.querySelector("head > title"))),mt(r,a,l),r[ft]=e,rt(r),a=r;break e;case"link":var d=nh("link","href",i).get(a+(l.href||""));if(d){for(var m=0;m<d.length;m++)if(r=d[m],r.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&r.getAttribute("rel")===(l.rel==null?null:l.rel)&&r.getAttribute("title")===(l.title==null?null:l.title)&&r.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){d.splice(m,1);break t}}r=i.createElement(a),mt(r,a,l),i.head.appendChild(r);break;case"meta":if(d=nh("meta","content",i).get(a+(l.content||""))){for(m=0;m<d.length;m++)if(r=d[m],r.getAttribute("content")===(l.content==null?null:""+l.content)&&r.getAttribute("name")===(l.name==null?null:l.name)&&r.getAttribute("property")===(l.property==null?null:l.property)&&r.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&r.getAttribute("charset")===(l.charSet==null?null:l.charSet)){d.splice(m,1);break t}}r=i.createElement(a),mt(r,a,l),i.head.appendChild(r);break;default:throw Error(u(468,a))}r[ft]=e,rt(r),a=r}e.stateNode=a}else ih(i,e.type,e.stateNode);else e.stateNode=ah(i,a,e.memoizedProps);else r!==a?(r===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):r.count--,a===null?ih(i,e.type,e.stateNode):ah(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Fu(e,e.memoizedProps,l.memoizedProps)}break;case 27:_t(t,e),Ot(e),a&512&&(lt||l===null||yl(l,l.return)),l!==null&&a&4&&Fu(e,e.memoizedProps,l.memoizedProps);break;case 5:if(_t(t,e),Ot(e),a&512&&(lt||l===null||yl(l,l.return)),e.flags&32){i=e.stateNode;try{Ya(i,"")}catch(ee){Me(e,e.return,ee)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,Fu(e,i,l!==null?l.memoizedProps:i)),a&1024&&(Ju=!0);break;case 6:if(_t(t,e),Ot(e),a&4){if(e.stateNode===null)throw Error(u(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(ee){Me(e,e.return,ee)}}break;case 3:if(kr=null,i=rl,rl=Lr(t.containerInfo),_t(t,e),rl=i,Ot(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{vn(t.containerInfo)}catch(ee){Me(e,e.return,ee)}Ju&&(Ju=!1,ip(e));break;case 4:a=rl,rl=Lr(e.stateNode.containerInfo),_t(t,e),Ot(e),rl=a;break;case 12:_t(t,e),Ot(e);break;case 31:_t(t,e),Ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,jr(e,a)));break;case 13:_t(t,e),Ot(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Cr=jt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,jr(e,a)));break;case 22:i=e.memoizedState!==null;var S=l!==null&&l.memoizedState!==null,_=Nl,H=lt;if(Nl=_||i,lt=H||S,_t(t,e),lt=H,Nl=_,Ot(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(l===null||S||Nl||lt||za(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){S=l=t;try{if(r=S.stateNode,i)d=r.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{m=S.stateNode;var V=S.memoizedProps.style,N=V!=null&&V.hasOwnProperty("display")?V.display:null;m.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(ee){Me(S,S.return,ee)}}}else if(t.tag===6){if(l===null){S=t;try{S.stateNode.nodeValue=i?"":S.memoizedProps}catch(ee){Me(S,S.return,ee)}}}else if(t.tag===18){if(l===null){S=t;try{var D=S.stateNode;i?Kp(D,!0):Kp(S.stateNode,!1)}catch(ee){Me(S,S.return,ee)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,jr(e,l))));break;case 19:_t(t,e),Ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,jr(e,a)));break;case 30:break;case 21:break;default:_t(t,e),Ot(e)}}function Ot(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Wd(a)){l=a;break}a=a.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var i=l.stateNode,r=Zu(e);Er(e,r,i);break;case 5:var d=l.stateNode;l.flags&32&&(Ya(d,""),l.flags&=-33);var m=Zu(e);Er(e,m,d);break;case 3:case 4:var S=l.stateNode.containerInfo,_=Zu(e);Ku(e,_,S);break;default:throw Error(u(161))}}catch(H){Me(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ip(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ip(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Dl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Pd(e,t.alternate,t),t=t.sibling}function za(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wl(4,t,t.return),za(t);break;case 1:yl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Kd(t,t.return,l),za(t);break;case 27:pi(t.stateNode);case 26:case 5:yl(t,t.return),za(t);break;case 22:t.memoizedState===null&&za(t);break;case 30:za(t);break;default:za(t)}e=e.sibling}}function Ml(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,r=t,d=r.flags;switch(r.tag){case 0:case 11:case 15:Ml(i,r,l),ai(4,r);break;case 1:if(Ml(i,r,l),a=r,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(_){Me(a,a.return,_)}if(a=r,i=a.updateQueue,i!==null){var m=a.stateNode;try{var S=i.shared.hiddenCallbacks;if(S!==null)for(i.shared.hiddenCallbacks=null,i=0;i<S.length;i++)Bf(S[i],m)}catch(_){Me(a,a.return,_)}}l&&d&64&&Zd(r),ni(r,r.return);break;case 27:$d(r);case 26:case 5:Ml(i,r,l),l&&a===null&&d&4&&Jd(r),ni(r,r.return);break;case 12:Ml(i,r,l);break;case 31:Ml(i,r,l),l&&d&4&&lp(i,r);break;case 13:Ml(i,r,l),l&&d&4&&ap(i,r);break;case 22:r.memoizedState===null&&Ml(i,r,l),ni(r,r.return);break;case 30:break;default:Ml(i,r,l)}t=t.sibling}}function Wu(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Gn(l))}function $u(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Gn(e))}function sl(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)rp(e,t,l,a),t=t.sibling}function rp(e,t,l,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:sl(e,t,l,a),i&2048&&ai(9,t);break;case 1:sl(e,t,l,a);break;case 3:sl(e,t,l,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Gn(e)));break;case 12:if(i&2048){sl(e,t,l,a),e=t.stateNode;try{var r=t.memoizedProps,d=r.id,m=r.onPostCommit;typeof m=="function"&&m(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Me(t,t.return,S)}}else sl(e,t,l,a);break;case 31:sl(e,t,l,a);break;case 13:sl(e,t,l,a);break;case 23:break;case 22:r=t.stateNode,d=t.alternate,t.memoizedState!==null?r._visibility&2?sl(e,t,l,a):ii(e,t):r._visibility&2?sl(e,t,l,a):(r._visibility|=2,un(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&Wu(d,t);break;case 24:sl(e,t,l,a),i&2048&&$u(t.alternate,t);break;default:sl(e,t,l,a)}}function un(e,t,l,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,d=t,m=l,S=a,_=d.flags;switch(d.tag){case 0:case 11:case 15:un(r,d,m,S,i),ai(8,d);break;case 23:break;case 22:var H=d.stateNode;d.memoizedState!==null?H._visibility&2?un(r,d,m,S,i):ii(r,d):(H._visibility|=2,un(r,d,m,S,i)),i&&_&2048&&Wu(d.alternate,d);break;case 24:un(r,d,m,S,i),i&&_&2048&&$u(d.alternate,d);break;default:un(r,d,m,S,i)}t=t.sibling}}function ii(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,i=a.flags;switch(a.tag){case 22:ii(l,a),i&2048&&Wu(a.alternate,a);break;case 24:ii(l,a),i&2048&&$u(a.alternate,a);break;default:ii(l,a)}t=t.sibling}}var ri=8192;function on(e,t,l){if(e.subtreeFlags&ri)for(e=e.child;e!==null;)sp(e,t,l),e=e.sibling}function sp(e,t,l){switch(e.tag){case 26:on(e,t,l),e.flags&ri&&e.memoizedState!==null&&gg(l,rl,e.memoizedState,e.memoizedProps);break;case 5:on(e,t,l);break;case 3:case 4:var a=rl;rl=Lr(e.stateNode.containerInfo),on(e,t,l),rl=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ri,ri=16777216,on(e,t,l),ri=a):on(e,t,l));break;default:on(e,t,l)}}function up(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 si(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];st=a,cp(a,e)}up(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)op(e),e=e.sibling}function op(e){switch(e.tag){case 0:case 11:case 15:si(e),e.flags&2048&&Wl(9,e,e.return);break;case 3:si(e);break;case 12:si(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rr(e)):si(e);break;default:si(e)}}function Rr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];st=a,cp(a,e)}up(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wl(8,t,t.return),Rr(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Rr(t));break;default:Rr(t)}e=e.sibling}}function cp(e,t){for(;st!==null;){var l=st;switch(l.tag){case 0:case 11:case 15:Wl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Gn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,st=a;else e:for(l=e;st!==null;){a=st;var i=a.sibling,r=a.return;if(ep(a),a===l){st=null;break e}if(i!==null){i.return=r,st=i;break e}st=r}}}var wy={getCacheForType:function(e){var t=pt(Pe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return pt(Pe).controller.signal}},Dy=typeof WeakMap=="function"?WeakMap:Map,we=0,ke=null,ve=null,je=0,De=0,kt=null,$l=!1,cn=!1,Iu=!1,Ul=0,Ke=0,Il=0,Ta=0,Pu=0,qt=0,fn=0,ui=null,Nt=null,eo=!1,Cr=0,fp=0,Ar=1/0,zr=null,Pl=null,nt=0,ea=null,dn=null,Bl=0,to=0,lo=null,dp=null,oi=0,ao=null;function Yt(){return(we&2)!==0&&je!==0?je&-je:M.T!==null?oo():zc()}function pp(){if(qt===0)if((je&536870912)===0||Ce){var e=Ui;Ui<<=1,(Ui&3932160)===0&&(Ui=262144),qt=e}else qt=536870912;return e=Lt.current,e!==null&&(e.flags|=32),qt}function wt(e,t,l){(e===ke&&(De===2||De===9)||e.cancelPendingCommit!==null)&&(pn(e,0),ta(e,je,qt,!1)),On(e,l),((we&2)===0||e!==ke)&&(e===ke&&((we&2)===0&&(Ta|=l),Ke===4&&ta(e,je,qt,!1)),gl(e))}function hp(e,t,l){if((we&6)!==0)throw Error(u(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||_n(e,t),i=a?By(e,t):io(e,t,!0),r=a;do{if(i===0){cn&&!a&&ta(e,t,0,!1);break}else{if(l=e.current.alternate,r&&!My(l)){i=io(e,t,!1),r=!1;continue}if(i===2){if(r=t,e.errorRecoveryDisabledLanes&r)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var m=e;i=ui;var S=m.current.memoizedState.isDehydrated;if(S&&(pn(m,d).flags|=256),d=io(m,d,!1),d!==2){if(Iu&&!S){m.errorRecoveryDisabledLanes|=r,Ta|=r,i=4;break e}r=Nt,Nt=i,r!==null&&(Nt===null?Nt=r:Nt.push.apply(Nt,r))}i=d}if(r=!1,i!==2)continue}}if(i===1){pn(e,0),ta(e,t,0,!0);break}e:{switch(a=e,r=i,r){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:ta(a,t,qt,!$l);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(i=Cr+300-jt(),10<i)){if(ta(a,t,qt,!$l),Li(a,0,!0)!==0)break e;Bl=t,a.timeoutHandle=Qp(mp.bind(null,a,l,Nt,zr,eo,t,qt,Ta,fn,$l,r,"Throttled",-0,0),i);break e}mp(a,l,Nt,zr,eo,t,qt,Ta,fn,$l,r,null,-0,0)}}break}while(!0);gl(e)}function mp(e,t,l,a,i,r,d,m,S,_,H,V,N,D){if(e.timeoutHandle=-1,V=t.subtreeFlags,V&8192||(V&16785408)===16785408){V={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sl},sp(t,r,V);var ee=(r&62914560)===r?Cr-jt():(r&4194048)===r?fp-jt():0;if(ee=xg(V,ee),ee!==null){Bl=r,e.cancelPendingCommit=ee(jp.bind(null,e,t,r,l,a,i,d,m,S,H,V,null,N,D)),ta(e,r,d,!_);return}}jp(e,t,r,l,a,i,d,m,S)}function My(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var i=l[a],r=i.getSnapshot;i=i.value;try{if(!Ut(r(),i))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 ta(e,t,l,a){t&=~Pu,t&=~Ta,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var r=31-xt(i),d=1<<r;a[r]=-1,i&=~d}l!==0&&Rc(e,l,t)}function Tr(){return(we&6)===0?(ci(0),!1):!0}function no(){if(ve!==null){if(De===0)var e=ve.return;else e=ve,Cl=va=null,bu(e),ln=null,Fn=0,e=ve;for(;e!==null;)Fd(e.alternate,e),e=e.return;ve=null}}function pn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,eg(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Bl=0,no(),ke=e,ve=l=jl(e.current,null),je=t,De=0,kt=null,$l=!1,cn=_n(e,t),Iu=!1,fn=qt=Pu=Ta=Il=Ke=0,Nt=ui=null,eo=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-xt(a),r=1<<i;t|=e[i],a&=~r}return Ul=t,Ji(),l}function yp(e,t){me=null,M.H=ei,t===tn||t===ar?(t=wf(),De=3):t===uu?(t=wf(),De=4):De=t===Bu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,kt=t,ve===null&&(Ke=1,gr(e,Zt(t,e.current)))}function gp(){var e=Lt.current;return e===null?!0:(je&4194048)===je?$t===null:(je&62914560)===je||(je&536870912)!==0?e===$t:!1}function xp(){var e=M.H;return M.H=ei,e===null?ei:e}function vp(){var e=M.A;return M.A=wy,e}function _r(){Ke=4,$l||(je&4194048)!==je&&Lt.current!==null||(cn=!0),(Il&134217727)===0&&(Ta&134217727)===0||ke===null||ta(ke,je,qt,!1)}function io(e,t,l){var a=we;we|=2;var i=xp(),r=vp();(ke!==e||je!==t)&&(zr=null,pn(e,t)),t=!1;var d=Ke;e:do try{if(De!==0&&ve!==null){var m=ve,S=kt;switch(De){case 8:no(),d=6;break e;case 3:case 2:case 9:case 6:Lt.current===null&&(t=!0);var _=De;if(De=0,kt=null,hn(e,m,S,_),l&&cn){d=0;break e}break;default:_=De,De=0,kt=null,hn(e,m,S,_)}}Uy(),d=Ke;break}catch(H){yp(e,H)}while(!0);return t&&e.shellSuspendCounter++,Cl=va=null,we=a,M.H=i,M.A=r,ve===null&&(ke=null,je=0,Ji()),d}function Uy(){for(;ve!==null;)bp(ve)}function By(e,t){var l=we;we|=2;var a=xp(),i=vp();ke!==e||je!==t?(zr=null,Ar=jt()+500,pn(e,t)):cn=_n(e,t);e:do try{if(De!==0&&ve!==null){t=ve;var r=kt;t:switch(De){case 1:De=0,kt=null,hn(e,t,r,1);break;case 2:case 9:if(Of(r)){De=0,kt=null,Sp(t);break}t=function(){De!==2&&De!==9||ke!==e||(De=7),gl(e)},r.then(t,t);break e;case 3:De=7;break e;case 4:De=5;break e;case 7:Of(r)?(De=0,kt=null,Sp(t)):(De=0,kt=null,hn(e,t,r,7));break;case 5:var d=null;switch(ve.tag){case 26:d=ve.memoizedState;case 5:case 27:var m=ve;if(d?rh(d):m.stateNode.complete){De=0,kt=null;var S=m.sibling;if(S!==null)ve=S;else{var _=m.return;_!==null?(ve=_,Or(_)):ve=null}break t}}De=0,kt=null,hn(e,t,r,5);break;case 6:De=0,kt=null,hn(e,t,r,6);break;case 8:no(),Ke=6;break e;default:throw Error(u(462))}}Ly();break}catch(H){yp(e,H)}while(!0);return Cl=va=null,M.H=a,M.A=i,we=l,ve!==null?0:(ke=null,je=0,Ji(),Ke)}function Ly(){for(;ve!==null&&!pl();)bp(ve)}function bp(e){var t=Gd(e.alternate,e,Ul);e.memoizedProps=e.pendingProps,t===null?Or(e):ve=t}function Sp(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Hd(l,t,t.pendingProps,t.type,void 0,je);break;case 11:t=Hd(l,t,t.pendingProps,t.type.render,t.ref,je);break;case 5:bu(t);default:Fd(l,t),t=ve=vf(t,Ul),t=Gd(l,t,Ul)}e.memoizedProps=e.pendingProps,t===null?Or(e):ve=t}function hn(e,t,l,a){Cl=va=null,bu(t),ln=null,Fn=0;var i=t.return;try{if(Cy(e,i,t,l,je)){Ke=1,gr(e,Zt(l,e.current)),ve=null;return}}catch(r){if(i!==null)throw ve=i,r;Ke=1,gr(e,Zt(l,e.current)),ve=null;return}t.flags&32768?(Ce||a===1?e=!0:cn||(je&536870912)!==0?e=!1:($l=e=!0,(a===2||a===9||a===3||a===6)&&(a=Lt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Ep(t,e)):Or(t)}function Or(e){var t=e;do{if((t.flags&32768)!==0){Ep(t,$l);return}e=t.return;var l=Ty(t.alternate,t,Ul);if(l!==null){ve=l;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);Ke===0&&(Ke=5)}function Ep(e,t){do{var l=_y(e.alternate,e);if(l!==null){l.flags&=32767,ve=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ve=e;return}ve=e=l}while(e!==null);Ke=6,ve=null}function jp(e,t,l,a,i,r,d,m,S){e.cancelPendingCommit=null;do Nr();while(nt!==0);if((we&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(r=t.lanes|t.childLanes,r|=Zs,y0(e,l,r,d,m,S),e===ke&&(ve=ke=null,je=0),dn=t,ea=e,Bl=l,to=r,lo=i,dp=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Yy(Ue,function(){return Tp(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null,i=J.p,J.p=2,d=we,we|=4;try{Oy(e,t,l)}finally{we=d,J.p=i,M.T=a}}nt=1,Rp(),Cp(),Ap()}}function Rp(){if(nt===1){nt=0;var e=ea,t=dn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var a=J.p;J.p=2;var i=we;we|=4;try{np(t,e);var r=xo,d=cf(e.containerInfo),m=r.focusedElem,S=r.selectionRange;if(d!==m&&m&&m.ownerDocument&&of(m.ownerDocument.documentElement,m)){if(S!==null&&Vs(m)){var _=S.start,H=S.end;if(H===void 0&&(H=_),"selectionStart"in m)m.selectionStart=_,m.selectionEnd=Math.min(H,m.value.length);else{var V=m.ownerDocument||document,N=V&&V.defaultView||window;if(N.getSelection){var D=N.getSelection(),ee=m.textContent.length,ue=Math.min(S.start,ee),He=S.end===void 0?ue:Math.min(S.end,ee);!D.extend&&ue>He&&(d=He,He=ue,ue=d);var z=uf(m,ue),C=uf(m,He);if(z&&C&&(D.rangeCount!==1||D.anchorNode!==z.node||D.anchorOffset!==z.offset||D.focusNode!==C.node||D.focusOffset!==C.offset)){var T=V.createRange();T.setStart(z.node,z.offset),D.removeAllRanges(),ue>He?(D.addRange(T),D.extend(C.node,C.offset)):(T.setEnd(C.node,C.offset),D.addRange(T))}}}}for(V=[],D=m;D=D.parentNode;)D.nodeType===1&&V.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<V.length;m++){var q=V[m];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Xr=!!go,xo=go=null}finally{we=i,J.p=a,M.T=l}}e.current=t,nt=2}}function Cp(){if(nt===2){nt=0;var e=ea,t=dn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=J.p;J.p=2;var i=we;we|=4;try{Pd(e,t.alternate,t)}finally{we=i,J.p=a,M.T=l}}nt=3}}function Ap(){if(nt===4||nt===3){nt=0,Di();var e=ea,t=dn,l=Bl,a=dp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,dn=ea=null,zp(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Pl=null),js(l),t=t.stateNode,ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(nl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,i=J.p,J.p=2,M.T=null;try{for(var r=e.onRecoverableError,d=0;d<a.length;d++){var m=a[d];r(m.value,{componentStack:m.stack})}}finally{M.T=t,J.p=i}}(Bl&3)!==0&&Nr(),gl(e),i=e.pendingLanes,(l&261930)!==0&&(i&42)!==0?e===ao?oi++:(oi=0,ao=e):oi=0,ci(0)}}function zp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Gn(t)))}function Nr(){return Rp(),Cp(),Ap(),Tp()}function Tp(){if(nt!==5)return!1;var e=ea,t=to;to=0;var l=js(Bl),a=M.T,i=J.p;try{J.p=32>l?32:l,M.T=null,l=lo,lo=null;var r=ea,d=Bl;if(nt=0,dn=ea=null,Bl=0,(we&6)!==0)throw Error(u(331));var m=we;if(we|=4,op(r.current),rp(r,r.current,d,l),we=m,ci(0,!1),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(nl,r)}catch{}return!0}finally{J.p=i,M.T=a,zp(e,t)}}function _p(e,t,l){t=Zt(l,t),t=Uu(e.stateNode,t,2),e=Zl(e,t,2),e!==null&&(On(e,2),gl(e))}function Me(e,t,l){if(e.tag===3)_p(e,e,l);else for(;t!==null;){if(t.tag===3){_p(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Pl===null||!Pl.has(a))){e=Zt(l,e),l=Od(2),a=Zl(t,l,2),a!==null&&(Nd(l,a,t,e),On(a,2),gl(a));break}}t=t.return}}function ro(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Dy;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(l)||(Iu=!0,i.add(l),e=Hy.bind(null,e,t,l),t.then(e,e))}function Hy(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,ke===e&&(je&l)===l&&(Ke===4||Ke===3&&(je&62914560)===je&&300>jt()-Cr?(we&2)===0&&pn(e,0):Pu|=l,fn===je&&(fn=0)),gl(e)}function Op(e,t){t===0&&(t=jc()),e=ya(e,t),e!==null&&(On(e,t),gl(e))}function ky(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Op(e,l)}function qy(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(l=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(u(314))}a!==null&&a.delete(t),Op(e,l)}function Yy(e,t){return ll(e,t)}var wr=null,mn=null,so=!1,Dr=!1,uo=!1,la=0;function gl(e){e!==mn&&e.next===null&&(mn===null?wr=mn=e:mn=mn.next=e),Dr=!0,so||(so=!0,Xy())}function ci(e,t){if(!uo&&Dr){uo=!0;do for(var l=!1,a=wr;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var r=0;else{var d=a.suspendedLanes,m=a.pingedLanes;r=(1<<31-xt(42|e)+1)-1,r&=i&~(d&~m),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(l=!0,Mp(a,r))}else r=je,r=Li(a,a===ke?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(r&3)===0||_n(a,r)||(l=!0,Mp(a,r));a=a.next}while(l);uo=!1}}function Vy(){Np()}function Np(){Dr=so=!1;var e=0;la!==0&&Py()&&(e=la);for(var t=jt(),l=null,a=wr;a!==null;){var i=a.next,r=wp(a,t);r===0?(a.next=null,l===null?wr=i:l.next=i,i===null&&(mn=l)):(l=a,(e!==0||(r&3)!==0)&&(Dr=!0)),a=i}nt!==0&&nt!==5||ci(e),la!==0&&(la=0)}function wp(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var d=31-xt(r),m=1<<d,S=i[d];S===-1?((m&l)===0||(m&a)!==0)&&(i[d]=m0(m,t)):S<=t&&(e.expiredLanes|=m),r&=~m}if(t=ke,l=je,l=Li(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(De===2||De===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&ca(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||_n(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&ca(a),js(l)){case 2:case 8:l=ye;break;case 32:l=Ue;break;case 268435456:l=at;break;default:l=Ue}return a=Dp.bind(null,e),l=ll(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&ca(a),e.callbackPriority=2,e.callbackNode=null,2}function Dp(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Nr()&&e.callbackNode!==l)return null;var a=je;return a=Li(e,e===ke?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(hp(e,a,t),wp(e,jt()),e.callbackNode!=null&&e.callbackNode===l?Dp.bind(null,e):null)}function Mp(e,t){if(Nr())return null;hp(e,t,!0)}function Xy(){tg(function(){(we&6)!==0?ll(Q,Vy):Np()})}function oo(){if(la===0){var e=Pa;e===0&&(e=Mi,Mi<<=1,(Mi&261888)===0&&(Mi=256)),la=e}return la}function Up(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Yi(""+e)}function Bp(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Gy(e,t,l,a,i){if(t==="submit"&&l&&l.stateNode===i){var r=Up((i[At]||null).action),d=a.submitter;d&&(t=(t=d[At]||null)?Up(t.formAction):d.getAttribute("formAction"),t!==null&&(r=t,d=null));var m=new Qi("action","action",null,a,i);e.push({event:m,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(la!==0){var S=d?Bp(i,d):new FormData(i);_u(l,{pending:!0,data:S,method:i.method,action:r},null,S)}}else typeof r=="function"&&(m.preventDefault(),S=d?Bp(i,d):new FormData(i),_u(l,{pending:!0,data:S,method:i.method,action:r},r,S))},currentTarget:i}]})}}for(var co=0;co<Fs.length;co++){var fo=Fs[co],Qy=fo.toLowerCase(),Fy=fo[0].toUpperCase()+fo.slice(1);il(Qy,"on"+Fy)}il(pf,"onAnimationEnd"),il(hf,"onAnimationIteration"),il(mf,"onAnimationStart"),il("dblclick","onDoubleClick"),il("focusin","onFocus"),il("focusout","onBlur"),il(uy,"onTransitionRun"),il(oy,"onTransitionStart"),il(cy,"onTransitionCancel"),il(yf,"onTransitionEnd"),ka("onMouseEnter",["mouseout","mouseover"]),ka("onMouseLeave",["mouseout","mouseover"]),ka("onPointerEnter",["pointerout","pointerover"]),ka("onPointerLeave",["pointerout","pointerover"]),da("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),da("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),da("onBeforeInput",["compositionend","keypress","textInput","paste"]),da("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),da("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),da("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fi="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(" "),Zy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fi));function Lp(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],i=a.event;a=a.listeners;e:{var r=void 0;if(t)for(var d=a.length-1;0<=d;d--){var m=a[d],S=m.instance,_=m.currentTarget;if(m=m.listener,S!==r&&i.isPropagationStopped())break e;r=m,i.currentTarget=_;try{r(i)}catch(H){Ki(H)}i.currentTarget=null,r=S}else for(d=0;d<a.length;d++){if(m=a[d],S=m.instance,_=m.currentTarget,m=m.listener,S!==r&&i.isPropagationStopped())break e;r=m,i.currentTarget=_;try{r(i)}catch(H){Ki(H)}i.currentTarget=null,r=S}}}}function be(e,t){var l=t[Rs];l===void 0&&(l=t[Rs]=new Set);var a=e+"__bubble";l.has(a)||(Hp(t,e,2,!1),l.add(a))}function po(e,t,l){var a=0;t&&(a|=4),Hp(l,e,a,t)}var Mr="_reactListening"+Math.random().toString(36).slice(2);function ho(e){if(!e[Mr]){e[Mr]=!0,Oc.forEach(function(l){l!=="selectionchange"&&(Zy.has(l)||po(l,!1,e),po(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mr]||(t[Mr]=!0,po("selectionchange",!1,t))}}function Hp(e,t,l,a){switch(ph(t)){case 2:var i=Sg;break;case 8:i=Eg;break;default:i=_o}l=i.bind(null,t,l,e),i=void 0,!Ds||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,l,{capture:!0,passive:i}):e.addEventListener(t,l,!0):i!==void 0?e.addEventListener(t,l,{passive:i}):e.addEventListener(t,l,!1)}function mo(e,t,l,a,i){var r=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var m=a.stateNode.containerInfo;if(m===i)break;if(d===4)for(d=a.return;d!==null;){var S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===i)return;d=d.return}for(;m!==null;){if(d=Ba(m),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){a=r=d;continue e}m=m.parentNode}}a=a.return}Vc(function(){var _=r,H=Ns(l),V=[];e:{var N=gf.get(e);if(N!==void 0){var D=Qi,ee=e;switch(e){case"keypress":if(Xi(l)===0)break e;case"keydown":case"keyup":D=q0;break;case"focusin":ee="focus",D=Ls;break;case"focusout":ee="blur",D=Ls;break;case"beforeblur":case"afterblur":D=Ls;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=Qc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=T0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=X0;break;case pf:case hf:case mf:D=N0;break;case yf:D=Q0;break;case"scroll":case"scrollend":D=A0;break;case"wheel":D=Z0;break;case"copy":case"cut":case"paste":D=D0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=Zc;break;case"toggle":case"beforetoggle":D=J0}var ue=(t&4)!==0,He=!ue&&(e==="scroll"||e==="scrollend"),z=ue?N!==null?N+"Capture":null:N;ue=[];for(var C=_,T;C!==null;){var q=C;if(T=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||T===null||z===null||(q=Dn(C,z),q!=null&&ue.push(di(C,q,T))),He)break;C=C.return}0<ue.length&&(N=new D(N,ee,null,l,H),V.push({event:N,listeners:ue}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",N&&l!==Os&&(ee=l.relatedTarget||l.fromElement)&&(Ba(ee)||ee[Ua]))break e;if((D||N)&&(N=H.window===H?H:(N=H.ownerDocument)?N.defaultView||N.parentWindow:window,D?(ee=l.relatedTarget||l.toElement,D=_,ee=ee?Ba(ee):null,ee!==null&&(He=p(ee),ue=ee.tag,ee!==He||ue!==5&&ue!==27&&ue!==6)&&(ee=null)):(D=null,ee=_),D!==ee)){if(ue=Qc,q="onMouseLeave",z="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(ue=Zc,q="onPointerLeave",z="onPointerEnter",C="pointer"),He=D==null?N:wn(D),T=ee==null?N:wn(ee),N=new ue(q,C+"leave",D,l,H),N.target=He,N.relatedTarget=T,q=null,Ba(H)===_&&(ue=new ue(z,C+"enter",ee,l,H),ue.target=T,ue.relatedTarget=He,q=ue),He=q,D&&ee)t:{for(ue=Ky,z=D,C=ee,T=0,q=z;q;q=ue(q))T++;q=0;for(var re=C;re;re=ue(re))q++;for(;0<T-q;)z=ue(z),T--;for(;0<q-T;)C=ue(C),q--;for(;T--;){if(z===C||C!==null&&z===C.alternate){ue=z;break t}z=ue(z),C=ue(C)}ue=null}else ue=null;D!==null&&kp(V,N,D,ue,!1),ee!==null&&He!==null&&kp(V,He,ee,ue,!0)}}e:{if(N=_?wn(_):window,D=N.nodeName&&N.nodeName.toLowerCase(),D==="select"||D==="input"&&N.type==="file")var _e=tf;else if(Pc(N))if(lf)_e=iy;else{_e=ay;var ne=ly}else D=N.nodeName,!D||D.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?_&&_s(_.elementType)&&(_e=tf):_e=ny;if(_e&&(_e=_e(e,_))){ef(V,_e,l,H);break e}ne&&ne(e,N,_),e==="focusout"&&_&&N.type==="number"&&_.memoizedProps.value!=null&&Ts(N,"number",N.value)}switch(ne=_?wn(_):window,e){case"focusin":(Pc(ne)||ne.contentEditable==="true")&&(Qa=ne,Xs=_,Yn=null);break;case"focusout":Yn=Xs=Qa=null;break;case"mousedown":Gs=!0;break;case"contextmenu":case"mouseup":case"dragend":Gs=!1,ff(V,l,H);break;case"selectionchange":if(sy)break;case"keydown":case"keyup":ff(V,l,H)}var ge;if(ks)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else Ga?$c(e,l)&&(Re="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Re="onCompositionStart");Re&&(Kc&&l.locale!=="ko"&&(Ga||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&Ga&&(ge=Xc()):(ql=H,Ms="value"in ql?ql.value:ql.textContent,Ga=!0)),ne=Ur(_,Re),0<ne.length&&(Re=new Fc(Re,e,null,l,H),V.push({event:Re,listeners:ne}),ge?Re.data=ge:(ge=Ic(l),ge!==null&&(Re.data=ge)))),(ge=$0?I0(e,l):P0(e,l))&&(Re=Ur(_,"onBeforeInput"),0<Re.length&&(ne=new Fc("onBeforeInput","beforeinput",null,l,H),V.push({event:ne,listeners:Re}),ne.data=ge)),Gy(V,e,_,l,H)}Lp(V,t)})}function di(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Ur(e,t){for(var l=t+"Capture",a=[];e!==null;){var i=e,r=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||r===null||(i=Dn(e,l),i!=null&&a.unshift(di(e,i,r)),i=Dn(e,t),i!=null&&a.push(di(e,i,r))),e.tag===3)return a;e=e.return}return[]}function Ky(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function kp(e,t,l,a,i){for(var r=t._reactName,d=[];l!==null&&l!==a;){var m=l,S=m.alternate,_=m.stateNode;if(m=m.tag,S!==null&&S===a)break;m!==5&&m!==26&&m!==27||_===null||(S=_,i?(_=Dn(l,r),_!=null&&d.unshift(di(l,_,S))):i||(_=Dn(l,r),_!=null&&d.push(di(l,_,S)))),l=l.return}d.length!==0&&e.push({event:t,listeners:d})}var Jy=/\r\n?/g,Wy=/\u0000|\uFFFD/g;function qp(e){return(typeof e=="string"?e:""+e).replace(Jy,`
`).replace(Wy,"")}function Yp(e,t){return t=qp(t),qp(e)===t}function Le(e,t,l,a,i,r){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Ya(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Ya(e,""+a);break;case"className":ki(e,"class",a);break;case"tabIndex":ki(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ki(e,l,a);break;case"style":qc(e,a,r);break;case"data":if(t!=="object"){ki(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Yi(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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 r=="function"&&(l==="formAction"?(t!=="input"&&Le(e,t,"name",i.name,i,null),Le(e,t,"formEncType",i.formEncType,i,null),Le(e,t,"formMethod",i.formMethod,i,null),Le(e,t,"formTarget",i.formTarget,i,null)):(Le(e,t,"encType",i.encType,i,null),Le(e,t,"method",i.method,i,null),Le(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Yi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Sl);break;case"onScroll":a!=null&&be("scroll",e);break;case"onScrollEnd":a!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Yi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":be("beforetoggle",e),be("toggle",e),Hi(e,"popover",a);break;case"xlinkActuate":bl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":bl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":bl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":bl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":bl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":bl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":bl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":bl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":bl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Hi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=R0.get(l)||l,Hi(e,l,a))}}function yo(e,t,l,a,i,r){switch(l){case"style":qc(e,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(u(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Ya(e,a):(typeof a=="number"||typeof a=="bigint")&&Ya(e,""+a);break;case"onScroll":a!=null&&be("scroll",e);break;case"onScrollEnd":a!=null&&be("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Sl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Nc.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(i=l.endsWith("Capture"),t=l.slice(2,i?l.length-7:void 0),r=e[At]||null,r=r!=null?r[l]:null,typeof r=="function"&&e.removeEventListener(t,r,i),typeof a=="function")){typeof r!="function"&&r!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,i);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Hi(e,l,a)}}}function mt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var a=!1,i=!1,r;for(r in l)if(l.hasOwnProperty(r)){var d=l[r];if(d!=null)switch(r){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Le(e,t,r,d,l,null)}}i&&Le(e,t,"srcSet",l.srcSet,l,null),a&&Le(e,t,"src",l.src,l,null);return;case"input":be("invalid",e);var m=r=d=i=null,S=null,_=null;for(a in l)if(l.hasOwnProperty(a)){var H=l[a];if(H!=null)switch(a){case"name":i=H;break;case"type":d=H;break;case"checked":S=H;break;case"defaultChecked":_=H;break;case"value":r=H;break;case"defaultValue":m=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(u(137,t));break;default:Le(e,t,a,H,l,null)}}Bc(e,r,m,S,_,d,i,!1);return;case"select":be("invalid",e),a=d=r=null;for(i in l)if(l.hasOwnProperty(i)&&(m=l[i],m!=null))switch(i){case"value":r=m;break;case"defaultValue":d=m;break;case"multiple":a=m;default:Le(e,t,i,m,l,null)}t=r,l=d,e.multiple=!!a,t!=null?qa(e,!!a,t,!1):l!=null&&qa(e,!!a,l,!0);return;case"textarea":be("invalid",e),r=i=a=null;for(d in l)if(l.hasOwnProperty(d)&&(m=l[d],m!=null))switch(d){case"value":a=m;break;case"defaultValue":i=m;break;case"children":r=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(u(91));break;default:Le(e,t,d,m,l,null)}Hc(e,a,i,r);return;case"option":for(S in l)if(l.hasOwnProperty(S)&&(a=l[S],a!=null))switch(S){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Le(e,t,S,a,l,null)}return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(a=0;a<fi.length;a++)be(fi[a],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("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(_ in l)if(l.hasOwnProperty(_)&&(a=l[_],a!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Le(e,t,_,a,l,null)}return;default:if(_s(t)){for(H in l)l.hasOwnProperty(H)&&(a=l[H],a!==void 0&&yo(e,t,H,a,l,void 0));return}}for(m in l)l.hasOwnProperty(m)&&(a=l[m],a!=null&&Le(e,t,m,a,l,null))}function $y(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,r=null,d=null,m=null,S=null,_=null,H=null;for(D in l){var V=l[D];if(l.hasOwnProperty(D)&&V!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":S=V;default:a.hasOwnProperty(D)||Le(e,t,D,null,a,V)}}for(var N in a){var D=a[N];if(V=l[N],a.hasOwnProperty(N)&&(D!=null||V!=null))switch(N){case"type":r=D;break;case"name":i=D;break;case"checked":_=D;break;case"defaultChecked":H=D;break;case"value":d=D;break;case"defaultValue":m=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(u(137,t));break;default:D!==V&&Le(e,t,N,D,a,V)}}zs(e,d,m,S,_,H,r,i);return;case"select":D=d=m=N=null;for(r in l)if(S=l[r],l.hasOwnProperty(r)&&S!=null)switch(r){case"value":break;case"multiple":D=S;default:a.hasOwnProperty(r)||Le(e,t,r,null,a,S)}for(i in a)if(r=a[i],S=l[i],a.hasOwnProperty(i)&&(r!=null||S!=null))switch(i){case"value":N=r;break;case"defaultValue":m=r;break;case"multiple":d=r;default:r!==S&&Le(e,t,i,r,a,S)}t=m,l=d,a=D,N!=null?qa(e,!!l,N,!1):!!a!=!!l&&(t!=null?qa(e,!!l,t,!0):qa(e,!!l,l?[]:"",!1));return;case"textarea":D=N=null;for(m in l)if(i=l[m],l.hasOwnProperty(m)&&i!=null&&!a.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Le(e,t,m,null,a,i)}for(d in a)if(i=a[d],r=l[d],a.hasOwnProperty(d)&&(i!=null||r!=null))switch(d){case"value":N=i;break;case"defaultValue":D=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(u(91));break;default:i!==r&&Le(e,t,d,i,a,r)}Lc(e,N,D);return;case"option":for(var ee in l)if(N=l[ee],l.hasOwnProperty(ee)&&N!=null&&!a.hasOwnProperty(ee))switch(ee){case"selected":e.selected=!1;break;default:Le(e,t,ee,null,a,N)}for(S in a)if(N=a[S],D=l[S],a.hasOwnProperty(S)&&N!==D&&(N!=null||D!=null))switch(S){case"selected":e.selected=N&&typeof N!="function"&&typeof N!="symbol";break;default:Le(e,t,S,N,a,D)}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 ue in l)N=l[ue],l.hasOwnProperty(ue)&&N!=null&&!a.hasOwnProperty(ue)&&Le(e,t,ue,null,a,N);for(_ in a)if(N=a[_],D=l[_],a.hasOwnProperty(_)&&N!==D&&(N!=null||D!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(u(137,t));break;default:Le(e,t,_,N,a,D)}return;default:if(_s(t)){for(var He in l)N=l[He],l.hasOwnProperty(He)&&N!==void 0&&!a.hasOwnProperty(He)&&yo(e,t,He,void 0,a,N);for(H in a)N=a[H],D=l[H],!a.hasOwnProperty(H)||N===D||N===void 0&&D===void 0||yo(e,t,H,N,a,D);return}}for(var z in l)N=l[z],l.hasOwnProperty(z)&&N!=null&&!a.hasOwnProperty(z)&&Le(e,t,z,null,a,N);for(V in a)N=a[V],D=l[V],!a.hasOwnProperty(V)||N===D||N==null&&D==null||Le(e,t,V,N,a,D)}function Vp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Iy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var i=l[a],r=i.transferSize,d=i.initiatorType,m=i.duration;if(r&&m&&Vp(d)){for(d=0,m=i.responseEnd,a+=1;a<l.length;a++){var S=l[a],_=S.startTime;if(_>m)break;var H=S.transferSize,V=S.initiatorType;H&&Vp(V)&&(S=S.responseEnd,d+=H*(S<m?1:(m-_)/(S-_)))}if(--a,t+=8*(r+d)/(i.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 go=null,xo=null;function Br(e){return e.nodeType===9?e:e.ownerDocument}function Xp(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 Gp(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 vo(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 bo=null;function Py(){var e=window.event;return e&&e.type==="popstate"?e===bo?!1:(bo=e,!0):(bo=null,!1)}var Qp=typeof setTimeout=="function"?setTimeout:void 0,eg=typeof clearTimeout=="function"?clearTimeout:void 0,Fp=typeof Promise=="function"?Promise:void 0,tg=typeof queueMicrotask=="function"?queueMicrotask:typeof Fp<"u"?function(e){return Fp.resolve(null).then(e).catch(lg)}:Qp;function lg(e){setTimeout(function(){throw e})}function aa(e){return e==="head"}function Zp(e,t){var l=t,a=0;do{var i=l.nextSibling;if(e.removeChild(l),i&&i.nodeType===8)if(l=i.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(i),vn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")pi(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,pi(l);for(var r=l.firstChild;r;){var d=r.nextSibling,m=r.nodeName;r[Nn]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&r.rel.toLowerCase()==="stylesheet"||l.removeChild(r),r=d}}else l==="body"&&pi(e.ownerDocument.body);l=i}while(l);vn(t)}function Kp(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function So(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":So(l),Cs(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function ag(e,t,l,a){for(;e.nodeType===1;){var i=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Nn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=It(e.nextSibling),e===null)break}return null}function ng(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=It(e.nextSibling),e===null))return null;return e}function Jp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=It(e.nextSibling),e===null))return null;return e}function Eo(e){return e.data==="$?"||e.data==="$~"}function jo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ig(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function It(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 Ro=null;function Wp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return It(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function $p(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Ip(e,t,l){switch(t=Br(l),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function pi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cs(e)}var Pt=new Map,Pp=new Set;function Lr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ll=J.d;J.d={f:rg,r:sg,D:ug,C:og,L:cg,m:fg,X:pg,S:dg,M:hg};function rg(){var e=Ll.f(),t=Tr();return e||t}function sg(e){var t=La(e);t!==null&&t.tag===5&&t.type==="form"?yd(t):Ll.r(e)}var yn=typeof document>"u"?null:document;function eh(e,t,l){var a=yn;if(a&&typeof t=="string"&&t){var i=Qt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),Pp.has(i)||(Pp.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),mt(t,"link",e),rt(t),a.head.appendChild(t)))}}function ug(e){Ll.D(e),eh("dns-prefetch",e,null)}function og(e,t){Ll.C(e,t),eh("preconnect",e,t)}function cg(e,t,l){Ll.L(e,t,l);var a=yn;if(a&&e&&t){var i='link[rel="preload"][as="'+Qt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+Qt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+Qt(l.imageSizes)+'"]')):i+='[href="'+Qt(e)+'"]';var r=i;switch(t){case"style":r=gn(e);break;case"script":r=xn(e)}Pt.has(r)||(e=b({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Pt.set(r,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(hi(r))||t==="script"&&a.querySelector(mi(r))||(t=a.createElement("link"),mt(t,"link",e),rt(t),a.head.appendChild(t)))}}function fg(e,t){Ll.m(e,t);var l=yn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Qt(a)+'"][href="'+Qt(e)+'"]',r=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=xn(e)}if(!Pt.has(r)&&(e=b({rel:"modulepreload",href:e},t),Pt.set(r,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(mi(r)))return}a=l.createElement("link"),mt(a,"link",e),rt(a),l.head.appendChild(a)}}}function dg(e,t,l){Ll.S(e,t,l);var a=yn;if(a&&e){var i=Ha(a).hoistableStyles,r=gn(e);t=t||"default";var d=i.get(r);if(!d){var m={loading:0,preload:null};if(d=a.querySelector(hi(r)))m.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Pt.get(r))&&Co(e,l);var S=d=a.createElement("link");rt(S),mt(S,"link",e),S._p=new Promise(function(_,H){S.onload=_,S.onerror=H}),S.addEventListener("load",function(){m.loading|=1}),S.addEventListener("error",function(){m.loading|=2}),m.loading|=4,Hr(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:m},i.set(r,d)}}}function pg(e,t){Ll.X(e,t);var l=yn;if(l&&e){var a=Ha(l).hoistableScripts,i=xn(e),r=a.get(i);r||(r=l.querySelector(mi(i)),r||(e=b({src:e,async:!0},t),(t=Pt.get(i))&&Ao(e,t),r=l.createElement("script"),rt(r),mt(r,"link",e),l.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(i,r))}}function hg(e,t){Ll.M(e,t);var l=yn;if(l&&e){var a=Ha(l).hoistableScripts,i=xn(e),r=a.get(i);r||(r=l.querySelector(mi(i)),r||(e=b({src:e,async:!0,type:"module"},t),(t=Pt.get(i))&&Ao(e,t),r=l.createElement("script"),rt(r),mt(r,"link",e),l.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(i,r))}}function th(e,t,l,a){var i=(i=Z.current)?Lr(i):null;if(!i)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=gn(l.href),l=Ha(i).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=gn(l.href);var r=Ha(i).hoistableStyles,d=r.get(e);if(d||(i=i.ownerDocument||i,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,d),(r=i.querySelector(hi(e)))&&!r._p&&(d.instance=r,d.state.loading=5),Pt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Pt.set(e,l),r||mg(i,e,l,d.state))),t&&a===null)throw Error(u(528,""));return d}if(t&&a!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=xn(l),l=Ha(i).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function gn(e){return'href="'+Qt(e)+'"'}function hi(e){return'link[rel="stylesheet"]['+e+"]"}function lh(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function mg(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),mt(t,"link",l),rt(t),e.head.appendChild(t))}function xn(e){return'[src="'+Qt(e)+'"]'}function mi(e){return"script[async]"+e}function ah(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Qt(l.href)+'"]');if(a)return t.instance=a,rt(a),a;var i=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),rt(a),mt(a,"style",i),Hr(a,l.precedence,e),t.instance=a;case"stylesheet":i=gn(l.href);var r=e.querySelector(hi(i));if(r)return t.state.loading|=4,t.instance=r,rt(r),r;a=lh(l),(i=Pt.get(i))&&Co(a,i),r=(e.ownerDocument||e).createElement("link"),rt(r);var d=r;return d._p=new Promise(function(m,S){d.onload=m,d.onerror=S}),mt(r,"link",a),t.state.loading|=4,Hr(r,l.precedence,e),t.instance=r;case"script":return r=xn(l.src),(i=e.querySelector(mi(r)))?(t.instance=i,rt(i),i):(a=l,(i=Pt.get(r))&&(a=b({},l),Ao(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),rt(i),mt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Hr(a,l.precedence,e));return t.instance}function Hr(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,r=i,d=0;d<a.length;d++){var m=a[d];if(m.dataset.precedence===t)r=m;else if(r!==i)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Co(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ao(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var kr=null;function nh(e,t,l){if(kr===null){var a=new Map,i=kr=new Map;i.set(l,a)}else i=kr,a=i.get(l),a||(a=new Map,i.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),i=0;i<l.length;i++){var r=l[i];if(!(r[Nn]||r[ft]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var d=r.getAttribute(t)||"";d=e+d;var m=a.get(d);m?m.push(r):a.set(d,[r])}}return a}function ih(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function yg(e,t,l){if(l===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 rh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function gg(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var i=gn(a.href),r=t.querySelector(hi(i));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=qr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=r,rt(r);return}r=t.ownerDocument||t,a=lh(a),(i=Pt.get(i))&&Co(a,i),r=r.createElement("link"),rt(r);var d=r;d._p=new Promise(function(m,S){d.onload=m,d.onerror=S}),mt(r,"link",a),l.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=qr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var zo=0;function xg(e,t){return e.stylesheets&&e.count===0&&Vr(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Vr(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&zo===0&&(zo=62500*Iy());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vr(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>zo?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function qr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yr=null;function Vr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yr=new Map,t.forEach(vg,e),Yr=null,qr.call(e))}function vg(e,t){if(!(t.state.loading&4)){var l=Yr.get(e);if(l)var a=l.get(null);else{l=new Map,Yr.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<i.length;r++){var d=i[r];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(l.set(d.dataset.precedence,d),a=d)}a&&l.set(null,a)}i=t.instance,d=i.getAttribute("data-precedence"),r=l.get(d)||a,r===a&&l.set(null,i),l.set(d,i),this.count++,a=qr.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),r?r.parentNode.insertBefore(i,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var yi={$$typeof:X,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function bg(e,t,l,a,i,r,d,m,S){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=Ss(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ss(0),this.hiddenUpdates=Ss(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=r,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function sh(e,t,l,a,i,r,d,m,S,_,H,V){return e=new bg(e,t,l,d,S,_,H,V,m),t=1,r===!0&&(t|=24),r=Bt(3,null,null,t),e.current=r,r.stateNode=e,t=iu(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:a,isDehydrated:l,cache:t},ou(r),e}function uh(e){return e?(e=Ka,e):Ka}function oh(e,t,l,a,i,r){i=uh(i),a.context===null?a.context=i:a.pendingContext=i,a=Fl(t),a.payload={element:l},r=r===void 0?null:r,r!==null&&(a.callback=r),l=Zl(e,a,t),l!==null&&(wt(l,e,t),Kn(l,e,t))}function ch(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function To(e,t){ch(e,t),(e=e.alternate)&&ch(e,t)}function fh(e){if(e.tag===13||e.tag===31){var t=ya(e,67108864);t!==null&&wt(t,e,67108864),To(e,67108864)}}function dh(e){if(e.tag===13||e.tag===31){var t=Yt();t=Es(t);var l=ya(e,t);l!==null&&wt(l,e,t),To(e,t)}}var Xr=!0;function Sg(e,t,l,a){var i=M.T;M.T=null;var r=J.p;try{J.p=2,_o(e,t,l,a)}finally{J.p=r,M.T=i}}function Eg(e,t,l,a){var i=M.T;M.T=null;var r=J.p;try{J.p=8,_o(e,t,l,a)}finally{J.p=r,M.T=i}}function _o(e,t,l,a){if(Xr){var i=Oo(a);if(i===null)mo(e,t,a,Gr,l),hh(e,a);else if(Rg(i,e,t,l,a))a.stopPropagation();else if(hh(e,a),t&4&&-1<jg.indexOf(e)){for(;i!==null;){var r=La(i);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var d=fa(r.pendingLanes);if(d!==0){var m=r;for(m.pendingLanes|=2,m.entangledLanes|=2;d;){var S=1<<31-xt(d);m.entanglements[1]|=S,d&=~S}gl(r),(we&6)===0&&(Ar=jt()+500,ci(0))}}break;case 31:case 13:m=ya(r,2),m!==null&&wt(m,r,2),Tr(),To(r,2)}if(r=Oo(a),r===null&&mo(e,t,a,Gr,l),r===i)break;i=r}i!==null&&a.stopPropagation()}else mo(e,t,a,null,l)}}function Oo(e){return e=Ns(e),No(e)}var Gr=null;function No(e){if(Gr=null,e=Ba(e),e!==null){var t=p(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=h(t),e!==null)return e;e=null}else if(l===31){if(e=y(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Gr=e,null}function ph(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(vs()){case Q:return 2;case ye:return 8;case Ue:case Xe:return 32;case at:return 268435456;default:return 32}default:return 32}}var wo=!1,na=null,ia=null,ra=null,gi=new Map,xi=new Map,sa=[],jg="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 hh(e,t){switch(e){case"focusin":case"focusout":na=null;break;case"dragenter":case"dragleave":ia=null;break;case"mouseover":case"mouseout":ra=null;break;case"pointerover":case"pointerout":gi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xi.delete(t.pointerId)}}function vi(e,t,l,a,i,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:r,targetContainers:[i]},t!==null&&(t=La(t),t!==null&&fh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Rg(e,t,l,a,i){switch(t){case"focusin":return na=vi(na,e,t,l,a,i),!0;case"dragenter":return ia=vi(ia,e,t,l,a,i),!0;case"mouseover":return ra=vi(ra,e,t,l,a,i),!0;case"pointerover":var r=i.pointerId;return gi.set(r,vi(gi.get(r)||null,e,t,l,a,i)),!0;case"gotpointercapture":return r=i.pointerId,xi.set(r,vi(xi.get(r)||null,e,t,l,a,i)),!0}return!1}function mh(e){var t=Ba(e.target);if(t!==null){var l=p(t);if(l!==null){if(t=l.tag,t===13){if(t=h(l),t!==null){e.blockedOn=t,Tc(e.priority,function(){dh(l)});return}}else if(t===31){if(t=y(l),t!==null){e.blockedOn=t,Tc(e.priority,function(){dh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Qr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Oo(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Os=a,l.target.dispatchEvent(a),Os=null}else return t=La(l),t!==null&&fh(t),e.blockedOn=l,!1;t.shift()}return!0}function yh(e,t,l){Qr(e)&&l.delete(t)}function Cg(){wo=!1,na!==null&&Qr(na)&&(na=null),ia!==null&&Qr(ia)&&(ia=null),ra!==null&&Qr(ra)&&(ra=null),gi.forEach(yh),xi.forEach(yh)}function Fr(e,t){e.blockedOn===t&&(e.blockedOn=null,wo||(wo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Cg)))}var Zr=null;function gh(e){Zr!==e&&(Zr=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Zr===e&&(Zr=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(No(a||l)===null)continue;break}var r=La(l);r!==null&&(e.splice(t,3),t-=3,_u(r,{pending:!0,data:i,method:l.method,action:a},a,i))}}))}function vn(e){function t(S){return Fr(S,e)}na!==null&&Fr(na,e),ia!==null&&Fr(ia,e),ra!==null&&Fr(ra,e),gi.forEach(t),xi.forEach(t);for(var l=0;l<sa.length;l++){var a=sa[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<sa.length&&(l=sa[0],l.blockedOn===null);)mh(l),l.blockedOn===null&&sa.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var i=l[a],r=l[a+1],d=i[At]||null;if(typeof r=="function")d||gh(l);else if(d){var m=null;if(r&&r.hasAttribute("formAction")){if(i=r,d=r[At]||null)m=d.formAction;else if(No(i)!==null)continue}else m=d.action;typeof m=="function"?l[a+1]=m:(l.splice(a,3),a-=3),gh(l)}}}function xh(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(d){return i=d})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Do(e){this._internalRoot=e}Kr.prototype.render=Do.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,a=Yt();oh(l,a,e,t,null,null)},Kr.prototype.unmount=Do.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;oh(e.current,2,null,e,null,null),Tr(),t[Ua]=null}};function Kr(e){this._internalRoot=e}Kr.prototype.unstable_scheduleHydration=function(e){if(e){var t=zc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<sa.length&&t!==0&&t<sa[l].priority;l++);sa.splice(l,0,e),l===0&&mh(e)}};var vh=s.version;if(vh!=="19.2.7")throw Error(u(527,vh,"19.2.7"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=g(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Ag={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jr.isDisabled&&Jr.supportsFiber)try{nl=Jr.inject(Ag),ct=Jr}catch{}}return Si.createRoot=function(e,t){if(!f(e))throw Error(u(299));var l=!1,a="",i=Ad,r=zd,d=Td;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=sh(e,1,!1,null,null,l,a,null,i,r,d,xh),e[Ua]=t.current,ho(e),new Do(t)},Si.hydrateRoot=function(e,t,l){if(!f(e))throw Error(u(299));var a=!1,i="",r=Ad,d=zd,m=Td,S=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(i=l.identifierPrefix),l.onUncaughtError!==void 0&&(r=l.onUncaughtError),l.onCaughtError!==void 0&&(d=l.onCaughtError),l.onRecoverableError!==void 0&&(m=l.onRecoverableError),l.formState!==void 0&&(S=l.formState)),t=sh(e,1,!0,t,l??null,a,i,S,r,d,m,xh),t.context=uh(null),l=t.current,a=Yt(),a=Es(a),i=Fl(a),i.callback=null,Zl(l,i,a),l=a,t.current.lanes=l,On(t,l),gl(t),e[Ua]=t.current,ho(e),new Kr(t)},Si.version="19.2.7",Si}var _h;function Lg(){if(_h)return Bo.exports;_h=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),Bo.exports=Bg(),Bo.exports}var Hg=Lg();const kg=cm(Hg);/**
 * react-router v7.18.0
 *
 * 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 sc=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,fm=/^[\\/]{2}/;function qg(n,s){return s+n.replace(/\\/g,"/")}var Oh="popstate";function Nh(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function Yg(n={}){function s(u,f){var g;let p=(g=f.state)==null?void 0:g.masked,{pathname:h,search:y,hash:x}=p||u.location;return $o("",{pathname:h,search:y,hash:x},f.state&&f.state.usr||null,f.state&&f.state.key||"default",p?{pathname:u.location.pathname,search:u.location.search,hash:u.location.hash}:void 0)}function o(u,f){return typeof f=="string"?f:Ri(f)}return Xg(s,o,null,n)}function Qe(n,s){if(n===!1||n===null||typeof n>"u")throw new Error(s)}function ol(n,s){if(!n){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function Vg(){return Math.random().toString(36).substring(2,10)}function wh(n,s){return{usr:n.state,key:n.key,idx:s,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function $o(n,s,o=null,u,f){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof s=="string"?jn(s):s,state:o,key:s&&s.key||u||Vg(),mask:f}}function Ri({pathname:n="/",search:s="",hash:o=""}){return s&&s!=="?"&&(n+=s.charAt(0)==="?"?s:"?"+s),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function jn(n){let s={};if(n){let o=n.indexOf("#");o>=0&&(s.hash=n.substring(o),n=n.substring(0,o));let u=n.indexOf("?");u>=0&&(s.search=n.substring(u),n=n.substring(0,u)),n&&(s.pathname=n)}return s}function Xg(n,s,o,u={}){let{window:f=document.defaultView,v5Compat:p=!1}=u,h=f.history,y="POP",x=null,g=v();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function v(){return(h.state||{idx:null}).idx}function b(){y="POP";let w=v(),R=w==null?null:w-g;g=w,x&&x({action:y,location:k.location,delta:R})}function O(w,R){y="PUSH";let Y=Nh(w)?w:$o(k.location,w,R);g=v()+1;let X=wh(Y,g),$=k.createHref(Y.mask||Y);try{h.pushState(X,"",$)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;f.location.assign($)}p&&x&&x({action:y,location:k.location,delta:1})}function B(w,R){y="REPLACE";let Y=Nh(w)?w:$o(k.location,w,R);g=v();let X=wh(Y,g),$=k.createHref(Y.mask||Y);h.replaceState(X,"",$),p&&x&&x({action:y,location:k.location,delta:0})}function G(w){return Gg(f,w)}let k={get action(){return y},get location(){return n(f,h)},listen(w){if(x)throw new Error("A history only accepts one active listener");return f.addEventListener(Oh,b),x=w,()=>{f.removeEventListener(Oh,b),x=null}},createHref(w){return s(f,w)},createURL:G,encodeLocation(w){let R=G(w);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:O,replace:B,go(w){return h.go(w)}};return k}function Gg(n,s,o=!1){let u="http://localhost";n&&(u=n.location.origin!=="null"?n.location.origin:n.location.href),Qe(u,"No window.location.(origin|href) available to create URL");let f=typeof s=="string"?s:Ri(s);return f=f.replace(/ $/,"%20"),!o&&fm.test(f)&&(f=u+f),new URL(f,u)}function dm(n,s,o="/"){return Qg(n,s,o,!1)}function Qg(n,s,o,u,f){let p=typeof s=="string"?jn(s):s,h=Hl(p.pathname||"/",o);if(h==null)return null;let y=Fg(n),x=null,g=a1(h);for(let v=0;x==null&&v<y.length;++v)x=l1(y[v],g,u);return x}function Fg(n){let s=pm(n);return Zg(s),s}function pm(n,s=[],o=[],u="",f=!1){let p=(h,y,x=f,g)=>{let v={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:y,route:h};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(u)&&x)return;Qe(v.relativePath.startsWith(u),`Absolute route path "${v.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(u.length)}let b=ul([u,v.relativePath]),O=o.concat(v);h.children&&h.children.length>0&&(Qe(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),pm(h.children,s,O,b,x)),!(h.path==null&&!h.index)&&s.push({path:b,score:e1(b,h.index),routesMeta:O.map((B,G)=>{let[k,w]=ym(B.relativePath,B.caseSensitive,G===O.length-1);return{...B,matcher:k,compiledParams:w}})})};return n.forEach((h,y)=>{var x;if(h.path===""||!((x=h.path)!=null&&x.includes("?")))p(h,y);else for(let g of hm(h.path))p(h,y,!0,g)}),s}function hm(n){let s=n.split("/");if(s.length===0)return[];let[o,...u]=s,f=o.endsWith("?"),p=o.replace(/\?$/,"");if(u.length===0)return f?[p,""]:[p];let h=hm(u.join("/")),y=[];return y.push(...h.map(x=>x===""?p:[p,x].join("/"))),f&&y.push(...h),y.map(x=>n.startsWith("/")&&x===""?"/":x)}function Zg(n){n.sort((s,o)=>s.score!==o.score?o.score-s.score:t1(s.routesMeta.map(u=>u.childrenIndex),o.routesMeta.map(u=>u.childrenIndex)))}var Kg=/^:[\w-]+$/,Jg=3,Wg=2,$g=1,Ig=10,Pg=-2,Dh=n=>n==="*";function e1(n,s){let o=n.split("/"),u=o.length;return o.some(Dh)&&(u+=Pg),s&&(u+=Wg),o.filter(f=>!Dh(f)).reduce((f,p)=>f+(Kg.test(p)?Jg:p===""?$g:Ig),u)}function t1(n,s){return n.length===s.length&&n.slice(0,-1).every((u,f)=>u===s[f])?n[n.length-1]-s[s.length-1]:0}function l1(n,s,o=!1){let{routesMeta:u}=n,f={},p="/",h=[];for(let y=0;y<u.length;++y){let x=u[y],g=y===u.length-1,v=p==="/"?s:s.slice(p.length)||"/",b={path:x.relativePath,caseSensitive:x.caseSensitive,end:g},O=x.matcher&&x.compiledParams?mm(b,v,x.matcher,x.compiledParams):ns(b,v),B=x.route;if(!O&&g&&o&&!u[u.length-1].route.index&&(O=ns({path:x.relativePath,caseSensitive:x.caseSensitive,end:!1},v)),!O)return null;Object.assign(f,O.params),h.push({params:f,pathname:ul([p,O.pathname]),pathnameBase:r1(ul([p,O.pathnameBase])),route:B}),O.pathnameBase!=="/"&&(p=ul([p,O.pathnameBase]))}return h}function ns(n,s){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[o,u]=ym(n.path,n.caseSensitive,n.end);return mm(n,s,o,u)}function mm(n,s,o,u){let f=s.match(o);if(!f)return null;let p=f[0],h=p.replace(/(.)\/+$/,"$1"),y=f.slice(1);return{params:u.reduce((g,{paramName:v,isOptional:b},O)=>{if(v==="*"){let G=y[O]||"";h=p.slice(0,p.length-G.length).replace(/(.)\/+$/,"$1")}const B=y[O];return b&&!B?g[v]=void 0:g[v]=(B||"").replace(/%2F/g,"/"),g},{}),pathname:p,pathnameBase:h,pattern:n}}function ym(n,s=!1,o=!0){ol(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let u=[],f="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,y,x,g,v)=>{if(u.push({paramName:y,isOptional:x!=null}),x){let b=v.charAt(g+h.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(u.push({paramName:"*"}),f+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?f+="\\/*$":n!==""&&n!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,s?void 0:"i"),u]}function a1(n){try{return n.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return ol(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${s}).`),n}}function Hl(n,s){if(s==="/")return n;if(!n.toLowerCase().startsWith(s.toLowerCase()))return null;let o=s.endsWith("/")?s.length-1:s.length,u=n.charAt(o);return u&&u!=="/"?null:n.slice(o)||"/"}function n1(n,s="/"){let{pathname:o,search:u="",hash:f=""}=typeof n=="string"?jn(n):n,p;return o?(o=gm(o),o.startsWith("/")?p=Mh(o.substring(1),"/"):p=Mh(o,s)):p=s,{pathname:p,search:s1(u),hash:u1(f)}}function Mh(n,s){let o=is(s).split("/");return n.split("/").forEach(f=>{f===".."?o.length>1&&o.pop():f!=="."&&o.push(f)}),o.length>1?o.join("/"):"/"}function qo(n,s,o,u){return`Cannot include a '${n}' character in a manually specified \`to.${s}\` field [${JSON.stringify(u)}].  Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function i1(n){return n.filter((s,o)=>o===0||s.route.path&&s.route.path.length>0)}function uc(n){let s=i1(n);return s.map((o,u)=>u===s.length-1?o.pathname:o.pathnameBase)}function fs(n,s,o,u=!1){let f;typeof n=="string"?f=jn(n):(f={...n},Qe(!f.pathname||!f.pathname.includes("?"),qo("?","pathname","search",f)),Qe(!f.pathname||!f.pathname.includes("#"),qo("#","pathname","hash",f)),Qe(!f.search||!f.search.includes("#"),qo("#","search","hash",f)));let p=n===""||f.pathname==="",h=p?"/":f.pathname,y;if(h==null)y=o;else{let b=s.length-1;if(!u&&h.startsWith("..")){let O=h.split("/");for(;O[0]==="..";)O.shift(),b-=1;f.pathname=O.join("/")}y=b>=0?s[b]:"/"}let x=n1(f,y),g=h&&h!=="/"&&h.endsWith("/"),v=(p||h===".")&&o.endsWith("/");return!x.pathname.endsWith("/")&&(g||v)&&(x.pathname+="/"),x}var gm=n=>n.replace(/[\\/]{2,}/g,"/"),ul=n=>gm(n.join("/")),is=n=>n.replace(/\/+$/,""),r1=n=>is(n).replace(/^\/*/,"/"),s1=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,u1=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,o1=class{constructor(n,s,o,u=!1){this.status=n,this.statusText=s||"",this.internal=u,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function c1(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function f1(n){let s=n.map(o=>o.route.path).filter(Boolean);return ul(s)||"/"}var xm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function vm(n,s){let o=n;if(typeof o!="string"||!sc.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let u=o,f=!1;if(xm)try{let p=new URL(window.location.href),h=fm.test(o)?new URL(qg(o,p.protocol)):new URL(o),y=Hl(h.pathname,s);h.origin===p.origin&&y!=null?o=y+h.search+h.hash:f=!0}catch{ol(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:f,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var bm=["POST","PUT","PATCH","DELETE"];new Set(bm);var d1=["GET",...bm];new Set(d1);var p1=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function h1(n){try{return p1.includes(new URL(n).protocol)}catch{return!1}}var Rn=j.createContext(null);Rn.displayName="DataRouter";var ds=j.createContext(null);ds.displayName="DataRouterState";var Sm=j.createContext(!1);function m1(){return j.useContext(Sm)}var Em=j.createContext({isTransitioning:!1});Em.displayName="ViewTransition";var y1=j.createContext(new Map);y1.displayName="Fetchers";var g1=j.createContext(null);g1.displayName="Await";var Vt=j.createContext(null);Vt.displayName="Navigation";var zi=j.createContext(null);zi.displayName="Location";var cl=j.createContext({outlet:null,matches:[],isDataRoute:!1});cl.displayName="Route";var oc=j.createContext(null);oc.displayName="RouteError";var jm="REACT_ROUTER_ERROR",x1="REDIRECT",v1="ROUTE_ERROR_RESPONSE";function b1(n){if(n.startsWith(`${jm}:${x1}:{`))try{let s=JSON.parse(n.slice(28));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.location=="string"&&typeof s.reloadDocument=="boolean"&&typeof s.replace=="boolean")return s}catch{}}function S1(n){if(n.startsWith(`${jm}:${v1}:{`))try{let s=JSON.parse(n.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new o1(s.status,s.statusText,s.data)}catch{}}function E1(n,{relative:s}={}){Qe(Cn(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:u}=j.useContext(Vt),{hash:f,pathname:p,search:h}=Ti(n,{relative:s}),y=p;return o!=="/"&&(y=p==="/"?o:ul([o,p])),u.createHref({pathname:y,search:h,hash:f})}function Cn(){return j.useContext(zi)!=null}function fl(){return Qe(Cn(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(zi).location}var Rm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Cm(n){j.useContext(Vt).static||j.useLayoutEffect(n)}function ps(){let{isDataRoute:n}=j.useContext(cl);return n?L1():j1()}function j1(){Qe(Cn(),"useNavigate() may be used only in the context of a <Router> component.");let n=j.useContext(Rn),{basename:s,navigator:o}=j.useContext(Vt),{matches:u}=j.useContext(cl),{pathname:f}=fl(),p=JSON.stringify(uc(u)),h=j.useRef(!1);return Cm(()=>{h.current=!0}),j.useCallback((x,g={})=>{if(ol(h.current,Rm),!h.current)return;if(typeof x=="number"){o.go(x);return}let v=fs(x,JSON.parse(p),f,g.relative==="path");n==null&&s!=="/"&&(v.pathname=v.pathname==="/"?s:ul([s,v.pathname])),(g.replace?o.replace:o.push)(v,g.state,g)},[s,o,p,f,n])}var R1=j.createContext(null);function C1(n){let s=j.useContext(cl).outlet;return j.useMemo(()=>s&&j.createElement(R1.Provider,{value:n},s),[s,n])}function Ti(n,{relative:s}={}){let{matches:o}=j.useContext(cl),{pathname:u}=fl(),f=JSON.stringify(uc(o));return j.useMemo(()=>fs(n,JSON.parse(f),u,s==="path"),[n,f,u,s])}function A1(n,s){return Am(n,s)}function Am(n,s,o){var w;Qe(Cn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=j.useContext(Vt),{matches:f}=j.useContext(cl),p=f[f.length-1],h=p?p.params:{},y=p?p.pathname:"/",x=p?p.pathnameBase:"/",g=p&&p.route;{let R=g&&g.path||"";Tm(y,!g||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${R}">) 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="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let v=fl(),b;if(s){let R=typeof s=="string"?jn(s):s;Qe(x==="/"||((w=R.pathname)==null?void 0:w.startsWith(x)),`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 "${x}" but pathname "${R.pathname}" was given in the \`location\` prop.`),b=R}else b=v;let O=b.pathname||"/",B=O;if(x!=="/"){let R=x.replace(/^\//,"").split("/");B="/"+O.replace(/^\//,"").split("/").slice(R.length).join("/")}let G=o&&o.state.matches.length?o.state.matches.map(R=>Object.assign(R,{route:o.manifest[R.route.id]||R.route})):dm(n,{pathname:B});ol(g||G!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),ol(G==null||G[G.length-1].route.element!==void 0||G[G.length-1].route.Component!==void 0||G[G.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.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 k=N1(G&&G.map(R=>Object.assign({},R,{params:Object.assign({},h,R.params),pathname:ul([x,u.encodeLocation?u.encodeLocation(R.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?x:ul([x,u.encodeLocation?u.encodeLocation(R.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),f,o);return s&&k?j.createElement(zi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...b},navigationType:"POP"}},k):k}function z1(){let n=B1(),s=c1(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),o=n instanceof Error?n.stack:null,u="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:u},p={padding:"2px 4px",backgroundColor:u},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=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:p},"ErrorBoundary")," or"," ",j.createElement("code",{style:p},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},s),o?j.createElement("pre",{style:f},o):null,h)}var T1=j.createElement(z1,null),zm=class extends j.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,s){return s.location!==n.location||s.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:s.error,location:s.location,revalidation:n.revalidation||s.revalidation}}componentDidCatch(n,s){this.props.onError?this.props.onError(n,s):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const o=S1(n.digest);o&&(n=o)}let s=n!==void 0?j.createElement(cl.Provider,{value:this.props.routeContext},j.createElement(oc.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?j.createElement(_1,{error:n},s):s}};zm.contextType=Sm;var Yo=new WeakMap;function _1({children:n,error:s}){let{basename:o}=j.useContext(Vt);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let u=b1(s.digest);if(u){let f=Yo.get(s);if(f)throw f;let p=vm(u.location,o),h=p.absoluteURL||p.to;if(h1(h))throw new Error("Invalid redirect location");if(xm&&!Yo.get(s))if(p.isExternal||u.reloadDocument)window.location.href=h;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(p.to,{replace:u.replace}));throw Yo.set(s,y),y}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h}`})}}return n}function O1({routeContext:n,match:s,children:o}){let u=j.useContext(Rn);return u&&u.static&&u.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=s.route.id),j.createElement(cl.Provider,{value:n},o)}function N1(n,s=[],o){let u=o==null?void 0:o.state;if(n==null){if(!u)return null;if(u.errors)n=u.matches;else if(s.length===0&&!u.initialized&&u.matches.length>0)n=u.matches;else return null}let f=n,p=u==null?void 0:u.errors;if(p!=null){let v=f.findIndex(b=>b.route.id&&(p==null?void 0:p[b.route.id])!==void 0);Qe(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(p).join(",")}`),f=f.slice(0,Math.min(f.length,v+1))}let h=!1,y=-1;if(o&&u){h=u.renderFallback;for(let v=0;v<f.length;v++){let b=f[v];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(y=v),b.route.id){let{loaderData:O,errors:B}=u,G=b.route.loader&&!O.hasOwnProperty(b.route.id)&&(!B||B[b.route.id]===void 0);if(b.route.lazy||G){o.isStatic&&(h=!0),y>=0?f=f.slice(0,y+1):f=[f[0]];break}}}}let x=o==null?void 0:o.onError,g=u&&x?(v,b)=>{var O,B;x(v,{location:u.location,params:((B=(O=u.matches)==null?void 0:O[0])==null?void 0:B.params)??{},pattern:f1(u.matches),errorInfo:b})}:void 0;return f.reduceRight((v,b,O)=>{let B,G=!1,k=null,w=null;u&&(B=p&&b.route.id?p[b.route.id]:void 0,k=b.route.errorElement||T1,h&&(y<0&&O===0?(Tm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),G=!0,w=null):y===O&&(G=!0,w=b.route.hydrateFallbackElement||null)));let R=s.concat(f.slice(0,O+1)),Y=()=>{let X;return B?X=k:G?X=w:b.route.Component?X=j.createElement(b.route.Component,null):b.route.element?X=b.route.element:X=v,j.createElement(O1,{match:b,routeContext:{outlet:v,matches:R,isDataRoute:u!=null},children:X})};return u&&(b.route.ErrorBoundary||b.route.errorElement||O===0)?j.createElement(zm,{location:u.location,revalidation:u.revalidation,component:k,error:B,children:Y(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:g}):Y()},null)}function cc(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function w1(n){let s=j.useContext(Rn);return Qe(s,cc(n)),s}function D1(n){let s=j.useContext(ds);return Qe(s,cc(n)),s}function M1(n){let s=j.useContext(cl);return Qe(s,cc(n)),s}function fc(n){let s=M1(n),o=s.matches[s.matches.length-1];return Qe(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function U1(){return fc("useRouteId")}function B1(){var u;let n=j.useContext(oc),s=D1("useRouteError"),o=fc("useRouteError");return n!==void 0?n:(u=s.errors)==null?void 0:u[o]}function L1(){let{router:n}=w1("useNavigate"),s=fc("useNavigate"),o=j.useRef(!1);return Cm(()=>{o.current=!0}),j.useCallback(async(f,p={})=>{ol(o.current,Rm),o.current&&(typeof f=="number"?await n.navigate(f):await n.navigate(f,{fromRouteId:s,...p}))},[n,s])}var Uh={};function Tm(n,s,o){!s&&!Uh[n]&&(Uh[n]=!0,ol(!1,o))}j.memo(H1);function H1({routes:n,manifest:s,future:o,state:u,isStatic:f,onError:p}){return Am(n,void 0,{manifest:s,state:u,isStatic:f,onError:p})}function dc({to:n,replace:s,state:o,relative:u}){Qe(Cn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=j.useContext(Vt);ol(!f,"<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:p}=j.useContext(cl),{pathname:h}=fl(),y=ps(),x=fs(n,uc(p),h,u==="path"),g=JSON.stringify(x);return j.useEffect(()=>{y(JSON.parse(g),{replace:s,state:o,relative:u})},[y,g,u,s,o]),null}function _m(n){return C1(n.context)}function xl(n){Qe(!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 k1({basename:n="/",children:s=null,location:o,navigationType:u="POP",navigator:f,static:p=!1,useTransitions:h}){Qe(!Cn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let y=n.replace(/^\/*/,"/"),x=j.useMemo(()=>({basename:y,navigator:f,static:p,useTransitions:h,future:{}}),[y,f,p,h]);typeof o=="string"&&(o=jn(o));let{pathname:g="/",search:v="",hash:b="",state:O=null,key:B="default",mask:G}=o,k=j.useMemo(()=>{let w=Hl(g,y);return w==null?null:{location:{pathname:w,search:v,hash:b,state:O,key:B,mask:G},navigationType:u}},[y,g,v,b,O,B,u,G]);return ol(k!=null,`<Router basename="${y}"> is not able to match the URL "${g}${v}${b}" because it does not start with the basename, so the <Router> won't render anything.`),k==null?null:j.createElement(Vt.Provider,{value:x},j.createElement(zi.Provider,{children:s,value:k}))}function q1({children:n,location:s}){return A1(Io(n),s)}function Io(n,s=[]){let o=[];return j.Children.forEach(n,(u,f)=>{if(!j.isValidElement(u))return;let p=[...s,f];if(u.type===j.Fragment){o.push.apply(o,Io(u.props.children,p));return}Qe(u.type===xl,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Qe(!u.props.index||!u.props.children,"An index route cannot have child routes.");let h={id:u.props.id||p.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(h.children=Io(u.props.children,p)),o.push(h)}),o}var Pr="get",es="application/x-www-form-urlencoded";function hs(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Y1(n){return hs(n)&&n.tagName.toLowerCase()==="button"}function V1(n){return hs(n)&&n.tagName.toLowerCase()==="form"}function X1(n){return hs(n)&&n.tagName.toLowerCase()==="input"}function G1(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Q1(n,s){return n.button===0&&(!s||s==="_self")&&!G1(n)}var Wr=null;function F1(){if(Wr===null)try{new FormData(document.createElement("form"),0),Wr=!1}catch{Wr=!0}return Wr}var Z1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vo(n){return n!=null&&!Z1.has(n)?(ol(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${es}"`),null):n}function K1(n,s){let o,u,f,p,h;if(V1(n)){let y=n.getAttribute("action");u=y?Hl(y,s):null,o=n.getAttribute("method")||Pr,f=Vo(n.getAttribute("enctype"))||es,p=new FormData(n)}else if(Y1(n)||X1(n)&&(n.type==="submit"||n.type==="image")){let y=n.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let x=n.getAttribute("formaction")||y.getAttribute("action");if(u=x?Hl(x,s):null,o=n.getAttribute("formmethod")||y.getAttribute("method")||Pr,f=Vo(n.getAttribute("formenctype"))||Vo(y.getAttribute("enctype"))||es,p=new FormData(y,n),!F1()){let{name:g,type:v,value:b}=n;if(v==="image"){let O=g?`${g}.`:"";p.append(`${O}x`,"0"),p.append(`${O}y`,"0")}else g&&p.append(g,b)}}else{if(hs(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Pr,u=null,f=es,h=n}return p&&f==="text/plain"&&(h=p,p=void 0),{action:u,method:o.toLowerCase(),encType:f,formData:p,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function pc(n,s){if(n===!1||n===null||typeof n>"u")throw new Error(s)}function Om(n,s,o,u){let f=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return o?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${u}`:f.pathname=`${f.pathname}.${u}`:f.pathname==="/"?f.pathname=`_root.${u}`:s&&Hl(f.pathname,s)==="/"?f.pathname=`${is(s)}/_root.${u}`:f.pathname=`${is(f.pathname)}.${u}`,f}async function J1(n,s){if(n.id in s)return s[n.id];try{let o=await import(n.module);return s[n.id]=o,o}catch(o){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function W1(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function $1(n,s,o){let u=await Promise.all(n.map(async f=>{let p=s.routes[f.route.id];if(p){let h=await J1(p,o);return h.links?h.links():[]}return[]}));return tx(u.flat(1).filter(W1).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Bh(n,s,o,u,f,p){let h=(x,g)=>o[g]?x.route.id!==o[g].route.id:!0,y=(x,g)=>{var v;return o[g].pathname!==x.pathname||((v=o[g].route.path)==null?void 0:v.endsWith("*"))&&o[g].params["*"]!==x.params["*"]};return p==="assets"?s.filter((x,g)=>h(x,g)||y(x,g)):p==="data"?s.filter((x,g)=>{var b;let v=u.routes[x.route.id];if(!v||!v.hasLoader)return!1;if(h(x,g)||y(x,g))return!0;if(x.route.shouldRevalidate){let O=x.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((b=o[0])==null?void 0:b.params)||{},nextUrl:new URL(n,window.origin),nextParams:x.params,defaultShouldRevalidate:!0});if(typeof O=="boolean")return O}return!0}):[]}function I1(n,s,{includeHydrateFallback:o}={}){return P1(n.map(u=>{let f=s.routes[u.route.id];if(!f)return[];let p=[f.module];return f.clientActionModule&&(p=p.concat(f.clientActionModule)),f.clientLoaderModule&&(p=p.concat(f.clientLoaderModule)),o&&f.hydrateFallbackModule&&(p=p.concat(f.hydrateFallbackModule)),f.imports&&(p=p.concat(f.imports)),p}).flat(1))}function P1(n){return[...new Set(n)]}function ex(n){let s={},o=Object.keys(n).sort();for(let u of o)s[u]=n[u];return s}function tx(n,s){let o=new Set;return new Set(s),n.reduce((u,f)=>{let p=JSON.stringify(ex(f));return o.has(p)||(o.add(p),u.push({key:p,link:f})),u},[])}function hc(){let n=j.useContext(Rn);return pc(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function lx(){let n=j.useContext(ds);return pc(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var mc=j.createContext(void 0);mc.displayName="FrameworkContext";function ms(){let n=j.useContext(mc);return pc(n,"You must render this element inside a <HydratedRouter> element"),n}function ax(n,s){let o=j.useContext(mc),[u,f]=j.useState(!1),[p,h]=j.useState(!1),{onFocus:y,onBlur:x,onMouseEnter:g,onMouseLeave:v,onTouchStart:b}=s,O=j.useRef(null);j.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let k=R=>{R.forEach(Y=>{h(Y.isIntersecting)})},w=new IntersectionObserver(k,{threshold:.5});return O.current&&w.observe(O.current),()=>{w.disconnect()}}},[n]),j.useEffect(()=>{if(u){let k=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(k)}}},[u]);let B=()=>{f(!0)},G=()=>{f(!1),h(!1)};return o?n!=="intent"?[p,O,{}]:[p,O,{onFocus:Ei(y,B),onBlur:Ei(x,G),onMouseEnter:Ei(g,B),onMouseLeave:Ei(v,G),onTouchStart:Ei(b,B)}]:[!1,O,{}]}function Ei(n,s){return o=>{n&&n(o),o.defaultPrevented||s(o)}}function nx({page:n,...s}){let o=m1(),{nonce:u}=ms(),{router:f}=hc(),p=j.useMemo(()=>dm(f.routes,n,f.basename),[f.routes,n,f.basename]);return p?(s.nonce==null&&u&&(s={...s,nonce:u}),o?j.createElement(rx,{page:n,matches:p,...s}):j.createElement(sx,{page:n,matches:p,...s})):null}function ix(n){let{manifest:s,routeModules:o}=ms(),[u,f]=j.useState([]);return j.useEffect(()=>{let p=!1;return $1(n,s,o).then(h=>{p||f(h)}),()=>{p=!0}},[n,s,o]),u}function rx({page:n,matches:s,...o}){let u=fl(),{future:f}=ms(),{basename:p}=hc(),h=j.useMemo(()=>{if(n===u.pathname+u.search+u.hash)return[];let y=Om(n,p,f.v8_trailingSlashAwareDataRequests,"rsc"),x=!1,g=[];for(let v of s)typeof v.route.shouldRevalidate=="function"?x=!0:g.push(v.route.id);return x&&g.length>0&&y.searchParams.set("_routes",g.join(",")),[y.pathname+y.search]},[p,f.v8_trailingSlashAwareDataRequests,n,u,s]);return j.createElement(j.Fragment,null,h.map(y=>j.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...o})))}function sx({page:n,matches:s,...o}){let u=fl(),{future:f,manifest:p,routeModules:h}=ms(),{basename:y}=hc(),{loaderData:x,matches:g}=lx(),v=j.useMemo(()=>Bh(n,s,g,p,u,"data"),[n,s,g,p,u]),b=j.useMemo(()=>Bh(n,s,g,p,u,"assets"),[n,s,g,p,u]),O=j.useMemo(()=>{if(n===u.pathname+u.search+u.hash)return[];let k=new Set,w=!1;if(s.forEach(Y=>{var $;let X=p.routes[Y.route.id];!X||!X.hasLoader||(!v.some(F=>F.route.id===Y.route.id)&&Y.route.id in x&&(($=h[Y.route.id])!=null&&$.shouldRevalidate)||X.hasClientLoader?w=!0:k.add(Y.route.id))}),k.size===0)return[];let R=Om(n,y,f.v8_trailingSlashAwareDataRequests,"data");return w&&k.size>0&&R.searchParams.set("_routes",s.filter(Y=>k.has(Y.route.id)).map(Y=>Y.route.id).join(",")),[R.pathname+R.search]},[y,f.v8_trailingSlashAwareDataRequests,x,u,p,v,s,n,h]),B=j.useMemo(()=>I1(b,p),[b,p]),G=ix(b);return j.createElement(j.Fragment,null,O.map(k=>j.createElement("link",{key:k,rel:"prefetch",as:"fetch",href:k,...o})),B.map(k=>j.createElement("link",{key:k,rel:"modulepreload",href:k,...o})),G.map(({key:k,link:w})=>j.createElement("link",{key:k,nonce:o.nonce,...w,crossOrigin:w.crossOrigin??o.crossOrigin})))}function ux(...n){return s=>{n.forEach(o=>{typeof o=="function"?o(s):o!=null&&(o.current=s)})}}var ox=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ox&&(window.__reactRouterVersion="7.18.0")}catch{}function cx({basename:n,children:s,useTransitions:o,window:u}){let f=j.useRef();f.current==null&&(f.current=Yg({window:u,v5Compat:!0}));let p=f.current,[h,y]=j.useState({action:p.action,location:p.location}),x=j.useCallback(g=>{o===!1?y(g):j.startTransition(()=>y(g))},[o]);return j.useLayoutEffect(()=>p.listen(x),[p,x]),j.createElement(k1,{basename:n,children:s,location:h.location,navigationType:h.action,navigator:p,useTransitions:o})}var Nm=j.forwardRef(function({onClick:s,discover:o="render",prefetch:u="none",relative:f,reloadDocument:p,replace:h,mask:y,state:x,target:g,to:v,preventScrollReset:b,viewTransition:O,defaultShouldRevalidate:B,...G},k){let{basename:w,navigator:R,useTransitions:Y}=j.useContext(Vt),X=typeof v=="string"&&sc.test(v),$=vm(v,w);v=$.to;let F=E1(v,{relative:f}),te=fl(),P=null;if(y){let fe=fs(y,[],te.mask?te.mask.pathname:"/",!0);w!=="/"&&(fe.pathname=fe.pathname==="/"?w:ul([w,fe.pathname])),P=R.createHref(fe)}let[xe,Ee,Te]=ax(u,G),ce=hx(v,{replace:h,mask:y,state:x,target:g,preventScrollReset:b,relative:f,viewTransition:O,defaultShouldRevalidate:B,useTransitions:Y});function Ae(fe){s&&s(fe),fe.defaultPrevented||ce(fe)}let Ne=!($.isExternal||p),ze=j.createElement("a",{...G,...Te,href:(Ne?P:void 0)||$.absoluteURL||F,onClick:Ne?Ae:s,ref:ux(k,Ee),target:g,"data-discover":!X&&o==="render"?"true":void 0});return xe&&!X?j.createElement(j.Fragment,null,ze,j.createElement(nx,{page:F})):ze});Nm.displayName="Link";var fx=j.forwardRef(function({"aria-current":s="page",caseSensitive:o=!1,className:u="",end:f=!1,style:p,to:h,viewTransition:y,children:x,...g},v){let b=Ti(h,{relative:g.relative}),O=fl(),B=j.useContext(ds),{navigator:G,basename:k}=j.useContext(Vt),w=B!=null&&vx(b)&&y===!0,R=G.encodeLocation?G.encodeLocation(b).pathname:b.pathname,Y=O.pathname,X=B&&B.navigation&&B.navigation.location?B.navigation.location.pathname:null;o||(Y=Y.toLowerCase(),X=X?X.toLowerCase():null,R=R.toLowerCase()),X&&k&&(X=Hl(X,k)||X);const $=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let F=Y===R||!f&&Y.startsWith(R)&&Y.charAt($)==="/",te=X!=null&&(X===R||!f&&X.startsWith(R)&&X.charAt(R.length)==="/"),P={isActive:F,isPending:te,isTransitioning:w},xe=F?s:void 0,Ee;typeof u=="function"?Ee=u(P):Ee=[u,F?"active":null,te?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let Te=typeof p=="function"?p(P):p;return j.createElement(Nm,{...g,"aria-current":xe,className:Ee,ref:v,style:Te,to:h,viewTransition:y},typeof x=="function"?x(P):x)});fx.displayName="NavLink";var dx=j.forwardRef(({discover:n="render",fetcherKey:s,navigate:o,reloadDocument:u,replace:f,state:p,method:h=Pr,action:y,onSubmit:x,relative:g,preventScrollReset:v,viewTransition:b,defaultShouldRevalidate:O,...B},G)=>{let{useTransitions:k}=j.useContext(Vt),w=gx(),R=xx(y,{relative:g}),Y=h.toLowerCase()==="get"?"get":"post",X=typeof y=="string"&&sc.test(y),$=F=>{if(x&&x(F),F.defaultPrevented)return;F.preventDefault();let te=F.nativeEvent.submitter,P=(te==null?void 0:te.getAttribute("formmethod"))||h,xe=()=>w(te||F.currentTarget,{fetcherKey:s,method:P,navigate:o,replace:f,state:p,relative:g,preventScrollReset:v,viewTransition:b,defaultShouldRevalidate:O});k&&o!==!1?j.startTransition(()=>xe()):xe()};return j.createElement("form",{ref:G,method:Y,action:R,onSubmit:u?x:$,...B,"data-discover":!X&&n==="render"?"true":void 0})});dx.displayName="Form";function px(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function wm(n){let s=j.useContext(Rn);return Qe(s,px(n)),s}function hx(n,{target:s,replace:o,mask:u,state:f,preventScrollReset:p,relative:h,viewTransition:y,defaultShouldRevalidate:x,useTransitions:g}={}){let v=ps(),b=fl(),O=Ti(n,{relative:h});return j.useCallback(B=>{if(Q1(B,s)){B.preventDefault();let G=o!==void 0?o:Ri(b)===Ri(O),k=()=>v(n,{replace:G,mask:u,state:f,preventScrollReset:p,relative:h,viewTransition:y,defaultShouldRevalidate:x});g?j.startTransition(()=>k()):k()}},[b,v,O,o,u,f,s,n,p,h,y,x,g])}var mx=0,yx=()=>`__${String(++mx)}__`;function gx(){let{router:n}=wm("useSubmit"),{basename:s}=j.useContext(Vt),o=U1(),u=n.fetch,f=n.navigate;return j.useCallback(async(p,h={})=>{let{action:y,method:x,encType:g,formData:v,body:b}=K1(p,s);if(h.navigate===!1){let O=h.fetcherKey||yx();await u(O,o,h.action||y,{defaultShouldRevalidate:h.defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:v,body:b,formMethod:h.method||x,formEncType:h.encType||g,flushSync:h.flushSync})}else await f(h.action||y,{defaultShouldRevalidate:h.defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:v,body:b,formMethod:h.method||x,formEncType:h.encType||g,replace:h.replace,state:h.state,fromRouteId:o,flushSync:h.flushSync,viewTransition:h.viewTransition})},[u,f,s,o])}function xx(n,{relative:s}={}){let{basename:o}=j.useContext(Vt),u=j.useContext(cl);Qe(u,"useFormAction must be used inside a RouteContext");let[f]=u.matches.slice(-1),p={...Ti(n||".",{relative:s})},h=fl();if(n==null){p.search=h.search;let y=new URLSearchParams(p.search),x=y.getAll("index");if(x.some(v=>v==="")){y.delete("index"),x.filter(b=>b).forEach(b=>y.append("index",b));let v=y.toString();p.search=v?`?${v}`:""}}return(!n||n===".")&&f.route.index&&(p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(p.pathname=p.pathname==="/"?o:ul([o,p.pathname])),Ri(p)}function vx(n,{relative:s}={}){let o=j.useContext(Em);Qe(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=wm("useViewTransitionState"),f=Ti(n,{relative:s});if(!o.isTransitioning)return!1;let p=Hl(o.currentLocation.pathname,u)||o.currentLocation.pathname,h=Hl(o.nextLocation.pathname,u)||o.nextLocation.pathname;return ns(f.pathname,h)!=null||ns(f.pathname,p)!=null}function Dm(n,s){return function(){return n.apply(s,arguments)}}const{toString:bx}=Object.prototype,{getPrototypeOf:Sn}=Object,{iterator:_i,toStringTag:Mm}=Symbol,rs=(({hasOwnProperty:n})=>(s,o)=>n.call(s,o))(Object.prototype),Ci=(n,s)=>{let o=n;const u=[];for(;o!=null&&o!==Object.prototype;){if(u.indexOf(o)!==-1)return!1;if(u.push(o),rs(o,s))return!0;o=Sn(o)}return!1},Sx=(n,s)=>n!=null&&Ci(n,s)?n[s]:void 0,yc=(n=>s=>{const o=bx.call(s);return n[o]||(n[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),dl=n=>(n=n.toLowerCase(),s=>yc(s)===n),ys=n=>s=>typeof s===n,{isArray:Da}=Array,En=ys("undefined");function An(n){return n!==null&&!En(n)&&n.constructor!==null&&!En(n.constructor)&&Dt(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}const Um=dl("ArrayBuffer");function Ex(n){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(n):s=n&&n.buffer&&Um(n.buffer),s}const jx=ys("string"),Dt=ys("function"),Bm=ys("number"),zn=n=>n!==null&&typeof n=="object",Rx=n=>n===!0||n===!1,ts=n=>{if(!zn(n))return!1;const s=Sn(n);return(s===null||s===Object.prototype||Sn(s)===null)&&!Ci(n,Mm)&&!Ci(n,_i)},Cx=n=>{if(!zn(n)||An(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},Ax=dl("Date"),zx=dl("File"),Tx=n=>!!(n&&typeof n.uri<"u"),_x=n=>n&&typeof n.getParts<"u",Ox=dl("Blob"),Nx=dl("FileList"),wx=n=>zn(n)&&Dt(n.pipe);function Dx(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Lh=Dx(),Hh=typeof Lh.FormData<"u"?Lh.FormData:void 0,Mx=n=>{if(!n)return!1;if(Hh&&n instanceof Hh)return!0;const s=Sn(n);if(!s||s===Object.prototype||!Dt(n.append))return!1;const o=yc(n);return o==="formdata"||o==="object"&&Dt(n.toString)&&n.toString()==="[object FormData]"},Ux=dl("URLSearchParams"),[Bx,Lx,Hx,kx]=["ReadableStream","Request","Response","Headers"].map(dl),qx=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Oi(n,s,{allOwnKeys:o=!1}={}){if(n===null||typeof n>"u")return;let u,f;if(typeof n!="object"&&(n=[n]),Da(n))for(u=0,f=n.length;u<f;u++)s.call(null,n[u],u,n);else{if(An(n))return;const p=o?Object.getOwnPropertyNames(n):Object.keys(n),h=p.length;let y;for(u=0;u<h;u++)y=p[u],s.call(null,n[y],y,n)}}function Lm(n,s){if(An(n))return null;s=s.toLowerCase();const o=Object.keys(n);let u=o.length,f;for(;u-- >0;)if(f=o[u],s===f.toLowerCase())return f;return null}const _a=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Hm=n=>!En(n)&&n!==_a;function Po(...n){const{caseless:s,skipUndefined:o}=Hm(this)&&this||{},u={},f=(p,h)=>{if(h==="__proto__"||h==="constructor"||h==="prototype")return;const y=s&&typeof h=="string"&&Lm(u,h)||h,x=rs(u,y)?u[y]:void 0;ts(x)&&ts(p)?u[y]=Po(x,p):ts(p)?u[y]=Po({},p):Da(p)?u[y]=p.slice():(!o||!En(p))&&(u[y]=p)};for(let p=0,h=n.length;p<h;p++){const y=n[p];if(!y||An(y)||(Oi(y,f),typeof y!="object"||Da(y)))continue;const x=Object.getOwnPropertySymbols(y);for(let g=0;g<x.length;g++){const v=x[g];Ix.call(y,v)&&f(y[v],v)}}return u}const Yx=(n,s,o,{allOwnKeys:u}={})=>(Oi(s,(f,p)=>{o&&Dt(f)?Object.defineProperty(n,p,{__proto__:null,value:Dm(f,o),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(n,p,{__proto__:null,value:f,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:u}),n),Vx=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Xx=(n,s,o,u)=>{n.prototype=Object.create(s.prototype,u),Object.defineProperty(n.prototype,"constructor",{__proto__:null,value:n,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(n,"super",{__proto__:null,value:s.prototype}),o&&Object.assign(n.prototype,o)},Gx=(n,s,o,u)=>{let f,p,h;const y={};if(s=s||{},n==null)return s;do{for(f=Object.getOwnPropertyNames(n),p=f.length;p-- >0;)h=f[p],(!u||u(h,n,s))&&!y[h]&&(s[h]=n[h],y[h]=!0);n=o!==!1&&Sn(n)}while(n&&(!o||o(n,s))&&n!==Object.prototype);return s},Qx=(n,s,o)=>{n=String(n),(o===void 0||o>n.length)&&(o=n.length),o-=s.length;const u=n.indexOf(s,o);return u!==-1&&u===o},Fx=n=>{if(!n)return null;if(Da(n))return n;let s=n.length;if(!Bm(s))return null;const o=new Array(s);for(;s-- >0;)o[s]=n[s];return o},Zx=(n=>s=>n&&s instanceof n)(typeof Uint8Array<"u"&&Sn(Uint8Array)),Kx=(n,s)=>{const u=(n&&n[_i]).call(n);let f;for(;(f=u.next())&&!f.done;){const p=f.value;s.call(n,p[0],p[1])}},Jx=(n,s)=>{let o;const u=[];for(;(o=n.exec(s))!==null;)u.push(o);return u},Wx=dl("HTMLFormElement"),$x=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,u,f){return u.toUpperCase()+f}),{propertyIsEnumerable:Ix}=Object.prototype,Px=dl("RegExp"),km=(n,s)=>{const o=Object.getOwnPropertyDescriptors(n),u={};Oi(o,(f,p)=>{let h;(h=s(f,p,n))!==!1&&(u[p]=h||f)}),Object.defineProperties(n,u)},ev=n=>{km(n,(s,o)=>{if(Dt(n)&&["arguments","caller","callee"].includes(o))return!1;const u=n[o];if(Dt(u)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},tv=(n,s)=>{const o={},u=f=>{f.forEach(p=>{o[p]=!0})};return Da(n)?u(n):u(String(n).split(s)),o},lv=()=>{},av=(n,s)=>n!=null&&Number.isFinite(n=+n)?n:s;function nv(n){return!!(n&&Dt(n.append)&&n[Mm]==="FormData"&&n[_i])}const iv=n=>{const s=new WeakSet,o=u=>{if(zn(u)){if(s.has(u))return;if(An(u))return u;if(!("toJSON"in u)){s.add(u);const f=Da(u)?[]:{};return Oi(u,(p,h)=>{const y=o(p);!En(y)&&(f[h]=y)}),s.delete(u),f}}return u};return o(n)},rv=dl("AsyncFunction"),sv=n=>n&&(zn(n)||Dt(n))&&Dt(n.then)&&Dt(n.catch),qm=((n,s)=>n?setImmediate:s?((o,u)=>(_a.addEventListener("message",({source:f,data:p})=>{f===_a&&p===o&&u.length&&u.shift()()},!1),f=>{u.push(f),_a.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",Dt(_a.postMessage)),uv=typeof queueMicrotask<"u"?queueMicrotask.bind(_a):typeof process<"u"&&process.nextTick||qm,Ym=n=>n!=null&&Dt(n[_i]),ov=n=>n!=null&&Ci(n,_i)&&Ym(n),A={isArray:Da,isArrayBuffer:Um,isBuffer:An,isFormData:Mx,isArrayBufferView:Ex,isString:jx,isNumber:Bm,isBoolean:Rx,isObject:zn,isPlainObject:ts,isEmptyObject:Cx,isReadableStream:Bx,isRequest:Lx,isResponse:Hx,isHeaders:kx,isUndefined:En,isDate:Ax,isFile:zx,isReactNativeBlob:Tx,isReactNative:_x,isBlob:Ox,isRegExp:Px,isFunction:Dt,isStream:wx,isURLSearchParams:Ux,isTypedArray:Zx,isFileList:Nx,forEach:Oi,merge:Po,extend:Yx,trim:qx,stripBOM:Vx,inherits:Xx,toFlatObject:Gx,kindOf:yc,kindOfTest:dl,endsWith:Qx,toArray:Fx,forEachEntry:Kx,matchAll:Jx,isHTMLForm:Wx,hasOwnProperty:rs,hasOwnProp:rs,hasOwnInPrototypeChain:Ci,getSafeProp:Sx,reduceDescriptors:km,freezeMethods:ev,toObjectSet:tv,toCamelCase:$x,noop:lv,toFiniteNumber:av,findKey:Lm,global:_a,isContextDefined:Hm,isSpecCompliantForm:nv,toJSONObject:iv,isAsyncFn:rv,isThenable:sv,setImmediate:qm,asap:uv,isIterable:Ym,isSafeIterable:ov},cv=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fv=n=>{const s={};let o,u,f;return n&&n.split(`
`).forEach(function(h){f=h.indexOf(":"),o=h.substring(0,f).trim().toLowerCase(),u=h.substring(f+1).trim(),!(!o||s[o]&&cv[o])&&(o==="set-cookie"?s[o]?s[o].push(u):s[o]=[u]:s[o]=s[o]?s[o]+", "+u:u)}),s};function dv(n){let s=0,o=n.length;for(;s<o;){const u=n.charCodeAt(s);if(u!==9&&u!==32)break;s+=1}for(;o>s;){const u=n.charCodeAt(o-1);if(u!==9&&u!==32)break;o-=1}return s===0&&o===n.length?n:n.slice(s,o)}const pv=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),hv=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function gc(n,s){return A.isArray(n)?n.map(o=>gc(o,s)):dv(String(n).replace(s,""))}const mv=n=>gc(n,pv),yv=n=>gc(n,hv);function Vm(n){const s=Object.create(null);return A.forEach(n.toJSON(),(o,u)=>{s[u]=yv(o)}),s}const kh=Symbol("internals");function ji(n){return n&&String(n).trim().toLowerCase()}function ls(n){return n===!1||n==null?n:A.isArray(n)?n.map(ls):mv(String(n))}function gv(n){const s=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let u;for(;u=o.exec(n);)s[u[1]]=u[2];return s}const xv=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Xo(n,s,o,u,f){if(A.isFunction(u))return u.call(this,s,o);if(f&&(s=o),!!A.isString(s)){if(A.isString(u))return s.indexOf(u)!==-1;if(A.isRegExp(u))return u.test(s)}}function vv(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,o,u)=>o.toUpperCase()+u)}function bv(n,s){const o=A.toCamelCase(" "+s);["get","set","has"].forEach(u=>{Object.defineProperty(n,u+o,{__proto__:null,value:function(f,p,h){return this[u].call(this,s,f,p,h)},configurable:!0})})}let St=class{constructor(s){s&&this.set(s)}set(s,o,u){const f=this;function p(y,x,g){const v=ji(x);if(!v)return;const b=A.findKey(f,v);(!b||f[b]===void 0||g===!0||g===void 0&&f[b]!==!1)&&(f[b||x]=ls(y))}const h=(y,x)=>A.forEach(y,(g,v)=>p(g,v,x));if(A.isPlainObject(s)||s instanceof this.constructor)h(s,o);else if(A.isString(s)&&(s=s.trim())&&!xv(s))h(fv(s),o);else if(A.isObject(s)&&A.isSafeIterable(s)){let y=Object.create(null),x,g;for(const v of s){if(!A.isArray(v))throw new TypeError("Object iterator must return a key-value pair");g=v[0],A.hasOwnProp(y,g)?(x=y[g],y[g]=A.isArray(x)?[...x,v[1]]:[x,v[1]]):y[g]=v[1]}h(y,o)}else s!=null&&p(o,s,u);return this}get(s,o){if(s=ji(s),s){const u=A.findKey(this,s);if(u){const f=this[u];if(!o)return f;if(o===!0)return gv(f);if(A.isFunction(o))return o.call(this,f,u);if(A.isRegExp(o))return o.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,o){if(s=ji(s),s){const u=A.findKey(this,s);return!!(u&&this[u]!==void 0&&(!o||Xo(this,this[u],u,o)))}return!1}delete(s,o){const u=this;let f=!1;function p(h){if(h=ji(h),h){const y=A.findKey(u,h);y&&(!o||Xo(u,u[y],y,o))&&(delete u[y],f=!0)}}return A.isArray(s)?s.forEach(p):p(s),f}clear(s){const o=Object.keys(this);let u=o.length,f=!1;for(;u--;){const p=o[u];(!s||Xo(this,this[p],p,s,!0))&&(delete this[p],f=!0)}return f}normalize(s){const o=this,u={};return A.forEach(this,(f,p)=>{const h=A.findKey(u,p);if(h){o[h]=ls(f),delete o[p];return}const y=s?vv(p):String(p).trim();y!==p&&delete o[p],o[y]=ls(f),u[y]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const o=Object.create(null);return A.forEach(this,(u,f)=>{u!=null&&u!==!1&&(o[f]=s&&A.isArray(u)?u.join(", "):u)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,o])=>s+": "+o).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...o){const u=new this(s);return o.forEach(f=>u.set(f)),u}static accessor(s){const u=(this[kh]=this[kh]={accessors:{}}).accessors,f=this.prototype;function p(h){const y=ji(h);u[y]||(bv(f,h),u[y]=!0)}return A.isArray(s)?s.forEach(p):p(s),this}};St.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);A.reduceDescriptors(St.prototype,({value:n},s)=>{let o=s[0].toUpperCase()+s.slice(1);return{get:()=>n,set(u){this[o]=u}}});A.freezeMethods(St);const Sv="[REDACTED ****]";function Ev(n){if(A.hasOwnProp(n,"toJSON"))return!0;let s=Object.getPrototypeOf(n);for(;s&&s!==Object.prototype;){if(A.hasOwnProp(s,"toJSON"))return!0;s=Object.getPrototypeOf(s)}return!1}function jv(n,s){const o=new Set(s.map(p=>String(p).toLowerCase())),u=[],f=p=>{if(p===null||typeof p!="object"||A.isBuffer(p))return p;if(u.indexOf(p)!==-1)return;p instanceof St&&(p=p.toJSON()),u.push(p);let h;if(A.isArray(p))h=[],p.forEach((y,x)=>{const g=f(y);A.isUndefined(g)||(h[x]=g)});else{if(!A.isPlainObject(p)&&Ev(p))return u.pop(),p;h=Object.create(null);for(const[y,x]of Object.entries(p)){const g=o.has(y.toLowerCase())?Sv:f(x);A.isUndefined(g)||(h[y]=g)}}return u.pop(),h};return f(n)}let I=class Xm extends Error{static from(s,o,u,f,p,h){const y=new Xm(s.message,o||s.code,u,f,p);return y.cause=s,y.name=s.name,s.status!=null&&y.status==null&&(y.status=s.status),h&&Object.assign(y,h),y}constructor(s,o,u,f,p){super(s),Object.defineProperty(this,"message",{__proto__:null,value:s,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,o&&(this.code=o),u&&(this.config=u),f&&(this.request=f),p&&(this.response=p,this.status=p.status)}toJSON(){const s=this.config,o=s&&A.hasOwnProp(s,"redact")?s.redact:void 0,u=A.isArray(o)&&o.length>0?jv(s,o):A.toJSONObject(s);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:u,code:this.code,status:this.status}}};I.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";I.ERR_BAD_OPTION="ERR_BAD_OPTION";I.ECONNABORTED="ECONNABORTED";I.ETIMEDOUT="ETIMEDOUT";I.ECONNREFUSED="ECONNREFUSED";I.ERR_NETWORK="ERR_NETWORK";I.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";I.ERR_DEPRECATED="ERR_DEPRECATED";I.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";I.ERR_BAD_REQUEST="ERR_BAD_REQUEST";I.ERR_CANCELED="ERR_CANCELED";I.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";I.ERR_INVALID_URL="ERR_INVALID_URL";I.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Rv=null,Gm=100;function ec(n){return A.isPlainObject(n)||A.isArray(n)}function Qm(n){return A.endsWith(n,"[]")?n.slice(0,-2):n}function Go(n,s,o){return n?n.concat(s).map(function(f,p){return f=Qm(f),!o&&p?"["+f+"]":f}).join(o?".":""):s}function Cv(n){return A.isArray(n)&&!n.some(ec)}const Av=A.toFlatObject(A,{},null,function(s){return/^is[A-Z]/.test(s)});function gs(n,s,o){if(!A.isObject(n))throw new TypeError("target must be an object");s=s||new FormData,o=A.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Y,X){return!A.isUndefined(X[Y])});const u=o.metaTokens,f=o.visitor||G,p=o.dots,h=o.indexes,y=o.Blob||typeof Blob<"u"&&Blob,x=o.maxDepth===void 0?Gm:o.maxDepth,g=y&&A.isSpecCompliantForm(s),v=[];if(!A.isFunction(f))throw new TypeError("visitor must be a function");function b(R){if(R===null)return"";if(A.isDate(R))return R.toISOString();if(A.isBoolean(R))return R.toString();if(!g&&A.isBlob(R))throw new I("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(R)||A.isTypedArray(R)?g&&typeof Blob=="function"?new Blob([R]):Buffer.from(R):R}function O(R){if(R>x)throw new I("Object is too deeply nested ("+R+" levels). Max depth: "+x,I.ERR_FORM_DATA_DEPTH_EXCEEDED)}function B(R,Y){if(x===1/0)return JSON.stringify(R);const X=[];return JSON.stringify(R,function(F,te){if(!A.isObject(te))return te;for(;X.length&&X[X.length-1]!==this;)X.pop();return X.push(te),O(Y+X.length-1),te})}function G(R,Y,X){let $=R;if(A.isReactNative(s)&&A.isReactNativeBlob(R))return s.append(Go(X,Y,p),b(R)),!1;if(R&&!X&&typeof R=="object"){if(A.endsWith(Y,"{}"))Y=u?Y:Y.slice(0,-2),R=B(R,1);else if(A.isArray(R)&&Cv(R)||(A.isFileList(R)||A.endsWith(Y,"[]"))&&($=A.toArray(R)))return Y=Qm(Y),$.forEach(function(te,P){!(A.isUndefined(te)||te===null)&&s.append(h===!0?Go([Y],P,p):h===null?Y:Y+"[]",b(te))}),!1}return ec(R)?!0:(s.append(Go(X,Y,p),b(R)),!1)}const k=Object.assign(Av,{defaultVisitor:G,convertValue:b,isVisitable:ec});function w(R,Y,X=0){if(!A.isUndefined(R)){if(O(X),v.indexOf(R)!==-1)throw new Error("Circular reference detected in "+Y.join("."));v.push(R),A.forEach(R,function(F,te){(!(A.isUndefined(F)||F===null)&&f.call(s,F,A.isString(te)?te.trim():te,Y,k))===!0&&w(F,Y?Y.concat(te):[te],X+1)}),v.pop()}}if(!A.isObject(n))throw new TypeError("data must be an object");return w(n),s}function qh(n){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(n).replace(/[!'()~]|%20/g,function(u){return s[u]})}function xc(n,s){this._pairs=[],n&&gs(n,this,s)}const Fm=xc.prototype;Fm.append=function(s,o){this._pairs.push([s,o])};Fm.toString=function(s){const o=s?function(u){return s.call(this,u,qh)}:qh;return this._pairs.map(function(f){return o(f[0])+"="+o(f[1])},"").join("&")};function zv(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Zm(n,s,o){if(!s)return n;const u=A.isFunction(o)?{serialize:o}:o,f=A.getSafeProp(u,"encode")||zv,p=A.getSafeProp(u,"serialize");let h;if(p?h=p(s,u):h=A.isURLSearchParams(s)?s.toString():new xc(s,u).toString(f),h){const y=n.indexOf("#");y!==-1&&(n=n.slice(0,y)),n+=(n.indexOf("?")===-1?"?":"&")+h}return n}class Yh{constructor(){this.handlers=[]}use(s,o,u){return this.handlers.push({fulfilled:s,rejected:o,synchronous:u?u.synchronous:!1,runWhen:u?u.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){A.forEach(this.handlers,function(u){u!==null&&s(u)})}}const vc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Tv=typeof URLSearchParams<"u"?URLSearchParams:xc,_v=typeof FormData<"u"?FormData:null,Ov=typeof Blob<"u"?Blob:null,Nv={isBrowser:!0,classes:{URLSearchParams:Tv,FormData:_v,Blob:Ov},protocols:["http","https","file","blob","url","data"]},bc=typeof window<"u"&&typeof document<"u",tc=typeof navigator=="object"&&navigator||void 0,wv=bc&&(!tc||["ReactNative","NativeScript","NS"].indexOf(tc.product)<0),Dv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Mv=bc&&window.location.href||"http://localhost",Uv=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bc,hasStandardBrowserEnv:wv,hasStandardBrowserWebWorkerEnv:Dv,navigator:tc,origin:Mv},Symbol.toStringTag,{value:"Module"})),gt={...Uv,...Nv};function Bv(n,s){return gs(n,new gt.classes.URLSearchParams,{visitor:function(o,u,f,p){return gt.isNode&&A.isBuffer(o)?(this.append(u,o.toString("base64")),!1):p.defaultVisitor.apply(this,arguments)},...s})}const Vh=Gm;function Km(n){if(n>Vh)throw new I("FormData field is too deeply nested ("+n+" levels). Max depth: "+Vh,I.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Lv(n){const s=[],o=/\w+|\[(\w*)]/g;let u;for(;(u=o.exec(n))!==null;)Km(s.length),s.push(u[0]==="[]"?"":u[1]||u[0]);return s}function Hv(n){const s={},o=Object.keys(n);let u;const f=o.length;let p;for(u=0;u<f;u++)p=o[u],s[p]=n[p];return s}function Jm(n){function s(o,u,f,p){Km(p);let h=o[p++];if(h==="__proto__")return!0;const y=Number.isFinite(+h),x=p>=o.length;return h=!h&&A.isArray(f)?f.length:h,x?(A.hasOwnProp(f,h)?f[h]=A.isArray(f[h])?f[h].concat(u):[f[h],u]:f[h]=u,!y):((!A.hasOwnProp(f,h)||!A.isObject(f[h]))&&(f[h]=[]),s(o,u,f[h],p)&&A.isArray(f[h])&&(f[h]=Hv(f[h])),!y)}if(A.isFormData(n)&&A.isFunction(n.entries)){const o={};return A.forEachEntry(n,(u,f)=>{s(Lv(u),f,o,0)}),o}return null}const bn=(n,s)=>n!=null&&A.hasOwnProp(n,s)?n[s]:void 0;function kv(n,s,o){if(A.isString(n))try{return(s||JSON.parse)(n),A.trim(n)}catch(u){if(u.name!=="SyntaxError")throw u}return(o||JSON.stringify)(n)}const Ni={transitional:vc,adapter:["xhr","http","fetch"],transformRequest:[function(s,o){const u=o.getContentType()||"",f=u.indexOf("application/json")>-1,p=A.isObject(s);if(p&&A.isHTMLForm(s)&&(s=new FormData(s)),A.isFormData(s))return f?JSON.stringify(Jm(s)):s;if(A.isArrayBuffer(s)||A.isBuffer(s)||A.isStream(s)||A.isFile(s)||A.isBlob(s)||A.isReadableStream(s))return s;if(A.isArrayBufferView(s))return s.buffer;if(A.isURLSearchParams(s))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),s.toString();let y;if(p){const x=bn(this,"formSerializer");if(u.indexOf("application/x-www-form-urlencoded")>-1)return Bv(s,x).toString();if((y=A.isFileList(s))||u.indexOf("multipart/form-data")>-1){const g=bn(this,"env"),v=g&&g.FormData;return gs(y?{"files[]":s}:s,v&&new v,x)}}return p||f?(o.setContentType("application/json",!1),kv(s)):s}],transformResponse:[function(s){const o=bn(this,"transitional")||Ni.transitional,u=o&&o.forcedJSONParsing,f=bn(this,"responseType"),p=f==="json";if(A.isResponse(s)||A.isReadableStream(s))return s;if(s&&A.isString(s)&&(u&&!f||p)){const y=!(o&&o.silentJSONParsing)&&p;try{return JSON.parse(s,bn(this,"parseReviver"))}catch(x){if(y)throw x.name==="SyntaxError"?I.from(x,I.ERR_BAD_RESPONSE,this,null,bn(this,"response")):x}}return s}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function(s){return s>=200&&s<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch","query"],n=>{Ni.headers[n]={}});function Qo(n,s){const o=this||Ni,u=s||o,f=St.from(u.headers);let p=u.data;return A.forEach(n,function(y){p=y.call(o,p,f.normalize(),s?s.status:void 0)}),f.normalize(),p}function Wm(n){return!!(n&&n.__CANCEL__)}let wi=class extends I{constructor(s,o,u){super(s??"canceled",I.ERR_CANCELED,o,u),this.name="CanceledError",this.__CANCEL__=!0}};function $m(n,s,o){const u=o.config.validateStatus;!o.status||!u||u(o.status)?n(o):s(new I("Request failed with status code "+o.status,o.status>=400&&o.status<500?I.ERR_BAD_REQUEST:I.ERR_BAD_RESPONSE,o.config,o.request,o))}function qv(n){const s=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n);return s&&s[1]||""}function Yv(n,s){n=n||10;const o=new Array(n),u=new Array(n);let f=0,p=0,h;return s=s!==void 0?s:1e3,function(x){const g=Date.now(),v=u[p];h||(h=g),o[f]=x,u[f]=g;let b=p,O=0;for(;b!==f;)O+=o[b++],b=b%n;if(f=(f+1)%n,f===p&&(p=(p+1)%n),g-h<s)return;const B=v&&g-v;return B?Math.round(O*1e3/B):void 0}}function Vv(n,s){let o=0,u=1e3/s,f,p;const h=(g,v=Date.now())=>{o=v,f=null,p&&(clearTimeout(p),p=null),n(...g)};return[(...g)=>{const v=Date.now(),b=v-o;b>=u?h(g,v):(f=g,p||(p=setTimeout(()=>{p=null,h(f)},u-b)))},()=>f&&h(f)]}const ss=(n,s,o=3)=>{let u=0;const f=Yv(50,250);return Vv(p=>{if(!p||typeof p.loaded!="number")return;const h=p.loaded,y=p.lengthComputable?p.total:void 0,x=y!=null?Math.min(h,y):h,g=Math.max(0,x-u),v=f(g);u=Math.max(u,x);const b={loaded:x,total:y,progress:y?x/y:void 0,bytes:g,rate:v||void 0,estimated:v&&y?(y-x)/v:void 0,event:p,lengthComputable:y!=null,[s?"download":"upload"]:!0};n(b)},o)},Xh=(n,s)=>{const o=n!=null;return[u=>s[0]({lengthComputable:o,total:n,loaded:u}),s[1]]},Gh=n=>(...s)=>A.asap(()=>n(...s)),Xv=gt.hasStandardBrowserEnv?((n,s)=>o=>(o=new URL(o,gt.origin),n.protocol===o.protocol&&n.host===o.host&&(s||n.port===o.port)))(new URL(gt.origin),gt.navigator&&/(msie|trident)/i.test(gt.navigator.userAgent)):()=>!0,Gv=gt.hasStandardBrowserEnv?{write(n,s,o,u,f,p,h){if(typeof document>"u")return;const y=[`${n}=${encodeURIComponent(s)}`];A.isNumber(o)&&y.push(`expires=${new Date(o).toUTCString()}`),A.isString(u)&&y.push(`path=${u}`),A.isString(f)&&y.push(`domain=${f}`),p===!0&&y.push("secure"),A.isString(h)&&y.push(`SameSite=${h}`),document.cookie=y.join("; ")},read(n){if(typeof document>"u")return null;const s=document.cookie.split(";");for(let o=0;o<s.length;o++){const u=s[o].replace(/^\s+/,""),f=u.indexOf("=");if(f!==-1&&u.slice(0,f)===n)return decodeURIComponent(u.slice(f+1))}return null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Qv(n){return typeof n!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function Fv(n,s){return s?n.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):n}const Zv=/^https?:(?!\/\/)/i,Kv=/[\t\n\r]/g;function Jv(n){let s=0;for(;s<n.length&&n.charCodeAt(s)<=32;)s++;return n.slice(s)}function Wv(n){return Jv(n).replace(Kv,"")}function Qh(n,s){if(typeof n=="string"&&Zv.test(Wv(n)))throw new I('Invalid URL: missing "//" after protocol',I.ERR_INVALID_URL,s)}function Im(n,s,o,u){Qh(s,u);let f=!Qv(s);return n&&(f||o===!1)?(Qh(n,u),Fv(n,s)):s}const Fh=n=>n instanceof St?{...n}:n;function Ma(n,s){s=s||{};const o=Object.create(null);Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function u(v,b,O,B){return A.isPlainObject(v)&&A.isPlainObject(b)?A.merge.call({caseless:B},v,b):A.isPlainObject(b)?A.merge({},b):A.isArray(b)?b.slice():b}function f(v,b,O,B){if(A.isUndefined(b)){if(!A.isUndefined(v))return u(void 0,v,O,B)}else return u(v,b,O,B)}function p(v,b){if(!A.isUndefined(b))return u(void 0,b)}function h(v,b){if(A.isUndefined(b)){if(!A.isUndefined(v))return u(void 0,v)}else return u(void 0,b)}function y(v){const b=A.hasOwnProp(s,"transitional")?s.transitional:void 0;if(!A.isUndefined(b))if(A.isPlainObject(b)){if(A.hasOwnProp(b,v))return b[v]}else return;const O=A.hasOwnProp(n,"transitional")?n.transitional:void 0;if(A.isPlainObject(O)&&A.hasOwnProp(O,v))return O[v]}function x(v,b,O){if(A.hasOwnProp(s,O))return u(v,b);if(A.hasOwnProp(n,O))return u(void 0,v)}const g={url:p,method:p,data:p,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,withXSRFToken:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,allowedSocketPaths:h,responseEncoding:h,validateStatus:x,headers:(v,b,O)=>f(Fh(v),Fh(b),O,!0)};return A.forEach(Object.keys({...n,...s}),function(b){if(b==="__proto__"||b==="constructor"||b==="prototype")return;const O=A.hasOwnProp(g,b)?g[b]:f,B=A.hasOwnProp(n,b)?n[b]:void 0,G=A.hasOwnProp(s,b)?s[b]:void 0,k=O(B,G,b);A.isUndefined(k)&&O!==x||(o[b]=k)}),A.hasOwnProp(s,"validateStatus")&&A.isUndefined(s.validateStatus)&&y("validateStatusUndefinedResolves")===!1&&(A.hasOwnProp(n,"validateStatus")?o.validateStatus=u(void 0,n.validateStatus):delete o.validateStatus),o}const $v=["content-type","content-length"];function Iv(n,s,o){if(o!=="content-only"){n.set(s);return}Object.entries(s).forEach(([u,f])=>{$v.includes(u.toLowerCase())&&n.set(u,f)})}const Pv=n=>encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(s,o)=>String.fromCharCode(parseInt(o,16)));function Pm(n){const s=Ma({},n),o=O=>A.hasOwnProp(s,O)?s[O]:void 0,u=o("data");let f=o("withXSRFToken");const p=o("xsrfHeaderName"),h=o("xsrfCookieName");let y=o("headers");const x=o("auth"),g=o("baseURL"),v=o("allowAbsoluteUrls"),b=o("url");if(s.headers=y=St.from(y),s.url=Zm(Im(g,b,v,s),o("params"),o("paramsSerializer")),x){const O=A.getSafeProp(x,"username")||"",B=A.getSafeProp(x,"password")||"";y.set("Authorization","Basic "+btoa(O+":"+(B?Pv(B):"")))}if(A.isFormData(u)&&(gt.hasStandardBrowserEnv||gt.hasStandardBrowserWebWorkerEnv||A.isReactNative(u)?y.setContentType(void 0):A.isFunction(u.getHeaders)&&Iv(y,u.getHeaders(),o("formDataHeaderPolicy"))),gt.hasStandardBrowserEnv&&(A.isFunction(f)&&(f=f(s)),f===!0||f==null&&Xv(s.url))){const B=p&&h&&Gv.read(h);B&&y.set(p,B)}return s}const eb=typeof XMLHttpRequest<"u",tb=eb&&function(n){return new Promise(function(o,u){const f=Pm(n);let p=f.data;const h=St.from(f.headers).normalize();let{responseType:y,onUploadProgress:x,onDownloadProgress:g}=f,v,b,O,B,G;function k(){B&&B(),G&&G(),f.cancelToken&&f.cancelToken.unsubscribe(v),f.signal&&f.signal.removeEventListener("abort",v)}let w=new XMLHttpRequest;w.open(f.method.toUpperCase(),f.url,!0),w.timeout=f.timeout;function R(){if(!w)return;const X=St.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),F={data:!y||y==="text"||y==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:X,config:n,request:w};$m(function(P){o(P),k()},function(P){u(P),k()},F),w=null}"onloadend"in w?w.onloadend=R:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.startsWith("file:"))||setTimeout(R)},w.onabort=function(){w&&(u(new I("Request aborted",I.ECONNABORTED,n,w)),k(),w=null)},w.onerror=function($){const F=$&&$.message?$.message:"Network Error",te=new I(F,I.ERR_NETWORK,n,w);te.event=$||null,u(te),k(),w=null},w.ontimeout=function(){let $=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded";const F=f.transitional||vc;f.timeoutErrorMessage&&($=f.timeoutErrorMessage),u(new I($,F.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,n,w)),k(),w=null},p===void 0&&h.setContentType(null),"setRequestHeader"in w&&A.forEach(Vm(h),function($,F){w.setRequestHeader(F,$)}),A.isUndefined(f.withCredentials)||(w.withCredentials=!!f.withCredentials),y&&y!=="json"&&(w.responseType=f.responseType),g&&([O,G]=ss(g,!0),w.addEventListener("progress",O)),x&&w.upload&&([b,B]=ss(x),w.upload.addEventListener("progress",b),w.upload.addEventListener("loadend",B)),(f.cancelToken||f.signal)&&(v=X=>{w&&(u(!X||X.type?new wi(null,n,w):X),w.abort(),k(),w=null)},f.cancelToken&&f.cancelToken.subscribe(v),f.signal&&(f.signal.aborted?v():f.signal.addEventListener("abort",v)));const Y=qv(f.url);if(Y&&!gt.protocols.includes(Y)){u(new I("Unsupported protocol "+Y+":",I.ERR_BAD_REQUEST,n));return}w.send(p||null)})},lb=(n,s)=>{if(n=n?n.filter(Boolean):[],!s&&!n.length)return;const o=new AbortController;let u=!1;const f=function(x){if(!u){u=!0,h();const g=x instanceof Error?x:this.reason;o.abort(g instanceof I?g:new wi(g instanceof Error?g.message:g))}};let p=s&&setTimeout(()=>{p=null,f(new I(`timeout of ${s}ms exceeded`,I.ETIMEDOUT))},s);const h=()=>{n&&(p&&clearTimeout(p),p=null,n.forEach(x=>{x.unsubscribe?x.unsubscribe(f):x.removeEventListener("abort",f)}),n=null)};n.forEach(x=>x.addEventListener("abort",f));const{signal:y}=o;return y.unsubscribe=()=>A.asap(h),y},ab=function*(n,s){let o=n.byteLength;if(o<s){yield n;return}let u=0,f;for(;u<o;)f=u+s,yield n.slice(u,f),u=f},nb=async function*(n,s){for await(const o of ib(n))yield*ab(o,s)},ib=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}const s=n.getReader();try{for(;;){const{done:o,value:u}=await s.read();if(o)break;yield u}}finally{await s.cancel()}},Zh=(n,s,o,u)=>{const f=nb(n,s);let p=0,h,y=x=>{h||(h=!0,u&&u(x))};return new ReadableStream({async pull(x){try{const{done:g,value:v}=await f.next();if(g){y(),x.close();return}let b=v.byteLength;if(o){let O=p+=b;o(O)}x.enqueue(new Uint8Array(v))}catch(g){throw y(g),g}},cancel(x){return y(x),f.return()}},{highWaterMark:2})},us=n=>n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102,rb=(n,s,o)=>s+2<o&&us(n.charCodeAt(s+1))&&us(n.charCodeAt(s+2));function sb(n){if(!n||typeof n!="string"||!n.startsWith("data:"))return 0;const s=n.indexOf(",");if(s<0)return 0;const o=n.slice(5,s),u=n.slice(s+1);if(/;base64/i.test(o)){let h=u.length;const y=u.length;for(let B=0;B<y;B++)if(u.charCodeAt(B)===37&&B+2<y){const G=u.charCodeAt(B+1),k=u.charCodeAt(B+2);us(G)&&us(k)&&(h-=2,B+=2)}let x=0,g=y-1;const v=B=>B>=2&&u.charCodeAt(B-2)===37&&u.charCodeAt(B-1)===51&&(u.charCodeAt(B)===68||u.charCodeAt(B)===100);g>=0&&(u.charCodeAt(g)===61?(x++,g--):v(g)&&(x++,g-=3)),x===1&&g>=0&&(u.charCodeAt(g)===61||v(g))&&x++;const O=Math.floor(h/4)*3-(x||0);return O>0?O:0}let p=0;for(let h=0,y=u.length;h<y;h++){const x=u.charCodeAt(h);if(x===37&&rb(u,h,y))p+=1,h+=2;else if(x<128)p+=1;else if(x<2048)p+=2;else if(x>=55296&&x<=56319&&h+1<y){const g=u.charCodeAt(h+1);g>=56320&&g<=57343?(p+=4,h++):p+=3}else p+=3}return p}const Sc="1.18.0",Kh=64*1024,{isFunction:$r}=A,ub=n=>encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(s,o)=>String.fromCharCode(parseInt(o,16))),Jh=n=>{if(!A.isString(n))return n;try{return decodeURIComponent(n)}catch{return n}},Wh=(n,...s)=>{try{return!!n(...s)}catch{return!1}},ob=n=>{const s=n.indexOf("://");let o=n;return s!==-1&&(o=o.slice(s+3)),o.includes("@")||o.includes(":")},cb=n=>{const s=A.global!==void 0&&A.global!==null?A.global:globalThis,{ReadableStream:o,TextEncoder:u}=s;n=A.merge.call({skipUndefined:!0},{Request:s.Request,Response:s.Response},n);const{fetch:f,Request:p,Response:h}=n,y=f?$r(f):typeof fetch=="function",x=$r(p),g=$r(h);if(!y)return!1;const v=y&&$r(o),b=y&&(typeof u=="function"?(R=>Y=>R.encode(Y))(new u):async R=>new Uint8Array(await new p(R).arrayBuffer())),O=x&&v&&Wh(()=>{let R=!1;const Y=new p(gt.origin,{body:new o,method:"POST",get duplex(){return R=!0,"half"}}),X=Y.headers.has("Content-Type");return Y.body!=null&&Y.body.cancel(),R&&!X}),B=g&&v&&Wh(()=>A.isReadableStream(new h("").body)),G={stream:B&&(R=>R.body)};y&&["text","arrayBuffer","blob","formData","stream"].forEach(R=>{!G[R]&&(G[R]=(Y,X)=>{let $=Y&&Y[R];if($)return $.call(Y);throw new I(`Response type '${R}' is not supported`,I.ERR_NOT_SUPPORT,X)})});const k=async R=>{if(R==null)return 0;if(A.isBlob(R))return R.size;if(A.isSpecCompliantForm(R))return(await new p(gt.origin,{method:"POST",body:R}).arrayBuffer()).byteLength;if(A.isArrayBufferView(R)||A.isArrayBuffer(R))return R.byteLength;if(A.isURLSearchParams(R)&&(R=R+""),A.isString(R))return(await b(R)).byteLength},w=async(R,Y)=>{const X=A.toFiniteNumber(R.getContentLength());return X??k(Y)};return async R=>{let{url:Y,method:X,data:$,signal:F,cancelToken:te,timeout:P,onDownloadProgress:xe,onUploadProgress:Ee,responseType:Te,headers:ce,withCredentials:Ae="same-origin",fetchOptions:Ne,maxContentLength:ze,maxBodyLength:fe}=Pm(R);const M=A.isNumber(ze)&&ze>-1,J=A.isNumber(fe)&&fe>-1,ie=Z=>A.hasOwnProp(R,Z)?R[Z]:void 0;let ae=f||fetch;Te=Te?(Te+"").toLowerCase():"text";let se=lb([F,te&&te.toAbortSignal()],P),E=null;const U=se&&se.unsubscribe&&(()=>{se.unsubscribe()});let K,W=null;const L=()=>new I("Request body larger than maxBodyLength limit",I.ERR_BAD_REQUEST,R,E);try{let Z;const le=ie("auth");if(le){const oe=A.getSafeProp(le,"username")||"",ot=A.getSafeProp(le,"password")||"";Z={username:oe,password:ot}}if(ob(Y)){const oe=new URL(Y,gt.origin);if(!Z&&(oe.username||oe.password)){const ot=Jh(oe.username),Mt=Jh(oe.password);Z={username:ot,password:Mt}}(oe.username||oe.password)&&(oe.username="",oe.password="",Y=oe.href)}if(Z&&(ce.delete("authorization"),ce.set("Authorization","Basic "+btoa(ub((Z.username||"")+":"+(Z.password||""))))),M&&typeof Y=="string"&&Y.startsWith("data:")&&sb(Y)>ze)throw new I("maxContentLength size of "+ze+" exceeded",I.ERR_BAD_RESPONSE,R,E);if(J&&X!=="get"&&X!=="head"){const oe=await k($);if(typeof oe=="number"&&isFinite(oe)&&(K=oe,oe>fe))throw L()}const pe=J&&(A.isReadableStream($)||A.isStream($)),he=(oe,ot,Mt)=>Zh(oe,Kh,Ct=>{if(J&&Ct>fe)throw W=L();ot&&ot(Ct)},Mt);if(O&&X!=="get"&&X!=="head"&&(Ee||pe)){if(K=K??await w(ce,$),K!==0||pe){let oe=new p(Y,{method:"POST",body:$,duplex:"half"}),ot;if(A.isFormData($)&&(ot=oe.headers.get("content-type"))&&ce.setContentType(ot),oe.body){const[Mt,Ct]=Ee&&Xh(K,ss(Gh(Ee)))||[];$=he(oe.body,Mt,Ct)}}}else if(pe&&!x&&v&&X!=="get"&&X!=="head")$=he($);else if(pe&&x&&!O&&X!=="get"&&X!=="head")throw new I("Stream request bodies are not supported by the current fetch implementation",I.ERR_NOT_SUPPORT,R,E);A.isString(Ae)||(Ae=Ae?"include":"omit");const Ve=x&&"credentials"in p.prototype;if(A.isFormData($)){const oe=ce.getContentType();oe&&/^multipart\/form-data/i.test(oe)&&!/boundary=/i.test(oe)&&ce.delete("content-type")}ce.set("User-Agent","axios/"+Sc,!1);const Fe={...Ne,signal:se,method:X.toUpperCase(),headers:Vm(ce.normalize()),body:$,duplex:"half",credentials:Ve?Ae:void 0};E=x&&new p(Y,Fe);let it=await(x?ae(E,Ne):ae(Y,Fe));const Xt=St.from(it.headers);if(M){const oe=A.toFiniteNumber(Xt.getContentLength());if(oe!=null&&oe>ze)throw new I("maxContentLength size of "+ze+" exceeded",I.ERR_BAD_RESPONSE,R,E)}const ut=B&&(Te==="stream"||Te==="response");if(B&&it.body&&(xe||M||ut&&U)){const oe={};["status","statusText","headers"].forEach(pl=>{oe[pl]=it[pl]});const ot=A.toFiniteNumber(Xt.getContentLength()),[Mt,Ct]=xe&&Xh(ot,ss(Gh(xe),!0))||[];let ll=0;const ca=pl=>{if(M&&(ll=pl,ll>ze))throw new I("maxContentLength size of "+ze+" exceeded",I.ERR_BAD_RESPONSE,R,E);Mt&&Mt(pl)};it=new h(Zh(it.body,Kh,ca,()=>{Ct&&Ct(),U&&U()}),oe)}Te=Te||"text";let Et=await G[A.findKey(G,Te)||"text"](it,R);if(M&&!B&&!ut){let oe;if(Et!=null&&(typeof Et.byteLength=="number"?oe=Et.byteLength:typeof Et.size=="number"?oe=Et.size:typeof Et=="string"&&(oe=typeof u=="function"?new u().encode(Et).byteLength:Et.length)),typeof oe=="number"&&oe>ze)throw new I("maxContentLength size of "+ze+" exceeded",I.ERR_BAD_RESPONSE,R,E)}return!ut&&U&&U(),await new Promise((oe,ot)=>{$m(oe,ot,{data:Et,headers:St.from(it.headers),status:it.status,statusText:it.statusText,config:R,request:E})})}catch(Z){if(U&&U(),se&&se.aborted&&se.reason instanceof I){const le=se.reason;throw le.config=R,E&&(le.request=E),Z!==le&&(le.cause=Z),le}throw W?(E&&!W.request&&(W.request=E),W):Z instanceof I?(E&&!Z.request&&(Z.request=E),Z):Z&&Z.name==="TypeError"&&/Load failed|fetch/i.test(Z.message)?Object.assign(new I("Network Error",I.ERR_NETWORK,R,E,Z&&Z.response),{cause:Z.cause||Z}):I.from(Z,Z&&Z.code,R,E,Z&&Z.response)}}},fb=new Map,e0=n=>{let s=n&&n.env||{};const{fetch:o,Request:u,Response:f}=s,p=[u,f,o];let h=p.length,y=h,x,g,v=fb;for(;y--;)x=p[y],g=v.get(x),g===void 0&&v.set(x,g=y?new Map:cb(s)),v=g;return g};e0();const Ec={http:Rv,xhr:tb,fetch:{get:e0}};A.forEach(Ec,(n,s)=>{if(n){try{Object.defineProperty(n,"name",{__proto__:null,value:s})}catch{}Object.defineProperty(n,"adapterName",{__proto__:null,value:s})}});const $h=n=>`- ${n}`,db=n=>A.isFunction(n)||n===null||n===!1;function pb(n,s){n=A.isArray(n)?n:[n];const{length:o}=n;let u,f;const p={};for(let h=0;h<o;h++){u=n[h];let y;if(f=u,!db(u)&&(f=Ec[(y=String(u)).toLowerCase()],f===void 0))throw new I(`Unknown adapter '${y}'`);if(f&&(A.isFunction(f)||(f=f.get(s))))break;p[y||"#"+h]=f}if(!f){const h=Object.entries(p).map(([x,g])=>`adapter ${x} `+(g===!1?"is not supported by the environment":"is not available in the build"));let y=o?h.length>1?`since :
`+h.map($h).join(`
`):" "+$h(h[0]):"as no adapter specified";throw new I("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return f}const t0={getAdapter:pb,adapters:Ec};function Fo(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new wi(null,n)}function Ih(n){return Fo(n),n.headers=St.from(n.headers),n.data=Qo.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),t0.getAdapter(n.adapter||Ni.adapter,n)(n).then(function(u){Fo(n),n.response=u;try{u.data=Qo.call(n,n.transformResponse,u)}finally{delete n.response}return u.headers=St.from(u.headers),u},function(u){if(!Wm(u)&&(Fo(n),u&&u.response)){n.response=u.response;try{u.response.data=Qo.call(n,n.transformResponse,u.response)}finally{delete n.response}u.response.headers=St.from(u.response.headers)}return Promise.reject(u)})}const xs={};["object","boolean","number","function","string","symbol"].forEach((n,s)=>{xs[n]=function(u){return typeof u===n||"a"+(s<1?"n ":" ")+n}});const Ph={};xs.transitional=function(s,o,u){function f(p,h){return"[Axios v"+Sc+"] Transitional option '"+p+"'"+h+(u?". "+u:"")}return(p,h,y)=>{if(s===!1)throw new I(f(h," has been removed"+(o?" in "+o:"")),I.ERR_DEPRECATED);return o&&!Ph[h]&&(Ph[h]=!0,console.warn(f(h," has been deprecated since v"+o+" and will be removed in the near future"))),s?s(p,h,y):!0}};xs.spelling=function(s){return(o,u)=>(console.warn(`${u} is likely a misspelling of ${s}`),!0)};function hb(n,s,o){if(typeof n!="object")throw new I("options must be an object",I.ERR_BAD_OPTION_VALUE);const u=Object.keys(n);let f=u.length;for(;f-- >0;){const p=u[f],h=Object.prototype.hasOwnProperty.call(s,p)?s[p]:void 0;if(h){const y=n[p],x=y===void 0||h(y,p,n);if(x!==!0)throw new I("option "+p+" must be "+x,I.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new I("Unknown option "+p,I.ERR_BAD_OPTION)}}const as={assertOptions:hb,validators:xs},bt=as.validators;let Oa=class{constructor(s){this.defaults=s||{},this.interceptors={request:new Yh,response:new Yh}}async request(s,o){try{return await this._request(s,o)}catch(u){if(u instanceof Error){let f={};Error.captureStackTrace?Error.captureStackTrace(f):f=new Error;const p=(()=>{if(!f.stack)return"";const h=f.stack.indexOf(`
`);return h===-1?"":f.stack.slice(h+1)})();try{if(!u.stack)u.stack=p;else if(p){const h=p.indexOf(`
`),y=h===-1?-1:p.indexOf(`
`,h+1),x=y===-1?"":p.slice(y+1);String(u.stack).endsWith(x)||(u.stack+=`
`+p)}}catch{}}throw u}}_request(s,o){typeof s=="string"?(o=o||{},o.url=s):o=s||{},o=Ma(this.defaults,o);const{transitional:u,paramsSerializer:f,headers:p}=o;u!==void 0&&as.assertOptions(u,{silentJSONParsing:bt.transitional(bt.boolean),forcedJSONParsing:bt.transitional(bt.boolean),clarifyTimeoutError:bt.transitional(bt.boolean),legacyInterceptorReqResOrdering:bt.transitional(bt.boolean),advertiseZstdAcceptEncoding:bt.transitional(bt.boolean),validateStatusUndefinedResolves:bt.transitional(bt.boolean)},!1),f!=null&&(A.isFunction(f)?o.paramsSerializer={serialize:f}:as.assertOptions(f,{encode:bt.function,serialize:bt.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),as.assertOptions(o,{baseUrl:bt.spelling("baseURL"),withXsrfToken:bt.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let h=p&&A.merge(p.common,p[o.method]);p&&A.forEach(["delete","get","head","post","put","patch","query","common"],G=>{delete p[G]}),o.headers=St.concat(h,p);const y=[];let x=!0;this.interceptors.request.forEach(function(k){if(typeof k.runWhen=="function"&&k.runWhen(o)===!1)return;x=x&&k.synchronous;const w=o.transitional||vc;w&&w.legacyInterceptorReqResOrdering?y.unshift(k.fulfilled,k.rejected):y.push(k.fulfilled,k.rejected)});const g=[];this.interceptors.response.forEach(function(k){g.push(k.fulfilled,k.rejected)});let v,b=0,O;if(!x){const G=[Ih.bind(this),void 0];for(G.unshift(...y),G.push(...g),O=G.length,v=Promise.resolve(o);b<O;)v=v.then(G[b++],G[b++]);return v}O=y.length;let B=o;for(;b<O;){const G=y[b++],k=y[b++];try{B=G(B)}catch(w){k.call(this,w);break}}try{v=Ih.call(this,B)}catch(G){return Promise.reject(G)}for(b=0,O=g.length;b<O;)v=v.then(g[b++],g[b++]);return v}getUri(s){s=Ma(this.defaults,s);const o=Im(s.baseURL,s.url,s.allowAbsoluteUrls,s);return Zm(o,s.params,s.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(s){Oa.prototype[s]=function(o,u){return this.request(Ma(u||{},{method:s,url:o,data:u&&A.hasOwnProp(u,"data")?u.data:void 0}))}});A.forEach(["post","put","patch","query"],function(s){function o(u){return function(p,h,y){return this.request(Ma(y||{},{method:s,headers:u?{"Content-Type":"multipart/form-data"}:{},url:p,data:h}))}}Oa.prototype[s]=o(),s!=="query"&&(Oa.prototype[s+"Form"]=o(!0))});let mb=class l0{constructor(s){if(typeof s!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(p){o=p});const u=this;this.promise.then(f=>{if(!u._listeners)return;let p=u._listeners.length;for(;p-- >0;)u._listeners[p](f);u._listeners=null}),this.promise.then=f=>{let p;const h=new Promise(y=>{u.subscribe(y),p=y}).then(f);return h.cancel=function(){u.unsubscribe(p)},h},s(function(p,h,y){u.reason||(u.reason=new wi(p,h,y),o(u.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const o=this._listeners.indexOf(s);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){const s=new AbortController,o=u=>{s.abort(u)};return this.subscribe(o),s.signal.unsubscribe=()=>this.unsubscribe(o),s.signal}static source(){let s;return{token:new l0(function(f){s=f}),cancel:s}}};function yb(n){return function(o){return n.apply(null,o)}}function gb(n){return A.isObject(n)&&n.isAxiosError===!0}const lc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(lc).forEach(([n,s])=>{lc[s]=n});function a0(n){const s=new Oa(n),o=Dm(Oa.prototype.request,s);return A.extend(o,Oa.prototype,s,{allOwnKeys:!0}),A.extend(o,s,null,{allOwnKeys:!0}),o.create=function(f){return a0(Ma(n,f))},o}const $e=a0(Ni);$e.Axios=Oa;$e.CanceledError=wi;$e.CancelToken=mb;$e.isCancel=Wm;$e.VERSION=Sc;$e.toFormData=gs;$e.AxiosError=I;$e.Cancel=$e.CanceledError;$e.all=function(s){return Promise.all(s)};$e.spread=yb;$e.isAxiosError=gb;$e.mergeConfig=Ma;$e.AxiosHeaders=St;$e.formToJSON=n=>Jm(A.isHTMLForm(n)?new FormData(n):n);$e.getAdapter=t0.getAdapter;$e.HttpStatusCode=lc;$e.default=$e;const{Axios:q2,AxiosError:Y2,CanceledError:V2,isCancel:X2,CancelToken:G2,VERSION:Q2,all:F2,Cancel:Z2,isAxiosError:K2,spread:J2,toFormData:W2,AxiosHeaders:$2,HttpStatusCode:I2,formToJSON:P2,getAdapter:eS,mergeConfig:tS,create:lS}=$e,yt=$e.create({baseURL:"http://localhost:8000",headers:{Accept:"application/json","Content-Type":"application/json"},withCredentials:!1});yt.interceptors.request.use(n=>{const s=localStorage.getItem("api_token");return s&&(n.headers.Authorization=`Bearer ${s}`),n});const n0=j.createContext({}),xb=({children:n})=>{const[s,o]=j.useState(!1),[u,f]=j.useState(null),[p,h]=j.useState(!0);j.useEffect(()=>{y()},[]);const y=async()=>{try{if(localStorage.getItem("api_token")){const b=await yt.get("/api/v1/auth/me");f(b.data.data),o(!0)}else o(!1)}catch{localStorage.removeItem("api_token"),o(!1)}finally{h(!1)}},x=async v=>{const b=await yt.post("/api/v1/auth/login",v);localStorage.setItem("api_token",b.data.data.access_token),f(b.data.data.user),o(!0)},g=async()=>{try{await yt.post("/api/v1/auth/logout")}catch{}localStorage.removeItem("api_token"),f(null),o(!1)};return c.jsx(n0.Provider,{value:{isAuthenticated:s,user:u,login:x,logout:g,loading:p},children:!p&&n})},Tn=()=>j.useContext(n0),vb=()=>{const{isAuthenticated:n,loading:s}=Tn();return s?c.jsx("div",{style:{height:"100vh",display:"flex",alignItems:"center",justifyContent:"center",color:"white"},children:"Cargando ORION OS..."}):n?c.jsx(_m,{}):c.jsx(dc,{to:"/login",replace:!0})};/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i0=(...n)=>n.filter((s,o,u)=>!!s&&s.trim()!==""&&u.indexOf(s)===o).join(" ").trim();/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bb=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Sb=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,o,u)=>u?u.toUpperCase():o.toLowerCase());/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const em=n=>{const s=Sb(n);return s.charAt(0).toUpperCase()+s.slice(1)};/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var Zo={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Eb=n=>{for(const s in n)if(s.startsWith("aria-")||s==="role"||s==="title")return!0;return!1},jb=j.createContext({}),Rb=()=>j.useContext(jb),Cb=j.forwardRef(({color:n,size:s,strokeWidth:o,absoluteStrokeWidth:u,className:f="",children:p,iconNode:h,...y},x)=>{const{size:g=24,strokeWidth:v=2,absoluteStrokeWidth:b=!1,color:O="currentColor",className:B=""}=Rb()??{},G=u??b?Number(o??v)*24/Number(s??g):o??v;return j.createElement("svg",{ref:x,...Zo,width:s??g??Zo.width,height:s??g??Zo.height,stroke:n??O,strokeWidth:G,className:i0("lucide",B,f),...!p&&!Eb(y)&&{"aria-hidden":"true"},...y},[...h.map(([k,w])=>j.createElement(k,w)),...Array.isArray(p)?p:[p]])});/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Se=(n,s)=>{const o=j.forwardRef(({className:u,...f},p)=>j.createElement(Cb,{ref:p,iconNode:s,className:i0(`lucide-${bb(em(n))}`,`lucide-${n}`,u),...f}));return o.displayName=em(n),o};/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ab=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],zb=Se("book-open",Ab);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tb=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],_b=Se("camera",Tb);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ob=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],os=Se("check",Ob);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nb=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],r0=Se("chevron-left",Nb);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Db=Se("chevron-right",wb);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Ub=Se("circle-alert",Mb);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Bb=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Lb=Se("circle-check-big",Bb);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],kb=Se("circle-check",Hb);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],tm=Se("circle-plus",qb);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Vb=Se("clock",Yb);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xb=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ac=Se("copy",Xb);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gb=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Qb=Se("database",Gb);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fb=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Zb=Se("download",Fb);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kb=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Jb=Se("eye-off",Kb);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Wb=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],$b=Se("eye",Wb);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ib=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],cs=Se("file-spreadsheet",Ib);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Pb=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],s0=Se("file-text",Pb);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const e2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],t2=Se("info",e2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const l2=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],lm=Se("laptop",l2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a2=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],tl=Se("loader-circle",a2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const n2=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],u0=Se("lock",n2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i2=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],r2=Se("log-in",i2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const s2=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],u2=Se("log-out",s2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const o2=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],o0=Se("moon",o2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c2=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],am=Se("pen",c2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const f2=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],c0=Se("power",f2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d2=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ai=Se("search",d2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const p2=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],h2=Se("settings",p2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const m2=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],nc=Se("shield",m2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const y2=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],f0=Se("sun",y2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g2=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Na=Se("trash-2",g2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x2=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ic=Se("triangle-alert",x2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const v2=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],nm=Se("upload",v2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b2=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],im=Se("user-plus",b2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const S2=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],E2=Se("user",S2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const j2=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],d0=Se("users",j2);/**
 * @license lucide-react v1.21.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const R2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],wa=Se("x",R2),C2=()=>{const{login:n,isAuthenticated:s}=Tn(),o=ps(),[u,f]=j.useState(""),[p,h]=j.useState(""),[y,x]=j.useState(!1),[g,v]=j.useState(""),[b,O]=j.useState(!1),[B,G]=j.useState(""),[k,w]=j.useState(!1),[R,Y]=j.useState(""),[X,$]=j.useState(!1),[F,te]=j.useState(!1),[P,xe]=j.useState(!1),[Ee,Te]=j.useState(!1),[ce,Ae]=j.useState(()=>document.body.classList.contains("dark")),Ne=()=>{const ae=!ce;Ae(ae),ae?(document.body.classList.add("dark"),localStorage.setItem("theme","dark")):(document.body.classList.remove("dark"),localStorage.setItem("theme","light"))},ze="OrionSecureDeviceKey2026",fe=ae=>{if(!ae)return"";let se="";for(let E=0;E<ae.length;E++){const U=ae.charCodeAt(E)^ze.charCodeAt(E%ze.length);se+=String.fromCharCode(U)}return btoa(se).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")};j.useEffect(()=>{s&&o("/")},[s,o]),j.useEffect(()=>{let ae=localStorage.getItem("orion_device_uuid");ae||(ae="orion_"+Math.random().toString(36).substring(2,15)+"_"+Math.random().toString(36).substring(2,15),localStorage.setItem("orion_device_uuid",ae)),G(ae)},[]);const M=async ae=>{var se,E,U,K,W;ae.preventDefault(),O(!0),v(""),w(!1);try{const L=fe(B);await n({username:u,password:p,uuid:L}),o("/")}catch(L){((se=L.response)==null?void 0:se.status)===403&&((U=(E=L.response)==null?void 0:E.data)!=null&&U.unauthorized)?(Y(L.response.data.uuid||B),w(!0)):v(((W=(K=L.response)==null?void 0:K.data)==null?void 0:W.error)||"Usuario o Contraseña Incorrectos")}finally{O(!1)}},J=()=>{navigator.clipboard.writeText(R),$(!0),setTimeout(()=>$(!1),2e3)},ie=()=>{const ae=`Hola Administrador, solicito autorización para acceder al sistema Orion.
Usuario: ${u}
UUID: ${R}`;navigator.clipboard.writeText(ae),te(!0),setTimeout(()=>te(!1),2e3)};return c.jsxs("div",{className:"main-layout",style:{justifyContent:"center",alignItems:"center",background:"var(--bg-surface)",position:"relative",overflow:"hidden",padding:"1.5rem"},children:[c.jsx("div",{style:{position:"absolute",top:"20px",right:"24px",zIndex:1e3},children:c.jsx("div",{className:"theme-switch-track",onClick:Ne,title:ce?"Desactivar Modo Oscuro":"Activar Modo Oscuro",children:c.jsx("div",{className:"theme-switch-thumb",children:ce?c.jsx(o0,{size:10,strokeWidth:3}):c.jsx(f0,{size:10,strokeWidth:3})})})}),c.jsx("div",{style:{position:"absolute",top:"-10%",left:"-10%",width:"320px",height:"320px",borderRadius:"50%",background:"rgba(168, 85, 247, 0.12)",filter:"blur(100px)",pointerEvents:"none",zIndex:0}}),c.jsx("div",{style:{position:"absolute",bottom:"-10%",right:"-10%",width:"340px",height:"340px",borderRadius:"50%",background:"rgba(74, 167, 252, 0.08)",filter:"blur(100px)",pointerEvents:"none",zIndex:0}}),c.jsxs("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",zIndex:0,color:"rgba(255, 255, 255, 0.015)",overflow:"hidden"},children:[c.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("defs",{children:c.jsx("pattern",{id:"login-dot-grid",width:"24",height:"24",patternUnits:"userSpaceOnUse",children:c.jsx("circle",{cx:"2",cy:"2",r:"1",fill:"currentColor"})})}),c.jsx("rect",{width:"100%",height:"100%",fill:"url(#login-dot-grid)"})]}),c.jsxs("svg",{viewBox:"0 0 200 200",style:{position:"absolute",bottom:"-5%",right:"-10%",width:"280px",height:"280px",opacity:.15},xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("circle",{cx:"100",cy:"100",r:"85",stroke:"currentColor",strokeWidth:"0.5",fill:"none"}),c.jsx("circle",{cx:"100",cy:"100",r:"65",stroke:"currentColor",strokeWidth:"0.5",fill:"none",strokeDasharray:"4 3"}),c.jsx("circle",{cx:"100",cy:"100",r:"45",stroke:"currentColor",strokeWidth:"0.5",fill:"none"}),c.jsx("circle",{cx:"100",cy:"100",r:"25",stroke:"currentColor",strokeWidth:"0.5",fill:"none"}),c.jsx("line",{x1:"100",y1:"10",x2:"100",y2:"190",stroke:"currentColor",strokeWidth:"0.5"}),c.jsx("line",{x1:"10",y1:"100",x2:"190",y2:"100",stroke:"currentColor",strokeWidth:"0.5"})]})]}),c.jsxs("div",{className:"login-screen-container",style:{zIndex:1,width:"100%",maxWidth:"380px",animation:"fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards"},children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:`
          @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
          }
          @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-6px); }
            40%, 80% { transform: translateX(6px); }
          }
        `}}),c.jsx("div",{style:{width:"84px",height:"84px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 8px 24px rgba(0, 0, 0, 0.5)",marginBottom:"1.2rem",border:"2px solid rgba(255, 255, 255, 0.15)",overflow:"hidden",background:"#0c0d12"},children:c.jsx("img",{src:"/img/logo_orion.jpg",alt:"Orion Logo",style:{width:"100%",height:"100%",objectFit:"cover"}})}),c.jsxs("div",{className:"login-glass-card",children:[c.jsxs("div",{style:{textAlign:"center",marginBottom:"1.8rem"},children:[c.jsx("h1",{style:{fontSize:"1.45rem",fontWeight:800,color:"var(--text-primary)",letterSpacing:"-0.5px"},children:"Orion Red"}),c.jsx("p",{style:{fontSize:"0.78rem",color:"var(--text-secondary)",fontWeight:500,marginTop:"4px"},children:"Control de Placas y Reportes Vehiculares"})]}),g&&c.jsxs("div",{style:{background:"rgba(239, 68, 68, 0.08)",color:"var(--accent-red)",padding:"10px 14px",borderRadius:"12px",fontSize:"0.78rem",fontWeight:600,border:"1px solid rgba(239, 68, 68, 0.15)",marginBottom:"1.2rem",display:"flex",alignItems:"center",gap:"8px",animation:"shake 0.4s ease"},children:[c.jsx(ic,{size:14,style:{flexShrink:0}}),c.jsx("span",{children:g})]}),c.jsxs("form",{onSubmit:M,style:{display:"flex",flexDirection:"column",gap:"14px"},children:[c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[c.jsx("label",{style:{fontSize:"0.7rem",fontWeight:700,color:"var(--text-secondary)",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Usuario"}),c.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"center"},children:[c.jsx(E2,{size:16,style:{position:"absolute",left:"14px",color:P?"var(--accent-purple)":"var(--text-muted)",transition:"color 0.2s ease"}}),c.jsx("input",{type:"text",value:u,onChange:ae=>f(ae.target.value),onFocus:()=>xe(!0),onBlur:()=>xe(!1),placeholder:"Nombre de usuario",required:!0,className:"login-input",style:{width:"100%"}})]})]}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px",marginBottom:"8px"},children:[c.jsx("label",{style:{fontSize:"0.7rem",fontWeight:700,color:"var(--text-secondary)",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Contraseña"}),c.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"center"},children:[c.jsx(u0,{size:16,style:{position:"absolute",left:"14px",color:Ee?"var(--accent-purple)":"var(--text-muted)",transition:"color 0.2s ease"}}),c.jsx("input",{type:y?"text":"password",value:p,onChange:ae=>h(ae.target.value),onFocus:()=>Te(!0),onBlur:()=>Te(!1),placeholder:"••••••••",required:!0,className:"login-input password-input",style:{width:"100%",paddingRight:"42px"}}),c.jsx("button",{type:"button",onClick:()=>x(!y),style:{position:"absolute",right:"14px",border:"none",background:"transparent",cursor:"pointer",color:"var(--text-muted)",display:"flex",alignItems:"center",padding:0,outline:"none"},children:y?c.jsx(Jb,{size:16}):c.jsx($b,{size:16})})]})]}),c.jsx("button",{type:"submit",className:"primary-btn-accent",disabled:b,style:{height:"44px",borderRadius:"12px",background:"var(--accent-purple)",color:"#FFFFFF",fontSize:"0.82rem",fontWeight:800,letterSpacing:"1px",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",boxShadow:"0 8px 24px rgba(168, 85, 247, 0.2)",transition:"all 0.2s ease",outline:"none"},onMouseEnter:ae=>ae.currentTarget.style.opacity="0.9",onMouseLeave:ae=>ae.currentTarget.style.opacity="1",children:b?c.jsx(tl,{size:16,className:"spin"}):c.jsxs(c.Fragment,{children:[c.jsx(r2,{size:16}),"INGRESAR"]})})]})]}),c.jsx("div",{style:{marginTop:"2rem",fontSize:"0.72rem",color:"var(--text-muted)",fontWeight:600,letterSpacing:"0.5px",textAlign:"center"},children:"SISTEMA DE MONITOREO Y REGISTRO VEHICULAR • ORION"})]}),k&&c.jsx("div",{style:A2,children:c.jsxs("div",{className:"soft-card",style:{...z2,maxWidth:"340px",width:"100%",textAlign:"center",position:"relative"},children:[c.jsx("button",{onClick:()=>w(!1),style:{position:"absolute",top:"12px",right:"12px",border:"none",background:"transparent",cursor:"pointer",color:"var(--text-muted)",outline:"none"},children:c.jsx(wa,{size:18})}),c.jsx("div",{style:{display:"flex",justifyContent:"center",marginBottom:"0.6rem",color:"var(--accent-red)"},children:c.jsx(ic,{size:40})}),c.jsx("h3",{style:{fontSize:"0.95rem",fontWeight:800,color:"var(--text-primary)"},children:"Dispositivo no Autorizado"}),c.jsx("p",{style:{fontSize:"0.72rem",color:"var(--text-secondary)",marginTop:"6px",lineHeight:"1.3"},children:"Este dispositivo requiere vinculación. Pide a un Administrador que escanee este código QR para autorizar el acceso de este equipo al sistema de reportes."}),c.jsx("div",{style:{margin:"12px 0",display:"flex",justifyContent:"center"},children:c.jsx("div",{style:{padding:"8px",background:"#FFFFFF",borderRadius:"10px",display:"inline-block"},children:c.jsx("img",{src:`https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=${encodeURIComponent(u+"|"+R)}`,alt:"QR de Autorización",style:{width:"150px",height:"150px",display:"block"}})})}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",background:"var(--bg-surface)",border:"1px solid rgba(255,255,255,0.06)",padding:"6px 10px",borderRadius:"8px",justifyContent:"space-between",marginBottom:"8px"},children:[c.jsx("span",{style:{fontSize:"0.62rem",fontFamily:"monospace",color:"var(--text-secondary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"240px"},children:R}),c.jsx("button",{onClick:J,style:{border:"none",background:"transparent",cursor:"pointer",color:X?"var(--accent-green)":"var(--text-muted)",padding:"2px",display:"flex",alignItems:"center",outline:"none"},title:"Copiar UUID",children:X?c.jsx(os,{size:13}):c.jsx(ac,{size:13})})]}),c.jsxs("button",{onClick:ie,style:{width:"100%",height:"36px",borderRadius:"8px",background:F?"rgba(34, 197, 94, 0.08)":"rgba(168, 85, 247, 0.08)",color:F?"var(--accent-green)":"var(--accent-purple)",border:F?"1px solid rgba(34, 197, 94, 0.15)":"1px solid rgba(168, 85, 247, 0.15)",fontWeight:700,fontSize:"0.74rem",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",marginBottom:"8px",outline:"none",transition:"all 0.2s"},children:[F?c.jsx(os,{size:14}):c.jsx(s0,{size:14}),F?"¡SOLICITUD COPIADA!":"COPIAR SOLICITUD PARA WHATSAPP"]}),c.jsx("button",{onClick:()=>w(!1),style:{width:"100%",height:"36px",borderRadius:"8px",background:"rgba(255,255,255,0.02)",color:"var(--text-secondary)",fontWeight:700,fontSize:"0.74rem",border:"1px solid rgba(255,255,255,0.06)",cursor:"pointer",outline:"none"},children:"CERRAR"})]})})]})},A2={position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba(12, 13, 18, 0.5)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",zIndex:1e3,display:"flex",alignItems:"center",justifyContent:"center",padding:"1.5rem"},z2={width:"100%",maxWidth:"340px",background:"var(--bg-card)",borderRadius:"20px",padding:"1.2rem",boxShadow:"var(--shadow-soft)",animation:"scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1)",border:"1px solid rgba(255,255,255,0.08)"},T2=()=>{const{user:n}=Tn(),s=(n==null?void 0:n.name)||"Ismael Bennacer",[o,u]=j.useState(()=>document.body.classList.contains("dark"));j.useEffect(()=>{const R=new MutationObserver(()=>{u(document.body.classList.contains("dark"))});return R.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>R.disconnect()},[]);const[f,p]=j.useState(""),[h,y]=j.useState([]),[x,g]=j.useState(!1),[v,b]=j.useState(null),O=[{id:101,plate_name:"MHX832",description:"Vehículo Particular - Autorizado",detail:"Operación normal sin novedades",location:"Bogotá, D.C.",level:1,entry_date:"2026-06-18",exit_date:null,antiquity_level:1},{id:102,plate_name:"DFG456",description:"Acceso Restringido - Alerta de Tránsito",detail:"Revisión técnica de gases pendiente",location:"Medellín, ANT",level:3,entry_date:"2026-06-19",exit_date:null,antiquity_level:3},{id:103,plate_name:"KLO789",description:"Carga Comercial - En Tránsito",detail:"Permiso especial de transporte masivo",location:"Cali, VAL",level:2,entry_date:"2026-06-20",exit_date:null,antiquity_level:2}];j.useEffect(()=>{const R=setTimeout(()=>{f.length>=3?B(f):y([])},400);return()=>clearTimeout(R)},[f]);const B=async R=>{g(!0);try{const Y=await yt.get("/api/v1/plates/search",{params:{q:R}});y(Y.data.data)}catch(Y){console.error("Error fetching plates",Y),y([])}finally{g(!1)}},G=R=>{switch(R){case 1:return"#FF5B60";case 2:return"#10B981";case 3:return"#FF5C8A";case 4:return"#2EA8E5";case 5:return"#7B52F2";default:return"#7E8294"}},k=()=>{const R={month:"long",day:"numeric",year:"numeric"},Y=new Date().toLocaleDateString("es-ES",R);return Y.charAt(0).toUpperCase()+Y.slice(1)},w=R=>R.length>=6?`${R.substring(0,3)} • ${R.substring(3)}`:R;return c.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",position:"relative",height:"100%"},children:[c.jsx("div",{className:"home-header",style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2px"},children:[c.jsx("span",{className:"date-text",children:k()}),c.jsx("h1",{className:"user-title",children:s})]})}),c.jsx("div",{className:"search-pill-wrapper",style:{justifyContent:"center"},children:c.jsxs("div",{className:"search-pill-container",style:{flex:"none",width:"60%",minWidth:"180px",height:"46px",borderRadius:"23px",padding:"0 16px",gap:"10px",display:"flex",alignItems:"center",transition:"var(--transition-smooth)"},children:[c.jsx(Ai,{size:20,color:"var(--accent-purple)",style:{flexShrink:0}}),c.jsx("input",{type:"text",placeholder:"Buscar...",value:f,onChange:R=>p(R.target.value.toUpperCase()),maxLength:7,style:{fontSize:"0.9rem",textAlign:"left",border:"none",background:"transparent",outline:"none",color:"var(--text-primary)",flex:1}}),x&&c.jsx("div",{style:{width:"16px",height:"16px",border:"2px solid rgba(123, 82, 242, 0.1)",borderTopColor:"var(--accent-purple)",borderRadius:"50%",animation:"spin 0.8s linear infinite",flexShrink:0}})]})}),f.length<3&&c.jsxs("div",{className:"context-cards-slider",children:[c.jsxs("div",{className:"context-card-peach",children:[c.jsx("span",{className:"title",children:"Servicios Orion"}),c.jsx("span",{className:"value",children:"Activo"}),c.jsx("span",{className:"subtitle",children:"Bogotá, Colombia"}),c.jsxs("svg",{style:{position:"absolute",right:10,bottom:10,width:70,height:70,opacity:.85},viewBox:"0 0 100 100",children:[c.jsx("circle",{cx:"75",cy:"25",r:"10",fill:"#FFA280"}),c.jsx("path",{d:"M40 90 L40 50 M40 50 L25 40 M40 50 L55 40",stroke:"var(--accent-peach-dark)",strokeWidth:"3",strokeLinecap:"round"}),c.jsx("circle",{cx:"40",cy:"50",r:"3",fill:"var(--accent-peach-dark)"})]})]}),c.jsxs("div",{className:"context-card-map",children:[c.jsx("span",{className:"title",children:"Base de Datos"}),c.jsx("span",{className:"value",children:"API V1"}),c.jsx("span",{className:"subtitle",children:"Conexión Segura"})]})]}),c.jsx("div",{className:"section-title-container",children:c.jsx("h2",{className:"section-title",children:f.length>=3?"Resultados de Búsqueda":"Consultas Recientes"})}),c.jsx("div",{className:"results-grid-container",style:{gap:"10px",alignContent:"start",paddingBottom:"8rem"},children:f.length>=3?h.length>0?h.map(R=>c.jsxs("div",{className:"plate-row-card",onClick:()=>b(R),style:{background:"var(--bg-card)",transition:"all 0.25s",padding:"10px 8px",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:"6px",minHeight:"62px",borderRadius:"16px"},children:[c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1px",minWidth:0,flex:1},children:[c.jsx("span",{style:{fontSize:"0.8rem",fontWeight:800,color:"var(--text-primary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block"},children:R.plate_name}),c.jsx("span",{style:{fontSize:"0.62rem",color:"var(--text-secondary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block"},children:R.location||"No registrada"})]}),c.jsx("div",{style:{display:"flex",flexShrink:0,alignItems:"center"},children:c.jsx("div",{className:"plate-row-right-visual",style:{width:"24px",height:"24px",borderRadius:"6px",background:"var(--bg-surface)",border:"1px solid rgba(255, 255, 255, 0.05)",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:o?"inset 1px 1px 2px #0C0D10, inset -1px -1px 2px #2A2C37":"inset 1px 1px 2px #CAD1DB, inset -1px -1px 2px #FFFFFF"},children:c.jsx("div",{className:"dot",style:{width:"6px",height:"6px",borderRadius:"50%",background:G(R.antiquity_level),boxShadow:`0 0 6px ${G(R.antiquity_level)}`}})})})]},R.id)):!x&&c.jsx("div",{style:{gridColumn:"span 3",textAlign:"center",color:"var(--text-muted)",marginTop:"3rem",fontWeight:600},children:"No se encontraron placas"}):O.map(R=>c.jsxs("div",{className:"plate-row-card",onClick:()=>b(R),style:{background:"var(--bg-card)",transition:"all 0.25s",padding:"10px 8px",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:"6px",minHeight:"62px",borderRadius:"16px"},children:[c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1px",minWidth:0,flex:1},children:[c.jsx("span",{style:{fontSize:"0.8rem",fontWeight:800,color:"var(--text-primary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block"},children:R.plate_name}),c.jsx("span",{style:{fontSize:"0.62rem",color:"var(--text-secondary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block"},children:R.location})]}),c.jsx("div",{style:{display:"flex",flexShrink:0,alignItems:"center"},children:c.jsx("div",{className:"plate-row-right-visual",style:{width:"24px",height:"24px",borderRadius:"6px",background:"var(--bg-surface)",border:"1px solid rgba(255, 255, 255, 0.05)",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:o?"inset 1px 1px 2px #0C0D10, inset -1px -1px 2px #2A2C37":"inset 1px 1px 2px #CAD1DB, inset -1px -1px 2px #FFFFFF"},children:c.jsx("div",{className:"dot",style:{width:"6px",height:"6px",borderRadius:"50%",background:G(R.antiquity_level),boxShadow:`0 0 6px ${G(R.antiquity_level)}`}})})})]},R.id))}),v&&c.jsxs("div",{className:"details-view-container",children:[c.jsxs("div",{className:"details-header",children:[c.jsx("button",{className:"circle-btn",onClick:()=>b(null),title:"Volver",children:c.jsx(r0,{size:22})}),c.jsxs("div",{className:"title-group",style:{textAlign:"center"},children:[c.jsx("h2",{children:"Estadísticas"}),c.jsx("span",{children:"Placa Vehicular"})]}),c.jsx("div",{style:{width:"44px"}})]}),c.jsx("div",{className:"illustration-circle-container",children:c.jsxs("div",{className:"license-plate-mockup",children:[c.jsx("div",{className:"plate-origin",children:"COLOMBIA"}),c.jsx("div",{className:"plate-letters-numbers",children:w(v.plate_name)}),c.jsx("div",{className:"plate-bottom-line",children:v.location?v.location.toUpperCase():"BOGOTÁ D.C."})]})}),c.jsxs("div",{className:"stats-cards-row",children:[c.jsxs("div",{className:"stat-mini-card",children:[c.jsx("div",{className:"icon-wrapper",children:c.jsx(nc,{size:18})}),c.jsx("span",{className:"label",children:"Nivel de Acceso"}),c.jsxs("span",{className:"val",style:{color:"var(--accent-purple)"},children:["Nivel ",v.level]})]}),c.jsxs("div",{className:"stat-mini-card",children:[c.jsx("div",{className:"icon-wrapper",style:{color:"var(--accent-peach-dark)"},children:c.jsx(Lb,{size:18})}),c.jsx("span",{className:"label",children:"Estado Actual"}),c.jsx("span",{className:"val",style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:v.description.split(" - ")[1]||v.description})]})]}),v.detail&&c.jsx("div",{style:{padding:"0 1.5rem 1rem 1.5rem"},children:c.jsxs("div",{style:{background:"var(--bg-surface)",padding:"12px 16px",borderRadius:"20px",border:"1px solid rgba(123, 82, 242, 0.04)"},children:[c.jsx("span",{style:{fontSize:"0.72rem",fontWeight:600,color:"var(--text-secondary)",display:"block",marginBottom:"4px"},children:"Detalles / Observaciones"}),c.jsx("p",{style:{fontSize:"0.8rem",color:"var(--text-primary)",fontWeight:500,lineHeight:"1.4"},children:v.detail})]})}),c.jsx("div",{style:{padding:"1rem 1.5rem 2rem 1.5rem",display:"flex",flexDirection:"column",gap:"8px"},children:c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",color:"var(--text-secondary)",fontSize:"0.8rem",background:"var(--bg-surface)",padding:"12px 16px",borderRadius:"16px"},children:[c.jsx(Vb,{size:16}),c.jsxs("span",{children:["Entrada del sistema: ",v.entry_date]})]})})]})]})},_2=()=>{const[n,s]=j.useState("import"),[o,u]=j.useState(null),[f,p]=j.useState(!1),[h,y]=j.useState("idle"),[x,g]=j.useState(""),[v,b]=j.useState(0),O=j.useRef(null),B=()=>{y("idle"),g(""),b(0)},G=F=>{F.preventDefault(),F.stopPropagation(),F.type==="dragenter"||F.type==="dragover"?p(!0):F.type==="dragleave"&&p(!1)},k=F=>{if(F.preventDefault(),F.stopPropagation(),p(!1),B(),F.dataTransfer.files&&F.dataTransfer.files[0]){const te=F.dataTransfer.files[0];R(te)}},w=F=>{B(),F.target.files&&F.target.files[0]&&R(F.target.files[0])},R=F=>{const te=[".xlsx",".xls",".csv"],P=F.name.toLowerCase();if(!te.some(Ee=>P.endsWith(Ee))){y("error"),g("Formato no válido. Sube un archivo .xlsx, .xls o .csv."),u(null);return}if(F.size>20*1024*1024){y("error"),g("El archivo supera el límite de 20MB."),u(null);return}u(F)},Y=F=>{F.stopPropagation(),u(null),B(),O.current&&(O.current.value="")},X=()=>{h!=="loading"&&O.current&&O.current.click()},$=async()=>{var P,xe,Ee,Te;if(!o)return;y("loading"),b(10);const F=new FormData;F.append("excel",o);const te=n==="import"?"/api/v1/plates/import":"/api/v1/plates/delete-import";try{const ce=await yt.post(te,F,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:Ae=>{const Ne=Ae.total||o.size,ze=Ae.loaded,fe=Math.round(ze*90/Ne)+10;b(Math.min(fe,95))}});b(100),setTimeout(()=>{ce.data&&ce.data.success?(y("success"),g(ce.data.message||"Base de datos de placas procesada con éxito."),u(null)):(y("error"),g(ce.data.error||"Ocurrió un error al procesar la subida."))},500)}catch(ce){console.error("Error al subir archivo:",ce),y("error");const Ae=((xe=(P=ce.response)==null?void 0:P.data)==null?void 0:xe.error)||((Te=(Ee=ce.response)==null?void 0:Ee.data)==null?void 0:Te.message);g(Ae||"Error de red o servidor. Intente de nuevo.")}};return c.jsxs("div",{className:"upload-screen-container",children:[c.jsxs("div",{style:{padding:"0.5rem 0.5rem 0 0.5rem"},children:[c.jsx("span",{style:{fontSize:"0.8rem",fontWeight:600,color:"var(--text-muted)",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Consola del Sistema"}),c.jsx("h1",{style:{fontSize:"1.6rem",fontWeight:800,color:"var(--text-primary)",marginTop:"2px"},children:"Gestor de Base de Datos"})]}),c.jsxs("div",{className:"upload-slider-modes",children:[c.jsxs("button",{className:`upload-mode-btn ${n==="import"?"active-import":""}`,onClick:()=>{s("import"),B()},disabled:h==="loading",children:[c.jsx(Qb,{size:14}),"SUBIR"]}),c.jsxs("button",{className:`upload-mode-btn ${n==="delete"?"active-delete":""}`,onClick:()=>{s("delete"),B()},disabled:h==="loading",children:[c.jsx(Na,{size:14}),"BORRAR"]})]}),c.jsx("div",{className:"upload-center-illustration",children:c.jsx("div",{className:"illustration-circle-gradient",style:{background:n==="delete"?"linear-gradient(135deg, var(--accent-red-light) 0%, var(--accent-peach-light) 100%)":void 0},children:c.jsx(cs,{size:28,color:n==="delete"?"var(--accent-red)":"var(--accent-purple)",style:{transform:f?"scale(1.15)":"scale(1)",transition:"transform 0.25s"}})})}),c.jsxs("div",{className:`upload-dropzone ${f?"drag-active":""}`,onDragEnter:G,onDragOver:G,onDragLeave:G,onDrop:k,onClick:X,style:{borderColor:n==="delete"&&f?"var(--accent-red)":void 0,background:n==="delete"&&f?"var(--accent-red-light)":void 0},children:[c.jsx("input",{ref:O,type:"file",accept:".xlsx,.xls,.csv",onChange:w,style:{display:"none"},disabled:h==="loading"}),h==="loading"?c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"12px"},children:[c.jsx(tl,{size:36,color:n==="delete"?"var(--accent-red)":"var(--accent-purple)",style:{animation:"spin 1.5s linear infinite"}}),c.jsx("span",{style:{fontWeight:700,fontSize:"0.95rem",color:"var(--text-primary)"},children:"Procesando base de datos..."}),c.jsx("span",{style:{fontSize:"0.75rem",color:"var(--text-secondary)"},children:"Importando registros al motor de alta velocidad."}),c.jsx("div",{className:"progress-bar-container",children:c.jsx("div",{className:"progress-bar-fill",style:{width:`${v}%`,background:n==="delete"?"var(--accent-red)":"var(--accent-purple)"}})}),c.jsxs("span",{style:{fontSize:"0.7rem",fontWeight:800,color:n==="delete"?"var(--accent-red)":"var(--accent-purple)",letterSpacing:"0.5px"},children:[v,"% COMPLETADO"]})]}):o?c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"12px"},children:[c.jsx("div",{style:{background:n==="delete"?"var(--accent-red-light)":"var(--accent-purple-light)",borderRadius:"50%",width:"52px",height:"52px",display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(s0,{size:24,color:n==="delete"?"var(--accent-red)":"var(--accent-purple)"})}),c.jsxs("div",{style:{width:"100%",maxWidth:"280px"},children:[c.jsx("div",{style:{fontWeight:800,fontSize:"0.9rem",color:"var(--text-primary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:o.name}),c.jsxs("div",{style:{fontSize:"0.72rem",color:"var(--text-secondary)",marginTop:"2px"},children:[(o.size/1024).toFixed(1)," KB • Compatible"]})]}),c.jsxs("div",{style:{display:"flex",gap:"8px",width:"100%",maxWidth:"240px",marginTop:"10px"},children:[c.jsx("button",{onClick:Y,style:{width:"44px",height:"44px",borderRadius:"12px",border:"1px solid rgba(239, 68, 68, 0.15)",background:"var(--accent-red-light)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--accent-red)",transition:"all 0.2s"},title:"Eliminar archivo",children:c.jsx(Na,{size:16})}),c.jsxs("button",{onClick:F=>{F.stopPropagation(),$()},style:{flex:1,borderRadius:"12px",border:"none",background:n==="delete"?"var(--accent-red)":"var(--accent-purple)",color:"#FFFFFF",fontWeight:700,fontSize:"0.8rem",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",boxShadow:n==="delete"?"0 4px 12px rgba(239, 68, 68, 0.2)":"0 4px 12px rgba(123, 82, 242, 0.2)"},children:[c.jsx(nm,{size:14}),"EJECUTAR PROCESO"]})]})]}):c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[c.jsx(nm,{size:32,color:"var(--text-secondary)",style:{marginBottom:"1rem",opacity:.8}}),c.jsx("span",{style:{fontWeight:800,fontSize:"0.95rem",color:"var(--text-primary)",marginBottom:"4px"},children:"Arrastra tu archivo aquí"}),c.jsx("span",{style:{fontSize:"0.75rem",color:"var(--text-secondary)"},children:"o haz clic para explorar en tu equipo"}),c.jsx("div",{style:{fontSize:"0.65rem",color:"var(--text-muted)",marginTop:"1.2rem",background:"var(--bg-surface)",padding:"6px 12px",borderRadius:"8px",fontWeight:700},children:"COMPATIBLE CON .XLSX, .XLS, .CSV • MÁXIMO 20MB"})]})]}),h==="success"&&c.jsxs("div",{className:"upload-alert-card success",children:[c.jsx(kb,{size:20,color:"var(--accent-green)",style:{flexShrink:0}}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2px"},children:[c.jsx("span",{style:{fontWeight:800,fontSize:"0.78rem",color:"var(--accent-green)",letterSpacing:"0.5px"},children:"PROCESO EXITOSO"}),c.jsx("span",{style:{fontSize:"0.72rem",fontWeight:500,color:"var(--text-primary)"},children:x})]})]}),h==="error"&&c.jsxs("div",{className:"upload-alert-card error",children:[c.jsx(Ub,{size:20,color:"var(--accent-red)",style:{flexShrink:0}}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2px"},children:[c.jsx("span",{style:{fontWeight:800,fontSize:"0.78rem",color:"var(--accent-red)",letterSpacing:"0.5px"},children:"ERROR AL PROCESAR"}),c.jsx("span",{style:{fontSize:"0.72rem",fontWeight:500,color:"var(--text-primary)"},children:x})]})]}),c.jsx("div",{style:{minHeight:"60px"}})]})},O2=()=>{const{user:n}=Tn(),[s,o]=j.useState([]),[u,f]=j.useState(!1),[p,h]=j.useState(!1),[y,x]=j.useState(!1),[g,v]=j.useState(!1),[b,O]=j.useState(!1),[B,G]=j.useState(null),[k,w]=j.useState({username:"",name:"",email:"",password:"",role:2,level:3,user_status:!0}),[R,Y]=j.useState(""),[X,$]=j.useState(""),[F,te]=j.useState(""),[P,xe]=j.useState(1),[Ee,Te]=j.useState(!0),[ce,Ae]=j.useState(!1),Ne=async(L,Z,le=!1)=>{L===1?f(!0):Ae(!0);try{const pe=await yt.get("/api/v1/users",{params:{q:Z,page:L}});if(pe.data&&pe.data.success){const he=pe.data.data,Ve=pe.data.meta;o(le||L===1?he:Fe=>{const it=new Set(Fe.map(ut=>ut.id)),Xt=he.filter(ut=>!it.has(ut.id));return[...Fe,...Xt]}),Te(Ve.has_more),xe(L)}}catch(pe){console.error("Error fetching users from server:",pe)}finally{f(!1),Ae(!1)}};j.useEffect(()=>{const L=setTimeout(()=>{Ne(1,F,!0)},400);return()=>clearTimeout(L)},[F]);const ze=L=>{const Z=L.currentTarget;Z.scrollHeight-Z.scrollTop<=Z.clientHeight+40&&!u&&!ce&&Ee&&Ne(P+1,F)},fe=L=>{const{name:Z,value:le,type:pe}=L.target;let he=le;pe==="checkbox"?he=L.target.checked:(Z==="role"||Z==="level")&&(he=parseInt(le,10)),w(Ve=>({...Ve,[Z]:he}))},M=()=>{Y(""),$(""),w({username:"",name:"",email:"",password:"",role:2,level:3,user_status:!0}),x(!0)},J=L=>{Y(""),$(""),G(L),w({username:L.username,name:L.name,email:L.email||"",password:"",role:L.role,level:L.level,user_status:L.user_status}),v(!0)},ie=L=>{Y(""),G(L),O(!0)},ae=async L=>{var Z,le,pe,he;L.preventDefault(),h(!0),Y("");try{const Ve=await yt.post("/api/v1/users",k);Ve.data&&Ve.data.success&&($("Usuario creado correctamente"),setTimeout(()=>{x(!1),Ne(1,F,!0)},1e3))}catch(Ve){Y(((le=(Z=Ve.response)==null?void 0:Z.data)==null?void 0:le.error)||((he=(pe=Ve.response)==null?void 0:pe.data)==null?void 0:he.message)||"Error al crear usuario.")}finally{h(!1)}},se=async L=>{var le,pe,he,Ve;if(L.preventDefault(),!B)return;h(!0),Y("");const Z={...k};Z.password||delete Z.password;try{const Fe=await yt.put(`/api/v1/users/${B.id}`,Z);Fe.data&&Fe.data.success&&($("Usuario actualizado correctamente"),setTimeout(()=>{v(!1),Ne(1,F,!0)},1e3))}catch(Fe){Y(((pe=(le=Fe.response)==null?void 0:le.data)==null?void 0:pe.error)||((Ve=(he=Fe.response)==null?void 0:he.data)==null?void 0:Ve.message)||"Error al actualizar usuario.")}finally{h(!1)}},E=async()=>{var L,Z;if(B){h(!0),Y("");try{const le=await yt.delete(`/api/v1/users/${B.id}`);le.data&&le.data.success&&(O(!1),Ne(1,F,!0))}catch(le){Y(((Z=(L=le.response)==null?void 0:L.data)==null?void 0:Z.error)||"Error al eliminar usuario.")}finally{h(!1)}}},U=async L=>{var Z,le;try{const pe=!L.user_status,he=await yt.put(`/api/v1/users/${L.id}`,{username:L.username,name:L.name,email:L.email,role:L.role,level:L.level,user_status:pe});he.data&&he.data.success&&o(Ve=>Ve.map(Fe=>Fe.id===L.id?{...Fe,user_status:pe}:Fe))}catch(pe){alert(((le=(Z=pe.response)==null?void 0:Z.data)==null?void 0:le.error)||"No fue posible cambiar el estado del usuario")}},K=L=>L===1?"Administrador":"Usuario",W=L=>{switch(L){case 1:return"Nivel 1";case 2:return"Nivel 2";case 3:return"Nivel 3";case 4:return"Nivel 4";default:return`Nivel ${L}`}};return c.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",position:"relative",height:"100%"},children:[c.jsx("div",{className:"home-header",style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2px"},children:[c.jsx("span",{className:"date-text",children:"Gestión del Sistema"}),c.jsx("h1",{className:"user-title",children:"Gestor de Usuarios"})]})}),c.jsx("div",{className:"search-pill-wrapper",style:{padding:"0 1.5rem 1rem 1.5rem"},children:c.jsxs("div",{className:"search-pill-container",style:{height:"44px",borderRadius:"22px"},children:[c.jsx(Ai,{size:18,color:"var(--text-secondary)"}),c.jsx("input",{type:"text",placeholder:"Buscar usuario...",value:F,onChange:L=>te(L.target.value),style:{fontSize:"0.85rem"}}),F&&c.jsx("button",{onClick:()=>te(""),style:{border:"none",background:"transparent",cursor:"pointer",color:"var(--text-muted)",display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(wa,{size:16})})]})}),c.jsx("div",{className:"results-list-container",onScroll:ze,style:{flex:1,paddingBottom:"1rem"},children:u?c.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px"},children:c.jsx(tl,{size:32,className:"spin",color:"var(--accent-purple)"})}):s.length>0?s.map(L=>c.jsxs("div",{className:"plate-row-card",style:{opacity:L.user_status?1:.7,background:"var(--bg-card)",transition:"all 0.25s",padding:"12px 14px",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:"12px"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",minWidth:0,flex:1},children:[c.jsxs("div",{className:"plate-avatar-badge",style:{background:L.role===1?"var(--accent-purple-light)":"var(--accent-blue-light)",color:L.role===1?"var(--accent-purple)":"var(--accent-blue)",position:"relative",width:"38px",height:"38px",flexShrink:0},children:[L.name.substring(0,2).toUpperCase(),L.online_status&&c.jsx("div",{style:{position:"absolute",bottom:0,right:0,width:"8px",height:"8px",borderRadius:"50%",background:"var(--accent-green)",border:"2px solid var(--bg-card)"},title:"En línea"})]}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"3px",minWidth:0,flex:1},children:[c.jsx("span",{style:{fontSize:"0.85rem",fontWeight:700,color:"var(--text-primary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block"},children:L.name}),c.jsxs("div",{style:{display:"flex",gap:"4px",flexWrap:"wrap"},children:[c.jsx("span",{style:{fontSize:"0.58rem",fontWeight:800,padding:"1px 5px",borderRadius:"5px",background:L.role===1?"var(--accent-purple-light)":"rgba(78, 167, 252, 0.1)",color:L.role===1?"var(--accent-purple)":"var(--accent-blue)",letterSpacing:"0.3px",textTransform:"uppercase"},children:K(L.role)}),c.jsx("span",{style:{fontSize:"0.58rem",fontWeight:800,padding:"1px 5px",borderRadius:"5px",background:"var(--bg-surface)",color:"var(--text-secondary)",letterSpacing:"0.3px",border:"1px solid rgba(0,0,0,0.02)"},children:W(L.level)})]})]})]}),c.jsxs("div",{style:{display:"flex",gap:"6px",flexShrink:0,alignItems:"center"},children:[c.jsx("button",{className:"circle-btn",onClick:()=>U(L),style:{width:"30px",height:"30px",borderRadius:"8px",color:L.user_status?"var(--accent-green)":"var(--text-muted)",background:L.user_status?"rgba(34, 197, 94, 0.08)":"rgba(255, 255, 255, 0.04)",border:L.user_status?"1px solid rgba(34, 197, 94, 0.15)":"1px solid rgba(255, 255, 255, 0.08)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},title:L.user_status?"Desactivar Usuario":"Activar Usuario",children:c.jsx(c0,{size:12})}),c.jsx("button",{className:"circle-btn",onClick:()=>J(L),style:{width:"30px",height:"30px",borderRadius:"8px",border:"1px solid rgba(123, 82, 242, 0.08)",display:"flex",alignItems:"center",justifyContent:"center"},title:"Editar",children:c.jsx(am,{size:12})}),c.jsx("button",{className:"circle-btn",onClick:()=>ie(L),disabled:(n==null?void 0:n.id)===L.id,style:{width:"30px",height:"30px",borderRadius:"8px",color:(n==null?void 0:n.id)===L.id?"var(--text-muted)":"var(--accent-red)",background:(n==null?void 0:n.id)===L.id?"transparent":"rgba(239, 68, 68, 0.05)",border:(n==null?void 0:n.id)===L.id?"1px solid rgba(0,0,0,0.03)":"1px solid rgba(239, 68, 68, 0.1)",cursor:(n==null?void 0:n.id)===L.id?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center"},title:(n==null?void 0:n.id)===L.id?"No puedes eliminarte a ti mismo":"Eliminar",children:c.jsx(Na,{size:12})})]})]},L.id)):c.jsx("div",{style:{textAlign:"center",padding:"3rem 1.5rem",color:"var(--text-secondary)"},children:"No se encontraron usuarios"})}),ce&&c.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"10px 0 20px 0",gap:"8px"},children:[c.jsx(tl,{size:18,className:"spin",color:"var(--accent-purple)"}),c.jsx("span",{style:{fontSize:"0.75rem",fontWeight:600,color:"var(--text-secondary)"},children:"Cargando más usuarios..."})]}),c.jsx("button",{onClick:M,title:"Nuevo Usuario",style:{position:"absolute",bottom:"100px",right:"24px",width:"52px",height:"52px",borderRadius:"50%",background:"var(--accent-purple)",color:"#FFFFFF",border:"none",boxShadow:"0 8px 24px rgba(123, 82, 242, 0.4)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:90,transition:"all 0.2s ease"},children:c.jsx(im,{size:22})}),y&&c.jsx("div",{style:Ko,children:c.jsxs("div",{className:"soft-card",style:Jo,children:[c.jsxs("div",{style:rm,children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[c.jsx(im,{size:16,color:"var(--accent-purple)"}),c.jsx("h3",{style:{fontSize:"0.95rem",fontWeight:800},children:"Nuevo Usuario"})]}),c.jsx("button",{className:"circle-btn",onClick:()=>x(!1),style:{width:"28px",height:"28px"},children:c.jsx(wa,{size:16})})]}),c.jsxs("form",{onSubmit:ae,style:{display:"flex",flexDirection:"column",gap:"8px",marginTop:"6px"},children:[R&&c.jsx("div",{style:Wo,children:R}),X&&c.jsx("div",{style:sm,children:X}),c.jsxs("div",{className:"login-form-group",style:{marginBottom:0},children:[c.jsx("label",{style:el,children:"Nombre Completo"}),c.jsx("input",{type:"text",name:"name",value:k.name,onChange:fe,placeholder:"Ej: Andres Perez",required:!0,style:oa})]}),c.jsxs("div",{className:"login-form-group",style:{marginBottom:0},children:[c.jsx("label",{style:el,children:"Nombre de Usuario (Login)"}),c.jsx("input",{type:"text",name:"username",value:k.username,onChange:fe,placeholder:"Ej: andres_perez",required:!0,style:oa})]}),c.jsxs("div",{className:"login-form-group",style:{marginBottom:0},children:[c.jsx("label",{style:el,children:"Correo Electrónico (Opcional)"}),c.jsx("input",{type:"email",name:"email",value:k.email,onChange:fe,placeholder:"correo@ejemplo.com",style:oa})]}),c.jsxs("div",{className:"login-form-group",style:{marginBottom:0},children:[c.jsx("label",{style:el,children:"Contraseña"}),c.jsx("input",{type:"password",name:"password",value:k.password,onChange:fe,placeholder:"Mínimo 6 caracteres",required:!0,style:oa})]}),c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"10px"},children:[c.jsxs("div",{className:"login-form-group",style:{marginBottom:0},children:[c.jsx("label",{style:el,children:"Rol"}),c.jsxs("select",{name:"role",value:k.role,onChange:fe,style:Ir,children:[c.jsx("option",{value:2,children:"Usuario"}),c.jsx("option",{value:1,children:"Administrador"})]})]}),c.jsxs("div",{className:"login-form-group",style:{marginBottom:0},children:[c.jsx("label",{style:el,children:"Nivel de Acceso"}),c.jsxs("select",{name:"level",value:k.level,onChange:fe,style:Ir,children:[c.jsx("option",{value:1,children:"Nivel 1"}),c.jsx("option",{value:2,children:"Nivel 2"}),c.jsx("option",{value:3,children:"Nivel 3"}),c.jsx("option",{value:4,children:"Nivel 4"})]})]})]}),c.jsx("button",{type:"submit",className:"primary-btn-accent",style:{marginTop:"6px",height:"38px",borderRadius:"12px",fontSize:"0.8rem"},disabled:p,children:p?c.jsx(tl,{size:16,className:"spin"}):"REGISTRAR USUARIO"})]})]})}),g&&B&&c.jsx("div",{style:Ko,children:c.jsxs("div",{className:"soft-card",style:Jo,children:[c.jsxs("div",{style:rm,children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[c.jsx(am,{size:16,color:"var(--accent-purple)"}),c.jsx("h3",{style:{fontSize:"0.95rem",fontWeight:800},children:"Editar Usuario"})]}),c.jsx("button",{className:"circle-btn",onClick:()=>v(!1),style:{width:"28px",height:"28px"},children:c.jsx(wa,{size:16})})]}),c.jsxs("form",{onSubmit:se,style:{display:"flex",flexDirection:"column",gap:"8px",marginTop:"6px"},children:[R&&c.jsx("div",{style:Wo,children:R}),X&&c.jsx("div",{style:sm,children:X}),c.jsxs("div",{className:"login-form-group",style:{marginBottom:0},children:[c.jsx("label",{style:el,children:"Nombre Completo"}),c.jsx("input",{type:"text",name:"name",value:k.name,onChange:fe,required:!0,style:oa})]}),c.jsxs("div",{className:"login-form-group",style:{marginBottom:0},children:[c.jsx("label",{style:el,children:"Nombre de Usuario"}),c.jsx("input",{type:"text",name:"username",value:k.username,onChange:fe,required:!0,style:oa})]}),c.jsxs("div",{className:"login-form-group",style:{marginBottom:0},children:[c.jsx("label",{style:el,children:"Correo Electrónico (Opcional)"}),c.jsx("input",{type:"email",name:"email",value:k.email,onChange:fe,style:oa})]}),c.jsxs("div",{className:"login-form-group",style:{marginBottom:0},children:[c.jsxs("label",{style:{...el,display:"flex",alignItems:"center",gap:"4px"},children:[c.jsx(u0,{size:12})," Nueva Contraseña (Dejar vacío para no cambiar)"]}),c.jsx("input",{type:"password",name:"password",value:k.password,onChange:fe,placeholder:"Contraseña nueva (opcional)",style:oa})]}),c.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"10px"},children:[c.jsxs("div",{className:"login-form-group",style:{marginBottom:0},children:[c.jsx("label",{style:el,children:"Rol"}),c.jsxs("select",{name:"role",value:k.role,onChange:fe,style:Ir,children:[c.jsx("option",{value:2,children:"Usuario"}),c.jsx("option",{value:1,children:"Administrador"})]})]}),c.jsxs("div",{className:"login-form-group",style:{marginBottom:0},children:[c.jsx("label",{style:el,children:"Nivel de Acceso"}),c.jsxs("select",{name:"level",value:k.level,onChange:fe,style:Ir,children:[c.jsx("option",{value:1,children:"Nivel 1"}),c.jsx("option",{value:2,children:"Nivel 2"}),c.jsx("option",{value:3,children:"Nivel 3"}),c.jsx("option",{value:4,children:"Nivel 4"})]})]})]}),c.jsx("button",{type:"submit",className:"primary-btn-accent",style:{marginTop:"6px",height:"38px",borderRadius:"12px",fontSize:"0.8rem"},disabled:p,children:p?c.jsx(tl,{size:16,className:"spin"}):"GUARDAR CAMBIOS"})]})]})}),b&&B&&c.jsx("div",{style:Ko,children:c.jsxs("div",{className:"soft-card",style:{...Jo,maxWidth:"320px",textAlign:"center"},children:[c.jsx("div",{style:{display:"flex",justifyContent:"center",marginBottom:"1rem",color:"var(--accent-red)"},children:c.jsx(Na,{size:44})}),c.jsx("h3",{style:{fontSize:"1.1rem",fontWeight:800,color:"var(--text-primary)"},children:"¿Eliminar usuario?"}),c.jsxs("p",{style:{fontSize:"0.78rem",color:"var(--text-secondary)",marginTop:"6px",lineHeight:"1.4"},children:["Esta acción es permanente y eliminará a ",c.jsx("strong",{children:B.name})," (@",B.username,") de la base de datos junto con sus dispositivos autorizados."]}),R&&c.jsx("div",{style:{...Wo,marginTop:"10px"},children:R}),c.jsxs("div",{style:{display:"flex",gap:"8px",marginTop:"20px"},children:[c.jsx("button",{onClick:()=>O(!1),style:{flex:1,height:"42px",borderRadius:"12px",border:"1px solid rgba(0,0,0,0.05)",background:"var(--bg-surface)",color:"var(--text-primary)",fontWeight:700,fontSize:"0.8rem",cursor:"pointer"},children:"CANCELAR"}),c.jsx("button",{onClick:E,style:{flex:1,height:"42px",borderRadius:"12px",border:"none",background:"var(--accent-red)",color:"#FFFFFF",fontWeight:700,fontSize:"0.8rem",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px"},disabled:p,children:p?c.jsx(tl,{size:14,className:"spin"}):"ELIMINAR"})]})]})})]})},Ko={position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba(18, 19, 26, 0.4)",backdropFilter:"blur(4px)",WebkitBackdropFilter:"blur(4px)",zIndex:300,display:"flex",alignItems:"center",justifyContent:"center",padding:"1.5rem"},Jo={width:"100%",maxWidth:"340px",background:"var(--bg-card)",borderRadius:"20px",padding:"1.2rem",boxShadow:"var(--shadow-soft)",animation:"scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1)",border:"1px solid rgba(255,255,255,0.08)"},rm={display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"0.6rem",color:"var(--text-primary)"},Ir={width:"100%",height:"38px",borderRadius:"12px",background:"var(--bg-surface)",border:"1px solid transparent",padding:"0 10px",fontSize:"0.8rem",fontWeight:600,color:"var(--text-primary)",outline:"none",cursor:"pointer"},oa={height:"38px",borderRadius:"12px",padding:"0 12px",fontSize:"0.8rem"},el={fontSize:"0.68rem",marginBottom:"2px",display:"block"},Wo={background:"var(--accent-red-light)",color:"var(--accent-red)",padding:"8px 12px",borderRadius:"10px",fontSize:"0.75rem",fontWeight:600,border:"1px solid rgba(239, 68, 68, 0.1)"},sm={background:"var(--accent-green-light)",color:"var(--accent-green)",padding:"8px 12px",borderRadius:"10px",fontSize:"0.75rem",fontWeight:600,border:"1px solid rgba(16, 185, 129, 0.1)"},N2=()=>new Promise((n,s)=>{if(window.jsQR){n(window.jsQR);return}const o=document.createElement("script");o.src="https://cdn.jsdelivr.net/npm/jsqr@1.4.0/dist/jsQR.min.js",o.async=!0,o.onload=()=>{n(window.jsQR)},o.onerror=u=>{s(u)},document.body.appendChild(o)}),w2=()=>{const[n,s]=j.useState(()=>document.body.classList.contains("dark"));j.useEffect(()=>{const Q=new MutationObserver(()=>{s(document.body.classList.contains("dark"))});return Q.observe(document.body,{attributes:!0,attributeFilter:["class"]}),()=>Q.disconnect()},[]);const[o,u]=j.useState("devices"),[f,p]=j.useState(1),[h,y]=j.useState([]),[x,g]=j.useState(!1),[v,b]=j.useState(!1),[O,B]=j.useState(null),[G,k]=j.useState(!1),[w,R]=j.useState(null),[Y,X]=j.useState(!1),[$,F]=j.useState(""),[te,P]=j.useState([]),[xe,Ee]=j.useState(null),[Te,ce]=j.useState(""),[Ae,Ne]=j.useState(""),[ze,fe]=j.useState(!1),[M,J]=j.useState(!1),[ie,ae]=j.useState(!1),[se,E]=j.useState(null),U=j.useRef(null),K=j.useRef(null),W=j.useRef(null),[L,Z]=j.useState(""),[le,pe]=j.useState(1),[he,Ve]=j.useState(!0),[Fe,it]=j.useState(!1),Xt=async(Q,ye,Ue=!1)=>{Q===1?g(!0):it(!0);try{const Xe=await yt.get("/api/v1/uuids",{params:{q:ye,page:Q}});if(Xe.data&&Xe.data.success){const at=Xe.data.data,vl=Xe.data.meta;y(Ue||Q===1?at:al=>{const nl=new Set(al.map(Ie=>Ie.id)),ct=at.filter(Ie=>!nl.has(Ie.id));return[...al,...ct]}),Ve(vl.has_more),pe(Q)}}catch(Xe){console.error("Error fetching devices:",Xe)}finally{g(!1),it(!1)}};j.useEffect(()=>{if(o!=="devices")return;const Q=setTimeout(()=>{Xt(1,L,!0)},400);return()=>clearTimeout(Q)},[L,o]),j.useEffect(()=>{if(!Y||!$.trim()){P([]);return}const Q=setTimeout(async()=>{try{const ye=await yt.get("/api/v1/users",{params:{q:$}});ye.data&&ye.data.success&&P(ye.data.data)}catch(ye){console.error("Error buscando usuarios:",ye)}},300);return()=>clearTimeout(Q)},[$,Y]);const ut=Q=>{const ye=Q.currentTarget;ye.scrollHeight-ye.scrollTop<=ye.clientHeight+40&&!x&&!Fe&&he&&Xt(le+1,L)},Et=(Q,ye)=>{navigator.clipboard.writeText(Q),B(ye),setTimeout(()=>B(null),2e3)},oe=async Q=>{var ye,Ue;try{const Xe=Q.status===1?0:1,at=await yt.put(`/api/v1/uuids/${Q.id}`,{status:Xe});at.data&&at.data.success&&y(vl=>vl.map(al=>al.id===Q.id?{...al,status:Xe}:al))}catch(Xe){alert(((Ue=(ye=Xe.response)==null?void 0:ye.data)==null?void 0:Ue.error)||"No fue posible cambiar el estado del dispositivo")}},ot=Q=>{R(Q),k(!0)},Mt=async()=>{var Q,ye;if(w){b(!0);try{const Ue=await yt.delete(`/api/v1/uuids/${w.id}`);Ue.data&&Ue.data.success&&(k(!1),Xt(1,L,!0))}catch(Ue){alert(((ye=(Q=Ue.response)==null?void 0:Q.data)==null?void 0:ye.error)||"Error al eliminar el dispositivo")}finally{b(!1)}}},Ct=async()=>{try{Ne(""),await N2();const Q=await navigator.mediaDevices.getUserMedia({video:{facingMode:"environment"}});E(Q),ae(!0),U.current&&(U.current.srcObject=Q,U.current.setAttribute("playsinline","true"),U.current.play())}catch(Q){console.error("Error al acceder a la cámara:",Q),Ne("No se pudo iniciar la cámara. Por favor verifica los permisos."),ae(!1)}},ll=()=>{W.current&&(cancelAnimationFrame(W.current),W.current=null),se&&(se.getTracks().forEach(Q=>Q.stop()),E(null)),ae(!1)};j.useEffect(()=>{if(!ie||!se)return;const Q=()=>{if(!(!U.current||!K.current||!ie)){if(U.current.readyState===U.current.HAVE_ENOUGH_DATA){const ye=K.current,Ue=ye.getContext("2d");if(Ue){ye.height=200,ye.width=260,Ue.drawImage(U.current,0,0,ye.width,ye.height);const Xe=Ue.getImageData(0,0,ye.width,ye.height),at=window.jsQR(Xe.data,Xe.width,Xe.height,{inversionAttempts:"dontInvert"});if(at&&at.data){const vl=at.data.trim();if(vl.includes("|")){const al=vl.split("|");if(al.length===2){const[nl,ct]=al;ce(ct),F(nl),yt.get("/api/v1/users",{params:{q:nl}}).then(Ie=>{if(Ie.data&&Ie.data.success&&Ie.data.data.length>0){const xt=Ie.data.data.find(bs=>bs.username.toLowerCase()===nl.toLowerCase());Ee(xt||Ie.data.data[0])}}).catch(Ie=>console.error("Error al buscar usuario escaneado:",Ie))}}else ce(vl);ll(),J(!0);return}}}W.current=requestAnimationFrame(Q)}};return W.current=requestAnimationFrame(Q),()=>{W.current&&cancelAnimationFrame(W.current)}},[ie,se]),j.useEffect(()=>()=>{se&&se.getTracks().forEach(Q=>Q.stop())},[se]),j.useEffect(()=>{if(Y){J(!1);const Q=setTimeout(()=>{Ct()},200);return()=>clearTimeout(Q)}else ll()},[Y]);const ca=async Q=>{var ye,Ue;if(Q.preventDefault(),!xe){Ne("Por favor selecciona un usuario.");return}if(!Te.trim()){Ne("Por favor ingresa o escanea un UUID.");return}fe(!0),Ne("");try{const Xe=await yt.post("/api/v1/uuids",{user_id:xe.id,uuid:Te.trim(),status:1});Xe.data&&Xe.data.success&&(X(!1),Ee(null),ce(""),F(""),Xt(1,L,!0))}catch(Xe){Ne(((Ue=(ye=Xe.response)==null?void 0:ye.data)==null?void 0:Ue.error)||"Error al vincular el dispositivo.")}finally{fe(!1)}},pl=()=>{ll(),X(!1),Ee(null),ce(""),F(""),Ne("")},Di=(Q,ye)=>{const Ue=new Blob([new Uint8Array([239,187,191]),ye],{type:"text/csv;charset=utf-8;"}),Xe=URL.createObjectURL(Ue),at=document.createElement("a");at.setAttribute("href",Xe),at.setAttribute("download",Q),at.style.visibility="hidden",document.body.appendChild(at),at.click(),document.body.removeChild(at)},jt=()=>{Di("plantilla_carga_placas.csv",`placa,nivel,ubicacion,detalles
ABC123,1,Entrada Principal,Vehículo autorizado para visitantes
XYZ789,3,Zonas Críticas,Vehículo de supervisión institucional`)},vs=()=>{Di("plantilla_borrado_placas.csv",`placa
ABC123
XYZ789`)};return c.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",position:"relative",height:"100%",overflow:"hidden"},children:[c.jsx("div",{className:"home-header",style:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingBottom:"0.8rem"},children:c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2px"},children:[c.jsx("span",{className:"date-text",children:"Configuración Global de Orion"}),c.jsx("h1",{className:"user-title",children:"Ajustes del Sistema"})]})}),c.jsxs("div",{style:{display:"flex",gap:"4px",margin:"0 1.5rem 1rem 1.5rem",padding:"4px",background:n?"#191B24":"#EBF0F5",borderRadius:"16px",border:n?"1px solid rgba(255, 255, 255, 0.03)":"1px solid rgba(255, 255, 255, 0.8)",boxShadow:n?"inset 4px 4px 8px #0C0D10, inset -4px -4px 8px #2A2C37":"inset 4px 4px 8px #C1C9D4, inset -4px -4px 8px #FFFFFF"},children:[c.jsxs("button",{onClick:()=>u("devices"),style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"11px 8px",borderRadius:"12px",fontSize:"0.78rem",fontWeight:700,cursor:"pointer",transition:"all 0.2s ease",outline:"none",border:o==="devices"?n?"1px solid rgba(255, 255, 255, 0.05)":"1px solid rgba(255, 255, 255, 0.9)":"1px solid transparent",background:o==="devices"?"var(--accent-purple)":"transparent",color:o==="devices"?"#FFFFFF":"var(--text-secondary)",boxShadow:o==="devices"?n?"3px 3px 6px rgba(0, 0, 0, 0.3), inset 1.5px 1.5px 2px rgba(255,255,255,0.2)":"3px 3px 6px rgba(123, 82, 242, 0.35), inset 1.5px 1.5px 2px rgba(255,255,255,0.4)":"none"},children:[c.jsx(lm,{size:14,color:o==="devices"?"#FFFFFF":"currentColor"}),"Dispositivos"]}),c.jsxs("button",{onClick:()=>u("templates"),style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"11px 8px",borderRadius:"12px",fontSize:"0.78rem",fontWeight:700,cursor:"pointer",transition:"all 0.2s ease",outline:"none",border:o==="templates"?n?"1px solid rgba(255, 255, 255, 0.05)":"1px solid rgba(255, 255, 255, 0.9)":"1px solid transparent",background:o==="templates"?"var(--accent-purple)":"transparent",color:o==="templates"?"#FFFFFF":"var(--text-secondary)",boxShadow:o==="templates"?n?"3px 3px 6px rgba(0, 0, 0, 0.3), inset 1.5px 1.5px 2px rgba(255,255,255,0.2)":"3px 3px 6px rgba(123, 82, 242, 0.35), inset 1.5px 1.5px 2px rgba(255,255,255,0.4)":"none"},children:[c.jsx(cs,{size:14,color:o==="templates"?"#FFFFFF":"currentColor"}),"Plantillas y Guía"]}),c.jsxs("button",{onClick:()=>u("security"),style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",padding:"11px 8px",borderRadius:"12px",fontSize:"0.78rem",fontWeight:700,cursor:"pointer",transition:"all 0.2s ease",outline:"none",border:o==="security"?n?"1px solid rgba(255, 255, 255, 0.05)":"1px solid rgba(255, 255, 255, 0.9)":"1px solid transparent",background:o==="security"?"var(--accent-purple)":"transparent",color:o==="security"?"#FFFFFF":"var(--text-secondary)",boxShadow:o==="security"?n?"3px 3px 6px rgba(0, 0, 0, 0.3), inset 1.5px 1.5px 2px rgba(255,255,255,0.2)":"3px 3px 6px rgba(123, 82, 242, 0.35), inset 1.5px 1.5px 2px rgba(255,255,255,0.4)":"none"},children:[c.jsx(nc,{size:14,color:o==="security"?"#FFFFFF":"currentColor"}),"Seguridad"]})]}),c.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[o==="devices"&&c.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden"},children:[c.jsxs("div",{style:{display:"flex",gap:"8px",padding:"1rem 1.5rem 0.2rem 1.5rem",alignItems:"center",justifyContent:"space-between"},children:[c.jsx("span",{style:{fontSize:"0.8rem",fontWeight:700,color:"var(--text-secondary)"},children:"Equipos Autorizados"}),c.jsxs("button",{onClick:()=>X(!0),style:{display:"flex",alignItems:"center",gap:"6px",padding:"8px 12px",borderRadius:"10px",background:"var(--accent-purple)",color:"#FFFFFF",border:"none",fontSize:"0.75rem",fontWeight:700,cursor:"pointer",outline:"none",transition:"opacity 0.2s"},onMouseEnter:Q=>Q.currentTarget.style.opacity="0.9",onMouseLeave:Q=>Q.currentTarget.style.opacity="1",children:[c.jsx(tm,{size:14}),"VINCULAR DISPOSITIVO"]})]}),c.jsx("div",{className:"search-pill-wrapper",style:{padding:"0.8rem 1.5rem"},children:c.jsxs("div",{className:"search-pill-container",style:{height:"44px",borderRadius:"22px"},children:[c.jsx(Ai,{size:18,color:"var(--text-secondary)"}),c.jsx("input",{type:"text",placeholder:"Buscar por UUID o usuario...",value:L,onChange:Q=>Z(Q.target.value),style:{fontSize:"0.85rem"}}),L&&c.jsx("button",{onClick:()=>Z(""),style:{border:"none",background:"transparent",cursor:"pointer",color:"var(--text-muted)",display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(wa,{size:16})})]})}),c.jsx("div",{className:"results-list-container",onScroll:ut,style:{flex:1,paddingBottom:"1rem"},children:x?c.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px"},children:c.jsx(tl,{size:32,className:"spin",color:"var(--accent-purple)"})}):h.length>0?h.map(Q=>c.jsxs("div",{className:"plate-row-card",style:{opacity:Q.status===1?1:.65,background:"var(--bg-card)",transition:"all 0.25s",padding:"12px 14px",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:"12px",marginBottom:"8px"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px",minWidth:0,flex:1},children:[c.jsx("div",{className:"plate-avatar-badge",style:{background:"var(--bg-surface)",color:"var(--text-secondary)",width:"38px",height:"38px",flexShrink:0,borderRadius:"10px",border:"1px solid rgba(255,255,255,0.05)",display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(lm,{size:18})}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"3px",minWidth:0,flex:1},children:[c.jsx("span",{style:{fontSize:"0.85rem",fontWeight:700,color:"var(--text-primary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block"},children:Q.user?Q.user.name:"Usuario Desconocido"}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[c.jsx("span",{style:{fontSize:"0.68rem",fontFamily:"monospace",color:"var(--text-secondary)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"160px"},title:Q.uuid,children:Q.uuid}),c.jsx("button",{onClick:()=>Et(Q.uuid,Q.id),style:{border:"none",background:"transparent",cursor:"pointer",color:O===Q.id?"var(--accent-green)":"var(--text-muted)",padding:"2px",display:"flex",alignItems:"center",justifyContent:"center",outline:"none"},title:"Copiar UUID",children:O===Q.id?c.jsx(os,{size:11}):c.jsx(ac,{size:11})})]})]})]}),c.jsxs("div",{style:{display:"flex",gap:"6px",flexShrink:0,alignItems:"center"},children:[c.jsx("button",{className:"circle-btn",onClick:()=>oe(Q),style:{width:"30px",height:"30px",borderRadius:"8px",color:Q.status===1?"var(--accent-green)":"var(--text-muted)",background:Q.status===1?"rgba(34, 197, 94, 0.08)":"rgba(255, 255, 255, 0.04)",border:Q.status===1?"1px solid rgba(34, 197, 94, 0.15)":"1px solid rgba(255, 255, 255, 0.08)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",outline:"none"},title:Q.status===1?"Desactivar Dispositivo":"Activar Dispositivo",children:c.jsx(c0,{size:12})}),c.jsx("button",{className:"circle-btn",onClick:()=>ot(Q),style:{width:"30px",height:"30px",borderRadius:"8px",color:"var(--accent-red)",background:"rgba(239, 68, 68, 0.05)",border:"1px solid rgba(239, 68, 68, 0.1)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",outline:"none"},title:"Eliminar",children:c.jsx(Na,{size:12})})]})]},Q.id)):c.jsx("div",{style:{textAlign:"center",padding:"3rem 1.5rem",color:"var(--text-secondary)"},children:"No se encontraron dispositivos autorizados"})}),Fe&&c.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",padding:"10px 0 20px 0",gap:"8px"},children:[c.jsx(tl,{size:18,className:"spin",color:"var(--accent-purple)"}),c.jsx("span",{style:{fontSize:"0.75rem",fontWeight:600,color:"var(--text-secondary)"},children:"Cargando más..."})]})]}),o==="templates"&&c.jsxs("div",{style:{flex:1,overflowY:"auto",padding:"1rem 1.5rem 5rem 1.5rem",display:"flex",flexDirection:"column",gap:"1.2rem"},children:[c.jsxs("div",{className:"soft-card",style:{padding:"16px"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"12px"},children:[c.jsx("div",{style:{background:n?"rgba(168, 85, 247, 0.1)":"var(--accent-purple-light)",color:"var(--accent-purple)",width:"32px",height:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(Zb,{size:16})}),c.jsx("h3",{style:{fontSize:"0.9rem",fontWeight:800,color:"var(--text-primary)"},children:"Plantillas de Excel / CSV"})]}),c.jsx("p",{style:{fontSize:"0.78rem",color:"var(--text-secondary)",lineHeight:"1.4",marginBottom:"14px"},children:"Descarga los archivos base estructurados con el formato exacto requerido por el sistema para importar o eliminar placas masivamente."}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[c.jsxs("button",{onClick:jt,style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"10px",height:"42px",borderRadius:"12px",background:"var(--accent-purple)",color:"#FFFFFF",border:"none",fontWeight:700,fontSize:"0.8rem",cursor:"pointer",transition:"opacity 0.2s",outline:"none"},onMouseEnter:Q=>Q.currentTarget.style.opacity="0.9",onMouseLeave:Q=>Q.currentTarget.style.opacity="1",children:[c.jsx(cs,{size:16}),"PLANTILLA DE CARGA (UPSERT)"]}),c.jsxs("button",{onClick:vs,style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"10px",height:"42px",borderRadius:"12px",background:n?"rgba(255, 255, 255, 0.05)":"rgba(0, 0, 0, 0.03)",color:n?"#FFFFFF":"var(--text-primary)",border:n?"1px solid rgba(255,255,255,0.08)":"1px solid rgba(0, 0, 0, 0.06)",fontWeight:700,fontSize:"0.8rem",cursor:"pointer",transition:"background 0.2s, color 0.2s, border-color 0.2s",outline:"none"},onMouseEnter:Q=>Q.currentTarget.style.background=n?"rgba(255, 255, 255, 0.08)":"rgba(0, 0, 0, 0.06)",onMouseLeave:Q=>Q.currentTarget.style.background=n?"rgba(255, 255, 255, 0.05)":"rgba(0, 0, 0, 0.03)",children:[c.jsx(Na,{size:16,color:"var(--accent-red)"}),"PLANTILLA DE BORRADO MASIVO"]})]})]}),c.jsxs("div",{className:"soft-card",style:{padding:"16px"},children:[c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"14px"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px"},children:[c.jsx("div",{style:{background:n?"rgba(168, 85, 247, 0.1)":"var(--accent-purple-light)",color:"var(--accent-purple)",width:"32px",height:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(zb,{size:16})}),c.jsx("h3",{style:{fontSize:"0.9rem",fontWeight:800,color:"var(--text-primary)"},children:"Guía de Uso Rápido"})]}),c.jsxs("span",{style:{fontSize:"0.72rem",fontWeight:700,color:"var(--accent-purple)",background:"rgba(168, 85, 247, 0.08)",padding:"2px 8px",borderRadius:"20px"},children:["Paso ",f," de 3"]})]}),c.jsxs("div",{style:{minHeight:"160px",display:"flex",flexDirection:"column",justifyContent:"center"},children:[f===1&&c.jsxs("div",{style:{animation:"fadeIn 0.3s"},children:[c.jsx("h4",{style:{fontSize:"0.82rem",fontWeight:700,color:"var(--text-primary)",marginBottom:"6px"},children:"1. Descarga el Archivo CSV"}),c.jsx("p",{style:{fontSize:"0.76rem",color:"var(--text-secondary)",lineHeight:"1.4"},children:"Utiliza los botones de arriba para descargar el formato compatible. Microsoft Excel puede abrir y editar estos archivos de forma nativa."}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginTop:"10px",background:n?"rgba(255,255,255,0.02)":"rgba(0,0,0,0.02)",padding:"8px 12px",borderRadius:"8px",border:n?"1px solid rgba(255,255,255,0.04)":"1px solid rgba(0,0,0,0.04)"},children:[c.jsx(t2,{size:14,color:"var(--accent-purple)",style:{flexShrink:0}}),c.jsx("span",{style:{fontSize:"0.7rem",color:"var(--text-muted)",lineHeight:"1.3"},children:"Asegúrate de conservar las cabeceras (primera fila) tal y como están en la plantilla para evitar fallos de lectura."})]})]}),f===2&&c.jsxs("div",{style:{animation:"fadeIn 0.3s"},children:[c.jsx("h4",{style:{fontSize:"0.82rem",fontWeight:700,color:"var(--text-primary)",marginBottom:"8px"},children:"2. Estructura de las Columnas"}),c.jsx("div",{style:{overflowX:"auto"},children:c.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:"0.7rem",textAlign:"left",color:"var(--text-secondary)"},children:[c.jsx("thead",{children:c.jsxs("tr",{style:{borderBottom:n?"1px solid rgba(255,255,255,0.08)":"1px solid rgba(0,0,0,0.08)"},children:[c.jsx("th",{style:{padding:"4px 0",fontWeight:700,color:"var(--text-primary)"},children:"Columna"}),c.jsx("th",{style:{padding:"4px 0",fontWeight:700,color:"var(--text-primary)"},children:"Obligatorio"}),c.jsx("th",{style:{padding:"4px 0",fontWeight:700,color:"var(--text-primary)"},children:"Formato"})]})}),c.jsxs("tbody",{children:[c.jsxs("tr",{style:{borderBottom:n?"1px solid rgba(255,255,255,0.04)":"1px solid rgba(0,0,0,0.04)"},children:[c.jsx("td",{style:{padding:"5px 0",color:"var(--accent-purple)",fontFamily:"monospace"},children:"placa"}),c.jsx("td",{style:{padding:"5px 0"},children:"Sí"}),c.jsx("td",{style:{padding:"5px 0"},children:"6-7 letras/números (ej. ABC123)"})]}),c.jsxs("tr",{style:{borderBottom:n?"1px solid rgba(255,255,255,0.04)":"1px solid rgba(0,0,0,0.04)"},children:[c.jsx("td",{style:{padding:"5px 0",color:"var(--accent-purple)",fontFamily:"monospace"},children:"nivel"}),c.jsx("td",{style:{padding:"5px 0"},children:"Sí (solo Carga)"}),c.jsx("td",{style:{padding:"5px 0"},children:"Entero del 1 al 4"})]}),c.jsxs("tr",{style:{borderBottom:n?"1px solid rgba(255,255,255,0.04)":"1px solid rgba(0,0,0,0.04)"},children:[c.jsx("td",{style:{padding:"5px 0",color:"var(--accent-purple)",fontFamily:"monospace"},children:"ubicacion"}),c.jsx("td",{style:{padding:"5px 0"},children:"No"}),c.jsx("td",{style:{padding:"5px 0"},children:"Texto descriptivo libre"})]}),c.jsxs("tr",{children:[c.jsx("td",{style:{padding:"5px 0",color:"var(--accent-purple)",fontFamily:"monospace"},children:"detalles"}),c.jsx("td",{style:{padding:"5px 0"},children:"No"}),c.jsx("td",{style:{padding:"5px 0"},children:"Observaciones adicionales"})]})]})]})})]}),f===3&&c.jsxs("div",{style:{animation:"fadeIn 0.3s"},children:[c.jsx("h4",{style:{fontSize:"0.82rem",fontWeight:700,color:"var(--text-primary)",marginBottom:"6px"},children:"3. Sube el Archivo en la Consola"}),c.jsx("p",{style:{fontSize:"0.76rem",color:"var(--text-secondary)",lineHeight:"1.4"},children:"Dirígete a la pestaña de **Consola Excel** (icono de hoja de cálculo en el navbar inferior) y arrastra o selecciona el archivo CSV."}),c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginTop:"10px",background:"rgba(34, 197, 94, 0.04)",padding:"8px 12px",borderRadius:"8px",border:"1px solid rgba(34, 197, 94, 0.08)"},children:[c.jsx(os,{size:14,color:"var(--accent-green)",style:{flexShrink:0}}),c.jsx("span",{style:{fontSize:"0.7rem",color:"var(--text-secondary)",lineHeight:"1.3"},children:"¡Proceso Asíncrono! El servidor procesará los datos en segundo plano sin interrumpir tu navegación."})]})]})]}),c.jsxs("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"16px",borderTop:n?"1px solid rgba(255,255,255,0.06)":"1px solid rgba(0,0,0,0.06)",paddingTop:"12px"},children:[c.jsxs("button",{onClick:()=>p(Q=>Math.max(1,Q-1)),disabled:f===1,style:{display:"flex",alignItems:"center",gap:"4px",background:"transparent",border:"none",color:f===1?"var(--text-muted)":n?"#FFFFFF":"var(--text-primary)",fontSize:"0.75rem",fontWeight:700,cursor:f===1?"default":"pointer",outline:"none"},children:[c.jsx(r0,{size:16}),"Anterior"]}),c.jsxs("button",{onClick:()=>p(Q=>Math.min(3,Q+1)),disabled:f===3,style:{display:"flex",alignItems:"center",gap:"4px",background:"transparent",border:"none",color:f===3?"var(--text-muted)":n?"#FFFFFF":"var(--text-primary)",fontSize:"0.75rem",fontWeight:700,cursor:f===3?"default":"pointer",outline:"none"},children:["Siguiente",c.jsx(Db,{size:16})]})]})]})]}),o==="security"&&c.jsxs("div",{style:{flex:1,overflowY:"auto",padding:"1rem 1.5rem 5rem 1.5rem",display:"flex",flexDirection:"column",gap:"1.2rem"},children:[c.jsxs("div",{className:"soft-card",style:{padding:"16px"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"12px"},children:[c.jsx("div",{style:{background:n?"rgba(168, 85, 247, 0.1)":"var(--accent-purple-light)",color:"var(--accent-purple)",width:"32px",height:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(d0,{size:16})}),c.jsx("h3",{style:{fontSize:"0.9rem",fontWeight:800,color:"var(--text-primary)"},children:"Esquema de Roles"})]}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[c.jsxs("div",{style:{background:n?"rgba(168, 85, 247, 0.04)":"var(--accent-purple-light)",border:n?"1px solid rgba(168, 85, 247, 0.12)":"1px solid rgba(168, 85, 247, 0.2)",borderRadius:"12px",padding:"12px"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"4px"},children:[c.jsx("span",{style:{fontSize:"0.62rem",fontWeight:800,color:"#FFFFFF",background:"var(--accent-purple)",padding:"2px 8px",borderRadius:"20px"},children:"ROL 1"}),c.jsx("strong",{style:{fontSize:"0.8rem",color:"var(--text-primary)"},children:"Administrador del Sistema"})]}),c.jsx("p",{style:{fontSize:"0.74rem",color:"var(--text-secondary)",lineHeight:"1.3"},children:"Control total sobre Orion API. Acceso exclusivo a la pestaña de Ajustes (UUIDs, descarga de plantillas, auditoría) y gestión de usuarios del sistema."})]}),c.jsxs("div",{style:{background:n?"rgba(255,255,255,0.02)":"rgba(0,0,0,0.02)",border:n?"1px solid rgba(255,255,255,0.05)":"1px solid rgba(0,0,0,0.05)",borderRadius:"12px",padding:"12px"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginBottom:"4px"},children:[c.jsx("span",{style:{fontSize:"0.62rem",fontWeight:800,color:n?"var(--text-secondary)":"var(--text-primary)",background:n?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.05)",padding:"2px 8px",borderRadius:"20px"},children:"ROL 2"}),c.jsx("strong",{style:{fontSize:"0.8rem",color:"var(--text-primary)"},children:"Usuario de Consulta / Operador"})]}),c.jsx("p",{style:{fontSize:"0.74rem",color:"var(--text-secondary)",lineHeight:"1.3"},children:"Perfil limitado exclusivamente a la verificación del estado de placas vehiculares en tiempo real. No tiene visibilidad del panel de ajustes ni de usuarios."})]})]})]}),c.jsxs("div",{className:"soft-card",style:{padding:"16px"},children:[c.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"10px",marginBottom:"12px"},children:[c.jsx("div",{style:{background:n?"rgba(168, 85, 247, 0.1)":"var(--accent-purple-light)",color:"var(--accent-purple)",width:"32px",height:"32px",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(nc,{size:16})}),c.jsx("h3",{style:{fontSize:"0.9rem",fontWeight:800,color:"var(--text-primary)"},children:"Niveles de Placa (1 - 4)"})]}),c.jsx("p",{style:{fontSize:"0.78rem",color:"var(--text-secondary)",lineHeight:"1.4",marginBottom:"14px"},children:"Niveles asignados a cada registro de placa para definir su estatus, visibilidad y criticidad ante una alerta de seguridad:"}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[c.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"flex-start",background:n?"rgba(255,255,255,0.01)":"rgba(0,0,0,0.01)",padding:"10px",borderRadius:"10px",border:n?"1px solid rgba(255,255,255,0.03)":"1px solid rgba(0,0,0,0.03)"},children:[c.jsx("span",{style:{fontSize:"0.7rem",fontWeight:800,color:n?"#FFFFFF":"var(--text-primary)",background:n?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.05)",padding:"2px 8px",borderRadius:"6px",flexShrink:0},children:"NIVEL 1"}),c.jsxs("div",{children:[c.jsx("strong",{style:{fontSize:"0.78rem",color:"var(--text-primary)",display:"block"},children:"Seguridad Básica / Público"}),c.jsx("span",{style:{fontSize:"0.72rem",color:"var(--text-secondary)",lineHeight:"1.3"},children:"Acceso a vehículos estándar o de visitantes comunes sin alertas."})]})]}),c.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"flex-start",background:"rgba(59, 130, 246, 0.02)",padding:"10px",borderRadius:"10px",border:"1px solid rgba(59, 130, 246, 0.08)"},children:[c.jsx("span",{style:{fontSize:"0.7rem",fontWeight:800,color:"#FFFFFF",background:"var(--accent-blue)",padding:"2px 8px",borderRadius:"6px",flexShrink:0},children:"NIVEL 2"}),c.jsxs("div",{children:[c.jsx("strong",{style:{fontSize:"0.78rem",color:"var(--text-primary)",display:"block"},children:"Seguridad Intermedia"}),c.jsx("span",{style:{fontSize:"0.72rem",color:"var(--text-secondary)",lineHeight:"1.3"},children:"Vehículos autorizados de contratistas o personal de planta recurrente."})]})]}),c.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"flex-start",background:"rgba(245, 158, 11, 0.02)",padding:"10px",borderRadius:"10px",border:"1px solid rgba(245, 158, 11, 0.08)"},children:[c.jsx("span",{style:{fontSize:"0.7rem",fontWeight:800,color:"#FFFFFF",background:n?"rgba(245, 158, 11, 0.4)":"#D97706",padding:"2px 8px",borderRadius:"6px",flexShrink:0},children:"NIVEL 3"}),c.jsxs("div",{children:[c.jsx("strong",{style:{fontSize:"0.78rem",color:"var(--text-primary)",display:"block"},children:"Seguridad Elevada"}),c.jsx("span",{style:{fontSize:"0.72rem",color:"var(--text-secondary)",lineHeight:"1.3"},children:"Vehículos de directores, supervisores o entidades oficiales de control."})]})]}),c.jsxs("div",{style:{display:"flex",gap:"10px",alignItems:"flex-start",background:"rgba(239, 68, 68, 0.02)",padding:"10px",borderRadius:"10px",border:"1px solid rgba(239, 68, 68, 0.08)"},children:[c.jsx("span",{style:{fontSize:"0.7rem",fontWeight:800,color:"#FFFFFF",background:n?"rgba(239, 68, 68, 0.4)":"var(--accent-red)",padding:"2px 8px",borderRadius:"6px",flexShrink:0},children:"NIVEL 4"}),c.jsxs("div",{children:[c.jsxs("strong",{style:{fontSize:"0.78rem",color:"var(--text-primary)",display:"flex",alignItems:"center",gap:"4px"},children:["Restricción Absoluta",c.jsx(ic,{size:12,color:"var(--accent-red)"})]}),c.jsx("span",{style:{fontSize:"0.72rem",color:"var(--text-secondary)",lineHeight:"1.3"},children:"Alertas críticas inmediatas para vehículos de alta sensibilidad o restringidos."})]})]})]})]})]})]}),Y&&c.jsx("div",{style:um,children:c.jsxs("div",{className:"soft-card",style:{...om,maxWidth:"360px",width:"100%",position:"relative"},children:[c.jsx("button",{onClick:pl,style:{position:"absolute",top:"12px",right:"12px",border:"none",background:"transparent",cursor:"pointer",color:"var(--text-muted)",outline:"none"},children:c.jsx(wa,{size:18})}),c.jsx("h3",{style:{fontSize:"1rem",fontWeight:800,color:"var(--text-primary)",marginBottom:"12px"},children:"Vincular Dispositivo"}),Ae&&c.jsx("div",{style:{background:"var(--accent-red-light)",color:"var(--accent-red)",padding:"8px 12px",borderRadius:"10px",fontSize:"0.75rem",fontWeight:600,border:"1px solid rgba(239, 68, 68, 0.1)",marginBottom:"12px"},children:Ae}),c.jsxs("form",{onSubmit:ca,style:{display:"flex",flexDirection:"column",gap:"12px"},children:[c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px",position:"relative"},children:[c.jsx("label",{style:{fontSize:"0.7rem",fontWeight:700,color:"var(--text-secondary)"},children:"1. Buscar Usuario / Operador"}),xe?c.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",background:n?"rgba(168, 85, 247, 0.08)":"var(--accent-purple-light)",border:n?"1px solid rgba(168, 85, 247, 0.2)":"1px solid rgba(168, 85, 247, 0.15)",padding:"8px 12px",borderRadius:"10px",fontSize:"0.8rem",color:"var(--text-primary)"},children:[c.jsxs("div",{children:[c.jsx("strong",{children:xe.name}),c.jsxs("span",{style:{fontSize:"0.7rem",color:"var(--text-secondary)",display:"block"},children:["@",xe.username]})]}),c.jsx("button",{type:"button",onClick:()=>Ee(null),style:{border:"none",background:"transparent",color:"var(--accent-red)",cursor:"pointer",outline:"none"},children:c.jsx(wa,{size:14})})]}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"search-pill-container",style:{height:"38px",borderRadius:"10px",border:n?"1px solid rgba(255,255,255,0.08)":"1px solid rgba(0,0,0,0.08)"},children:[c.jsx(Ai,{size:14,color:"var(--text-muted)"}),c.jsx("input",{type:"text",placeholder:"Escribe el nombre o usuario...",value:$,onChange:Q=>F(Q.target.value),style:{fontSize:"0.78rem"}})]}),te.length>0&&c.jsx("div",{style:{position:"absolute",top:"56px",left:0,right:0,background:"var(--bg-card)",border:n?"1px solid rgba(255,255,255,0.1)":"1px solid rgba(0,0,0,0.08)",borderRadius:"10px",maxHeight:"130px",overflowY:"auto",zIndex:310,boxShadow:"var(--shadow-soft)"},children:te.map(Q=>c.jsxs("div",{onClick:()=>{Ee(Q),P([])},style:{padding:"8px 12px",cursor:"pointer",borderBottom:n?"1px solid rgba(255,255,255,0.04)":"1px solid rgba(0,0,0,0.04)",fontSize:"0.76rem",color:"var(--text-primary)",transition:"background 0.2s"},onMouseEnter:ye=>ye.currentTarget.style.background=n?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.03)",onMouseLeave:ye=>ye.currentTarget.style.background="transparent",children:[c.jsx("span",{style:{fontWeight:700},children:Q.name}),c.jsxs("span",{style:{color:"var(--text-muted)",fontSize:"0.68rem",display:"block"},children:["@",Q.username," • ",Q.role===1?"Admin":"Operador"]})]},Q.id))})]})]}),c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[c.jsx("label",{style:{fontSize:"0.7rem",fontWeight:700,color:"var(--text-secondary)"},children:"2. Identificador UUID"}),!M&&c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",background:"rgba(0,0,0,0.2)",padding:"10px",borderRadius:"12px",border:n?"1px solid rgba(255,255,255,0.04)":"1px solid rgba(0,0,0,0.06)"},children:[c.jsxs("div",{style:{position:"relative",width:"260px",height:"200px",borderRadius:"8px",overflow:"hidden",border:"2px solid var(--accent-purple)",display:ie?"block":"none"},children:[c.jsx("video",{ref:U,style:{display:"none"}}),c.jsx("canvas",{ref:K,style:{width:"100%",height:"100%",display:"block"}}),c.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"2px",background:"var(--accent-red)",boxShadow:"0 0 8px var(--accent-red)",animation:"scannerLaser 2s linear infinite"}})]}),!ie&&c.jsxs("div",{style:{width:"260px",height:"200px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",background:"var(--bg-surface)",borderRadius:"8px",border:n?"1px dashed rgba(255,255,255,0.1)":"1px dashed rgba(0,0,0,0.15)"},children:[c.jsx(tl,{className:"spin",size:24,color:"var(--accent-purple)"}),c.jsx("span",{style:{fontSize:"0.7rem",color:"var(--text-secondary)",marginTop:"8px"},children:"Iniciando cámara..."})]}),c.jsxs("button",{type:"button",onClick:()=>{ll(),J(!0)},style:{background:"transparent",border:"none",color:"var(--accent-purple)",cursor:"pointer",fontSize:"0.7rem",fontWeight:700,display:"flex",alignItems:"center",gap:"4px",outline:"none",marginTop:"4px"},children:[c.jsx(tm,{size:12}),"¿UUID enviado por chat? Ingresar manualmente"]})]}),M&&c.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[c.jsxs("div",{style:{display:"flex",gap:"6px"},children:[c.jsx("div",{className:"search-pill-container",style:{height:"38px",borderRadius:"10px",border:n?"1px solid rgba(255,255,255,0.08)":"1px solid rgba(0,0,0,0.08)",flex:1},children:c.jsx("input",{type:"text",placeholder:"Pega el UUID aquí (ej: orion_abc123...)",value:Te,onChange:Q=>ce(Q.target.value),style:{fontSize:"0.78rem"}})}),c.jsx("button",{type:"button",onClick:async()=>{try{let Q=await navigator.clipboard.readText();Q=Q.trim();const ye=/UUID:\s*([a-zA-Z0-9_\-]+)/i,Ue=Q.match(ye);Ue&&Ue[1]?ce(Ue[1]):ce(Q)}catch{alert("Por favor mantén presionado el campo y pega el texto de forma manual.")}},style:{width:"38px",height:"38px",borderRadius:"10px",background:n?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.02)",border:n?"1px solid rgba(255,255,255,0.08)":"1px solid rgba(0,0,0,0.06)",color:"var(--text-secondary)",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",outline:"none"},title:"Pegar del portapapeles",children:c.jsx(ac,{size:14})})]}),c.jsxs("button",{type:"button",onClick:()=>{J(!1),Ct()},style:{background:"transparent",border:"none",color:"var(--accent-purple)",cursor:"pointer",fontSize:"0.7rem",fontWeight:700,display:"flex",alignItems:"center",gap:"4px",outline:"none",alignSelf:"center",marginTop:"2px"},children:[c.jsx(_b,{size:12}),"Volver a escanear código QR"]})]})]}),c.jsxs("div",{style:{display:"flex",gap:"8px",marginTop:"10px"},children:[c.jsx("button",{type:"button",onClick:pl,style:{flex:1,height:"38px",borderRadius:"10px",background:n?"rgba(255,255,255,0.02)":"rgba(0,0,0,0.02)",border:n?"1px solid rgba(255,255,255,0.06)":"1px solid rgba(0,0,0,0.06)",color:"var(--text-primary)",fontWeight:700,fontSize:"0.78rem",cursor:"pointer",outline:"none"},children:"CANCELAR"}),c.jsx("button",{type:"submit",disabled:ze||!M&&!Te,style:{flex:1,height:"38px",borderRadius:"10px",background:"var(--accent-purple)",border:"none",color:"#FFFFFF",fontWeight:700,fontSize:"0.78rem",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",outline:"none"},children:ze?c.jsx(tl,{size:14,className:"spin"}):"VINCULAR"})]})]})]})}),G&&w&&c.jsx("div",{style:um,children:c.jsxs("div",{className:"soft-card",style:{...om,maxWidth:"320px",textAlign:"center"},children:[c.jsx("div",{style:{display:"flex",justifyContent:"center",marginBottom:"1rem",color:"var(--accent-red)"},children:c.jsx(Na,{size:44})}),c.jsx("h3",{style:{fontSize:"1.1rem",fontWeight:800,color:"var(--text-primary)"},children:"¿Eliminar dispositivo?"}),c.jsxs("p",{style:{fontSize:"0.78rem",color:"var(--text-secondary)",marginTop:"6px",lineHeight:"1.4"},children:["Esta acción es permanente. El dispositivo con UUID ",c.jsx("strong",{style:{wordBreak:"break-all"},children:w.uuid})," asociado al usuario ",c.jsx("strong",{children:w.user?w.user.name:"desconocido"})," perderá la autorización de inmediato."]}),c.jsxs("div",{style:{display:"flex",gap:"8px",marginTop:"20px"},children:[c.jsx("button",{onClick:()=>k(!1),style:{flex:1,height:"42px",borderRadius:"12px",border:n?"1px solid rgba(255,255,255,0.06)":"1px solid rgba(0,0,0,0.05)",background:"var(--bg-surface)",color:"var(--text-primary)",fontWeight:700,fontSize:"0.8rem",cursor:"pointer",outline:"none"},children:"CANCELAR"}),c.jsx("button",{onClick:Mt,style:{flex:1,height:"42px",borderRadius:"12px",border:"none",background:"var(--accent-red)",color:"#FFFFFF",fontWeight:700,fontSize:"0.8rem",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"6px",outline:"none"},disabled:v,children:v?c.jsx(tl,{size:14,className:"spin"}):"ELIMINAR"})]})]})})]})},um={position:"absolute",top:0,left:0,right:0,bottom:0,background:"rgba(12, 13, 18, 0.4)",backdropFilter:"blur(4px)",WebkitBackdropFilter:"blur(4px)",zIndex:300,display:"flex",alignItems:"center",justifyContent:"center",padding:"1.5rem"},om={width:"100%",maxWidth:"340px",background:"var(--bg-card)",borderRadius:"20px",padding:"1.2rem",boxShadow:"var(--shadow-soft)",animation:"scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1)",border:"1px solid rgba(123, 82, 242, 0.08)"},D2=()=>{const n=ps(),s=fl(),{user:o,logout:u}=Tn(),f=v=>n(v),p=v=>s.pathname===v,[h,y]=j.useState(()=>document.body.classList.contains("dark")),x=()=>{const v=!h;y(v),v?(document.body.classList.add("dark"),localStorage.setItem("theme","dark")):(document.body.classList.remove("dark"),localStorage.setItem("theme","light"))},g=async()=>{try{await u(),n("/login")}catch(v){console.error("Error logging out:",v)}};return c.jsxs("div",{className:"main-layout",children:[c.jsxs("div",{style:{position:"absolute",top:"20px",right:"24px",zIndex:1e3,display:"flex",alignItems:"center",gap:"12px"},children:[c.jsx("div",{className:"theme-switch-track",onClick:x,title:h?"Desactivar Modo Oscuro":"Activar Modo Oscuro",children:c.jsx("div",{className:"theme-switch-thumb",children:h?c.jsx(o0,{size:10,strokeWidth:3}):c.jsx(f0,{size:10,strokeWidth:3})})}),c.jsx("button",{onClick:g,title:"Cerrar Sesión",style:{width:"32px",height:"32px",borderRadius:"10px",background:"rgba(239, 68, 68, 0.08)",border:"1px solid rgba(239, 68, 68, 0.15)",color:"var(--accent-red)",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s",outline:"none"},children:c.jsx(u2,{size:14})})]}),c.jsxs("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",zIndex:0,color:"var(--radar-color, rgba(30, 31, 36, 0.035))",overflow:"hidden"},children:[c.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("defs",{children:c.jsx("pattern",{id:"dot-grid",width:"24",height:"24",patternUnits:"userSpaceOnUse",children:c.jsx("circle",{cx:"2",cy:"2",r:"1",fill:"currentColor"})})}),c.jsx("rect",{width:"100%",height:"100%",fill:"url(#dot-grid)"})]}),c.jsxs("svg",{viewBox:"0 0 200 200",style:{position:"absolute",bottom:"12%",right:"-15%",width:"320px",height:"320px"},xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("circle",{cx:"100",cy:"100",r:"85",stroke:"currentColor",strokeWidth:"0.5",fill:"none"}),c.jsx("circle",{cx:"100",cy:"100",r:"65",stroke:"currentColor",strokeWidth:"0.5",fill:"none",strokeDasharray:"4 3"}),c.jsx("circle",{cx:"100",cy:"100",r:"45",stroke:"currentColor",strokeWidth:"0.5",fill:"none"}),c.jsx("circle",{cx:"100",cy:"100",r:"25",stroke:"currentColor",strokeWidth:"0.5",fill:"none"}),c.jsx("line",{x1:"100",y1:"10",x2:"100",y2:"190",stroke:"currentColor",strokeWidth:"0.5"}),c.jsx("line",{x1:"10",y1:"100",x2:"190",y2:"100",stroke:"currentColor",strokeWidth:"0.5"}),c.jsx("line",{x1:"100",y1:"100",x2:"160.1",y2:"40.1",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round"})]})]}),c.jsx("div",{style:{flex:1,display:"flex",flexDirection:"column",overflow:"hidden",background:"transparent",position:"relative",zIndex:1},children:c.jsx(_m,{})}),c.jsxs("div",{className:"bottom-nav-floating",children:[c.jsx("button",{className:`nav-item-btn ${p("/")?"active":""}`,onClick:()=>f("/"),title:"Búsqueda",children:c.jsx(Ai,{size:24,strokeWidth:p("/")?2.5:2})}),c.jsx("button",{className:`nav-item-btn ${p("/upload")?"active":""}`,onClick:()=>f("/upload"),title:"Consola Excel",children:c.jsx(cs,{size:24,strokeWidth:p("/upload")?2.5:2})}),c.jsx("button",{className:`nav-item-btn ${p("/users")?"active":""}`,onClick:()=>f("/users"),title:"Usuarios",children:c.jsx(d0,{size:24,strokeWidth:p("/users")?2.5:2})}),(o==null?void 0:o.role)===1&&c.jsx("button",{className:`nav-item-btn ${p("/devices")?"active":""}`,onClick:()=>f("/devices"),title:"Ajustes / Dispositivos",children:c.jsx(h2,{size:24,strokeWidth:p("/devices")?2.5:2})})]})]})},M2=({children:n})=>{const{user:s,loading:o}=Tn();return o?c.jsx("div",{style:{height:"100vh",display:"flex",alignItems:"center",justifyContent:"center",color:"white",background:"var(--bg-surface)"},children:"Verificando credenciales..."}):!s||s.role!==1?c.jsx(dc,{to:"/",replace:!0}):c.jsx(c.Fragment,{children:n})},U2=()=>c.jsx(cx,{children:c.jsx(xb,{children:c.jsxs(q1,{children:[c.jsx(xl,{path:"/login",element:c.jsx(C2,{})}),c.jsx(xl,{element:c.jsx(vb,{}),children:c.jsxs(xl,{element:c.jsx(D2,{}),children:[c.jsx(xl,{path:"/",element:c.jsx(T2,{})}),c.jsx(xl,{path:"/upload",element:c.jsx(_2,{})}),c.jsx(xl,{path:"/users",element:c.jsx(O2,{})}),c.jsx(xl,{path:"/devices",element:c.jsx(M2,{children:c.jsx(w2,{})})}),c.jsx(xl,{path:"/register",element:c.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"1rem"},children:[c.jsx("div",{style:{fontSize:"0.7rem",letterSpacing:"4px",color:"rgba(255,255,255,0.4)"},children:"EN DESARROLLO"}),c.jsx("h1",{style:{fontSize:"1.8rem",fontWeight:800,letterSpacing:"3px",color:"#fff",textShadow:"0 2px 20px rgba(0,0,0,0.3)"},children:"REGISTRO"})]})})]})}),c.jsx(xl,{path:"*",element:c.jsx(dc,{to:"/",replace:!0})})]})})}),B2=localStorage.getItem("theme");B2==="dark"?document.body.classList.add("dark"):document.body.classList.remove("dark");kg.createRoot(document.getElementById("root")).render(c.jsx(Ng.StrictMode,{children:c.jsx(U2,{})}));
