Files
FootPrint/sync-server/www/assets/index-BunBoxtn.js
T

297 lines
397 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-6WjCreWK.js","assets/card-CgBa5fs5.js","assets/useChart-CwGNJ-9_.js","assets/echarts-BIWefrIc.js","assets/GradesPage-F7CyPrhz.js","assets/TypesPage-CxfVqKEr.js","assets/TaxonomyPage-B15FwZVO.js"])))=>i.map(i=>d[i]);
var v0=n=>{throw TypeError(n)};var Bf=(n,r,s)=>r.has(n)||v0("Cannot "+s);var E=(n,r,s)=>(Bf(n,r,"read from private field"),s?s.call(n):r.get(n)),fe=(n,r,s)=>r.has(n)?v0("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(n):r.set(n,s),W=(n,r,s,c)=>(Bf(n,r,"write to private field"),c?c.call(n,s):r.set(n,s),s),Ee=(n,r,s)=>(Bf(n,r,"access private method"),s);var Ls=(n,r,s,c)=>({set _(f){W(n,r,f,s)},get _(){return E(n,r,c)}});(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const h of f)if(h.type==="childList")for(const d of h.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&c(d)}).observe(document,{childList:!0,subtree:!0});function s(f){const h={};return f.integrity&&(h.integrity=f.integrity),f.referrerPolicy&&(h.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?h.credentials="include":f.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function c(f){if(f.ep)return;f.ep=!0;const h=s(f);fetch(f.href,h)}})();function bg(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Qf={exports:{}},Zu={};/**
* @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 g0;function B2(){if(g0)return Zu;g0=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function s(c,f,h){var d=null;if(h!==void 0&&(d=""+h),f.key!==void 0&&(d=""+f.key),"key"in f){h={};for(var v in f)v!=="key"&&(h[v]=f[v])}else h=f;return f=h.ref,{$$typeof:n,type:c,key:d,ref:f!==void 0?f:null,props:h}}return Zu.Fragment=r,Zu.jsx=s,Zu.jsxs=s,Zu}var p0;function Q2(){return p0||(p0=1,Qf.exports=B2()),Qf.exports}var y=Q2(),Gf={exports:{}},pe={};/**
* @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 b0;function G2(){if(b0)return pe;b0=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),d=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),z=Symbol.for("react.view_transition"),q=Symbol.iterator;function G(N){return N===null||typeof N!="object"?null:(N=q&&N[q]||N["@@iterator"],typeof N=="function"?N:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,Q={};function Y(N,B,te){this.props=N,this.context=B,this.refs=Q,this.updater=te||L}Y.prototype.isReactComponent={},Y.prototype.setState=function(N,B){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,B,"setState")},Y.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function Z(){}Z.prototype=Y.prototype;function I(N,B,te){this.props=N,this.context=B,this.refs=Q,this.updater=te||L}var K=I.prototype=new Z;K.constructor=I,U(K,Y.prototype),K.isPureReactComponent=!0;var ce=Array.isArray;function X(){}var M={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function ge(N,B,te){var se=te.ref;return{$$typeof:n,type:N,key:B,ref:se!==void 0?se:null,props:te}}function P(N,B){return ge(N.type,B,N.props)}function he(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function Je(N){var B={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(te){return B[te]})}var D=/\/+/g;function ee(N,B){return typeof N=="object"&&N!==null&&N.key!=null?Je(""+N.key):B.toString(36)}function V(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(X,X):(N.status="pending",N.then(function(B){N.status==="pending"&&(N.status="fulfilled",N.value=B)},function(B){N.status==="pending"&&(N.status="rejected",N.reason=B)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function $(N,B,te,se,ze){var me=typeof N;(me==="undefined"||me==="boolean")&&(N=null);var Ae=!1;if(N===null)Ae=!0;else switch(me){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(N.$$typeof){case n:case r:Ae=!0;break;case x:return Ae=N._init,$(Ae(N._payload),B,te,se,ze)}}if(Ae)return ze=ze(N),Ae=se===""?"."+ee(N,0):se,ce(ze)?(te="",Ae!=null&&(te=Ae.replace(D,"$&/")+"/"),$(ze,B,te,"",function(Qt){return Qt})):ze!=null&&(he(ze)&&(ze=P(ze,te+(ze.key==null||N&&N.key===ze.key?"":(""+ze.key).replace(D,"$&/")+"/")+Ae)),B.push(ze)),1;Ae=0;var ue=se===""?".":se+":";if(ce(N))for(var ye=0;ye<N.length;ye++)se=N[ye],me=ue+ee(se,ye),Ae+=$(se,B,te,me,ze);else if(ye=G(N),typeof ye=="function")for(N=ye.call(N),ye=0;!(se=N.next()).done;)se=se.value,me=ue+ee(se,ye++),Ae+=$(se,B,te,me,ze);else if(me==="object"){if(typeof N.then=="function")return $(V(N),B,te,se,ze);throw B=String(N),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return Ae}function de(N,B,te){if(N==null)return N;var se=[],ze=0;return $(N,se,"","",function(me){return B.call(te,me,ze++)}),se}function Ue(N){if(N._status===-1){var B=N._result,te=B();te.then(function(se){(N._status===0||N._status===-1)&&(N._status=1,N._result=se,te.status===void 0&&(te.status="fulfilled",te.value=se))},function(se){(N._status===0||N._status===-1)&&(N._status=2,N._result=se,te.status===void 0&&(te.status="rejected",te.reason=se))}),N._status===-1&&(N._status=0,N._result=te)}if(N._status===1)return N._result.default;throw N._result}var J=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function Dt(N){var B=M.T,te={};te.types=B!==null?B.types:null,M.T=te;try{var se=N(),ze=M.S;ze!==null&&ze(te,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(X,J)}catch(me){J(me)}finally{B!==null&&te.types!==null&&(B.types=te.types),M.T=B}}function al(N){var B=M.T;if(B!==null){var te=B.types;te===null?B.types=[N]:te.indexOf(N)===-1&&te.push(N)}else Dt(al.bind(null,N))}var zl={map:de,forEach:function(N,B,te){de(N,function(){B.apply(this,arguments)},te)},count:function(N){var B=0;return de(N,function(){B++}),B},toArray:function(N){return de(N,function(B){return B})||[]},only:function(N){if(!he(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return pe.Activity=p,pe.Children=zl,pe.Component=Y,pe.Fragment=s,pe.Profiler=f,pe.PureComponent=I,pe.StrictMode=c,pe.Suspense=b,pe.ViewTransition=z,pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,pe.__COMPILER_RUNTIME={__proto__:null,c:function(N){return M.H.useMemoCache(N)}},pe.addTransitionType=al,pe.cache=function(N){return function(){return N.apply(null,arguments)}},pe.cacheSignal=function(){return null},pe.cloneElement=function(N,B,te){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var se=U({},N.props),ze=N.key;if(B!=null)for(me in B.key!==void 0&&(ze=""+B.key),B)!ae.call(B,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&B.ref===void 0||(se[me]=B[me]);var me=arguments.length-2;if(me===1)se.children=te;else if(1<me){for(var Ae=Array(me),ue=0;ue<me;ue++)Ae[ue]=arguments[ue+2];se.children=Ae}return ge(N.type,ze,se)},pe.createContext=function(N){return N={$$typeof:d,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:h,_context:N},N},pe.createElement=function(N,B,te){var se,ze={},me=null;if(B!=null)for(se in B.key!==void 0&&(me=""+B.key),B)ae.call(B,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(ze[se]=B[se]);var Ae=arguments.length-2;if(Ae===1)ze.children=te;else if(1<Ae){for(var ue=Array(Ae),ye=0;ye<Ae;ye++)ue[ye]=arguments[ye+2];ze.children=ue}if(N&&N.defaultProps)for(se in Ae=N.defaultProps,Ae)ze[se]===void 0&&(ze[se]=Ae[se]);return ge(N,me,ze)},pe.createRef=function(){return{current:null}},pe.forwardRef=function(N){return{$$typeof:v,render:N}},pe.isValidElement=he,pe.lazy=function(N){return{$$typeof:x,_payload:{_status:-1,_result:N},_init:Ue}},pe.memo=function(N,B){return{$$typeof:g,type:N,compare:B===void 0?null:B}},pe.startTransition=Dt,pe.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},pe.use=function(N){return M.H.use(N)},pe.useActionState=function(N,B,te){return M.H.useActionState(N,B,te)},pe.useCallback=function(N,B){return M.H.useCallback(N,B)},pe.useContext=function(N){return M.H.useContext(N)},pe.useDebugValue=function(){},pe.useDeferredValue=function(N,B){return M.H.useDeferredValue(N,B)},pe.useEffect=function(N,B){return M.H.useEffect(N,B)},pe.useEffectEvent=function(N){return M.H.useEffectEvent(N)},pe.useId=function(){return M.H.useId()},pe.useImperativeHandle=function(N,B,te){return M.H.useImperativeHandle(N,B,te)},pe.useInsertionEffect=function(N,B){return M.H.useInsertionEffect(N,B)},pe.useLayoutEffect=function(N,B){return M.H.useLayoutEffect(N,B)},pe.useMemo=function(N,B){return M.H.useMemo(N,B)},pe.useOptimistic=function(N,B){return M.H.useOptimistic(N,B)},pe.useReducer=function(N,B,te){return M.H.useReducer(N,B,te)},pe.useRef=function(N){return M.H.useRef(N)},pe.useState=function(N){return M.H.useState(N)},pe.useSyncExternalStore=function(N,B,te){return M.H.useSyncExternalStore(N,B,te)},pe.useTransition=function(){return M.H.useTransition()},pe.version="19.3.1",pe}var x0;function Sd(){return x0||(x0=1,Gf.exports=G2()),Gf.exports}var T=Sd();const Y2=bg(T);var Yf={exports:{}},Ju={},Vf={exports:{}},Xf={};/**
* @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 S0;function V2(){return S0||(S0=1,(function(n){function r(V,$){var de=V.length;V.push($);e:for(;0<de;){var Ue=de-1>>>1,J=V[Ue];if(0<f(J,$))V[Ue]=$,V[de]=J,de=Ue;else break e}}function s(V){return V.length===0?null:V[0]}function c(V){if(V.length===0)return null;var $=V[0],de=V.pop();if(de!==$){V[0]=de;e:for(var Ue=0,J=V.length,Dt=J>>>1;Ue<Dt;){var al=2*(Ue+1)-1,zl=V[al],N=al+1,B=V[N];if(0>f(zl,de))N<J&&0>f(B,zl)?(V[Ue]=B,V[N]=de,Ue=N):(V[Ue]=zl,V[al]=de,Ue=al);else if(N<J&&0>f(B,de))V[Ue]=B,V[N]=de,Ue=N;else break e}}return $}function f(V,$){var de=V.sortIndex-$.sortIndex;return de!==0?de:V.id-$.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;n.unstable_now=function(){return h.now()}}else{var d=Date,v=d.now();n.unstable_now=function(){return d.now()-v}}var b=[],g=[],x=1,p=null,z=3,q=!1,G=!1,L=!1,U=!1,Q=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function I(V){for(var $=s(g);$!==null;){if($.callback===null)c(g);else if($.startTime<=V)c(g),$.sortIndex=$.expirationTime,r(b,$);else break;$=s(g)}}function K(V){if(L=!1,I(V),!G)if(s(b)!==null)G=!0,ce||(ce=!0,he());else{var $=s(g);$!==null&&ee(K,$.startTime-V)}}var ce=!1,X=-1,M=5,ae=-1;function ge(){return U?!0:!(n.unstable_now()-ae<M)}function P(){if(U=!1,ce){var V=n.unstable_now();ae=V;var $=!0;try{e:{G=!1,L&&(L=!1,Y(X),X=-1),q=!0;var de=z;try{t:{for(I(V),p=s(b);p!==null&&!(p.expirationTime>V&&ge());){var Ue=p.callback;if(typeof Ue=="function"){p.callback=null,z=p.priorityLevel;var J=Ue(p.expirationTime<=V);if(V=n.unstable_now(),typeof J=="function"){p.callback=J,I(V),$=!0;break t}p===s(b)&&c(b),I(V)}else c(b);p=s(b)}if(p!==null)$=!0;else{var Dt=s(g);Dt!==null&&ee(K,Dt.startTime-V),$=!1}}break e}finally{p=null,z=de,q=!1}$=void 0}}finally{$?he():ce=!1}}}var he;if(typeof Z=="function")he=function(){Z(P)};else if(typeof MessageChannel<"u"){var Je=new MessageChannel,D=Je.port2;Je.port1.onmessage=P,he=function(){D.postMessage(null)}}else he=function(){Q(P,0)};function ee(V,$){X=Q(function(){V(n.unstable_now())},$)}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(V){V.callback=null},n.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<V?Math.floor(1e3/V):5},n.unstable_getCurrentPriorityLevel=function(){return z},n.unstable_next=function(V){switch(z){case 1:case 2:case 3:var $=3;break;default:$=z}var de=z;z=$;try{return V()}finally{z=de}},n.unstable_requestPaint=function(){U=!0},n.unstable_runWithPriority=function(V,$){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var de=z;z=V;try{return $()}finally{z=de}},n.unstable_scheduleCallback=function(V,$,de){var Ue=n.unstable_now();switch(typeof de=="object"&&de!==null?(de=de.delay,de=typeof de=="number"&&0<de?Ue+de:Ue):de=Ue,V){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=de+J,V={id:x++,callback:$,priorityLevel:V,startTime:de,expirationTime:J,sortIndex:-1},de>Ue?(V.sortIndex=de,r(g,V),s(b)===null&&V===s(g)&&(L?(Y(X),X=-1):L=!0,ee(K,de-Ue))):(V.sortIndex=J,r(b,V),G||q||(G=!0,ce||(ce=!0,he()))),V},n.unstable_shouldYield=ge,n.unstable_wrapCallback=function(V){var $=z;return function(){var de=z;z=$;try{return V.apply(this,arguments)}finally{z=de}}}})(Xf)),Xf}var E0;function X2(){return E0||(E0=1,Vf.exports=V2()),Vf.exports}var Kf={exports:{}},Et={};/**
* @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 _0;function K2(){if(_0)return Et;_0=1;var n=Sd();function r(x){var p="https://react.dev/errors/"+x;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var z=2;z<arguments.length;z++)p+="&args[]="+encodeURIComponent(arguments[z])}return"Minified React error #"+x+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var c={d:{f:s,r:function(){throw Error(r(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},f=Symbol.for("react.portal"),h=Symbol.for("react.recoverable"),d=Symbol.for("react.optimistic_key");function v(x,p,z){var q=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:q==null?null:q===d?d:""+q,children:x,containerInfo:p,implementation:z}}var b=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(x,p){if(x==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,Et.browser=function(x){return{$$typeof:h,_reason:x}},Et.createPortal=function(x,p){var z=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return v(x,p,null,z)},Et.flushSync=function(x){var p=b.T,z=c.p;try{if(b.T=null,c.p=2,x)return x()}finally{b.T=p,c.p=z,c.d.f()}},Et.preconnect=function(x,p){typeof x=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,c.d.C(x,p))},Et.prefetchDNS=function(x){typeof x=="string"&&c.d.D(x)},Et.preinit=function(x,p){if(typeof x=="string"&&p&&typeof p.as=="string"){var z=p.as,q=g(z,p.crossOrigin),G=typeof p.integrity=="string"?p.integrity:void 0,L=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;z==="style"?c.d.S(x,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:q,integrity:G,fetchPriority:L}):z==="script"&&c.d.X(x,{crossOrigin:q,integrity:G,fetchPriority:L,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Et.preinitModule=function(x,p){if(typeof x=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var z=g(p.as,p.crossOrigin);c.d.M(x,{crossOrigin:z,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}}else p==null&&c.d.M(x)},Et.preload=function(x,p){if(typeof x=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var z=p.as,q=g(z,p.crossOrigin);c.d.L(x,z,{crossOrigin:q,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Et.preloadModule=function(x,p){if(typeof x=="string")if(p){var z=g(p.as,p.crossOrigin);c.d.m(x,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:z,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0})}else c.d.m(x)},Et.requestFormReset=function(x){c.d.r(x)},Et.unstable_batchedUpdates=function(x,p){return x(p)},Et.useFormState=function(x,p,z){return b.H.useFormState(x,p,z)},Et.useFormStatus=function(){return b.H.useHostTransitionStatus()},Et.version="19.3.1",Et}var T0;function xg(){if(T0)return Kf.exports;T0=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(r){console.error(r)}}return n(),Kf.exports=K2(),Kf.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 N0;function Z2(){if(N0)return Ju;N0=1;var n=X2(),r=Sd(),s=xg();function c(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 h(e){for(var t=e,l=t;l&&!l.alternate;)t=l,(t.flags&4098)!==0&&(e=t.return),l=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function d(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 v(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 b(e){if(h(e)!==e)throw Error(c(188))}function g(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(c(188));return t!==e?null:e}for(var l=e,a=t;;){var i=l.return;if(i===null)break;var u=i.alternate;if(u===null){if(a=i.return,a!==null){l=a;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===l)return b(i),e;if(u===a)return b(i),t;u=u.sibling}throw Error(c(188))}if(l.return!==a.return)l=i,a=u;else{for(var o=!1,m=i.child;m;){if(m===l){o=!0,l=i,a=u;break}if(m===a){o=!0,a=i,l=u;break}m=m.sibling}if(!o){for(m=u.child;m;){if(m===l){o=!0,l=u,a=i;break}if(m===a){o=!0,a=u,l=i;break}m=m.sibling}if(!o)throw Error(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}function p(e,t,l,a,i,u){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&l(e,a,i,u)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&p(e.child,t,l,a,i,u))return!0;e=e.sibling}return!1}function z(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function q(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function G(e){var t=[null,null],l=z(e);return l===null||L(t,e,l.child,{foundSelf:!1}),t}function L(e,t,l,a){for(;l!==null;){if(l===t)a.foundSelf=!0;else if(l.tag===5||l.tag===27||l.tag===6){if(a.foundSelf)return e[1]=l,!0;e[0]=l}else if((l.tag!==22||l.memoizedState===null)&&L(e,t,l.child,a))return!0;l=l.sibling}return!1}function U(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(c(559))}}var Q=null,Y=null;function Z(e,t,l){return e===l?!0:e===t?(Q=e,!0):!1}function I(e,t,l){return e===l?(Y=e,!1):e===t?(Y!==null&&(Q=e),!0):!1}function K(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function ce(e,t,l){for(var a=0,i=e;i;i=l(i))a++;i=0;for(var u=t;u;u=l(u))i++;for(;0<a-i;)e=l(e),a--;for(;0<i-a;)t=l(t),i--;for(;a--;){if(e===t||t!==null&&e===t.alternate)return e;e=l(e),t=l(t)}return null}var X=Object.assign,M=Symbol.for("react.element"),ae=Symbol.for("react.transitional.element"),ge=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),he=Symbol.for("react.strict_mode"),Je=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),ee=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),Ue=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),Dt=Symbol.for("react.activity"),al=Symbol.for("react.legacy_hidden"),zl=Symbol.for("react.memo_cache_sentinel"),N=Symbol.for("react.view_transition"),B=Symbol.for("react.recoverable"),te=Symbol.iterator;function se(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var ze=Symbol.for("react.client.reference");function me(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ze?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case P:return"Fragment";case Je:return"Profiler";case he:return"StrictMode";case $:return"Suspense";case de:return"SuspenseList";case Dt:return"Activity";case N:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case ge:return"Portal";case ee:return e.displayName||"Context";case D:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ue:return t=e.displayName||null,t!==null?t:me(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}var Ae=Array.isArray,ue=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Qt={pending:!1,data:null,method:null,action:null},ma=[],Gn=-1;function Ol(e){return{current:e}}function yt(e){0>Gn||(e.current=ma[Gn],ma[Gn]=null,Gn--)}function Xe(e,t){Gn++,ma[Gn]=e.current,e.current=t}var Rl=Ol(null),Ii=Ol(null),ya=Ol(null),cr=Ol(null);function or(e,t){switch(Xe(ya,t),Xe(Ii,e),Xe(Rl,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Nv(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Nv(t),e=Cv(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}yt(Rl),Xe(Rl,e)}function Yn(){yt(Rl),yt(Ii),yt(ya)}function nc(e){var t=e.memoizedState;t!==null&&(wi._currentValue=t.memoizedState,Xe(cr,e)),t=Rl.current;var l=Cv(t,e.type);t!==l&&(Xe(Ii,e),Xe(Rl,l))}function fr(e){Ii.current===e&&(yt(Rl),yt(Ii)),cr.current===e&&(yt(cr),wi._currentValue=Qt)}var ic,Kd;function va(e){if(ic===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);ic=t&&t[1]||"",Kd=-1<l.stack.indexOf(`
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ic+e+Kd}var uc=!1;function rc(e,t){if(!e||uc)return"";uc=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(F){var C=F}Reflect.construct(e,[],H)}else{try{H.call()}catch(F){C=F}H=!1;try{var A=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),H=!0,new e}finally{H&&(A!==void 0?Object.defineProperty(e.prototype,"props",A):delete e.prototype.props)}}}else{try{throw Error()}catch(F){C=F}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(F){if(F&&C&&typeof F.stack=="string")return[F.stack,C.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 u=a.DetermineComponentFrameRoot(),o=u[0],m=u[1];if(o&&m){var S=o.split(`
`),R=m.split(`
`);for(i=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;i<R.length&&!R[i].includes("DetermineComponentFrameRoot");)i++;if(a===S.length||i===R.length)for(a=S.length-1,i=R.length-1;1<=a&&0<=i&&S[a]!==R[i];)i--;for(;1<=a&&0<=i;a--,i--)if(S[a]!==R[i]){if(a!==1||i!==1)do if(a--,i--,0>i||S[a]!==R[i]){var j=`
`+S[a].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=a&&0<=i);break}}}finally{uc=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?va(l):""}function Vp(e,t){switch(e.tag){case 26:case 27:case 5:return va(e.type);case 16:return va("Lazy");case 13:return e.child!==t&&t!==null?va("Suspense Fallback"):va("Suspense");case 19:return va("SuspenseList");case 0:case 15:return rc(e.type,!1);case 11:return rc(e.type.render,!1);case 1:return rc(e.type,!0);case 31:return va("Activity");case 30:return va("ViewTransition");default:return""}}function Zd(e){try{var t="",l=null;do t+=Vp(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var sc=Object.prototype.hasOwnProperty,cc=n.unstable_scheduleCallback,oc=n.unstable_cancelCallback,Xp=n.unstable_shouldYield,Kp=n.unstable_requestPaint,Gt=n.unstable_now,Zp=n.unstable_getCurrentPriorityLevel,Jd=n.unstable_ImmediatePriority,Fd=n.unstable_UserBlockingPriority,dr=n.unstable_NormalPriority,Jp=n.unstable_LowPriority,$d=n.unstable_IdlePriority,Fp=n.log,$p=n.unstable_setDisableYieldValue,eu=null,Yt=null;function ga(e){if(typeof Fp=="function"&&$p(e),Yt&&typeof Yt.setStrictMode=="function")try{Yt.setStrictMode(eu,e)}catch{}}var Vt=Math.clz32?Math.clz32:Ip,Wp=Math.log,Pp=Math.LN2;function Ip(e){return e>>>=0,e===0?32:31-(Wp(e)/Pp|0)|0}var hr=256,mr=262144,yr=4194304;function tn(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&-e;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 vr(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var i=0,u=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var m=a&134217727;return m!==0?(a=m&~u,a!==0?i=tn(a):(o&=m,o!==0?i=tn(o):l||(l=m&~e,l!==0&&(i=tn(l))))):(m=a&~u,m!==0?i=tn(m):o!==0?i=tn(o):l||(l=a&~e,l!==0&&(i=tn(l)))),i===0?0:t!==0&&t!==i&&(t&u)===0&&(u=i&-i,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:i}function tu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Wd(e,t){(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var a=31-Vt(l),i=1<<a;t|=e[a],l&=~i}return t}function e1(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 Pd(){var e=yr;return yr<<=1,(yr&62914560)===0&&(yr=4194304),e}function fc(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function lu(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function t1(e,t,l,a,i,u){var o=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,R=e.hiddenUpdates;for(l=o&~l;0<l;){var j=31-Vt(l),H=1<<j;m[j]=0,S[j]=-1;var C=R[j];if(C!==null)for(R[j]=null,j=0;j<C.length;j++){var A=C[j];A!==null&&(A.lane&=-536870913)}l&=~H}a!==0&&Id(e,a,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(o&~t))}function Id(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Vt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function eh(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Vt(l),i=1<<a;i&t|e[a]&t&&(e[a]|=t),l&=~i}}function th(e,t){var l=t&-t;return l=(l&42)!==0?1:dc(l),(l&(e.suspendedLanes|t))!==0?0:l}function dc(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 hc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function lh(){var e=ye.p;return e!==0?e:(e=window.event,e===void 0?32:c0(e.type))}function ah(e,t){var l=ye.p;try{return ye.p=e,t()}finally{ye.p=l}}var Zl=Math.random().toString(36).slice(2),vt="__reactFiber$"+Zl,Ut="__reactProps$"+Zl,Vn="__reactContainer$"+Zl,nh="__reactEvents$"+Zl,l1="__reactListeners$"+Zl,a1="__reactHandles$"+Zl,ih="__reactResources$"+Zl,au="__reactMarker$"+Zl,gr="__reactLoad$"+Zl;function pr(e){delete e[vt],delete e[Ut],delete e[l1],delete e[a1]}function ln(e){var t;if(t=e[vt])return t;for(var l=e.parentNode;l;){if(t=l[Vn]||l[vt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Yv(e);e!==null;){if(l=e[vt])return l;e=Yv(e)}return t}e=l,l=e.parentNode}return null}function Xn(e){if(e=e[vt]||e[Vn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function nu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function Kn(e){var t=e[ih];return t||(t=e[ih]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ft(e){e[au]=!0}function uh(e){e[gr]=void 0}var rh=new Set,sh={};function an(e,t){Zn(e,t),Zn(e+"Capture",t)}function Zn(e,t){for(sh[e]=t,e=0;e<t.length;e++)rh.add(t[e])}var n1=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]*$"),ch={},oh={};function i1(e){return sc.call(oh,e)?!0:sc.call(ch,e)?!1:n1.test(e)?oh[e]=!0:(ch[e]=!0,!1)}var De=!1;function fh(){var e=De;return De=!1,e}function br(e,t,l){if(i1(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 xr(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 Jl(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 Xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function u1(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,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){l=""+o,u.call(this,o)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mc(e){if(!e._valueTracker){var t=dh(e)?"checked":"value";e._valueTracker=u1(e,t,""+e[t])}}function hh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=dh(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}var r1=/[\n"\\]/g;function nl(e){return e.replace(r1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function yc(e,t,l,a,i,u,o,m){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Xt(t)):e.value!==""+Xt(t)&&(e.value=""+Xt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?o==="number"&&e.value==t?vc(e,Xt(e.value)):vc(e,Xt(t)):l!=null?vc(e,Xt(l)):a!=null&&e.removeAttribute("value"),i==null&&u!=null&&(e.defaultChecked=!!u),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+Xt(m):e.removeAttribute("name")}function mh(e,t,l,a,i,u,o,m){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){mc(e);return}l=l!=null?""+Xt(l):"",t=t!=null?""+Xt(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,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),mc(e)}function vc(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Jn(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=""+Xt(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 yh(e,t,l){if(t!=null&&(t=""+Xt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Xt(l):""}function vh(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(c(92));if(Ae(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Xt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),mc(e)}function Fn(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var s1=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 gh(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||s1.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ph(e,t,l){if(t!=null&&typeof t!="object")throw Error(c(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]="",De=!0);for(var i in t)a=t[i],t.hasOwnProperty(i)&&l[i]!==a&&(gh(e,i,a),De=!0)}else for(var u in t)t.hasOwnProperty(u)&&gh(e,u,t[u])}function gc(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 c1=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"],["maskType","mask-type"],["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"]]),o1=/^[\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 Sr(e){return o1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function wl(){}var pc=null;function bc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $n=null,Wn=null;function bh(e){var t=Xn(e);if(t&&(e=t.stateNode)){var l=e[Ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(yc(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="'+nl(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var i=a[Ut]||null;if(!i)throw Error(c(90));yc(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&&hh(a)}break e;case"textarea":yh(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Jn(e,!!l.multiple,t,!1)}}}var xc=!1;function xh(e,t,l){if(xc)return e(t,l);xc=!0;try{var a=e(t);return a}finally{if(xc=!1,($n!==null||Wn!==null)&&(Ss(),$n&&(t=$n,e=Wn,Wn=$n=null,bh(t),e)))for(t=0;t<e.length;t++)bh(e[t])}}function iu(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Ut]||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(c(231,t,typeof l));return l}var Fl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sc=!1;if(Fl)try{var uu={};Object.defineProperty(uu,"passive",{get:function(){Sc=!0}}),window.addEventListener("test",uu,uu),window.removeEventListener("test",uu,uu)}catch{Sc=!1}var pa=null,Ec=null,Er=null;function Sh(){if(Er)return Er;var e,t=Ec,l=t.length,a,i="value"in pa?pa.value:pa.textContent,u=i.length;for(e=0;e<l&&t[e]===i[e];e++);var o=l-e;for(a=1;a<=o&&t[l-a]===i[u-a];a++);return Er=i.slice(e,1<a?1-a:void 0)}function _r(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 Tr(){return!0}function Eh(){return!1}function Ct(e){function t(l,a,i,u,o){this._reactName=l,this._targetInst=i,this.type=a,this.nativeEvent=u,this.target=o,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(l=e[m],this[m]=l?l(u):u[m]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Tr:Eh,this.isPropagationStopped=Eh,this}return X(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=Tr)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Tr)},persist:function(){},isPersistent:Tr}),t}var ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nr=Ct(ba),ru=X({},ba,{view:0,detail:0}),f1=Ct(ru),_c,Tc,su,Cr=X({},ru,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cc,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!==su&&(su&&e.type==="mousemove"?(_c=e.screenX-su.screenX,Tc=e.screenY-su.screenY):Tc=_c=0,su=e),_c)},movementY:function(e){return"movementY"in e?e.movementY:Tc}}),_h=Ct(Cr),d1=X({},Cr,{dataTransfer:0}),h1=Ct(d1),m1=X({},ru,{relatedTarget:0}),Nc=Ct(m1),y1=X({},ba,{animationName:0,elapsedTime:0,pseudoElement:0}),v1=Ct(y1),g1=X({},ba,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),p1=Ct(g1),b1=X({},ba,{data:0}),Th=Ct(b1),x1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},S1={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"},E1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=E1[e])?!!t[e]:!1}function Cc(){return _1}var T1=X({},ru,{key:function(e){if(e.key){var t=x1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=_r(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?S1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cc,charCode:function(e){return e.type==="keypress"?_r(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?_r(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),N1=Ct(T1),C1=X({},Cr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nh=Ct(C1),z1=X({},ba,{submitter:0}),O1=Ct(z1),R1=X({},ru,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cc}),w1=Ct(R1),A1=X({},ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),j1=Ct(A1),M1=X({},Cr,{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}),D1=Ct(M1),U1=X({},ba,{newState:0,oldState:0,source:0}),k1=Ct(U1),H1=[9,13,27,32],zc=Fl&&"CompositionEvent"in window,cu=null;Fl&&"documentMode"in document&&(cu=document.documentMode);var q1=Fl&&"TextEvent"in window&&!cu,Ch=Fl&&(!zc||cu&&8<cu&&11>=cu),zh=" ",Oh=!1;function Rh(e,t){switch(e){case"keyup":return H1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pn=!1;function L1(e,t){switch(e){case"compositionend":return wh(t);case"keypress":return t.which!==32?null:(Oh=!0,zh);case"textInput":return e=t.data,e===zh&&Oh?null:e;default:return null}}function B1(e,t){if(Pn)return e==="compositionend"||!zc&&Rh(e,t)?(e=Sh(),Er=Ec=pa=null,Pn=!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 Ch&&t.locale!=="ko"?null:t.data;default:return null}}var Q1={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 Ah(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Q1[e.type]:t==="textarea"}function jh(e,t,l,a){$n?Wn?Wn.push(a):Wn=[a]:$n=a,t=zs(t,"onChange"),0<t.length&&(l=new Nr("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var ou=null,fu=null;function G1(e){bv(e,0)}function zr(e){var t=nu(e);if(hh(t))return e}function Mh(e,t){if(e==="change")return t}var Dh=!1;if(Fl){var Oc;if(Fl){var Rc="oninput"in document;if(!Rc){var Uh=document.createElement("div");Uh.setAttribute("oninput","return;"),Rc=typeof Uh.oninput=="function"}Oc=Rc}else Oc=!1;Dh=Oc&&(!document.documentMode||9<document.documentMode)}function kh(){ou&&(ou.detachEvent("onpropertychange",Hh),fu=ou=null)}function Hh(e){if(e.propertyName==="value"&&zr(fu)){var t=[];jh(t,fu,e,bc(e)),xh(G1,t)}}function Y1(e,t,l){e==="focusin"?(kh(),ou=t,fu=l,ou.attachEvent("onpropertychange",Hh)):e==="focusout"&&kh()}function V1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return zr(fu)}function X1(e,t){if(e==="click")return zr(t)}function K1(e,t){if(e==="input"||e==="change")return zr(t)}function Z1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kt=typeof Object.is=="function"?Object.is:Z1;function du(e,t){if(Kt(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(!sc.call(t,i)||!Kt(e[i],t[i]))return!1}return!0}function wc(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}}function qh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lh(e,t){var l=qh(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=qh(l)}}function Bh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=wc(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=wc(e.document)}return t}function Ac(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 J1=Fl&&"documentMode"in document&&11>=document.documentMode,In=null,jc=null,hu=null,Mc=!1;function Gh(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Mc||In==null||In!==wc(a)||(a=In,"selectionStart"in a&&Ac(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}),hu&&du(hu,a)||(hu=a,a=zs(jc,"onSelect"),0<a.length&&(t=new Nr("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=In)))}function nn(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ei={animationend:nn("Animation","AnimationEnd"),animationiteration:nn("Animation","AnimationIteration"),animationstart:nn("Animation","AnimationStart"),transitionrun:nn("Transition","TransitionRun"),transitionstart:nn("Transition","TransitionStart"),transitioncancel:nn("Transition","TransitionCancel"),transitionend:nn("Transition","TransitionEnd")},Dc={},Yh={};Fl&&(Yh=document.createElement("div").style,"AnimationEvent"in window||(delete ei.animationend.animation,delete ei.animationiteration.animation,delete ei.animationstart.animation),"TransitionEvent"in window||delete ei.transitionend.transition);function un(e){if(Dc[e])return Dc[e];if(!ei[e])return e;var t=ei[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Yh)return Dc[e]=t[l];return e}var Vh=un("animationend"),Xh=un("animationiteration"),Kh=un("animationstart"),F1=un("transitionrun"),$1=un("transitionstart"),W1=un("transitioncancel"),Zh=un("transitionend"),Jh=new Map,Uc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");Uc.push("scrollEnd");function vl(e,t){Jh.set(e,t),an(t,[e])}var P1=0;function $l(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=xl.identifierPrefix;var l=P1++;return e="_"+e+"t_"+l.toString(32)+"_",t.autoName=e}function Fh(e){if(e==null||typeof e=="string")return e;var t=null,l=xi;if(l!==null)for(var a=0;a<l.length;a++){var i=e[l[a]];if(i!=null){if(i==="none")return"none";t=t==null?i:t+(" "+i)}}return t??e.default}function Wl(e,t){return e=Fh(e),t=Fh(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Or=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)},il=[],ti=0,kc=0;function Rr(){for(var e=ti,t=kc=ti=0;t<e;){var l=il[t];il[t++]=null;var a=il[t];il[t++]=null;var i=il[t];il[t++]=null;var u=il[t];if(il[t++]=null,a!==null&&i!==null){var o=a.pending;o===null?i.next=i:(i.next=o.next,o.next=i),a.pending=i}u!==0&&$h(l,i,u)}}function wr(e,t,l,a){il[ti++]=e,il[ti++]=t,il[ti++]=l,il[ti++]=a,kc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Hc(e,t,l,a){return wr(e,t,l,a),Ar(e)}function rn(e,t){return wr(e,null,null,t),Ar(e)}function $h(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var i=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(i=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,i&&t!==null&&(i=31-Vt(l),e=u.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=l|536870912),u):null}function Ar(e){if(50<Uu)throw Uu=0,xs=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var li={};function I1(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 kt(e,t,l,a){return new I1(e,t,l,a)}function qc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pl(e,t){var l=e.alternate;return l===null?(l=kt(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&1206910976,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 Wh(e,t){e.flags&=1206910978;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 jr(e,t,l,a,i,u){var o=0;if(a=e,typeof a=="function")qc(a)&&(o=1);else if(typeof a=="string")o=z2(e,l,Rl.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case Dt:return e=kt(31,l,t,i),e.elementType=Dt,e.lanes=u,e;case P:return sn(l.children,i,u,t);case he:o=8,i|=24;break;case Je:return e=kt(12,l,t,i|2),e.elementType=Je,e.lanes=u,e;case $:return e=kt(13,l,t,i),e.elementType=$,e.lanes=u,e;case de:return e=kt(19,l,t,i),e.elementType=de,e.lanes=u,e;case al:case N:return e=i|32,e=kt(30,l,t,e),e.elementType=N,e.lanes=u,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case ee:o=10;break e;case D:o=9;break e;case V:o=11;break e;case Ue:o=14;break e;case J:o=16,a=null;break e}o=29,l=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=kt(o,l,t,i),t.elementType=e,t.type=a,t.lanes=u,t}function sn(e,t,l,a){return e=kt(7,e,a,t),e.lanes=l,e}function Lc(e,t,l){return e=kt(6,e,null,t),e.lanes=l,e}function Ph(e){var t=kt(18,null,null,0);return t.stateNode=e,t}function Bc(e,t,l){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ih=new WeakMap;function ul(e,t){if(typeof e=="object"&&e!==null){var l=Ih.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Zd(t)},Ih.set(e,t),t)}return{value:e,source:t,stack:Zd(t)}}var ai=[],ni=0,Mr=null,mu=0,rl=[],sl=0,xa=null,Al=1,jl="";function Il(e,t){ai[ni++]=mu,ai[ni++]=Mr,Mr=e,mu=t}function em(e,t,l){rl[sl++]=Al,rl[sl++]=jl,rl[sl++]=xa,xa=e;var a=Al;e=jl;var i=32-Vt(a)-1;a&=~(1<<i),l+=1;var u=32-Vt(t)+i;if(30<u){var o=i-i%5;u=(a&(1<<o)-1).toString(32),a>>=o,i-=o,Al=1<<32-Vt(t)+i|l<<i|a,jl=u+e}else Al=1<<u|l<<i|a,jl=e}function Dr(e){e.return!==null&&(Il(e,1),em(e,1,0))}function Qc(e){for(;e===Mr;)Mr=ai[--ni],ai[ni]=null,mu=ai[--ni],ai[ni]=null;for(;e===xa;)xa=rl[--sl],rl[sl]=null,jl=rl[--sl],rl[sl]=null,Al=rl[--sl],rl[sl]=null}function tm(e,t){rl[sl++]=Al,rl[sl++]=jl,rl[sl++]=xa,Al=t.id,jl=t.overflow,xa=e}var dt=null,Ke=null,_e=!1,Sa=null,cl=!1,Gc=Error(c(519));function Ea(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw yu(ul(t,e)),Gc}function lm(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[vt]=e,t[Ut]=a,l){case"dialog":Ce("cancel",t),Ce("close",t);break;case"iframe":case"object":case"embed":Ce("load",t);break;case"video":case"audio":for(l=0;l<Hu.length;l++)Ce(Hu[l],t);break;case"source":Ce("error",t);break;case"img":case"image":case"link":Ce("error",t),Ce("load",t);break;case"details":Ce("toggle",t);break;case"input":Ce("invalid",t),mh(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Ce("invalid",t);break;case"textarea":Ce("invalid",t),vh(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||_v(t.textContent,l)?(a.popover!=null&&(Ce("beforetoggle",t),Ce("toggle",t)),a.onScroll!=null&&Ce("scroll",t),a.onScrollEnd!=null&&Ce("scrollend",t),a.onClick!=null&&(t.onclick=wl),t=!0):t=!1,t||Ea(e,!0)}function Ur(e){for(dt=e.return;dt;)switch(dt.tag){case 5:case 31:case 13:cl=!1;return;case 27:case 3:cl=!0;return;default:dt=dt.return}}function ii(e){if(e!==dt)return!1;if(!_e)return Ur(e),_e=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||xf(e.type,e.memoizedProps)),l=!l),l&&Ke&&Ea(e),Ur(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ke=Gv(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Ke=Gv(e)}else t===27?(t=Ke,qa(e.type)?(e=Rf,Rf=null,Ke=e):Ke=t):Ke=dt?fl(e.stateNode.nextSibling):null;return!0}function cn(){Ke=dt=null,_e=!1}function Yc(){var e=Sa;return e!==null&&(Lt===null?Lt=e:Lt.push.apply(Lt,e),Sa=null),e}function yu(e){Sa===null?Sa=[e]:Sa.push(e)}var Vc=Ol(null),on=null,ea=null;function _a(e,t,l){Xe(Vc,t._currentValue),t._currentValue=l}function ta(e){e._currentValue=Vc.current,yt(Vc)}function kr(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 Xc(e,t,l,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){var o=i.child;u=u.firstContext;e:for(;u!==null;){var m=u;u=i;for(var S=0;S<t.length;S++)if(m.context===t[S]){u.lanes|=l,m=u.alternate,m!==null&&(m.lanes|=l),kr(u.return,l,e),a||(o=null);break e}u=m.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(c(341));o.lanes|=l,u=o.alternate,u!==null&&(u.lanes|=l),kr(o,l,e),o=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=l,o=i.alternate,o!==null&&(o.lanes|=l),kr(i.return,l,e),o=i.child,o=o!==null?o.sibling:null):o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function fn(e,t,l,a){e=null;for(var i=t,u=!1;i!==null;){if(!u){if((i.flags&524288)!==0)u=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var m=i.type;Kt(i.pendingProps.value,o.value)||(e!==null?e.push(m):e=[m])}}else if(i===cr.current){if(o=i.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(wi):e=[wi])}i=i.return}return e!==null&&Xc(t,e,l,a),t.flags|=262144,e!==null}function Hr(e){for(e=e.firstContext;e!==null;){if(!Kt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function dn(e){on=e,ea=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function gt(e){return am(on,e)}function qr(e,t){return on===null&&dn(e),am(e,t)}function am(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},ea===null){if(e===null)throw Error(c(308));ea=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ea=ea.next=t;return l}var eb=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()})}},tb=n.unstable_scheduleCallback,lb=n.unstable_NormalPriority,at={$$typeof:ee,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Kc(){return{controller:new eb,data:new Map,refCount:0}}function vu(e){e.refCount--,e.refCount===0&&tb(lb,function(){e.controller.abort()})}function nm(e,t){if((e.pendingLanes&4194048)!==0){var l=e.transitionTypes;for(l===null&&(l=e.transitionTypes=[]),e=0;e<t.length;e++){var a=t[e];l.indexOf(a)===-1&&l.push(a)}}}var gu=null;function ab(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var pu=null,Zc=0,hn=0,ui=null;function nb(e,t){if(pu===null){var l=pu=[];Zc=0,hn=ff(),ui={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Zc++,t.then(im,im),t}function im(){if(--Zc===0&&(gu=null,pu!==null)){ui!==null&&(ui.status="fulfilled");var e=pu;pu=null,hn=0,ui=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ib(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 um=ue.S;ue.S=function(e,t){if(Py=Gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&nb(e,t),gu!==null)for(var l=Ti;l!==null;)nm(l,gu),l=l.next;if(l=e.types,l!==null){for(var a=Ti;a!==null;)nm(a,l),a=a.next;if(hn!==0){a=gu,a===null&&(a=gu=[]);for(var i=0;i<l.length;i++){var u=l[i];a.indexOf(u)===-1&&a.push(u)}}}um!==null&&um(e,t)};var mn=Ol(null);function Jc(){var e=mn.current;return e!==null?e:Ve.pooledCache}function Lr(e,t){t===null?Xe(mn,mn.current):Xe(mn,t.pool)}function rm(){var e=Jc();return e===null?null:{parent:at._currentValue,pool:e}}var ri=Error(c(460)),Fc=Error(c(474)),Br=Error(c(542)),Qr={then:function(){}};function sm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function cm(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(wl,wl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fm(e),e===void 0&&!("reason"in t)?Error(c(600)):e;default:if(typeof t.status=="string")t.then(wl,wl);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(c(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,fm(e),e}throw vn=t,ri}}function yn(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(vn=l,ri):l}}var vn=null;function om(){if(vn===null)throw Error(c(459));var e=vn;return vn=null,e}function fm(e){if(e===ri||e===Br)throw Error(c(483))}var si=null,bu=0;function Gr(e){var t=bu;return bu+=1,si===null&&(si=[]),cm(si,e,t)}function Ta(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Yr(e,t){throw t.$$typeof===M?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function dm(e){function t(O,_){if(e){var w=O.deletions;w===null?(O.deletions=[_],O.flags|=16):w.push(_)}}function l(O,_){if(!e)return null;for(;_!==null;)t(O,_),_=_.sibling;return null}function a(O){for(var _=new Map;O!==null;)O.key===null?_.set(O.index,O):_.set(O.key,O),O=O.sibling;return _}function i(O,_){return O=Pl(O,_),O.index=0,O.sibling=null,O}function u(O,_,w){return O.index=w,e?(w=O.alternate,w!==null?(w=w.index,w<_?(O.flags|=2,_):w):(O.flags|=134217730,_)):(O.flags|=1048576,_)}function o(O){return e&&O.alternate===null&&(O.flags|=134217730),O}function m(O,_,w,k){return _===null||_.tag!==6?(_=Lc(w,O.mode,k),_.return=O,_):(_=i(_,w),_.return=O,_)}function S(O,_,w,k){var le=w.type;return le===P?(O=j(O,_,w.props.children,k,w.key),Ta(O,w),O):_!==null&&(_.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===J&&yn(le)===_.type)?(_=i(_,w.props),Ta(_,w),_.return=O,_):(_=jr(w.type,w.key,w.props,null,O.mode,k),Ta(_,w),_.return=O,_)}function R(O,_,w,k){return _===null||_.tag!==4||_.stateNode.containerInfo!==w.containerInfo||_.stateNode.implementation!==w.implementation?(_=Bc(w,O.mode,k),_.return=O,_):(_=i(_,w.children||[]),_.return=O,_)}function j(O,_,w,k,le){return _===null||_.tag!==7?(_=sn(w,O.mode,k,le),_.return=O,_):(_=i(_,w),_.return=O,_)}function H(O,_,w){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=Lc(""+_,O.mode,w),_.return=O,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case ae:return w=jr(_.type,_.key,_.props,null,O.mode,w),Ta(w,_),w.return=O,w;case ge:return _=Bc(_,O.mode,w),_.return=O,_;case J:return _=yn(_),H(O,_,w)}if(Ae(_)||se(_))return _=sn(_,O.mode,w,null),_.return=O,_;if(typeof _.then=="function")return H(O,Gr(_),w);if(_.$$typeof===ee)return H(O,qr(O,_),w);Yr(O,_)}return null}function C(O,_,w,k){var le=_!==null?_.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return le!==null?null:m(O,_,""+w,k);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ae:return w.key===le?S(O,_,w,k):null;case ge:return w.key===le?R(O,_,w,k):null;case J:return w=yn(w),C(O,_,w,k)}if(Ae(w)||se(w))return le!==null?null:j(O,_,w,k,null);if(typeof w.then=="function")return C(O,_,Gr(w),k);if(w.$$typeof===ee)return C(O,_,qr(O,w),k);Yr(O,w)}return null}function A(O,_,w,k,le){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return O=O.get(w)||null,m(_,O,""+k,le);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case ae:return O=O.get(k.key===null?w:k.key)||null,S(_,O,k,le);case ge:return O=O.get(k.key===null?w:k.key)||null,R(_,O,k,le);case J:return k=yn(k),A(O,_,w,k,le)}if(Ae(k)||se(k))return O=O.get(w)||null,j(_,O,k,le,null);if(typeof k.then=="function")return A(O,_,w,Gr(k),le);if(k.$$typeof===ee)return A(O,_,w,qr(_,k),le);Yr(_,k)}return null}function F(O,_,w,k){for(var le=null,Re=null,oe=_,ve=_=0,ut=null;oe!==null&&ve<w.length;ve++){oe.index>ve?(ut=oe,oe=null):ut=oe.sibling;var je=C(O,oe,w[ve],k);if(je===null){oe===null&&(oe=ut);break}e&&oe&&je.alternate===null&&t(O,oe),_=u(je,_,ve),Re===null?le=je:Re.sibling=je,Re=je,oe=ut}if(ve===w.length)return l(O,oe),_e&&Il(O,ve),le;if(oe===null){for(;ve<w.length;ve++)oe=H(O,w[ve],k),oe!==null&&(_=u(oe,_,ve),Re===null?le=oe:Re.sibling=oe,Re=oe);return _e&&Il(O,ve),le}for(oe=a(oe);ve<w.length;ve++)ut=A(oe,O,ve,w[ve],k),ut!==null&&(e&&(je=ut.alternate,je!==null&&oe.delete(je.key===null?ve:je.key)),_=u(ut,_,ve),Re===null?le=ut:Re.sibling=ut,Re=ut);return e&&oe.forEach(function(Ya){return t(O,Ya)}),_e&&Il(O,ve),le}function re(O,_,w,k){if(w==null)throw Error(c(151));for(var le=null,Re=null,oe=_,ve=_=0,ut=null,je=w.next();oe!==null&&!je.done;ve++,je=w.next()){oe.index>ve?(ut=oe,oe=null):ut=oe.sibling;var Ya=C(O,oe,je.value,k);if(Ya===null){oe===null&&(oe=ut);break}e&&oe&&Ya.alternate===null&&t(O,oe),_=u(Ya,_,ve),Re===null?le=Ya:Re.sibling=Ya,Re=Ya,oe=ut}if(je.done)return l(O,oe),_e&&Il(O,ve),le;if(oe===null){for(;!je.done;ve++,je=w.next())je=H(O,je.value,k),je!==null&&(_=u(je,_,ve),Re===null?le=je:Re.sibling=je,Re=je);return _e&&Il(O,ve),le}for(oe=a(oe);!je.done;ve++,je=w.next())je=A(oe,O,ve,je.value,k),je!==null&&(e&&(ut=je.alternate,ut!==null&&oe.delete(ut.key===null?ve:ut.key)),_=u(je,_,ve),Re===null?le=je:Re.sibling=je,Re=je);return e&&oe.forEach(function(L2){return t(O,L2)}),_e&&Il(O,ve),le}function Se(O,_,w,k){if(typeof w=="object"&&w!==null&&w.type===P&&w.key===null&&w.props.ref===void 0&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ae:e:{for(var le=w.key;_!==null;){if(_.key===le){if(le=w.type,le===P){if(_.tag===7){l(O,_.sibling),k=i(_,w.props.children),Ta(k,w),k.return=O,O=k;break e}}else if(_.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===J&&yn(le)===_.type){l(O,_.sibling),k=i(_,w.props),Ta(k,w),k.return=O,O=k;break e}l(O,_);break}else t(O,_);_=_.sibling}w.type===P?(k=sn(w.props.children,O.mode,k,w.key),Ta(k,w),k.return=O,O=k):(k=jr(w.type,w.key,w.props,null,O.mode,k),Ta(k,w),k.return=O,O=k)}return o(O);case ge:e:{for(le=w.key;_!==null;){if(_.key===le)if(_.tag===4&&_.stateNode.containerInfo===w.containerInfo&&_.stateNode.implementation===w.implementation){l(O,_.sibling),k=i(_,w.children||[]),k.return=O,O=k;break e}else{l(O,_);break}else t(O,_);_=_.sibling}k=Bc(w,O.mode,k),k.return=O,O=k}return o(O);case J:return w=yn(w),Se(O,_,w,k)}if(Ae(w))return F(O,_,w,k);if(se(w)){if(le=se(w),typeof le!="function")throw Error(c(150));return w=le.call(w),re(O,_,w,k)}if(typeof w.then=="function")return Se(O,_,Gr(w),k);if(w.$$typeof===ee)return Se(O,_,qr(O,w),k);Yr(O,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,_!==null&&_.tag===6?(l(O,_.sibling),k=i(_,w),k.return=O,O=k):(l(O,_),k=Lc(w,O.mode,k),k.return=O,O=k),o(O)):l(O,_)}return function(O,_,w,k){try{bu=0;var le=Se(O,_,w,k);return si=null,le}catch(oe){if(oe===ri||oe===Br)throw oe;var Re=kt(29,oe,null,O.mode);return Re.lanes=k,Re.return=O,Re}finally{}}}var gn=dm(!0),hm=dm(!1),Na=!1;function $c(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wc(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 Ca(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function za(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ke&2)!==0){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=Ar(e),$h(e,null,l),t}return wr(e,a,t,l),Ar(e)}function xu(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,eh(e,l)}}function Pc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var i=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?i=u=o:u=u.next=o,l=l.next}while(l!==null);u===null?i=u=t:u=u.next=t}else i=u=t;l={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:u,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 Ic=!1;function Su(){if(Ic){var e=ui;if(e!==null)throw e}}function Eu(e,t,l,a){Ic=!1;var i=e.updateQueue;Na=!1;var u=i.firstBaseUpdate,o=i.lastBaseUpdate,m=i.shared.pending;if(m!==null){i.shared.pending=null;var S=m,R=S.next;S.next=null,o===null?u=R:o.next=R,o=S;var j=e.alternate;j!==null&&(j=j.updateQueue,m=j.lastBaseUpdate,m!==o&&(m===null?j.firstBaseUpdate=R:m.next=R,j.lastBaseUpdate=S))}if(u!==null){var H=i.baseState;o=0,j=R=S=null,m=u;do{var C=m.lane&-536870913,A=C!==m.lane;if(A?(Oe&C)===C:(a&C)===C){C!==0&&C===hn&&(Ic=!0),j!==null&&(j=j.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var F=e,re=m;C=t;var Se=l;switch(re.tag){case 1:if(F=re.payload,typeof F=="function"){H=F.call(Se,H,C);break e}H=F;break e;case 3:F.flags=F.flags&-65537|128;case 0:if(F=re.payload,C=typeof F=="function"?F.call(Se,H,C):F,C==null)break e;H=X({},H,C);break e;case 2:Na=!0}}C=m.callback,C!==null&&(e.flags|=64,A&&(e.flags|=8192),A=i.callbacks,A===null?i.callbacks=[C]:A.push(C))}else A={lane:C,tag:m.tag,payload:m.payload,callback:m.callback,next:null},j===null?(R=j=A,S=H):j=j.next=A,o|=C;if(m=m.next,m===null){if(m=i.shared.pending,m===null)break;A=m,m=A.next,A.next=null,i.lastBaseUpdate=A,i.shared.pending=null}}while(!0);j===null&&(S=H),i.baseState=S,i.firstBaseUpdate=R,i.lastBaseUpdate=j,u===null&&(i.shared.lanes=0),Da|=o,e.lanes=o,e.memoizedState=H}}function mm(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function ym(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)mm(l[e],t)}var Oa=Ol(null),Vr=Ol(0);function vm(e,t){e=ua,Xe(Vr,e),Xe(Oa,t),ua=e|t.baseLanes}function eo(){Xe(Vr,ua),Xe(Oa,Oa.current)}function to(){ua=Vr.current,yt(Oa),yt(Vr)}var pt=Ol(null),_t=null;function Ra(e){var t=e.alternate;Xe(bt,bt.current&1),Xe(pt,e),_t===null&&(t===null||Oa.current!==null||t.memoizedState!==null)&&(_t=e)}function lo(e){Xe(bt,bt.current),Xe(pt,e),_t===null&&(_t=e)}function gm(e){e.tag===22?(Xe(bt,bt.current),Xe(pt,e),_t===null&&(_t=e)):wa()}function wa(){Xe(bt,bt.current),Xe(pt,pt.current)}function Zt(e){yt(pt),_t===e&&(_t=null),yt(bt)}var bt=Ol(0);function _u(e,t){Xe(pt,pt.current),Xe(bt,t)}function ao(e){yt(bt),yt(pt),_t===e&&(_t=null)}function Xr(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||zf(l)||Of(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){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 la=0,xe=null,Ge=null,nt=null,Kr=!1,ci=!1,pn=!1,Zr=0,Tu=0,oi=null,ub=0;function et(){throw Error(c(321))}function no(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Kt(e[l],t[l]))return!1;return!0}function io(e,t,l,a,i,u){return la=u,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ue.H=e===null||e.memoizedState===null?ey:ty,pn=!1,u=l(a,i),pn=!1,ci&&(u=bm(t,l,a,i)),pm(e),u}function pm(e){ue.H=es;var t=Ge!==null&&Ge.next!==null;if(la=0,nt=Ge=xe=null,Kr=!1,Tu=0,oi=null,t)throw Error(c(300));e===null||it||(e=e.dependencies,e!==null&&Hr(e)&&(it=!0))}function bm(e,t,l,a){xe=e;var i=0;do{if(ci&&(oi=null),Tu=0,ci=!1,25<=i)throw Error(c(301));if(i+=1,nt=Ge=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}ue.H=mb,u=t(l,a)}while(ci);return u}function rb(){var e=ue.H,t=e.useState()[0];return t=typeof t.then=="function"?Nu(t):t,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(xe.flags|=1024),t}function uo(){var e=Zr!==0;return Zr=0,e}function ro(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function so(e){if(Kr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Kr=!1}la=0,nt=Ge=xe=null,ci=!1,Tu=Zr=0,oi=null}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?xe.memoizedState=nt=e:nt=nt.next=e,nt}function lt(){if(Ge===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var t=nt===null?xe.memoizedState:nt.next;if(t!==null)nt=t,Ge=e;else{if(e===null)throw xe.alternate===null?Error(c(467)):Error(c(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},nt===null?xe.memoizedState=nt=e:nt=nt.next=e}return nt}function Jr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Nu(e){var t=Tu;return Tu+=1,oi===null&&(oi=[]),e=cm(oi,e,t),t=xe,(nt===null?t.memoizedState:nt.next)===null&&(t=t.alternate,ue.H=t===null||t.memoizedState===null?ey:ty),e}function Fr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Nu(e);if(e.$$typeof===B)return;if(e.$$typeof===ee)return gt(e)}throw Error(c(438,String(e)))}function co(e){var t=null,l=xe.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=xe.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=Jr(),xe.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]=zl;return t.index++,l}function aa(e,t){return typeof t=="function"?t(e):t}function $r(e){var t=lt();return oo(t,Ge,e)}function oo(e,t,l){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var i=e.baseQueue,u=a.pending;if(u!==null){if(i!==null){var o=i.next;i.next=u.next,u.next=o}t.baseQueue=i=u,a.pending=null}if(u=e.baseState,i===null)e.memoizedState=u;else{t=i.next;var m=o=null,S=null,R=t,j=!1;do{var H=R.lane&-536870913;if(H!==R.lane?(Oe&H)===H:(la&H)===H){var C=R.revertLane;if(C===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),H===hn&&(j=!0);else if((la&C)===C){R=R.next,C===hn&&(j=!0);continue}else H={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},S===null?(m=S=H,o=u):S=S.next=H,xe.lanes|=C,Da|=C;H=R.action,pn&&l(u,H),u=R.hasEagerState?R.eagerState:l(u,H)}else C={lane:H,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},S===null?(m=S=C,o=u):S=S.next=C,xe.lanes|=H,Da|=H;R=R.next}while(R!==null&&R!==t);if(S===null?o=u:S.next=m,!Kt(u,e.memoizedState)&&(it=!0,j&&(l=ui,l!==null)))throw l;e.memoizedState=u,e.baseState=o,e.baseQueue=S,a.lastRenderedState=u}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function fo(e){var t=lt(),l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=e;var a=l.dispatch,i=l.pending,u=t.memoizedState;if(i!==null){l.pending=null;var o=i=i.next;do u=e(u,o.action),o=o.next;while(o!==i);Kt(u,t.memoizedState)||(it=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function xm(e,t,l){var a=xe,i=lt(),u=_e;if(u){if(l===void 0)throw Error(c(407));l=l()}else l=t();var o=!Kt((Ge||i).memoizedState,l);if(o&&(i.memoizedState=l,it=!0),i=i.queue,yo(_m.bind(null,a,i,e),[e]),e=i.getSnapshot!==t||o||nt!==null&&(nt.memoizedState.tag&1)!==0,fi(e?9:8,{destroy:void 0},Em.bind(null,a,i,l,t),null),e){if(a.flags|=2048,Ve===null)throw Error(c(349));u||(la&127)!==0||Sm(a,t,l)}return l}function Sm(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=xe.updateQueue,t===null?(t=Jr(),xe.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Em(e,t,l,a){t.value=l,t.getSnapshot=a,Tm(t)&&Nm(e)}function _m(e,t,l){return l(function(){Tm(t)&&Nm(e)})}function Tm(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Kt(e,l)}catch{return!0}}function Nm(e){var t=rn(e,2);t!==null&&Bt(t,e,2)}function ho(e){var t=zt();if(typeof e=="function"){var l=e;if(e=l(),pn){ga(!0);try{l()}finally{ga(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e},t}function Cm(e,t,l,a){return e.baseState=l,oo(e,Ge,typeof a=="function"?a:aa)}function sb(e,t,l,a,i){if(Ir(e))throw Error(c(485));if(e=t.action,e!==null){var u={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){u.listeners.push(o)}};ue.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,zm(t,u)):(u.next=l.next,t.pending=l.next=u)}}function zm(e,t){var l=t.action,a=t.payload,i=e.state;if(t.isTransition){var u=ue.T,o={};o.types=u!==null?u.types:null,ue.T=o;try{var m=l(i,a),S=ue.S;S!==null&&S(o,m),Om(e,t,m)}catch(R){mo(e,t,R)}finally{u!==null&&o.types!==null&&(u.types=o.types),ue.T=u}}else try{u=l(i,a),Om(e,t,u)}catch(R){mo(e,t,R)}}function Om(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Rm(e,t,a)},function(a){return mo(e,t,a)}):Rm(e,t,l)}function Rm(e,t,l){t.status="fulfilled",t.value=l,wm(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,zm(e,l)))}function mo(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,wm(t),t=t.next;while(t!==a)}e.action=null}function wm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Am(e,t){return t}function jm(e,t){if(_e){var l=Ve.formState;if(l!==null){e:{var a=xe;if(_e){if(Ke){t:{for(var i=Ke,u=cl;i.nodeType!==8;){if(!u){i=null;break t}if(i=fl(i.nextSibling),i===null){i=null;break t}}u=i.data,i=u==="F!"||u==="F"?i:null}if(i){Ke=fl(i.nextSibling),a=i.data==="F!";break e}}Ea(a)}a=!1}a&&(t=l[0])}}return l=zt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Am,lastRenderedState:t},l.queue=a,l=Wm.bind(null,xe,a),a.dispatch=l,a=ho(!1),u=xo.bind(null,xe,!1,a.queue),a=zt(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,l=sb.bind(null,xe,i,u,l),i.dispatch=l,a.memoizedState=e,[t,l,!1]}function Mm(e){var t=lt();return Dm(t,Ge,e)}function Dm(e,t,l){if(t=oo(e,t,Am)[0],e=$r(aa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Nu(t)}catch(o){throw o===ri?Br:o}else a=t;t=lt();var i=t.queue,u=i.dispatch;return l!==t.memoizedState&&(xe.flags|=2048,fi(9,{destroy:void 0},cb.bind(null,i,l),null)),[a,u,e]}function cb(e,t){e.action=t}function Um(e){var t=lt(),l=Ge;if(l!==null)return Dm(t,l,e);lt(),t=t.memoizedState,l=lt();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function fi(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=xe.updateQueue,t===null&&(t=Jr(),xe.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 km(){return lt().memoizedState}function Wr(e,t,l,a){var i=zt();xe.flags|=e,i.memoizedState=fi(1|t,{destroy:void 0},l,a===void 0?null:a)}function Pr(e,t,l,a){var i=lt();a=a===void 0?null:a;var u=i.memoizedState.inst;Ge!==null&&a!==null&&no(a,Ge.memoizedState.deps)?i.memoizedState=fi(t,u,l,a):(xe.flags|=e,i.memoizedState=fi(1|t,u,l,a))}function Hm(e,t){Wr(8390656,8,e,t)}function yo(e,t){Pr(2048,8,e,t)}function ob(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=Jr(),xe.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function qm(e){var t=lt().memoizedState;return ob({ref:t,nextImpl:e}),function(){if((ke&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Lm(e,t){return Pr(4,2,e,t)}function Bm(e,t){return Pr(4,4,e,t)}function Qm(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 Gm(e,t,l){l=l!=null?l.concat([e]):null,Pr(4,4,Qm.bind(null,t,e),l)}function vo(){}function Ym(e,t){var l=lt();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&no(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Vm(e,t){var l=lt();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&no(t,a[1]))return a[0];if(a=e(),pn){ga(!0);try{e()}finally{ga(!1)}}return l.memoizedState=[a,t],a}function go(e,t,l){return l===void 0||(la&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=ev(),xe.lanes|=e,Da|=e,l)}function Xm(e,t,l,a){return Kt(l,t)?l:Oa.current!==null?(e=go(e,l,a),Kt(e,t)||(it=!0),e):(la&106)===0||(la&1073741824)!==0&&(Oe&261930)===0?(it=!0,e.memoizedState=l):(e=ev(),xe.lanes|=e,Da|=e,t)}function Km(e,t,l,a,i){var u=ye.p;ye.p=u!==0&&8>u?u:8;var o=ue.T,m={};m.types=o!==null?o.types:null,ue.T=m,xo(e,!1,t,l);try{var S=i(),R=ue.S;if(R!==null&&R(m,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var j=ib(S,a);Cu(e,t,j,Wt(e))}else Cu(e,t,a,Wt(e))}catch(H){Cu(e,t,{then:function(){},status:"rejected",reason:H},Wt())}finally{ye.p=u,o!==null&&m.types!==null&&(o.types=m.types),ue.T=o}}function fb(){}function po(e,t,l,a){if(e.tag!==5)throw Error(c(476));var i=Zm(e).queue;Km(e,i,t,Qt,l===null?fb:function(){return Jm(e),l(a)})}function Zm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Qt,baseState:Qt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:Qt},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Jm(e){var t=Zm(e);t.next===null&&(t=e.alternate.memoizedState),Cu(e,t.next.queue,{},Wt())}function bo(){return gt(wi)}function Fm(){return lt().memoizedState}function $m(){return lt().memoizedState}function db(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Wt();e=Ca(l);var a=za(t,e,l);a!==null&&(Bt(a,t,l),xu(a,t,l)),t={cache:Kc()},e.payload=t;return}t=t.return}}function hb(e,t,l){var a=Wt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ir(e)?Pm(t,l):(l=Hc(e,t,l,a),l!==null&&(Bt(l,e,a),Im(l,t,a)))}function Wm(e,t,l){var a=Wt();Cu(e,t,l,a)}function Cu(e,t,l,a){var i={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ir(e))Pm(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var o=t.lastRenderedState,m=u(o,l);if(i.hasEagerState=!0,i.eagerState=m,Kt(m,o))return wr(e,t,i,0),Ve===null&&Rr(),!1}catch{}finally{}if(l=Hc(e,t,i,a),l!==null)return Bt(l,e,a),Im(l,t,a),!0}return!1}function xo(e,t,l,a){if(a={lane:2,revertLane:ff(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ir(e)){if(t)throw Error(c(479))}else t=Hc(e,l,a,2),t!==null&&Bt(t,e,2)}function Ir(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function Pm(e,t){ci=Kr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Im(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,eh(e,l)}}var es={readContext:gt,use:Fr,useCallback:et,useContext:et,useEffect:et,useImperativeHandle:et,useLayoutEffect:et,useInsertionEffect:et,useMemo:et,useReducer:et,useRef:et,useState:et,useDebugValue:et,useDeferredValue:et,useTransition:et,useSyncExternalStore:et,useId:et,useHostTransitionStatus:et,useFormState:et,useActionState:et,useOptimistic:et,useMemoCache:et,useCacheRefresh:et,useEffectEvent:et},ey={readContext:gt,use:Fr,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:Hm,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Wr(4194308,4,Qm.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Wr(4194308,4,e,t)},useInsertionEffect:function(e,t){Wr(4,2,e,t)},useMemo:function(e,t){var l=zt();t=t===void 0?null:t;var a=e();if(pn){ga(!0);try{e()}finally{ga(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=zt();if(l!==void 0){var i=l(t);if(pn){ga(!0);try{l(t)}finally{ga(!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=hb.bind(null,xe,e),[a.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:function(e){e=ho(e);var t=e.queue,l=Wm.bind(null,xe,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:vo,useDeferredValue:function(e,t){var l=zt();return go(l,e,t)},useTransition:function(){var e=ho(!1);return e=Km.bind(null,xe,e.queue,!0,!1),zt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=xe,i=zt();if(_e){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),Ve===null)throw Error(c(349));(Oe&127)!==0||Sm(a,t,l)}i.memoizedState=l;var u={value:l,getSnapshot:t};return i.queue=u,Hm(_m.bind(null,a,u,e),[e]),a.flags|=2048,fi(9,{destroy:void 0},Em.bind(null,a,u,l,t),null),l},useId:function(){var e=zt(),t=Ve.identifierPrefix;if(_e){var l=jl,a=Al;l=(a&~(1<<32-Vt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Zr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=ub++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:bo,useFormState:jm,useActionState:jm,useOptimistic:function(e){var t=zt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=xo.bind(null,xe,!0,l),l.dispatch=t,[e,t]},useMemoCache:co,useCacheRefresh:function(){return zt().memoizedState=db.bind(null,xe)},useEffectEvent:function(e){var t=zt(),l={impl:e};return t.memoizedState=l,function(){if((ke&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},ty={readContext:gt,use:Fr,useCallback:Ym,useContext:gt,useEffect:yo,useImperativeHandle:Gm,useInsertionEffect:Lm,useLayoutEffect:Bm,useMemo:Vm,useReducer:$r,useRef:km,useState:function(){return $r(aa)},useDebugValue:vo,useDeferredValue:function(e,t){var l=lt();return Xm(l,Ge.memoizedState,e,t)},useTransition:function(){var e=$r(aa)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:Nu(e),t]},useSyncExternalStore:xm,useId:Fm,useHostTransitionStatus:bo,useFormState:Mm,useActionState:Mm,useOptimistic:function(e,t){var l=lt();return Cm(l,Ge,e,t)},useMemoCache:co,useCacheRefresh:$m,useEffectEvent:qm},mb={readContext:gt,use:Fr,useCallback:Ym,useContext:gt,useEffect:yo,useImperativeHandle:Gm,useInsertionEffect:Lm,useLayoutEffect:Bm,useMemo:Vm,useReducer:fo,useRef:km,useState:function(){return fo(aa)},useDebugValue:vo,useDeferredValue:function(e,t){var l=lt();return Ge===null?go(l,e,t):Xm(l,Ge.memoizedState,e,t)},useTransition:function(){var e=fo(aa)[0],t=lt().memoizedState;return[typeof e=="boolean"?e:Nu(e),t]},useSyncExternalStore:xm,useId:Fm,useHostTransitionStatus:bo,useFormState:Um,useActionState:Um,useOptimistic:function(e,t){var l=lt();return Ge!==null?Cm(l,Ge,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:co,useCacheRefresh:$m,useEffectEvent:qm};function So(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:X({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Eo={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Wt(),i=Ca(a);i.payload=t,l!=null&&(i.callback=l),t=za(e,i,a),t!==null&&(Bt(t,e,a),xu(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Wt(),i=Ca(a);i.tag=1,i.payload=t,l!=null&&(i.callback=l),t=za(e,i,a),t!==null&&(Bt(t,e,a),xu(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Wt(),a=Ca(l);a.tag=2,t!=null&&(a.callback=t),t=za(e,a,l),t!==null&&(Bt(t,e,l),xu(t,e,l))}};function ly(e,t,l,a,i,u,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,o):t.prototype&&t.prototype.isPureReactComponent?!du(l,a)||!du(i,u):!0}function ay(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&&Eo.enqueueReplaceState(t,t.state,null)}function bn(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=X({},l));for(var i in e)l[i]===void 0&&(l[i]=e[i])}return l}function ny(e){Or(e)}function iy(e){console.error(e)}function uy(e){Or(e)}function ts(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ry(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 _o(e,t,l){return l=Ca(l),l.tag=3,l.payload={element:null},l.callback=function(){ts(e,t)},l}function sy(e){return e=Ca(e),e.tag=3,e}function cy(e,t,l,a){var i=l.type.getDerivedStateFromError;if(typeof i=="function"){var u=a.value;e.payload=function(){return i(u)},e.callback=function(){ry(t,l,a)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){ry(t,l,a),typeof i!="function"&&(Ua===null?Ua=new Set([this]):Ua.add(this));var m=a.stack;this.componentDidCatch(a.value,{componentStack:m!==null?m:""})})}function yb(e,t,l,a,i){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&fn(t,l,i,!0),l=pt.current,l!==null){switch(l.tag){case 31:case 13:case 19:return _t===null?Es():l.alternate===null&&tt===0&&(tt=3),l.flags&=-257,l.flags|=65536,l.lanes=i,a===Qr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),sf(e,a,i)),!1;case 22:return l.flags|=65536,a===Qr?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)),sf(e,a,i)),!1}throw Error(c(435,l.tag))}return sf(e,a,i),Es(),!1}if(_e)return t=pt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==Gc&&(e=Error(c(422),{cause:a}),yu(ul(e,l)))):(a!==Gc&&(t=Error(c(423),{cause:a}),yu(ul(t,l))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=ul(a,l),i=_o(e.stateNode,a,i),Pc(e,i),tt!==4&&(tt=2)),!1;var u=Error(c(520),{cause:a});if(u=ul(u,l),Du===null?Du=[u]:Du.push(u),tt!==4&&(tt=2),t===null)return!0;a=ul(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=i&-i,l.lanes|=e,e=_o(l.stateNode,a,e),Pc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Ua===null||!Ua.has(u))))return l.flags|=65536,i&=-i,l.lanes|=i,i=sy(i),cy(i,e,l,a),Pc(l,i),!1;break;case 22:if(l.memoizedState!==null)return l.flags|=65536,!1}l=l.return}while(l!==null);return!1}var To=Error(c(461)),it=!1;function rt(e,t,l,a){t.child=e===null?hm(t,null,l,a):gn(t,e.child,l,a)}function oy(e,t,l,a,i){l=l.render;var u=t.ref;if("ref"in a){var o={};for(var m in a)m!=="ref"&&(o[m]=a[m])}else o=a;return dn(t),a=io(e,t,l,o,u,i),m=uo(),e!==null&&!it?(ro(e,t,i),na(e,t,i)):(_e&&m&&Dr(t),t.flags|=1,rt(e,t,a,i),t.child)}function fy(e,t,l,a,i){if(e===null){var u=l.type;return typeof u=="function"&&!qc(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,dy(e,t,u,a,i)):(e=jr(l.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!jo(e,i)){var o=u.memoizedProps;if(l=l.compare,l=l!==null?l:du,l(o,a)&&e.ref===t.ref)return na(e,t,i)}return t.flags|=1,e=Pl(u,a),e.ref=t.ref,e.return=t,t.child=e}function dy(e,t,l,a,i){if(e!==null){var u=e.memoizedProps;if(du(u,a)&&e.ref===t.ref)if(it=!1,t.pendingProps=a=u,jo(e,i))(e.flags&131072)!==0&&(it=!0);else return t.lanes=e.lanes,na(e,t,i)}return No(e,t,l,a,i)}function hy(e,t,l,a){var i=a.children,u=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(u=u!==null?u.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&~u}else a=0,t.child=null;return my(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Lr(t,u!==null?u.cachePool:null),u!==null?vm(t,u):eo(),gm(t);else return a=t.lanes=536870912,my(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(Lr(t,u.cachePool),vm(t,u),wa(),t.memoizedState=null):(e!==null&&Lr(t,null),eo(),wa());return rt(e,t,i,l),t.child}function zu(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function my(e,t,l,a,i){var u=Jc();return u=u===null?null:{parent:at._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&Lr(t,null),eo(),gm(t),e!==null&&fn(e,t,a,!0),t.childLanes=i,null}function ls(e,t){return t=as({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yy(e,t,l){return gn(t,e.child,null,l),e=ls(t,t.pendingProps),e.flags|=2,Zt(t),t.memoizedState=null,e}function vb(e,t,l){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(_e){if(a.mode==="hidden")return e=ls(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},zu(null,e);if(lo(t),(e=Ke)?(e=Qv(e,cl),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xa!==null?{id:Al,overflow:jl}:null,retryLane:536870912,hydrationErrors:null},l=Ph(e),l.return=t,t.child=l,dt=t,Ke=null)):e=null,e===null)throw Ea(t);return t.lanes=536870912,null}return ls(t,a)}var u=e.memoizedState;if(u!==null){var o=u.dehydrated;if(lo(t),i)if(t.flags&256)t.flags&=-257,t=yy(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(it||fn(e,t,l,!1),i=(l&e.childLanes)!==0,it||i){if(Oa.current===null){if(a=Ve,a!==null&&(o=th(a,l),o!==0&&o!==u.retryLane))throw u.retryLane=o,rn(e,o),Bt(a,e,o),To;Es()}t=yy(e,t,l)}else e=u.treeContext,Ke=fl(o.nextSibling),dt=t,_e=!0,Sa=null,cl=!1,e!==null&&tm(t,e),t=ls(t,a),t.flags|=134221824;return t}return e=Pl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function di(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(c(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function No(e,t,l,a,i){return dn(t),l=io(e,t,l,a,void 0,i),a=uo(),e!==null&&!it?(ro(e,t,i),na(e,t,i)):(_e&&a&&Dr(t),t.flags|=1,rt(e,t,l,i),t.child)}function vy(e,t,l,a,i,u){return dn(t),t.updateQueue=null,l=bm(t,a,l,i),pm(e),a=uo(),e!==null&&!it?(ro(e,t,u),na(e,t,u)):(_e&&a&&Dr(t),t.flags|=1,rt(e,t,l,u),t.child)}function gy(e,t,l,a,i){if(dn(t),t.stateNode===null){var u=li,o=l.contextType;typeof o=="object"&&o!==null&&(u=gt(o)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Eo,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},$c(t),o=l.contextType,u.context=typeof o=="object"&&o!==null?gt(o):li,u.state=t.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(So(t,l,o,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(o=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),o!==u.state&&Eo.enqueueReplaceState(u,u.state,null),Eu(t,a,u,i),Su(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var m=t.memoizedProps,S=bn(l,m);u.props=S;var R=u.context,j=l.contextType;o=li,typeof j=="object"&&j!==null&&(o=gt(j));var H=l.getDerivedStateFromProps;j=typeof H=="function"||typeof u.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,j||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(m||R!==o)&&ay(t,u,a,o),Na=!1;var C=t.memoizedState;u.state=C,Eu(t,a,u,i),Su(),R=t.memoizedState,m||C!==R||Na?(typeof H=="function"&&(So(t,l,H,a),R=t.memoizedState),(S=Na||ly(t,l,S,a,C,R,o))?(j||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=R),u.props=a,u.state=R,u.context=o,a=S):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Wc(e,t),o=t.memoizedProps,j=bn(l,o),u.props=j,H=t.pendingProps,C=u.context,R=l.contextType,S=li,typeof R=="object"&&R!==null&&(S=gt(R)),m=l.getDerivedStateFromProps,(R=typeof m=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o!==H||C!==S)&&ay(t,u,a,S),Na=!1,C=t.memoizedState,u.state=C,Eu(t,a,u,i),Su();var A=t.memoizedState;o!==H||C!==A||Na||e!==null&&e.dependencies!==null&&Hr(e.dependencies)?(typeof m=="function"&&(So(t,l,m,a),A=t.memoizedState),(j=Na||ly(t,l,j,a,C,A,S)||e!==null&&e.dependencies!==null&&Hr(e.dependencies))?(R||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,A,S),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,A,S)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=A),u.props=a,u.state=A,u.context=S,a=j):(typeof u.componentDidUpdate!="function"||o===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,di(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=gn(t,e.child,null,i),t.child=gn(t,null,l,i)):rt(e,t,l,i),t.memoizedState=u.state,e=t.child):e=na(e,t,i),e}function py(e,t,l,a){return cn(),t.flags|=256,rt(e,t,l,a),t.child}var Co={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function zo(e){return{baseLanes:e,cachePool:rm()}}function Oo(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=$t),e}function by(e,t,l){var a=t.pendingProps,i=!1,u=(t.flags&128)!==0,o;if((o=u)||(o=e!==null&&e.memoizedState===null?!1:(bt.current&2)!==0),o&&(i=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(_e){if(i?Ra(t):wa(),(e=Ke)?(e=Qv(e,cl),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xa!==null?{id:Al,overflow:jl}:null,retryLane:536870912,hydrationErrors:null},l=Ph(e),l.return=t,t.child=l,dt=t,Ke=null)):e=null,e===null)throw Ea(t);return Of(e)?t.lanes=32:t.lanes=536870912,null}return u=a.children,a=a.fallback,i?(wa(),i=t.mode,u=as({mode:"hidden",children:u},i),a=sn(a,i,l,null),u.return=t,a.return=t,u.sibling=a,t.child=u,a=t.child,a.memoizedState=zo(l),a.childLanes=Oo(e,o,l),t.memoizedState=Co,zu(null,a)):(Ra(t),Ro(t,u))}var m=e.memoizedState;if(m!==null){var S=m.dehydrated;if(S!==null)return gb(e,t,u,o,a,S,m,l)}return i?(wa(),i=a.fallback,u=t.mode,m=e.child,S=m.sibling,a=Pl(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&1206910976,S!==null?i=Pl(S,i):(i=sn(i,u,l,null),i.flags|=2),i.return=t,a.return=t,a.sibling=i,t.child=a,zu(null,a),a=t.child,i=e.child.memoizedState,i===null?i=zo(l):(u=i.cachePool,u!==null?(m=at._currentValue,u=u.parent!==m?{parent:m,pool:m}:u):u=rm(),i={baseLanes:i.baseLanes|l,cachePool:u}),a.memoizedState=i,a.childLanes=Oo(e,o,l),t.memoizedState=Co,zu(e.child,a)):(Ra(t),l=e.child,e=l.sibling,l=Pl(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=l,t.memoizedState=null,l)}function Ro(e,t){return t=as({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function as(e,t){return e=kt(22,e,null,t),e.lanes=0,e}function ns(e,t,l){return gn(t,e.child,null,l),e=Ro(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function gb(e,t,l,a,i,u,o,m){if(l)return t.flags&256?(Ra(t),t.flags&=-257,ns(e,t,m)):t.memoizedState!==null?(wa(),t.child=e.child,t.flags|=128,null):(wa(),u=i.fallback,o=t.mode,i=as({mode:"visible",children:i.children},o),u=sn(u,o,m,null),u.flags|=2,i.return=t,u.return=t,i.sibling=u,t.child=i,gn(t,e.child,null,m),i=t.child,i.memoizedState=zo(m),i.childLanes=Oo(e,a,m),t.memoizedState=Co,zu(null,i));if(Ra(t),Of(u)){if(a=u.nextSibling&&u.nextSibling.dataset,a)var S=a.dgst;return a=S,a!==""&&(i=Error(c(419)),i.stack="",i.digest=a,yu({value:i,source:null,stack:null})),ns(e,t,m)}if(it||fn(e,t,m,!1),a=(m&e.childLanes)!==0,it||a){if(Oa.current!==null)return ns(e,t,m);if(a=Ve,a!==null&&(i=th(a,m),i!==0&&i!==o.retryLane))throw o.retryLane=i,rn(e,i),Bt(a,e,i),To;return zf(u)||Es(),ns(e,t,m)}return zf(u)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,Ke=fl(u.nextSibling),dt=t,_e=!0,Sa=null,cl=!1,e!==null&&tm(t,e),t=Ro(t,i.children),t.flags|=134221824,t)}function xy(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),kr(e.return,t,l)}function Sy(e){for(var t=null;e!==null;){var l=e.alternate;l!==null&&Xr(l)===null&&(t=e),e=e.sibling}return t}function is(e,t,l,a,i,u){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:i,treeForkCount:u}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=l,o.tailMode=i,o.treeForkCount=u)}function wo(e){var t=e.child;for(e.child=null;t!==null;){var l=t.sibling;t.sibling=e.child,e.child=t,t=l}}function Ao(e,t,l){var a=t.pendingProps,i=a.revealOrder,u=a.tail;a=a.children;var o=bt.current;if(t.flags&128)return _u(t,o),null;var m=(o&2)!==0;if(m?(o=o&1|2,t.flags|=128):o&=1,_u(t,o),i==="backwards"&&e!==null?(wo(e),rt(e,t,a,l),wo(e)):rt(e,t,a,l),a=_e?mu:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xy(e,l,t);else if(e.tag===19)xy(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"backwards":l=Sy(t.child),l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null,wo(t)),is(t,!0,i,null,u,a);break;case"unstable_legacy-backwards":for(l=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Xr(e)===null){t.child=i;break}e=i.sibling,i.sibling=l,l=i,i=e}is(t,!0,l,null,u,a);break;case"together":is(t,!1,null,null,void 0,a);break;case"independent":t.memoizedState=null;break;default:l=Sy(t.child),l===null?(i=t.child,t.child=null):(i=l.sibling,l.sibling=null),is(t,!1,i,l,u,a)}return t.child}function Ey(e,t,l){var a=t.pendingProps;return _a(t,t.type,a.value),rt(e,t,a.children,l),t.child}function na(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Da|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(fn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,l=Pl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Pl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function jo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Hr(e)))}function pb(e,t,l){switch(t.tag){case 3:or(t,t.stateNode.containerInfo),_a(t,at,e.memoizedState.cache),cn();break;case 27:case 5:nc(t);break;case 4:or(t,t.stateNode.containerInfo);break;case 10:_a(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lo(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return Ra(t),t.flags|=128,null;a=fn(e,t,l,!1);var i=t.child.childLanes;return a||(l&i)!==0?by(e,t,l):(Ra(t),e=na(e,t,l),e!==null?e.sibling:null)}Ra(t);break;case 19:if(t.flags&128)return Ao(e,t,l);if(i=(e.flags&128)!==0,a=(l&t.childLanes)!==0,a||(fn(e,t,l,!1),a=(l&t.childLanes)!==0),i){if(a)return Ao(e,t,l);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_u(t,bt.current),a)break;return null;case 22:return t.lanes=0,hy(e,t,l,t.pendingProps);case 24:_a(t,at,e.memoizedState.cache)}return na(e,t,l)}function _y(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)it=!0;else{if(!jo(e,l)&&(t.flags&128)===0)return it=!1,pb(e,t,l);it=(e.flags&131072)!==0}else it=!1,_e&&(t.flags&1048576)!==0&&em(t,mu,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=yn(t.elementType),t.type=e,typeof e=="function")qc(e)?(a=bn(e,a),t.tag=1,t=gy(null,t,e,a,l)):(t.tag=0,t=No(null,t,e,a,l));else{if(e!=null){var i=e.$$typeof;if(i===V){t.tag=11,t=oy(null,t,e,a,l);break e}else if(i===Ue){t.tag=14,t=fy(null,t,e,a,l);break e}else if(i===ee){t.tag=10,t.type=e,t=Ey(null,t,l);break e}}throw t=me(e)||e,Error(c(306,t,""))}}return t;case 0:return No(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,i=bn(a,t.pendingProps),gy(e,t,a,i,l);case 3:e:{if(or(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var u=t.memoizedState;i=u.element,Wc(e,t),Eu(t,a,null,l);var o=t.memoizedState;if(a=o.cache,_a(t,at,a),a!==u.cache&&Xc(t,[at],l,!0),Su(),a=o.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=py(e,t,a,l);break e}else if(a!==i){i=ul(Error(c(424)),t),yu(i),t=py(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(Ke=fl(e.firstChild),dt=t,_e=!0,Sa=null,cl=!0,l=hm(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|134221824,l=l.sibling}else{if(cn(),a===i){t=na(e,t,l);break e}rt(e,t,a,l)}t=t.child}return t;case 26:return di(e,t),e===null?(l=Jv(t.type,null,t.pendingProps,null))?t.memoizedState=l:_e||(t.stateNode=zv(t.type,t.pendingProps,ya.current,t)):t.memoizedState=Jv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return nc(t),e===null&&_e&&(a=t.stateNode=Vv(t.type,t.pendingProps,ya.current),dt=t,cl=!0,i=Ke,qa(t.type)?(Rf=i,Ke=fl(a.firstChild)):Ke=i),rt(e,t,t.pendingProps.children,l),di(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_e&&((i=a=Ke)&&(a=d2(a,t.type,t.pendingProps,cl),a!==null?(t.stateNode=a,dt=t,Ke=fl(a.firstChild),cl=!1,i=!0):i=!1),i||Ea(t)),nc(t),i=t.type,u=t.pendingProps,o=e!==null?e.memoizedProps:null,a=u.children,xf(i,u)?a=null:o!==null&&xf(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=io(e,t,rb,null,null,l),wi._currentValue=i),di(e,t),rt(e,t,a,l),t.child;case 6:return e===null&&_e&&((e=l=Ke)&&(l=h2(l,t.pendingProps,cl),l!==null?(t.stateNode=l,dt=t,Ke=null,e=!0):e=!1),e||Ea(t)),null;case 13:return by(e,t,l);case 4:return or(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=gn(t,null,a,l):rt(e,t,a,l),t.child;case 11:return oy(e,t,t.type,t.pendingProps,l);case 7:return a=t.pendingProps,di(e,t),rt(e,t,a,l),t.child;case 8:return rt(e,t,t.pendingProps.children,l),t.child;case 12:return rt(e,t,t.pendingProps.children,l),t.child;case 10:return Ey(e,t,l);case 9:return i=t.type._context,a=t.pendingProps.children,dn(t),i=gt(i),a=a(i),t.flags|=1,rt(e,t,a,l),t.child;case 14:return fy(e,t,t.type,t.pendingProps,l);case 15:return dy(e,t,t.type,t.pendingProps,l);case 19:return Ao(e,t,l);case 31:return vb(e,t,l);case 22:return hy(e,t,l,t.pendingProps);case 24:return dn(t),a=gt(at),e===null?(i=Jc(),i===null&&(i=Ve,u=Kc(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=l),i=u),t.memoizedState={parent:a,cache:i},$c(t),_a(t,at,i)):((e.lanes&l)!==0&&(Wc(e,t),Eu(t,null,null,l),Su()),i=e.memoizedState,u=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),_a(t,at,a)):(a=u.cache,_a(t,at,a),a!==i.cache&&Xc(t,[at],l,!0))),rt(e,t,t.pendingProps.children,l),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=t.pendingProps,a.name!=null&&a.name!=="auto"?t.flags|=e===null?18882560:18874368:_e&&Dr(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:di(e,t),rt(e,t,a.children,l),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function ia(e){e.flags|=4}function Mo(e,t,l,a,i){var u;if((u=(e.mode&32)!==0)&&(u=l===null?Pv(t,a):Pv(t,a)&&(a.src!==l.src||a.srcSet!==l.srcSet)),u){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(nv())e.flags|=8192;else throw vn=Qr,Fc}else e.flags&=-16777217}function Ty(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Iv(t))if(nv())e.flags|=8192;else throw vn=Qr,Fc}function us(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Pd():536870912,e.lanes|=t,gi|=t)}function Ou(e,t){if(!_e)switch(e.tailMode){case"visible":break;case"collapsed":for(var l=e.tail,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;break;default:for(t=e.tail,l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null}}function Ze(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&1206910976,a|=i.flags&1206910976,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 bb(e,t,l){var a=t.pendingProps;switch(Qc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return Ze(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ta(at),Yn(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ii(t)?ia(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Yc())),Ze(t),null;case 26:var i=t.type,u=t.memoizedState;return e===null?(ia(t),u!==null?(Ze(t),Ty(t,u)):(Ze(t),Mo(t,i,null,a,l))):u?u!==e.memoizedState?(ia(t),Ze(t),Ty(t,u)):(Ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ia(t),Ze(t),Mo(t,i,e,a,l)),null;case 27:if(fr(t),l=ya.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ia(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Ze(t),t.subtreeFlags&=-33554433,null}e=Rl.current,ii(t)?lm(t):(e=Vv(i,a,l),t.stateNode=e,ia(t))}return Ze(t),t.subtreeFlags&=-33554433,null;case 5:if(fr(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ia(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Ze(t),t.subtreeFlags&=-33554433,null}if(u=Rl.current,ii(t))lm(t);else{var o=Lu(ya.current);switch(u){case 1:u=o.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:u=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":u=o.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":u=o.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":u=o.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?o.createElement("select",{is:a.is}):o.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?o.createElement(i,{is:a.is}):o.createElement(i)}}u[vt]=t,u[Ut]=a;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)u.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=u;e:switch(St(u,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&&ia(t)}}return Ze(t),t.subtreeFlags&=-33554433,Mo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ia(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=ya.current,ii(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[vt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||_v(e.nodeValue,l)),e||Ea(t,!0)}else e=Lu(e).createTextNode(a),e[vt]=t,t.stateNode=e}return Ze(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ii(t),l!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[vt]=t}else cn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),e=!1}else l=Yc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Zt(t),t):(Zt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Ze(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ii(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(c(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(c(317));i[vt]=t}else cn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),i=!1}else i=Yc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Zt(t),t):(Zt(t),null)}return Zt(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),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==i&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),us(t,t.updateQueue),Ze(t),null);case 4:return Yn(),e===null&&yf(t.stateNode.containerInfo),t.flags|=67108864,Ze(t),null;case 10:return ta(t.type),Ze(t),null;case 19:if(ao(t),a=t.memoizedState,a===null)return Ze(t),null;if(i=(t.flags&128)!==0,u=a.rendering,u===null)if(i)Ou(a,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Xr(e),u!==null){for(t.flags|=128,Ou(a,!1),e=u.updateQueue,t.updateQueue=e,us(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Wh(l,e),l=l.sibling;return _u(t,bt.current&1|2),_e&&Il(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Gt()>ps&&(t.flags|=128,i=!0,Ou(a,!1),t.lanes=4194304)}else{if(!i)if(e=Xr(u),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,us(t,e),Ou(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!u.alternate&&!_e)return Ze(t),null}else 2*Gt()-a.renderingStartTime>ps&&l!==536870912&&(t.flags|=128,i=!0,Ou(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}if(a.tail!==null){e=a.tail;e:{for(l=e;l!==null;){if(l.alternate!==null){l=!1;break e}l=l.sibling}l=!0}return a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Gt(),e.sibling=null,u=bt.current,u=i?u&1|2:u&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!l||_e?_u(t,u):(l=u,Xe(pt,t),Xe(bt,l),_t===null&&(_t=t)),_e&&Il(t,a.treeForkCount),e}return Ze(t),null;case 22:case 23:return Zt(t),to(),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&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),l=t.updateQueue,l!==null&&us(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&&yt(mn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ta(at),Ze(t),null;case 25:return null;case 30:return t.flags|=33554432,Ze(t),null}throw Error(c(156,t.tag))}function xb(e,t){switch(Qc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ta(at),Yn(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fr(t),null;case 31:if(t.memoizedState!==null){if(Zt(t),t.alternate===null)throw Error(c(340));cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));cn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ao(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Yn(),null;case 10:return ta(t.type),null;case 22:case 23:return Zt(t),to(),e!==null&&yt(mn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ta(at),null;case 25:return null;default:return null}}function Ny(e,t){switch(Qc(t),t.tag){case 3:ta(at),Yn();break;case 26:case 27:case 5:fr(t);break;case 4:Yn();break;case 31:t.memoizedState!==null&&Zt(t);break;case 13:Zt(t);break;case 19:ao(t);break;case 10:ta(t.type);break;case 22:case 23:Zt(t),to(),e!==null&&yt(mn);break;case 24:ta(at)}}function Ru(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 u=l.create,o=l.inst;a=u(),o.destroy=a}l=l.next}while(l!==i)}}catch(m){Be(t,t.return,m)}}function Aa(e,t,l){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var u=i.next;a=u;do{if((a.tag&e)===e){var o=a.inst,m=o.destroy;if(m!==void 0){o.destroy=void 0,i=t;var S=l,R=m;try{R()}catch(j){Be(i,S,j)}}}a=a.next}while(a!==u)}}catch(j){Be(t,t.return,j)}}function Cy(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{ym(t,l)}catch(a){Be(e,e.return,a)}}}function zy(e,t,l){l.props=bn(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Be(e,t,a)}}function Ml(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:var i=e.stateNode,u=$l(e.memoizedProps,i);(i.ref===null||i.ref.name!==u)&&(i.ref=Dv(u)),a=i.ref;break;case 7:if(e.stateNode===null){var o=new Pt(e);p(e.child,!1,o2,o,void 0,void 0),e.stateNode=o}a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(m){Be(e,t,m)}}function xt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(i){Be(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){Be(e,t,i)}else l.current=null}function rs(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var l=0;l<t.length;l++)Bv(e.stateNode,t[l])}function Oy(e){for(var t=e.return;t!==null&&(Uo(t)&&Bv(e.stateNode,t.stateNode),!Do(t));)t=t.return}function wu(e){for(var t=e.return;t!==null&&(Uo(t)&&f2(e.stateNode,t.stateNode),!Do(t));)t=t.return}function Do(e){return e.tag===5||e.tag===3||e.tag===27}function Uo(e){return e&&e.tag===7&&e.stateNode!==null}function ko(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){Be(e,e.return,i)}}function Ho(e,t,l){try{var a=e.stateNode;Kb(a,e.type,l,t),a[Ut]=t}catch(i){Be(e,e.return,i)}}function Ry(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&qa(e.type)||e.tag===4}function qo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ry(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&&qa(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 Lo(e,t,l,a){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(i,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(i),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=wl)),rs(e,a),De=!0;else if(i!==4&&(i===27&&(rs(e,a),a=null,qa(e.type)&&(l=e.stateNode,t=null)),e=e.child,e!==null))for(Lo(e,t,l,a),e=e.sibling;e!==null;)Lo(e,t,l,a),e=e.sibling}function ss(e,t,l,a){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?l.insertBefore(i,t):l.appendChild(i),rs(e,a),De=!0;else if(i!==4&&(i===27&&(rs(e,a),a=null,qa(e.type)&&(l=e.stateNode)),e=e.child,e!==null))for(ss(e,t,l,a),e=e.sibling;e!==null;)ss(e,t,l,a),e=e.sibling}function wy(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);St(t,a,l),t[vt]=e,t[Ut]=l}catch(u){Be(e,e.return,u)}}var cs=!1,Jt=null;function Ay(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(cs=!0)}var Dl=null;function jy(){var e=Dl;return Dl=null,e}var Ht=0;function hi(e,t,l,a,i){return Ht=0,My(e.child,t,l,a,i)}function My(e,t,l,a,i){for(var u=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(a!==null){var m=_f(o);a.push(m),m.view&&(u=!0)}else u||_f(o).view&&(u=!0);cs=!0,jv(o,Ht===0?t:t+"_"+Ht,l),Ht++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||My(e.child,t,l,a,i)&&(u=!0));e=e.sibling}return u}function Ul(e,t){for(;e!==null;)e.tag===5?Mv(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Ul(e.child,t)),e=e.sibling}function os(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(os(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(c(544));var l=t.name;t=Wl(t.default,t.share),t!=="none"&&(hi(e,l,t,null,!1)||Ul(e.child,!1))}e=e.sibling}}function Bo(e,t){if(e.tag===30){var l=e.stateNode,a=e.memoizedProps,i=$l(a,l),u=Wl(a.default,l.paired?a.share:a.enter);u!=="none"?hi(e,i,u,null,!1)?(os(e),l.paired||t||Si(e,a.onEnter)):Ul(e.child,!1):os(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Bo(e,t),e=e.sibling;else os(e)}function Qo(e){if(Jt!==null&&Jt.size!==0){var t=Jt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var l=e.memoizedProps,a=l.name;if(a!=null&&a!=="auto"){var i=t.get(a);if(i!==void 0){var u=Wl(l.default,l.share);if(u!=="none"&&(hi(e,a,u,null,!1)?(u=e.stateNode,i.paired=u,u.paired=i,Si(e,l.onShare)):Ul(e.child,!1)),t.delete(a),t.size===0)break}}}Qo(e)}e=e.sibling}}}function Go(e){if(e.tag===30){var t=e.memoizedProps,l=$l(t,e.stateNode),a=Jt!==null?Jt.get(l):void 0,i=Wl(t.default,a!==void 0?t.share:t.exit);i!=="none"&&(hi(e,l,i,null,!1)?a!==void 0?(i=e.stateNode,a.paired=i,i.paired=a,Jt.delete(l),Si(e,t.onShare)):Si(e,t.onExit):Ul(e.child,!1)),Jt!==null&&Qo(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Go(e),e=e.sibling;else Jt!==null&&Qo(e)}function Dy(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,l=$l(t,e.stateNode);t=Wl(t.default,t.update),e.flags&=-5,t!=="none"&&hi(e,l,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Dy(e);e=e.sibling}}function Yo(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,Ul(e.child,!1))}Yo(e)}e=e.sibling}}function fs(e){if(e.tag===30)e.stateNode.paired=null,Ul(e.child,!1),Yo(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)fs(e),e=e.sibling;else Yo(e)}function Uy(e){for(e=e.child;e!==null;)e.tag===30?Ul(e.child,!1):(e.subtreeFlags&33554432)!==0&&Uy(e),e=e.sibling}function Vo(e,t,l,a,i,u,o){for(var m=!1;t!==null;){if(t.tag===5){var S=t.stateNode;if(u!==null&&Ht<u.length){var R=u[Ht],j=_f(S);(R.view||j.view)&&(m=!0);var H;if(H=(e.flags&4)===0)if(j.clip)H=!0;else{H=R.rect;var C=j.rect;H=H.y!==C.y||H.x!==C.x||H.height!==C.height||H.width!==C.width}H&&(e.flags|=4),j.abs?j=!R.abs:(R=R.rect,j=j.rect,j=R.height!==j.height||R.width!==j.width),j&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&jv(S,Ht===0?l:l+"_"+Ht,i),m&&(e.flags&4)!==0||(Dl===null&&(Dl=[]),Dl.push(S,Ht===0?a:a+"_"+Ht,t.memoizedProps)),Ht++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Vo(e,t.child,l,a,i,u,o)&&(m=!0));t=t.sibling}return m}function ky(e,t){for(e=e.child;e!==null;){if(e.tag===30){var l=e.memoizedProps,a=e.stateNode,i=$l(l,a),u=Wl(l.default,l.update),o;o=e.memoizedState,e.memoizedState=null,a=e;var m=e.child;Ht=0,i=Vo(a,m,i,i,u,o,!1),(e.flags&4)!==0&&i&&Si(e,l.onUpdate)}else(e.subtreeFlags&33554432)!==0&&ky(e);e=e.sibling}}var ht=!1,qe=!1,kl=!1,Xo=!1,Hy=typeof WeakSet=="function"?WeakSet:Set,mt=null,Hl=!1,Au=!1,ds=!1,Ko=!1;function Sb(e,t,l){if(e=e.containerInfo,pf=Ai,e=Qh(e),Ac(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var u=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{a.nodeType,o.nodeType}catch{a=null;break e}var m=0,S=-1,R=-1,j=0,H=0,C=e,A=null;t:for(;;){for(var F;C!==a||u!==0&&C.nodeType!==3||(S=m+u),C!==o||i!==0&&C.nodeType!==3||(R=m+i),C.nodeType===3&&(m+=C.nodeValue.length),(F=C.firstChild)!==null;)A=C,C=F;for(;;){if(C===e)break t;if(A===a&&++j===u&&(S=m),A===o&&++H===i&&(R=m),(F=C.nextSibling)!==null)break;C=A,A=C.parentNode}C=F}a=S===-1||R===-1?null:{start:S,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(bf={focusedElem:e,selectionRange:a},Ai=!1,l=(l&335544064)===l,mt=t,t=l?9270:1024;mt!==null;){if(e=mt,l&&(a=e.deletions,a!==null))for(u=0;u<a.length;u++)l&&Go(a[u]);if(e.alternate===null&&(e.flags&2)!==0)l&&Ay(e),hs(l);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&l&&Go(a),hs(l);continue}else if(a!==null&&a.memoizedState!==null){l&&Ay(e),hs(l);continue}}a=e.child,(e.subtreeFlags&t)!==0&&a!==null?(a.return=e,mt=a):(l&&Dy(e),hs(l))}}Jt=null}function hs(e){for(;mt!==null;){var t=mt,l=e,a=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((i&1024)!==0&&a!==null){l=void 0,i=a.memoizedProps,a=a.memoizedState;var u=t.stateNode;try{var o=bn(t.type,i);l=u.getSnapshotBeforeUpdate(o,a),u.__reactInternalSnapshotBeforeUpdate=l}catch(m){Be(t,t.return,m)}}break;case 3:if((i&1024)!==0){if(a=t.stateNode.containerInfo,l=a.nodeType,l===9)Cf(a);else if(l===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Cf(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:l&&a!==null&&(l=$l(a.memoizedProps,a.stateNode),i=t.memoizedProps,i=Wl(i.default,i.update),i!=="none"&&hi(a,l,i,a.memoizedState=[],!0));break;default:if((i&1024)!==0)throw Error(c(163))}if(a=t.sibling,a!==null){a.return=t.return,mt=a;break}mt=t.return}}function qy(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:ql(e,l),a&4&&Ru(5,l);break;case 1:if(ql(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(o){Be(l,l.return,o)}else{var i=bn(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Be(l,l.return,o)}}a&64&&Cy(l),a&512&&Ml(l,l.return);break;case 3:if(ql(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{ym(e,t)}catch(o){Be(l,l.return,o)}}break;case 27:t===null&&a&4&&wy(l);case 26:case 5:ql(e,l),t===null&&a&4&&ko(l),a&512&&Ml(l,l.return);break;case 12:ql(e,l);break;case 31:ql(e,l),a&4&&Gy(e,l);break;case 13:ql(e,l),a&4&&Yy(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Mb.bind(null,l),m2(e,l))));break;case 22:if(a=l.memoizedState!==null||ht,!a){var u=t!==null&&t.memoizedState!==null||qe;t=ht,i=qe,ht=a,(qe=u)&&!i?(a=2,(l.subtreeFlags&8772)!==0&&(a|=1),bl(e,l,a)):ql(e,l),ht=t,qe=i}break;case 30:ql(e,l),a&512&&Ml(l,l.return);break;case 7:a&512&&Ml(l,l.return);default:ql(e,l)}}function Zo(e,t){for(e=e.child;e!==null;)Ly(e,t),e=e.sibling}function Ly(e,t){switch(e.tag){case 5:case 26:try{var l=e.stateNode;if(t){var a=l.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}else{var i=e.stateNode,u=e.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null;i.style.display=o==null||typeof o=="boolean"?"":(""+o).trim()}}catch(S){Be(e,e.return,S)}Jo(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,De=!0}catch(S){Be(e,e.return,S)}break;case 18:try{var m=e.stateNode;t?Av(m,!0):Av(e.stateNode,!1)}catch(S){Be(e,e.return,S)}break;case 22:case 23:e.memoizedState===null&&Zo(e,t);break;default:Zo(e,t)}}function Jo(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var l=e,a=t;switch(l.tag){case 4:Ly(l,a);break e;case 22:l.memoizedState===null&&Jo(l,a);break e;default:Jo(l,a)}}e=e.sibling}}function By(e){var t=e.alternate;t!==null&&(e.alternate=null,By(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&pr(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 Fe=null,qt=!1;function gl(e,t,l){for(l=l.child;l!==null;)Qy(e,t,l),l=l.sibling}function Qy(e,t,l){if(Yt&&typeof Yt.onCommitFiberUnmount=="function")try{Yt.onCommitFiberUnmount(eu,l)}catch{}switch(l.tag){case 26:qe||xt(l,t),gl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&!qe&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:qe||xt(l,t),wu(l);var a=Fe,i=qt;qa(l.type)&&(Fe=l.stateNode,qt=!1),gl(e,t,l),Xv(l.stateNode,l.type,l.memoizedProps),Fe=a,qt=i;break;case 5:qe||xt(l,t),wu(l);case 6:if(l.tag===6&&wu(l),a=Fe,i=qt,Fe=null,gl(e,t,l),Fe=a,qt=i,Fe!==null)if(qt)try{(Fe.nodeType===9?Fe.body:Fe.nodeName==="HTML"?Fe.ownerDocument.body:Fe).removeChild(l.stateNode),De=!0}catch(u){Be(l,t,u)}else try{Fe.removeChild(l.stateNode),De=!0}catch(u){Be(l,t,u)}break;case 18:Fe!==null&&(qt?(e=Fe,wv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ji(e)):wv(Fe,l.stateNode));break;case 4:a=Fe,i=qt,Fe=l.stateNode.containerInfo,qt=!0,gl(e,t,l),Fe=a,qt=i;break;case 0:case 11:case 14:case 15:Aa(2,l,t),qe||Aa(4,l,t),gl(e,t,l);break;case 1:qe||(xt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&zy(l,t,a)),gl(e,t,l);break;case 21:gl(e,t,l);break;case 22:qe=(a=qe)||l.memoizedState!==null,gl(e,t,l),qe=a;break;case 30:xt(l,t),gl(e,t,l);break;case 7:qe||xt(l,t),gl(e,t,l);break;default:gl(e,t,l)}}function Gy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ji(e)}catch(l){Be(t,t.return,l)}}}function Yy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ji(e)}catch(l){Be(t,t.return,l)}}function Eb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Hy),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Hy),t;default:throw Error(c(435,e.tag))}}function ms(e,t){var l=Eb(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var i=Db.bind(null,e,a);a.then(i,i)}})}function Ot(e,t,l){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var u=a[i],o=e,m=t,S=m;e:for(;S!==null;){switch(S.tag){case 27:if(qa(S.type)){Fe=S.stateNode,qt=!1;break e}break;case 5:Fe=S.stateNode,qt=!1;break e;case 3:case 4:Fe=S.stateNode.containerInfo,qt=!0;break e}S=S.return}if(Fe===null)throw Error(c(160));Qy(o,m,u),Fe=null,qt=!1,o=u.alternate,o!==null&&(o.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Vy(t,e,l),t=t.sibling}var pl=null;function Vy(e,t,l){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(a=e.updateQueue,a=a!==null?a.events:null,a!==null))for(var u=0;u<a.length;u++){var o=a[u];o.ref.impl=o.nextImpl}Ot(t,e,l),Rt(e),i&4&&(Aa(3,e,e.return),Ru(3,e),Aa(5,e,e.return));break;case 1:Ot(t,e,l),Rt(e),i&512&&(qe||a===null||xt(a,a.return)),i&64&&ht&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?t:l.concat(t))));break;case 26:if(u=pl,Ot(t,e,l),Rt(e),i&512&&(qe||a===null||xt(a,a.return)),i&4)if(i=a!==null?a.memoizedState:null,l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null)if(ht)e.stateNode=zv(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,l=e.memoizedProps,i=u.ownerDocument||u;t:switch(t){case"title":a=i.getElementsByTagName("title")[0],(!a||a[au]||a[vt]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=i.createElement(t),i.head.insertBefore(a,i.querySelector("head > title"))),St(a,t,l),a[vt]=e,ft(a),t=a;break e;case"link":if(u=Wv("link","href",i).get(t+(l.href||""))){for(o=0;o<u.length;o++)if(a=u[o],a.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&a.getAttribute("rel")===(l.rel==null?null:l.rel)&&a.getAttribute("title")===(l.title==null?null:l.title)&&a.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(o,1);break t}}a=i.createElement(t),St(a,t,l),i.head.appendChild(a);break;case"meta":if(u=Wv("meta","content",i).get(t+(l.content||""))){for(o=0;o<u.length;o++)if(a=u[o],a.getAttribute("content")===(l.content==null?null:""+l.content)&&a.getAttribute("name")===(l.name==null?null:l.name)&&a.getAttribute("property")===(l.property==null?null:l.property)&&a.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&a.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(o,1);break t}}a=i.createElement(t),St(a,t,l),i.head.appendChild(a);break;default:throw Error(c(468,t))}a[vt]=e,ft(a),t=a}e.stateNode=t}else ht||Mf(u,e.type,e.stateNode);else e.stateNode=$v(u,l,e.memoizedProps);else i!==l?(i===null?(t=a.stateNode,t===null||qe||t.parentNode.removeChild(t)):i.count--,l===null?ht||Mf(u,e.type,e.stateNode):$v(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Ho(e,e.memoizedProps,a.memoizedProps);break;case 27:Ot(t,e,l),Rt(e),i&512&&(qe||a===null||xt(a,a.return)),a!==null&&i&4&&Ho(e,e.memoizedProps,a.memoizedProps);break;case 5:if(u=kl,kl=!1,Ot(t,e,l),kl=u,Rt(e),i&512&&(qe||a===null||xt(a,a.return)),e.flags&32){t=e.stateNode;try{Fn(t,""),De=!0}catch(j){Be(e,e.return,j)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Ho(e,t,a!==null?a.memoizedProps:t)),i&1024&&(Xo=!0);break;case 6:if(Ot(t,e,l),Rt(e),i&4){if(e.stateNode===null)throw Error(c(162));t=e.memoizedProps,l=e.stateNode;try{l.nodeValue=t,De=!0}catch(j){Be(e,e.return,j)}}break;case 3:if(De=!1,Rs=null,u=pl,pl=Bu(t.containerInfo),Ot(t,e,l),pl=u,Rt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{ji(t.containerInfo)}catch(j){Be(e,e.return,j)}Xo&&(Xo=!1,Xy(e)),De=!1;break;case 4:i=kl,kl=ht,a=fh(),u=pl,pl=Bu(e.stateNode.containerInfo),Ot(t,e,l),Rt(e),pl=u,De&&Au&&(ds=!0),De=a,kl=i;break;case 12:Ot(t,e,l),Rt(e);break;case 31:Ot(t,e,l),Rt(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ms(e,t)));break;case 13:Ot(t,e,l),Rt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(gs=Gt()),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ms(e,t)));break;case 22:u=e.memoizedState!==null,o=a!==null&&a.memoizedState!==null;var m=ht,S=qe,R=kl;ht=m||u,kl=R||u,qe=S||o,Ot(t,e,l),qe=S,kl=R,ht=m,Rt(e),i&8192&&(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,!u||a===null||o||ht||qe||(t=o||qe,l=ht,a=qe,ht=u||ht,qe=t,ja(e,2),ht=l,qe=a),!u&&kl||Zo(e,u)),i&4&&(t=e.updateQueue,t!==null&&(l=t.retryQueue,l!==null&&(t.retryQueue=null,ms(e,l))));break;case 19:Ot(t,e,l),Rt(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ms(e,t)));break;case 30:i&512&&(qe||a===null||xt(a,a.return)),i=fh(),u=Au,o=(l&335544064)===l,m=e.memoizedProps,Au=o&&Wl(m.default,m.update)!=="none",Ot(t,e,l),Rt(e),o&&a!==null&&De&&(e.flags|=4),Au=u,De=i;break;case 21:break;case 7:i&512&&(qe||a===null||xt(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:Ot(t,e,l),Rt(e)}}function Rt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Ry(a)){l=a;break}a=a.return}a=null;for(var i=e.return;i!==null;){if(Uo(i)){var u=i.stateNode;a===null?a=[u]:a.push(u)}if(Do(i))break;i=i.return}var o=a;if(l==null)throw Error(c(160));switch(l.tag){case 27:var m=l.stateNode,S=qo(e);ss(e,S,m,o);break;case 5:var R=l.stateNode;l.flags&32&&(Fn(R,""),l.flags&=-33);var j=qo(e);ss(e,j,R,o);break;case 3:case 4:var H=l.stateNode.containerInfo,C=qo(e);Lo(e,C,H,o);break;default:throw Error(c(161))}}catch(A){Be(e,e.return,A)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Xy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Xy(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Ai=!0,t.reset(),Ai=!1),e=e.sibling}}function mi(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Ky(t,e),t=t.sibling;else ky(t)}function Ky(e,t){var l=e.alternate;if(l===null)Bo(e,!1);else switch(e.tag){case 3:if(Ko=Hl=!1,jy(),mi(t,e),!Hl&&!ds){if(e=Dl,e!==null)for(var a=0;a<e.length;a+=3){l=e[a];var i=e[a+1];Mv(l,e[a+2]),l=l.ownerDocument.documentElement,l!==null&&l.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+i+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Ko=!0}Dl=null;break;case 5:mi(t,e);break;case 4:a=Hl,Hl=!1,mi(t,e),Hl&&(ds=!0),Hl=a;break;case 22:e.memoizedState===null&&(l.memoizedState!==null?Bo(e,!1):mi(t,e));break;case 30:a=Hl,i=jy(),Hl=!1,mi(t,e),Hl&&(e.flags|=4);var u=e.memoizedProps,o=e.stateNode;t=$l(u,o),o=$l(l.memoizedProps,o);var m=Wl(u.default,u.update);m==="none"?t=!1:(u=l.memoizedState,l.memoizedState=null,l=e.child,Ht=0,t=Vo(e,l,t,o,m,u,!0),Ht!==(u===null?0:u.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Si(e,e.memoizedProps.onUpdate),Dl=i):i!==null&&(i.push.apply(i,Dl),Dl=i),Hl=(e.flags&32)!==0?!0:a;break;default:mi(t,e)}}function ql(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)qy(e,t.alternate,t),t=t.sibling}function ja(e,t){for(e=e.child;e!==null;){var l=e,a=t;switch(l.tag){case 0:case 11:case 14:case 15:Aa(4,l,l.return),ja(l,a);break;case 1:xt(l,l.return);var i=l.stateNode;typeof i.componentWillUnmount=="function"&&zy(l,l.return,i),ja(l,a);break;case 27:(a&2)!==0&&Xv(l.stateNode,l.type,l.memoizedProps);case 5:xt(l,l.return),l.tag!==5&&l.tag!==27||wu(l),ja(l,a);break;case 6:wu(l);break;case 26:xt(l,l.return),i=l.stateNode,l.memoizedState!==null||i===null||qe||i.parentNode.removeChild(i),ja(l,a);break;case 22:l.memoizedState===null&&ja(l,a);break;case 30:xt(l,l.return),ja(l,a);break;case 7:xt(l,l.return);default:ja(l,a)}e=e.sibling}}function bl(e,t,l){for(l=(t.subtreeFlags&8772)!==0?l:l&-2,t=t.child;t!==null;){var a=t.alternate,i=e,u=t,o=u.flags,m=(l&1)!==0;switch(u.tag){case 0:case 11:case 15:bl(i,u,l),Ru(4,u);break;case 1:if(bl(i,u,l),a=u,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(j){Be(a,a.return,j)}if(a=u,i=a.updateQueue,i!==null){var S=a.stateNode;try{var R=i.shared.hiddenCallbacks;if(R!==null)for(i.shared.hiddenCallbacks=null,i=0;i<R.length;i++)mm(R[i],S)}catch(j){Be(a,a.return,j)}}m&&o&64&&Cy(u),Ml(u,u.return);break;case 27:(l&2)!==0&&wy(u);case 5:u.tag!==5&&u.tag!==27||Oy(u),bl(i,u,l),m&&a===null&&o&4&&ko(u),Ml(u,u.return);break;case 6:Oy(u);break;case 26:S=u.stateNode,u.memoizedState!==null||S===null||ht||Mf(Bu(S.ownerDocument),u.type,S),bl(i,u,l),m&&a===null&&o&4&&ko(u),Ml(u,u.return);break;case 12:bl(i,u,l);break;case 31:bl(i,u,l),m&&o&4&&Gy(i,u);break;case 13:bl(i,u,l),m&&o&4&&Yy(i,u);break;case 22:u.memoizedState===null&&bl(i,u,l),Ml(u,u.return);break;case 30:bl(i,u,l),Ml(u,u.return);break;case 7:Ml(u,u.return);default:bl(i,u,l)}t=t.sibling}}function Fo(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&&vu(l))}function $o(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vu(e))}function ol(e,t,l,a){var i=(l&335544064)===l;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Zy(e,t,l,a),t=t.sibling;else i&&Uy(t)}function Zy(e,t,l,a){var i=(l&335544064)===l;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&fs(t);var u=t.flags;switch(t.tag){case 0:case 11:case 15:ol(e,t,l,a),u&2048&&Ru(9,t);break;case 1:ol(e,t,l,a);break;case 3:ol(e,t,l,a),i&&Ko&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),u&2048&&(u=null,t.alternate!==null&&(u=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==u&&(t.refCount++,u!=null&&vu(u)));break;case 12:if(u&2048){ol(e,t,l,a),u=t.stateNode;try{var o=t.memoizedProps,m=o.id,S=o.onPostCommit;typeof S=="function"&&S(m,t.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(R){Be(t,t.return,R)}}else ol(e,t,l,a);break;case 31:ol(e,t,l,a);break;case 13:ol(e,t,l,a);break;case 23:break;case 22:o=t.stateNode,m=t.alternate,t.memoizedState!==null?(i&&m!==null&&m.memoizedState===null&&fs(m),o._visibility&2?ol(e,t,l,a):ju(e,t)):(i&&m!==null&&m.memoizedState!==null&&fs(t),o._visibility&2?ol(e,t,l,a):(o._visibility|=2,yi(e,t,l,a,(t.subtreeFlags&10256)!==0||!1))),u&2048&&Fo(m,t);break;case 24:ol(e,t,l,a),u&2048&&$o(t.alternate,t);break;case 30:i&&(u=t.alternate,u!==null&&(Ul(u.child,!0),Ul(t.child,!0))),ol(e,t,l,a);break;default:ol(e,t,l,a)}}function yi(e,t,l,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,o=t,m=l,S=a,R=o.flags;switch(o.tag){case 0:case 11:case 15:yi(u,o,m,S,i),Ru(8,o);break;case 23:break;case 22:var j=o.stateNode;o.memoizedState!==null?j._visibility&2?yi(u,o,m,S,i):ju(u,o):(j._visibility|=2,yi(u,o,m,S,i)),i&&R&2048&&Fo(o.alternate,o);break;case 24:yi(u,o,m,S,i),i&&R&2048&&$o(o.alternate,o);break;default:yi(u,o,m,S,i)}t=t.sibling}}function ju(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:ju(l,a),i&2048&&Fo(a.alternate,a);break;case 24:ju(l,a),i&2048&&$o(a.alternate,a);break;default:ju(l,a)}t=t.sibling}}var xn=8192;function Sn(e,t,l){if(e.subtreeFlags&xn)for(e=e.child;e!==null;)Jy(e,t,l),e=e.sibling}function Jy(e,t,l){switch(e.tag){case 26:Sn(e,t,l),e.flags&xn&&(e.memoizedState!==null?O2(l,pl,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&t0(l,e)));break;case 5:Sn(e,t,l),e.flags&xn&&(e=e.stateNode,(t&335544128)===t&&t0(l,e));break;case 3:case 4:var a=pl;pl=Bu(e.stateNode.containerInfo),Sn(e,t,l),pl=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=xn,xn=16777216,Sn(e,t,l),xn=a):Sn(e,t,l));break;case 30:if((e.flags&xn)!==0&&(a=e.memoizedProps.name,a!=null&&a!=="auto")){var i=e.stateNode;i.paired=null,Jt===null&&(Jt=new Map),Jt.set(a,i)}Sn(e,t,l);break;default:Sn(e,t,l)}}function Fy(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 Mu(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];mt=a,Wy(a,e)}Fy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)$y(e),e=e.sibling}function $y(e){switch(e.tag){case 0:case 11:case 15:Mu(e),e.flags&2048&&Aa(9,e,e.return);break;case 3:Mu(e);break;case 12:Mu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ys(e)):Mu(e);break;default:Mu(e)}}function ys(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];mt=a,Wy(a,e)}Fy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Aa(8,t,t.return),ys(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,ys(t));break;default:ys(t)}e=e.sibling}}function Wy(e,t){for(;mt!==null;){var l=mt;switch(l.tag){case 0:case 11:case 15:Aa(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:vu(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,mt=a;else e:for(l=e;mt!==null;){a=mt;var i=a.sibling,u=a.return;if(By(a),a===l){mt=null;break e}if(i!==null){i.return=u,mt=i;break e}mt=u}}}var _b={getCacheForType:function(e){var t=gt(at),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return gt(at).controller.signal}},Tb=typeof WeakMap=="function"?WeakMap:Map,ke=0,Ve=null,Ne=null,Oe=0,Le=0,Ft=null,Ma=!1,vi=!1,Wo=!1,ua=0,tt=0,Da=0,En=0,vs=0,$t=0,gi=0,Du=null,Lt=null,Po=!1,gs=0,Py=0,ps=1/0,bs=null,Ua=null,Pe=0,xl=null,_n=null,Ll=0,Io=0,ef=null,Iy=null,pi=null,bi=null,xi=null,Uu=0,xs=null;function Wt(){return(ke&2)!==0&&Oe!==0?Oe&-Oe:ue.T!==null?ff():lh()}function ev(){if($t===0)if((Oe&536870912)===0||_e){var e=mr;mr<<=1,(mr&3932160)===0&&(mr=262144),$t=e}else $t=536870912;return e=pt.current,e!==null&&(e.flags|=32),$t}function Si(e,t){if(t!=null){var l=e.stateNode,a=l.ref;a===null&&(a=l.ref=Dv($l(e.memoizedProps,l))),bi===null&&(bi=[]),bi.push(t.bind(null,a))}}function Bt(e,t,l){(e===Ve&&(Le===2||Le===9)||e.cancelPendingCommit!==null)&&(Ei(e,0),ka(e,Oe,$t,!1)),lu(e,l),((ke&2)===0||e!==Ve)&&(e===Ve&&((ke&2)===0&&(En|=l),tt===4&&ka(e,Oe,$t,!1)),Bl(e))}function tv(e,t,l){if((ke&6)!==0)throw Error(c(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||tu(e,t),i=a?zb(e,t):lf(e,t,!0),u=a;do{if(i===0){vi&&!a&&ka(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Nb(l)){i=lf(e,t,!1),u=!1;continue}if(i===2){if(u=t,e.errorRecoveryDisabledLanes&u)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var m=e;i=Du;var S=m.current.memoizedState.isDehydrated;if(S&&(Ei(m,o).flags|=256),o=lf(m,o,!1),o!==2&&o!==6){if(Wo&&!S){m.errorRecoveryDisabledLanes|=u,En|=u,i=4;break e}u=Lt,Lt=i,u!==null&&(Lt===null?Lt=u:Lt.push.apply(Lt,u))}i=o}if(u=!1,i!==2)continue}}if(i===1){Ei(e,0),ka(e,t,0,!0);break}e:{switch(a=e,u=i,u){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:ka(a,t,$t,!Ma);break e;case 2:Lt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(i=gs+300-Gt(),10<i)){if(ka(a,t,$t,!Ma),vr(a,0,!0)!==0)break e;Ll=t,a.timeoutHandle=Ef(lv.bind(null,a,l,Lt,bs,Po,t,$t,En,gi,Ma,u,"Throttled",-0,0),i);break e}lv(a,l,Lt,bs,Po,t,$t,En,gi,Ma,u,null,-0,0)}}break}while(!0);Bl(e)}function lv(e,t,l,a,i,u,o,m,S,R,j,H,C,A){e.timeoutHandle=-1;var F=t.subtreeFlags,re=(u&335544064)===u;if(H=null,(re||F&8192||(F&16785408)===16785408)&&(H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:wl},Jt=null,Jy(t,u,H),re&&(F=H,re=e.containerInfo,re=(re.nodeType===9?re:re.ownerDocument).__reactViewTransition,re!=null&&(F.count++,F.waitingForViewTransition=!0,F=Yu.bind(F),re.finished.then(F,F))),F=(u&62914560)===u?gs-Gt():(u&4194048)===u?Py-Gt():0,F=R2(H,F),F!==null)){Ll=u,e.cancelPendingCommit=F(ov.bind(null,e,t,u,l,a,i,o,m,S,R,j,H,null,C,A)),ka(e,u,o,!R);return}ov(e,t,u,l,a,i,o,m,S,R,j,H)}function Nb(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],u=i.getSnapshot;i=i.value;try{if(!Kt(u(),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 ka(e,t,l,a){t=Wd(e,t),t&=~vs,t&=~En,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var u=31-Vt(i),o=1<<u;a[u]=-1,i&=~o}l!==0&&Id(e,l,t)}function Ss(){return(ke&6)===0?(ku(0),!1):!0}function tf(){if(Ne!==null){if(Le===0)var e=Ne.return;else e=Ne,ea=on=null,so(e),si=null,bu=0,e=Ne;for(;e!==null;)Ny(e.alternate,e),e=e.return;Ne=null}}function Ei(e,t){var l=e.timeoutHandle;return l!==-1&&(e.timeoutHandle=-1,Fb(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ll=0,tf(),Ve=e,Ne=l=Pl(e.current,null),Oe=t,Le=0,Ft=null,Ma=!1,vi=tu(e,t),Wo=!1,gi=$t=vs=En=Da=tt=0,Lt=Du=null,Po=!1,ua=Wd(e,t),Rr(),l}function av(e,t){xe=null,ue.H=es,t===ri||t===Br?(t=om(),Le=3):t===Fc?(t=om(),Le=4):Le=t===To?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ft=t,Ne===null&&(tt=1,ts(e,ul(t,e.current)))}function nv(){var e=pt.current;return e===null?!0:(Oe&4194048)===Oe?_t===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===_t:!1}function iv(){var e=ue.H;return ue.H=es,e===null?es:e}function uv(){var e=ue.A;return ue.A=_b,e}function Es(){tt=4,Ma||(Oe&4194048)!==Oe&&pt.current!==null||(vi=!0),(Da&134217727)===0&&(En&134217727)===0||Ve===null||ka(Ve,Oe,$t,!1)}function lf(e,t,l){var a=ke;ke|=2;var i=iv(),u=uv();(Ve!==e||Oe!==t)&&(bs=null,Ei(e,t)),t=!1;var o=tt;e:do try{if(Le!==0&&Ne!==null){var m=Ne,S=Ft;switch(Le){case 8:tf(),o=6;break e;case 3:case 2:case 9:case 6:pt.current===null&&(t=!0);var R=Le;if(Le=0,Ft=null,_i(e,m,S,R),l&&vi){o=0;break e}break;default:R=Le,Le=0,Ft=null,_i(e,m,S,R)}}Cb(),o=tt;break}catch(j){av(e,j)}while(!0);return t&&e.shellSuspendCounter++,ea=on=null,ke=a,ue.H=i,ue.A=u,Ne===null&&(Ve=null,Oe=0,Rr()),o}function Cb(){for(;Ne!==null;)rv(Ne)}function zb(e,t){var l=ke;ke|=2;var a=iv(),i=uv();Ve!==e||Oe!==t?(bs=null,ps=Gt()+500,Ei(e,t)):vi=tu(e,t);e:do try{if(Le!==0&&Ne!==null){t=Ne;var u=Ft;t:switch(Le){case 1:Le=0,Ft=null,_i(e,t,u,1);break;case 2:case 9:if(sm(u)){Le=0,Ft=null,sv(t);break}t=function(){Le!==2&&Le!==9||Ve!==e||(Le=7),Bl(e)},u.then(t,t);break e;case 3:Le=7;break e;case 4:Le=5;break e;case 7:sm(u)?(Le=0,Ft=null,sv(t)):(Le=0,Ft=null,_i(e,t,u,7));break;case 5:var o=null;switch(Ne.tag){case 26:o=Ne.memoizedState;case 5:case 27:var m=Ne;if(o?Iv(o):m.stateNode.complete){Le=0,Ft=null;var S=m.sibling;if(S!==null)Ne=S;else{var R=m.return;R!==null?(Ne=R,_s(R)):Ne=null}break t}}Le=0,Ft=null,_i(e,t,u,5);break;case 6:Le=0,Ft=null,_i(e,t,u,6);break;case 8:tf(),tt=6;break e;default:throw Error(c(462))}}Ob();break}catch(j){av(e,j)}while(!0);return ea=on=null,ue.H=a,ue.A=i,ke=l,Ne!==null?0:(Ve=null,Oe=0,Rr(),tt)}function Ob(){for(;Ne!==null&&!Xp();)rv(Ne)}function rv(e){var t=_y(e.alternate,e,ua);e.memoizedProps=e.pendingProps,t===null?_s(e):Ne=t}function sv(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=vy(l,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=vy(l,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:so(t);var a=t;a===dt&&(_e?(Ur(a),a.tag===5&&a.stateNode!=null&&(Ke=a.stateNode)):(Ur(a),_e=!0));default:Ny(l,t),t=Ne=Wh(t,ua),t=_y(l,t,ua)}e.memoizedProps=e.pendingProps,t===null?_s(e):Ne=t}function _i(e,t,l,a){ea=on=null,so(t),si=null,bu=0;var i=t.return;try{if(yb(e,i,t,l,Oe)){tt=1,ts(e,ul(l,e.current)),Ne=null;return}}catch(u){if(i!==null)throw Ne=i,u;tt=1,ts(e,ul(l,e.current)),Ne=null;return}t.flags&32768?(_e||a===1?e=!0:vi||(Oe&536870912)!==0?e=!1:(Ma=e=!0,(a===2||a===9||a===3||a===6)&&(a=pt.current,a!==null&&a.tag===13&&(a.flags|=16384))),cv(t,e)):_s(t)}function _s(e){var t=e;do{if((t.flags&32768)!==0){cv(t,Ma);return}e=t.return;var l=bb(t.alternate,t,ua);if(l!==null){Ne=l;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);tt===0&&(tt=5)}function cv(e,t){do{var l=xb(e.alternate,e);if(l!==null){l.flags&=32767,Ne=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=l}while(e!==null);tt=6,Ne=null}function ov(e,t,l,a,i,u,o,m,S,R,j,H){e.cancelPendingCommit=null;do Ts();while(Pe!==0);if((ke&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));e===Ve&&(Ne=Ve=null,Oe=0),_n=t,xl=e,Ll=l,ef=i,Iy=a,Rb(e,t,l,o,m,S,H)}}function Rb(e,t,l,a,i,u,o){var m=t.lanes|t.childLanes;if(Io=m,m|=kc,t1(e,l,m,a,i,u),bi=null,(l&335544064)===l?(xi=ab(e),a=10262):(xi=null,a=10256),(t.subtreeFlags&a)!==0||(t.flags&a)!==0?(e.callbackNode=null,e.callbackPriority=0,Ub(dr,function(){return rf(),null})):(e.callbackNode=null,e.callbackPriority=0),cs=!1,a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=ue.T,ue.T=null,i=ye.p,ye.p=2,u=ke,ke|=4;try{Sb(e,t,l)}finally{ke=u,ye.p=i,ue.T=a}}Pe=1,cs?pi=t2(o,e.containerInfo,xi,af,nf,Ab,uf,rf,wb):(af(),nf(),uf())}function wb(e){if(Pe!==0){var t=xl.onRecoverableError;t(e,{componentStack:null})}}function Ab(){Pe===3&&(Pe=0,Ky(_n,xl),Pe=4)}function af(){if(Pe===1){Pe=0;var e=xl,t=_n,l=Ll,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=ue.T,ue.T=null;var i=ye.p;ye.p=2;var u=ke;ke|=4;try{Au=ds=!1,Vy(t,e,l),l=bf;var o=Qh(e.containerInfo),m=l.focusedElem,S=l.selectionRange;if(o!==m&&m&&m.ownerDocument&&Bh(m.ownerDocument.documentElement,m)){if(S!==null&&Ac(m)){var R=S.start,j=S.end;if(j===void 0&&(j=R),"selectionStart"in m)m.selectionStart=R,m.selectionEnd=Math.min(j,m.value.length);else{var H=m.ownerDocument||document,C=H&&H.defaultView||window;if(C.getSelection){var A=C.getSelection(),F=m.textContent.length,re=Math.min(S.start,F),Se=S.end===void 0?re:Math.min(S.end,F);!A.extend&&re>Se&&(o=Se,Se=re,re=o);var O=Lh(m,re),_=Lh(m,Se);if(O&&_&&(A.rangeCount!==1||A.anchorNode!==O.node||A.anchorOffset!==O.offset||A.focusNode!==_.node||A.focusOffset!==_.offset)){var w=H.createRange();w.setStart(O.node,O.offset),A.removeAllRanges(),re>Se?(A.addRange(w),A.extend(_.node,_.offset)):(w.setEnd(_.node,_.offset),A.addRange(w))}}}}for(H=[],A=m;A=A.parentNode;)A.nodeType===1&&H.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<H.length;m++){var k=H[m];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}Ai=!!pf,bf=pf=null}finally{ke=u,ye.p=i,ue.T=a}}e.current=t,Pe=2}}function nf(){if(Pe===2){Pe=0;var e=xl,t=_n,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=ue.T,ue.T=null;var a=ye.p;ye.p=2;var i=ke;ke|=4;try{qy(e,t.alternate,t)}finally{ke=i,ye.p=a,ue.T=l}}Pe=3}}function uf(){if(Pe===4||Pe===3){Pe=0;var e=pi;pi=null,Kp();var t=xl,l=_n,a=Ll,i=Iy,u=(a&335544064)===a?10262:10256;if((l.subtreeFlags&u)!==0||(l.flags&u)!==0?Pe=5:(Pe=0,_n=xl=null,fv(t,t.pendingLanes)),u=t.pendingLanes,u===0&&(Ua=null),hc(a),l=l.stateNode,Yt&&typeof Yt.onCommitFiberRoot=="function")try{Yt.onCommitFiberRoot(eu,l,void 0,(l.current.flags&128)===128)}catch{}if(i!==null){l=ue.T,u=ye.p,ye.p=2,ue.T=null;try{for(var o=t.onRecoverableError,m=0;m<i.length;m++){var S=i[m];o(S.value,{componentStack:S.stack})}}finally{ue.T=l,ye.p=u}}if(i=bi,o=xi,xi=null,i!==null&&(bi=null,o===null&&(o=[]),e!==null))for(S=0;S<i.length;S++)l=(0,i[S])(o),l!==void 0&&e.finished.finally(l);(Ll&3)!==0&&Ts(),Bl(t),u=t.pendingLanes,(a&261930)!==0&&(u&42)!==0?t===xs?Uu++:(Uu=0,xs=t):(Uu=0,xs=null),ku(0)}}function fv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,vu(t)))}function Ts(){return pi!==null&&(pi.skipTransition(),pi=null),af(),nf(),uf(),rf()}function rf(){if(Pe!==5)return!1;var e=xl,t=Io;Io=0;var l=hc(Ll),a=ue.T,i=ye.p;try{ye.p=32>l?32:l,ue.T=null,l=ef,ef=null;var u=xl,o=Ll;if(Pe=0,_n=xl=null,Ll=0,(ke&6)!==0)throw Error(c(331));var m=ke;if(ke|=4,$y(u.current),Zy(u,u.current,o,l),ke=m,ku(0,!1),Yt&&typeof Yt.onPostCommitFiberRoot=="function")try{Yt.onPostCommitFiberRoot(eu,u)}catch{}return!0}finally{ye.p=i,ue.T=a,fv(e,t)}}function dv(e,t,l){t=ul(l,t),t=_o(e.stateNode,t,2),e=za(e,t,2),e!==null&&(lu(e,2),Bl(e))}function Be(e,t,l){if(e.tag===3)dv(e,e,l);else for(;t!==null;){if(t.tag===3){dv(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ua===null||!Ua.has(a))){e=ul(l,e),l=sy(2),a=za(t,l,2),a!==null&&(cy(l,a,t,e),lu(a,2),Bl(a));break}}t=t.return}}function sf(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Tb;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)||(Wo=!0,i.add(l),e=jb.bind(null,e,t,l),t.then(e,e))}function jb(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ve===e&&(Oe&l)===l&&((tt===4||tt===3&&(Oe&62914560)===Oe&&300>Gt()-gs)&&(ke&2)===0?Ei(e,0):vs|=l,gi===Oe&&(gi=0)),Bl(e)}function hv(e,t){t===0&&(t=Pd()),e=rn(e,t),e!==null&&(lu(e,t),Bl(e))}function Mb(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),hv(e,l)}function Db(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(c(314))}a!==null&&a.delete(t),hv(e,l)}function Ub(e,t){return cc(e,t)}var Ti=null,Ni=null,cf=!1,Ns=!1,of=!1,Ha=0;function Bl(e){e!==Ni&&e.next===null&&(Ni===null?Ti=Ni=e:Ni=Ni.next=e),Ns=!0,cf||(cf=!0,Hb())}function ku(e,t){if(!of&&Ns){of=!0;do for(var l=!1,a=Ti;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var u=0;else{var o=a.suspendedLanes,m=a.pingedLanes;u=(1<<31-Vt(42|e)+1)-1,u&=i&~(o&~m),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,gv(a,u))}else u=Oe,u=vr(a,a===Ve?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||tu(a,u)||(l=!0,gv(a,u));a=a.next}while(l);of=!1}}function kb(){mv()}function mv(){Ns=cf=!1;var e=0;Ha!==0&&Jb()&&(e=Ha);for(var t=Gt(),l=null,a=Ti;a!==null;){var i=a.next,u=yv(a,t);u===0?(a.next=null,l===null?Ti=i:l.next=i,i===null&&(Ni=l)):(l=a,(e!==0||(u&3)!==0)&&(Ns=!0)),a=i}Pe!==0&&Pe!==5||ku(e),Ha!==0&&(Ha=0)}function yv(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var o=31-Vt(u),m=1<<o,S=i[o];S===-1?((m&l)===0||(m&a)!==0)&&(i[o]=e1(m,t)):S<=t&&(e.expiredLanes|=m),u&=~m}if(t=Ve,l=Oe,l=vr(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Le===2||Le===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&oc(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||tu(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&oc(a),hc(l)){case 2:case 8:l=Fd;break;case 32:l=dr;break;case 268435456:l=$d;break;default:l=dr}return a=vv.bind(null,e),l=cc(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&oc(a),e.callbackPriority=2,e.callbackNode=null,2}function vv(e,t){if(Pe!==0&&Pe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ts()&&e.callbackNode!==l)return null;var a=Oe;return a=vr(e,e===Ve?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(tv(e,a,t),yv(e,Gt()),e.callbackNode!=null&&e.callbackNode===l?vv.bind(null,e):null)}function gv(e,t){if(Ts())return null;tv(e,t,!0)}function Hb(){$b(function(){(ke&6)!==0?cc(Jd,kb):mv()})}function ff(){if(Ha===0){var e=hn;e===0&&(e=hr,hr<<=1,(hr&261888)===0&&(hr=256)),Ha=e}return Ha}function pv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Sr(e)}function qb(e,t,l,a,i){if(t==="submit"&&l&&l.stateNode===i){var u=pv((i[Ut]||null).action),o=a.submitter;o&&(t=(t=o[Ut]||null)?pv(t.formAction):o.getAttribute("formAction"),t!==null&&(u=t,o=null));var m=new Nr("action","action",null,a,i);e.push({event:m,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ha!==0){var S=new FormData(i,o);po(l,{pending:!0,data:S,method:i.method,action:u},null,S)}}else typeof u=="function"&&(m.preventDefault(),S=new FormData(i,o),po(l,{pending:!0,data:S,method:i.method,action:u},u,S))},currentTarget:i}]})}}for(var df=0;df<Uc.length;df++){var hf=Uc[df],Lb=hf.toLowerCase(),Bb=hf[0].toUpperCase()+hf.slice(1);vl(Lb,"on"+Bb)}vl(Vh,"onAnimationEnd"),vl(Xh,"onAnimationIteration"),vl(Kh,"onAnimationStart"),vl("dblclick","onDoubleClick"),vl("focusin","onFocus"),vl("focusout","onBlur"),vl(F1,"onTransitionRun"),vl($1,"onTransitionStart"),vl(W1,"onTransitionCancel"),vl(Zh,"onTransitionEnd"),Zn("onMouseEnter",["mouseout","mouseover"]),Zn("onMouseLeave",["mouseout","mouseover"]),Zn("onPointerEnter",["pointerout","pointerover"]),Zn("onPointerLeave",["pointerout","pointerover"]),an("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),an("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),an("onBeforeInput",["compositionend","keypress","textInput","paste"]),an("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),an("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),an("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hu="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(" "),Qb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hu));function bv(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 u=void 0;if(t)for(var o=a.length-1;0<=o;o--){var m=a[o],S=m.instance,R=m.currentTarget;if(m=m.listener,S!==u&&i.isPropagationStopped())break e;u=m,i.currentTarget=R;try{u(i)}catch(j){Or(j)}i.currentTarget=null,u=S}else for(o=0;o<a.length;o++){if(m=a[o],S=m.instance,R=m.currentTarget,m=m.listener,S!==u&&i.isPropagationStopped())break e;u=m,i.currentTarget=R;try{u(i)}catch(j){Or(j)}i.currentTarget=null,u=S}}}}function Ce(e,t){var l=t[nh];l===void 0&&(l=t[nh]=new Set);var a=e+"__bubble";l.has(a)||(xv(t,e,2,!1),l.add(a))}function mf(e,t,l){var a=0;t&&(a|=4),xv(l,e,a,t)}var Cs="_reactListening"+Math.random().toString(36).slice(2);function yf(e){if(!e[Cs]){e[Cs]=!0,rh.forEach(function(l){l!=="selectionchange"&&(Qb.has(l)||mf(l,!1,e),mf(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Cs]||(t[Cs]=!0,mf("selectionchange",!1,t))}}function xv(e,t,l,a){switch(c0(t)){case 2:var i=M2;break;case 8:i=D2;break;default:i=Uf}l=i.bind(null,t,l,e),i=void 0,!Sc||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 vf(e,t,l,a,i){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var o=a.tag;if(o===3||o===4){var m=a.stateNode.containerInfo;if(m===i)break;if(o===4)for(o=a.return;o!==null;){var S=o.tag;if((S===3||S===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;m!==null;){if(o=ln(m),o===null)return;if(S=o.tag,S===5||S===6||S===26||S===27){a=u=o;continue e}m=m.parentNode}}a=a.return}xh(function(){var R=u,j=bc(l),H=[];e:{var C=Jh.get(e);if(C!==void 0){var A=Nr,F=e;switch(e){case"keypress":if(_r(l)===0)break e;case"keydown":case"keyup":A=N1;break;case"focusin":F="focus",A=Nc;break;case"focusout":F="blur",A=Nc;break;case"beforeblur":case"afterblur":A=Nc;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":A=_h;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=h1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=w1;break;case Vh:case Xh:case Kh:A=v1;break;case Zh:A=j1;break;case"scroll":case"scrollend":A=f1;break;case"wheel":A=D1;break;case"copy":case"cut":case"paste":A=p1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Nh;break;case"submit":A=O1;break;case"toggle":case"beforetoggle":A=k1}var re=(t&4)!==0,Se=!re&&(e==="scroll"||e==="scrollend"),O=re?C!==null?C+"Capture":null:C;re=[];for(var _=R,w;_!==null;){var k=_;if(w=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||w===null||O===null||(k=iu(_,O),k!=null&&re.push(qu(_,k,w))),Se)break;_=_.return}0<re.length&&(C=new A(C,F,null,l,j),H.push({event:C,listeners:re}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",C=e==="mouseout"||e==="pointerout",A&&l!==pc&&(F=l.relatedTarget||l.fromElement)&&(ln(F)||F[Vn]))break e;(C||A)&&(F=j.window===j?j:(A=j.ownerDocument)?A.defaultView||A.parentWindow:window,C?(A=l.relatedTarget||l.toElement,C=R,A=A?ln(A):null,A!==null&&(Se=h(A),re=A.tag,A!==Se||re!==5&&re!==27&&re!==6)&&(A=null)):(C=null,A=R),C!==A&&(re=_h,k="onMouseLeave",O="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(re=Nh,k="onPointerLeave",O="onPointerEnter",_="pointer"),Se=C==null?F:nu(C),w=A==null?F:nu(A),F=new re(k,_+"leave",C,l,j),F.target=Se,F.relatedTarget=w,k=null,ln(j)===R&&(re=new re(O,_+"enter",A,l,j),re.target=w,re.relatedTarget=Se,k=re),Se=k,re=C&&A?ce(C,A,Gb):null,C!==null&&Sv(H,F,C,re,!1),A!==null&&Se!==null&&Sv(H,Se,A,re,!0)))}e:{if(C=R?nu(R):window,A=C.nodeName&&C.nodeName.toLowerCase(),A==="select"||A==="input"&&C.type==="file")var le=Mh;else if(Ah(C))if(Dh)le=K1;else{le=V1;var Re=Y1}else A=C.nodeName,!A||A.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?R&&gc(R.elementType)&&(le=Mh):le=X1;if(le&&(le=le(e,R))){jh(H,le,l,j);break e}Re&&Re(e,C,R)}switch(Re=R?nu(R):window,e){case"focusin":(Ah(Re)||Re.contentEditable==="true")&&(In=Re,jc=R,hu=null);break;case"focusout":hu=jc=In=null;break;case"mousedown":Mc=!0;break;case"contextmenu":case"mouseup":case"dragend":Mc=!1,Gh(H,l,j);break;case"selectionchange":if(J1)break;case"keydown":case"keyup":Gh(H,l,j)}var oe;if(zc)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else Pn?Rh(e,l)&&(ve="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ve="onCompositionStart");ve&&(Ch&&l.locale!=="ko"&&(Pn||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&Pn&&(oe=Sh()):(pa=j,Ec="value"in pa?pa.value:pa.textContent,Pn=!0)),Re=zs(R,ve),0<Re.length&&(ve=new Th(ve,e,null,l,j),H.push({event:ve,listeners:Re}),oe?ve.data=oe:(oe=wh(l),oe!==null&&(ve.data=oe)))),(oe=q1?L1(e,l):B1(e,l))&&(ve=zs(R,"onBeforeInput"),0<ve.length&&(Re=new Th("onBeforeInput","beforeinput",null,l,j),H.push({event:Re,listeners:ve}),Re.data=oe)),qb(H,e,R,l,j)}bv(H,t)})}function qu(e,t,l){return{instance:e,listener:t,currentTarget:l}}function zs(e,t){for(var l=t+"Capture",a=[];e!==null;){var i=e,u=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||u===null||(i=iu(e,l),i!=null&&a.unshift(qu(e,i,u)),i=iu(e,t),i!=null&&a.push(qu(e,i,u))),e.tag===3)return a;e=e.return}return[]}function Gb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Sv(e,t,l,a,i){for(var u=t._reactName,o=[];l!==null&&l!==a;){var m=l,S=m.alternate,R=m.stateNode;if(m=m.tag,S!==null&&S===a)break;m!==5&&m!==26&&m!==27||R===null||(S=R,i?(R=iu(l,u),R!=null&&o.unshift(qu(l,R,S))):i||(R=iu(l,u),R!=null&&o.push(qu(l,R,S)))),l=l.return}o.length!==0&&e.push({event:t,listeners:o})}var Yb=/\r\n?/g,Vb=/\u0000|\uFFFD/g;function Ev(e){return(typeof e=="string"?e:""+e).replace(Yb,`
`).replace(Vb,"")}function _v(e,t){return t=Ev(t),Ev(e)===t}function Qe(e,t,l,a,i,u){switch(l){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||Fn(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&Fn(e,""+a);else return;break;case"className":xr(e,"class",a);break;case"tabIndex":xr(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":xr(e,l,a);break;case"style":ph(e,a,u);return;case"data":if(t!=="object"){xr(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=Sr(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 u=="function"&&(l==="formAction"?(t!=="input"&&Qe(e,t,"name",i.name,i,null),Qe(e,t,"formEncType",i.formEncType,i,null),Qe(e,t,"formMethod",i.formMethod,i,null),Qe(e,t,"formTarget",i.formTarget,i,null)):(Qe(e,t,"encType",i.encType,i,null),Qe(e,t,"method",i.method,i,null),Qe(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Sr(a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=wl);return;case"onScroll":a!=null&&Ce("scroll",e);return;case"onScrollEnd":a!=null&&Ce("scrollend",e);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(c(60));(u!=null?u.__html:void 0)!==l&&(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=Sr(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"credentialless":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":Ce("beforetoggle",e),Ce("toggle",e),br(e,"popover",a);break;case"xlinkActuate":Jl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Jl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Jl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Jl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Jl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Jl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Jl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Jl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Jl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":br(e,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")l=c1.get(l)||l,br(e,l,a);else return}De=!0}function gf(e,t,l,a,i,u){switch(l){case"style":ph(e,a,u);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(i.children!=null)throw Error(c(60));(u!=null?u.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"children":if(typeof a=="string")Fn(e,a);else if(typeof a=="number"||typeof a=="bigint")Fn(e,""+a);else return;break;case"onScroll":a!=null&&Ce("scroll",e);return;case"onScrollEnd":a!=null&&Ce("scrollend",e);return;case"onClick":a!=null&&(e.onclick=wl);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!sh.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(i=l.endsWith("Capture"),u=l.slice(2,i?l.length-7:void 0),t=e[Ut]||null,t=t!=null?t[l]:null,typeof t=="function"&&e.removeEventListener(u,t,i),typeof a=="function")){typeof t!="function"&&t!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(u,a,i);break e}De=!0,l in e?e[l]=a:a===!0?e.setAttribute(l,""):br(e,l,a)}return}De=!0}function St(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ce("error",e),Ce("load",e);var a=!1,i=!1,u;for(u in l)if(l.hasOwnProperty(u)){var o=l[u];if(o!=null)switch(u){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Qe(e,t,u,o,l,null)}}i&&Qe(e,t,"srcSet",l.srcSet,l,null),a&&Qe(e,t,"src",l.src,l,null);return;case"input":Ce("invalid",e);var m=u=o=i=null,S=null,R=null;for(a in l)if(l.hasOwnProperty(a)){var j=l[a];if(j!=null)switch(a){case"name":i=j;break;case"type":o=j;break;case"checked":S=j;break;case"defaultChecked":R=j;break;case"value":u=j;break;case"defaultValue":m=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(c(137,t));break;default:Qe(e,t,a,j,l,null)}}mh(e,u,m,S,R,o,i,!1);return;case"select":Ce("invalid",e),a=o=u=null;for(i in l)if(l.hasOwnProperty(i)&&(m=l[i],m!=null))switch(i){case"value":u=m;break;case"defaultValue":o=m;break;case"multiple":a=m;default:Qe(e,t,i,m,l,null)}t=u,l=o,e.multiple=!!a,t!=null?Jn(e,!!a,t,!1):l!=null&&Jn(e,!!a,l,!0);return;case"textarea":Ce("invalid",e),u=i=a=null;for(o in l)if(l.hasOwnProperty(o)&&(m=l[o],m!=null))switch(o){case"value":a=m;break;case"defaultValue":i=m;break;case"children":u=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(c(91));break;default:Qe(e,t,o,m,l,null)}vh(e,a,i,u);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:Qe(e,t,S,a,l,null)}return;case"dialog":Ce("beforetoggle",e),Ce("toggle",e),Ce("cancel",e),Ce("close",e);break;case"iframe":case"object":Ce("load",e);break;case"video":case"audio":for(a=0;a<Hu.length;a++)Ce(Hu[a],e);break;case"image":Ce("error",e),Ce("load",e);break;case"details":Ce("toggle",e);break;case"embed":case"source":case"link":Ce("error",e),Ce("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(R in l)if(l.hasOwnProperty(R)&&(a=l[R],a!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Qe(e,t,R,a,l,null)}return;default:if(gc(t)){for(j in l)l.hasOwnProperty(j)&&(a=l[j],a!==void 0&&gf(e,t,j,a,l,void 0));return}}for(m in l)l.hasOwnProperty(m)&&(a=l[m],a!=null&&Qe(e,t,m,a,l,null))}var Xb={};function Kb(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,u=null,o=null,m=null,S=null,R=null,j=null;for(A in l){var H=l[A];if(l.hasOwnProperty(A)&&H!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":S=H;default:a.hasOwnProperty(A)||Qe(e,t,A,null,a,H)}}for(var C in a){var A=a[C];if(H=l[C],a.hasOwnProperty(C)&&(A!=null||H!=null))switch(C){case"type":A!==H&&(De=!0),u=A;break;case"name":A!==H&&(De=!0),i=A;break;case"checked":A!==H&&(De=!0),R=A;break;case"defaultChecked":A!==H&&(De=!0),j=A;break;case"value":A!==H&&(De=!0),o=A;break;case"defaultValue":A!==H&&(De=!0),m=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(c(137,t));break;default:A!==H&&Qe(e,t,C,A,a,H)}}yc(e,o,m,S,R,j,u,i);return;case"select":A=o=m=C=null;for(u in l)if(S=l[u],l.hasOwnProperty(u)&&S!=null)switch(u){case"value":break;case"multiple":A=S;default:a.hasOwnProperty(u)||Qe(e,t,u,null,a,S)}for(i in a)if(u=a[i],S=l[i],a.hasOwnProperty(i)&&(u!=null||S!=null))switch(i){case"value":u!==S&&(De=!0),C=u;break;case"defaultValue":u!==S&&(De=!0),m=u;break;case"multiple":u!==S&&(De=!0),o=u;default:u!==S&&Qe(e,t,i,u,a,S)}t=m,l=o,a=A,C!=null?Jn(e,!!l,C,!1):!!a!=!!l&&(t!=null?Jn(e,!!l,t,!0):Jn(e,!!l,l?[]:"",!1));return;case"textarea":A=C=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:Qe(e,t,m,null,a,i)}for(o in a)if(i=a[o],u=l[o],a.hasOwnProperty(o)&&(i!=null||u!=null))switch(o){case"value":i!==u&&(De=!0),C=i;break;case"defaultValue":i!==u&&(De=!0),A=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(c(91));break;default:i!==u&&Qe(e,t,o,i,a,u)}yh(e,C,A);return;case"option":for(var F in l)if(C=l[F],l.hasOwnProperty(F)&&C!=null&&!a.hasOwnProperty(F))switch(F){case"selected":e.selected=!1;break;default:Qe(e,t,F,null,a,C)}for(S in a)if(C=a[S],A=l[S],a.hasOwnProperty(S)&&C!==A&&(C!=null||A!=null))switch(S){case"selected":C!==A&&(De=!0),e.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:Qe(e,t,S,C,a,A)}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 re in l)C=l[re],l.hasOwnProperty(re)&&C!=null&&!a.hasOwnProperty(re)&&Qe(e,t,re,null,a,C);for(R in a)if(C=a[R],A=l[R],a.hasOwnProperty(R)&&C!==A&&(C!=null||A!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(c(137,t));break;default:Qe(e,t,R,C,a,A)}return;default:if(gc(t)){for(var Se in l)C=l[Se],l.hasOwnProperty(Se)&&C!==void 0&&!a.hasOwnProperty(Se)&&gf(e,t,Se,void 0,a,C);for(j in a)C=a[j],A=l[j],!a.hasOwnProperty(j)||C===A||C===void 0&&A===void 0||gf(e,t,j,C,a,A);return}}for(var O in l)C=l[O],l.hasOwnProperty(O)&&C!=null&&!a.hasOwnProperty(O)&&Qe(e,t,O,null,a,C);for(H in a)C=a[H],A=l[H],!a.hasOwnProperty(H)||C===A||C==null&&A==null||Qe(e,t,H,C,a,A)}function Tv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Zb(){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],u=i.transferSize,o=i.initiatorType,m=i.duration;if(u&&m&&Tv(o)){for(o=0,m=i.responseEnd,a+=1;a<l.length;a++){var S=l[a],R=S.startTime;if(R>m)break;var j=S.transferSize,H=S.initiatorType;j&&Tv(H)&&(S=S.responseEnd,o+=j*(S<m?1:(m-R)/(S-R)))}if(--a,t+=8*(u+o)/(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 pf=null,bf=null;function Lu(e){return e.nodeType===9?e:e.ownerDocument}function Nv(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 Cv(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 zv(e,t,l,a){return l=Lu(l).createElement(e),l[vt]=a,l[Ut]=t,St(l,e,t),ft(l),l}function xf(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 Sf=null;function Jb(){var e=window.event;return e&&e.type==="popstate"?e===Sf?!1:(Sf=e,!0):(Sf=null,!1)}var Ef=typeof setTimeout=="function"?setTimeout:void 0,Fb=typeof clearTimeout=="function"?clearTimeout:void 0,Ov=typeof Promise=="function"?Promise:void 0,Rv=typeof requestAnimationFrame=="function"?requestAnimationFrame:Ef,$b=typeof queueMicrotask=="function"?queueMicrotask:typeof Ov<"u"?function(e){return Ov.resolve(null).then(e).catch(Wb)}:Ef;function Wb(e){setTimeout(function(){throw e})}function qa(e){return e==="head"}function wv(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),ji(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")wf(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,wf(l);for(var u=l.firstChild;u;){var o=u.nextSibling,m=u.nodeName;u[au]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=o}}else l==="body"&&wf(e.ownerDocument.body);l=i}while(l);ji(t)}function Av(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 jv(e,t,l){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,l!=null&&(e.style.viewTransitionClass=l),l=getComputedStyle(e),l.display==="inline"){if(t=e.getClientRects(),t.length===1)var a=1;else for(var i=a=0;i<t.length;i++){var u=t[i];0<u.width&&0<u.height&&a++}a===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+l.paddingTop,e.marginBottom="-"+l.paddingBottom)}}function Mv(e,t){e=e.style,t=t.style;var l=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=l==null||typeof l=="boolean"?"":(""+l).trim(),l=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=l==null||typeof l=="boolean"?"":(""+l).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(l=t.display,e.display=l==null||typeof l=="boolean"?"":l,l=t.margin,l!=null?e.margin=l:(l=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=l==null||typeof l=="boolean"?"":l,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Pb(e,t,l){return l=l.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=l.innerHeight&&e.left<=l.innerWidth}}function _f(e){var t=e.getBoundingClientRect(),l=getComputedStyle(e);return Pb(t,l,e)}function Ib(e){return e.documentElement.clientHeight}function e2(e){this.addEventListener("load",e),this.addEventListener("error",e)}function t2(e,t,l,a,i,u,o,m,S){var R=t.nodeType===9?t:t.ownerDocument;try{var j=R.startViewTransition({update:function(){var C=R.defaultView,A=C.navigation&&C.navigation.transition,F=R.fonts.status;a();var re=[];if(F==="loaded"&&(Ib(R),R.fonts.status==="loading"&&re.push(R.fonts.ready)),F=re.length,e!==null)for(var Se=e.suspenseyImages,O=0,_=0;_<Se.length;_++){var w=Se[_];if(!w.complete){var k=w.getBoundingClientRect();if(0<k.bottom&&0<k.right&&k.top<C.innerHeight&&k.left<C.innerWidth){if(O+=e0(w),O>ws){re.length=F;break}w=new Promise(e2.bind(w)),re.push(w)}}}if(0<re.length)return C=Promise.race([Promise.all(re),new Promise(function(le){return setTimeout(le,500)})]).then(i,i),(A?Promise.allSettled([A.finished,C]):C).then(u,u);if(i(),A)return A.finished.then(u,u);u()},types:l});R.__reactViewTransition=j;var H=[];return j.ready.then(function(){for(var C=R.documentElement.getAnimations({subtree:!0}),A=0;A<C.length;A++){var F=C[A],re=F.effect,Se=re.pseudoElement;if(Se!=null&&Se.startsWith("::view-transition")){H.push(F),F=re.getKeyframes();for(var O=Se=void 0,_=!0,w=0;w<F.length;w++){var k=F[w],le=k.width;if(Se===void 0)Se=le;else if(Se!==le){_=!1;break}if(le=k.height,O===void 0)O=le;else if(O!==le){_=!1;break}delete k.width,delete k.height,k.transform==="none"&&delete k.transform}_&&Se!==void 0&&O!==void 0&&(re.setKeyframes(F),_=getComputedStyle(re.target,re.pseudoElement),_.width!==Se||_.height!==O)&&(_=F[0],_.width=Se,_.height=O,_=F[F.length-1],_.width=Se,_.height=O,re.setKeyframes(F))}}o()},function(C){R.__reactViewTransition===j&&(R.__reactViewTransition=null);try{if(typeof C=="object"&&C!==null)switch(C.name){case"InvalidStateError":(C.message==="View transition was skipped because document visibility state is hidden."||C.message==="Skipping view transition because document visibility state has become hidden."||C.message==="Skipping view transition because viewport size changed."||C.message==="Transition was aborted because of invalid state")&&(C=null)}C!==null&&S(C)}finally{a(),i(),o()}}),j.finished.finally(function(){for(var C=0;C<H.length;C++)H[C].cancel();R.__reactViewTransition===j&&(R.__reactViewTransition=null),m()}),j}catch{return a(),i(),o(),null}}function Tn(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}Tn.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:X({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Tn.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,l=e.getAnimations({subtree:!0}),a=[],i=0;i<l.length;i++){var u=l[i].effect;u!==null&&u.target===e&&u.pseudoElement===t&&a.push(l[i])}return a},Tn.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Dv(e){return{name:e,group:new Tn("group",e),imagePair:new Tn("image-pair",e),old:new Tn("old",e),new:new Tn("new",e)}}function Pt(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Pt.prototype.addEventListener=function(e,t,l){var a=null,i=null;if(!(l!=null&&typeof l!="boolean"&&(a=l.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var u=this._eventListeners;if(kv(u,e,t,l)===-1){var o=this,m=t;l!=null&&typeof l!="boolean"&&l.once===!0&&(m=function(S){o.removeEventListener(e,t,l),typeof t=="function"?t.call(this,S):t.handleEvent(S)}),a!==null&&(i=o.removeEventListener.bind(o,e,t,l),a.addEventListener("abort",i,{once:!0}),i=a.removeEventListener.bind(a,"abort",i)),a=Ci(l),u.push({type:e,listener:t,optionsOrUseCapture:l,attachedListener:m,cleanup:i}),p(this._fragmentFiber.child,!1,l2,e,m,a)}this._eventListeners=u}};function l2(e,t,l,a){return U(e).addEventListener(t,l,a),!1}Pt.prototype.removeEventListener=function(e,t,l){var a=this._eventListeners;if(a!==null&&(t=kv(a,e,t,l),t!==-1)){var i=a[t];l=i.attachedListener;var u=i.cleanup;i=Ci(i.optionsOrUseCapture),p(this._fragmentFiber.child,!1,a2,e,l,i),a.splice(t,1),u!==null&&u()}};function a2(e,t,l,a){return U(e).removeEventListener(t,l,a),!1}function Ci(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Uv(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function kv(e,t,l,a){if(e.length===0)return-1;a=Uv(a);for(var i=0;i<e.length;i++){var u=e[i];if(u.type===t&&u.listener===l&&Uv(u.optionsOrUseCapture)===a)return i}return-1}Pt.prototype.dispatchEvent=function(e){var t=z(this._fragmentFiber);if(t===null)return!0;t=U(t);var l=this._eventListeners;if(l!==null&&0<l.length||!e.bubbles){var a=t.nodeType===9?t.createComment(""):document.createTextNode("");if(l)for(var i=0;i<l.length;i++){var u=l[i];a.addEventListener(u.type,u.attachedListener,Ci(u.optionsOrUseCapture))}if(t.appendChild(a),e=a.dispatchEvent(e),l)for(i=0;i<l.length;i++)u=l[i],a.removeEventListener(u.type,u.attachedListener,Ci(u.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)},Pt.prototype.focus=function(e){p(this._fragmentFiber.child,!0,Hv,e,void 0,void 0)};function Hv(e,t){return e.tag===6?!1:(e=U(e),y2(e,t))}Pt.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,Tf,t,void 0,void 0);for(var l=t.length-1;0<=l&&!Hv(t[l],e);l--);};function Tf(e,t){return t.push(e),!1}Pt.prototype.blur=function(){var e=z(this._fragmentFiber);e!==null&&(e=U(e),e=Lu(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,n2,e,void 0,void 0))};function n2(e,t){return e.tag===6?!1:(e=U(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Pt.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,i2,e,void 0,void 0)};function i2(e,t){return e.tag===6||(e=U(e),t.observe(e)),!1}Pt.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,u2,e,void 0,void 0);for(var l=t=0;l<Sl.length;l++){var a=Sl[l];a.fragmentInstance===this&&a.observer===e?e.unobserve(a.instance):Sl[t++]=a}Sl.length=t}};function u2(e,t){return e.tag===6||(e=U(e),t.unobserve(e)),!1}var Sl=[],Nf=!1;function r2(e,t,l){Sl.push({fragmentInstance:e,observer:t,instance:l}),Nf||(Nf=!0,v2(function(){Nf=!1;var a=Sl;Sl=[];for(var i=0;i<a.length;i++){var u=a[i];u.observer.unobserve(u.instance)}}))}Pt.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,s2,e,void 0,void 0),e};function s2(e,t){if(e.tag===6){e=e.stateNode;var l=e.ownerDocument.createRange();l.selectNodeContents(e),t.push.apply(t,l.getClientRects())}else e=U(e),t.push.apply(t,e.getClientRects());return!1}Pt.prototype.getRootNode=function(e){var t=z(this._fragmentFiber);return t===null?this:U(t).getRootNode(e)},Pt.prototype.compareDocumentPosition=function(e){var t=z(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var l=[];p(this._fragmentFiber.child,!1,Tf,l,void 0,void 0);var a=U(t);if(l.length===0){if(l=a,q(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(l=t)}t=this._fragmentFiber;var i=a=l.compareDocumentPosition(e);return l===e?i=Node.DOCUMENT_POSITION_CONTAINS:a&Node.DOCUMENT_POSITION_CONTAINED_BY&&(l=G(t)[1],l===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=U(l).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=U(l[0]),i=U(l[l.length-1]);var u=q(this._fragmentFiber)?t.parentElement:a;if(u==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=u.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,u=u.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),m=i.compareDocumentPosition(e),S=o&Node.DOCUMENT_POSITION_CONTAINED_BY||m&Node.DOCUMENT_POSITION_CONTAINED_BY;return m=a&&u&&o&Node.DOCUMENT_POSITION_FOLLOWING&&m&Node.DOCUMENT_POSITION_PRECEDING,t=a&&t===e||u&&i===e||S||m?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&t===e||!u&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||c2(t,this._fragmentFiber,l[0],l[l.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function c2(e,t,l,a,i){var u=ln(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(l=!!u)e:{for(;u!==null;){if(u.tag===7&&(u===t||u.alternate===t)){l=!0;break e}u=u.return}l=!1}return l}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(u===null)return u=i.ownerDocument,i===u||i===u.documentElement||i===u.body;e:{for(u=t,t=z(t);u!==null;){if(!(u.tag!==5&&u.tag!==3&&u.tag!==27||u!==t&&u.alternate!==t)){u=!0;break e}u=u.return}u=!1}return u}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!u)&&!(t=u===l)&&(t=ce(l,u,K),t===null?t=!1:(p(t,!0,Z,u,l),u=Q,Q=null,t=u!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!u)&&!(t=u===a)&&(t=ce(a,u,K),t===null?t=!1:(p(t,!0,I,u,a),u=Q,Y=Q=null,t=u!==null)),t):!1}function qv(e,t){var l=e.ownerDocument.createRange();l.selectNodeContents(e),e=l.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Pt.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(c(566));var t=[];p(this._fragmentFiber.child,!1,Tf,t,void 0,void 0);var l=e!==!1;if(t.length===0){var a=G(this._fragmentFiber);if(a=l?a[1]||a[0]||z(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=U(a),qv(e,l);return}if(a=U(a),a.nodeType!==9){if(a.nodeType===11){l="host"in a?a.host:null,l!==null&&l.scrollIntoView(e);return}a.scrollIntoView(e)}}for(a=l?t.length-1:0;a!==(l?-1:t.length);){var i=t[a];i.tag===6?(i=U(i),qv(i,l)):U(i).scrollIntoView(e),a+=l?-1:1}};function o2(e,t){return e=U(e),Lv(e,t),!1}function Lv(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Bv(e,t){var l=t._eventListeners;if(l!==null)for(var a=0;a<l.length;a++){var i=l[a];e.addEventListener(i.type,i.attachedListener,Ci(i.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){for(var o=0,m=0;m<Sl.length;m++){var S=Sl[m];(S.fragmentInstance!==t||S.observer!==u||S.instance!==e)&&(Sl[o++]=S)}Sl.length=o,u.observe(e)}),Lv(e,t))}function f2(e,t){var l=t._eventListeners;if(l!==null)for(var a=0;a<l.length;a++){var i=l[a];e.removeEventListener(i.type,i.attachedListener,Ci(i.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){typeof u.rootMargin=="string"?r2(t,u,e):u.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Cf(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":Cf(l),pr(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function d2(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[au])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==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(u=e.getAttribute("src"),(u!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=fl(e.nextSibling),e===null)break}return null}function h2(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=fl(e.nextSibling),e===null))return null;return e}function Qv(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=fl(e.nextSibling),e===null))return null;return e}function zf(e){return e.data==="$?"||e.data==="$~"}function Of(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function m2(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 fl(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 Rf=null;function Gv(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return fl(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Yv(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 y2(e,t){function l(){a=!0}if(e.ownerDocument.activeElement===e)return!0;var a=!1;try{e.ownerDocument.addEventListener("focus",l,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",l,!0)}return a}function v2(e){Rv(function(){Rv(function(t){return e(t)})})}function Vv(e,t,l){switch(t=Lu(l),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Xv(e,t,l){for(var a in l){var i=l[a];l.hasOwnProperty(a)&&i!=null&&Qe(e,t,a,null,Xb,i)}l.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===wl&&(e.onclick=null),pr(e)}function wf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);pr(e)}var dl=new Map,Kv=new Set;function Bu(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var ra=ye.d;ye.d={f:g2,r:p2,D:b2,C:x2,L:S2,m:E2,X:T2,S:_2,M:N2};function g2(){var e=ra.f(),t=Ss();return e||t}function p2(e){var t=Xn(e);t!==null&&t.tag===5&&t.type==="form"?Jm(t):ra.r(e)}var zi=typeof document>"u"?null:document;function Zv(e,t,l){var a=zi;if(a&&typeof t=="string"&&t){var i=nl(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof l=="string"&&(i+='[crossorigin="'+l+'"]'),Kv.has(i)||(Kv.add(i),e={rel:e,crossOrigin:l,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),St(t,"link",e),ft(t),a.head.appendChild(t)))}}function b2(e){ra.D(e),Zv("dns-prefetch",e,null)}function x2(e,t){ra.C(e,t),Zv("preconnect",e,t)}function S2(e,t,l){ra.L(e,t,l);var a=zi;if(a&&e&&t){var i='link[rel="preload"][as="'+nl(t)+'"]';t==="image"&&l&&l.imageSrcSet?(i+='[imagesrcset="'+nl(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(i+='[imagesizes="'+nl(l.imageSizes)+'"]')):i+='[href="'+nl(e)+'"]';var u=i;switch(t){case"style":u=Oi(e);break;case"script":u=Ri(e)}if(!(dl.has(u)||(e=X({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),dl.set(u,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Qu(u))||t==="script"&&a.querySelector(Gu(u))))){var o=a.createElement("link");St(o,"link",e),t==="style"&&(o[gr]=!0,o.onload=o.onerror=function(){uh(o)}),ft(o),a.head.appendChild(o)}}}function E2(e,t){ra.m(e,t);var l=zi;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+nl(a)+'"][href="'+nl(e)+'"]',u=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ri(e)}if(!dl.has(u)&&(e=X({rel:"modulepreload",href:e},t),dl.set(u,e),l.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Gu(u)))return}a=l.createElement("link"),St(a,"link",e),ft(a),l.head.appendChild(a)}}}function _2(e,t,l){ra.S(e,t,l);var a=zi;if(a&&e){var i=Kn(a).hoistableStyles,u=Oi(e);t=t||"default";var o=i.get(u);if(!o){var m={loading:0,preload:null};if(o=a.querySelector(Qu(u)))m.loading=5;else{e=X({rel:"stylesheet",href:e,"data-precedence":t},l),(l=dl.get(u))&&Af(e,l);var S=o=a.createElement("link");ft(S),St(S,"link",e),S._p=new Promise(function(R,j){S.onload=R,S.onerror=j}),S.addEventListener("load",function(){m.loading|=1}),S.addEventListener("error",function(){m.loading|=2}),m.loading|=4,Os(o,t,a)}o={type:"stylesheet",instance:o,count:1,state:m},i.set(u,o)}}}function T2(e,t){ra.X(e,t);var l=zi;if(l&&e){var a=Kn(l).hoistableScripts,i=Ri(e),u=a.get(i);u||(u=l.querySelector(Gu(i)),u||(e=X({src:e,async:!0},t),(t=dl.get(i))&&jf(e,t),u=l.createElement("script"),ft(u),St(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(i,u))}}function N2(e,t){ra.M(e,t);var l=zi;if(l&&e){var a=Kn(l).hoistableScripts,i=Ri(e),u=a.get(i);u||(u=l.querySelector(Gu(i)),u||(e=X({src:e,async:!0,type:"module"},t),(t=dl.get(i))&&jf(e,t),u=l.createElement("script"),ft(u),St(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(i,u))}}function Jv(e,t,l,a){var i=(i=ya.current)?Bu(i):null;if(!i)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=Oi(l.href),t=Kn(i).hoistableStyles,a=t.get(l),a||(a={type:"style",instance:null,count:0,state:null},t.set(l,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=Oi(l.href);var u=Kn(i).hoistableStyles,o=u.get(e);if(o||(i=i.ownerDocument||i,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,o),(u=i.querySelector(Qu(e)))?u._p||(o.instance=u,o.state.loading=5):(u=dl.get(e),u||(u={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},dl.set(e,u)),C2(i,e,u,o.state))),t&&a===null)throw Error(c(528,""));return o}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(l=Ri(l),t=Kn(i).hoistableScripts,a=t.get(l),a||(a={type:"script",instance:null,count:0,state:null},t.set(l,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function Oi(e){return'href="'+nl(e)+'"'}function Qu(e){return'link[rel="stylesheet"]['+e+"]"}function Fv(e){return X({},e,{"data-precedence":e.precedence,precedence:null})}function C2(e,t,l,a){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[gr]!==!0){a.loading=1;return}}else t=e.createElement("link"),t[gr]=!0,t.onload=t.onerror=uh.bind(null,t),St(t,"link",l),ft(t),e.head.appendChild(t);a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2})}function Ri(e){return'[src="'+nl(e)+'"]'}function Gu(e){return"script[async]"+e}function $v(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+nl(l.href)+'"]');if(a)return t.instance=a,ft(a),a;var i=X({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ft(a),St(a,"style",i),Os(a,l.precedence,e),t.instance=a;case"stylesheet":i=Oi(l.href);var u=e.querySelector(Qu(i));if(u)return t.state.loading|=4,t.instance=u,ft(u),u;a=Fv(l),(i=dl.get(i))&&Af(a,i),u=(e.ownerDocument||e).createElement("link"),ft(u);var o=u;return o._p=new Promise(function(m,S){o.onload=m,o.onerror=S}),St(u,"link",a),t.state.loading|=4,Os(u,l.precedence,e),t.instance=u;case"script":return u=Ri(l.src),(i=e.querySelector(Gu(u)))?(t.instance=i,ft(i),i):(a=l,(i=dl.get(u))&&(a=X({},l),jf(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),ft(i),St(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Os(a,l.precedence,e));return t.instance}function Os(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,u=i,o=0;o<a.length;o++){var m=a[o];if(m.dataset.precedence===t)u=m;else if(u!==i)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Af(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function jf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Rs=null;function Wv(e,t,l){if(Rs===null){var a=new Map,i=Rs=new Map;i.set(l,a)}else i=Rs,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 u=l[i];if(!(u[au]||u[vt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var o=u.getAttribute(t)||"";o=e+o;var m=a.get(o);m?m.push(u):a.set(o,[u])}}return a}function Mf(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function z2(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 Pv(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Iv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function e0(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function t0(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=e0(t),e.suspenseyImages.push(t)),e=w2.bind(e),t.decode().then(e,e))}function O2(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=Oi(a.href),u=t.querySelector(Qu(i));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Yu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,ft(u);return}u=t.ownerDocument||t,a=Fv(a),(i=dl.get(i))&&Af(a,i),u=u.createElement("link"),ft(u);var o=u;o._p=new Promise(function(m,S){o.onload=m,o.onerror=S}),St(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Yu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var ws=0;function R2(e,t){return e.stylesheets&&e.count===0&&js(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&js(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&ws===0&&(ws=62500*Zb());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&js(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>ws?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function l0(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)js(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Yu(){this.count--,l0(this)}function w2(){this.imgCount--,l0(this)}var As=null;function js(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,As=new Map,t.forEach(A2,e),As=null,Yu.call(e))}function A2(e,t){if(!(t.state.loading&4)){var l=As.get(e);if(l)var a=l.get(null);else{l=new Map,As.set(e,l);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<i.length;u++){var o=i[u];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(l.set(o.dataset.precedence,o),a=o)}a&&l.set(null,a)}i=t.instance,o=i.getAttribute("data-precedence"),u=l.get(o)||a,u===a&&l.set(null,i),l.set(o,i),this.count++,a=Yu.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),u?u.parentNode.insertBefore(i,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var wi={$$typeof:ee,Provider:null,Consumer:null,_currentValue:Qt,_currentValue2:Qt,_threadCount:0};function j2(e,t,l,a,i,u,o,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=fc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fc(0),this.hiddenUpdates=fc(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=u,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.transitionTypes=null,this.incompleteTransitions=new Map}function a0(e,t,l,a,i,u,o,m,S,R,j,H){return e=new j2(e,t,l,o,S,R,j,H,m),t=1,u===!0&&(t|=24),u=kt(3,null,null,t),e.current=u,u.stateNode=e,t=Kc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},$c(u),e}function n0(e){return e?(e=li,e):li}function i0(e,t,l,a,i,u){i=n0(i),a.context===null?a.context=i:a.pendingContext=i,a=Ca(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=za(e,a,t),l!==null&&(Bt(l,e,t),xu(l,e,t))}function u0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Df(e,t){u0(e,t),(e=e.alternate)&&u0(e,t)}function r0(e){if(e.tag===13||e.tag===31){var t=rn(e,67108864);t!==null&&Bt(t,e,67108864),Df(e,67108864)}}function s0(e){if(e.tag===13||e.tag===31){var t=Wt();t=dc(t);var l=rn(e,t);l!==null&&Bt(l,e,t),Df(e,t)}}var Ai=!0;function M2(e,t,l,a){var i=ue.T;ue.T=null;var u=ye.p;try{ye.p=2,Uf(e,t,l,a)}finally{ye.p=u,ue.T=i}}function D2(e,t,l,a){var i=ue.T;ue.T=null;var u=ye.p;try{ye.p=8,Uf(e,t,l,a)}finally{ye.p=u,ue.T=i}}function Uf(e,t,l,a){if(Ai){var i=kf(a);if(i===null)vf(e,t,a,Ms,l),o0(e,a);else if(k2(i,e,t,l,a))a.stopPropagation();else if(o0(e,a),t&4&&-1<U2.indexOf(e)){for(;i!==null;){var u=Xn(i);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var o=tn(u.pendingLanes);if(o!==0){var m=u;for(m.pendingLanes|=2,m.entangledLanes|=2;o;){var S=1<<31-Vt(o);m.entanglements[1]|=S,o&=~S}Bl(u),(ke&6)===0&&(ps=Gt()+500,ku(0))}}break;case 31:case 13:m=rn(u,2),m!==null&&Bt(m,u,2),Ss(),Df(u,2)}if(u=kf(a),u===null&&vf(e,t,a,Ms,l),u===i)break;i=u}i!==null&&a.stopPropagation()}else vf(e,t,a,null,l)}}function kf(e){return e=bc(e),Hf(e)}var Ms=null;function Hf(e){if(Ms=null,e=ln(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=d(t),e!==null)return e;e=null}else if(l===31){if(e=v(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 Ms=e,null}function c0(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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Zp()){case Jd:return 2;case Fd:return 8;case dr:case Jp:return 32;case $d:return 268435456;default:return 32}default:return 32}}var qf=!1,La=null,Ba=null,Qa=null,Vu=new Map,Xu=new Map,Ga=[],U2="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 o0(e,t){switch(e){case"focusin":case"focusout":La=null;break;case"dragenter":case"dragleave":Ba=null;break;case"mouseover":case"mouseout":Qa=null;break;case"pointerover":case"pointerout":Vu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xu.delete(t.pointerId)}}function Ku(e,t,l,a,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[i]},t!==null&&(t=Xn(t),t!==null&&r0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function k2(e,t,l,a,i){switch(t){case"focusin":return La=Ku(La,e,t,l,a,i),!0;case"dragenter":return Ba=Ku(Ba,e,t,l,a,i),!0;case"mouseover":return Qa=Ku(Qa,e,t,l,a,i),!0;case"pointerover":var u=i.pointerId;return Vu.set(u,Ku(Vu.get(u)||null,e,t,l,a,i)),!0;case"gotpointercapture":return u=i.pointerId,Xu.set(u,Ku(Xu.get(u)||null,e,t,l,a,i)),!0}return!1}function f0(e){var t=ln(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=d(l),t!==null){e.blockedOn=t,ah(e.priority,function(){s0(l)});return}}else if(t===31){if(t=v(l),t!==null){e.blockedOn=t,ah(e.priority,function(){s0(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 Ds(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=kf(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);pc=a,l.target.dispatchEvent(a),pc=null}else return t=Xn(l),t!==null&&r0(t),e.blockedOn=l,!1;t.shift()}return!0}function d0(e,t,l){Ds(e)&&l.delete(t)}function H2(){qf=!1,La!==null&&Ds(La)&&(La=null),Ba!==null&&Ds(Ba)&&(Ba=null),Qa!==null&&Ds(Qa)&&(Qa=null),Vu.forEach(d0),Xu.forEach(d0)}function Us(e,t){e.blockedOn===t&&(e.blockedOn=null,qf||(qf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,H2)))}var ks=null;function h0(e){ks!==e&&(ks=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ks===e&&(ks=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(Hf(a||l)===null)continue;break}var u=Xn(l);u!==null&&(e.splice(t,3),t-=3,po(u,{pending:!0,data:i,method:l.method,action:a},a,i))}}))}function ji(e){function t(S){return Us(S,e)}La!==null&&Us(La,e),Ba!==null&&Us(Ba,e),Qa!==null&&Us(Qa,e),Vu.forEach(t),Xu.forEach(t);for(var l=0;l<Ga.length;l++){var a=Ga[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ga.length&&(l=Ga[0],l.blockedOn===null);)f0(l),l.blockedOn===null&&Ga.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var i=l[a],u=l[a+1],o=i[Ut]||null;if(typeof u=="function")o||h0(l);else if(o){var m=null;if(u&&u.hasAttribute("formAction")){if(i=u,o=u[Ut]||null)m=o.formAction;else if(Hf(i)!==null)continue}else m=o.action;typeof m=="function"?l[a+1]=m:(l.splice(a,3),a-=3),h0(l)}}}function m0(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(o){return i=o})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var 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 Lf(e){this._internalRoot=e}Hs.prototype.render=Lf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var l=t.current,a=Wt();i0(l,a,e,t,null,null)},Hs.prototype.unmount=Lf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;i0(e.current,2,null,e,null,null),Ss(),t[Vn]=null}};function Hs(e){this._internalRoot=e}Hs.prototype.unstable_scheduleHydration=function(e){if(e){var t=lh();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ga.length&&t!==0&&t<Ga[l].priority;l++);Ga.splice(l,0,e),l===0&&f0(e)}};var y0=r.version;if(y0!=="19.3.1")throw Error(c(527,y0,"19.3.1"));ye.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=g(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var q2={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:ue,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qs.isDisabled&&qs.supportsFiber)try{eu=qs.inject(q2),Yt=qs}catch{}}return Ju.createRoot=function(e,t){if(!f(e))throw Error(c(299));var l=!1,a="",i=ny,u=iy,o=uy;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&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=a0(e,1,!1,null,null,l,a,null,i,u,o,m0),e[Vn]=t.current,yf(e),new Lf(t)},Ju.hydrateRoot=function(e,t,l){if(!f(e))throw Error(c(299));var a=!1,i="",u=ny,o=iy,m=uy,S=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(i=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(o=l.onCaughtError),l.onRecoverableError!==void 0&&(m=l.onRecoverableError),l.formState!==void 0&&(S=l.formState)),t=a0(e,1,!0,t,l??null,a,i,S,u,o,m,m0),t.context=n0(null),l=t.current,a=Wt(),a=dc(a),i=Ca(a),i.callback=null,za(l,i,a),l=a,t.current.lanes=l,lu(t,l),Bl(t),e[Vn]=t.current,yf(e),new Hs(t)},Ju.version="19.3.1",Ju}var C0;function J2(){if(C0)return Yf.exports;C0=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(r){console.error(r)}}return n(),Yf.exports=Z2(),Yf.exports}var F2=J2();const $2=bg(F2);/**
* react-router v7.18.4
*
* 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 Ed=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Sg=/^[\\/]{2}/;function W2(n,r){return r+n.replace(/\\/g,"/")}var z0="popstate";function O0(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function P2(n={}){function r(f,h){let{pathname:d="/",search:v="",hash:b=""}=Ln(f.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),Pf("",{pathname:d,search:v,hash:b},h.state&&h.state.usr||null,h.state&&h.state.key||"default")}function s(f,h){let d=f.document.querySelector("base"),v="";if(d&&d.getAttribute("href")){let b=f.location.href,g=b.indexOf("#");v=g===-1?b:b.slice(0,g)}return v+"#"+(typeof h=="string"?h:Hn(h))}function c(f,h){tl(f.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(h)})`)}return ex(r,s,c,n)}function We(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function tl(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function I2(){return Math.random().toString(36).substring(2,10)}function R0(n,r){return{usr:n.state,key:n.key,idx:r,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Pf(n,r,s=null,c,f){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?Ln(r):r,state:s,key:r&&r.key||c||I2(),mask:f}}function Hn({pathname:n="/",search:r="",hash:s=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function Ln(n){let r={};if(n){let s=n.indexOf("#");s>=0&&(r.hash=n.substring(s),n=n.substring(0,s));let c=n.indexOf("?");c>=0&&(r.search=n.substring(c),n=n.substring(0,c)),n&&(r.pathname=n)}return r}function ex(n,r,s,c={}){let{window:f=document.defaultView,v5Compat:h=!1}=c,d=f.history,v="POP",b=null,g=x();g==null&&(g=0,d.replaceState({...d.state,idx:g},""));function x(){return(d.state||{idx:null}).idx}function p(){v="POP";let U=x(),Q=U==null?null:U-g;g=U,b&&b({action:v,location:L.location,delta:Q})}function z(U,Q){v="PUSH";let Y=O0(U)?U:Pf(L.location,U,Q);s&&s(Y,U),g=x()+1;let Z=R0(Y,g),I=L.createHref(Y.mask||Y);try{d.pushState(Z,"",I)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;f.location.assign(I)}h&&b&&b({action:v,location:L.location,delta:1})}function q(U,Q){v="REPLACE";let Y=O0(U)?U:Pf(L.location,U,Q);s&&s(Y,U),g=x();let Z=R0(Y,g),I=L.createHref(Y.mask||Y);d.replaceState(Z,"",I),h&&b&&b({action:v,location:L.location,delta:0})}function G(U){return tx(f,U)}let L={get action(){return v},get location(){return n(f,d)},listen(U){if(b)throw new Error("A history only accepts one active listener");return f.addEventListener(z0,p),b=U,()=>{f.removeEventListener(z0,p),b=null}},createHref(U){return r(f,U)},createURL:G,encodeLocation(U){let Q=G(U);return{pathname:Q.pathname,search:Q.search,hash:Q.hash}},push:z,replace:q,go(U){return d.go(U)}};return L}function tx(n,r,s=!1){let c="http://localhost";n&&(c=n.location.origin!=="null"?n.location.origin:n.location.href),We(c,"No window.location.(origin|href) available to create URL");let f=typeof r=="string"?r:Hn(r);return f=f.replace(/ $/,"%20"),!s&&Sg.test(f)&&(f=c+f),new URL(f,c)}function Eg(n,r,s="/"){return lx(n,r,s,!1)}function lx(n,r,s,c,f){let h=typeof r=="string"?Ln(r):r,d=ha(h.pathname||"/",s);if(d==null)return null;let v=ax(n),b=null,g=mx(d);for(let x=0;b==null&&x<v.length;++x)b=hx(v[x],g,c);return b}function ax(n){let r=_g(n);return nx(r),r}function _g(n,r=[],s=[],c="",f=!1){let h=(d,v,b=f,g)=>{let x={relativePath:g===void 0?d.path||"":g,caseSensitive:d.caseSensitive===!0,childrenIndex:v,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(c)&&b)return;We(x.relativePath.startsWith(c),`Absolute route path "${x.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(c.length)}let p=Tl([c,x.relativePath]),z=s.concat(x);d.children&&d.children.length>0&&(We(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),_g(d.children,r,z,p,b)),!(d.path==null&&!d.index)&&r.push({path:p,score:fx(p,d.index),routesMeta:z.map((q,G)=>{let[L,U]=Cg(q.relativePath,q.caseSensitive,G===z.length-1);return{...q,matcher:L,compiledParams:U}})})};return n.forEach((d,v)=>{var b;if(d.path===""||!((b=d.path)!=null&&b.includes("?")))h(d,v);else for(let g of Tg(d.path))h(d,v,!0,g)}),r}function Tg(n){let r=n.split("/");if(r.length===0)return[];let[s,...c]=r,f=s.endsWith("?"),h=s.replace(/\?$/,"");if(c.length===0)return f?[h,""]:[h];let d=Tg(c.join("/")),v=[];return v.push(...d.map(b=>b===""?h:[h,b].join("/"))),f&&v.push(...d),v.map(b=>n.startsWith("/")&&b===""?"/":b)}function nx(n){n.sort((r,s)=>r.score!==s.score?s.score-r.score:dx(r.routesMeta.map(c=>c.childrenIndex),s.routesMeta.map(c=>c.childrenIndex)))}var ix=/^:[\w-]+$/,ux=3,rx=2,sx=1,cx=10,ox=-2,w0=n=>n==="*";function fx(n,r){let s=n.split("/"),c=s.length;return s.some(w0)&&(c+=ox),r&&(c+=rx),s.filter(f=>!w0(f)).reduce((f,h)=>f+(ix.test(h)?ux:h===""?sx:cx),c)}function dx(n,r){return n.length===r.length&&n.slice(0,-1).every((c,f)=>c===r[f])?n[n.length-1]-r[r.length-1]:0}function hx(n,r,s=!1){let{routesMeta:c}=n,f={},h="/",d=[];for(let v=0;v<c.length;++v){let b=c[v],g=v===c.length-1,x=h==="/"?r:r.slice(h.length)||"/",p={path:b.relativePath,caseSensitive:b.caseSensitive,end:g},z=b.matcher&&b.compiledParams?Ng(p,x,b.matcher,b.compiledParams):Zs(p,x),q=b.route;if(!z&&g&&s&&!c[c.length-1].route.index&&(z=Zs({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},x)),!z)return null;Object.assign(f,z.params),d.push({params:f,pathname:Tl([h,z.pathname]),pathnameBase:gx(Tl([h,z.pathnameBase])),route:q}),z.pathnameBase!=="/"&&(h=Tl([h,z.pathnameBase]))}return d}function Zs(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[s,c]=Cg(n.path,n.caseSensitive,n.end);return Ng(n,r,s,c)}function Ng(n,r,s,c){let f=r.match(s);if(!f)return null;let h=f[0],d=Zi(h,1),v=f.slice(1);return{params:c.reduce((g,{paramName:x,isOptional:p},z)=>{if(x==="*"){let G=v[z]||"";d=Zi(h.slice(0,h.length-G.length),1)}const q=v[z];return p&&!q?g[x]=void 0:g[x]=(q||"").replace(/%2F/g,"/"),g},{}),pathname:h,pathnameBase:d,pattern:n}}function Cg(n,r=!1,s=!0){tl(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 c=[],f="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,v,b,g,x)=>{if(c.push({paramName:v,isOptional:b!=null}),b){let p=x.charAt(g+d.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(c.push({paramName:"*"}),f+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?f+="\\/*$":n!==""&&n!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,r?void 0:"i"),c]}function mx(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return tl(!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 (${r}).`),n}}function ha(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let s=r.endsWith("/")?r.length-1:r.length,c=n.charAt(s);return c&&c!=="/"?null:n.slice(s)||"/"}function yx(n,r="/"){let{pathname:s,search:c="",hash:f=""}=typeof n=="string"?Ln(n):n,h;return s?(s=zg(s),s.startsWith("/")||s.startsWith("\\")?h=A0(s.substring(1),"/"):h=A0(s,r)):h=r,{pathname:h,search:px(c),hash:bx(f)}}function A0(n,r){let s=Zi(r).split("/");return n.split("/").forEach(f=>{f===".."?s.length>1&&s.pop():f!=="."&&s.push(f)}),s.length>1?s.join("/"):"/"}function Zf(n,r,s,c){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function vx(n){return n.filter((r,s)=>s===0||r.route.path&&r.route.path.length>0)}function _d(n){let r=vx(n);return r.map((s,c)=>c===r.length-1?s.pathname:s.pathnameBase)}function $s(n,r,s,c=!1){let f;typeof n=="string"?f=Ln(n):(f={...n},We(!f.pathname||!f.pathname.includes("?"),Zf("?","pathname","search",f)),We(!f.pathname||!f.pathname.includes("#"),Zf("#","pathname","hash",f)),We(!f.search||!f.search.includes("#"),Zf("#","search","hash",f)));let h=n===""||f.pathname==="",d=h?"/":f.pathname,v;if(d==null)v=s;else{let p=r.length-1;if(!c&&d.startsWith("..")){let z=d.split("/");for(;z[0]==="..";)z.shift(),p-=1;f.pathname=z.join("/")}v=p>=0?r[p]:"/"}let b=yx(f,v),g=d&&d!=="/"&&d.endsWith("/"),x=(h||d===".")&&s.endsWith("/");return!b.pathname.endsWith("/")&&(g||x)&&(b.pathname+="/"),b}var zg=n=>n.replace(/[\\/]{2,}/g,"/"),Tl=n=>zg(n.join("/"));function Zi(n,r=0){let s=n.length;for(;s>r&&n.charCodeAt(s-1)===47;)s--;return s===n.length?n:n.slice(0,s)}var gx=n=>Zi(n).replace(/^\/*/,"/"),px=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,bx=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,xx=class{constructor(n,r,s,c=!1){this.status=n,this.statusText=r||"",this.internal=c,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function Sx(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Ex(n){let r=n.map(s=>s.route.path).filter(Boolean);return Tl(r)||"/"}var Og=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Rg(n,r){let s=n;if(typeof s!="string"||!Ed.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let c=s,f=!1;if(Og)try{let h=new URL(window.location.href),d=Sg.test(s)?new URL(W2(s,h.protocol)):new URL(s),v=ha(d.pathname,r);d.origin===h.origin&&v!=null?s=v+d.search+d.hash:f=!0}catch{tl(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:f,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var j0=new URL("http://localhost");function Td(n){if(n.createURL)return n.createURL("/");try{return new URL(n.createHref("/"),j0)}catch{return j0}}function Jf(n,r){return n.origin===r.origin&&(n.origin!=="null"||n.protocol===r.protocol&&n.host===r.host)}function _x(n,r){if(n.startsWith("//"))return!0;let s=r.protocol.toLowerCase();return n.toLowerCase().startsWith(s)?r.host===""||n.slice(s.length).startsWith("//"):!1}function Nd(n,r,s,c){let f=null;try{f=n==null?null:new URL(n,s)}catch{}let h=new URL(r,s),d=f!=null&&!Jf(f,s),v=!Jf(h,s);if(c==="reject"){if(d||v)throw new Error("External navigation is not allowed")}else if(v&&(f==null||!_x(n,f)||!Jf(f,h)))throw new Error("External navigation is not allowed")}var wg=["POST","PUT","PATCH","DELETE"];new Set(wg);var Tx=["GET",...wg];new Set(Tx);var Nx=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Cx(n){try{return Nx.includes(new URL(n).protocol)}catch{return!1}}var $i=T.createContext(null);$i.displayName="DataRouter";var Ws=T.createContext(null);Ws.displayName="DataRouterState";var Ag=T.createContext(!1);function zx(){return T.useContext(Ag)}var jg=T.createContext({isTransitioning:!1});jg.displayName="ViewTransition";var Ox=T.createContext(new Map);Ox.displayName="Fetchers";var Rx=T.createContext(null);Rx.displayName="Await";var ll=T.createContext(null);ll.displayName="Navigation";var rr=T.createContext(null);rr.displayName="Location";var Cl=T.createContext({outlet:null,matches:[],isDataRoute:!1});Cl.displayName="Route";var Cd=T.createContext(null);Cd.displayName="RouteError";var Mg="REACT_ROUTER_ERROR",wx="REDIRECT",Ax="ROUTE_ERROR_RESPONSE";function jx(n){if(n.startsWith(`${Mg}:${wx}:{`))try{let r=JSON.parse(n.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function Mx(n){if(n.startsWith(`${Mg}:${Ax}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new xx(r.status,r.statusText,r.data)}catch{}}function Dx(n,{relative:r}={}){We(Wi(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:c}=T.useContext(ll),{hash:f,pathname:h,search:d}=sr(n,{relative:r}),v=h;return s!=="/"&&(v=h==="/"?s:Tl([s,h])),c.createHref({pathname:v,search:d,hash:f})}function Wi(){return T.useContext(rr)!=null}function yl(){return We(Wi(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(rr).location}var Dg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ug(n){T.useContext(ll).static||T.useLayoutEffect(n)}function Ps(){let{isDataRoute:n}=T.useContext(Cl);return n?Fx():Ux()}function Ux(){We(Wi(),"useNavigate() may be used only in the context of a <Router> component.");let n=T.useContext($i),{basename:r,navigator:s}=T.useContext(ll),{matches:c}=T.useContext(Cl),{pathname:f}=yl(),h=JSON.stringify(_d(c)),d=T.useRef(!1);return Ug(()=>{d.current=!0}),T.useCallback((b,g={})=>{if(tl(d.current,Dg),!d.current)return;if(typeof b=="number"){s.go(b);return}let x=$s(b,JSON.parse(h),f,g.relative==="path");n==null&&r!=="/"&&(x.pathname=x.pathname==="/"?r:Tl([r,x.pathname])),Nd(typeof b=="string"?b:Hn(b),s.createHref(x),Td(s),"reject"),(g.replace?s.replace:s.push)(x,g.state,g)},[r,s,h,f,n])}var kx=T.createContext(null);function Hx(n){let r=T.useContext(Cl).outlet;return T.useMemo(()=>r&&T.createElement(kx.Provider,{value:n},r),[r,n])}function sr(n,{relative:r}={}){let{matches:s}=T.useContext(Cl),{pathname:c}=yl(),f=JSON.stringify(_d(s));return T.useMemo(()=>$s(n,JSON.parse(f),c,r==="path"),[n,f,c,r])}function qx(n,r){return kg(n,r)}function kg(n,r,s){var U;We(Wi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=T.useContext(ll),{matches:f}=T.useContext(Cl),h=f[f.length-1],d=h?h.params:{},v=h?h.pathname:"/",b=h?h.pathnameBase:"/",g=h&&h.route;{let Q=g&&g.path||"";qg(v,!g||Q.endsWith("*")||Q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${Q}">) 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="${Q}"> to <Route path="${Q==="/"?"*":`${Q}/*`}">.`)}let x=yl(),p;if(r){let Q=typeof r=="string"?Ln(r):r;We(b==="/"||((U=Q.pathname)==null?void 0:U.startsWith(b)),`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 "${b}" but pathname "${Q.pathname}" was given in the \`location\` prop.`),p=Q}else p=x;let z=p.pathname||"/",q=z;if(b!=="/"){let Q=b.replace(/^\//,"").split("/");q="/"+z.replace(/^\//,"").split("/").slice(Q.length).join("/")}let G=s&&s.state.matches.length?s.state.matches.map(Q=>Object.assign(Q,{route:s.manifest[Q.route.id]||Q.route})):Eg(n,{pathname:q});tl(g||G!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),tl(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 "${p.pathname}${p.search}${p.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 L=Yx(G&&G.map(Q=>Object.assign({},Q,{params:Object.assign({},d,Q.params),pathname:Tl([b,c.encodeLocation?c.encodeLocation(Q.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Q.pathname]),pathnameBase:Q.pathnameBase==="/"?b:Tl([b,c.encodeLocation?c.encodeLocation(Q.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Q.pathnameBase])})),f,s);return r&&L?T.createElement(rr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...p},navigationType:"POP"}},L):L}function Lx(){let n=Jx(),r=Sx(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),s=n instanceof Error?n.stack:null,c="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:c},h={padding:"2px 4px",backgroundColor:c},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:h},"ErrorBoundary")," or"," ",T.createElement("code",{style:h},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},r),s?T.createElement("pre",{style:f},s):null,d)}var Bx=T.createElement(Lx,null),Hg=class extends T.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,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){this.props.onError?this.props.onError(n,r):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 s=Mx(n.digest);s&&(n=s)}let r=n!==void 0?T.createElement(Cl.Provider,{value:this.props.routeContext},T.createElement(Cd.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?T.createElement(Qx,{error:n},r):r}};Hg.contextType=Ag;var Ff=new WeakMap;function Qx({children:n,error:r}){let{basename:s,navigator:c}=T.useContext(ll);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let f=jx(r.digest);if(f){let h=Ff.get(r);if(h)throw h;let d=Rg(f.location,s),v=d.absoluteURL||d.to;if(Nd(f.location,v,Td(c),"allow-explicit"),Cx(v))throw new Error("Invalid redirect location");if(Og&&!Ff.get(r))if(d.isExternal||f.reloadDocument)window.location.href=v;else{const b=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:f.replace}));throw Ff.set(r,b),b}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${v}`})}}return n}function Gx({routeContext:n,match:r,children:s}){let c=T.useContext($i);return c&&c.static&&c.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=r.route.id),T.createElement(Cl.Provider,{value:n},s)}function Yx(n,r=[],s){let c=s==null?void 0:s.state;if(n==null){if(!c)return null;if(c.errors)n=c.matches;else if(r.length===0&&!c.initialized&&c.matches.length>0)n=c.matches;else return null}let f=n,h=c==null?void 0:c.errors;if(h!=null){let x=f.findIndex(p=>p.route.id&&(h==null?void 0:h[p.route.id])!==void 0);We(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),f=f.slice(0,Math.min(f.length,x+1))}let d=!1,v=-1;if(s&&c){d=c.renderFallback;for(let x=0;x<f.length;x++){let p=f[x];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(v=x),p.route.id){let{loaderData:z,errors:q}=c,G=p.route.loader&&!z.hasOwnProperty(p.route.id)&&(!q||q[p.route.id]===void 0);if(p.route.lazy||G){s.isStatic&&(d=!0),v>=0?f=f.slice(0,v+1):f=[f[0]];break}}}}let b=s==null?void 0:s.onError,g=c&&b?(x,p)=>{var z,q;b(x,{location:c.location,params:((q=(z=c.matches)==null?void 0:z[0])==null?void 0:q.params)??{},pattern:Ex(c.matches),errorInfo:p})}:void 0;return f.reduceRight((x,p,z)=>{let q,G=!1,L=null,U=null;c&&(q=h&&p.route.id?h[p.route.id]:void 0,L=p.route.errorElement||Bx,d&&(v<0&&z===0?(qg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),G=!0,U=null):v===z&&(G=!0,U=p.route.hydrateFallbackElement||null)));let Q=r.concat(f.slice(0,z+1)),Y=()=>{let Z;return q?Z=L:G?Z=U:p.route.Component?Z=T.createElement(p.route.Component,null):p.route.element?Z=p.route.element:Z=x,T.createElement(Gx,{match:p,routeContext:{outlet:x,matches:Q,isDataRoute:c!=null},children:Z})};return c&&(p.route.ErrorBoundary||p.route.errorElement||z===0)?T.createElement(Hg,{location:c.location,revalidation:c.revalidation,component:L,error:q,children:Y(),routeContext:{outlet:null,matches:Q,isDataRoute:!0},onError:g}):Y()},null)}function zd(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Vx(n){let r=T.useContext($i);return We(r,zd(n)),r}function Xx(n){let r=T.useContext(Ws);return We(r,zd(n)),r}function Kx(n){let r=T.useContext(Cl);return We(r,zd(n)),r}function Od(n){let r=Kx(n),s=r.matches[r.matches.length-1];return We(s.route.id,`${n} can only be used on routes that contain a unique "id"`),s.route.id}function Zx(){return Od("useRouteId")}function Jx(){var c;let n=T.useContext(Cd),r=Xx("useRouteError"),s=Od("useRouteError");return n!==void 0?n:(c=r.errors)==null?void 0:c[s]}function Fx(){let{router:n}=Vx("useNavigate"),r=Od("useNavigate"),s=T.useRef(!1);return Ug(()=>{s.current=!0}),T.useCallback(async(f,h={})=>{tl(s.current,Dg),s.current&&(typeof f=="number"?await n.navigate(f):await n.navigate(f,{fromRouteId:r,...h}))},[n,r])}var M0={};function qg(n,r,s){!r&&!M0[n]&&(M0[n]=!0,tl(!1,s))}T.memo($x);function $x({routes:n,manifest:r,future:s,state:c,isStatic:f,onError:h}){return kg(n,void 0,{manifest:r,state:c,isStatic:f,onError:h})}function D0({to:n,replace:r,state:s,relative:c}){We(Wi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f,navigator:h}=T.useContext(ll);tl(!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:d}=T.useContext(Cl),{pathname:v}=yl(),b=Ps(),g=$s(n,_d(d),v,c==="path");Nd(typeof n=="string"?n:Hn(n),h.createHref(g),Td(h),"reject");let x=JSON.stringify(g);return T.useEffect(()=>{b(JSON.parse(x),{replace:r,state:s,relative:c})},[b,x,c,r,s]),null}function Wx(n){return Hx(n.context)}function Gl(n){We(!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 Px({basename:n="/",children:r=null,location:s,navigationType:c="POP",navigator:f,static:h=!1,useTransitions:d}){We(!Wi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let v=n.replace(/^\/*/,"/"),b=T.useMemo(()=>({basename:v,navigator:f,static:h,useTransitions:d,future:{}}),[v,f,h,d]);typeof s=="string"&&(s=Ln(s));let{pathname:g="/",search:x="",hash:p="",state:z=null,key:q="default",mask:G}=s,L=T.useMemo(()=>{let U=ha(g,v);return U==null?null:{location:{pathname:U,search:x,hash:p,state:z,key:q,mask:G},navigationType:c}},[v,g,x,p,z,q,c,G]);return tl(L!=null,`<Router basename="${v}"> is not able to match the URL "${g}${x}${p}" because it does not start with the basename, so the <Router> won't render anything.`),L==null?null:T.createElement(ll.Provider,{value:b},T.createElement(rr.Provider,{children:r,value:L}))}function Ix({children:n,location:r}){return qx(If(n),r)}function If(n,r=[]){let s=[];return T.Children.forEach(n,(c,f)=>{if(!T.isValidElement(c))return;let h=[...r,f];if(c.type===T.Fragment){s.push.apply(s,If(c.props.children,h));return}We(c.type===Gl,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),We(!c.props.index||!c.props.children,"An index route cannot have child routes.");let d={id:c.props.id||h.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(d.children=If(c.props.children,h)),s.push(d)}),s}var Vs="get",Xs="application/x-www-form-urlencoded";function Is(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function eS(n){return Is(n)&&n.tagName.toLowerCase()==="button"}function tS(n){return Is(n)&&n.tagName.toLowerCase()==="form"}function lS(n){return Is(n)&&n.tagName.toLowerCase()==="input"}function aS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function nS(n,r){return n.button===0&&(!r||r==="_self")&&!aS(n)}function ed(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((r,s)=>{let c=n[s];return r.concat(Array.isArray(c)?c.map(f=>[s,f]):[[s,c]])},[]))}function iS(n,r){let s=ed(n);return r&&r.forEach((c,f)=>{s.has(f)||r.getAll(f).forEach(h=>{s.append(f,h)})}),s}var Bs=null;function uS(){if(Bs===null)try{new FormData(document.createElement("form"),0),Bs=!1}catch{Bs=!0}return Bs}var rS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $f(n){return n!=null&&!rS.has(n)?(tl(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xs}"`),null):n}function sS(n,r){let s,c,f,h,d;if(tS(n)){let v=n.getAttribute("action");c=v?ha(v,r):null,s=n.getAttribute("method")||Vs,f=$f(n.getAttribute("enctype"))||Xs,h=new FormData(n)}else if(eS(n)||lS(n)&&(n.type==="submit"||n.type==="image")){let v=n.form;if(v==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=n.getAttribute("formaction")||v.getAttribute("action");if(c=b?ha(b,r):null,s=n.getAttribute("formmethod")||v.getAttribute("method")||Vs,f=$f(n.getAttribute("formenctype"))||$f(v.getAttribute("enctype"))||Xs,h=new FormData(v,n),!uS()){let{name:g,type:x,value:p}=n;if(x==="image"){let z=g?`${g}.`:"";h.append(`${z}x`,"0"),h.append(`${z}y`,"0")}else g&&h.append(g,p)}}else{if(Is(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Vs,c=null,f=Xs,d=n}return h&&f==="text/plain"&&(d=h,h=void 0),{action:c,method:s.toLowerCase(),encType:f,formData:h,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Rd(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function Lg(n,r,s,c){let f=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return s?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${c}`:f.pathname=`${f.pathname}.${c}`:f.pathname==="/"?f.pathname=`_root.${c}`:r&&ha(f.pathname,r)==="/"?f.pathname=`${Zi(r)}/_root.${c}`:f.pathname=`${Zi(f.pathname)}.${c}`,f}async function cS(n,r){if(n.id in r)return r[n.id];try{let s=await import(n.module);return r[n.id]=s,s}catch(s){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function oS(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 fS(n,r,s){let c=await Promise.all(n.map(async f=>{let h=r.routes[f.route.id];if(h){let d=await cS(h,s);return d.links?d.links():[]}return[]}));return yS(c.flat(1).filter(oS).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function U0(n,r,s,c,f,h){let d=(b,g)=>s[g]?b.route.id!==s[g].route.id:!0,v=(b,g)=>{var x;return s[g].pathname!==b.pathname||((x=s[g].route.path)==null?void 0:x.endsWith("*"))&&s[g].params["*"]!==b.params["*"]};return h==="assets"?r.filter((b,g)=>d(b,g)||v(b,g)):h==="data"?r.filter((b,g)=>{var p;let x=c.routes[b.route.id];if(!x||!x.hasLoader)return!1;if(d(b,g)||v(b,g))return!0;if(b.route.shouldRevalidate){let z=b.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((p=s[0])==null?void 0:p.params)||{},nextUrl:new URL(n,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof z=="boolean")return z}return!0}):[]}function dS(n,r,{includeHydrateFallback:s}={}){return hS(n.map(c=>{let f=r.routes[c.route.id];if(!f)return[];let h=[f.module];return f.clientActionModule&&(h=h.concat(f.clientActionModule)),f.clientLoaderModule&&(h=h.concat(f.clientLoaderModule)),s&&f.hydrateFallbackModule&&(h=h.concat(f.hydrateFallbackModule)),f.imports&&(h=h.concat(f.imports)),h}).flat(1))}function hS(n){return[...new Set(n)]}function mS(n){let r={},s=Object.keys(n).sort();for(let c of s)r[c]=n[c];return r}function yS(n,r){let s=new Set;return new Set(r),n.reduce((c,f)=>{let h=JSON.stringify(mS(f));return s.has(h)||(s.add(h),c.push({key:h,link:f})),c},[])}function wd(){let n=T.useContext($i);return Rd(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function vS(){let n=T.useContext(Ws);return Rd(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Ad=T.createContext(void 0);Ad.displayName="FrameworkContext";function ec(){let n=T.useContext(Ad);return Rd(n,"You must render this element inside a <HydratedRouter> element"),n}function gS(n,r){let s=T.useContext(Ad),[c,f]=T.useState(!1),[h,d]=T.useState(!1),{onFocus:v,onBlur:b,onMouseEnter:g,onMouseLeave:x,onTouchStart:p}=r,z=T.useRef(null);T.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let L=Q=>{Q.forEach(Y=>{d(Y.isIntersecting)})},U=new IntersectionObserver(L,{threshold:.5});return z.current&&U.observe(z.current),()=>{U.disconnect()}}},[n]),T.useEffect(()=>{if(c){let L=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(L)}}},[c]);let q=()=>{f(!0)},G=()=>{f(!1),d(!1)};return s?n!=="intent"?[h,z,{}]:[h,z,{onFocus:Fu(v,q),onBlur:Fu(b,G),onMouseEnter:Fu(g,q),onMouseLeave:Fu(x,G),onTouchStart:Fu(p,q)}]:[!1,z,{}]}function Fu(n,r){return s=>{n&&n(s),s.defaultPrevented||r(s)}}function pS({page:n,...r}){let s=zx(),{nonce:c}=ec(),{router:f}=wd(),h=T.useMemo(()=>Eg(f.routes,n,f.basename),[f.routes,n,f.basename]);return h?(r.nonce==null&&c&&(r={...r,nonce:c}),s?T.createElement(xS,{page:n,matches:h,...r}):T.createElement(SS,{page:n,matches:h,...r})):null}function bS(n){let{manifest:r,routeModules:s}=ec(),[c,f]=T.useState([]);return T.useEffect(()=>{let h=!1;return fS(n,r,s).then(d=>{h||f(d)}),()=>{h=!0}},[n,r,s]),c}function xS({page:n,matches:r,...s}){let c=yl(),{future:f}=ec(),{basename:h}=wd(),d=T.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let v=Lg(n,h,f.v8_trailingSlashAwareDataRequests,"rsc"),b=!1,g=[];for(let x of r)typeof x.route.shouldRevalidate=="function"?b=!0:g.push(x.route.id);return b&&g.length>0&&v.searchParams.set("_routes",g.join(",")),[v.pathname+v.search]},[h,f.v8_trailingSlashAwareDataRequests,n,c,r]);return T.createElement(T.Fragment,null,d.map(v=>T.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...s})))}function SS({page:n,matches:r,...s}){let c=yl(),{future:f,manifest:h,routeModules:d}=ec(),{basename:v}=wd(),{loaderData:b,matches:g}=vS(),x=T.useMemo(()=>U0(n,r,g,h,c,"data"),[n,r,g,h,c]),p=T.useMemo(()=>U0(n,r,g,h,c,"assets"),[n,r,g,h,c]),z=T.useMemo(()=>{if(n===c.pathname+c.search+c.hash)return[];let L=new Set,U=!1;if(r.forEach(Y=>{var I;let Z=h.routes[Y.route.id];!Z||!Z.hasLoader||(!x.some(K=>K.route.id===Y.route.id)&&Y.route.id in b&&((I=d[Y.route.id])!=null&&I.shouldRevalidate)||Z.hasClientLoader?U=!0:L.add(Y.route.id))}),L.size===0)return[];let Q=Lg(n,v,f.v8_trailingSlashAwareDataRequests,"data");return U&&L.size>0&&Q.searchParams.set("_routes",r.filter(Y=>L.has(Y.route.id)).map(Y=>Y.route.id).join(",")),[Q.pathname+Q.search]},[v,f.v8_trailingSlashAwareDataRequests,b,c,h,x,r,n,d]),q=T.useMemo(()=>dS(p,h),[p,h]),G=bS(p);return T.createElement(T.Fragment,null,z.map(L=>T.createElement("link",{key:L,rel:"prefetch",as:"fetch",href:L,...s})),q.map(L=>T.createElement("link",{key:L,rel:"modulepreload",href:L,...s})),G.map(({key:L,link:U})=>T.createElement("link",{key:L,nonce:s.nonce,...U,crossOrigin:U.crossOrigin??s.crossOrigin})))}function ES(...n){return r=>{n.forEach(s=>{typeof s=="function"?s(r):s!=null&&(s.current=r)})}}var _S=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{_S&&(window.__reactRouterVersion="7.18.4")}catch{}function TS({basename:n,children:r,useTransitions:s,window:c}){let f=T.useRef();f.current==null&&(f.current=P2({window:c,v5Compat:!0}));let h=f.current,[d,v]=T.useState({action:h.action,location:h.location}),b=T.useCallback(g=>{s===!1?v(g):T.startTransition(()=>v(g))},[s]);return T.useLayoutEffect(()=>h.listen(b),[h,b]),T.createElement(Px,{basename:n,children:r,location:d.location,navigationType:d.action,navigator:h,useTransitions:s})}var Bg=T.forwardRef(function({onClick:r,discover:s="render",prefetch:c="none",relative:f,reloadDocument:h,replace:d,mask:v,state:b,target:g,to:x,preventScrollReset:p,viewTransition:z,defaultShouldRevalidate:q,...G},L){let{basename:U,navigator:Q,useTransitions:Y}=T.useContext(ll),Z=typeof x=="string"&&Ed.test(x),I=Rg(x,U);x=I.to;let K=Dx(x,{relative:f}),ce=yl(),X=null;if(v){let ee=$s(v,[],ce.mask?ce.mask.pathname:"/",!0);U!=="/"&&(ee.pathname=ee.pathname==="/"?U:Tl([U,ee.pathname])),X=Q.createHref(ee)}let[M,ae,ge]=gS(c,G),P=zS(x,{replace:d,mask:v,state:b,target:g,preventScrollReset:p,relative:f,viewTransition:z,defaultShouldRevalidate:q,useTransitions:Y});function he(ee){r&&r(ee),ee.defaultPrevented||P(ee)}let Je=!(I.isExternal||h),D=T.createElement("a",{...G,...ge,href:(Je?X:void 0)||I.absoluteURL||K,onClick:Je?he:r,ref:ES(L,ae),target:g,"data-discover":!Z&&s==="render"?"true":void 0});return M&&!Z?T.createElement(T.Fragment,null,D,T.createElement(pS,{page:K})):D});Bg.displayName="Link";var Qg=T.forwardRef(function({"aria-current":r="page",caseSensitive:s=!1,className:c="",end:f=!1,style:h,to:d,viewTransition:v,children:b,...g},x){let p=sr(d,{relative:g.relative}),z=yl(),q=T.useContext(Ws),{navigator:G,basename:L}=T.useContext(ll),U=q!=null&&jS(p)&&v===!0,Q=G.encodeLocation?G.encodeLocation(p).pathname:p.pathname,Y=z.pathname,Z=q&&q.navigation&&q.navigation.location?q.navigation.location.pathname:null;s||(Y=Y.toLowerCase(),Z=Z?Z.toLowerCase():null,Q=Q.toLowerCase()),Z&&L&&(Z=ha(Z,L)||Z);const I=Q!=="/"&&Q.endsWith("/")?Q.length-1:Q.length;let K=Y===Q||!f&&Y.startsWith(Q)&&Y.charAt(I)==="/",ce=Z!=null&&(Z===Q||!f&&Z.startsWith(Q)&&Z.charAt(Q.length)==="/"),X={isActive:K,isPending:ce,isTransitioning:U},M=K?r:void 0,ae;typeof c=="function"?ae=c(X):ae=[c,K?"active":null,ce?"pending":null,U?"transitioning":null].filter(Boolean).join(" ");let ge=typeof h=="function"?h(X):h;return T.createElement(Bg,{...g,"aria-current":M,className:ae,ref:x,style:ge,to:d,viewTransition:v},typeof b=="function"?b(X):b)});Qg.displayName="NavLink";var NS=T.forwardRef(({discover:n="render",fetcherKey:r,navigate:s,reloadDocument:c,replace:f,state:h,method:d=Vs,action:v,onSubmit:b,relative:g,preventScrollReset:x,viewTransition:p,defaultShouldRevalidate:z,...q},G)=>{let{useTransitions:L}=T.useContext(ll),U=wS(),Q=AS(v,{relative:g}),Y=d.toLowerCase()==="get"?"get":"post",Z=typeof v=="string"&&Ed.test(v),I=K=>{if(b&&b(K),K.defaultPrevented)return;K.preventDefault();let ce=K.nativeEvent.submitter,X=(ce==null?void 0:ce.getAttribute("formmethod"))||d,M=()=>U(ce||K.currentTarget,{fetcherKey:r,method:X,navigate:s,replace:f,state:h,relative:g,preventScrollReset:x,viewTransition:p,defaultShouldRevalidate:z});L&&s!==!1?T.startTransition(()=>M()):M()};return T.createElement("form",{ref:G,method:Y,action:Q,onSubmit:c?b:I,...q,"data-discover":!Z&&n==="render"?"true":void 0})});NS.displayName="Form";function CS(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gg(n){let r=T.useContext($i);return We(r,CS(n)),r}function zS(n,{target:r,replace:s,mask:c,state:f,preventScrollReset:h,relative:d,viewTransition:v,defaultShouldRevalidate:b,useTransitions:g}={}){let x=Ps(),p=yl(),z=sr(n,{relative:d});return T.useCallback(q=>{if(nS(q,r)){q.preventDefault();let G=s!==void 0?s:Hn(p)===Hn(z),L=()=>x(n,{replace:G,mask:c,state:f,preventScrollReset:h,relative:d,viewTransition:v,defaultShouldRevalidate:b});g?T.startTransition(()=>L()):L()}},[p,x,z,s,c,f,r,n,h,d,v,b,g])}function X_(n){tl(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let r=T.useRef(ed(n)),s=T.useRef(!1),c=yl(),f=T.useMemo(()=>iS(c.search,s.current?null:r.current),[c.search]),h=Ps(),d=T.useCallback((v,b)=>{const g=ed(typeof v=="function"?v(new URLSearchParams(f)):v);s.current=!0,h("?"+g,b)},[h,f]);return[f,d]}var OS=0,RS=()=>`__${String(++OS)}__`;function wS(){let{router:n}=Gg("useSubmit"),{basename:r}=T.useContext(ll),s=Zx(),c=n.fetch,f=n.navigate;return T.useCallback(async(h,d={})=>{let{action:v,method:b,encType:g,formData:x,body:p}=sS(h,r);if(d.navigate===!1){let z=d.fetcherKey||RS();await c(z,s,d.action||v,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:p,formMethod:d.method||b,formEncType:d.encType||g,flushSync:d.flushSync})}else await f(d.action||v,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:p,formMethod:d.method||b,formEncType:d.encType||g,replace:d.replace,state:d.state,fromRouteId:s,flushSync:d.flushSync,viewTransition:d.viewTransition})},[c,f,r,s])}function AS(n,{relative:r}={}){let{basename:s}=T.useContext(ll),c=T.useContext(Cl);We(c,"useFormAction must be used inside a RouteContext");let[f]=c.matches.slice(-1),h={...sr(n||".",{relative:r})},d=yl();if(n==null){h.search=d.search;let v=new URLSearchParams(h.search),b=v.getAll("index");if(b.some(x=>x==="")){v.delete("index"),b.filter(p=>p).forEach(p=>v.append("index",p));let x=v.toString();h.search=x?`?${x}`:""}}return(!n||n===".")&&f.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(h.pathname=h.pathname==="/"?s:Tl([s,h.pathname])),Hn(h)}function jS(n,{relative:r}={}){let s=T.useContext(jg);We(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=Gg("useViewTransitionState"),f=sr(n,{relative:r});if(!s.isTransitioning)return!1;let h=ha(s.currentLocation.pathname,c)||s.currentLocation.pathname,d=ha(s.nextLocation.pathname,c)||s.nextLocation.pathname;return Zs(f.pathname,d)!=null||Zs(f.pathname,h)!=null}var MS=xg();const Yg=T.createContext(void 0),tc=n=>{const r=T.useContext(Yg);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},DS=({client:n,children:r})=>(T.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),y.jsx(Yg.Provider,{value:n,children:r})),US={setTimeout:(n,r)=>setTimeout(n,r),clearTimeout:n=>clearTimeout(n),setInterval:(n,r)=>setInterval(n,r),clearInterval:n=>clearInterval(n)};var Ka,xd,sg,kS=(sg=class{constructor(){fe(this,Ka,US);fe(this,xd,!1)}setTimeoutProvider(n){W(this,Ka,n)}setTimeout(n,r){return E(this,Ka).setTimeout(n,r)}clearTimeout(n){E(this,Ka).clearTimeout(n)}setInterval(n,r){return E(this,Ka).setInterval(n,r)}clearInterval(n){E(this,Ka).clearInterval(n)}},Ka=new WeakMap,xd=new WeakMap,sg);const zn=new kS;function HS(n){setTimeout(n,0)}const qS=typeof window>"u"||"Deno"in globalThis;function jt(){}function LS(n,r){return typeof n=="function"?n(r):n}function Vg(n){return typeof n=="number"&&n>=0&&n!==1/0}function Xg(n,r){return Math.max(n+(r||0)-Date.now(),0)}function $e(n,r){return typeof n=="function"?n(r):n}function k0(n,r){const{type:s="all",exact:c,fetchStatus:f,predicate:h,queryKey:d,stale:v}=n;if(d){if(c){if(r.queryHash!==jd(d,r.options))return!1}else if(!Ji(r.queryKey,d))return!1}if(s!=="all"){const b=r.isActive();if(s==="active"&&!b||s==="inactive"&&b)return!1}return!(typeof v=="boolean"&&r.isStale()!==v||f&&f!==r.state.fetchStatus||h&&!h(r))}function H0(n,r){const{exact:s,status:c,predicate:f,mutationKey:h}=n;if(h){if(!r.options.mutationKey)return!1;if(s){if(qn(r.options.mutationKey)!==qn(h))return!1}else if(!Ji(r.options.mutationKey,h))return!1}return!(c&&r.state.status!==c||f&&!f(r))}function jd(n,r){return((r==null?void 0:r.queryKeyHashFn)||qn)(n)}function qn(n){return JSON.stringify(n,(r,s)=>td(s)?Object.keys(s).sort().reduce((c,f)=>(c[f]=s[f],c),{}):s)}function Ji(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(n&&r&&typeof n=="object"&&typeof r=="object"){if(Array.isArray(n)&&Array.isArray(r)){if(r.length>n.length)return!1;for(let c=0;c<r.length;c++)if(!Ji(n[c],r[c]))return!1;return!0}const s=Object.keys(r);for(const c of s)if(!Ji(n[c],r[c]))return!1;return!0}return!1}const BS=Object.prototype.hasOwnProperty;function Kg(n,r,s=0){if(n===r)return n;if(s>500)return r;const c=q0(n)&&q0(r);if(!c&&!(td(n)&&td(r)))return r;const f=(c?n:Object.keys(n)).length,h=c?r:Object.keys(r),d=h.length,v=c?new Array(d):{};let b=0;for(let g=0;g<d;g++){const x=c?g:h[g],p=n[x],z=r[x];if(p===z){v[x]=p,(c?g<f:BS.call(n,x))&&b++;continue}if(p===null||z===null||typeof p!="object"||typeof z!="object"){v[x]=z;continue}const q=Kg(p,z,s+1);v[x]=q,q===p&&b++}return f===d&&b===f?n:v}function Ks(n,r){if(!r||Object.keys(n).length!==Object.keys(r).length)return!1;for(const s in n)if(n[s]!==r[s])return!1;return!0}function q0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function td(n){if(!L0(n))return!1;const r=Object.getPrototypeOf(n),s=r==null?void 0:r.constructor;if(s===void 0)return!0;if(typeof s!="function")return!1;const c=s.prototype;return!(!L0(c)||!c.hasOwnProperty("isPrototypeOf")||r!==Object.prototype)}function L0(n){return Object.prototype.toString.call(n)==="[object Object]"}function QS(n){return new Promise(r=>{zn.setTimeout(r,n)})}function ld(n,r,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,r):s.structuralSharing!==!1?Kg(n,r):r}function GS(n,r,s=0){const c=[...n,r];return s&&c.length>s?c.slice(1):c}function YS(n,r,s=0){const c=[r,...n];return s&&c.length>s?c.slice(0,-1):c}const Md=Symbol();function Zg(n,r){return!n.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!n.queryFn||n.queryFn===Md?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Dd(n,r){return typeof n=="function"?n(...r):!!n}function VS(n,r,s){let c=!1,f;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(f??(f=r()),c||(c=!0,f.aborted?s():f.addEventListener("abort",s,{once:!0})),f)}),n}let XS=()=>qS;const Ud=()=>XS();var Pi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},On,Za,Di,cg,KS=(cg=class extends Pi{constructor(){super();fe(this,On);fe(this,Za);fe(this,Di);W(this,Di,r=>{if(typeof window<"u"&&window.addEventListener){const s=()=>r();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){E(this,Za)||this.setEventListener(E(this,Di))}onUnsubscribe(){var r;this.hasListeners()||((r=E(this,Za))==null||r.call(this),W(this,Za,void 0))}setEventListener(r){var s;W(this,Di,r),(s=E(this,Za))==null||s.call(this),W(this,Za,r(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(r){E(this,On)!==r&&(W(this,On,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(s=>{s(r)})}isFocused(){var r;return typeof E(this,On)=="boolean"?E(this,On):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},On=new WeakMap,Za=new WeakMap,Di=new WeakMap,cg);const kd=new KS,ZS=HS;function JS(){let n=[],r=0,s=v=>{v()},c=v=>{v()},f=ZS;const h=v=>{r?n.push(v):f(()=>{s(v)})},d=()=>{const v=n;n=[],v.length&&f(()=>{c(()=>{v.forEach(b=>{s(b)})})})};return{batch:v=>{let b;r++;try{b=v()}finally{r--,r||d()}return b},batchCalls:v=>(...b)=>{h(()=>{v(...b)})},schedule:h,setNotifyFunction:v=>{s=v},setBatchNotifyFunction:v=>{c=v},setScheduler:v=>{f=v}}}const ot=JS();var Ui,Ja,ki,og,FS=(og=class extends Pi{constructor(){super();fe(this,Ui,!0);fe(this,Ja);fe(this,ki);W(this,ki,r=>{if(typeof window<"u"&&window.addEventListener){const s=()=>r(!0),c=()=>r(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",c)}}})}onSubscribe(){E(this,Ja)||this.setEventListener(E(this,ki))}onUnsubscribe(){var r;this.hasListeners()||((r=E(this,Ja))==null||r.call(this),W(this,Ja,void 0))}setEventListener(r){var s;W(this,ki,r),(s=E(this,Ja))==null||s.call(this),W(this,Ja,r(this.setOnline.bind(this)))}setOnline(r){E(this,Ui)!==r&&(W(this,Ui,r),this.listeners.forEach(s=>{s(r)}))}isOnline(){return E(this,Ui)}},Ui=new WeakMap,Ja=new WeakMap,ki=new WeakMap,og);const Js=new FS;function $S(n){return Math.min(1e3*2**n,3e4)}function Jg(n){return(n??"online")==="online"?Js.isOnline():!0}var ad=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function Fg(n){let r=!1,s=0,c,f="pending",h,d;const v=new Promise((Y,Z)=>{h=Y,d=Z});v.catch(jt);const b=()=>f!=="pending",g=Y=>{var Z;if(!b()){const I=new ad(Y);L(I),(Z=n.onCancel)==null||Z.call(n,I)}},x=()=>{r=!0},p=()=>{r=!1},z=()=>kd.isFocused()&&(n.networkMode==="always"||Js.isOnline())&&n.canRun(),q=()=>Jg(n.networkMode)&&n.canRun(),G=Y=>{b()||(c==null||c(),f="resolved",h(Y))},L=Y=>{b()||(c==null||c(),f="rejected",d(Y))},U=Y=>new Promise(Z=>{var I;c=K=>{(b()||Y())&&Z(K)},(I=n.onPause)==null||I.call(n)}).then(()=>{var Z;c=void 0,b()||(Z=n.onContinue)==null||Z.call(n)}),Q=()=>{if(b())return;let Y;const Z=s===0?n.initialPromise:void 0;try{Y=Z??n.fn()}catch(I){Y=Promise.reject(I)}Promise.resolve(Y).then(G).catch(I=>{var ae;if(b())return;const K=n.retry??(Ud()?0:3),ce=n.retryDelay??$S,X=typeof ce=="function"?ce(s,I):ce,M=K===!0||typeof K=="number"&&s<K||typeof K=="function"&&K(s,I);if(r||!M){L(I);return}s++,(ae=n.onFail)==null||ae.call(n,s,I),QS(X).then(()=>z()?void 0:U(z)).then(()=>{r?L(I):Q()})})};return{promise:v,status:()=>f,cancel:g,continue:()=>(c==null||c(),v),cancelRetry:x,continueRetry:p,canStart:q,start:()=>(q()?Q():U(q).then(Q),v)}}var Rn,fg,$g=(fg=class{constructor(){fe(this,Rn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vg(this.gcTime)&&W(this,Rn,zn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ud()?1/0:3e5))}clearGcTimeout(){E(this,Rn)!==void 0&&(zn.clearTimeout(E(this,Rn)),W(this,Rn,void 0))}},Rn=new WeakMap,fg);function WS(n){return{onFetch:(r,s)=>{var x,p,z,q,G;const c=r.options,f=(z=(p=(x=r.fetchOptions)==null?void 0:x.meta)==null?void 0:p.fetchMore)==null?void 0:z.direction,h=((q=r.state.data)==null?void 0:q.pages)||[],d=((G=r.state.data)==null?void 0:G.pageParams)||[];let v={pages:[],pageParams:[]},b=0;const g=async()=>{let L=!1;const U=Z=>{VS(Z,()=>r.signal,()=>L=!0)},Q=Zg(r.options,r.fetchOptions),Y=async(Z,I,K)=>{if(L)return Promise.reject(r.signal.reason);if(I==null&&Z.pages.length)return Promise.resolve(Z);const X=(()=>{const P={client:r.client,queryKey:r.queryKey,pageParam:I,direction:K?"backward":"forward",meta:r.options.meta};return U(P),P})(),M=await Q(X),{maxPages:ae}=r.options,ge=K?YS:GS;return{pages:ge(Z.pages,M,ae),pageParams:ge(Z.pageParams,I,ae)}};if(f&&h.length){const Z=f==="backward",I=Z?PS:B0,K={pages:h,pageParams:d};v=await Y(K,I(c,K),Z)}else{const Z=n??h.length;do{const I=b===0?d[0]??c.initialPageParam:B0(c,v);if(b>0&&I==null)break;v=await Y(v,I),b++}while(b<Z)}return v};r.options.persister?r.fetchFn=()=>{var L,U;return(U=(L=r.options).persister)==null?void 0:U.call(L,g,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},s)}:r.fetchFn=g}}}function B0(n,{pages:r,pageParams:s}){const c=r.length-1;return r.length>0?n.getNextPageParam(r[c],r,s[c],s):void 0}function PS(n,{pages:r,pageParams:s}){var c;return r.length>0?(c=n.getPreviousPageParam)==null?void 0:c.call(n,r[0],r,s[0],s):void 0}var Hi,wn,qi,hl,An,ct,tr,jn,El,ca,dg,IS=(dg=class extends $g{constructor(r){super();fe(this,El);fe(this,Hi);fe(this,wn);fe(this,qi);fe(this,hl);fe(this,An);fe(this,ct);fe(this,tr);fe(this,jn);W(this,jn,!1),W(this,tr,r.defaultOptions),this.setOptions(r.options),this.observers=[],W(this,An,r.client),W(this,hl,E(this,An).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,W(this,wn,G0(this.options)),this.state=r.state??E(this,wn),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return E(this,Hi)}get promise(){var r;return(r=E(this,ct))==null?void 0:r.promise}setOptions(r){if(this.options={...E(this,tr),...r},r!=null&&r._type&&W(this,Hi,r._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=G0(this.options);s.data!==void 0&&(this.setState(Q0(s.data,s.dataUpdatedAt)),W(this,wn,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,hl).remove(this)}setData(r,s){const c=ld(this.state.data,r,this.options);return Ee(this,El,ca).call(this,{data:c,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),c}setState(r){Ee(this,El,ca).call(this,{type:"setState",state:r})}cancel(r){var c,f;const s=(c=E(this,ct))==null?void 0:c.promise;return(f=E(this,ct))==null||f.cancel(r),s?s.then(jt).catch(jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return E(this,wn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(r=>$e(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Md||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(r=>$e(r.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(r=0){return this.state.data===void 0?!0:r==="static"?!1:this.state.isInvalidated?!0:!Xg(this.state.dataUpdatedAt,r)}onFocus(){var r,s;(r=this.observers.find(c=>c.shouldFetchOnWindowFocus()))==null||r.refetch({cancelRefetch:!1}),(s=E(this,ct))==null||s.continue()}onOnline(){var r,s;(r=this.observers.find(c=>c.shouldFetchOnReconnect()))==null||r.refetch({cancelRefetch:!1}),(s=E(this,ct))==null||s.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),E(this,hl).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){const s=this.observers.indexOf(r);s!==-1&&(this.observers.splice(s,1),this.observers.length||(E(this,ct)&&(E(this,jn)||this.state.fetchStatus==="paused"&&this.state.status==="pending"?E(this,ct).cancel({revert:!0}):E(this,ct).cancelRetry()),this.scheduleGc()),E(this,hl).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ee(this,El,ca).call(this,{type:"invalidate"})}async fetch(r,s){var g,x,p,z,q,G,L,U,Q,Y,Z,I;if(this.state.fetchStatus!=="idle"&&((g=E(this,ct))==null?void 0:g.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(E(this,ct))return E(this,ct).continueRetry(),E(this,ct).promise}if(r&&this.setOptions(r),!this.options.queryFn){const K=this.observers.find(ce=>ce.options.queryFn);K&&this.setOptions(K.options)}const c=new AbortController,f=K=>{Object.defineProperty(K,"signal",{enumerable:!0,get:()=>(W(this,jn,!0),c.signal)})},h=()=>{const K=Zg(this.options,s),X=(()=>{const M={client:E(this,An),queryKey:this.queryKey,meta:this.meta};return f(M),M})();return W(this,jn,!1),this.options.persister?this.options.persister(K,X,this):K(X)},v=(()=>{const K={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:E(this,An),state:this.state,fetchFn:h};return f(K),K})();(x=E(this,Hi)==="infinite"?WS(this.options.pages):this.options.behavior)==null||x.onFetch(v,this),W(this,qi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((p=v.fetchOptions)==null?void 0:p.meta))&&Ee(this,El,ca).call(this,{type:"fetch",meta:(z=v.fetchOptions)==null?void 0:z.meta});const b=W(this,ct,Fg({initialPromise:s==null?void 0:s.initialPromise,fn:v.fetchFn,onCancel:K=>{K instanceof ad&&K.revert&&this.setState({...E(this,qi),fetchStatus:"idle"}),c.abort()},onFail:(K,ce)=>{Ee(this,El,ca).call(this,{type:"failed",failureCount:K,error:ce})},onPause:()=>{Ee(this,El,ca).call(this,{type:"pause"})},onContinue:()=>{Ee(this,El,ca).call(this,{type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode,canRun:()=>!0}));try{const K=await b.start();if(K===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(K),(G=(q=E(this,hl).config).onSuccess)==null||G.call(q,K,this),(U=(L=E(this,hl).config).onSettled)==null||U.call(L,K,this.state.error,this),K}catch(K){if(K instanceof ad){if(K.silent)return E(this,ct).promise;if(K.revert){if(this.state.data===void 0)throw K;return this.state.data}}throw Ee(this,El,ca).call(this,{type:"error",error:K}),(Y=(Q=E(this,hl).config).onError)==null||Y.call(Q,K,this),(I=(Z=E(this,hl).config).onSettled)==null||I.call(Z,this.state.data,K,this),K}finally{E(this,ct)===b&&W(this,ct,void 0),this.scheduleGc()}}},Hi=new WeakMap,wn=new WeakMap,qi=new WeakMap,hl=new WeakMap,An=new WeakMap,ct=new WeakMap,tr=new WeakMap,jn=new WeakMap,El=new WeakSet,ca=function(r){const s=c=>{switch(r.type){case"failed":return{...c,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...Wg(c.data,this.options),fetchMeta:r.meta??null};case"success":const f={...c,...Q0(r.data,r.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return W(this,qi,r.manual?f:void 0),f;case"error":const h=r.error;return{...c,error:h,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...r.state}}};this.state=s(this.state),ot.batch(()=>{this.observers.slice().forEach(c=>{c.onQueryUpdate()}),E(this,hl).notify({query:this,type:"updated",action:r})})},dg);function Wg(n,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Jg(r.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Q0(n,r){return{data:n,dataUpdatedAt:r??Date.now(),error:null,isInvalidated:!1,status:"success"}}function G0(n){const r=typeof n.initialData=="function"?n.initialData():n.initialData,s=r!==void 0,c=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:s?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var wt,we,lr,At,Mn,Li,oa,ar,Bi,Qi,Dn,Un,Fa,Gi,He,Pu,nd,id,ud,rd,sd,cd,od,fd,hg,e3=(hg=class extends Pi{constructor(r,s){super();fe(this,He);fe(this,wt);fe(this,we);fe(this,lr);fe(this,At);fe(this,Mn);fe(this,Li);fe(this,oa);fe(this,ar);fe(this,Bi);fe(this,Qi);fe(this,Dn);fe(this,Un);fe(this,Fa);fe(this,Gi,new Set);this.options=s,W(this,wt,r),W(this,oa,null),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,we).addObserver(this),Y0(E(this,we),this.options)?Ee(this,He,Pu).call(this):this.updateResult(),Ee(this,He,sd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return dd(E(this,we),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return dd(E(this,we),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ee(this,He,cd).call(this),Ee(this,He,od).call(this),E(this,we).removeObserver(this)}setOptions(r){const s=this.options,c=E(this,we);if(this.options=E(this,wt).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof $e(this.options.enabled,E(this,we))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ee(this,He,fd).call(this),E(this,we).setOptions(this.options),s._defaulted&&!Ks(this.options,s)&&E(this,wt).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,we),observer:this});const f=this.hasListeners();f&&V0(E(this,we),c,this.options,s)&&Ee(this,He,Pu).call(this),this.updateResult(),f&&(E(this,we)!==c||$e(this.options.enabled,E(this,we))!==$e(s.enabled,E(this,we))||$e(this.options.staleTime,E(this,we))!==$e(s.staleTime,E(this,we)))&&Ee(this,He,id).call(this);const h=Ee(this,He,ud).call(this);f&&(E(this,we)!==c||$e(this.options.enabled,E(this,we))!==$e(s.enabled,E(this,we))||h!==E(this,Fa))&&Ee(this,He,rd).call(this,h)}getOptimisticResult(r){const s=E(this,wt).getQueryCache().build(E(this,wt),r),c=this.createResult(s,r);return Ks(this.getCurrentResult(),c)||(W(this,At,c),W(this,Li,this.options),W(this,Mn,E(this,we).state)),c}getCurrentResult(){return E(this,At)}trackResult(r,s){return new Proxy(r,{get:(c,f)=>(this.trackProp(f),s==null||s(f),Reflect.get(c,f))})}trackProp(r){E(this,Gi).add(r)}getCurrentQuery(){return E(this,we)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const s=E(this,wt).defaultQueryOptions(r),c=E(this,wt).getQueryCache().build(E(this,wt),s);let f=()=>{},h;const d=new Promise(v=>{h=v,f=E(this,wt).getQueryCache().subscribe(b=>{b.type==="updated"&&b.query.queryHash===c.queryHash&&c.state.data!==void 0&&(f(),v(this.createResult(c,s)))})});return Promise.race([c.fetch().then(()=>{const v=this.createResult(c,s);return h==null||h(v),v}).finally(()=>{f()}),d])}fetch(r){return Ee(this,He,Pu).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,At)))}createResult(r,s){var ce;const c=E(this,we),f=this.options,h=E(this,At),d=E(this,Mn),v=E(this,Li),b=r!==c?r.state:E(this,lr),{state:g}=r;let x={...g},p=!1,z;if(s._optimisticResults){const X=this.hasListeners(),M=!X&&Y0(r,s),ae=X&&V0(r,c,s,f);(M||ae)&&(x={...x,...Wg(g.data,r.options)}),s._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:q,errorUpdatedAt:G,status:L}=x;z=x.data;let U=!1;if(s.placeholderData!==void 0&&z===void 0&&L==="pending"){let X;h!=null&&h.isPlaceholderData&&s.placeholderData===(v==null?void 0:v.placeholderData)?(X=h.data,U=!0):X=typeof s.placeholderData=="function"?s.placeholderData((ce=E(this,Qi))==null?void 0:ce.state.data,E(this,Qi)):s.placeholderData,X!==void 0&&(L="success",z=ld(h==null?void 0:h.data,X,s),p=!0)}if(s.select&&z!==void 0&&!U)if(h&&z===(d==null?void 0:d.data)&&s.select===E(this,ar))z=E(this,Bi);else try{W(this,ar,s.select),z=s.select(z),z=ld(h==null?void 0:h.data,z,s),W(this,Bi,z),W(this,oa,null)}catch(X){W(this,oa,X)}else z===void 0&&W(this,oa,null);E(this,oa)&&(q=E(this,oa),z=E(this,Bi),G=Date.now(),L="error",p=!1);const Q=x.fetchStatus==="fetching",Y=L==="pending",Z=L==="error",I=Y&&Q,K=z!==void 0;return{status:L,fetchStatus:x.fetchStatus,isPending:Y,isSuccess:L==="success",isError:Z,isInitialLoading:I,isLoading:I,data:z,dataUpdatedAt:x.dataUpdatedAt,error:q,errorUpdatedAt:G,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:r.isFetched(),isFetchedAfterMount:x.dataUpdateCount>b.dataUpdateCount||x.errorUpdateCount>b.errorUpdateCount,isFetching:Q,isRefetching:Q&&!Y,isLoadingError:Z&&!K,isPaused:x.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:Z&&K,isStale:Hd(r,s),refetch:this.refetch,isEnabled:$e(s.enabled,r)!==!1}}updateResult(){const r=E(this,At),s=this.createResult(E(this,we),this.options);if(W(this,Mn,E(this,we).state),W(this,Li,this.options),E(this,Mn).data!==void 0&&W(this,Qi,E(this,we)),Ks(s,r))return;W(this,At,s);const f=(()=>{if(!r)return!0;const{notifyOnChangeProps:h}=this.options,d=typeof h=="function"?h():h;if(d==="all"||!d&&!E(this,Gi).size)return!0;const v=new Set(d??E(this,Gi));return this.options.throwOnError&&v.add("error"),Object.keys(E(this,At)).some(b=>{const g=b;return E(this,At)[g]!==r[g]&&v.has(g)})})();ot.batch(()=>{f&&this.listeners.forEach(h=>{h(E(this,At))}),E(this,wt).getQueryCache().notify({query:E(this,we),type:"observerResultsUpdated"})})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ee(this,He,sd).call(this)}},wt=new WeakMap,we=new WeakMap,lr=new WeakMap,At=new WeakMap,Mn=new WeakMap,Li=new WeakMap,oa=new WeakMap,ar=new WeakMap,Bi=new WeakMap,Qi=new WeakMap,Dn=new WeakMap,Un=new WeakMap,Fa=new WeakMap,Gi=new WeakMap,He=new WeakSet,Pu=function(r){Ee(this,He,fd).call(this);let s=E(this,we).fetch(this.options,r);return r!=null&&r.throwOnError||(s=s.catch(jt)),s},nd=function(r){return!Ud()&&$e(this.options.enabled,E(this,we))!==!1&&Vg(r)},id=function(){Ee(this,He,cd).call(this);const r=$e(this.options.staleTime,E(this,we));if(E(this,At).isStale||!Ee(this,He,nd).call(this,r))return;const s=Xg(E(this,At).dataUpdatedAt,r)+1;W(this,Dn,zn.setTimeout(()=>{E(this,At).isStale||this.updateResult()},s))},ud=function(){return $e(this.options.refetchInterval,E(this,we))??!1},rd=function(r){Ee(this,He,od).call(this),W(this,Fa,r),!(E(this,Fa)===0||!Ee(this,He,nd).call(this,E(this,Fa)))&&W(this,Un,zn.setInterval(()=>{(this.options.refetchIntervalInBackground||kd.isFocused())&&Ee(this,He,Pu).call(this)},E(this,Fa)))},sd=function(){Ee(this,He,id).call(this),Ee(this,He,rd).call(this,Ee(this,He,ud).call(this))},cd=function(){E(this,Dn)!==void 0&&(zn.clearTimeout(E(this,Dn)),W(this,Dn,void 0))},od=function(){E(this,Un)!==void 0&&(zn.clearInterval(E(this,Un)),W(this,Un,void 0))},fd=function(){const r=E(this,wt).getQueryCache().build(E(this,wt),this.options);if(r===E(this,we))return;const s=E(this,we);W(this,we,r),W(this,lr,r.state),this.hasListeners()&&(s==null||s.removeObserver(this),r.addObserver(this))},hg);function t3(n,r){return $e(r.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&$e(r.retryOnMount,n)===!1)}function Y0(n,r){return t3(n,r)||n.state.data!==void 0&&dd(n,r,r.refetchOnMount)}function dd(n,r,s){if($e(r.enabled,n)!==!1&&$e(r.staleTime,n)!=="static"){const c=$e(s,n);return c==="always"||c!==!1&&Hd(n,r)}return!1}function V0(n,r,s,c){return(n!==r||$e(c.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&Hd(n,s)}function Hd(n,r){return $e(r.enabled,n)!==!1&&n.isStaleByTime($e(r.staleTime,n))}var nr,Yl,Tt,kn,Vl,Xa,mg,l3=(mg=class extends $g{constructor(r){super();fe(this,Vl);fe(this,nr);fe(this,Yl);fe(this,Tt);fe(this,kn);W(this,nr,r.client),this.mutationId=r.mutationId,W(this,Tt,r.mutationCache),W(this,Yl,[]),this.state=r.state||Pg(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){E(this,Yl).includes(r)||(E(this,Yl).push(r),this.clearGcTimeout(),E(this,Tt).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){W(this,Yl,E(this,Yl).filter(s=>s!==r)),this.scheduleGc(),E(this,Tt).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){E(this,Yl).length||(this.state.status==="pending"?this.scheduleGc():E(this,Tt).remove(this))}continue(){var r;return((r=E(this,kn))==null?void 0:r.continue())??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(r){var v,b,g,x,p,z,q,G,L,U,Q,Y,Z,I,K,ce,X,M;const s=()=>{Ee(this,Vl,Xa).call(this,{type:"continue"})},c={client:E(this,nr),meta:this.options.meta,mutationKey:this.options.mutationKey},f=W(this,kn,Fg({fn:()=>this.options.mutationFn?this.options.mutationFn(r,c):Promise.reject(new Error("No mutationFn found")),onFail:(ae,ge)=>{Ee(this,Vl,Xa).call(this,{type:"failed",failureCount:ae,error:ge})},onPause:()=>{Ee(this,Vl,Xa).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,Tt).canRun(this)})),h=this.state.status==="pending",d=!f.canStart();try{if(h)s();else{Ee(this,Vl,Xa).call(this,{type:"pending",variables:r,isPaused:d}),E(this,Tt).config.onMutate&&await E(this,Tt).config.onMutate(r,this,c);const ge=await((b=(v=this.options).onMutate)==null?void 0:b.call(v,r,c));ge!==this.state.context&&Ee(this,Vl,Xa).call(this,{type:"pending",context:ge,variables:r,isPaused:d})}const ae=await f.start();return await((x=(g=E(this,Tt).config).onSuccess)==null?void 0:x.call(g,ae,r,this.state.context,this,c)),await((z=(p=this.options).onSuccess)==null?void 0:z.call(p,ae,r,this.state.context,c)),await((G=(q=E(this,Tt).config).onSettled)==null?void 0:G.call(q,ae,null,this.state.variables,this.state.context,this,c)),await((U=(L=this.options).onSettled)==null?void 0:U.call(L,ae,null,r,this.state.context,c)),Ee(this,Vl,Xa).call(this,{type:"success",data:ae}),ae}catch(ae){try{await((Y=(Q=E(this,Tt).config).onError)==null?void 0:Y.call(Q,ae,r,this.state.context,this,c))}catch(ge){Promise.reject(ge)}try{await((I=(Z=this.options).onError)==null?void 0:I.call(Z,ae,r,this.state.context,c))}catch(ge){Promise.reject(ge)}try{await((ce=(K=E(this,Tt).config).onSettled)==null?void 0:ce.call(K,void 0,ae,this.state.variables,this.state.context,this,c))}catch(ge){Promise.reject(ge)}try{await((M=(X=this.options).onSettled)==null?void 0:M.call(X,void 0,ae,r,this.state.context,c))}catch(ge){Promise.reject(ge)}throw Ee(this,Vl,Xa).call(this,{type:"error",error:ae}),ae}finally{E(this,kn)===f&&W(this,kn,void 0),E(this,Tt).runNext(this)}}},nr=new WeakMap,Yl=new WeakMap,Tt=new WeakMap,kn=new WeakMap,Vl=new WeakSet,Xa=function(r){const s=c=>{switch(r.type){case"failed":return{...c,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...c,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:r.error,failureCount:c.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=s(this.state),ot.batch(()=>{E(this,Yl).forEach(c=>{c.onMutationUpdate(r)}),E(this,Tt).notify({mutation:this,type:"updated",action:r})})},mg);function Pg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var fa,_l,ir,yg,a3=(yg=class extends Pi{constructor(r={}){super();fe(this,fa);fe(this,_l);fe(this,ir);this.config=r,W(this,fa,new Set),W(this,_l,new Map),W(this,ir,0)}build(r,s,c){const f=new l3({client:r,mutationCache:this,mutationId:++Ls(this,ir)._,options:r.defaultMutationOptions(s),state:c});return this.add(f),f}add(r){E(this,fa).add(r);const s=Qs(r);if(typeof s=="string"){const c=E(this,_l).get(s);c?c.push(r):E(this,_l).set(s,[r])}this.notify({type:"added",mutation:r})}remove(r){if(E(this,fa).delete(r)){const s=Qs(r);if(typeof s=="string"){const c=E(this,_l).get(s);if(c)if(c.length>1){const f=c.indexOf(r);f!==-1&&c.splice(f,1)}else c[0]===r&&E(this,_l).delete(s)}}this.notify({type:"removed",mutation:r})}canRun(r){var c;const s=Qs(r);if(typeof s=="string"){const f=(c=E(this,_l).get(s))==null?void 0:c.find(h=>h.state.status==="pending");return!f||f===r}else return!0}runNext(r){var c,f;const s=Qs(r);return typeof s=="string"?((f=(c=E(this,_l).get(s))==null?void 0:c.find(h=>h!==r&&h.state.isPaused))==null?void 0:f.continue())??Promise.resolve():Promise.resolve()}clear(){ot.batch(()=>{E(this,fa).forEach(r=>{this.notify({type:"removed",mutation:r})}),E(this,fa).clear(),E(this,_l).clear()})}getAll(){return Array.from(E(this,fa))}find(r){const s={exact:!0,...r};return this.getAll().find(c=>H0(s,c))}findAll(r={}){return this.getAll().filter(s=>H0(r,s))}notify(r){ot.batch(()=>{this.listeners.forEach(s=>{s(r)})})}resumePausedMutations(){const r=this.getAll().filter(s=>s.state.isPaused);return ot.batch(()=>Promise.all(r.map(s=>s.continue().catch(jt))))}},fa=new WeakMap,_l=new WeakMap,ir=new WeakMap,yg);function Qs(n){var r;return(r=n.options.scope)==null?void 0:r.id}var da,$a,Nt,ur,Kl,Iu,hd,vg,n3=(vg=class extends Pi{constructor(s,c){super();fe(this,Kl);fe(this,da);fe(this,$a);fe(this,Nt);fe(this,ur);W(this,da,s),this.setOptions(c),this.bindMethods(),Ee(this,Kl,Iu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var f;const c=this.options;this.options=E(this,da).defaultMutationOptions(s),Ks(this.options,c)||E(this,da).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,Nt),observer:this}),c!=null&&c.mutationKey&&this.options.mutationKey&&qn(c.mutationKey)!==qn(this.options.mutationKey)?this.reset():((f=E(this,Nt))==null?void 0:f.state.status)==="pending"&&E(this,Nt).setOptions(this.options)}onSubscribe(){this.listeners.size===1&&E(this,Nt)&&(E(this,Nt).addObserver(this),Ee(this,Kl,Iu).call(this))}onUnsubscribe(){var s;this.hasListeners()||(s=E(this,Nt))==null||s.removeObserver(this)}onMutationUpdate(s){Ee(this,Kl,Iu).call(this),Ee(this,Kl,hd).call(this,s)}getCurrentResult(){return E(this,$a)}reset(){var s;(s=E(this,Nt))==null||s.removeObserver(this),W(this,Nt,void 0),Ee(this,Kl,Iu).call(this),Ee(this,Kl,hd).call(this)}mutate(s,c){var f;return W(this,ur,c),(f=E(this,Nt))==null||f.removeObserver(this),W(this,Nt,E(this,da).getMutationCache().build(E(this,da),this.options)),E(this,Nt).addObserver(this),E(this,Nt).execute(s)}},da=new WeakMap,$a=new WeakMap,Nt=new WeakMap,ur=new WeakMap,Kl=new WeakSet,Iu=function(){var c;const s=((c=E(this,Nt))==null?void 0:c.state)??Pg();W(this,$a,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},hd=function(s){ot.batch(()=>{var f,h,d,v;const c=E(this,ur);if(c&&this.hasListeners()){const b=E(this,$a).variables,g=E(this,$a).context,x={client:E(this,da),meta:this.options.meta,mutationKey:this.options.mutationKey};if((s==null?void 0:s.type)==="success"){try{(f=c.onSuccess)==null||f.call(c,s.data,b,g,x)}catch(p){Promise.reject(p)}try{(h=c.onSettled)==null||h.call(c,s.data,null,b,g,x)}catch(p){Promise.reject(p)}}else if((s==null?void 0:s.type)==="error"){try{(d=c.onError)==null||d.call(c,s.error,b,g,x)}catch(p){Promise.reject(p)}try{(v=c.onSettled)==null||v.call(c,void 0,s.error,b,g,x)}catch(p){Promise.reject(p)}}}this.listeners.forEach(b=>{b(E(this,$a))})})},vg),Xl,gg,i3=(gg=class extends Pi{constructor(r={}){super();fe(this,Xl);this.config=r,W(this,Xl,new Map)}build(r,s,c){const f=s.queryKey,h=s.queryHash??jd(f,s);let d=this.get(h);return d||(d=new IS({client:r,queryKey:f,queryHash:h,options:r.defaultQueryOptions(s),state:c,defaultOptions:r.getQueryDefaults(f)}),this.add(d)),d}add(r){E(this,Xl).has(r.queryHash)||(E(this,Xl).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){E(this,Xl).get(r.queryHash)===r&&(r.destroy(),E(this,Xl).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){ot.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return E(this,Xl).get(r)}getAll(){return[...E(this,Xl).values()]}find(r){const s={exact:!0,...r};return this.getAll().find(c=>k0(s,c))}findAll(r={}){const s=this.getAll();return Object.keys(r).length>0?s.filter(c=>k0(r,c)):s}notify(r){ot.batch(()=>{this.listeners.forEach(s=>{s(r)})})}onFocus(){ot.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){ot.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},Xl=new WeakMap,gg),Ie,Wa,Pa,Yi,Vi,Ia,Xi,Ki,pg,u3=(pg=class{constructor(n={}){fe(this,Ie);fe(this,Wa);fe(this,Pa);fe(this,Yi);fe(this,Vi);fe(this,Ia);fe(this,Xi);fe(this,Ki);W(this,Ie,n.queryCache||new i3),W(this,Wa,n.mutationCache||new a3),W(this,Pa,n.defaultOptions||{}),W(this,Yi,new Map),W(this,Vi,new Map),W(this,Ia,0)}mount(){Ls(this,Ia)._++,E(this,Ia)===1&&(W(this,Xi,kd.subscribe(async n=>{n&&(await this.resumePausedMutations(),E(this,Ie).onFocus())})),W(this,Ki,Js.subscribe(async n=>{n&&(await this.resumePausedMutations(),E(this,Ie).onOnline())})))}unmount(){var n,r;Ls(this,Ia)._--,E(this,Ia)===0&&((n=E(this,Xi))==null||n.call(this),W(this,Xi,void 0),(r=E(this,Ki))==null||r.call(this),W(this,Ki,void 0))}isFetching(n){return E(this,Ie).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return E(this,Wa).findAll({...n,status:"pending"}).length}getQueryData(n){var s;const r=this.defaultQueryOptions({queryKey:n});return(s=E(this,Ie).get(r.queryHash))==null?void 0:s.state.data}ensureQueryData(n){const r=this.defaultQueryOptions(n),s=E(this,Ie).build(this,r),c=s.state.data;return c===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime($e(r.staleTime,s))&&this.prefetchQuery(r),Promise.resolve(c))}getQueriesData(n){return E(this,Ie).findAll(n).map(({queryKey:r,state:s})=>[r,s.data])}setQueryData(n,r,s){var d;const c=this.defaultQueryOptions({queryKey:n}),f=(d=E(this,Ie).get(c.queryHash))==null?void 0:d.state.data,h=LS(r,f);if(h!==void 0)return E(this,Ie).build(this,c).setData(h,{...s,manual:!0})}setQueriesData(n,r,s){return ot.batch(()=>E(this,Ie).findAll(n).map(({queryKey:c})=>[c,this.setQueryData(c,r,s)]))}getQueryState(n){var s;const r=this.defaultQueryOptions({queryKey:n});return(s=E(this,Ie).get(r.queryHash))==null?void 0:s.state}removeQueries(n){const r=E(this,Ie);ot.batch(()=>{r.findAll(n).forEach(s=>{r.remove(s)})})}resetQueries(n,r){const s=E(this,Ie);return ot.batch(()=>{const c=s.findAll(n),f=new Set(c);return c.forEach(h=>{h.reset()}),this.refetchQueries({type:"active",predicate:h=>f.has(h)},r)})}cancelQueries(n,r={}){const s={revert:!0,...r},c=ot.batch(()=>E(this,Ie).findAll(n).map(f=>f.cancel(s)));return Promise.all(c).then(jt).catch(jt)}invalidateQueries(n,r={}){return ot.batch(()=>(E(this,Ie).findAll(n).forEach(s=>{s.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},r)))}refetchQueries(n,r={}){const s={...r,cancelRefetch:r.cancelRefetch??!0},c=ot.batch(()=>E(this,Ie).findAll(n).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let h=f.fetch(void 0,s);return s.throwOnError||(h=h.catch(jt)),f.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(c).then(jt)}async query(n){const r=this.defaultQueryOptions(n);r.retry===void 0&&(r.retry=!1);const s=E(this,Ie).build(this,r),c=s.isStaleByTime($e(r.staleTime,s))?await s.fetch(r):s.state.data,f=r.select;return f?f(c):c}fetchQuery(n){const r=this.defaultQueryOptions(n);r.retry===void 0&&(r.retry=!1);const s=E(this,Ie).build(this,r);return s.isStaleByTime($e(r.staleTime,s))?s.fetch(r):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(jt).catch(jt)}infiniteQuery(n){return n._type="infinite",this.query(n)}fetchInfiniteQuery(n){return n._type="infinite",this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(jt).catch(jt)}ensureInfiniteQueryData(n){return n._type="infinite",this.ensureQueryData(n)}resumePausedMutations(){return Js.isOnline()?E(this,Wa).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,Ie)}getMutationCache(){return E(this,Wa)}getDefaultOptions(){return E(this,Pa)}setDefaultOptions(n){W(this,Pa,n)}setQueryDefaults(n,r){E(this,Yi).set(qn(n),{queryKey:n,defaultOptions:r})}getQueryDefaults(n){const r=[...E(this,Yi).values()],s={};return r.forEach(c=>{Ji(n,c.queryKey)&&Object.assign(s,c.defaultOptions)}),s}setMutationDefaults(n,r){E(this,Vi).set(qn(n),{mutationKey:n,defaultOptions:r})}getMutationDefaults(n){const r=[...E(this,Vi).values()],s={};return r.forEach(c=>{Ji(n,c.mutationKey)&&Object.assign(s,c.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const r={...E(this,Pa).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return r.queryHash||(r.queryHash=jd(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===Md&&(r.enabled=!1),r}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...E(this,Pa).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){E(this,Ie).clear(),E(this,Wa).clear()}},Ie=new WeakMap,Wa=new WeakMap,Pa=new WeakMap,Yi=new WeakMap,Vi=new WeakMap,Ia=new WeakMap,Xi=new WeakMap,Ki=new WeakMap,pg);const Ig=T.createContext(!1),r3=()=>T.useContext(Ig);Ig.Provider;function s3(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}const c3=T.createContext(s3()),o3=()=>T.useContext(c3),f3=(n,r,s)=>{const c=s!=null&&s.state.error&&typeof n.throwOnError=="function"?Dd(n.throwOnError,[s.state.error,s]):n.throwOnError;(n.suspense||c)&&(r.isReset()||(n.retryOnMount=!1))},d3=n=>{T.useEffect(()=>{n.clearReset()},[n])},h3=({result:n,errorResetBoundary:r,throwOnError:s,query:c,suspense:f})=>n.isError&&!r.isReset()&&!n.isFetching&&c&&(f&&n.data===void 0||Dd(s,[n.error,c])),m3=n=>{if(n.suspense){const s=f=>f==="static"?f:Math.max(f??1e3,1e3),c=n.staleTime;n.staleTime=typeof c=="function"?(...f)=>s(c(...f)):s(c),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},y3=(n,r)=>(n==null?void 0:n.suspense)&&r.isPending,v3=(n,r,s)=>r.fetchOptimistic(n).catch(()=>{s.clearReset()});function g3(n,r,s){const c=r3(),f=o3(),h=tc(),d=h.defaultQueryOptions(n),v=h.getQueryCache().get(d.queryHash),b=n.subscribed!==!1;d._optimisticResults=c?"isRestoring":b?"optimistic":void 0,m3(d),f3(d,f,v),d3(f);const[g]=T.useState(()=>new r(h,d)),x=g.getOptimisticResult(d),p=!c&&b;if(T.useSyncExternalStore(T.useCallback(z=>{const q=p?g.subscribe(ot.batchCalls(z)):jt;return g.updateResult(),q},[g,p]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),T.useEffect(()=>{g.setOptions(d)},[d,g]),y3(d,x))throw v3(d,g,f);if(h3({result:x,errorResetBoundary:f,throwOnError:d.throwOnError,query:v,suspense:d.suspense}))throw x.error;return d.notifyOnChangeProps?x:g.trackResult(x)}function It(n,r){return g3(n,e3)}function md(n,r){const s=tc(),[c]=T.useState(()=>new n3(s,n));T.useEffect(()=>{c.setOptions(n)},[c,n]);const f=T.useSyncExternalStore(T.useCallback(d=>c.subscribe(ot.batchCalls(d)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h=T.useCallback((...d)=>{c.mutate(d[0],d[1]).catch(jt)},[c]);if(f.error&&Dd(c.options.throwOnError,[f.error]))throw f.error;return{...f,mutate:h,mutateAsync:f.mutate}}const p3="modulepreload",b3=function(n){return"/"+n},X0={},Bn=function(r,s,c){let f=Promise.resolve();if(s&&s.length>0){let d=function(g){return Promise.all(g.map(x=>Promise.resolve(x).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const v=document.querySelector("meta[property=csp-nonce]"),b=(v==null?void 0:v.nonce)||(v==null?void 0:v.getAttribute("nonce"));f=d(s.map(g=>{if(g=b3(g),g in X0)return;X0[g]=!0;const x=g.endsWith(".css"),p=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${p}`))return;const z=document.createElement("link");if(z.rel=x?"stylesheet":p3,x||(z.as="script"),z.crossOrigin="",z.href=g,b&&z.setAttribute("nonce",b),document.head.appendChild(z),x)return new Promise((q,G)=>{z.addEventListener("load",q),z.addEventListener("error",()=>G(new Error(`Unable to preload CSS for ${g}`)))})}))}function h(d){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=d,window.dispatchEvent(v),!v.defaultPrevented)throw d}return f.then(d=>{for(const v of d||[])v.status==="rejected"&&h(v.reason);return r().catch(h)})};/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const x3=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ep=(...n)=>n.filter((r,s,c)=>!!r&&r.trim()!==""&&c.indexOf(r)===s).join(" ").trim();/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var S3={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 v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const E3=T.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:c,className:f="",children:h,iconNode:d,...v},b)=>T.createElement("svg",{ref:b,...S3,width:r,height:r,stroke:n,strokeWidth:c?Number(s)*24/Number(r):s,className:ep("lucide",f),...v},[...d.map(([g,x])=>T.createElement(g,x)),...Array.isArray(h)?h:[h]]));/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const be=(n,r)=>{const s=T.forwardRef(({className:c,...f},h)=>T.createElement(E3,{ref:h,iconNode:r,className:ep(`lucide-${x3(n)}`,c),...f}));return s.displayName=`${n}`,s};/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _3=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],T3=be("Award",_3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const N3=[["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"}]],C3=be("BookOpen",N3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const z3=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],O3=be("Briefcase",z3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const R3=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],w3=be("Building2",R3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const A3=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],tp=be("CalendarDays",A3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const j3=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],M3=be("ChartColumn",j3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const D3=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],U3=be("ChevronDown",D3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const k3=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],H3=be("ChevronsLeft",k3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const q3=[["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"}]],L3=be("CircleAlert",q3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const B3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Q3=be("CircleCheck",B3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const G3=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Y3=be("CodeXml",G3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const V3=[["path",{d:"M14.4 14.4 9.6 9.6",key:"ic80wn"}],["path",{d:"M18.657 21.485a2 2 0 1 1-2.829-2.828l-1.767 1.768a2 2 0 1 1-2.829-2.829l6.364-6.364a2 2 0 1 1 2.829 2.829l-1.768 1.767a2 2 0 1 1 2.828 2.829z",key:"nnl7wr"}],["path",{d:"m21.5 21.5-1.4-1.4",key:"1f1ice"}],["path",{d:"M3.9 3.9 2.5 2.5",key:"1evmna"}],["path",{d:"M6.404 12.768a2 2 0 1 1-2.829-2.829l1.768-1.767a2 2 0 1 1-2.828-2.829l2.828-2.828a2 2 0 1 1 2.829 2.828l1.767-1.768a2 2 0 1 1 2.829 2.829z",key:"yhosts"}]],X3=be("Dumbbell",V3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const K3=[["path",{d:"M12 22h6a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"12ixgl"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M5 17a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",key:"u0c8gj"}],["path",{d:"M7 16.5 8 22l-3-1-3 1 1-5.5",key:"5gm2nr"}]],Z3=be("FileBadge",K3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const J3=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],lp=be("FileText",J3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const F3=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],$3=be("FlaskConical",F3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const W3=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],ap=be("GraduationCap",W3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const P3=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]],I3=be("HeartHandshake",P3);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],tE=be("Image",eE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lE=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],aE=be("Inbox",lE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],iE=be("Info",nE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uE=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],rE=be("Languages",uE);/**
* @license lucide-react v0.475.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=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],cE=be("Menu",sE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oE=[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]],fE=be("MicVocal",oE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dE=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],hE=be("Moon",dE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mE=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],yE=be("Network",mE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vE=[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]],gE=be("Palette",vE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pE=[["path",{d:"M13.234 20.252 21 12.3",key:"1cbrk9"}],["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 0 2.828 2 2 0 0 0 2.828 0l8.414-8.586a4 4 0 0 0 0-5.656 4 4 0 0 0-5.656 0l-8.415 8.585a6 6 0 1 0 8.486 8.486",key:"1pkts6"}]],qd=be("Paperclip",pE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bE=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]],xE=be("PenLine",bE);/**
* @license lucide-react v0.475.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=[["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"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],EE=be("Pencil",SE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _E=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],TE=be("Plus",_E);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const NE=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],CE=be("Rocket",NE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],OE=be("Rows3",zE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const RE=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],wE=be("Search",RE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const AE=[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]],jE=be("Shapes",AE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ME=[["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"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],DE=be("ShieldAlert",ME);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const UE=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],kE=be("SlidersHorizontal",UE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const HE=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],qE=be("Star",HE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const LE=[["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"}]],BE=be("Sun",LE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const QE=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],np=be("Tag",QE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const GE=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],yd=be("Trash2",GE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const YE=[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]],VE=be("Trophy",YE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const XE=[["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"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],KE=be("Users",XE);/**
* @license lucide-react v0.475.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ZE=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ip=be("X",ZE),up=typeof window<"u"&&"__TAURI_INTERNALS__"in window,Ld="fp-token";function lc(){return localStorage.getItem(Ld)}function Bd(n){localStorage.setItem(Ld,n)}function rp(){localStorage.removeItem(Ld)}const sp=()=>up||!lc();async function cp(n,r){const c=await(await fetch("/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:n,password:r,device_name:"Web 浏览器"})})).json();if(!c.ok)throw new Error(c.error||"登录失败");return Bd(c.data.token),c.data}async function op(n,r,s){const f=await(await fetch("/auth/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:n,password:r,invite_code:s,device_name:"Web 浏览器"})})).json();if(!f.ok)throw new Error(f.error||"注册失败");return Bd(f.data.token),f.data}async function JE(){const r=await(await fetch("/auth/me",{headers:{Authorization:"Bearer "+lc()}})).json();if(!r.ok)throw new Error(r.error||"会话失效");return r.data}async function Me(n,r){if(up){const{invoke:d}=await Bn(async()=>{const{invoke:v}=await import("./core-DV6XEvTN.js");return{invoke:v}},[]);return d(n,{payload:r??{}})}const s={"Content-Type":"application/json"},c=lc();c&&(s.Authorization="Bearer "+c);const f=await fetch("/api/"+n,{method:"POST",headers:s,body:JSON.stringify(r??{})});if(f.status===401)throw rp(),window.dispatchEvent(new CustomEvent("fp-auth-required")),new Error("登录已过期,请重新登录");const h=await f.json();if(!f.ok||!h.ok)throw new Error(h.error||"HTTP "+f.status);return h.data}const fp=()=>Me("app_info"),dp=()=>Me("sync_status"),ac=()=>Me("type_list"),FE=n=>Me("type_upsert",n),$E=n=>Me("type_delete",{id:n}),hp=n=>Me("taxonomy_list",{kind:n}),WE=n=>Me("taxonomy_upsert",n),PE=n=>Me("taxonomy_delete",{id:n}),Qd=()=>Me("dimension_list"),IE=n=>Me("dimension_upsert",n),e4=n=>Me("dimension_delete",{id:n}),mp=(n={})=>Me("footprint_list",{query:n}),Gd=n=>Me("footprint_get",{id:n}),yp=n=>Me("footprint_upsert",{item:n}),t4=n=>Me("footprint_delete",{id:n}),vp=(n={})=>Me("timeline",{query:n}),l4=n=>Me("stats_overview",{year:n}),a4=()=>Me("metric_list"),n4=n=>Me("metric_upsert",n),i4=n=>Me("metric_delete",{key:n}),u4=()=>Me("grades_overview"),r4=n=>Me("semester_upsert",n),s4=n=>Me("semester_delete",{id:n}),c4=n=>Me("course_upsert",n),o4=n=>Me("course_delete",{id:n}),f4=n=>Me("band_upsert",n),d4=n=>Me("band_delete",{id:n}),vd=n=>Me("attachment_add",n),gp=n=>Me("attachment_list",{owner_id:n}),pp=n=>Me("attachment_delete",{id:n}),er=n=>Me("attachment_read",{id:n}),h4=()=>Me("view_list"),m4=n=>Me("view_upsert",n),y4=n=>Me("view_delete",{id:n}),v4=Object.freeze(Object.defineProperty({__proto__:null,appInfo:fp,attachmentAdd:vd,attachmentDelete:pp,attachmentList:gp,attachmentRead:er,bandDelete:d4,bandUpsert:f4,clearToken:rp,courseDelete:o4,courseUpsert:c4,deleteDimension:e4,deleteTaxonomy:PE,deleteType:$E,footprintDelete:t4,footprintGet:Gd,footprintList:mp,footprintUpsert:yp,getToken:lc,gradesOverview:u4,isLocalMode:sp,listDimensions:Qd,listTaxonomy:hp,listTypes:ac,metricDelete:i4,metricList:a4,metricUpsert:n4,semesterDelete:s4,semesterUpsert:r4,serverLogin:cp,serverMe:JE,serverRegister:op,setToken:Bd,statsOverview:l4,syncStatus:dp,timeline:vp,upsertDimension:IE,upsertTaxonomy:WE,upsertType:FE,viewDelete:y4,viewList:h4,viewUpsert:m4},Symbol.toStringTag,{value:"Module"}));function bp(n){var r,s,c="";if(typeof n=="string"||typeof n=="number")c+=n;else if(typeof n=="object")if(Array.isArray(n)){var f=n.length;for(r=0;r<f;r++)n[r]&&(s=bp(n[r]))&&(c&&(c+=" "),c+=s)}else for(s in n)n[s]&&(c&&(c+=" "),c+=s);return c}function xp(){for(var n,r,s=0,c="",f=arguments.length;s<f;s++)(n=arguments[s])&&(r=bp(n))&&(c&&(c+=" "),c+=r);return c}const g4=(n,r)=>{const s=new Array(n.length+r.length);for(let c=0;c<n.length;c++)s[c]=n[c];for(let c=0;c<r.length;c++)s[n.length+c]=r[c];return s},p4=(n,r)=>({classGroupId:n,validator:r}),Sp=(n=new Map,r=null,s)=>({nextPart:n,validators:r,classGroupId:s}),Fs="-",K0=[],b4="arbitrary..",x4=n=>{const r=E4(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:c}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return S4(d);const v=d.split(Fs),b=v[0]===""&&v.length>1?1:0;return Ep(v,b,r)},getConflictingClassGroupIds:(d,v)=>{if(v){const b=c[d],g=s[d];return b?g?g4(g,b):b:g||K0}return s[d]||K0}}},Ep=(n,r,s)=>{if(n.length-r===0)return s.classGroupId;const f=n[r],h=s.nextPart.get(f);if(h){const g=Ep(n,r+1,h);if(g)return g}const d=s.validators;if(d===null)return;const v=r===0?n.join(Fs):n.slice(r).join(Fs),b=d.length;for(let g=0;g<b;g++){const x=d[g];if(x.validator(v))return x.classGroupId}},S4=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=n.slice(1,-1),s=r.indexOf(":"),c=r.slice(0,s);return c?b4+c:void 0})(),E4=n=>{const{theme:r,classGroups:s}=n;return _4(s,r)},_4=(n,r)=>{const s=Sp();for(const c in n){const f=n[c];Yd(f,s,c,r)}return s},Yd=(n,r,s,c)=>{const f=n.length;for(let h=0;h<f;h++){const d=n[h];T4(d,r,s,c)}},T4=(n,r,s,c)=>{if(typeof n=="string"){N4(n,r,s);return}if(typeof n=="function"){C4(n,r,s,c);return}z4(n,r,s,c)},N4=(n,r,s)=>{const c=n===""?r:_p(r,n);c.classGroupId=s},C4=(n,r,s,c)=>{if(O4(n)){Yd(n(c),r,s,c);return}r.validators===null&&(r.validators=[]),r.validators.push(p4(s,n))},z4=(n,r,s,c)=>{const f=Object.entries(n),h=f.length;for(let d=0;d<h;d++){const[v,b]=f[d];Yd(b,_p(r,v),s,c)}},_p=(n,r)=>{let s=n;const c=r.split(Fs),f=c.length;for(let h=0;h<f;h++){const d=c[h];let v=s.nextPart.get(d);v||(v=Sp(),s.nextPart.set(d,v)),s=v}return s},O4=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,R4=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,s=Object.create(null),c=Object.create(null);const f=(h,d)=>{s[h]=d,r++,r>n&&(r=0,c=s,s=Object.create(null))};return{get(h){let d=s[h];if(d!==void 0)return d;if((d=c[h])!==void 0)return f(h,d),d},set(h,d){h in s?s[h]=d:f(h,d)}}},gd="!",Z0=":",w4=[],J0=(n,r,s,c,f)=>({modifiers:n,hasImportantModifier:r,baseClassName:s,maybePostfixModifierPosition:c,isExternal:f}),A4=n=>{const{prefix:r,experimentalParseClassName:s}=n;let c=f=>{const h=[];let d=0,v=0,b=0,g;const x=f.length;for(let L=0;L<x;L++){const U=f[L];if(d===0&&v===0){if(U===Z0){h.push(f.slice(b,L)),b=L+1;continue}if(U==="/"){g=L;continue}}U==="["?d++:U==="]"?d--:U==="("?v++:U===")"&&v--}const p=h.length===0?f:f.slice(b);let z=p,q=!1;p.endsWith(gd)?(z=p.slice(0,-1),q=!0):p.startsWith(gd)&&(z=p.slice(1),q=!0);const G=g&&g>b?g-b:void 0;return J0(h,q,z,G)};if(r){const f=r+Z0,h=c;c=d=>d.startsWith(f)?h(d.slice(f.length)):J0(w4,!1,d,void 0,!0)}if(s){const f=c;c=h=>s({className:h,parseClassName:f})}return c},j4=n=>{const r=new Map;return n.orderSensitiveModifiers.forEach((s,c)=>{r.set(s,1e6+c)}),s=>{const c=[];let f=[];for(let h=0;h<s.length;h++){const d=s[h],v=d[0]==="[",b=r.has(d);v||b?(f.length>0&&(f.sort(),c.push(...f),f=[]),c.push(d)):f.push(d)}return f.length>0&&(f.sort(),c.push(...f)),c}},M4=n=>({cache:R4(n.cacheSize),parseClassName:A4(n),sortModifiers:j4(n),postfixLookupClassGroupIds:D4(n),...x4(n)}),D4=n=>{const r=Object.create(null),s=n.postfixLookupClassGroups;if(s)for(let c=0;c<s.length;c++)r[s[c]]=!0;return r},U4=/\s+/,k4=(n,r)=>{const{parseClassName:s,getClassGroupId:c,getConflictingClassGroupIds:f,sortModifiers:h,postfixLookupClassGroupIds:d}=r,v=[],b=n.trim().split(U4);let g="";for(let x=b.length-1;x>=0;x-=1){const p=b[x],{isExternal:z,modifiers:q,hasImportantModifier:G,baseClassName:L,maybePostfixModifierPosition:U}=s(p);if(z){g=p+(g.length>0?" "+g:g);continue}let Q=!!U,Y;if(Q){const X=L.substring(0,U);Y=c(X);const M=Y&&d[Y]?c(L):void 0;M&&M!==Y&&(Y=M,Q=!1)}else Y=c(L);if(!Y){if(!Q){g=p+(g.length>0?" "+g:g);continue}if(Y=c(L),!Y){g=p+(g.length>0?" "+g:g);continue}Q=!1}const Z=q.length===0?"":q.length===1?q[0]:h(q).join(":"),I=G?Z+gd:Z,K=I+Y;if(v.indexOf(K)>-1)continue;v.push(K);const ce=f(Y,Q);for(let X=0;X<ce.length;++X){const M=ce[X];v.push(I+M)}g=p+(g.length>0?" "+g:g)}return g},H4=(...n)=>{let r=0,s,c,f="";for(;r<n.length;)(s=n[r++])&&(c=Tp(s))&&(f&&(f+=" "),f+=c);return f},Tp=n=>{if(typeof n=="string")return n;let r,s="";for(let c=0;c<n.length;c++)n[c]&&(r=Tp(n[c]))&&(s&&(s+=" "),s+=r);return s},q4=(n,...r)=>{let s,c,f,h;const d=b=>{const g=r.reduce((x,p)=>p(x),n());return s=M4(g),c=s.cache.get,f=s.cache.set,h=v,v(b)},v=b=>{const g=c(b);if(g)return g;const x=k4(b,s);return f(b,x),x};return h=d,(...b)=>h(H4(...b))},L4=[],st=n=>{const r=s=>s[n]||L4;return r.isThemeGetter=!0,r.themeKey=n,r},Np=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Cp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,B4=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Q4=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,G4=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Y4=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,V4=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,X4=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Va=n=>B4.test(n),Te=n=>!!n&&!Number.isNaN(Number(n)),Ql=n=>!!n&&Number.isInteger(Number(n)),Wf=n=>n.endsWith("%")&&Te(n.slice(0,-1)),sa=n=>Q4.test(n),zp=()=>!0,K4=n=>G4.test(n)&&!Y4.test(n),Vd=()=>!1,Z4=n=>V4.test(n),J4=n=>X4.test(n),F4=n=>!ne(n)&&!ie(n),$4=n=>n.startsWith("@container")&&(n[10]==="/"&&n[11]!==void 0||n[11]==="s"&&n[16]!==void 0&&n.startsWith("-size/",10)||n[11]==="n"&&n[18]!==void 0&&n.startsWith("-normal/",10)),W4=n=>en(n,wp,Vd),ne=n=>Np.test(n),Nn=n=>en(n,Ap,K4),F0=n=>en(n,i_,Te),P4=n=>en(n,Mp,zp),I4=n=>en(n,jp,Vd),$0=n=>en(n,Op,Vd),e_=n=>en(n,Rp,J4),Gs=n=>en(n,Dp,Z4),ie=n=>Cp.test(n),$u=n=>Qn(n,Ap),t_=n=>Qn(n,jp),W0=n=>Qn(n,Op),l_=n=>Qn(n,wp),a_=n=>Qn(n,Rp),Ys=n=>Qn(n,Dp,!0),n_=n=>Qn(n,Mp,!0),en=(n,r,s)=>{const c=Np.exec(n);return c?c[1]?r(c[1]):s(c[2]):!1},Qn=(n,r,s=!1)=>{const c=Cp.exec(n);return c?c[1]?r(c[1]):s:!1},Op=n=>n==="position"||n==="percentage",Rp=n=>n==="image"||n==="url",wp=n=>n==="length"||n==="size"||n==="bg-size",Ap=n=>n==="length",i_=n=>n==="number",jp=n=>n==="family-name",Mp=n=>n==="number"||n==="weight",Dp=n=>n==="shadow",u_=()=>{const n=st("color"),r=st("font"),s=st("text"),c=st("font-weight"),f=st("tracking"),h=st("leading"),d=st("breakpoint"),v=st("container"),b=st("spacing"),g=st("radius"),x=st("shadow"),p=st("inset-shadow"),z=st("text-shadow"),q=st("drop-shadow"),G=st("blur"),L=st("perspective"),U=st("aspect"),Q=st("ease"),Y=st("animate"),Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],K=()=>[...I(),ie,ne],ce=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],M=()=>[ie,ne,b],ae=()=>[Va,"full","auto",...M()],ge=()=>[Ql,"none","subgrid",ie,ne],P=()=>["auto",{span:["full",Ql,ie,ne]},Ql,ie,ne],he=()=>[Ql,"auto",ie,ne],Je=()=>["auto","min","max","fr",ie,ne],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ee=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...M()],$=()=>[Va,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],de=()=>[v,Va,"screen","full","dvw","lvw","svw","min","max","fit",...M()],Ue=()=>[Va,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],J=()=>[n,ie,ne],Dt=()=>[...I(),W0,$0,{position:[ie,ne]}],al=()=>["no-repeat",{repeat:["","x","y","space","round"]}],zl=()=>["auto","cover","contain",l_,W4,{size:[ie,ne]}],N=()=>[Wf,$u,Nn],B=()=>["","none","full",g,ie,ne],te=()=>["",Te,$u,Nn],se=()=>["solid","dashed","dotted","double"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>[Te,Wf,W0,$0],Ae=()=>["","none",G,ie,ne],ue=()=>["none",Te,ie,ne],ye=()=>["none",Te,ie,ne],Qt=()=>[Te,ie,ne],ma=()=>[Va,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[sa],breakpoint:[sa],color:[zp],container:[sa],"drop-shadow":[sa],ease:["in","out","in-out"],font:[F4],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[sa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[sa],shadow:[sa],spacing:["px",Te],text:[sa],"text-shadow":[sa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Va,ne,ie,U]}],container:["container"],"container-type":[{"@container":["","normal","size",ie,ne]}],"container-named":[$4],columns:[{columns:[Te,"auto",ne,ie,v]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:K()}],overflow:[{overflow:ce()}],"overflow-x":[{"overflow-x":ce()}],"overflow-y":[{"overflow-y":ce()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{"inset-s":ae(),start:ae()}],end:[{"inset-e":ae(),end:ae()}],"inset-bs":[{"inset-bs":ae()}],"inset-be":[{"inset-be":ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[Ql,"auto",ie,ne]}],basis:[{basis:[Va,"full","auto",v,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,Va,"auto","initial","none",ne]}],grow:[{grow:["",Te,ie,ne]}],shrink:[{shrink:["",Te,ie,ne]}],order:[{order:[Ql,"first","last","none",ie,ne]}],"grid-cols":[{"grid-cols":ge()}],"col-start-end":[{col:P()}],"col-start":[{"col-start":he()}],"col-end":[{"col-end":he()}],"grid-rows":[{"grid-rows":ge()}],"row-start-end":[{row:P()}],"row-start":[{"row-start":he()}],"row-end":[{"row-end":he()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Je()}],"auto-rows":[{"auto-rows":Je()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...ee()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...ee(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ee(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...ee(),"baseline"]}],"place-self":[{"place-self":["auto",...ee()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...de()]}],"min-inline-size":[{"min-inline":["auto",...de()]}],"max-inline-size":[{"max-inline":["none",...de()]}],"block-size":[{block:["auto",...Ue()]}],"min-block-size":[{"min-block":["auto",...Ue()]}],"max-block-size":[{"max-block":["none",...Ue()]}],w:[{w:[v,"screen",...$()]}],"min-w":[{"min-w":[v,"screen","none",...$()]}],"max-w":[{"max-w":[v,"screen","none","prose",{screen:[d]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh","none",...$()]}],"font-size":[{text:["base",s,$u,Nn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[c,n_,P4]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Wf,ne]}],"font-family":[{font:[t_,I4,r]}],"font-features":[{"font-features":[ne]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[f,ie,ne]}],"line-clamp":[{"line-clamp":[Te,"none",ie,F0]}],leading:[{leading:["none",h,...M()]}],"list-image":[{"list-image":["none",ie,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:J()}],"text-color":[{text:J()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",ie,Nn]}],"text-decoration-color":[{decoration:J()}],"underline-offset":[{"underline-offset":[Te,"auto",ie,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"tab-size":[{tab:[Ql,ie,ne]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Dt()}],"bg-repeat":[{bg:al()}],"bg-size":[{bg:zl()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ql,ie,ne],radial:["",ie,ne],conic:["",Ql,ie,ne]},a_,e_]}],"bg-color":[{bg:J()}],"gradient-from-pos":[{from:N()}],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:J()}],"gradient-via":[{via:J()}],"gradient-to":[{to:J()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-bs":[{"border-bs":te()}],"border-w-be":[{"border-be":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:J()}],"border-color-x":[{"border-x":J()}],"border-color-y":[{"border-y":J()}],"border-color-s":[{"border-s":J()}],"border-color-e":[{"border-e":J()}],"border-color-bs":[{"border-bs":J()}],"border-color-be":[{"border-be":J()}],"border-color-t":[{"border-t":J()}],"border-color-r":[{"border-r":J()}],"border-color-b":[{"border-b":J()}],"border-color-l":[{"border-l":J()}],"divide-color":[{divide:J()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,ie,ne]}],"outline-w":[{outline:["",Te,$u,Nn]}],"outline-color":[{outline:J()}],shadow:[{shadow:["","inner","none",x,Ys,Gs]}],"shadow-color":[{shadow:J()}],"inset-shadow":[{"inset-shadow":["none",p,Ys,Gs]}],"inset-shadow-color":[{"inset-shadow":J()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:J()}],"ring-offset-w":[{"ring-offset":[Te,Nn]}],"ring-offset-color":[{"ring-offset":J()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":J()}],"text-shadow":[{"text-shadow":["none",z,Ys,Gs]}],"text-shadow-color":[{"text-shadow":J()}],opacity:[{opacity:[Te,ie,ne]}],"mix-blend":[{"mix-blend":[...ze(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ze()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":me()}],"mask-image-linear-to-pos":[{"mask-linear-to":me()}],"mask-image-linear-from-color":[{"mask-linear-from":J()}],"mask-image-linear-to-color":[{"mask-linear-to":J()}],"mask-image-t-from-pos":[{"mask-t-from":me()}],"mask-image-t-to-pos":[{"mask-t-to":me()}],"mask-image-t-from-color":[{"mask-t-from":J()}],"mask-image-t-to-color":[{"mask-t-to":J()}],"mask-image-r-from-pos":[{"mask-r-from":me()}],"mask-image-r-to-pos":[{"mask-r-to":me()}],"mask-image-r-from-color":[{"mask-r-from":J()}],"mask-image-r-to-color":[{"mask-r-to":J()}],"mask-image-b-from-pos":[{"mask-b-from":me()}],"mask-image-b-to-pos":[{"mask-b-to":me()}],"mask-image-b-from-color":[{"mask-b-from":J()}],"mask-image-b-to-color":[{"mask-b-to":J()}],"mask-image-l-from-pos":[{"mask-l-from":me()}],"mask-image-l-to-pos":[{"mask-l-to":me()}],"mask-image-l-from-color":[{"mask-l-from":J()}],"mask-image-l-to-color":[{"mask-l-to":J()}],"mask-image-x-from-pos":[{"mask-x-from":me()}],"mask-image-x-to-pos":[{"mask-x-to":me()}],"mask-image-x-from-color":[{"mask-x-from":J()}],"mask-image-x-to-color":[{"mask-x-to":J()}],"mask-image-y-from-pos":[{"mask-y-from":me()}],"mask-image-y-to-pos":[{"mask-y-to":me()}],"mask-image-y-from-color":[{"mask-y-from":J()}],"mask-image-y-to-color":[{"mask-y-to":J()}],"mask-image-radial":[{"mask-radial":[ie,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":me()}],"mask-image-radial-to-pos":[{"mask-radial-to":me()}],"mask-image-radial-from-color":[{"mask-radial-from":J()}],"mask-image-radial-to-color":[{"mask-radial-to":J()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":me()}],"mask-image-conic-to-pos":[{"mask-conic-to":me()}],"mask-image-conic-from-color":[{"mask-conic-from":J()}],"mask-image-conic-to-color":[{"mask-conic-to":J()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Dt()}],"mask-repeat":[{mask:al()}],"mask-size":[{mask:zl()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,ne]}],filter:[{filter:["","none",ie,ne]}],blur:[{blur:Ae()}],brightness:[{brightness:[Te,ie,ne]}],contrast:[{contrast:[Te,ie,ne]}],"drop-shadow":[{"drop-shadow":["","none",q,Ys,Gs]}],"drop-shadow-color":[{"drop-shadow":J()}],grayscale:[{grayscale:["",Te,ie,ne]}],"hue-rotate":[{"hue-rotate":[Te,ie,ne]}],invert:[{invert:["",Te,ie,ne]}],saturate:[{saturate:[Te,ie,ne]}],sepia:[{sepia:["",Te,ie,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,ne]}],"backdrop-blur":[{"backdrop-blur":Ae()}],"backdrop-brightness":[{"backdrop-brightness":[Te,ie,ne]}],"backdrop-contrast":[{"backdrop-contrast":[Te,ie,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,ie,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,ie,ne]}],"backdrop-invert":[{"backdrop-invert":["",Te,ie,ne]}],"backdrop-opacity":[{"backdrop-opacity":[Te,ie,ne]}],"backdrop-saturate":[{"backdrop-saturate":[Te,ie,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,ie,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",ie,ne]}],ease:[{ease:["linear","initial",Q,ie,ne]}],delay:[{delay:[Te,ie,ne]}],animate:[{animate:["none",Y,ie,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[L,ie,ne]}],"perspective-origin":[{"perspective-origin":K()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:ye()}],"scale-x":[{"scale-x":ye()}],"scale-y":[{"scale-y":ye()}],"scale-z":[{"scale-z":ye()}],"scale-3d":["scale-3d"],skew:[{skew:Qt()}],"skew-x":[{"skew-x":Qt()}],"skew-y":[{"skew-y":Qt()}],transform:[{transform:[ie,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:K()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ma()}],"translate-x":[{"translate-x":ma()}],"translate-y":[{"translate-y":ma()}],"translate-z":[{"translate-z":ma()}],"translate-none":["translate-none"],zoom:[{zoom:[Ql,ie,ne]}],accent:[{accent:J()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:J()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie,ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":J()}],"scrollbar-track-color":[{"scrollbar-track":J()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie,ne]}],fill:[{fill:["none",...J()]}],"stroke-w":[{stroke:[Te,$u,Nn,F0]}],stroke:[{stroke:["none",...J()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},r_=q4(u_);function Nl(...n){return r_(xp(n))}const s_=[{section:"工作区",items:[{to:"/timeline",label:"时间线",icon:tp},{to:"/records",label:"记录",icon:OE},{to:"/grades",label:"成绩",icon:ap},{to:"/dashboard",label:"统计",icon:M3}]},{section:"配置",items:[{to:"/types",label:"记录类型",icon:jE},{to:"/taxonomy",label:"字典与维度",icon:kE}]}];function c_(){return y.jsxs("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none","aria-hidden":!0,children:[y.jsx("rect",{x:"1",y:"1",width:"24",height:"24",rx:"6",fill:"var(--brand)"}),y.jsx("ellipse",{cx:"11",cy:"10",rx:"4.2",ry:"5.2",fill:"#fff",opacity:"0.95",transform:"rotate(-18 11 10)"}),y.jsx("circle",{cx:"17.5",cy:"17.5",r:"3.1",fill:"#fff",opacity:"0.7"})]})}function o_({open:n,onClose:r}){var f;const s=It({queryKey:["app-info"],queryFn:fp,staleTime:1/0}),c=It({queryKey:["sync-status"],queryFn:dp,refetchInterval:15e3});return y.jsxs("aside",{className:"flex w-[224px] shrink-0 flex-col border-r border-line bg-surface max-lg:fixed max-lg:inset-y-0 max-lg:left-0 max-lg:z-40 max-lg:transition-transform"+(n?" max-lg:translate-x-0":" max-lg:-translate-x-full"),children:[y.jsxs("div",{className:"flex h-14 items-center gap-2.5 border-b border-line px-4",children:[y.jsx(c_,{}),y.jsxs("div",{className:"leading-tight",children:[y.jsx("div",{className:"text-[14px] font-semibold text-ink-1",children:"足迹"}),y.jsx("div",{className:"text-[10px] font-medium tracking-[0.18em] text-ink-3",children:"FOOTPRINTS"})]})]}),y.jsx("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:s_.map(h=>y.jsxs("div",{className:"mb-4",children:[y.jsx("div",{className:"px-2 pb-1.5 text-[11px] font-medium text-ink-3",children:h.section}),y.jsx("div",{className:"flex flex-col gap-0.5",children:h.items.map(d=>y.jsxs(Qg,{to:d.to,onClick:r,className:({isActive:v})=>Nl("flex h-8 items-center gap-2.5 rounded-md px-2 text-[13px] transition-colors",v?"bg-brand-subtle font-medium text-brand-text":"text-ink-2 hover:bg-surface-3 hover:text-ink-1"),children:[y.jsx(d.icon,{size:15,strokeWidth:2}),d.label]},d.to))})]},h.section))}),y.jsxs("div",{className:"border-t border-line px-4 py-3",children:[y.jsx("div",{className:"truncate text-[11px] text-ink-3",title:((f=s.data)==null?void 0:f.db_path)??"",children:s.data?"数据库:"+s.data.db_path.split(/[\\/]/).slice(-1)[0]:"加载中…"}),y.jsxs("div",{className:"mt-0.5 flex items-center gap-1 text-[11px] text-ink-3",children:[y.jsx(H3,{size:11}),c.data?c.data.pending_ops>0?"本地模式 · 待同步 "+c.data.pending_ops:"本地模式 · 数据已就绪":"…"]})]})]})}const P0=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,I0=xp,f_=(n,r)=>s=>{var c;if((r==null?void 0:r.variants)==null)return I0(n,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:f,defaultVariants:h}=r,d=Object.keys(f).map(g=>{const x=s==null?void 0:s[g],p=h==null?void 0:h[g];if(x===null)return null;const z=P0(x)||P0(p);return f[g][z]}),v=s&&Object.entries(s).reduce((g,x)=>{let[p,z]=x;return z===void 0||(g[p]=z),g},{}),b=r==null||(c=r.compoundVariants)===null||c===void 0?void 0:c.reduce((g,x)=>{let{class:p,className:z,...q}=x;return Object.entries(q).every(G=>{let[L,U]=G;return Array.isArray(U)?U.includes({...h,...v}[L]):{...h,...v}[L]===U})?[...g,p,z]:g},[]);return I0(n,d,b,s==null?void 0:s.class,s==null?void 0:s.className)},d_=f_("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md font-medium transition-colors select-none disabled:pointer-events-none disabled:opacity-45",{variants:{variant:{primary:"bg-brand text-white hover:bg-brand-hover shadow-card",secondary:"bg-surface text-ink-1 border border-line hover:bg-surface-3 hover:border-line-strong",ghost:"text-ink-2 hover:bg-surface-3 hover:text-ink-1",subtle:"bg-brand-subtle text-brand-text hover:brightness-[0.97]",danger:"bg-danger text-white hover:brightness-110","danger-ghost":"text-danger hover:bg-danger-subtle"},size:{sm:"h-7 px-2.5 text-[12px]",md:"h-8 px-3 text-[13px]",lg:"h-9 px-4 text-sm",icon:"h-8 w-8 p-0","icon-sm":"h-7 w-7 p-0"}},defaultVariants:{variant:"secondary",size:"md"}}),el=T.forwardRef(function({className:r,variant:s,size:c,...f},h){return y.jsx("button",{ref:h,className:Nl(d_({variant:s,size:c}),r),...f})}),Up="w-full rounded-md border border-line bg-surface px-2.5 text-[13px] text-ink-1 placeholder:text-ink-3 transition-colors hover:border-line-strong focus:border-brand focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed",Mt=T.forwardRef(function({className:r,...s},c){return y.jsx("input",{ref:c,className:Nl(Up,"h-8",r),...s})}),pd=T.forwardRef(function({className:r,...s},c){return y.jsx("textarea",{ref:c,className:Nl(Up,"py-2 min-h-[72px] resize-y leading-relaxed",r),...s})});function Ye({label:n,required:r,hint:s,className:c,children:f}){return y.jsxs("div",{className:Nl("flex flex-col gap-1.5",c),children:[y.jsxs("label",{className:"text-[12px] font-medium text-ink-2",children:[n,r&&y.jsx("span",{className:"text-danger ml-0.5",children:"*"}),s&&y.jsx("span",{className:"text-ink-3 font-normal ml-2",children:s})]}),f]})}const ml=T.forwardRef(function({className:r,options:s,children:c,...f},h){return y.jsxs("div",{className:Nl("relative",r?r.split(" ").filter(d=>/^w-|^min-w|^flex-/.test(d)).join(" "):""),children:[y.jsx("select",{ref:h,className:Nl("w-full h-8 appearance-none rounded-md border border-line bg-surface pl-2.5 pr-7 text-[13px] text-ink-1","transition-colors hover:border-line-strong focus:border-brand focus:outline-none disabled:opacity-50",r),...f,children:s?s.map(d=>y.jsx("option",{value:d.value,children:d.label},d.value)):c}),y.jsx(U3,{size:14,className:"pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-ink-3"})]})});function Fi({className:n,color:r,...s}){return y.jsx("span",{className:Nl("inline-flex items-center gap-1 rounded-sm border px-1.5 py-px text-[11px] leading-[18px] font-medium whitespace-nowrap",n),style:r?{color:r,borderColor:r+"44",backgroundColor:r+"14"}:void 0,...s})}function h_({className:n,...r}){return y.jsx("span",{className:Nl("inline-flex items-center gap-1 rounded-sm border border-line bg-surface-2 px-1.5 py-px text-[11px] leading-[18px] font-medium text-ink-2 whitespace-nowrap",n),...r})}function Xd({open:n,onClose:r,title:s,width:c=560,children:f,footer:h}){return T.useEffect(()=>{if(!n)return;const d=v=>{v.key==="Escape"&&r()};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[n,r]),n?MS.createPortal(y.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center overflow-y-auto p-6 pt-[8vh]",children:[y.jsx("div",{className:"fixed inset-0 bg-black/45",onClick:r}),y.jsxs("div",{className:"relative w-full rounded-lg border border-line bg-surface shadow-pop",style:{maxWidth:c},role:"dialog",children:[y.jsxs("div",{className:"flex h-12 items-center justify-between border-b border-line px-4",children:[y.jsx("div",{className:"text-sm font-semibold text-ink-1",children:s}),y.jsx(el,{variant:"ghost",size:"icon-sm",onClick:r,"aria-label":"关闭",children:y.jsx(ip,{size:15})})]}),y.jsx("div",{className:"px-4 py-4 max-h-[64vh] overflow-y-auto",children:f}),h&&y.jsx("div",{className:"flex items-center justify-end gap-2 border-t border-line px-4 h-14",children:h})]})]}),document.body):null}function m_({icon:n,title:r,description:s,action:c}){return y.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 py-16 text-center",children:[y.jsx("div",{className:"text-ink-3",children:n??y.jsx(aE,{size:36,strokeWidth:1.5})}),y.jsx("div",{className:"text-[13px] font-medium text-ink-2",children:r}),s&&y.jsx("div",{className:"max-w-[360px] text-[12px] text-ink-3",children:s}),c&&y.jsx("div",{className:"mt-2",children:c})]})}const kp=T.createContext(()=>{});function Hp(){return T.useContext(kp)}const y_={success:y.jsx(Q3,{size:15,className:"text-success"}),error:y.jsx(L3,{size:15,className:"text-danger"}),info:y.jsx(iE,{size:15,className:"text-brand"})};function v_({children:n}){const[r,s]=T.useState([]),c=T.useRef(0),f=T.useCallback((h,d)=>{const v=++c.current;s(b=>[...b,{id:v,kind:h,text:d}]),setTimeout(()=>s(b=>b.filter(g=>g.id!==v)),3200)},[]);return y.jsxs(kp.Provider,{value:f,children:[n,y.jsx("div",{className:"pointer-events-none fixed bottom-5 right-5 z-[60] flex flex-col gap-2",children:r.map(h=>y.jsxs("div",{className:Nl("pointer-events-auto flex items-center gap-2 rounded-md border border-line bg-surface px-3 py-2 text-[13px] text-ink-1 shadow-pop","animate-in"),children:[y_[h.kind],h.text]},h.id))})]})}function g_({open:n,title:r,content:s,onCancel:c,onOk:f,loading:h}){return y.jsx(Xd,{open:n,onClose:c,title:r,width:420,footer:y.jsxs(y.Fragment,{children:[y.jsx(el,{variant:"secondary",onClick:c,children:"取消"}),y.jsx(el,{variant:"danger",onClick:f,disabled:h,children:"确认"})]}),children:y.jsx("p",{className:"text-[13px] text-ink-2",children:s??"该操作不可撤销,请确认。"})})}const p_={"/timeline":{title:"时间线",sub:"按学年与月份回顾全部足迹"},"/records":{title:"记录",sub:"全部足迹的检索与管理"},"/grades":{title:"成绩",sub:"学年学科成绩 · 梯度与总览"},"/dashboard":{title:"统计",sub:"量化个人成长收获"},"/types":{title:"记录类型",sub:"类型与字段模板管理"},"/taxonomy":{title:"字典与维度",sub:"级别、角色与成长维度"}};function b_({onMenu:n}){const{pathname:r}=yl(),s=Ps(),[c,f]=T.useState(""),[h,d]=T.useState(document.documentElement.classList.contains("dark")),v=p_[r]??{title:""},b=()=>{const g=!h;d(g),document.documentElement.classList.toggle("dark",g),localStorage.setItem("fp-theme",g?"dark":"light"),window.dispatchEvent(new CustomEvent("fp-theme-change"))};return y.jsxs("header",{className:"flex h-14 shrink-0 items-center gap-4 border-b border-line bg-surface px-5",children:[y.jsx(el,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:n,"aria-label":"打开导航",children:y.jsx(cE,{size:17})}),y.jsxs("div",{className:"min-w-0",children:[y.jsx("h1",{className:"truncate text-[15px] font-semibold leading-tight text-ink-1",children:v.title}),v.sub&&y.jsx("p",{className:"truncate text-[11px] leading-tight text-ink-3",children:v.sub})]}),y.jsxs("div",{className:"relative ml-auto w-[280px]",children:[y.jsx(wE,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-ink-3"}),y.jsx(Mt,{className:"pl-8",placeholder:"搜索标题、内容、结果、标签",value:c,onChange:g=>f(g.target.value),onKeyDown:g=>{g.key==="Enter"&&c.trim()&&s("/records?q="+encodeURIComponent(c.trim()))}})]}),y.jsx(el,{variant:"ghost",size:"icon",onClick:b,"aria-label":"切换主题",children:h?y.jsx(BE,{size:15}):y.jsx(hE,{size:15})}),y.jsxs(el,{variant:"primary",onClick:()=>s("/records?new=1"),children:[y.jsx(TE,{size:14}),"新建记录"]})]})}function x_(){return y.jsxs("svg",{width:"44",height:"44",viewBox:"0 0 26 26",fill:"none","aria-hidden":!0,children:[y.jsx("rect",{x:"1",y:"1",width:"24",height:"24",rx:"6",fill:"var(--brand)"}),y.jsx("ellipse",{cx:"11",cy:"10",rx:"4.2",ry:"5.2",fill:"#fff",opacity:"0.95",transform:"rotate(-18 11 10)"}),y.jsx("circle",{cx:"17.5",cy:"17.5",r:"3.1",fill:"#fff",opacity:"0.7"})]})}function S_({onAuthed:n}){const[r,s]=T.useState("login"),[c,f]=T.useState(""),[h,d]=T.useState(""),[v,b]=T.useState(""),[g,x]=T.useState(""),[p,z]=T.useState(!1),q=async()=>{if(!c.trim()||!h){x("请填写账号与密码");return}z(!0),x("");try{if(r==="login")await cp(c.trim(),h);else{if(!v.trim())throw new Error("请填写邀请码");await op(c.trim(),h,v.trim())}n()}catch(G){x(G.message)}finally{z(!1)}};return y.jsx("div",{className:"flex h-full items-center justify-center bg-bg px-4",children:y.jsxs("div",{className:"w-full max-w-[380px] rounded-lg border border-line bg-surface p-6 shadow-pop",children:[y.jsxs("div",{className:"flex flex-col items-center gap-1.5 pb-5",children:[y.jsx(x_,{}),y.jsx("div",{className:"text-[18px] font-semibold tracking-tight text-ink-1",children:"足迹"}),y.jsx("div",{className:"text-[11px] font-medium tracking-[0.2em] text-ink-3",children:"FOOTPRINTS"})]}),y.jsxs("div",{className:"mb-4 flex rounded-md border border-line bg-surface-2 p-0.5 text-[12.5px]",children:[y.jsx("button",{className:"flex-1 rounded-sm px-2 py-1 transition-colors "+(r==="login"?"bg-surface font-medium text-ink-1 shadow-card":"text-ink-3"),onClick:()=>{s("login"),x("")},children:"登录"}),y.jsx("button",{className:"flex-1 rounded-sm px-2 py-1 transition-colors "+(r==="register"?"bg-surface font-medium text-ink-1 shadow-card":"text-ink-3"),onClick:()=>{s("register"),x("")},children:"注册"})]}),y.jsxs("div",{className:"flex flex-col gap-3",children:[y.jsx(Ye,{label:"用户名",required:!0,children:y.jsx(Mt,{value:c,onChange:G=>f(G.target.value),placeholder:"3-32 位字母数字-_",onKeyDown:G=>{G.key==="Enter"&&q()}})}),y.jsx(Ye,{label:"密码",required:!0,children:y.jsx(Mt,{type:"password",value:h,onChange:G=>d(G.target.value),placeholder:"至少 8 位",onKeyDown:G=>{G.key==="Enter"&&q()}})}),r==="register"&&y.jsx(Ye,{label:"邀请码",required:!0,hint:"向管理员索取",children:y.jsx(Mt,{value:v,onChange:G=>b(G.target.value),placeholder:"邀请码",onKeyDown:G=>{G.key==="Enter"&&q()}})}),g&&y.jsx("div",{className:"text-[12px] text-danger",children:g}),y.jsx(el,{variant:"primary",size:"lg",onClick:()=>void q(),disabled:p,children:p?"请稍候…":r==="login"?"进入我的档案":"创建我的档案"}),y.jsx("p",{className:"text-center text-[11px] text-ink-3",children:"数据按账号隔离存储 · 未注册用户请联系管理员获取邀请码"})]})]})})}function E_(){const[n,r]=T.useState(()=>sp()),[s,c]=T.useState(!1);return T.useEffect(()=>{const f=()=>r(!1);return window.addEventListener("fp-auth-required",f),()=>window.removeEventListener("fp-auth-required",f)},[]),n?y.jsx(v_,{children:y.jsxs("div",{className:"flex h-full",children:[s&&y.jsx("div",{className:"fixed inset-0 z-30 bg-black/45 lg:hidden",onClick:()=>c(!1),"aria-hidden":!0}),y.jsx(o_,{open:s,onClose:()=>c(!1)}),y.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[y.jsx(b_,{onMenu:()=>c(!0)}),y.jsx("main",{className:"min-h-0 flex-1 overflow-y-auto",children:y.jsx(Wx,{})})]})]})}):y.jsx(S_,{onAuthed:()=>r(!0)})}const eg={draft:{label:"草稿",color:"var(--text-3)",bg:"var(--surface-3)"},ongoing:{label:"进行中",color:"var(--brand-text)",bg:"var(--brand-subtle)"},submitted:{label:"已提交待果",color:"var(--warning)",bg:"var(--warning-subtle)"},finished:{label:"已完结",color:"var(--success)",bg:"var(--success-subtle)"}};function qp({status:n}){const r=eg[n]??eg.draft;return y.jsx("span",{className:"inline-flex items-center rounded-sm px-1.5 py-px text-[11px] leading-[18px] font-medium whitespace-nowrap",style:{color:r.color,backgroundColor:r.bg},children:r.label})}const __={国际级:"#7c3aed",国家级:"#dc2626",省市级:"#ea580c",区县级:"#2563eb",校级:"#16a34a",院级:"#0891b2"};function Lp({level:n}){return n?y.jsx(Fi,{color:__[n]??"var(--text-3)",children:n}):null}const T_={特等奖:"#b45309",一等奖:"#b45309",二等奖:"#ea580c",三等奖:"#2563eb",优秀奖:"#64748b"};function Bp({grade:n}){return n?y.jsx(Fi,{color:T_[n]??"var(--text-3)",children:n}):null}function Qp({role:n}){return n?y.jsx(h_,{children:n}):null}function Gp(){return y.jsx(Fi,{color:"var(--danger)",children:"负面"})}const Z_=[{name:"tag",label:"通用"},{name:"graduation-cap",label:"学业"},{name:"trophy",label:"竞赛"},{name:"flask-conical",label:"科研"},{name:"briefcase",label:"实习"},{name:"network",label:"学生工作"},{name:"heart-handshake",label:"志愿"},{name:"palette",label:"文体"},{name:"award",label:"荣誉"},{name:"file-badge",label:"证书"},{name:"star",label:"收藏"},{name:"shield-alert",label:"惩处"},{name:"book-open",label:"阅读"},{name:"code-2",label:"技术"},{name:"languages",label:"语言"},{name:"mic-2",label:"文艺"},{name:"pen-line",label:"发表"},{name:"rocket",label:"项目"},{name:"users",label:"团队"},{name:"building-2",label:"组织"},{name:"dumbbell",label:"体育"}],N_={tag:np,"graduation-cap":ap,trophy:VE,"flask-conical":$3,briefcase:O3,network:yE,"heart-handshake":I3,palette:gE,award:T3,"file-badge":Z3,star:qE,"shield-alert":DE,"book-open":C3,"code-2":Y3,languages:rE,"mic-2":fE,"pen-line":xE,rocket:CE,users:KE,"building-2":w3,dumbbell:X3};function C_({name:n,color:r,size:s=14,className:c}){const f=N_[n]??np;return y.jsx(f,{size:s,color:r,className:c,strokeWidth:2})}function z_({value:n,onChange:r,placeholder:s}){const[c,f]=T.useState(""),h=()=>{const v=c.trim();v&&!n.includes(v)&&r([...n,v]),f("")},d=v=>{v.key==="Enter"||v.key===","?(v.preventDefault(),h()):v.key==="Backspace"&&!c&&n.length&&r(n.slice(0,-1))};return y.jsxs("div",{className:Nl("flex min-h-8 w-full flex-wrap items-center gap-1 rounded-md border border-line bg-surface px-1.5 py-1","transition-colors hover:border-line-strong focus-within:border-brand"),children:[n.map(v=>y.jsxs("span",{className:"inline-flex items-center gap-0.5 rounded-sm bg-surface-3 px-1.5 text-[12px] text-ink-2",children:[v,y.jsx("button",{type:"button",className:"text-ink-3 hover:text-ink-1",onClick:()=>r(n.filter(b=>b!==v)),children:y.jsx(ip,{size:11})})]},v)),y.jsx("input",{className:"min-w-[80px] flex-1 border-0 bg-transparent text-[13px] outline-none placeholder:text-ink-3",value:c,placeholder:n.length?"":s??"输入后回车添加",onChange:v=>f(v.target.value),onKeyDown:d,onBlur:h})]})}function tg(n,r){return n.options?Array.isArray(n.options)?n.options.map(s=>({value:s,label:s})):r[n.options.taxonomy]??[]:[]}function O_({fields:n,value:r,onChange:s,taxonomies:c}){if(!n.length)return null;const f=(d,v)=>s({...r,[d]:v}),h=d=>{const v=r[d.key],b=d.required&&(v==null||v==="")?"该项必填":"",g=x=>d.unit?y.jsxs("div",{className:"flex items-center gap-2",children:[x,y.jsx("span",{className:"text-[12px] text-ink-3 shrink-0",children:d.unit})]}):x;switch(d.widget){case"textarea":return y.jsx(Ye,{label:d.label,required:d.required,hint:b,children:y.jsx(pd,{value:String(v??""),onChange:x=>f(d.key,x.target.value),placeholder:d.placeholder})},d.key);case"number":return y.jsx(Ye,{label:d.label,required:d.required,hint:b,children:g(y.jsx(Mt,{type:"number",step:"any",className:"num",value:v==null?"":String(v),onChange:x=>f(d.key,x.target.value===""?void 0:Number(x.target.value))}))},d.key);case"date":return y.jsx(Ye,{label:d.label,required:d.required,hint:b,children:y.jsx(Mt,{type:"date",value:String(v??""),onChange:x=>f(d.key,x.target.value)})},d.key);case"select":return y.jsx(Ye,{label:d.label,required:d.required,hint:b,children:y.jsx(ml,{value:String(v??""),onChange:x=>f(d.key,x.target.value||void 0),options:[{value:"",label:"请选择"},...tg(d,c)]})},d.key);case"multiselect":{const x=tg(d,c),p=Array.isArray(v)?v:[];return y.jsx(Ye,{label:d.label,required:d.required,hint:b,children:y.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[x.map(z=>{const q=p.includes(z.value);return y.jsx("button",{type:"button",className:"rounded-sm border px-2 py-0.5 text-[12px] transition-colors "+(q?"border-brand bg-brand-subtle text-brand-text":"border-line bg-surface text-ink-2 hover:border-line-strong"),onClick:()=>f(d.key,q?p.filter(G=>G!==z.value):[...p,z.value]),children:z.label},z.value)}),!x.length&&y.jsx("span",{className:"text-[12px] text-ink-3",children:"未配置选项"})]})},d.key)}case"link":return y.jsx(Ye,{label:d.label,required:d.required,hint:b||"关联记录功能规划中,暂以文本记录",children:y.jsx(Mt,{value:String(v??""),onChange:x=>f(d.key,x.target.value),placeholder:d.placeholder})},d.key);default:return y.jsx(Ye,{label:d.label,required:d.required,hint:b,children:y.jsx(Mt,{value:String(v??""),onChange:x=>f(d.key,x.target.value),placeholder:d.placeholder})},d.key)}};return y.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-3.5",children:n.map(d=>y.jsx("div",{className:d.widget==="textarea"?"col-span-2":"",children:h(d)},d.key))})}function lg(n){return n?n.slice(0,16).replace("T"," "):""}function R_(n,r){const s=n?n.slice(0,10):"",c=r?r.slice(0,10):"";return s&&c?s+" ~ "+c:s?s+(r===""?"":" 起"):c?"至 "+c:""}function bd(n){return n<1024?n+" B":n<1024*1024?(n/1024).toFixed(1)+" KB":(n/1024/1024).toFixed(1)+" MB"}function ag({items:n,pending:r,onPick:s,onDeleteSaved:c,onDeletePending:f,onOpenSaved:h,uploading:d}){const v=T.useRef(null),b=n.length+r.length;return y.jsxs("div",{className:"rounded-md border border-line bg-surface-2 p-3",children:[y.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-medium text-ink-2",children:[y.jsx(qd,{size:13}),"附件(",b,")"]}),y.jsx(el,{size:"sm",variant:"secondary",disabled:d,onClick:()=>{var g;return(g=v.current)==null?void 0:g.click()},children:d?"上传中…":"添加文件"}),y.jsx("input",{ref:v,type:"file",multiple:!0,className:"hidden",onChange:g=>{var x;(x=g.target.files)!=null&&x.length&&s(g.target.files),g.target.value=""}})]}),y.jsxs("div",{className:"flex flex-col gap-1",children:[n.map(g=>y.jsxs("div",{className:"flex items-center gap-2 rounded-sm bg-surface px-2 py-1.5 text-[12px]",children:[y.jsx(lp,{size:13,className:"text-ink-3 shrink-0"}),y.jsx("span",{className:"truncate "+(h?"cursor-pointer text-ink-1 hover:text-brand-text hover:underline":"text-ink-1"),onClick:()=>h==null?void 0:h(g),title:g.file_name,children:g.file_name}),y.jsx("span",{className:"num ml-auto shrink-0 text-ink-3",children:bd(g.size)}),y.jsx("button",{className:"text-ink-3 hover:text-danger shrink-0",onClick:()=>c(g.id),"aria-label":"删除附件",children:y.jsx(yd,{size:13})})]},"s"+g.id)),r.map((g,x)=>{var p;return y.jsxs("div",{className:"flex items-center gap-2 rounded-sm bg-surface px-2 py-1.5 text-[12px]",children:[(p=g.mime)!=null&&p.startsWith("image/")&&g.preview?y.jsx("img",{src:g.preview,alt:g.file_name,className:"size-7 shrink-0 rounded object-cover"}):y.jsx(tE,{size:13,className:"text-ink-3 shrink-0"}),y.jsx("span",{className:"truncate text-ink-1",children:g.file_name}),y.jsx("span",{className:"text-[11px] text-brand-text",children:"待上传"}),y.jsx("span",{className:"num ml-auto shrink-0 text-ink-3",children:bd(g.size)}),y.jsx("button",{className:"text-ink-3 hover:text-danger shrink-0",onClick:()=>f(x),"aria-label":"移除",children:y.jsx(yd,{size:13})})]},"p"+x)}),!b&&y.jsx("div",{className:"py-1 text-[12px] text-ink-3",children:"证书扫描件、照片、文档等佐证材料"})]})]})}function ng(n){return new Promise((r,s)=>{const c=new FileReader;c.onload=()=>{var v;const f=String(c.result||""),h=f.indexOf(","),d=(v=n.type)!=null&&v.startsWith("image/")?URL.createObjectURL(n):void 0;r({file_name:n.name,mime:n.type||void 0,size:n.size,data_b64:h>=0?f.slice(h+1):f,preview:d})},c.onerror=()=>s(new Error("读取文件失败")),c.readAsDataURL(n)})}function Yp(n,r,s){if(!s)return;const c=Uint8Array.from(atob(s),d=>d.charCodeAt(0)),f=new Blob([c],{type:r||"application/octet-stream"}),h=URL.createObjectURL(f);if(r!=null&&r.startsWith("image/")||r==="application/pdf")window.open(h,"_blank");else{const d=document.createElement("a");d.href=h,d.download=n,d.click()}setTimeout(()=>URL.revokeObjectURL(h),6e4)}const ig={type_id:null,title:"",organizer:"",start_date:"",end_date:"",status:"draft",role:"",level:"",award_grade:"",rank:"",polarity:"positive",weight:"3",description:"",result:"",tags:[],dimension_ids:[],group_id:"",parent_id:"",extras:{}},w_=["特等奖","一等奖","二等奖","三等奖","优秀奖","无"],ug=80*1024*1024,A_=[{value:"draft",label:"草稿"},{value:"ongoing",label:"进行中"},{value:"submitted",label:"已提交待果"},{value:"finished",label:"已完结"}];function j_({open:n,onClose:r,footprintId:s,onSaved:c}){var ae,ge,P,he,Je;const f=tc(),h=Hp(),[d,v]=T.useState(ig),[b,g]=T.useState([]),[x,p]=T.useState(!1),[z,q]=T.useState(""),G=It({queryKey:["types"],queryFn:ac,enabled:n}),L=It({queryKey:["taxonomy-all"],queryFn:()=>hp(),enabled:n}),U=It({queryKey:["dimensions"],queryFn:Qd,enabled:n}),Q=It({queryKey:["footprint",s],queryFn:()=>Gd(s),enabled:n&&!!s}),Y=It({queryKey:["attachments",s],queryFn:()=>gp(s),enabled:n&&!!s}),Z=T.useMemo(()=>{var D;return(D=G.data)==null?void 0:D.items.find(ee=>ee.id===d.type_id)},[G.data,d.type_id]),I=It({queryKey:["parent-candidates",d.type_id],queryFn:()=>mp({types:d.type_id?[d.type_id]:void 0,page_size:200,sort:"date_desc"}),enabled:n&&!!d.type_id});T.useEffect(()=>{if(n)if(q(""),g([]),s&&Q.data){const D=Q.data.item;v({type_id:D.type_id,title:D.title,organizer:D.organizer??"",start_date:(D.start_date??"").slice(0,10),end_date:(D.end_date??"").slice(0,10),status:D.status,role:D.role??"",level:D.level??"",award_grade:D.award_grade??"",rank:D.rank!=null?String(D.rank):"",polarity:D.polarity,weight:String(D.weight??3),description:D.description??"",result:D.result??"",tags:D.tags??[],dimension_ids:D.dimensions??[],group_id:D.group_id??"",parent_id:D.parent_id!=null?String(D.parent_id):"",extras:D.extras??{}})}else v(ig)},[n,s,Q.data]);const K=T.useMemo(()=>{var ee,V;const D={};for(const $ of((ee=L.data)==null?void 0:ee.items)??[])(D[V=$.kind]??(D[V]=[])).push({value:$.value,label:$.value});return D},[L.data]),ce=md({mutationFn:async()=>{if(!d.type_id)throw new Error("请选择记录类型");if(!d.title.trim())throw new Error("请填写标题");const D={};for(const $ of(Z==null?void 0:Z.form_template)??[])if($.metric&&$.widget==="number"){const de=d.extras[$.key];typeof de=="number"&&!Number.isNaN(de)&&(D[$.metric]=de)}const ee={id:s??void 0,type_id:d.type_id,title:d.title.trim(),organizer:d.organizer||null,start_date:d.start_date||null,end_date:d.end_date||null,status:d.status,role:d.role||null,level:d.level||null,award_grade:d.award_grade&&d.award_grade!=="无"?d.award_grade:null,rank:d.rank?Number(d.rank):null,polarity:d.polarity,description:d.description,result:d.result,tags:d.tags,dimension_ids:d.dimension_ids,group_id:d.group_id||null,parent_id:d.parent_id?Number(d.parent_id):null,weight:Number(d.weight)||3,extras:d.extras,metrics:D},V=await yp(ee);for(const $ of b)await vd({owner_id:V.id,file_name:$.file_name,mime:$.mime,size:$.size,data_b64:$.data_b64});return V.id},onSuccess:D=>{f.invalidateQueries({queryKey:["footprints"]}),f.invalidateQueries({queryKey:["timeline"]}),f.invalidateQueries({queryKey:["stats"]}),f.invalidateQueries({queryKey:["footprint"]}),f.invalidateQueries({queryKey:["attachments",D]}),f.invalidateQueries({queryKey:["types"]}),h("success",s?"记录已更新":"记录已创建"),c==null||c(D),r()},onError:D=>q(D.message)}),X=(D,ee)=>v(V=>({...V,[D]:ee})),M=md({mutationFn:D=>pp(D),onSuccess:()=>void f.invalidateQueries({queryKey:["attachments",s]})});return y.jsx(Xd,{open:n,onClose:r,width:760,title:s?"编辑记录":"新建记录",footer:y.jsxs(y.Fragment,{children:[z&&y.jsx("span",{className:"mr-auto text-[12px] text-danger",children:z}),y.jsx(el,{variant:"secondary",onClick:r,children:"取消"}),y.jsx(el,{variant:"primary",onClick:()=>ce.mutate(),disabled:ce.isPending,children:ce.isPending?"保存中…":"保存"})]}),children:y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-[200px_1fr] gap-x-3 gap-y-3.5",children:[y.jsx(Ye,{label:"类型",required:!0,children:y.jsx(ml,{value:d.type_id!=null?String(d.type_id):"",onChange:D=>X("type_id",D.target.value?Number(D.target.value):null),options:[{value:"",label:"请选择"},...(((ae=G.data)==null?void 0:ae.items)??[]).map(D=>({value:String(D.id),label:D.name}))]})}),y.jsx(Ye,{label:"标题",required:!0,children:y.jsx(Mt,{value:d.title,onChange:D=>X("title",D.target.value),placeholder:"事项名称,如:2025 全国大学生数学建模竞赛"})})]}),y.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-x-3 gap-y-3.5",children:[y.jsx(Ye,{label:"组织方 / 所在组织",children:y.jsx(Mt,{value:d.organizer,onChange:D=>X("organizer",D.target.value),placeholder:"如:中国工业与应用数学学会"})}),y.jsx(Ye,{label:"开始日期",children:y.jsx(Mt,{type:"date",value:d.start_date,onChange:D=>X("start_date",D.target.value)})}),y.jsx(Ye,{label:"结束日期",children:y.jsx(Mt,{type:"date",value:d.end_date,onChange:D=>X("end_date",D.target.value)})})]}),y.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-x-3 gap-y-3.5",children:[y.jsx(Ye,{label:"角色",children:y.jsx(ml,{value:d.role,onChange:D=>X("role",D.target.value),options:[{value:"",label:"未设置"},...K.role??[]]})}),y.jsx(Ye,{label:"级别",children:y.jsx(ml,{value:d.level,onChange:D=>X("level",D.target.value),options:[{value:"",label:"未设置"},...K.level??[]]})}),y.jsx(Ye,{label:"状态",children:y.jsx(ml,{value:d.status,onChange:D=>X("status",D.target.value),options:A_})}),y.jsx(Ye,{label:"重要度",children:y.jsx(ml,{value:d.weight,onChange:D=>X("weight",D.target.value),options:[1,2,3,4,5].map(D=>({value:String(D),label:String(D)}))})})]}),y.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-x-3 gap-y-3.5",children:[y.jsx(Ye,{label:"奖等",children:y.jsx(ml,{value:d.award_grade,onChange:D=>X("award_grade",D.target.value),options:[{value:"",label:"未设置"},...w_.map(D=>({value:D,label:D}))]})}),y.jsx(Ye,{label:"名次",children:y.jsx(Mt,{type:"number",className:"num",value:d.rank,onChange:D=>X("rank",D.target.value),placeholder:"如 2"})}),y.jsx(Ye,{label:"性质",children:y.jsx(ml,{value:d.polarity,onChange:D=>X("polarity",D.target.value),options:[{value:"positive",label:"正面"},{value:"negative",label:"负面"}]})}),y.jsx(Ye,{label:"上级记录",hint:"晋升链",children:y.jsx(ml,{value:d.parent_id,onChange:D=>X("parent_id",D.target.value),options:[{value:"",label:"无"},...(((ge=I.data)==null?void 0:ge.items)??[]).filter(D=>D.id!==s).map(D=>({value:String(D.id),label:D.title.slice(0,24)}))]})})]}),y.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-3.5",children:[y.jsx(Ye,{label:"工作内容 / 描述",children:y.jsx(pd,{value:d.description,onChange:D=>X("description",D.target.value),placeholder:"具体做了什么、承担什么分工"})}),y.jsx(Ye,{label:"结果 / 产出",children:y.jsx(pd,{value:d.result,onChange:D=>X("result",D.target.value),placeholder:"获奖等级、成果、最终产品等"})})]}),y.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3 gap-y-3.5",children:[y.jsx(Ye,{label:"标签",children:y.jsx(z_,{value:d.tags,onChange:D=>X("tags",D)})}),y.jsx(Ye,{label:"成长维度",children:y.jsxs("div",{className:"flex flex-wrap gap-1.5 min-h-8 items-center",children:[(((P=U.data)==null?void 0:P.items)??[]).map(D=>{const ee=d.dimension_ids.includes(D.id);return y.jsx("button",{type:"button",className:"rounded-sm border px-2 py-0.5 text-[12px] transition-colors "+(ee?"border-brand bg-brand-subtle text-brand-text":"border-line bg-surface text-ink-2 hover:border-line-strong"),onClick:()=>X("dimension_ids",ee?d.dimension_ids.filter(V=>V!==D.id):[...d.dimension_ids,D.id]),children:D.name},D.id)}),!((he=U.data)!=null&&he.items.length)&&y.jsx("span",{className:"text-[12px] text-ink-3",children:"尚未配置维度(配置页可添加)"})]})})]}),y.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-3",children:y.jsx(Ye,{label:"事件组 ID",hint:"同一场事件的多条记录共享",children:y.jsx(Mt,{value:d.group_id,onChange:D=>X("group_id",D.target.value),placeholder:"如 g2025001(可选)"})})}),Z&&Z.form_template.length>0&&y.jsxs("div",{className:"border-t border-line pt-4",children:[y.jsxs("div",{className:"mb-3 text-[12px] font-semibold text-ink-2",children:["类型字段 · ",Z.name]}),y.jsx(O_,{fields:Z.form_template,value:d.extras,onChange:D=>X("extras",D),taxonomies:K})]}),s?y.jsxs("div",{className:"border-t border-line pt-4",children:[y.jsx(ag,{items:((Je=Y.data)==null?void 0:Je.items)??[],pending:b,uploading:x,onPick:async D=>{if(s){p(!0);try{let ee=0;for(const V of Array.from(D)){if(V.size>ug){h("error","「"+V.name+"」超过 80MB,已跳过");continue}const $=await ng(V);await vd({owner_id:s,file_name:$.file_name,mime:$.mime,size:$.size,data_b64:$.data_b64}),ee++}ee>0&&(f.invalidateQueries({queryKey:["attachments",s]}),h("success","已上传 "+ee+" 个附件"))}catch(ee){h("error",ee.message)}finally{p(!1)}}},onDeleteSaved:D=>M.mutate(D),onDeletePending:()=>{},onOpenSaved:async D=>{try{const ee=await er(D.id);Yp(ee.file_name,ee.mime??void 0,ee.data_b64)}catch(ee){h("error",ee.message)}}}),y.jsx("div",{className:"mt-1.5 text-[11px] text-ink-3",children:"点击文件名可预览(支持图片 / PDF,其余下载)· 单个文件不超过 80MB"})]}):y.jsxs("div",{className:"border-t border-line pt-4",children:[y.jsx(ag,{items:[],pending:b,onPick:async D=>{const ee=[];for(const V of Array.from(D)){if(V.size>ug){h("error","「"+V.name+"」超过 80MB,已跳过");continue}ee.push(await ng(V))}g(V=>[...V,...ee])},onDeleteSaved:()=>{},onDeletePending:D=>g(ee=>ee.filter((V,$)=>$!==D))}),y.jsx("div",{className:"mt-1.5 text-[11px] text-ink-3",children:"保存记录时将一并上传 · 单个文件不超过 80MB"})]})]})})}function M_(n,r,s=480,c=.82){return new Promise((f,h)=>{const d=new Image;d.onload=()=>{try{const v=Math.min(1,s/Math.max(d.naturalWidth,d.naturalHeight)),b=Math.max(1,Math.round(d.naturalWidth*v)),g=Math.max(1,Math.round(d.naturalHeight*v)),x=document.createElement("canvas");x.width=b,x.height=g;const p=x.getContext("2d");if(!p)return h(new Error("canvas 不可用"));p.drawImage(d,0,0,b,g),f(x.toDataURL("image/webp",c))}catch(v){h(v instanceof Error?v:new Error(String(v)))}},d.onerror=()=>h(new Error("图片解码失败")),d.src="data:"+r+";base64,"+n})}function D_({open:n,onClose:r,footprintId:s,onEdit:c}){var X,M,ae,ge;const f=tc(),h=Hp(),d=It({queryKey:["footprint",s],queryFn:()=>Gd(s),enabled:n&&!!s}),v=It({queryKey:["types"],queryFn:ac,enabled:n}),b=It({queryKey:["dimensions"],queryFn:Qd,enabled:n}),g=(X=d.data)==null?void 0:X.item,x=(M=v.data)==null?void 0:M.items.find(P=>P.id===(g==null?void 0:g.type_id)),p=((g==null?void 0:g.dimensions)??[]).map(P=>{var he,Je;return(Je=(he=b.data)==null?void 0:he.items.find(D=>D.id===P))==null?void 0:Je.name}).filter(Boolean),[z,q]=T.useState(!1),G=md({mutationFn:()=>Bn(()=>Promise.resolve().then(()=>v4),void 0).then(P=>P.footprintDelete(s)),onSuccess:()=>{f.invalidateQueries({queryKey:["footprints"]}),f.invalidateQueries({queryKey:["timeline"]}),f.invalidateQueries({queryKey:["stats"]}),h("success","记录已删除"),q(!1),r()}}),L=async P=>{try{const he=await er(P.id);Yp(he.file_name,he.mime??void 0,he.data_b64)}catch(he){h("error",he.message)}},[U,Q]=T.useState({}),Y=(g==null?void 0:g.attachments)??[],Z=Y.filter(P=>{var he;return(he=P.mime)==null?void 0:he.startsWith("image/")}),I=Y.filter(P=>{var he;return!((he=P.mime)!=null&&he.startsWith("image/"))}),K=Y.map(P=>P.id).join(",");T.useEffect(()=>{if(Q({}),!n||!K)return;let P=!1;return(async()=>{const he={},Je=Y.filter(D=>{var ee;return(ee=D.mime)==null?void 0:ee.startsWith("image/")});for(const D of Je)try{const ee=await er(D.id);if(P)return;he[D.id]=await M_(ee.data_b64,ee.mime||"image/png"),Q({...he})}catch{try{const ee=await er(D.id);he[D.id]="data:"+(ee.mime||"image/png")+";base64,"+ee.data_b64,Q({...he})}catch{}}})(),()=>{P=!0}},[n,s,K]);const ce=[];if(g&&x)for(const P of x.form_template??[]){const he=(g.extras??{})[P.key];if(he==null||he==="")continue;const Je=Array.isArray(he)?he.join("、"):String(he);ce.push({label:P.label,value:P.unit?Je+" "+P.unit:Je})}return y.jsxs(Xd,{open:n,onClose:r,width:680,title:g?g.title:"记录详情",footer:g?y.jsxs(y.Fragment,{children:[y.jsxs(el,{variant:"danger-ghost",className:"mr-auto",onClick:()=>q(!0),disabled:G.isPending,children:[y.jsx(yd,{size:13})," 删除"]}),y.jsx(el,{variant:"secondary",onClick:r,children:"关闭"}),y.jsxs(el,{variant:"primary",onClick:()=>s&&(c==null?void 0:c(s)),children:[y.jsx(EE,{size:13})," 编辑"]})]}):null,children:[d.isLoading||!g?y.jsx("div",{className:"py-10 text-center text-[13px] text-ink-3",children:"加载中…"}):y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[y.jsx(Fi,{color:g.type_color,children:g.type_name}),y.jsx(Lp,{level:g.level}),y.jsx(Bp,{grade:g.award_grade}),y.jsx(Qp,{role:g.role}),y.jsx(qp,{status:g.status}),g.polarity==="negative"&&y.jsx(Gp,{}),g.rank!=null&&y.jsxs(Fi,{color:"var(--text-3)",children:["第 ",g.rank," 名"]})]}),y.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-2 rounded-md border border-line bg-surface-2 px-3 py-2.5 text-[12.5px]",children:[y.jsx(Cn,{label:"时间",value:R_(g.start_date,g.end_date)||"—"}),y.jsx(Cn,{label:"组织方",value:g.organizer||"—"}),g.group_id&&y.jsx(Cn,{label:"事件组",value:g.group_id}),g.parent_id!=null&&y.jsx(Cn,{label:"上级记录",value:"#"+g.parent_id}),y.jsx(Cn,{label:"创建于",value:lg(g.created_at)}),y.jsx(Cn,{label:"更新于",value:lg(g.updated_at)})]}),g.description&&y.jsx(Mi,{title:"工作内容 / 描述",children:y.jsx("p",{className:"whitespace-pre-wrap text-[13px] leading-relaxed text-ink-2",children:g.description})}),g.result&&y.jsx(Mi,{title:"结果 / 产出",children:y.jsx("p",{className:"whitespace-pre-wrap rounded-md bg-success-subtle px-3 py-2 text-[13px] leading-relaxed text-success",children:g.result})}),ce.length>0&&y.jsx(Mi,{title:x?"类型字段 · "+x.name:"类型字段",children:y.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-4 gap-y-2",children:ce.map(P=>y.jsx(Cn,{label:P.label,value:P.value},P.label))})}),g.metrics&&Object.keys(g.metrics).length>0&&y.jsx(Mi,{title:"量化指标",children:y.jsx("div",{className:"flex flex-wrap gap-1.5",children:Object.entries(g.metrics).map(([P,he])=>y.jsxs("span",{className:"num rounded-sm border border-line bg-surface-2 px-2 py-0.5 text-[12px] text-ink-2",children:[P,": ",y.jsx("span",{className:"font-medium text-ink-1",children:he})]},P))})}),((((ae=g.tags)==null?void 0:ae.length)??0)>0||p.length>0)&&y.jsx(Mi,{title:"标签与维度",children:y.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[g.tags.map(P=>y.jsx("span",{className:"rounded-sm bg-surface-3 px-1.5 py-0.5 text-[12px] text-ink-2",children:P},P)),p.map(P=>y.jsx("span",{className:"rounded-sm border border-brand/30 bg-brand-subtle px-1.5 py-0.5 text-[12px] text-brand-text",children:P},P))]})}),y.jsx(Mi,{title:"附件("+(((ge=g.attachments)==null?void 0:ge.length)??0)+")",children:Y.length?y.jsxs("div",{className:"flex flex-col gap-2.5",children:[Z.length>0&&y.jsx("div",{className:"grid grid-cols-3 gap-2 sm:grid-cols-4",children:Z.map(P=>y.jsxs("button",{className:"group relative aspect-square overflow-hidden rounded-md border border-line bg-surface-2",onClick:()=>L(P),title:"点击查看原图:"+P.file_name,children:[U[P.id]?y.jsx("img",{src:U[P.id],alt:P.file_name,loading:"lazy",className:"h-full w-full object-cover transition-transform duration-200 group-hover:scale-[1.04]"}):y.jsx("div",{className:"h-full w-full animate-pulse bg-surface-3"}),y.jsx("span",{className:"absolute inset-x-0 bottom-0 truncate bg-gradient-to-t from-black/60 to-transparent px-1.5 pb-1 pt-3 text-[10px] text-white opacity-0 transition-opacity group-hover:opacity-100",children:P.file_name})]},P.id))}),I.length>0&&y.jsx("div",{className:"flex flex-col gap-1",children:I.map(P=>y.jsxs("button",{className:"flex items-center gap-2 rounded-md border border-line bg-surface px-2.5 py-2 text-left text-[12.5px] transition-colors hover:border-line-strong",onClick:()=>L(P),children:[y.jsx(lp,{size:14,className:"shrink-0 text-ink-3"}),y.jsx("span",{className:"truncate text-ink-1",children:P.file_name}),y.jsx("span",{className:"num ml-auto shrink-0 text-ink-3",children:bd(P.size)}),y.jsx(qd,{size:12,className:"shrink-0 text-ink-3"})]},P.id))}),y.jsx("div",{className:"text-[11px] text-ink-3",children:"点击图片查看原图(原始比例)"})]}):y.jsx("p",{className:"text-[12px] text-ink-3",children:"暂无佐证附件"})})]}),y.jsx(g_,{open:z,title:"删除记录",content:g?"确定删除「"+g.title+"」吗?该操作不可撤销。":"",onCancel:()=>q(!1),onOk:()=>G.mutate(),loading:G.isPending})]})}function Cn({label:n,value:r}){return y.jsxs("div",{className:"flex min-w-0 gap-2",children:[y.jsx("span",{className:"shrink-0 text-ink-3",children:n}),y.jsx("span",{className:"min-w-0 truncate font-medium text-ink-1",title:r,children:r})]})}function Mi({title:n,children:r}){return y.jsxs("div",{children:[y.jsx("div",{className:"mb-1.5 text-[12px] font-semibold text-ink-2",children:n}),r]})}function U_(){var K,ce,X;const[n,r]=T.useState(""),[s,c]=T.useState(""),[f,h]=T.useState(""),[d,v]=T.useState(""),[b,g]=T.useState(null),[x,p]=T.useState(!1),[z,q]=T.useState(null),[G,L]=T.useState(!1),U=It({queryKey:["types"],queryFn:ac}),Q=T.useMemo(()=>({q:n||void 0,types:s?[Number(s)]:void 0,year:f?Number(f):void 0,polarity:d||void 0,sort:"date_desc",page_size:2e3}),[n,s,f,d]),Y=It({queryKey:["timeline",Q],queryFn:()=>vp(Q)}),Z=T.useMemo(()=>{var ae;const M=new Set;for(const ge of((ae=Y.data)==null?void 0:ae.groups)??[])M.add(ge.year);return Array.from(M).sort((ge,P)=>P-ge)},[Y.data]),I=M=>{q(M),L(!0)};return y.jsxs("div",{className:"mx-auto max-w-[880px] px-6 py-5",children:[y.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-2",children:[y.jsx(Mt,{className:"w-[220px]",placeholder:"搜索足迹…",value:n,onChange:M=>r(M.target.value)}),y.jsx(ml,{className:"w-[130px]",value:s,onChange:M=>c(M.target.value),options:[{value:"",label:"全部类型"},...(((K=U.data)==null?void 0:K.items)??[]).map(M=>({value:String(M.id),label:M.name}))]}),y.jsx(ml,{className:"w-[120px]",value:f,onChange:M=>h(M.target.value),options:[{value:"",label:"全部年份"},...Z.map(M=>({value:String(M),label:M+" 年"}))]}),y.jsx(ml,{className:"w-[110px]",value:d,onChange:M=>v(M.target.value),options:[{value:"",label:"全部性质"},{value:"positive",label:"正面"},{value:"negative",label:"负面"}]}),y.jsxs("span",{className:"num ml-auto text-[12px] text-ink-3",children:["共 ",((ce=Y.data)==null?void 0:ce.total)??0," 条"]})]}),Y.isLoading?y.jsx("div",{className:"py-16 text-center text-[13px] text-ink-3",children:"加载中…"}):(X=Y.data)!=null&&X.groups.length?y.jsxs("div",{className:"relative",children:[y.jsx("div",{className:"absolute bottom-0 left-[7px] top-0 w-px bg-line","aria-hidden":!0}),Y.data.groups.map(M=>y.jsxs("section",{className:"mb-2",children:[y.jsxs("div",{className:"sticky top-0 z-10 -mx-6 flex items-center gap-2 bg-bg/90 px-6 py-2 backdrop-blur",children:[y.jsx("span",{className:"num text-[16px] font-semibold text-ink-1",children:M.year}),y.jsxs("span",{className:"text-[12px] text-ink-3",children:[M.count," 条记录"]})]}),M.months.map(ae=>y.jsxs("div",{className:"mb-3",children:[y.jsxs("div",{className:"mb-2 pl-6 text-[12px] font-medium text-ink-3",children:[ae.month," 月"]}),y.jsx("div",{className:"flex flex-col gap-2",children:ae.items.map(ge=>y.jsx(k_,{row:ge,onClick:()=>I(ge.id)},ge.id))})]},ae.month))]},M.year))]}):y.jsx(m_,{icon:y.jsx(tp,{size:36,strokeWidth:1.5}),title:"暂无足迹",description:"点击右上角「新建记录」,开始记录你的第一段足迹。"}),y.jsx(D_,{open:G,onClose:()=>L(!1),footprintId:z,onEdit:M=>{L(!1),g(M),p(!0)}}),y.jsx(j_,{open:x,onClose:()=>p(!1),footprintId:b})]})}function k_({row:n,onClick:r}){const s=(n.start_date??n.created_at).slice(0,10);return y.jsxs("button",{onClick:r,className:"group relative w-full rounded-lg border border-line bg-surface px-4 py-3 text-left shadow-card transition-all hover:border-line-strong hover:shadow-pop",children:[y.jsx("span",{className:"absolute left-0 top-3 bottom-3 w-[3px] rounded-full",style:{backgroundColor:n.type_color},"aria-hidden":!0}),y.jsxs("div",{className:"flex items-start gap-3",children:[y.jsxs("div",{className:"num w-[52px] shrink-0 pt-0.5 text-[12px] leading-relaxed text-ink-3",children:[s.slice(5,7),"-",s.slice(8,10)]}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[y.jsx("span",{className:"text-[13.5px] font-medium text-ink-1 group-hover:text-brand-text",children:n.title}),y.jsx(Fi,{color:n.type_color,children:n.type_name}),y.jsx(Lp,{level:n.level}),y.jsx(Bp,{grade:n.award_grade}),y.jsx(Qp,{role:n.role}),y.jsx(qp,{status:n.status}),n.polarity==="negative"&&y.jsx(Gp,{})]}),n.organizer&&y.jsx("div",{className:"mt-0.5 text-[12px] text-ink-3",children:n.organizer}),n.description&&y.jsx("p",{className:"mt-1 line-clamp-2 text-[12.5px] leading-relaxed text-ink-2",children:n.description}),(n.result||n.tags.length>0||n.attachment_count>0)&&y.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-x-3 gap-y-1 text-[11.5px] text-ink-3",children:[n.result&&y.jsxs("span",{className:"text-success",children:["结果:",n.result]}),n.tags.map(c=>y.jsx("span",{className:"rounded-sm bg-surface-3 px-1.5 py-px",children:c},c)),n.attachment_count>0&&y.jsxs("span",{className:"inline-flex items-center gap-1",children:[y.jsx(qd,{size:11}),n.attachment_count]})]})]}),y.jsx("div",{className:"shrink-0 pt-1 text-ink-3",children:y.jsx(C_,{name:n.type_icon,color:n.type_color,size:16})})]})]})}const H_=T.lazy(()=>Bn(()=>import("./RecordsPage-DRvqAGwI.js"),[]).then(n=>({default:n.RecordsPage}))),q_=T.lazy(()=>Bn(()=>import("./DashboardPage-6WjCreWK.js"),__vite__mapDeps([0,1,2,3])).then(n=>({default:n.DashboardPage}))),L_=T.lazy(()=>Bn(()=>import("./GradesPage-F7CyPrhz.js"),__vite__mapDeps([4,1,2,3])).then(n=>({default:n.GradesPage}))),B_=T.lazy(()=>Bn(()=>import("./TypesPage-CxfVqKEr.js"),__vite__mapDeps([5,1])).then(n=>({default:n.TypesPage}))),Q_=T.lazy(()=>Bn(()=>import("./TaxonomyPage-B15FwZVO.js"),__vite__mapDeps([6,1])).then(n=>({default:n.TaxonomyPage})));function Wu(){return y.jsx("div",{className:"py-16 text-center text-[13px] text-ink-3",children:"加载中…"})}function G_(){return y.jsx(Ix,{children:y.jsxs(Gl,{element:y.jsx(E_,{}),children:[y.jsx(Gl,{path:"/",element:y.jsx(D0,{to:"/timeline",replace:!0})}),y.jsx(Gl,{path:"/timeline",element:y.jsx(U_,{})}),y.jsx(Gl,{path:"/records",element:y.jsx(T.Suspense,{fallback:y.jsx(Wu,{}),children:y.jsx(H_,{})})}),y.jsx(Gl,{path:"/grades",element:y.jsx(T.Suspense,{fallback:y.jsx(Wu,{}),children:y.jsx(L_,{})})}),y.jsx(Gl,{path:"/dashboard",element:y.jsx(T.Suspense,{fallback:y.jsx(Wu,{}),children:y.jsx(q_,{})})}),y.jsx(Gl,{path:"/types",element:y.jsx(T.Suspense,{fallback:y.jsx(Wu,{}),children:y.jsx(B_,{})})}),y.jsx(Gl,{path:"/taxonomy",element:y.jsx(T.Suspense,{fallback:y.jsx(Wu,{}),children:y.jsx(Q_,{})})}),y.jsx(Gl,{path:"*",element:y.jsx(D0,{to:"/timeline",replace:!0})})]})})}const Y_=new u3({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1,staleTime:15e3}}}),rg=localStorage.getItem("fp-theme");(rg==="dark"||!rg&&window.matchMedia("(prefers-color-scheme: dark)").matches)&&document.documentElement.classList.add("dark");"serviceWorker"in navigator&&!("__TAURI_INTERNALS__"in window)&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(()=>{})});$2.createRoot(document.getElementById("root")).render(y.jsx(Y2.StrictMode,{children:y.jsx(DS,{client:Y_,children:y.jsx(TS,{children:y.jsx(G_,{})})})}));export{Fi as A,el as B,g_ as C,Xd as D,m_ as E,Ye as F,Bp as G,c4 as H,Mt as I,u4 as J,C_ as K,Lp as L,FE as M,Z_ as N,$E as O,TE as P,WE as Q,Qp as R,ml as S,yd as T,PE as U,IE as V,e4 as W,Qd as X,Nl as a,Hp as b,be as c,X_ as d,It as e,md as f,R_ as g,qp as h,lg as i,y as j,EE as k,D_ as l,j_ as m,t4 as n,ac as o,hp as p,mp as q,T as r,l4 as s,ap as t,tc as u,f4 as v,d4 as w,o4 as x,r4 as y,s4 as z};