66 lines
346 KiB
JavaScript
66 lines
346 KiB
JavaScript
var Dy=l=>{throw TypeError(l)};var Ao=(l,i,u)=>i.has(l)||Dy("Cannot "+u);var E=(l,i,u)=>(Ao(l,i,"read from private field"),u?u.call(l):i.get(l)),te=(l,i,u)=>i.has(l)?Dy("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(l):i.set(l,u),J=(l,i,u,r)=>(Ao(l,i,"write to private field"),r?r.call(l,u):i.set(l,u),u),de=(l,i,u)=>(Ao(l,i,"access private method"),u);var Bs=(l,i,u,r)=>({set _(o){J(l,i,o,u)},get _(){return E(l,i,r)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function u(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=u(o);fetch(o.href,f)}})();function Lp(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var wo={exports:{}},nu={};/**
|
|
* @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 zy;function cb(){if(zy)return nu;zy=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(r,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var g in o)g!=="key"&&(f[g]=o[g])}else f=o;return o=f.ref,{$$typeof:l,type:r,key:h,ref:o!==void 0?o:null,props:f}}return nu.Fragment=i,nu.jsx=u,nu.jsxs=u,nu}var My;function ob(){return My||(My=1,wo.exports=cb()),wo.exports}var m=ob(),Co={exports:{}},re={};/**
|
|
* @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 Uy;function fb(){if(Uy)return re;Uy=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),A=Symbol.iterator;function G(R){return R===null||typeof R!="object"?null:(R=A&&R[A]||R["@@iterator"],typeof R=="function"?R:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,j={};function H(R,Q,Z){this.props=R,this.context=Q,this.refs=j,this.updater=Z||N}H.prototype.isReactComponent={},H.prototype.setState=function(R,Q){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,Q,"setState")},H.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function X(){}X.prototype=H.prototype;function K(R,Q,Z){this.props=R,this.context=Q,this.refs=j,this.updater=Z||N}var k=K.prototype=new X;k.constructor=K,D(k,H.prototype),k.isPureReactComponent=!0;var F=Array.isArray;function ne(){}var $={H:null,A:null,T:null,S:null},le=Object.prototype.hasOwnProperty;function fe(R,Q,Z){var W=Z.ref;return{$$typeof:l,type:R,key:Q,ref:W!==void 0?W:null,props:Z}}function je(R,Q){return fe(R.type,Q,R.props)}function Qe(R){return typeof R=="object"&&R!==null&&R.$$typeof===l}function qe(R){var Q={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(Z){return Q[Z]})}var Ie=/\/+/g;function Le(R,Q){return typeof R=="object"&&R!==null&&R.key!=null?qe(""+R.key):Q.toString(36)}function _e(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(ne,ne):(R.status="pending",R.then(function(Q){R.status==="pending"&&(R.status="fulfilled",R.value=Q)},function(Q){R.status==="pending"&&(R.status="rejected",R.reason=Q)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function q(R,Q,Z,W,se){var he=typeof R;(he==="undefined"||he==="boolean")&&(R=null);var Ne=!1;if(R===null)Ne=!0;else switch(he){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(R.$$typeof){case l:case i:Ne=!0;break;case x:return Ne=R._init,q(Ne(R._payload),Q,Z,W,se)}}if(Ne)return se=se(R),Ne=W===""?"."+Le(R,0):W,F(se)?(Z="",Ne!=null&&(Z=Ne.replace(Ie,"$&/")+"/"),q(se,Q,Z,"",function(ci){return ci})):se!=null&&(Qe(se)&&(se=je(se,Z+(se.key==null||R&&R.key===se.key?"":(""+se.key).replace(Ie,"$&/")+"/")+Ne)),Q.push(se)),1;Ne=0;var ht=W===""?".":W+":";if(F(R))for(var Ve=0;Ve<R.length;Ve++)W=R[Ve],he=ht+Le(W,Ve),Ne+=q(W,Q,Z,he,se);else if(Ve=G(R),typeof Ve=="function")for(R=Ve.call(R),Ve=0;!(W=R.next()).done;)W=W.value,he=ht+Le(W,Ve++),Ne+=q(W,Q,Z,he,se);else if(he==="object"){if(typeof R.then=="function")return q(_e(R),Q,Z,W,se);throw Q=String(R),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function V(R,Q,Z){if(R==null)return R;var W=[],se=0;return q(R,W,"","",function(he){return Q.call(Z,he,se++)}),W}function ee(R){if(R._status===-1){var Q=R._result;Q=Q(),Q.then(function(Z){(R._status===0||R._status===-1)&&(R._status=1,R._result=Z)},function(Z){(R._status===0||R._status===-1)&&(R._status=2,R._result=Z)}),R._status===-1&&(R._status=0,R._result=Q)}if(R._status===1)return R._result.default;throw R._result}var Re=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},Ae={map:V,forEach:function(R,Q,Z){V(R,function(){Q.apply(this,arguments)},Z)},count:function(R){var Q=0;return V(R,function(){Q++}),Q},toArray:function(R){return V(R,function(Q){return Q})||[]},only:function(R){if(!Qe(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return re.Activity=b,re.Children=Ae,re.Component=H,re.Fragment=u,re.Profiler=o,re.PureComponent=K,re.StrictMode=r,re.Suspense=v,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,re.__COMPILER_RUNTIME={__proto__:null,c:function(R){return $.H.useMemoCache(R)}},re.cache=function(R){return function(){return R.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(R,Q,Z){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var W=D({},R.props),se=R.key;if(Q!=null)for(he in Q.key!==void 0&&(se=""+Q.key),Q)!le.call(Q,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&Q.ref===void 0||(W[he]=Q[he]);var he=arguments.length-2;if(he===1)W.children=Z;else if(1<he){for(var Ne=Array(he),ht=0;ht<he;ht++)Ne[ht]=arguments[ht+2];W.children=Ne}return fe(R.type,se,W)},re.createContext=function(R){return R={$$typeof:h,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:f,_context:R},R},re.createElement=function(R,Q,Z){var W,se={},he=null;if(Q!=null)for(W in Q.key!==void 0&&(he=""+Q.key),Q)le.call(Q,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(se[W]=Q[W]);var Ne=arguments.length-2;if(Ne===1)se.children=Z;else if(1<Ne){for(var ht=Array(Ne),Ve=0;Ve<Ne;Ve++)ht[Ve]=arguments[Ve+2];se.children=ht}if(R&&R.defaultProps)for(W in Ne=R.defaultProps,Ne)se[W]===void 0&&(se[W]=Ne[W]);return fe(R,he,se)},re.createRef=function(){return{current:null}},re.forwardRef=function(R){return{$$typeof:g,render:R}},re.isValidElement=Qe,re.lazy=function(R){return{$$typeof:x,_payload:{_status:-1,_result:R},_init:ee}},re.memo=function(R,Q){return{$$typeof:p,type:R,compare:Q===void 0?null:Q}},re.startTransition=function(R){var Q=$.T,Z={};$.T=Z;try{var W=R(),se=$.S;se!==null&&se(Z,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(ne,Re)}catch(he){Re(he)}finally{Q!==null&&Z.types!==null&&(Q.types=Z.types),$.T=Q}},re.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},re.use=function(R){return $.H.use(R)},re.useActionState=function(R,Q,Z){return $.H.useActionState(R,Q,Z)},re.useCallback=function(R,Q){return $.H.useCallback(R,Q)},re.useContext=function(R){return $.H.useContext(R)},re.useDebugValue=function(){},re.useDeferredValue=function(R,Q){return $.H.useDeferredValue(R,Q)},re.useEffect=function(R,Q){return $.H.useEffect(R,Q)},re.useEffectEvent=function(R){return $.H.useEffectEvent(R)},re.useId=function(){return $.H.useId()},re.useImperativeHandle=function(R,Q,Z){return $.H.useImperativeHandle(R,Q,Z)},re.useInsertionEffect=function(R,Q){return $.H.useInsertionEffect(R,Q)},re.useLayoutEffect=function(R,Q){return $.H.useLayoutEffect(R,Q)},re.useMemo=function(R,Q){return $.H.useMemo(R,Q)},re.useOptimistic=function(R,Q){return $.H.useOptimistic(R,Q)},re.useReducer=function(R,Q,Z){return $.H.useReducer(R,Q,Z)},re.useRef=function(R){return $.H.useRef(R)},re.useState=function(R){return $.H.useState(R)},re.useSyncExternalStore=function(R,Q,Z){return $.H.useSyncExternalStore(R,Q,Z)},re.useTransition=function(){return $.H.useTransition()},re.version="19.2.4",re}var qy;function ff(){return qy||(qy=1,Co.exports=fb()),Co.exports}var C=ff();const db=Lp(C);var _o={exports:{}},au={},Do={exports:{}},zo={};/**
|
|
* @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 Ly;function hb(){return Ly||(Ly=1,(function(l){function i(q,V){var ee=q.length;q.push(V);e:for(;0<ee;){var Re=ee-1>>>1,Ae=q[Re];if(0<o(Ae,V))q[Re]=V,q[ee]=Ae,ee=Re;else break e}}function u(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var V=q[0],ee=q.pop();if(ee!==V){q[0]=ee;e:for(var Re=0,Ae=q.length,R=Ae>>>1;Re<R;){var Q=2*(Re+1)-1,Z=q[Q],W=Q+1,se=q[W];if(0>o(Z,ee))W<Ae&&0>o(se,Z)?(q[Re]=se,q[W]=ee,Re=W):(q[Re]=Z,q[Q]=ee,Re=Q);else if(W<Ae&&0>o(se,ee))q[Re]=se,q[W]=ee,Re=W;else break e}}return V}function o(q,V){var ee=q.sortIndex-V.sortIndex;return ee!==0?ee:q.id-V.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var h=Date,g=h.now();l.unstable_now=function(){return h.now()-g}}var v=[],p=[],x=1,b=null,A=3,G=!1,N=!1,D=!1,j=!1,H=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function k(q){for(var V=u(p);V!==null;){if(V.callback===null)r(p);else if(V.startTime<=q)r(p),V.sortIndex=V.expirationTime,i(v,V);else break;V=u(p)}}function F(q){if(D=!1,k(q),!N)if(u(v)!==null)N=!0,ne||(ne=!0,qe());else{var V=u(p);V!==null&&_e(F,V.startTime-q)}}var ne=!1,$=-1,le=5,fe=-1;function je(){return j?!0:!(l.unstable_now()-fe<le)}function Qe(){if(j=!1,ne){var q=l.unstable_now();fe=q;var V=!0;try{e:{N=!1,D&&(D=!1,X($),$=-1),G=!0;var ee=A;try{t:{for(k(q),b=u(v);b!==null&&!(b.expirationTime>q&&je());){var Re=b.callback;if(typeof Re=="function"){b.callback=null,A=b.priorityLevel;var Ae=Re(b.expirationTime<=q);if(q=l.unstable_now(),typeof Ae=="function"){b.callback=Ae,k(q),V=!0;break t}b===u(v)&&r(v),k(q)}else r(v);b=u(v)}if(b!==null)V=!0;else{var R=u(p);R!==null&&_e(F,R.startTime-q),V=!1}}break e}finally{b=null,A=ee,G=!1}V=void 0}}finally{V?qe():ne=!1}}}var qe;if(typeof K=="function")qe=function(){K(Qe)};else if(typeof MessageChannel<"u"){var Ie=new MessageChannel,Le=Ie.port2;Ie.port1.onmessage=Qe,qe=function(){Le.postMessage(null)}}else qe=function(){H(Qe,0)};function _e(q,V){$=H(function(){q(l.unstable_now())},V)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(q){q.callback=null},l.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<q?Math.floor(1e3/q):5},l.unstable_getCurrentPriorityLevel=function(){return A},l.unstable_next=function(q){switch(A){case 1:case 2:case 3:var V=3;break;default:V=A}var ee=A;A=V;try{return q()}finally{A=ee}},l.unstable_requestPaint=function(){j=!0},l.unstable_runWithPriority=function(q,V){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=A;A=q;try{return V()}finally{A=ee}},l.unstable_scheduleCallback=function(q,V,ee){var Re=l.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Re+ee:Re):ee=Re,q){case 1:var Ae=-1;break;case 2:Ae=250;break;case 5:Ae=1073741823;break;case 4:Ae=1e4;break;default:Ae=5e3}return Ae=ee+Ae,q={id:x++,callback:V,priorityLevel:q,startTime:ee,expirationTime:Ae,sortIndex:-1},ee>Re?(q.sortIndex=ee,i(p,q),u(v)===null&&q===u(p)&&(D?(X($),$=-1):D=!0,_e(F,ee-Re))):(q.sortIndex=Ae,i(v,q),N||G||(N=!0,ne||(ne=!0,qe()))),q},l.unstable_shouldYield=je,l.unstable_wrapCallback=function(q){var V=A;return function(){var ee=A;A=V;try{return q.apply(this,arguments)}finally{A=ee}}}})(zo)),zo}var Hy;function mb(){return Hy||(Hy=1,Do.exports=hb()),Do.exports}var Mo={exports:{}},ot={};/**
|
|
* @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 By;function yb(){if(By)return ot;By=1;var l=ff();function i(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+v+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var r={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(v,p,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:b==null?null:""+b,children:v,containerInfo:p,implementation:x}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ot.createPortal=function(v,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(v,p,null,x)},ot.flushSync=function(v){var p=h.T,x=r.p;try{if(h.T=null,r.p=2,v)return v()}finally{h.T=p,r.p=x,r.d.f()}},ot.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(v,p))},ot.prefetchDNS=function(v){typeof v=="string"&&r.d.D(v)},ot.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var x=p.as,b=g(x,p.crossOrigin),A=typeof p.integrity=="string"?p.integrity:void 0,G=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?r.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:A,fetchPriority:G}):x==="script"&&r.d.X(v,{crossOrigin:b,integrity:A,fetchPriority:G,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ot.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=g(p.as,p.crossOrigin);r.d.M(v,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(v)},ot.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,b=g(x,p.crossOrigin);r.d.L(v,x,{crossOrigin:b,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})}},ot.preloadModule=function(v,p){if(typeof v=="string")if(p){var x=g(p.as,p.crossOrigin);r.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(v)},ot.requestFormReset=function(v){r.d.r(v)},ot.unstable_batchedUpdates=function(v,p){return v(p)},ot.useFormState=function(v,p,x){return h.H.useFormState(v,p,x)},ot.useFormStatus=function(){return h.H.useHostTransitionStatus()},ot.version="19.2.4",ot}var Qy;function pb(){if(Qy)return Mo.exports;Qy=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Mo.exports=yb(),Mo.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 Gy;function gb(){if(Gy)return au;Gy=1;var l=mb(),i=ff(),u=pb();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(f(e)!==e)throw Error(r(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,a=t;;){var s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return v(s),e;if(c===a)return v(s),t;c=c.sibling}throw Error(r(188))}if(n.return!==a.return)n=s,a=c;else{for(var d=!1,y=s.child;y;){if(y===n){d=!0,n=s,a=c;break}if(y===a){d=!0,a=s,n=c;break}y=y.sibling}if(!d){for(y=c.child;y;){if(y===n){d=!0,n=c,a=s;break}if(y===a){d=!0,a=c,n=s;break}y=y.sibling}if(!d)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?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}var b=Object.assign,A=Symbol.for("react.element"),G=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),K=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),le=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),je=Symbol.for("react.memo_cache_sentinel"),Qe=Symbol.iterator;function qe(e){return e===null||typeof e!="object"?null:(e=Qe&&e[Qe]||e["@@iterator"],typeof e=="function"?e:null)}var Ie=Symbol.for("react.client.reference");function Le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case H:return"Profiler";case j:return"StrictMode";case F:return"Suspense";case ne:return"SuspenseList";case fe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case K:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:Le(e.type)||"Memo";case le:t=e._payload,e=e._init;try{return Le(e(t))}catch{}}return null}var _e=Array.isArray,q=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Re=[],Ae=-1;function R(e){return{current:e}}function Q(e){0>Ae||(e.current=Re[Ae],Re[Ae]=null,Ae--)}function Z(e,t){Ae++,Re[Ae]=e.current,e.current=t}var W=R(null),se=R(null),he=R(null),Ne=R(null);function ht(e,t){switch(Z(he,t),Z(se,e),Z(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ty(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ty(t),e=ny(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(W),Z(W,e)}function Ve(){Q(W),Q(se),Q(he)}function ci(e){e.memoizedState!==null&&Z(Ne,e);var t=W.current,n=ny(t,e.type);t!==n&&(Z(se,e),Z(W,n))}function Su(e){se.current===e&&(Q(W),Q(se)),Ne.current===e&&(Q(Ne),Pi._currentValue=ee)}var cr,_f;function Oa(e){if(cr===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);cr=t&&t[1]||"",_f=-1<n.stack.indexOf(`
|
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
`+cr+e+_f}var or=!1;function fr(e,t){if(!e||or)return"";or=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(U){var z=U}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(U){z=U}e.call(Y.prototype)}}else{try{throw Error()}catch(U){z=U}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(U){if(U&&z&&typeof U.stack=="string")return[U.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),d=c[0],y=c[1];if(d&&y){var S=d.split(`
|
|
`),_=y.split(`
|
|
`);for(s=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;s<_.length&&!_[s].includes("DetermineComponentFrameRoot");)s++;if(a===S.length||s===_.length)for(a=S.length-1,s=_.length-1;1<=a&&0<=s&&S[a]!==_[s];)s--;for(;1<=a&&0<=s;a--,s--)if(S[a]!==_[s]){if(a!==1||s!==1)do if(a--,s--,0>s||S[a]!==_[s]){var L=`
|
|
`+S[a].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=a&&0<=s);break}}}finally{or=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Oa(n):""}function Q0(e,t){switch(e.tag){case 26:case 27:case 5:return Oa(e.type);case 16:return Oa("Lazy");case 13:return e.child!==t&&t!==null?Oa("Suspense Fallback"):Oa("Suspense");case 19:return Oa("SuspenseList");case 0:case 15:return fr(e.type,!1);case 11:return fr(e.type.render,!1);case 1:return fr(e.type,!0);case 31:return Oa("Activity");default:return""}}function Df(e){try{var t="",n=null;do t+=Q0(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
Error generating stack: `+a.message+`
|
|
`+a.stack}}var dr=Object.prototype.hasOwnProperty,hr=l.unstable_scheduleCallback,mr=l.unstable_cancelCallback,G0=l.unstable_shouldYield,Y0=l.unstable_requestPaint,At=l.unstable_now,K0=l.unstable_getCurrentPriorityLevel,zf=l.unstable_ImmediatePriority,Mf=l.unstable_UserBlockingPriority,Eu=l.unstable_NormalPriority,k0=l.unstable_LowPriority,Uf=l.unstable_IdlePriority,X0=l.log,V0=l.unstable_setDisableYieldValue,oi=null,wt=null;function kn(e){if(typeof X0=="function"&&V0(e),wt&&typeof wt.setStrictMode=="function")try{wt.setStrictMode(oi,e)}catch{}}var Ct=Math.clz32?Math.clz32:F0,Z0=Math.log,J0=Math.LN2;function F0(e){return e>>>=0,e===0?32:31-(Z0(e)/J0|0)|0}var Ru=256,Tu=262144,Nu=4194304;function ja(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ou(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var s=0,c=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~c,a!==0?s=ja(a):(d&=y,d!==0?s=ja(d):n||(n=y&~e,n!==0&&(s=ja(n))))):(y=a&~c,y!==0?s=ja(y):d!==0?s=ja(d):n||(n=a&~e,n!==0&&(s=ja(n)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:s}function fi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $0(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 qf(){var e=Nu;return Nu<<=1,(Nu&62914560)===0&&(Nu=4194304),e}function yr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function di(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function W0(e,t,n,a,s,c){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,S=e.expirationTimes,_=e.hiddenUpdates;for(n=d&~n;0<n;){var L=31-Ct(n),Y=1<<L;y[L]=0,S[L]=-1;var z=_[L];if(z!==null)for(_[L]=null,L=0;L<z.length;L++){var U=z[L];U!==null&&(U.lane&=-536870913)}n&=~Y}a!==0&&Lf(e,a,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(d&~t))}function Lf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ct(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Hf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Ct(n),s=1<<a;s&t|e[a]&t&&(e[a]|=t),n&=~s}}function Bf(e,t){var n=t&-t;return n=(n&42)!==0?1:pr(n),(n&(e.suspendedLanes|t))!==0?0:n}function pr(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 gr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Qf(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:Ny(e.type))}function Gf(e,t){var n=V.p;try{return V.p=e,t()}finally{V.p=n}}var Xn=Math.random().toString(36).slice(2),it="__reactFiber$"+Xn,gt="__reactProps$"+Xn,sl="__reactContainer$"+Xn,vr="__reactEvents$"+Xn,P0="__reactListeners$"+Xn,I0="__reactHandles$"+Xn,Yf="__reactResources$"+Xn,hi="__reactMarker$"+Xn;function br(e){delete e[it],delete e[gt],delete e[vr],delete e[P0],delete e[I0]}function rl(e){var t=e[it];if(t)return t;for(var n=e.parentNode;n;){if(t=n[sl]||n[it]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cy(e);e!==null;){if(n=e[it])return n;e=cy(e)}return t}e=n,n=e.parentNode}return null}function cl(e){if(e=e[it]||e[sl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function mi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function ol(e){var t=e[Yf];return t||(t=e[Yf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function nt(e){e[hi]=!0}var Kf=new Set,kf={};function Aa(e,t){fl(e,t),fl(e+"Capture",t)}function fl(e,t){for(kf[e]=t,e=0;e<t.length;e++)Kf.add(t[e])}var eg=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]*$"),Xf={},Vf={};function tg(e){return dr.call(Vf,e)?!0:dr.call(Xf,e)?!1:eg.test(e)?Vf[e]=!0:(Xf[e]=!0,!1)}function ju(e,t,n){if(tg(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){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,""+n)}}function Au(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function vn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ng(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var s=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(d){n=""+d,c.call(this,d)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xr(e){if(!e._valueTracker){var t=Zf(e)?"checked":"value";e._valueTracker=ng(e,t,""+e[t])}}function Jf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Zf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function wu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ag=/[\n"\\]/g;function Qt(e){return e.replace(ag,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Sr(e,t,n,a,s,c,d,y){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Bt(t)):e.value!==""+Bt(t)&&(e.value=""+Bt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Er(e,d,Bt(t)):n!=null?Er(e,d,Bt(n)):a!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Bt(y):e.removeAttribute("name")}function Ff(e,t,n,a,s,c,d,y){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){xr(e);return}n=n!=null?""+Bt(n):"",t=t!=null?""+Bt(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),xr(e)}function Er(e,t,n){t==="number"&&wu(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function dl(e,t,n,a){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Bt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function $f(e,t,n){if(t!=null&&(t=""+Bt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Bt(n):""}function Wf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(r(92));if(_e(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Bt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),xr(e)}function hl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var lg=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 Pf(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||lg.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function If(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var s in t)a=t[s],t.hasOwnProperty(s)&&n[s]!==a&&Pf(e,s,a)}else for(var c in t)t.hasOwnProperty(c)&&Pf(e,c,t[c])}function Rr(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 ig=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ug=/^[\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 Cu(e){return ug.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function bn(){}var Tr=null;function Nr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ml=null,yl=null;function ed(e){var t=cl(e);if(t&&(e=t.stateNode)){var n=e[gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Sr(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Qt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var s=a[gt]||null;if(!s)throw Error(r(90));Sr(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Jf(a)}break e;case"textarea":$f(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&dl(e,!!n.multiple,t,!1)}}}var Or=!1;function td(e,t,n){if(Or)return e(t,n);Or=!0;try{var a=e(t);return a}finally{if(Or=!1,(ml!==null||yl!==null)&&(gs(),ml&&(t=ml,e=yl,yl=ml=null,ed(t),e)))for(t=0;t<e.length;t++)ed(e[t])}}function yi(e,t){var n=e.stateNode;if(n===null)return null;var a=n[gt]||null;if(a===null)return null;n=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(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var xn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jr=!1;if(xn)try{var pi={};Object.defineProperty(pi,"passive",{get:function(){jr=!0}}),window.addEventListener("test",pi,pi),window.removeEventListener("test",pi,pi)}catch{jr=!1}var Vn=null,Ar=null,_u=null;function nd(){if(_u)return _u;var e,t=Ar,n=t.length,a,s="value"in Vn?Vn.value:Vn.textContent,c=s.length;for(e=0;e<n&&t[e]===s[e];e++);var d=n-e;for(a=1;a<=d&&t[n-a]===s[c-a];a++);return _u=s.slice(e,1<a?1-a:void 0)}function Du(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 zu(){return!0}function ad(){return!1}function vt(e){function t(n,a,s,c,d){this._reactName=n,this._targetInst=s,this.type=a,this.nativeEvent=c,this.target=d,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?zu:ad,this.isPropagationStopped=ad,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=zu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=zu)},persist:function(){},isPersistent:zu}),t}var wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mu=vt(wa),gi=b({},wa,{view:0,detail:0}),sg=vt(gi),wr,Cr,vi,Uu=b({},gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dr,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!==vi&&(vi&&e.type==="mousemove"?(wr=e.screenX-vi.screenX,Cr=e.screenY-vi.screenY):Cr=wr=0,vi=e),wr)},movementY:function(e){return"movementY"in e?e.movementY:Cr}}),ld=vt(Uu),rg=b({},Uu,{dataTransfer:0}),cg=vt(rg),og=b({},gi,{relatedTarget:0}),_r=vt(og),fg=b({},wa,{animationName:0,elapsedTime:0,pseudoElement:0}),dg=vt(fg),hg=b({},wa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mg=vt(hg),yg=b({},wa,{data:0}),id=vt(yg),pg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gg={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"},vg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=vg[e])?!!t[e]:!1}function Dr(){return bg}var xg=b({},gi,{key:function(e){if(e.key){var t=pg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Du(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?gg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dr,charCode:function(e){return e.type==="keypress"?Du(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Du(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Sg=vt(xg),Eg=b({},Uu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ud=vt(Eg),Rg=b({},gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dr}),Tg=vt(Rg),Ng=b({},wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Og=vt(Ng),jg=b({},Uu,{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}),Ag=vt(jg),wg=b({},wa,{newState:0,oldState:0}),Cg=vt(wg),_g=[9,13,27,32],zr=xn&&"CompositionEvent"in window,bi=null;xn&&"documentMode"in document&&(bi=document.documentMode);var Dg=xn&&"TextEvent"in window&&!bi,sd=xn&&(!zr||bi&&8<bi&&11>=bi),rd=" ",cd=!1;function od(e,t){switch(e){case"keyup":return _g.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pl=!1;function zg(e,t){switch(e){case"compositionend":return fd(t);case"keypress":return t.which!==32?null:(cd=!0,rd);case"textInput":return e=t.data,e===rd&&cd?null:e;default:return null}}function Mg(e,t){if(pl)return e==="compositionend"||!zr&&od(e,t)?(e=nd(),_u=Ar=Vn=null,pl=!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 sd&&t.locale!=="ko"?null:t.data;default:return null}}var Ug={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 dd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ug[e.type]:t==="textarea"}function hd(e,t,n,a){ml?yl?yl.push(a):yl=[a]:ml=a,t=Ts(t,"onChange"),0<t.length&&(n=new Mu("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var xi=null,Si=null;function qg(e){Fm(e,0)}function qu(e){var t=mi(e);if(Jf(t))return e}function md(e,t){if(e==="change")return t}var yd=!1;if(xn){var Mr;if(xn){var Ur="oninput"in document;if(!Ur){var pd=document.createElement("div");pd.setAttribute("oninput","return;"),Ur=typeof pd.oninput=="function"}Mr=Ur}else Mr=!1;yd=Mr&&(!document.documentMode||9<document.documentMode)}function gd(){xi&&(xi.detachEvent("onpropertychange",vd),Si=xi=null)}function vd(e){if(e.propertyName==="value"&&qu(Si)){var t=[];hd(t,Si,e,Nr(e)),td(qg,t)}}function Lg(e,t,n){e==="focusin"?(gd(),xi=t,Si=n,xi.attachEvent("onpropertychange",vd)):e==="focusout"&&gd()}function Hg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qu(Si)}function Bg(e,t){if(e==="click")return qu(t)}function Qg(e,t){if(e==="input"||e==="change")return qu(t)}function Gg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:Gg;function Ei(e,t){if(_t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var s=n[a];if(!dr.call(t,s)||!_t(e[s],t[s]))return!1}return!0}function bd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xd(e,t){var n=bd(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=bd(n)}}function Sd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ed(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=wu(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=wu(e.document)}return t}function qr(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 Yg=xn&&"documentMode"in document&&11>=document.documentMode,gl=null,Lr=null,Ri=null,Hr=!1;function Rd(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hr||gl==null||gl!==wu(a)||(a=gl,"selectionStart"in a&&qr(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}),Ri&&Ei(Ri,a)||(Ri=a,a=Ts(Lr,"onSelect"),0<a.length&&(t=new Mu("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=gl)))}function Ca(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vl={animationend:Ca("Animation","AnimationEnd"),animationiteration:Ca("Animation","AnimationIteration"),animationstart:Ca("Animation","AnimationStart"),transitionrun:Ca("Transition","TransitionRun"),transitionstart:Ca("Transition","TransitionStart"),transitioncancel:Ca("Transition","TransitionCancel"),transitionend:Ca("Transition","TransitionEnd")},Br={},Td={};xn&&(Td=document.createElement("div").style,"AnimationEvent"in window||(delete vl.animationend.animation,delete vl.animationiteration.animation,delete vl.animationstart.animation),"TransitionEvent"in window||delete vl.transitionend.transition);function _a(e){if(Br[e])return Br[e];if(!vl[e])return e;var t=vl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Td)return Br[e]=t[n];return e}var Nd=_a("animationend"),Od=_a("animationiteration"),jd=_a("animationstart"),Kg=_a("transitionrun"),kg=_a("transitionstart"),Xg=_a("transitioncancel"),Ad=_a("transitionend"),wd=new Map,Qr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Qr.push("scrollEnd");function It(e,t){wd.set(e,t),Aa(t,[e])}var Lu=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)},Gt=[],bl=0,Gr=0;function Hu(){for(var e=bl,t=Gr=bl=0;t<e;){var n=Gt[t];Gt[t++]=null;var a=Gt[t];Gt[t++]=null;var s=Gt[t];Gt[t++]=null;var c=Gt[t];if(Gt[t++]=null,a!==null&&s!==null){var d=a.pending;d===null?s.next=s:(s.next=d.next,d.next=s),a.pending=s}c!==0&&Cd(n,s,c)}}function Bu(e,t,n,a){Gt[bl++]=e,Gt[bl++]=t,Gt[bl++]=n,Gt[bl++]=a,Gr|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Yr(e,t,n,a){return Bu(e,t,n,a),Qu(e)}function Da(e,t){return Bu(e,null,null,t),Qu(e)}function Cd(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var s=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-Ct(n),e=c.hiddenUpdates,a=e[s],a===null?e[s]=[t]:a.push(t),t.lane=n|536870912),c):null}function Qu(e){if(50<Xi)throw Xi=0,Wc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var xl={};function Vg(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dt(e,t,n,a){return new Vg(e,t,n,a)}function Kr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sn(e,t){var n=e.alternate;return n===null?(n=Dt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function _d(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Gu(e,t,n,a,s,c){var d=0;if(a=e,typeof e=="function")Kr(e)&&(d=1);else if(typeof e=="string")d=Wv(e,n,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case fe:return e=Dt(31,n,t,s),e.elementType=fe,e.lanes=c,e;case D:return za(n.children,s,c,t);case j:d=8,s|=24;break;case H:return e=Dt(12,n,t,s|2),e.elementType=H,e.lanes=c,e;case F:return e=Dt(13,n,t,s),e.elementType=F,e.lanes=c,e;case ne:return e=Dt(19,n,t,s),e.elementType=ne,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K:d=10;break e;case X:d=9;break e;case k:d=11;break e;case $:d=14;break e;case le:d=16,a=null;break e}d=29,n=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=Dt(d,n,t,s),t.elementType=e,t.type=a,t.lanes=c,t}function za(e,t,n,a){return e=Dt(7,e,a,t),e.lanes=n,e}function kr(e,t,n){return e=Dt(6,e,null,t),e.lanes=n,e}function Dd(e){var t=Dt(18,null,null,0);return t.stateNode=e,t}function Xr(e,t,n){return t=Dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zd=new WeakMap;function Yt(e,t){if(typeof e=="object"&&e!==null){var n=zd.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Df(t)},zd.set(e,t),t)}return{value:e,source:t,stack:Df(t)}}var Sl=[],El=0,Yu=null,Ti=0,Kt=[],kt=0,Zn=null,cn=1,on="";function En(e,t){Sl[El++]=Ti,Sl[El++]=Yu,Yu=e,Ti=t}function Md(e,t,n){Kt[kt++]=cn,Kt[kt++]=on,Kt[kt++]=Zn,Zn=e;var a=cn;e=on;var s=32-Ct(a)-1;a&=~(1<<s),n+=1;var c=32-Ct(t)+s;if(30<c){var d=s-s%5;c=(a&(1<<d)-1).toString(32),a>>=d,s-=d,cn=1<<32-Ct(t)+s|n<<s|a,on=c+e}else cn=1<<c|n<<s|a,on=e}function Vr(e){e.return!==null&&(En(e,1),Md(e,1,0))}function Zr(e){for(;e===Yu;)Yu=Sl[--El],Sl[El]=null,Ti=Sl[--El],Sl[El]=null;for(;e===Zn;)Zn=Kt[--kt],Kt[kt]=null,on=Kt[--kt],Kt[kt]=null,cn=Kt[--kt],Kt[kt]=null}function Ud(e,t){Kt[kt++]=cn,Kt[kt++]=on,Kt[kt++]=Zn,cn=t.id,on=t.overflow,Zn=e}var ut=null,He=null,ve=!1,Jn=null,Xt=!1,Jr=Error(r(519));function Fn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ni(Yt(t,e)),Jr}function qd(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[it]=e,t[gt]=a,n){case"dialog":ye("cancel",t),ye("close",t);break;case"iframe":case"object":case"embed":ye("load",t);break;case"video":case"audio":for(n=0;n<Zi.length;n++)ye(Zi[n],t);break;case"source":ye("error",t);break;case"img":case"image":case"link":ye("error",t),ye("load",t);break;case"details":ye("toggle",t);break;case"input":ye("invalid",t),Ff(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ye("invalid",t);break;case"textarea":ye("invalid",t),Wf(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Im(t.textContent,n)?(a.popover!=null&&(ye("beforetoggle",t),ye("toggle",t)),a.onScroll!=null&&ye("scroll",t),a.onScrollEnd!=null&&ye("scrollend",t),a.onClick!=null&&(t.onclick=bn),t=!0):t=!1,t||Fn(e,!0)}function Ld(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:Xt=!1;return;case 27:case 3:Xt=!0;return;default:ut=ut.return}}function Rl(e){if(e!==ut)return!1;if(!ve)return Ld(e),ve=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||ho(e.type,e.memoizedProps)),n=!n),n&&He&&Fn(e),Ld(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=ry(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=ry(e)}else t===27?(t=He,ca(e.type)?(e=vo,vo=null,He=e):He=t):He=ut?Zt(e.stateNode.nextSibling):null;return!0}function Ma(){He=ut=null,ve=!1}function Fr(){var e=Jn;return e!==null&&(Et===null?Et=e:Et.push.apply(Et,e),Jn=null),e}function Ni(e){Jn===null?Jn=[e]:Jn.push(e)}var $r=R(null),Ua=null,Rn=null;function $n(e,t,n){Z($r,t._currentValue),t._currentValue=n}function Tn(e){e._currentValue=$r.current,Q($r)}function Wr(e,t,n){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===n)break;e=e.return}}function Pr(e,t,n,a){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var d=s.child;c=c.firstContext;e:for(;c!==null;){var y=c;c=s;for(var S=0;S<t.length;S++)if(y.context===t[S]){c.lanes|=n,y=c.alternate,y!==null&&(y.lanes|=n),Wr(c.return,n,e),a||(d=null);break e}c=y.next}}else if(s.tag===18){if(d=s.return,d===null)throw Error(r(341));d.lanes|=n,c=d.alternate,c!==null&&(c.lanes|=n),Wr(d,n,e),d=null}else d=s.child;if(d!==null)d.return=s;else for(d=s;d!==null;){if(d===e){d=null;break}if(s=d.sibling,s!==null){s.return=d.return,d=s;break}d=d.return}s=d}}function Tl(e,t,n,a){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var d=s.alternate;if(d===null)throw Error(r(387));if(d=d.memoizedProps,d!==null){var y=s.type;_t(s.pendingProps.value,d.value)||(e!==null?e.push(y):e=[y])}}else if(s===Ne.current){if(d=s.alternate,d===null)throw Error(r(387));d.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Pi):e=[Pi])}s=s.return}e!==null&&Pr(t,e,n,a),t.flags|=262144}function Ku(e){for(e=e.firstContext;e!==null;){if(!_t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qa(e){Ua=e,Rn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function st(e){return Hd(Ua,e)}function ku(e,t){return Ua===null&&qa(e),Hd(e,t)}function Hd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Rn===null){if(e===null)throw Error(r(308));Rn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Rn=Rn.next=t;return n}var Zg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Jg=l.unstable_scheduleCallback,Fg=l.unstable_NormalPriority,Fe={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ir(){return{controller:new Zg,data:new Map,refCount:0}}function Oi(e){e.refCount--,e.refCount===0&&Jg(Fg,function(){e.controller.abort()})}var ji=null,ec=0,Nl=0,Ol=null;function $g(e,t){if(ji===null){var n=ji=[];ec=0,Nl=ao(),Ol={status:"pending",value:void 0,then:function(a){n.push(a)}}}return ec++,t.then(Bd,Bd),t}function Bd(){if(--ec===0&&ji!==null){Ol!==null&&(Ol.status="fulfilled");var e=ji;ji=null,Nl=0,Ol=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Wg(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var Qd=q.S;q.S=function(e,t){Rm=At(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&$g(e,t),Qd!==null&&Qd(e,t)};var La=R(null);function tc(){var e=La.current;return e!==null?e:Ue.pooledCache}function Xu(e,t){t===null?Z(La,La.current):Z(La,t.pool)}function Gd(){var e=tc();return e===null?null:{parent:Fe._currentValue,pool:e}}var jl=Error(r(460)),nc=Error(r(474)),Vu=Error(r(542)),Zu={then:function(){}};function Yd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Kd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(bn,bn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xd(e),e;default:if(typeof t.status=="string")t.then(bn,bn);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=a}},function(a){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xd(e),e}throw Ba=t,jl}}function Ha(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ba=n,jl):n}}var Ba=null;function kd(){if(Ba===null)throw Error(r(459));var e=Ba;return Ba=null,e}function Xd(e){if(e===jl||e===Vu)throw Error(r(483))}var Al=null,Ai=0;function Ju(e){var t=Ai;return Ai+=1,Al===null&&(Al=[]),Kd(Al,e,t)}function wi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Fu(e,t){throw t.$$typeof===A?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Vd(e){function t(O,T){if(e){var w=O.deletions;w===null?(O.deletions=[T],O.flags|=16):w.push(T)}}function n(O,T){if(!e)return null;for(;T!==null;)t(O,T),T=T.sibling;return null}function a(O){for(var T=new Map;O!==null;)O.key!==null?T.set(O.key,O):T.set(O.index,O),O=O.sibling;return T}function s(O,T){return O=Sn(O,T),O.index=0,O.sibling=null,O}function c(O,T,w){return O.index=w,e?(w=O.alternate,w!==null?(w=w.index,w<T?(O.flags|=67108866,T):w):(O.flags|=67108866,T)):(O.flags|=1048576,T)}function d(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function y(O,T,w,B){return T===null||T.tag!==6?(T=kr(w,O.mode,B),T.return=O,T):(T=s(T,w),T.return=O,T)}function S(O,T,w,B){var ae=w.type;return ae===D?L(O,T,w.props.children,B,w.key):T!==null&&(T.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===le&&Ha(ae)===T.type)?(T=s(T,w.props),wi(T,w),T.return=O,T):(T=Gu(w.type,w.key,w.props,null,O.mode,B),wi(T,w),T.return=O,T)}function _(O,T,w,B){return T===null||T.tag!==4||T.stateNode.containerInfo!==w.containerInfo||T.stateNode.implementation!==w.implementation?(T=Xr(w,O.mode,B),T.return=O,T):(T=s(T,w.children||[]),T.return=O,T)}function L(O,T,w,B,ae){return T===null||T.tag!==7?(T=za(w,O.mode,B,ae),T.return=O,T):(T=s(T,w),T.return=O,T)}function Y(O,T,w){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=kr(""+T,O.mode,w),T.return=O,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case G:return w=Gu(T.type,T.key,T.props,null,O.mode,w),wi(w,T),w.return=O,w;case N:return T=Xr(T,O.mode,w),T.return=O,T;case le:return T=Ha(T),Y(O,T,w)}if(_e(T)||qe(T))return T=za(T,O.mode,w,null),T.return=O,T;if(typeof T.then=="function")return Y(O,Ju(T),w);if(T.$$typeof===K)return Y(O,ku(O,T),w);Fu(O,T)}return null}function z(O,T,w,B){var ae=T!==null?T.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return ae!==null?null:y(O,T,""+w,B);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case G:return w.key===ae?S(O,T,w,B):null;case N:return w.key===ae?_(O,T,w,B):null;case le:return w=Ha(w),z(O,T,w,B)}if(_e(w)||qe(w))return ae!==null?null:L(O,T,w,B,null);if(typeof w.then=="function")return z(O,T,Ju(w),B);if(w.$$typeof===K)return z(O,T,ku(O,w),B);Fu(O,w)}return null}function U(O,T,w,B,ae){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return O=O.get(w)||null,y(T,O,""+B,ae);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case G:return O=O.get(B.key===null?w:B.key)||null,S(T,O,B,ae);case N:return O=O.get(B.key===null?w:B.key)||null,_(T,O,B,ae);case le:return B=Ha(B),U(O,T,w,B,ae)}if(_e(B)||qe(B))return O=O.get(w)||null,L(T,O,B,ae,null);if(typeof B.then=="function")return U(O,T,w,Ju(B),ae);if(B.$$typeof===K)return U(O,T,w,ku(T,B),ae);Fu(T,B)}return null}function P(O,T,w,B){for(var ae=null,Se=null,I=T,oe=T=0,ge=null;I!==null&&oe<w.length;oe++){I.index>oe?(ge=I,I=null):ge=I.sibling;var Ee=z(O,I,w[oe],B);if(Ee===null){I===null&&(I=ge);break}e&&I&&Ee.alternate===null&&t(O,I),T=c(Ee,T,oe),Se===null?ae=Ee:Se.sibling=Ee,Se=Ee,I=ge}if(oe===w.length)return n(O,I),ve&&En(O,oe),ae;if(I===null){for(;oe<w.length;oe++)I=Y(O,w[oe],B),I!==null&&(T=c(I,T,oe),Se===null?ae=I:Se.sibling=I,Se=I);return ve&&En(O,oe),ae}for(I=a(I);oe<w.length;oe++)ge=U(I,O,oe,w[oe],B),ge!==null&&(e&&ge.alternate!==null&&I.delete(ge.key===null?oe:ge.key),T=c(ge,T,oe),Se===null?ae=ge:Se.sibling=ge,Se=ge);return e&&I.forEach(function(ma){return t(O,ma)}),ve&&En(O,oe),ae}function ie(O,T,w,B){if(w==null)throw Error(r(151));for(var ae=null,Se=null,I=T,oe=T=0,ge=null,Ee=w.next();I!==null&&!Ee.done;oe++,Ee=w.next()){I.index>oe?(ge=I,I=null):ge=I.sibling;var ma=z(O,I,Ee.value,B);if(ma===null){I===null&&(I=ge);break}e&&I&&ma.alternate===null&&t(O,I),T=c(ma,T,oe),Se===null?ae=ma:Se.sibling=ma,Se=ma,I=ge}if(Ee.done)return n(O,I),ve&&En(O,oe),ae;if(I===null){for(;!Ee.done;oe++,Ee=w.next())Ee=Y(O,Ee.value,B),Ee!==null&&(T=c(Ee,T,oe),Se===null?ae=Ee:Se.sibling=Ee,Se=Ee);return ve&&En(O,oe),ae}for(I=a(I);!Ee.done;oe++,Ee=w.next())Ee=U(I,O,oe,Ee.value,B),Ee!==null&&(e&&Ee.alternate!==null&&I.delete(Ee.key===null?oe:Ee.key),T=c(Ee,T,oe),Se===null?ae=Ee:Se.sibling=Ee,Se=Ee);return e&&I.forEach(function(rb){return t(O,rb)}),ve&&En(O,oe),ae}function Me(O,T,w,B){if(typeof w=="object"&&w!==null&&w.type===D&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case G:e:{for(var ae=w.key;T!==null;){if(T.key===ae){if(ae=w.type,ae===D){if(T.tag===7){n(O,T.sibling),B=s(T,w.props.children),B.return=O,O=B;break e}}else if(T.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===le&&Ha(ae)===T.type){n(O,T.sibling),B=s(T,w.props),wi(B,w),B.return=O,O=B;break e}n(O,T);break}else t(O,T);T=T.sibling}w.type===D?(B=za(w.props.children,O.mode,B,w.key),B.return=O,O=B):(B=Gu(w.type,w.key,w.props,null,O.mode,B),wi(B,w),B.return=O,O=B)}return d(O);case N:e:{for(ae=w.key;T!==null;){if(T.key===ae)if(T.tag===4&&T.stateNode.containerInfo===w.containerInfo&&T.stateNode.implementation===w.implementation){n(O,T.sibling),B=s(T,w.children||[]),B.return=O,O=B;break e}else{n(O,T);break}else t(O,T);T=T.sibling}B=Xr(w,O.mode,B),B.return=O,O=B}return d(O);case le:return w=Ha(w),Me(O,T,w,B)}if(_e(w))return P(O,T,w,B);if(qe(w)){if(ae=qe(w),typeof ae!="function")throw Error(r(150));return w=ae.call(w),ie(O,T,w,B)}if(typeof w.then=="function")return Me(O,T,Ju(w),B);if(w.$$typeof===K)return Me(O,T,ku(O,w),B);Fu(O,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,T!==null&&T.tag===6?(n(O,T.sibling),B=s(T,w),B.return=O,O=B):(n(O,T),B=kr(w,O.mode,B),B.return=O,O=B),d(O)):n(O,T)}return function(O,T,w,B){try{Ai=0;var ae=Me(O,T,w,B);return Al=null,ae}catch(I){if(I===jl||I===Vu)throw I;var Se=Dt(29,I,null,O.mode);return Se.lanes=B,Se.return=O,Se}finally{}}}var Qa=Vd(!0),Zd=Vd(!1),Wn=!1;function ac(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lc(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 Pn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function In(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Te&2)!==0){var s=a.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,t=Qu(e),Cd(e,null,n),t}return Bu(e,a,t,n),Qu(e)}function Ci(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Hf(e,n)}}function ic(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?s=c=d:c=c.next=d,n=n.next}while(n!==null);c===null?s=c=t:c=c.next=t}else s=c=t;n={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var uc=!1;function _i(){if(uc){var e=Ol;if(e!==null)throw e}}function Di(e,t,n,a){uc=!1;var s=e.updateQueue;Wn=!1;var c=s.firstBaseUpdate,d=s.lastBaseUpdate,y=s.shared.pending;if(y!==null){s.shared.pending=null;var S=y,_=S.next;S.next=null,d===null?c=_:d.next=_,d=S;var L=e.alternate;L!==null&&(L=L.updateQueue,y=L.lastBaseUpdate,y!==d&&(y===null?L.firstBaseUpdate=_:y.next=_,L.lastBaseUpdate=S))}if(c!==null){var Y=s.baseState;d=0,L=_=S=null,y=c;do{var z=y.lane&-536870913,U=z!==y.lane;if(U?(pe&z)===z:(a&z)===z){z!==0&&z===Nl&&(uc=!0),L!==null&&(L=L.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var P=e,ie=y;z=t;var Me=n;switch(ie.tag){case 1:if(P=ie.payload,typeof P=="function"){Y=P.call(Me,Y,z);break e}Y=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=ie.payload,z=typeof P=="function"?P.call(Me,Y,z):P,z==null)break e;Y=b({},Y,z);break e;case 2:Wn=!0}}z=y.callback,z!==null&&(e.flags|=64,U&&(e.flags|=8192),U=s.callbacks,U===null?s.callbacks=[z]:U.push(z))}else U={lane:z,tag:y.tag,payload:y.payload,callback:y.callback,next:null},L===null?(_=L=U,S=Y):L=L.next=U,d|=z;if(y=y.next,y===null){if(y=s.shared.pending,y===null)break;U=y,y=U.next,U.next=null,s.lastBaseUpdate=U,s.shared.pending=null}}while(!0);L===null&&(S=Y),s.baseState=S,s.firstBaseUpdate=_,s.lastBaseUpdate=L,c===null&&(s.shared.lanes=0),la|=d,e.lanes=d,e.memoizedState=Y}}function Jd(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Fd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Jd(n[e],t)}var wl=R(null),$u=R(0);function $d(e,t){e=zn,Z($u,e),Z(wl,t),zn=e|t.baseLanes}function sc(){Z($u,zn),Z(wl,wl.current)}function rc(){zn=$u.current,Q(wl),Q($u)}var zt=R(null),Vt=null;function ea(e){var t=e.alternate;Z(Ze,Ze.current&1),Z(zt,e),Vt===null&&(t===null||wl.current!==null||t.memoizedState!==null)&&(Vt=e)}function cc(e){Z(Ze,Ze.current),Z(zt,e),Vt===null&&(Vt=e)}function Wd(e){e.tag===22?(Z(Ze,Ze.current),Z(zt,e),Vt===null&&(Vt=e)):ta()}function ta(){Z(Ze,Ze.current),Z(zt,zt.current)}function Mt(e){Q(zt),Vt===e&&(Vt=null),Q(Ze)}var Ze=R(0);function Wu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||po(n)||go(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Nn=0,ce=null,De=null,$e=null,Pu=!1,Cl=!1,Ga=!1,Iu=0,zi=0,_l=null,Pg=0;function Ke(){throw Error(r(321))}function oc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_t(e[n],t[n]))return!1;return!0}function fc(e,t,n,a,s,c){return Nn=c,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,q.H=e===null||e.memoizedState===null?Mh:Oc,Ga=!1,c=n(a,s),Ga=!1,Cl&&(c=Id(t,n,a,s)),Pd(e),c}function Pd(e){q.H=qi;var t=De!==null&&De.next!==null;if(Nn=0,$e=De=ce=null,Pu=!1,zi=0,_l=null,t)throw Error(r(300));e===null||We||(e=e.dependencies,e!==null&&Ku(e)&&(We=!0))}function Id(e,t,n,a){ce=e;var s=0;do{if(Cl&&(_l=null),zi=0,Cl=!1,25<=s)throw Error(r(301));if(s+=1,$e=De=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}q.H=Uh,c=t(n,a)}while(Cl);return c}function Ig(){var e=q.H,t=e.useState()[0];return t=typeof t.then=="function"?Mi(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(ce.flags|=1024),t}function dc(){var e=Iu!==0;return Iu=0,e}function hc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function mc(e){if(Pu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Pu=!1}Nn=0,$e=De=ce=null,Cl=!1,zi=Iu=0,_l=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?ce.memoizedState=$e=e:$e=$e.next=e,$e}function Je(){if(De===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=$e===null?ce.memoizedState:$e.next;if(t!==null)$e=t,De=e;else{if(e===null)throw ce.alternate===null?Error(r(467)):Error(r(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},$e===null?ce.memoizedState=$e=e:$e=$e.next=e}return $e}function es(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mi(e){var t=zi;return zi+=1,_l===null&&(_l=[]),e=Kd(_l,e,t),t=ce,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,q.H=t===null||t.memoizedState===null?Mh:Oc),e}function ts(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Mi(e);if(e.$$typeof===K)return st(e)}throw Error(r(438,String(e)))}function yc(e){var t=null,n=ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ce.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=es(),ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=je;return t.index++,n}function On(e,t){return typeof t=="function"?t(e):t}function ns(e){var t=Je();return pc(t,De,e)}function pc(e,t,n){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var s=e.baseQueue,c=a.pending;if(c!==null){if(s!==null){var d=s.next;s.next=c.next,c.next=d}t.baseQueue=s=c,a.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var y=d=null,S=null,_=t,L=!1;do{var Y=_.lane&-536870913;if(Y!==_.lane?(pe&Y)===Y:(Nn&Y)===Y){var z=_.revertLane;if(z===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),Y===Nl&&(L=!0);else if((Nn&z)===z){_=_.next,z===Nl&&(L=!0);continue}else Y={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},S===null?(y=S=Y,d=c):S=S.next=Y,ce.lanes|=z,la|=z;Y=_.action,Ga&&n(c,Y),c=_.hasEagerState?_.eagerState:n(c,Y)}else z={lane:Y,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},S===null?(y=S=z,d=c):S=S.next=z,ce.lanes|=Y,la|=Y;_=_.next}while(_!==null&&_!==t);if(S===null?d=c:S.next=y,!_t(c,e.memoizedState)&&(We=!0,L&&(n=Ol,n!==null)))throw n;e.memoizedState=c,e.baseState=d,e.baseQueue=S,a.lastRenderedState=c}return s===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function gc(e){var t=Je(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var a=n.dispatch,s=n.pending,c=t.memoizedState;if(s!==null){n.pending=null;var d=s=s.next;do c=e(c,d.action),d=d.next;while(d!==s);_t(c,t.memoizedState)||(We=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function eh(e,t,n){var a=ce,s=Je(),c=ve;if(c){if(n===void 0)throw Error(r(407));n=n()}else n=t();var d=!_t((De||s).memoizedState,n);if(d&&(s.memoizedState=n,We=!0),s=s.queue,xc(ah.bind(null,a,s,e),[e]),s.getSnapshot!==t||d||$e!==null&&$e.memoizedState.tag&1){if(a.flags|=2048,Dl(9,{destroy:void 0},nh.bind(null,a,s,n,t),null),Ue===null)throw Error(r(349));c||(Nn&127)!==0||th(a,t,n)}return n}function th(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ce.updateQueue,t===null?(t=es(),ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function nh(e,t,n,a){t.value=n,t.getSnapshot=a,lh(t)&&ih(e)}function ah(e,t,n){return n(function(){lh(t)&&ih(e)})}function lh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_t(e,n)}catch{return!0}}function ih(e){var t=Da(e,2);t!==null&&Rt(t,e,2)}function vc(e){var t=mt();if(typeof e=="function"){var n=e;if(e=n(),Ga){kn(!0);try{n()}finally{kn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:e},t}function uh(e,t,n,a){return e.baseState=n,pc(e,De,typeof a=="function"?a:On)}function ev(e,t,n,a,s){if(is(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){c.listeners.push(d)}};q.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,sh(t,c)):(c.next=n.next,t.pending=n.next=c)}}function sh(e,t){var n=t.action,a=t.payload,s=e.state;if(t.isTransition){var c=q.T,d={};q.T=d;try{var y=n(s,a),S=q.S;S!==null&&S(d,y),rh(e,t,y)}catch(_){bc(e,t,_)}finally{c!==null&&d.types!==null&&(c.types=d.types),q.T=c}}else try{c=n(s,a),rh(e,t,c)}catch(_){bc(e,t,_)}}function rh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){ch(e,t,a)},function(a){return bc(e,t,a)}):ch(e,t,n)}function ch(e,t,n){t.status="fulfilled",t.value=n,oh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,sh(e,n)))}function bc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,oh(t),t=t.next;while(t!==a)}e.action=null}function oh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function fh(e,t){return t}function dh(e,t){if(ve){var n=Ue.formState;if(n!==null){e:{var a=ce;if(ve){if(He){t:{for(var s=He,c=Xt;s.nodeType!==8;){if(!c){s=null;break t}if(s=Zt(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){He=Zt(s.nextSibling),a=s.data==="F!";break e}}Fn(a)}a=!1}a&&(t=n[0])}}return n=mt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fh,lastRenderedState:t},n.queue=a,n=_h.bind(null,ce,a),a.dispatch=n,a=vc(!1),c=Nc.bind(null,ce,!1,a.queue),a=mt(),s={state:t,dispatch:null,action:e,pending:null},a.queue=s,n=ev.bind(null,ce,s,c,n),s.dispatch=n,a.memoizedState=e,[t,n,!1]}function hh(e){var t=Je();return mh(t,De,e)}function mh(e,t,n){if(t=pc(e,t,fh)[0],e=ns(On)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Mi(t)}catch(d){throw d===jl?Vu:d}else a=t;t=Je();var s=t.queue,c=s.dispatch;return n!==t.memoizedState&&(ce.flags|=2048,Dl(9,{destroy:void 0},tv.bind(null,s,n),null)),[a,c,e]}function tv(e,t){e.action=t}function yh(e){var t=Je(),n=De;if(n!==null)return mh(t,n,e);Je(),t=t.memoizedState,n=Je();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Dl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ce.updateQueue,t===null&&(t=es(),ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function ph(){return Je().memoizedState}function as(e,t,n,a){var s=mt();ce.flags|=e,s.memoizedState=Dl(1|t,{destroy:void 0},n,a===void 0?null:a)}function ls(e,t,n,a){var s=Je();a=a===void 0?null:a;var c=s.memoizedState.inst;De!==null&&a!==null&&oc(a,De.memoizedState.deps)?s.memoizedState=Dl(t,c,n,a):(ce.flags|=e,s.memoizedState=Dl(1|t,c,n,a))}function gh(e,t){as(8390656,8,e,t)}function xc(e,t){ls(2048,8,e,t)}function nv(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=es(),ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function vh(e){var t=Je().memoizedState;return nv({ref:t,nextImpl:e}),function(){if((Te&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function bh(e,t){return ls(4,2,e,t)}function xh(e,t){return ls(4,4,e,t)}function Sh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Eh(e,t,n){n=n!=null?n.concat([e]):null,ls(4,4,Sh.bind(null,t,e),n)}function Sc(){}function Rh(e,t){var n=Je();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&oc(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Th(e,t){var n=Je();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&oc(t,a[1]))return a[0];if(a=e(),Ga){kn(!0);try{e()}finally{kn(!1)}}return n.memoizedState=[a,t],a}function Ec(e,t,n){return n===void 0||(Nn&1073741824)!==0&&(pe&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Nm(),ce.lanes|=e,la|=e,n)}function Nh(e,t,n,a){return _t(n,t)?n:wl.current!==null?(e=Ec(e,n,a),_t(e,t)||(We=!0),e):(Nn&42)===0||(Nn&1073741824)!==0&&(pe&261930)===0?(We=!0,e.memoizedState=n):(e=Nm(),ce.lanes|=e,la|=e,t)}function Oh(e,t,n,a,s){var c=V.p;V.p=c!==0&&8>c?c:8;var d=q.T,y={};q.T=y,Nc(e,!1,t,n);try{var S=s(),_=q.S;if(_!==null&&_(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var L=Wg(S,a);Ui(e,t,L,Lt(e))}else Ui(e,t,a,Lt(e))}catch(Y){Ui(e,t,{then:function(){},status:"rejected",reason:Y},Lt())}finally{V.p=c,d!==null&&y.types!==null&&(d.types=y.types),q.T=d}}function av(){}function Rc(e,t,n,a){if(e.tag!==5)throw Error(r(476));var s=jh(e).queue;Oh(e,s,t,ee,n===null?av:function(){return Ah(e),n(a)})}function jh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:ee},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ah(e){var t=jh(e);t.next===null&&(t=e.alternate.memoizedState),Ui(e,t.next.queue,{},Lt())}function Tc(){return st(Pi)}function wh(){return Je().memoizedState}function Ch(){return Je().memoizedState}function lv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Lt();e=Pn(n);var a=In(t,e,n);a!==null&&(Rt(a,t,n),Ci(a,t,n)),t={cache:Ir()},e.payload=t;return}t=t.return}}function iv(e,t,n){var a=Lt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},is(e)?Dh(t,n):(n=Yr(e,t,n,a),n!==null&&(Rt(n,e,a),zh(n,t,a)))}function _h(e,t,n){var a=Lt();Ui(e,t,n,a)}function Ui(e,t,n,a){var s={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(is(e))Dh(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var d=t.lastRenderedState,y=c(d,n);if(s.hasEagerState=!0,s.eagerState=y,_t(y,d))return Bu(e,t,s,0),Ue===null&&Hu(),!1}catch{}finally{}if(n=Yr(e,t,s,a),n!==null)return Rt(n,e,a),zh(n,t,a),!0}return!1}function Nc(e,t,n,a){if(a={lane:2,revertLane:ao(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},is(e)){if(t)throw Error(r(479))}else t=Yr(e,n,a,2),t!==null&&Rt(t,e,2)}function is(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Dh(e,t){Cl=Pu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zh(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Hf(e,n)}}var qi={readContext:st,use:ts,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useLayoutEffect:Ke,useInsertionEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useSyncExternalStore:Ke,useId:Ke,useHostTransitionStatus:Ke,useFormState:Ke,useActionState:Ke,useOptimistic:Ke,useMemoCache:Ke,useCacheRefresh:Ke};qi.useEffectEvent=Ke;var Mh={readContext:st,use:ts,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:gh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,as(4194308,4,Sh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){as(4,2,e,t)},useMemo:function(e,t){var n=mt();t=t===void 0?null:t;var a=e();if(Ga){kn(!0);try{e()}finally{kn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=mt();if(n!==void 0){var s=n(t);if(Ga){kn(!0);try{n(t)}finally{kn(!1)}}}else s=t;return a.memoizedState=a.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=iv.bind(null,ce,e),[a.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=vc(e);var t=e.queue,n=_h.bind(null,ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Sc,useDeferredValue:function(e,t){var n=mt();return Ec(n,e,t)},useTransition:function(){var e=vc(!1);return e=Oh.bind(null,ce,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ce,s=mt();if(ve){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Ue===null)throw Error(r(349));(pe&127)!==0||th(a,t,n)}s.memoizedState=n;var c={value:n,getSnapshot:t};return s.queue=c,gh(ah.bind(null,a,c,e),[e]),a.flags|=2048,Dl(9,{destroy:void 0},nh.bind(null,a,c,n,t),null),n},useId:function(){var e=mt(),t=Ue.identifierPrefix;if(ve){var n=on,a=cn;n=(a&~(1<<32-Ct(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Iu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Pg++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Tc,useFormState:dh,useActionState:dh,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Nc.bind(null,ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:yc,useCacheRefresh:function(){return mt().memoizedState=lv.bind(null,ce)},useEffectEvent:function(e){var t=mt(),n={impl:e};return t.memoizedState=n,function(){if((Te&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Oc={readContext:st,use:ts,useCallback:Rh,useContext:st,useEffect:xc,useImperativeHandle:Eh,useInsertionEffect:bh,useLayoutEffect:xh,useMemo:Th,useReducer:ns,useRef:ph,useState:function(){return ns(On)},useDebugValue:Sc,useDeferredValue:function(e,t){var n=Je();return Nh(n,De.memoizedState,e,t)},useTransition:function(){var e=ns(On)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:Mi(e),t]},useSyncExternalStore:eh,useId:wh,useHostTransitionStatus:Tc,useFormState:hh,useActionState:hh,useOptimistic:function(e,t){var n=Je();return uh(n,De,e,t)},useMemoCache:yc,useCacheRefresh:Ch};Oc.useEffectEvent=vh;var Uh={readContext:st,use:ts,useCallback:Rh,useContext:st,useEffect:xc,useImperativeHandle:Eh,useInsertionEffect:bh,useLayoutEffect:xh,useMemo:Th,useReducer:gc,useRef:ph,useState:function(){return gc(On)},useDebugValue:Sc,useDeferredValue:function(e,t){var n=Je();return De===null?Ec(n,e,t):Nh(n,De.memoizedState,e,t)},useTransition:function(){var e=gc(On)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:Mi(e),t]},useSyncExternalStore:eh,useId:wh,useHostTransitionStatus:Tc,useFormState:yh,useActionState:yh,useOptimistic:function(e,t){var n=Je();return De!==null?uh(n,De,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:yc,useCacheRefresh:Ch};Uh.useEffectEvent=vh;function jc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ac={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Lt(),s=Pn(a);s.payload=t,n!=null&&(s.callback=n),t=In(e,s,a),t!==null&&(Rt(t,e,a),Ci(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Lt(),s=Pn(a);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=In(e,s,a),t!==null&&(Rt(t,e,a),Ci(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Lt(),a=Pn(n);a.tag=2,t!=null&&(a.callback=t),t=In(e,a,n),t!==null&&(Rt(t,e,n),Ci(t,e,n))}};function qh(e,t,n,a,s,c,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,d):t.prototype&&t.prototype.isPureReactComponent?!Ei(n,a)||!Ei(s,c):!0}function Lh(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Ac.enqueueReplaceState(t,t.state,null)}function Ya(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}function Hh(e){Lu(e)}function Bh(e){console.error(e)}function Qh(e){Lu(e)}function us(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Gh(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function wc(e,t,n){return n=Pn(n),n.tag=3,n.payload={element:null},n.callback=function(){us(e,t)},n}function Yh(e){return e=Pn(e),e.tag=3,e}function Kh(e,t,n,a){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var c=a.value;e.payload=function(){return s(c)},e.callback=function(){Gh(t,n,a)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Gh(t,n,a),typeof s!="function"&&(ia===null?ia=new Set([this]):ia.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function uv(e,t,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Tl(t,n,s,!0),n=zt.current,n!==null){switch(n.tag){case 31:case 13:return Vt===null?vs():n.alternate===null&&ke===0&&(ke=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===Zu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),eo(e,a,s)),!1;case 22:return n.flags|=65536,a===Zu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),eo(e,a,s)),!1}throw Error(r(435,n.tag))}return eo(e,a,s),vs(),!1}if(ve)return t=zt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,a!==Jr&&(e=Error(r(422),{cause:a}),Ni(Yt(e,n)))):(a!==Jr&&(t=Error(r(423),{cause:a}),Ni(Yt(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,a=Yt(a,n),s=wc(e.stateNode,a,s),ic(e,s),ke!==4&&(ke=2)),!1;var c=Error(r(520),{cause:a});if(c=Yt(c,n),ki===null?ki=[c]:ki.push(c),ke!==4&&(ke=2),t===null)return!0;a=Yt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=wc(n.stateNode,a,e),ic(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ia===null||!ia.has(c))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Yh(s),Kh(s,e,n,a),ic(n,s),!1}n=n.return}while(n!==null);return!1}var Cc=Error(r(461)),We=!1;function rt(e,t,n,a){t.child=e===null?Zd(t,null,n,a):Qa(t,e.child,n,a)}function kh(e,t,n,a,s){n=n.render;var c=t.ref;if("ref"in a){var d={};for(var y in a)y!=="ref"&&(d[y]=a[y])}else d=a;return qa(t),a=fc(e,t,n,d,c,s),y=dc(),e!==null&&!We?(hc(e,t,s),jn(e,t,s)):(ve&&y&&Vr(t),t.flags|=1,rt(e,t,a,s),t.child)}function Xh(e,t,n,a,s){if(e===null){var c=n.type;return typeof c=="function"&&!Kr(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Vh(e,t,c,a,s)):(e=Gu(n.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Hc(e,s)){var d=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ei,n(d,a)&&e.ref===t.ref)return jn(e,t,s)}return t.flags|=1,e=Sn(c,a),e.ref=t.ref,e.return=t,t.child=e}function Vh(e,t,n,a,s){if(e!==null){var c=e.memoizedProps;if(Ei(c,a)&&e.ref===t.ref)if(We=!1,t.pendingProps=a=c,Hc(e,s))(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,jn(e,t,s)}return _c(e,t,n,a,s)}function Zh(e,t,n,a){var s=a.children,c=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(c=c!==null?c.baseLanes|n:n,e!==null){for(a=t.child=e.child,s=0;a!==null;)s=s|a.lanes|a.childLanes,a=a.sibling;a=s&~c}else a=0,t.child=null;return Jh(e,t,c,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Xu(t,c!==null?c.cachePool:null),c!==null?$d(t,c):sc(),Wd(t);else return a=t.lanes=536870912,Jh(e,t,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(Xu(t,c.cachePool),$d(t,c),ta(),t.memoizedState=null):(e!==null&&Xu(t,null),sc(),ta());return rt(e,t,s,n),t.child}function Li(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Jh(e,t,n,a,s){var c=tc();return c=c===null?null:{parent:Fe._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&Xu(t,null),sc(),Wd(t),e!==null&&Tl(e,t,a,!0),t.childLanes=s,null}function ss(e,t){return t=cs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Fh(e,t,n){return Qa(t,e.child,null,n),e=ss(t,t.pendingProps),e.flags|=2,Mt(t),t.memoizedState=null,e}function sv(e,t,n){var a=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(a.mode==="hidden")return e=ss(t,a),t.lanes=536870912,Li(null,e);if(cc(t),(e=He)?(e=sy(e,Xt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zn!==null?{id:cn,overflow:on}:null,retryLane:536870912,hydrationErrors:null},n=Dd(e),n.return=t,t.child=n,ut=t,He=null)):e=null,e===null)throw Fn(t);return t.lanes=536870912,null}return ss(t,a)}var c=e.memoizedState;if(c!==null){var d=c.dehydrated;if(cc(t),s)if(t.flags&256)t.flags&=-257,t=Fh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(We||Tl(e,t,n,!1),s=(n&e.childLanes)!==0,We||s){if(a=Ue,a!==null&&(d=Bf(a,n),d!==0&&d!==c.retryLane))throw c.retryLane=d,Da(e,d),Rt(a,e,d),Cc;vs(),t=Fh(e,t,n)}else e=c.treeContext,He=Zt(d.nextSibling),ut=t,ve=!0,Jn=null,Xt=!1,e!==null&&Ud(t,e),t=ss(t,a),t.flags|=4096;return t}return e=Sn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function rs(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function _c(e,t,n,a,s){return qa(t),n=fc(e,t,n,a,void 0,s),a=dc(),e!==null&&!We?(hc(e,t,s),jn(e,t,s)):(ve&&a&&Vr(t),t.flags|=1,rt(e,t,n,s),t.child)}function $h(e,t,n,a,s,c){return qa(t),t.updateQueue=null,n=Id(t,a,n,s),Pd(e),a=dc(),e!==null&&!We?(hc(e,t,c),jn(e,t,c)):(ve&&a&&Vr(t),t.flags|=1,rt(e,t,n,c),t.child)}function Wh(e,t,n,a,s){if(qa(t),t.stateNode===null){var c=xl,d=n.contextType;typeof d=="object"&&d!==null&&(c=st(d)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ac,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},ac(t),d=n.contextType,c.context=typeof d=="object"&&d!==null?st(d):xl,c.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(jc(t,n,d,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(d=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),d!==c.state&&Ac.enqueueReplaceState(c,c.state,null),Di(t,a,c,s),_i(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var y=t.memoizedProps,S=Ya(n,y);c.props=S;var _=c.context,L=n.contextType;d=xl,typeof L=="object"&&L!==null&&(d=st(L));var Y=n.getDerivedStateFromProps;L=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,L||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||_!==d)&&Lh(t,c,a,d),Wn=!1;var z=t.memoizedState;c.state=z,Di(t,a,c,s),_i(),_=t.memoizedState,y||z!==_||Wn?(typeof Y=="function"&&(jc(t,n,Y,a),_=t.memoizedState),(S=Wn||qh(t,n,S,a,z,_,d))?(L||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=_),c.props=a,c.state=_,c.context=d,a=S):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,lc(e,t),d=t.memoizedProps,L=Ya(n,d),c.props=L,Y=t.pendingProps,z=c.context,_=n.contextType,S=xl,typeof _=="object"&&_!==null&&(S=st(_)),y=n.getDerivedStateFromProps,(_=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==Y||z!==S)&&Lh(t,c,a,S),Wn=!1,z=t.memoizedState,c.state=z,Di(t,a,c,s),_i();var U=t.memoizedState;d!==Y||z!==U||Wn||e!==null&&e.dependencies!==null&&Ku(e.dependencies)?(typeof y=="function"&&(jc(t,n,y,a),U=t.memoizedState),(L=Wn||qh(t,n,L,a,z,U,S)||e!==null&&e.dependencies!==null&&Ku(e.dependencies))?(_||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,U,S),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,U,S)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=U),c.props=a,c.state=U,c.context=S,a=L):(typeof c.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,rs(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=Qa(t,e.child,null,s),t.child=Qa(t,null,n,s)):rt(e,t,n,s),t.memoizedState=c.state,e=t.child):e=jn(e,t,s),e}function Ph(e,t,n,a){return Ma(),t.flags|=256,rt(e,t,n,a),t.child}var Dc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function zc(e){return{baseLanes:e,cachePool:Gd()}}function Mc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=qt),e}function Ih(e,t,n){var a=t.pendingProps,s=!1,c=(t.flags&128)!==0,d;if((d=c)||(d=e!==null&&e.memoizedState===null?!1:(Ze.current&2)!==0),d&&(s=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(s?ea(t):ta(),(e=He)?(e=sy(e,Xt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zn!==null?{id:cn,overflow:on}:null,retryLane:536870912,hydrationErrors:null},n=Dd(e),n.return=t,t.child=n,ut=t,He=null)):e=null,e===null)throw Fn(t);return go(e)?t.lanes=32:t.lanes=536870912,null}var y=a.children;return a=a.fallback,s?(ta(),s=t.mode,y=cs({mode:"hidden",children:y},s),a=za(a,s,n,null),y.return=t,a.return=t,y.sibling=a,t.child=y,a=t.child,a.memoizedState=zc(n),a.childLanes=Mc(e,d,n),t.memoizedState=Dc,Li(null,a)):(ea(t),Uc(t,y))}var S=e.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(c)t.flags&256?(ea(t),t.flags&=-257,t=qc(e,t,n)):t.memoizedState!==null?(ta(),t.child=e.child,t.flags|=128,t=null):(ta(),y=a.fallback,s=t.mode,a=cs({mode:"visible",children:a.children},s),y=za(y,s,n,null),y.flags|=2,a.return=t,y.return=t,a.sibling=y,t.child=a,Qa(t,e.child,null,n),a=t.child,a.memoizedState=zc(n),a.childLanes=Mc(e,d,n),t.memoizedState=Dc,t=Li(null,a));else if(ea(t),go(y)){if(d=y.nextSibling&&y.nextSibling.dataset,d)var _=d.dgst;d=_,a=Error(r(419)),a.stack="",a.digest=d,Ni({value:a,source:null,stack:null}),t=qc(e,t,n)}else if(We||Tl(e,t,n,!1),d=(n&e.childLanes)!==0,We||d){if(d=Ue,d!==null&&(a=Bf(d,n),a!==0&&a!==S.retryLane))throw S.retryLane=a,Da(e,a),Rt(d,e,a),Cc;po(y)||vs(),t=qc(e,t,n)}else po(y)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,He=Zt(y.nextSibling),ut=t,ve=!0,Jn=null,Xt=!1,e!==null&&Ud(t,e),t=Uc(t,a.children),t.flags|=4096);return t}return s?(ta(),y=a.fallback,s=t.mode,S=e.child,_=S.sibling,a=Sn(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,_!==null?y=Sn(_,y):(y=za(y,s,n,null),y.flags|=2),y.return=t,a.return=t,a.sibling=y,t.child=a,Li(null,a),a=t.child,y=e.child.memoizedState,y===null?y=zc(n):(s=y.cachePool,s!==null?(S=Fe._currentValue,s=s.parent!==S?{parent:S,pool:S}:s):s=Gd(),y={baseLanes:y.baseLanes|n,cachePool:s}),a.memoizedState=y,a.childLanes=Mc(e,d,n),t.memoizedState=Dc,Li(e.child,a)):(ea(t),n=e.child,e=n.sibling,n=Sn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function Uc(e,t){return t=cs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function cs(e,t){return e=Dt(22,e,null,t),e.lanes=0,e}function qc(e,t,n){return Qa(t,e.child,null,n),e=Uc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function em(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Wr(e.return,t,n)}function Lc(e,t,n,a,s,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s,treeForkCount:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=a,d.tail=n,d.tailMode=s,d.treeForkCount=c)}function tm(e,t,n){var a=t.pendingProps,s=a.revealOrder,c=a.tail;a=a.children;var d=Ze.current,y=(d&2)!==0;if(y?(d=d&1|2,t.flags|=128):d&=1,Z(Ze,d),rt(e,t,a,n),a=ve?Ti:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&em(e,n,t);else if(e.tag===19)em(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Wu(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Lc(t,!1,s,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Wu(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Lc(t,!0,n,null,c,a);break;case"together":Lc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function jn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),la|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Tl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Sn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Sn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Hc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ku(e)))}function rv(e,t,n){switch(t.tag){case 3:ht(t,t.stateNode.containerInfo),$n(t,Fe,e.memoizedState.cache),Ma();break;case 27:case 5:ci(t);break;case 4:ht(t,t.stateNode.containerInfo);break;case 10:$n(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,cc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ea(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Ih(e,t,n):(ea(t),e=jn(e,t,n),e!==null?e.sibling:null);ea(t);break;case 19:var s=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Tl(e,t,n,!1),a=(n&t.childLanes)!==0),s){if(a)return tm(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Z(Ze,Ze.current),a)break;return null;case 22:return t.lanes=0,Zh(e,t,n,t.pendingProps);case 24:$n(t,Fe,e.memoizedState.cache)}return jn(e,t,n)}function nm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!Hc(e,n)&&(t.flags&128)===0)return We=!1,rv(e,t,n);We=(e.flags&131072)!==0}else We=!1,ve&&(t.flags&1048576)!==0&&Md(t,Ti,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ha(t.elementType),t.type=e,typeof e=="function")Kr(e)?(a=Ya(e,a),t.tag=1,t=Wh(null,t,e,a,n)):(t.tag=0,t=_c(null,t,e,a,n));else{if(e!=null){var s=e.$$typeof;if(s===k){t.tag=11,t=kh(null,t,e,a,n);break e}else if(s===$){t.tag=14,t=Xh(null,t,e,a,n);break e}}throw t=Le(e)||e,Error(r(306,t,""))}}return t;case 0:return _c(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,s=Ya(a,t.pendingProps),Wh(e,t,a,s,n);case 3:e:{if(ht(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var c=t.memoizedState;s=c.element,lc(e,t),Di(t,a,null,n);var d=t.memoizedState;if(a=d.cache,$n(t,Fe,a),a!==c.cache&&Pr(t,[Fe],n,!0),_i(),a=d.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Ph(e,t,a,n);break e}else if(a!==s){s=Yt(Error(r(424)),t),Ni(s),t=Ph(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=Zt(e.firstChild),ut=t,ve=!0,Jn=null,Xt=!0,n=Zd(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ma(),a===s){t=jn(e,t,n);break e}rt(e,t,a,n)}t=t.child}return t;case 26:return rs(e,t),e===null?(n=hy(t.type,null,t.pendingProps,null))?t.memoizedState=n:ve||(n=t.type,e=t.pendingProps,a=Ns(he.current).createElement(n),a[it]=t,a[gt]=e,ct(a,n,e),nt(a),t.stateNode=a):t.memoizedState=hy(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ci(t),e===null&&ve&&(a=t.stateNode=oy(t.type,t.pendingProps,he.current),ut=t,Xt=!0,s=He,ca(t.type)?(vo=s,He=Zt(a.firstChild)):He=s),rt(e,t,t.pendingProps.children,n),rs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((s=a=He)&&(a=Hv(a,t.type,t.pendingProps,Xt),a!==null?(t.stateNode=a,ut=t,He=Zt(a.firstChild),Xt=!1,s=!0):s=!1),s||Fn(t)),ci(t),s=t.type,c=t.pendingProps,d=e!==null?e.memoizedProps:null,a=c.children,ho(s,c)?a=null:d!==null&&ho(s,d)&&(t.flags|=32),t.memoizedState!==null&&(s=fc(e,t,Ig,null,null,n),Pi._currentValue=s),rs(e,t),rt(e,t,a,n),t.child;case 6:return e===null&&ve&&((e=n=He)&&(n=Bv(n,t.pendingProps,Xt),n!==null?(t.stateNode=n,ut=t,He=null,e=!0):e=!1),e||Fn(t)),null;case 13:return Ih(e,t,n);case 4:return ht(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Qa(t,null,a,n):rt(e,t,a,n),t.child;case 11:return kh(e,t,t.type,t.pendingProps,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,$n(t,t.type,a.value),rt(e,t,a.children,n),t.child;case 9:return s=t.type._context,a=t.pendingProps.children,qa(t),s=st(s),a=a(s),t.flags|=1,rt(e,t,a,n),t.child;case 14:return Xh(e,t,t.type,t.pendingProps,n);case 15:return Vh(e,t,t.type,t.pendingProps,n);case 19:return tm(e,t,n);case 31:return sv(e,t,n);case 22:return Zh(e,t,n,t.pendingProps);case 24:return qa(t),a=st(Fe),e===null?(s=tc(),s===null&&(s=Ue,c=Ir(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=n),s=c),t.memoizedState={parent:a,cache:s},ac(t),$n(t,Fe,s)):((e.lanes&n)!==0&&(lc(e,t),Di(t,null,null,n),_i()),s=e.memoizedState,c=t.memoizedState,s.parent!==a?(s={parent:a,cache:a},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),$n(t,Fe,a)):(a=c.cache,$n(t,Fe,a),a!==s.cache&&Pr(t,[Fe],n,!0))),rt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function An(e){e.flags|=4}function Bc(e,t,n,a,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(wm())e.flags|=8192;else throw Ba=Zu,nc}else e.flags&=-16777217}function am(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!vy(t))if(wm())e.flags|=8192;else throw Ba=Zu,nc}function os(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?qf():536870912,e.lanes|=t,ql|=t)}function Hi(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function cv(e,t,n){var a=t.pendingProps;switch(Zr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Tn(Fe),Ve(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Rl(t)?An(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Fr())),Be(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(An(t),c!==null?(Be(t),am(t,c)):(Be(t),Bc(t,s,null,a,n))):c?c!==e.memoizedState?(An(t),Be(t),am(t,c)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&An(t),Be(t),Bc(t,s,e,a,n)),null;case 27:if(Su(t),n=he.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&An(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Be(t),null}e=W.current,Rl(t)?qd(t):(e=oy(s,a,n),t.stateNode=e,An(t))}return Be(t),null;case 5:if(Su(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&An(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Be(t),null}if(c=W.current,Rl(t))qd(t);else{var d=Ns(he.current);switch(c){case 1:c=d.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=d.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=d.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?d.createElement("select",{is:a.is}):d.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?d.createElement(s,{is:a.is}):d.createElement(s)}}c[it]=t,c[gt]=a;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)c.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=c;e:switch(ct(c,s,a),s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&An(t)}}return Be(t),Bc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&An(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=he.current,Rl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,s=ut,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}e[it]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Im(e.nodeValue,n)),e||Fn(t,!0)}else e=Ns(e).createTextNode(a),e[it]=t,t.stateNode=e}return Be(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Rl(t),n!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[it]=t}else Ma(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else n=Fr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Mt(t),t):(Mt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Be(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Rl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));s[it]=t}else Ma(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),s=!1}else s=Fr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Mt(t),t):(Mt(t),null)}return Mt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==s&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),os(t,t.updateQueue),Be(t),null);case 4:return Ve(),e===null&&so(t.stateNode.containerInfo),Be(t),null;case 10:return Tn(t.type),Be(t),null;case 19:if(Q(Ze),a=t.memoizedState,a===null)return Be(t),null;if(s=(t.flags&128)!==0,c=a.rendering,c===null)if(s)Hi(a,!1);else{if(ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Wu(e),c!==null){for(t.flags|=128,Hi(a,!1),e=c.updateQueue,t.updateQueue=e,os(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)_d(n,e),n=n.sibling;return Z(Ze,Ze.current&1|2),ve&&En(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&At()>ys&&(t.flags|=128,s=!0,Hi(a,!1),t.lanes=4194304)}else{if(!s)if(e=Wu(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,os(t,e),Hi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!ve)return Be(t),null}else 2*At()-a.renderingStartTime>ys&&n!==536870912&&(t.flags|=128,s=!0,Hi(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=At(),e.sibling=null,n=Ze.current,Z(Ze,s?n&1|2:n&1),ve&&En(t,a.treeForkCount),e):(Be(t),null);case 22:case 23:return Mt(t),rc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),n=t.updateQueue,n!==null&&os(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&Q(La),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Tn(Fe),Be(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function ov(e,t){switch(Zr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tn(Fe),Ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Su(t),null;case 31:if(t.memoizedState!==null){if(Mt(t),t.alternate===null)throw Error(r(340));Ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Ze),null;case 4:return Ve(),null;case 10:return Tn(t.type),null;case 22:case 23:return Mt(t),rc(),e!==null&&Q(La),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Tn(Fe),null;case 25:return null;default:return null}}function lm(e,t){switch(Zr(t),t.tag){case 3:Tn(Fe),Ve();break;case 26:case 27:case 5:Su(t);break;case 4:Ve();break;case 31:t.memoizedState!==null&&Mt(t);break;case 13:Mt(t);break;case 19:Q(Ze);break;case 10:Tn(t.type);break;case 22:case 23:Mt(t),rc(),e!==null&&Q(La);break;case 24:Tn(Fe)}}function Bi(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&e)===e){a=void 0;var c=n.create,d=n.inst;a=c(),d.destroy=a}n=n.next}while(n!==s)}}catch(y){Ce(t,t.return,y)}}function na(e,t,n){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var c=s.next;a=c;do{if((a.tag&e)===e){var d=a.inst,y=d.destroy;if(y!==void 0){d.destroy=void 0,s=t;var S=n,_=y;try{_()}catch(L){Ce(s,S,L)}}}a=a.next}while(a!==c)}}catch(L){Ce(t,t.return,L)}}function im(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Fd(t,n)}catch(a){Ce(e,e.return,a)}}}function um(e,t,n){n.props=Ya(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ce(e,t,a)}}function Qi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(s){Ce(e,t,s)}}function fn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){Ce(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Ce(e,t,s)}else n.current=null}function sm(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(s){Ce(e,e.return,s)}}function Qc(e,t,n){try{var a=e.stateNode;Dv(a,e.type,n,t),a[gt]=t}catch(s){Ce(e,e.return,s)}}function rm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ca(e.type)||e.tag===4}function Gc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rm(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&&ca(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 Yc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=bn));else if(a!==4&&(a===27&&ca(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function fs(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&ca(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(fs(e,t,n),e=e.sibling;e!==null;)fs(e,t,n),e=e.sibling}function cm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);ct(t,a,n),t[it]=e,t[gt]=n}catch(c){Ce(e,e.return,c)}}var wn=!1,Pe=!1,Kc=!1,om=typeof WeakSet=="function"?WeakSet:Set,at=null;function fv(e,t){if(e=e.containerInfo,oo=Ds,e=Ed(e),qr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var s=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var d=0,y=-1,S=-1,_=0,L=0,Y=e,z=null;t:for(;;){for(var U;Y!==n||s!==0&&Y.nodeType!==3||(y=d+s),Y!==c||a!==0&&Y.nodeType!==3||(S=d+a),Y.nodeType===3&&(d+=Y.nodeValue.length),(U=Y.firstChild)!==null;)z=Y,Y=U;for(;;){if(Y===e)break t;if(z===n&&++_===s&&(y=d),z===c&&++L===a&&(S=d),(U=Y.nextSibling)!==null)break;Y=z,z=Y.parentNode}Y=U}n=y===-1||S===-1?null:{start:y,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(fo={focusedElem:e,selectionRange:n},Ds=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,s=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var P=Ya(n.type,s);e=a.getSnapshotBeforeUpdate(P,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Ce(n,n.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)yo(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":yo(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}}function fm(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:_n(e,n),a&4&&Bi(5,n);break;case 1:if(_n(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){Ce(n,n.return,d)}else{var s=Ya(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Ce(n,n.return,d)}}a&64&&im(n),a&512&&Qi(n,n.return);break;case 3:if(_n(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Fd(e,t)}catch(d){Ce(n,n.return,d)}}break;case 27:t===null&&a&4&&cm(n);case 26:case 5:_n(e,n),t===null&&a&4&&sm(n),a&512&&Qi(n,n.return);break;case 12:_n(e,n);break;case 31:_n(e,n),a&4&&mm(e,n);break;case 13:_n(e,n),a&4&&ym(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=xv.bind(null,n),Qv(e,n))));break;case 22:if(a=n.memoizedState!==null||wn,!a){t=t!==null&&t.memoizedState!==null||Pe,s=wn;var c=Pe;wn=a,(Pe=t)&&!c?Dn(e,n,(n.subtreeFlags&8772)!==0):_n(e,n),wn=s,Pe=c}break;case 30:break;default:_n(e,n)}}function dm(e){var t=e.alternate;t!==null&&(e.alternate=null,dm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&br(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ge=null,bt=!1;function Cn(e,t,n){for(n=n.child;n!==null;)hm(e,t,n),n=n.sibling}function hm(e,t,n){if(wt&&typeof wt.onCommitFiberUnmount=="function")try{wt.onCommitFiberUnmount(oi,n)}catch{}switch(n.tag){case 26:Pe||fn(n,t),Cn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Pe||fn(n,t);var a=Ge,s=bt;ca(n.type)&&(Ge=n.stateNode,bt=!1),Cn(e,t,n),Fi(n.stateNode),Ge=a,bt=s;break;case 5:Pe||fn(n,t);case 6:if(a=Ge,s=bt,Ge=null,Cn(e,t,n),Ge=a,bt=s,Ge!==null)if(bt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(n.stateNode)}catch(c){Ce(n,t,c)}else try{Ge.removeChild(n.stateNode)}catch(c){Ce(n,t,c)}break;case 18:Ge!==null&&(bt?(e=Ge,iy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),kl(e)):iy(Ge,n.stateNode));break;case 4:a=Ge,s=bt,Ge=n.stateNode.containerInfo,bt=!0,Cn(e,t,n),Ge=a,bt=s;break;case 0:case 11:case 14:case 15:na(2,n,t),Pe||na(4,n,t),Cn(e,t,n);break;case 1:Pe||(fn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&um(n,t,a)),Cn(e,t,n);break;case 21:Cn(e,t,n);break;case 22:Pe=(a=Pe)||n.memoizedState!==null,Cn(e,t,n),Pe=a;break;default:Cn(e,t,n)}}function mm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{kl(e)}catch(n){Ce(t,t.return,n)}}}function ym(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{kl(e)}catch(n){Ce(t,t.return,n)}}function dv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new om),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new om),t;default:throw Error(r(435,e.tag))}}function ds(e,t){var n=dv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var s=Sv.bind(null,e,a);a.then(s,s)}})}function xt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=n[a],c=e,d=t,y=d;e:for(;y!==null;){switch(y.tag){case 27:if(ca(y.type)){Ge=y.stateNode,bt=!1;break e}break;case 5:Ge=y.stateNode,bt=!1;break e;case 3:case 4:Ge=y.stateNode.containerInfo,bt=!0;break e}y=y.return}if(Ge===null)throw Error(r(160));hm(c,d,s),Ge=null,bt=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)pm(t,e),t=t.sibling}var en=null;function pm(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xt(t,e),St(e),a&4&&(na(3,e,e.return),Bi(3,e),na(5,e,e.return));break;case 1:xt(t,e),St(e),a&512&&(Pe||n===null||fn(n,n.return)),a&64&&wn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var s=en;if(xt(t,e),St(e),a&512&&(Pe||n===null||fn(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(a){case"title":c=s.getElementsByTagName("title")[0],(!c||c[hi]||c[it]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(a),s.head.insertBefore(c,s.querySelector("head > title"))),ct(c,a,n),c[it]=e,nt(c),a=c;break e;case"link":var d=py("link","href",s).get(a+(n.href||""));if(d){for(var y=0;y<d.length;y++)if(c=d[y],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(y,1);break t}}c=s.createElement(a),ct(c,a,n),s.head.appendChild(c);break;case"meta":if(d=py("meta","content",s).get(a+(n.content||""))){for(y=0;y<d.length;y++)if(c=d[y],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(y,1);break t}}c=s.createElement(a),ct(c,a,n),s.head.appendChild(c);break;default:throw Error(r(468,a))}c[it]=e,nt(c),a=c}e.stateNode=a}else gy(s,e.type,e.stateNode);else e.stateNode=yy(s,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?gy(s,e.type,e.stateNode):yy(s,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Qc(e,e.memoizedProps,n.memoizedProps)}break;case 27:xt(t,e),St(e),a&512&&(Pe||n===null||fn(n,n.return)),n!==null&&a&4&&Qc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(xt(t,e),St(e),a&512&&(Pe||n===null||fn(n,n.return)),e.flags&32){s=e.stateNode;try{hl(s,"")}catch(P){Ce(e,e.return,P)}}a&4&&e.stateNode!=null&&(s=e.memoizedProps,Qc(e,s,n!==null?n.memoizedProps:s)),a&1024&&(Kc=!0);break;case 6:if(xt(t,e),St(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(P){Ce(e,e.return,P)}}break;case 3:if(As=null,s=en,en=Os(t.containerInfo),xt(t,e),en=s,St(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{kl(t.containerInfo)}catch(P){Ce(e,e.return,P)}Kc&&(Kc=!1,gm(e));break;case 4:a=en,en=Os(e.stateNode.containerInfo),xt(t,e),St(e),en=a;break;case 12:xt(t,e),St(e);break;case 31:xt(t,e),St(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ds(e,a)));break;case 13:xt(t,e),St(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ms=At()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ds(e,a)));break;case 22:s=e.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,_=wn,L=Pe;if(wn=_||s,Pe=L||S,xt(t,e),Pe=L,wn=_,St(e),a&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||S||wn||Pe||Ka(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){S=n=t;try{if(c=S.stateNode,s)d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{y=S.stateNode;var Y=S.memoizedProps.style,z=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;y.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(P){Ce(S,S.return,P)}}}else if(t.tag===6){if(n===null){S=t;try{S.stateNode.nodeValue=s?"":S.memoizedProps}catch(P){Ce(S,S.return,P)}}}else if(t.tag===18){if(n===null){S=t;try{var U=S.stateNode;s?uy(U,!0):uy(S.stateNode,!1)}catch(P){Ce(S,S.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,ds(e,n))));break;case 19:xt(t,e),St(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ds(e,a)));break;case 30:break;case 21:break;default:xt(t,e),St(e)}}function St(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(rm(a)){n=a;break}a=a.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var s=n.stateNode,c=Gc(e);fs(e,c,s);break;case 5:var d=n.stateNode;n.flags&32&&(hl(d,""),n.flags&=-33);var y=Gc(e);fs(e,y,d);break;case 3:case 4:var S=n.stateNode.containerInfo,_=Gc(e);Yc(e,_,S);break;default:throw Error(r(161))}}catch(L){Ce(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;gm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function _n(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fm(e,t.alternate,t),t=t.sibling}function Ka(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:na(4,t,t.return),Ka(t);break;case 1:fn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&um(t,t.return,n),Ka(t);break;case 27:Fi(t.stateNode);case 26:case 5:fn(t,t.return),Ka(t);break;case 22:t.memoizedState===null&&Ka(t);break;case 30:Ka(t);break;default:Ka(t)}e=e.sibling}}function Dn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,s=e,c=t,d=c.flags;switch(c.tag){case 0:case 11:case 15:Dn(s,c,n),Bi(4,c);break;case 1:if(Dn(s,c,n),a=c,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(_){Ce(a,a.return,_)}if(a=c,s=a.updateQueue,s!==null){var y=a.stateNode;try{var S=s.shared.hiddenCallbacks;if(S!==null)for(s.shared.hiddenCallbacks=null,s=0;s<S.length;s++)Jd(S[s],y)}catch(_){Ce(a,a.return,_)}}n&&d&64&&im(c),Qi(c,c.return);break;case 27:cm(c);case 26:case 5:Dn(s,c,n),n&&a===null&&d&4&&sm(c),Qi(c,c.return);break;case 12:Dn(s,c,n);break;case 31:Dn(s,c,n),n&&d&4&&mm(s,c);break;case 13:Dn(s,c,n),n&&d&4&&ym(s,c);break;case 22:c.memoizedState===null&&Dn(s,c,n),Qi(c,c.return);break;case 30:break;default:Dn(s,c,n)}t=t.sibling}}function kc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Oi(n))}function Xc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Oi(e))}function tn(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)vm(e,t,n,a),t=t.sibling}function vm(e,t,n,a){var s=t.flags;switch(t.tag){case 0:case 11:case 15:tn(e,t,n,a),s&2048&&Bi(9,t);break;case 1:tn(e,t,n,a);break;case 3:tn(e,t,n,a),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Oi(e)));break;case 12:if(s&2048){tn(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,d=c.id,y=c.onPostCommit;typeof y=="function"&&y(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Ce(t,t.return,S)}}else tn(e,t,n,a);break;case 31:tn(e,t,n,a);break;case 13:tn(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,d=t.alternate,t.memoizedState!==null?c._visibility&2?tn(e,t,n,a):Gi(e,t):c._visibility&2?tn(e,t,n,a):(c._visibility|=2,zl(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),s&2048&&kc(d,t);break;case 24:tn(e,t,n,a),s&2048&&Xc(t.alternate,t);break;default:tn(e,t,n,a)}}function zl(e,t,n,a,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,d=t,y=n,S=a,_=d.flags;switch(d.tag){case 0:case 11:case 15:zl(c,d,y,S,s),Bi(8,d);break;case 23:break;case 22:var L=d.stateNode;d.memoizedState!==null?L._visibility&2?zl(c,d,y,S,s):Gi(c,d):(L._visibility|=2,zl(c,d,y,S,s)),s&&_&2048&&kc(d.alternate,d);break;case 24:zl(c,d,y,S,s),s&&_&2048&&Xc(d.alternate,d);break;default:zl(c,d,y,S,s)}t=t.sibling}}function Gi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,s=a.flags;switch(a.tag){case 22:Gi(n,a),s&2048&&kc(a.alternate,a);break;case 24:Gi(n,a),s&2048&&Xc(a.alternate,a);break;default:Gi(n,a)}t=t.sibling}}var Yi=8192;function Ml(e,t,n){if(e.subtreeFlags&Yi)for(e=e.child;e!==null;)bm(e,t,n),e=e.sibling}function bm(e,t,n){switch(e.tag){case 26:Ml(e,t,n),e.flags&Yi&&e.memoizedState!==null&&Pv(n,en,e.memoizedState,e.memoizedProps);break;case 5:Ml(e,t,n);break;case 3:case 4:var a=en;en=Os(e.stateNode.containerInfo),Ml(e,t,n),en=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Yi,Yi=16777216,Ml(e,t,n),Yi=a):Ml(e,t,n));break;default:Ml(e,t,n)}}function xm(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 Ki(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];at=a,Em(a,e)}xm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Sm(e),e=e.sibling}function Sm(e){switch(e.tag){case 0:case 11:case 15:Ki(e),e.flags&2048&&na(9,e,e.return);break;case 3:Ki(e);break;case 12:Ki(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,hs(e)):Ki(e);break;default:Ki(e)}}function hs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];at=a,Em(a,e)}xm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:na(8,t,t.return),hs(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,hs(t));break;default:hs(t)}e=e.sibling}}function Em(e,t){for(;at!==null;){var n=at;switch(n.tag){case 0:case 11:case 15:na(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Oi(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,at=a;else e:for(n=e;at!==null;){a=at;var s=a.sibling,c=a.return;if(dm(a),a===n){at=null;break e}if(s!==null){s.return=c,at=s;break e}at=c}}}var hv={getCacheForType:function(e){var t=st(Fe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return st(Fe).controller.signal}},mv=typeof WeakMap=="function"?WeakMap:Map,Te=0,Ue=null,me=null,pe=0,we=0,Ut=null,aa=!1,Ul=!1,Vc=!1,zn=0,ke=0,la=0,ka=0,Zc=0,qt=0,ql=0,ki=null,Et=null,Jc=!1,ms=0,Rm=0,ys=1/0,ps=null,ia=null,et=0,ua=null,Ll=null,Mn=0,Fc=0,$c=null,Tm=null,Xi=0,Wc=null;function Lt(){return(Te&2)!==0&&pe!==0?pe&-pe:q.T!==null?ao():Qf()}function Nm(){if(qt===0)if((pe&536870912)===0||ve){var e=Tu;Tu<<=1,(Tu&3932160)===0&&(Tu=262144),qt=e}else qt=536870912;return e=zt.current,e!==null&&(e.flags|=32),qt}function Rt(e,t,n){(e===Ue&&(we===2||we===9)||e.cancelPendingCommit!==null)&&(Hl(e,0),sa(e,pe,qt,!1)),di(e,n),((Te&2)===0||e!==Ue)&&(e===Ue&&((Te&2)===0&&(ka|=n),ke===4&&sa(e,pe,qt,!1)),dn(e))}function Om(e,t,n){if((Te&6)!==0)throw Error(r(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||fi(e,t),s=a?gv(e,t):Ic(e,t,!0),c=a;do{if(s===0){Ul&&!a&&sa(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!yv(n)){s=Ic(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var y=e;s=ki;var S=y.current.memoizedState.isDehydrated;if(S&&(Hl(y,d).flags|=256),d=Ic(y,d,!1),d!==2){if(Vc&&!S){y.errorRecoveryDisabledLanes|=c,ka|=c,s=4;break e}c=Et,Et=s,c!==null&&(Et===null?Et=c:Et.push.apply(Et,c))}s=d}if(c=!1,s!==2)continue}}if(s===1){Hl(e,0),sa(e,t,0,!0);break}e:{switch(a=e,c=s,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:sa(a,t,qt,!aa);break e;case 2:Et=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(s=ms+300-At(),10<s)){if(sa(a,t,qt,!aa),Ou(a,0,!0)!==0)break e;Mn=t,a.timeoutHandle=ay(jm.bind(null,a,n,Et,ps,Jc,t,qt,ka,ql,aa,c,"Throttled",-0,0),s);break e}jm(a,n,Et,ps,Jc,t,qt,ka,ql,aa,c,null,-0,0)}}break}while(!0);dn(e)}function jm(e,t,n,a,s,c,d,y,S,_,L,Y,z,U){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:bn},bm(t,c,Y);var P=(c&62914560)===c?ms-At():(c&4194048)===c?Rm-At():0;if(P=Iv(Y,P),P!==null){Mn=c,e.cancelPendingCommit=P(Um.bind(null,e,t,c,n,a,s,d,y,S,L,Y,null,z,U)),sa(e,c,d,!_);return}}Um(e,t,c,n,a,s,d,y,S)}function yv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var s=n[a],c=s.getSnapshot;s=s.value;try{if(!_t(c(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function sa(e,t,n,a){t&=~Zc,t&=~ka,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var s=t;0<s;){var c=31-Ct(s),d=1<<c;a[c]=-1,s&=~d}n!==0&&Lf(e,n,t)}function gs(){return(Te&6)===0?(Vi(0),!1):!0}function Pc(){if(me!==null){if(we===0)var e=me.return;else e=me,Rn=Ua=null,mc(e),Al=null,Ai=0,e=me;for(;e!==null;)lm(e.alternate,e),e=e.return;me=null}}function Hl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Uv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Mn=0,Pc(),Ue=e,me=n=Sn(e.current,null),pe=t,we=0,Ut=null,aa=!1,Ul=fi(e,t),Vc=!1,ql=qt=Zc=ka=la=ke=0,Et=ki=null,Jc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var s=31-Ct(a),c=1<<s;t|=e[s],a&=~c}return zn=t,Hu(),n}function Am(e,t){ce=null,q.H=qi,t===jl||t===Vu?(t=kd(),we=3):t===nc?(t=kd(),we=4):we=t===Cc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ut=t,me===null&&(ke=1,us(e,Yt(t,e.current)))}function wm(){var e=zt.current;return e===null?!0:(pe&4194048)===pe?Vt===null:(pe&62914560)===pe||(pe&536870912)!==0?e===Vt:!1}function Cm(){var e=q.H;return q.H=qi,e===null?qi:e}function _m(){var e=q.A;return q.A=hv,e}function vs(){ke=4,aa||(pe&4194048)!==pe&&zt.current!==null||(Ul=!0),(la&134217727)===0&&(ka&134217727)===0||Ue===null||sa(Ue,pe,qt,!1)}function Ic(e,t,n){var a=Te;Te|=2;var s=Cm(),c=_m();(Ue!==e||pe!==t)&&(ps=null,Hl(e,t)),t=!1;var d=ke;e:do try{if(we!==0&&me!==null){var y=me,S=Ut;switch(we){case 8:Pc(),d=6;break e;case 3:case 2:case 9:case 6:zt.current===null&&(t=!0);var _=we;if(we=0,Ut=null,Bl(e,y,S,_),n&&Ul){d=0;break e}break;default:_=we,we=0,Ut=null,Bl(e,y,S,_)}}pv(),d=ke;break}catch(L){Am(e,L)}while(!0);return t&&e.shellSuspendCounter++,Rn=Ua=null,Te=a,q.H=s,q.A=c,me===null&&(Ue=null,pe=0,Hu()),d}function pv(){for(;me!==null;)Dm(me)}function gv(e,t){var n=Te;Te|=2;var a=Cm(),s=_m();Ue!==e||pe!==t?(ps=null,ys=At()+500,Hl(e,t)):Ul=fi(e,t);e:do try{if(we!==0&&me!==null){t=me;var c=Ut;t:switch(we){case 1:we=0,Ut=null,Bl(e,t,c,1);break;case 2:case 9:if(Yd(c)){we=0,Ut=null,zm(t);break}t=function(){we!==2&&we!==9||Ue!==e||(we=7),dn(e)},c.then(t,t);break e;case 3:we=7;break e;case 4:we=5;break e;case 7:Yd(c)?(we=0,Ut=null,zm(t)):(we=0,Ut=null,Bl(e,t,c,7));break;case 5:var d=null;switch(me.tag){case 26:d=me.memoizedState;case 5:case 27:var y=me;if(d?vy(d):y.stateNode.complete){we=0,Ut=null;var S=y.sibling;if(S!==null)me=S;else{var _=y.return;_!==null?(me=_,bs(_)):me=null}break t}}we=0,Ut=null,Bl(e,t,c,5);break;case 6:we=0,Ut=null,Bl(e,t,c,6);break;case 8:Pc(),ke=6;break e;default:throw Error(r(462))}}vv();break}catch(L){Am(e,L)}while(!0);return Rn=Ua=null,q.H=a,q.A=s,Te=n,me!==null?0:(Ue=null,pe=0,Hu(),ke)}function vv(){for(;me!==null&&!G0();)Dm(me)}function Dm(e){var t=nm(e.alternate,e,zn);e.memoizedProps=e.pendingProps,t===null?bs(e):me=t}function zm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=$h(n,t,t.pendingProps,t.type,void 0,pe);break;case 11:t=$h(n,t,t.pendingProps,t.type.render,t.ref,pe);break;case 5:mc(t);default:lm(n,t),t=me=_d(t,zn),t=nm(n,t,zn)}e.memoizedProps=e.pendingProps,t===null?bs(e):me=t}function Bl(e,t,n,a){Rn=Ua=null,mc(t),Al=null,Ai=0;var s=t.return;try{if(uv(e,s,t,n,pe)){ke=1,us(e,Yt(n,e.current)),me=null;return}}catch(c){if(s!==null)throw me=s,c;ke=1,us(e,Yt(n,e.current)),me=null;return}t.flags&32768?(ve||a===1?e=!0:Ul||(pe&536870912)!==0?e=!1:(aa=e=!0,(a===2||a===9||a===3||a===6)&&(a=zt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Mm(t,e)):bs(t)}function bs(e){var t=e;do{if((t.flags&32768)!==0){Mm(t,aa);return}e=t.return;var n=cv(t.alternate,t,zn);if(n!==null){me=n;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);ke===0&&(ke=5)}function Mm(e,t){do{var n=ov(e.alternate,e);if(n!==null){n.flags&=32767,me=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){me=e;return}me=e=n}while(e!==null);ke=6,me=null}function Um(e,t,n,a,s,c,d,y,S){e.cancelPendingCommit=null;do xs();while(et!==0);if((Te&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=Gr,W0(e,n,c,d,y,S),e===Ue&&(me=Ue=null,pe=0),Ll=t,ua=e,Mn=n,Fc=c,$c=s,Tm=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ev(Eu,function(){return Qm(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=q.T,q.T=null,s=V.p,V.p=2,d=Te,Te|=4;try{fv(e,t,n)}finally{Te=d,V.p=s,q.T=a}}et=1,qm(),Lm(),Hm()}}function qm(){if(et===1){et=0;var e=ua,t=Ll,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=q.T,q.T=null;var a=V.p;V.p=2;var s=Te;Te|=4;try{pm(t,e);var c=fo,d=Ed(e.containerInfo),y=c.focusedElem,S=c.selectionRange;if(d!==y&&y&&y.ownerDocument&&Sd(y.ownerDocument.documentElement,y)){if(S!==null&&qr(y)){var _=S.start,L=S.end;if(L===void 0&&(L=_),"selectionStart"in y)y.selectionStart=_,y.selectionEnd=Math.min(L,y.value.length);else{var Y=y.ownerDocument||document,z=Y&&Y.defaultView||window;if(z.getSelection){var U=z.getSelection(),P=y.textContent.length,ie=Math.min(S.start,P),Me=S.end===void 0?ie:Math.min(S.end,P);!U.extend&&ie>Me&&(d=Me,Me=ie,ie=d);var O=xd(y,ie),T=xd(y,Me);if(O&&T&&(U.rangeCount!==1||U.anchorNode!==O.node||U.anchorOffset!==O.offset||U.focusNode!==T.node||U.focusOffset!==T.offset)){var w=Y.createRange();w.setStart(O.node,O.offset),U.removeAllRanges(),ie>Me?(U.addRange(w),U.extend(T.node,T.offset)):(w.setEnd(T.node,T.offset),U.addRange(w))}}}}for(Y=[],U=y;U=U.parentNode;)U.nodeType===1&&Y.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<Y.length;y++){var B=Y[y];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Ds=!!oo,fo=oo=null}finally{Te=s,V.p=a,q.T=n}}e.current=t,et=2}}function Lm(){if(et===2){et=0;var e=ua,t=Ll,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=q.T,q.T=null;var a=V.p;V.p=2;var s=Te;Te|=4;try{fm(e,t.alternate,t)}finally{Te=s,V.p=a,q.T=n}}et=3}}function Hm(){if(et===4||et===3){et=0,Y0();var e=ua,t=Ll,n=Mn,a=Tm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,Ll=ua=null,Bm(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(ia=null),gr(n),t=t.stateNode,wt&&typeof wt.onCommitFiberRoot=="function")try{wt.onCommitFiberRoot(oi,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=q.T,s=V.p,V.p=2,q.T=null;try{for(var c=e.onRecoverableError,d=0;d<a.length;d++){var y=a[d];c(y.value,{componentStack:y.stack})}}finally{q.T=t,V.p=s}}(Mn&3)!==0&&xs(),dn(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===Wc?Xi++:(Xi=0,Wc=e):Xi=0,Vi(0)}}function Bm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Oi(t)))}function xs(){return qm(),Lm(),Hm(),Qm()}function Qm(){if(et!==5)return!1;var e=ua,t=Fc;Fc=0;var n=gr(Mn),a=q.T,s=V.p;try{V.p=32>n?32:n,q.T=null,n=$c,$c=null;var c=ua,d=Mn;if(et=0,Ll=ua=null,Mn=0,(Te&6)!==0)throw Error(r(331));var y=Te;if(Te|=4,Sm(c.current),vm(c,c.current,d,n),Te=y,Vi(0,!1),wt&&typeof wt.onPostCommitFiberRoot=="function")try{wt.onPostCommitFiberRoot(oi,c)}catch{}return!0}finally{V.p=s,q.T=a,Bm(e,t)}}function Gm(e,t,n){t=Yt(n,t),t=wc(e.stateNode,t,2),e=In(e,t,2),e!==null&&(di(e,2),dn(e))}function Ce(e,t,n){if(e.tag===3)Gm(e,e,n);else for(;t!==null;){if(t.tag===3){Gm(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ia===null||!ia.has(a))){e=Yt(n,e),n=Yh(2),a=In(t,n,2),a!==null&&(Kh(n,a,t,e),di(a,2),dn(a));break}}t=t.return}}function eo(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new mv;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(n)||(Vc=!0,s.add(n),e=bv.bind(null,e,t,n),t.then(e,e))}function bv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ue===e&&(pe&n)===n&&(ke===4||ke===3&&(pe&62914560)===pe&&300>At()-ms?(Te&2)===0&&Hl(e,0):Zc|=n,ql===pe&&(ql=0)),dn(e)}function Ym(e,t){t===0&&(t=qf()),e=Da(e,t),e!==null&&(di(e,t),dn(e))}function xv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ym(e,n)}function Sv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),Ym(e,n)}function Ev(e,t){return hr(e,t)}var Ss=null,Ql=null,to=!1,Es=!1,no=!1,ra=0;function dn(e){e!==Ql&&e.next===null&&(Ql===null?Ss=Ql=e:Ql=Ql.next=e),Es=!0,to||(to=!0,Tv())}function Vi(e,t){if(!no&&Es){no=!0;do for(var n=!1,a=Ss;a!==null;){if(e!==0){var s=a.pendingLanes;if(s===0)var c=0;else{var d=a.suspendedLanes,y=a.pingedLanes;c=(1<<31-Ct(42|e)+1)-1,c&=s&~(d&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Vm(a,c))}else c=pe,c=Ou(a,a===Ue?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||fi(a,c)||(n=!0,Vm(a,c));a=a.next}while(n);no=!1}}function Rv(){Km()}function Km(){Es=to=!1;var e=0;ra!==0&&Mv()&&(e=ra);for(var t=At(),n=null,a=Ss;a!==null;){var s=a.next,c=km(a,t);c===0?(a.next=null,n===null?Ss=s:n.next=s,s===null&&(Ql=n)):(n=a,(e!==0||(c&3)!==0)&&(Es=!0)),a=s}et!==0&&et!==5||Vi(e),ra!==0&&(ra=0)}function km(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var d=31-Ct(c),y=1<<d,S=s[d];S===-1?((y&n)===0||(y&a)!==0)&&(s[d]=$0(y,t)):S<=t&&(e.expiredLanes|=y),c&=~y}if(t=Ue,n=pe,n=Ou(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(we===2||we===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&mr(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||fi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&mr(a),gr(n)){case 2:case 8:n=Mf;break;case 32:n=Eu;break;case 268435456:n=Uf;break;default:n=Eu}return a=Xm.bind(null,e),n=hr(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&mr(a),e.callbackPriority=2,e.callbackNode=null,2}function Xm(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(xs()&&e.callbackNode!==n)return null;var a=pe;return a=Ou(e,e===Ue?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Om(e,a,t),km(e,At()),e.callbackNode!=null&&e.callbackNode===n?Xm.bind(null,e):null)}function Vm(e,t){if(xs())return null;Om(e,t,!0)}function Tv(){qv(function(){(Te&6)!==0?hr(zf,Rv):Km()})}function ao(){if(ra===0){var e=Nl;e===0&&(e=Ru,Ru<<=1,(Ru&261888)===0&&(Ru=256)),ra=e}return ra}function Zm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Cu(""+e)}function Jm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Nv(e,t,n,a,s){if(t==="submit"&&n&&n.stateNode===s){var c=Zm((s[gt]||null).action),d=a.submitter;d&&(t=(t=d[gt]||null)?Zm(t.formAction):d.getAttribute("formAction"),t!==null&&(c=t,d=null));var y=new Mu("action","action",null,a,s);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ra!==0){var S=d?Jm(s,d):new FormData(s);Rc(n,{pending:!0,data:S,method:s.method,action:c},null,S)}}else typeof c=="function"&&(y.preventDefault(),S=d?Jm(s,d):new FormData(s),Rc(n,{pending:!0,data:S,method:s.method,action:c},c,S))},currentTarget:s}]})}}for(var lo=0;lo<Qr.length;lo++){var io=Qr[lo],Ov=io.toLowerCase(),jv=io[0].toUpperCase()+io.slice(1);It(Ov,"on"+jv)}It(Nd,"onAnimationEnd"),It(Od,"onAnimationIteration"),It(jd,"onAnimationStart"),It("dblclick","onDoubleClick"),It("focusin","onFocus"),It("focusout","onBlur"),It(Kg,"onTransitionRun"),It(kg,"onTransitionStart"),It(Xg,"onTransitionCancel"),It(Ad,"onTransitionEnd"),fl("onMouseEnter",["mouseout","mouseover"]),fl("onMouseLeave",["mouseout","mouseover"]),fl("onPointerEnter",["pointerout","pointerover"]),fl("onPointerLeave",["pointerout","pointerover"]),Aa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Aa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Aa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Aa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zi="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(" "),Av=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zi));function Fm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],s=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var d=a.length-1;0<=d;d--){var y=a[d],S=y.instance,_=y.currentTarget;if(y=y.listener,S!==c&&s.isPropagationStopped())break e;c=y,s.currentTarget=_;try{c(s)}catch(L){Lu(L)}s.currentTarget=null,c=S}else for(d=0;d<a.length;d++){if(y=a[d],S=y.instance,_=y.currentTarget,y=y.listener,S!==c&&s.isPropagationStopped())break e;c=y,s.currentTarget=_;try{c(s)}catch(L){Lu(L)}s.currentTarget=null,c=S}}}}function ye(e,t){var n=t[vr];n===void 0&&(n=t[vr]=new Set);var a=e+"__bubble";n.has(a)||($m(t,e,2,!1),n.add(a))}function uo(e,t,n){var a=0;t&&(a|=4),$m(n,e,a,t)}var Rs="_reactListening"+Math.random().toString(36).slice(2);function so(e){if(!e[Rs]){e[Rs]=!0,Kf.forEach(function(n){n!=="selectionchange"&&(Av.has(n)||uo(n,!1,e),uo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Rs]||(t[Rs]=!0,uo("selectionchange",!1,t))}}function $m(e,t,n,a){switch(Ny(t)){case 2:var s=nb;break;case 8:s=ab;break;default:s=Ro}n=s.bind(null,t,n,e),s=void 0,!jr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function ro(e,t,n,a,s){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var y=a.stateNode.containerInfo;if(y===s)break;if(d===4)for(d=a.return;d!==null;){var S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===s)return;d=d.return}for(;y!==null;){if(d=rl(y),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){a=c=d;continue e}y=y.parentNode}}a=a.return}td(function(){var _=c,L=Nr(n),Y=[];e:{var z=wd.get(e);if(z!==void 0){var U=Mu,P=e;switch(e){case"keypress":if(Du(n)===0)break e;case"keydown":case"keyup":U=Sg;break;case"focusin":P="focus",U=_r;break;case"focusout":P="blur",U=_r;break;case"beforeblur":case"afterblur":U=_r;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=ld;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=cg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Tg;break;case Nd:case Od:case jd:U=dg;break;case Ad:U=Og;break;case"scroll":case"scrollend":U=sg;break;case"wheel":U=Ag;break;case"copy":case"cut":case"paste":U=mg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=ud;break;case"toggle":case"beforetoggle":U=Cg}var ie=(t&4)!==0,Me=!ie&&(e==="scroll"||e==="scrollend"),O=ie?z!==null?z+"Capture":null:z;ie=[];for(var T=_,w;T!==null;){var B=T;if(w=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||w===null||O===null||(B=yi(T,O),B!=null&&ie.push(Ji(T,B,w))),Me)break;T=T.return}0<ie.length&&(z=new U(z,P,null,n,L),Y.push({event:z,listeners:ie}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",z&&n!==Tr&&(P=n.relatedTarget||n.fromElement)&&(rl(P)||P[sl]))break e;if((U||z)&&(z=L.window===L?L:(z=L.ownerDocument)?z.defaultView||z.parentWindow:window,U?(P=n.relatedTarget||n.toElement,U=_,P=P?rl(P):null,P!==null&&(Me=f(P),ie=P.tag,P!==Me||ie!==5&&ie!==27&&ie!==6)&&(P=null)):(U=null,P=_),U!==P)){if(ie=ld,B="onMouseLeave",O="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ie=ud,B="onPointerLeave",O="onPointerEnter",T="pointer"),Me=U==null?z:mi(U),w=P==null?z:mi(P),z=new ie(B,T+"leave",U,n,L),z.target=Me,z.relatedTarget=w,B=null,rl(L)===_&&(ie=new ie(O,T+"enter",P,n,L),ie.target=w,ie.relatedTarget=Me,B=ie),Me=B,U&&P)t:{for(ie=wv,O=U,T=P,w=0,B=O;B;B=ie(B))w++;B=0;for(var ae=T;ae;ae=ie(ae))B++;for(;0<w-B;)O=ie(O),w--;for(;0<B-w;)T=ie(T),B--;for(;w--;){if(O===T||T!==null&&O===T.alternate){ie=O;break t}O=ie(O),T=ie(T)}ie=null}else ie=null;U!==null&&Wm(Y,z,U,ie,!1),P!==null&&Me!==null&&Wm(Y,Me,P,ie,!0)}}e:{if(z=_?mi(_):window,U=z.nodeName&&z.nodeName.toLowerCase(),U==="select"||U==="input"&&z.type==="file")var Se=md;else if(dd(z))if(yd)Se=Qg;else{Se=Hg;var I=Lg}else U=z.nodeName,!U||U.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?_&&Rr(_.elementType)&&(Se=md):Se=Bg;if(Se&&(Se=Se(e,_))){hd(Y,Se,n,L);break e}I&&I(e,z,_),e==="focusout"&&_&&z.type==="number"&&_.memoizedProps.value!=null&&Er(z,"number",z.value)}switch(I=_?mi(_):window,e){case"focusin":(dd(I)||I.contentEditable==="true")&&(gl=I,Lr=_,Ri=null);break;case"focusout":Ri=Lr=gl=null;break;case"mousedown":Hr=!0;break;case"contextmenu":case"mouseup":case"dragend":Hr=!1,Rd(Y,n,L);break;case"selectionchange":if(Yg)break;case"keydown":case"keyup":Rd(Y,n,L)}var oe;if(zr)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else pl?od(e,n)&&(ge="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ge="onCompositionStart");ge&&(sd&&n.locale!=="ko"&&(pl||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&pl&&(oe=nd()):(Vn=L,Ar="value"in Vn?Vn.value:Vn.textContent,pl=!0)),I=Ts(_,ge),0<I.length&&(ge=new id(ge,e,null,n,L),Y.push({event:ge,listeners:I}),oe?ge.data=oe:(oe=fd(n),oe!==null&&(ge.data=oe)))),(oe=Dg?zg(e,n):Mg(e,n))&&(ge=Ts(_,"onBeforeInput"),0<ge.length&&(I=new id("onBeforeInput","beforeinput",null,n,L),Y.push({event:I,listeners:ge}),I.data=oe)),Nv(Y,e,_,n,L)}Fm(Y,t)})}function Ji(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ts(e,t){for(var n=t+"Capture",a=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=yi(e,n),s!=null&&a.unshift(Ji(e,s,c)),s=yi(e,t),s!=null&&a.push(Ji(e,s,c))),e.tag===3)return a;e=e.return}return[]}function wv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Wm(e,t,n,a,s){for(var c=t._reactName,d=[];n!==null&&n!==a;){var y=n,S=y.alternate,_=y.stateNode;if(y=y.tag,S!==null&&S===a)break;y!==5&&y!==26&&y!==27||_===null||(S=_,s?(_=yi(n,c),_!=null&&d.unshift(Ji(n,_,S))):s||(_=yi(n,c),_!=null&&d.push(Ji(n,_,S)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var Cv=/\r\n?/g,_v=/\u0000|\uFFFD/g;function Pm(e){return(typeof e=="string"?e:""+e).replace(Cv,`
|
|
`).replace(_v,"")}function Im(e,t){return t=Pm(t),Pm(e)===t}function ze(e,t,n,a,s,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||hl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&hl(e,""+a);break;case"className":Au(e,"class",a);break;case"tabIndex":Au(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Au(e,n,a);break;case"style":If(e,a,c);break;case"data":if(t!=="object"){Au(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Cu(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&ze(e,t,"name",s.name,s,null),ze(e,t,"formEncType",s.formEncType,s,null),ze(e,t,"formMethod",s.formMethod,s,null),ze(e,t,"formTarget",s.formTarget,s,null)):(ze(e,t,"encType",s.encType,s,null),ze(e,t,"method",s.method,s,null),ze(e,t,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Cu(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=bn);break;case"onScroll":a!=null&&ye("scroll",e);break;case"onScrollEnd":a!=null&&ye("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}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}n=Cu(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":ye("beforetoggle",e),ye("toggle",e),ju(e,"popover",a);break;case"xlinkActuate":vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":vn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":vn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":vn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":vn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ju(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=ig.get(n)||n,ju(e,n,a))}}function co(e,t,n,a,s,c){switch(n){case"style":If(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof a=="string"?hl(e,a):(typeof a=="number"||typeof a=="bigint")&&hl(e,""+a);break;case"onScroll":a!=null&&ye("scroll",e);break;case"onScrollEnd":a!=null&&ye("scrollend",e);break;case"onClick":a!=null&&(e.onclick=bn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!kf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),c=e[gt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,s);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):ju(e,n,a)}}}function ct(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ye("error",e),ye("load",e);var a=!1,s=!1,c;for(c in n)if(n.hasOwnProperty(c)){var d=n[c];if(d!=null)switch(c){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,c,d,n,null)}}s&&ze(e,t,"srcSet",n.srcSet,n,null),a&&ze(e,t,"src",n.src,n,null);return;case"input":ye("invalid",e);var y=c=d=s=null,S=null,_=null;for(a in n)if(n.hasOwnProperty(a)){var L=n[a];if(L!=null)switch(a){case"name":s=L;break;case"type":d=L;break;case"checked":S=L;break;case"defaultChecked":_=L;break;case"value":c=L;break;case"defaultValue":y=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,t));break;default:ze(e,t,a,L,n,null)}}Ff(e,c,y,S,_,d,s,!1);return;case"select":ye("invalid",e),a=d=c=null;for(s in n)if(n.hasOwnProperty(s)&&(y=n[s],y!=null))switch(s){case"value":c=y;break;case"defaultValue":d=y;break;case"multiple":a=y;default:ze(e,t,s,y,n,null)}t=c,n=d,e.multiple=!!a,t!=null?dl(e,!!a,t,!1):n!=null&&dl(e,!!a,n,!0);return;case"textarea":ye("invalid",e),c=s=a=null;for(d in n)if(n.hasOwnProperty(d)&&(y=n[d],y!=null))switch(d){case"value":a=y;break;case"defaultValue":s=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:ze(e,t,d,y,n,null)}Wf(e,a,s,c);return;case"option":for(S in n)if(n.hasOwnProperty(S)&&(a=n[S],a!=null))switch(S){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ze(e,t,S,a,n,null)}return;case"dialog":ye("beforetoggle",e),ye("toggle",e),ye("cancel",e),ye("close",e);break;case"iframe":case"object":ye("load",e);break;case"video":case"audio":for(a=0;a<Zi.length;a++)ye(Zi[a],e);break;case"image":ye("error",e),ye("load",e);break;case"details":ye("toggle",e);break;case"embed":case"source":case"link":ye("error",e),ye("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_ in n)if(n.hasOwnProperty(_)&&(a=n[_],a!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,_,a,n,null)}return;default:if(Rr(t)){for(L in n)n.hasOwnProperty(L)&&(a=n[L],a!==void 0&&co(e,t,L,a,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(a=n[y],a!=null&&ze(e,t,y,a,n,null))}function Dv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,d=null,y=null,S=null,_=null,L=null;for(U in n){var Y=n[U];if(n.hasOwnProperty(U)&&Y!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":S=Y;default:a.hasOwnProperty(U)||ze(e,t,U,null,a,Y)}}for(var z in a){var U=a[z];if(Y=n[z],a.hasOwnProperty(z)&&(U!=null||Y!=null))switch(z){case"type":c=U;break;case"name":s=U;break;case"checked":_=U;break;case"defaultChecked":L=U;break;case"value":d=U;break;case"defaultValue":y=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:U!==Y&&ze(e,t,z,U,a,Y)}}Sr(e,d,y,S,_,L,c,s);return;case"select":U=d=y=z=null;for(c in n)if(S=n[c],n.hasOwnProperty(c)&&S!=null)switch(c){case"value":break;case"multiple":U=S;default:a.hasOwnProperty(c)||ze(e,t,c,null,a,S)}for(s in a)if(c=a[s],S=n[s],a.hasOwnProperty(s)&&(c!=null||S!=null))switch(s){case"value":z=c;break;case"defaultValue":y=c;break;case"multiple":d=c;default:c!==S&&ze(e,t,s,c,a,S)}t=y,n=d,a=U,z!=null?dl(e,!!n,z,!1):!!a!=!!n&&(t!=null?dl(e,!!n,t,!0):dl(e,!!n,n?[]:"",!1));return;case"textarea":U=z=null;for(y in n)if(s=n[y],n.hasOwnProperty(y)&&s!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:ze(e,t,y,null,a,s)}for(d in a)if(s=a[d],c=n[d],a.hasOwnProperty(d)&&(s!=null||c!=null))switch(d){case"value":z=s;break;case"defaultValue":U=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(r(91));break;default:s!==c&&ze(e,t,d,s,a,c)}$f(e,z,U);return;case"option":for(var P in n)if(z=n[P],n.hasOwnProperty(P)&&z!=null&&!a.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:ze(e,t,P,null,a,z)}for(S in a)if(z=a[S],U=n[S],a.hasOwnProperty(S)&&z!==U&&(z!=null||U!=null))switch(S){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:ze(e,t,S,z,a,U)}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 ie in n)z=n[ie],n.hasOwnProperty(ie)&&z!=null&&!a.hasOwnProperty(ie)&&ze(e,t,ie,null,a,z);for(_ in a)if(z=a[_],U=n[_],a.hasOwnProperty(_)&&z!==U&&(z!=null||U!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:ze(e,t,_,z,a,U)}return;default:if(Rr(t)){for(var Me in n)z=n[Me],n.hasOwnProperty(Me)&&z!==void 0&&!a.hasOwnProperty(Me)&&co(e,t,Me,void 0,a,z);for(L in a)z=a[L],U=n[L],!a.hasOwnProperty(L)||z===U||z===void 0&&U===void 0||co(e,t,L,z,a,U);return}}for(var O in n)z=n[O],n.hasOwnProperty(O)&&z!=null&&!a.hasOwnProperty(O)&&ze(e,t,O,null,a,z);for(Y in a)z=a[Y],U=n[Y],!a.hasOwnProperty(Y)||z===U||z==null&&U==null||ze(e,t,Y,z,a,U)}function ey(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function zv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var s=n[a],c=s.transferSize,d=s.initiatorType,y=s.duration;if(c&&y&&ey(d)){for(d=0,y=s.responseEnd,a+=1;a<n.length;a++){var S=n[a],_=S.startTime;if(_>y)break;var L=S.transferSize,Y=S.initiatorType;L&&ey(Y)&&(S=S.responseEnd,d+=L*(S<y?1:(y-_)/(S-_)))}if(--a,t+=8*(c+d)/(s.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 oo=null,fo=null;function Ns(e){return e.nodeType===9?e:e.ownerDocument}function ty(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 ny(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 ho(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 mo=null;function Mv(){var e=window.event;return e&&e.type==="popstate"?e===mo?!1:(mo=e,!0):(mo=null,!1)}var ay=typeof setTimeout=="function"?setTimeout:void 0,Uv=typeof clearTimeout=="function"?clearTimeout:void 0,ly=typeof Promise=="function"?Promise:void 0,qv=typeof queueMicrotask=="function"?queueMicrotask:typeof ly<"u"?function(e){return ly.resolve(null).then(e).catch(Lv)}:ay;function Lv(e){setTimeout(function(){throw e})}function ca(e){return e==="head"}function iy(e,t){var n=t,a=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(s),kl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Fi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Fi(n);for(var c=n.firstChild;c;){var d=c.nextSibling,y=c.nodeName;c[hi]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=d}}else n==="body"&&Fi(e.ownerDocument.body);n=s}while(n);kl(t)}function uy(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function yo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":yo(n),br(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Hv(e,t,n,a){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[hi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Zt(e.nextSibling),e===null)break}return null}function Bv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Zt(e.nextSibling),e===null))return null;return e}function sy(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Zt(e.nextSibling),e===null))return null;return e}function po(e){return e.data==="$?"||e.data==="$~"}function go(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Qv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Zt(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 vo=null;function ry(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Zt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function cy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function oy(e,t,n){switch(t=Ns(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Fi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);br(e)}var Jt=new Map,fy=new Set;function Os(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Un=V.d;V.d={f:Gv,r:Yv,D:Kv,C:kv,L:Xv,m:Vv,X:Jv,S:Zv,M:Fv};function Gv(){var e=Un.f(),t=gs();return e||t}function Yv(e){var t=cl(e);t!==null&&t.tag===5&&t.type==="form"?Ah(t):Un.r(e)}var Gl=typeof document>"u"?null:document;function dy(e,t,n){var a=Gl;if(a&&typeof t=="string"&&t){var s=Qt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),fy.has(s)||(fy.add(s),e={rel:e,crossOrigin:n,href:t},a.querySelector(s)===null&&(t=a.createElement("link"),ct(t,"link",e),nt(t),a.head.appendChild(t)))}}function Kv(e){Un.D(e),dy("dns-prefetch",e,null)}function kv(e,t){Un.C(e,t),dy("preconnect",e,t)}function Xv(e,t,n){Un.L(e,t,n);var a=Gl;if(a&&e&&t){var s='link[rel="preload"][as="'+Qt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Qt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Qt(n.imageSizes)+'"]')):s+='[href="'+Qt(e)+'"]';var c=s;switch(t){case"style":c=Yl(e);break;case"script":c=Kl(e)}Jt.has(c)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Jt.set(c,e),a.querySelector(s)!==null||t==="style"&&a.querySelector($i(c))||t==="script"&&a.querySelector(Wi(c))||(t=a.createElement("link"),ct(t,"link",e),nt(t),a.head.appendChild(t)))}}function Vv(e,t){Un.m(e,t);var n=Gl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Qt(a)+'"][href="'+Qt(e)+'"]',c=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Kl(e)}if(!Jt.has(c)&&(e=b({rel:"modulepreload",href:e},t),Jt.set(c,e),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Wi(c)))return}a=n.createElement("link"),ct(a,"link",e),nt(a),n.head.appendChild(a)}}}function Zv(e,t,n){Un.S(e,t,n);var a=Gl;if(a&&e){var s=ol(a).hoistableStyles,c=Yl(e);t=t||"default";var d=s.get(c);if(!d){var y={loading:0,preload:null};if(d=a.querySelector($i(c)))y.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Jt.get(c))&&bo(e,n);var S=d=a.createElement("link");nt(S),ct(S,"link",e),S._p=new Promise(function(_,L){S.onload=_,S.onerror=L}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,js(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:y},s.set(c,d)}}}function Jv(e,t){Un.X(e,t);var n=Gl;if(n&&e){var a=ol(n).hoistableScripts,s=Kl(e),c=a.get(s);c||(c=n.querySelector(Wi(s)),c||(e=b({src:e,async:!0},t),(t=Jt.get(s))&&xo(e,t),c=n.createElement("script"),nt(c),ct(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(s,c))}}function Fv(e,t){Un.M(e,t);var n=Gl;if(n&&e){var a=ol(n).hoistableScripts,s=Kl(e),c=a.get(s);c||(c=n.querySelector(Wi(s)),c||(e=b({src:e,async:!0,type:"module"},t),(t=Jt.get(s))&&xo(e,t),c=n.createElement("script"),nt(c),ct(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(s,c))}}function hy(e,t,n,a){var s=(s=he.current)?Os(s):null;if(!s)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Yl(n.href),n=ol(s).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Yl(n.href);var c=ol(s).hoistableStyles,d=c.get(e);if(d||(s=s.ownerDocument||s,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=s.querySelector($i(e)))&&!c._p&&(d.instance=c,d.state.loading=5),Jt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Jt.set(e,n),c||$v(s,e,n,d.state))),t&&a===null)throw Error(r(528,""));return d}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Kl(n),n=ol(s).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Yl(e){return'href="'+Qt(e)+'"'}function $i(e){return'link[rel="stylesheet"]['+e+"]"}function my(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function $v(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ct(t,"link",n),nt(t),e.head.appendChild(t))}function Kl(e){return'[src="'+Qt(e)+'"]'}function Wi(e){return"script[async]"+e}function yy(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Qt(n.href)+'"]');if(a)return t.instance=a,nt(a),a;var s=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),nt(a),ct(a,"style",s),js(a,n.precedence,e),t.instance=a;case"stylesheet":s=Yl(n.href);var c=e.querySelector($i(s));if(c)return t.state.loading|=4,t.instance=c,nt(c),c;a=my(n),(s=Jt.get(s))&&bo(a,s),c=(e.ownerDocument||e).createElement("link"),nt(c);var d=c;return d._p=new Promise(function(y,S){d.onload=y,d.onerror=S}),ct(c,"link",a),t.state.loading|=4,js(c,n.precedence,e),t.instance=c;case"script":return c=Kl(n.src),(s=e.querySelector(Wi(c)))?(t.instance=s,nt(s),s):(a=n,(s=Jt.get(c))&&(a=b({},n),xo(a,s)),e=e.ownerDocument||e,s=e.createElement("script"),nt(s),ct(s,"link",a),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,js(a,n.precedence,e));return t.instance}function js(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,c=s,d=0;d<a.length;d++){var y=a[d];if(y.dataset.precedence===t)c=y;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function bo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function xo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var As=null;function py(e,t,n){if(As===null){var a=new Map,s=As=new Map;s.set(n,a)}else s=As,a=s.get(n),a||(a=new Map,s.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var c=n[s];if(!(c[hi]||c[it]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var d=c.getAttribute(t)||"";d=e+d;var y=a.get(d);y?y.push(c):a.set(d,[c])}}return a}function gy(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Wv(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function vy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Pv(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=Yl(a.href),c=t.querySelector($i(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ws.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,nt(c);return}c=t.ownerDocument||t,a=my(a),(s=Jt.get(s))&&bo(a,s),c=c.createElement("link"),nt(c);var d=c;d._p=new Promise(function(y,S){d.onload=y,d.onerror=S}),ct(c,"link",a),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ws.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var So=0;function Iv(e,t){return e.stylesheets&&e.count===0&&_s(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&_s(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&So===0&&(So=62500*zv());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&_s(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>So?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function ws(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_s(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Cs=null;function _s(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Cs=new Map,t.forEach(eb,e),Cs=null,ws.call(e))}function eb(e,t){if(!(t.state.loading&4)){var n=Cs.get(e);if(n)var a=n.get(null);else{n=new Map,Cs.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var d=s[c];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),a=d)}a&&n.set(null,a)}s=t.instance,d=s.getAttribute("data-precedence"),c=n.get(d)||a,c===a&&n.set(null,s),n.set(d,s),this.count++,a=ws.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Pi={$$typeof:K,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function tb(e,t,n,a,s,c,d,y,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=yr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yr(0),this.hiddenUpdates=yr(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function by(e,t,n,a,s,c,d,y,S,_,L,Y){return e=new tb(e,t,n,d,S,_,L,Y,y),t=1,c===!0&&(t|=24),c=Dt(3,null,null,t),e.current=c,c.stateNode=e,t=Ir(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},ac(c),e}function xy(e){return e?(e=xl,e):xl}function Sy(e,t,n,a,s,c){s=xy(s),a.context===null?a.context=s:a.pendingContext=s,a=Pn(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=In(e,a,t),n!==null&&(Rt(n,e,t),Ci(n,e,t))}function Ey(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Eo(e,t){Ey(e,t),(e=e.alternate)&&Ey(e,t)}function Ry(e){if(e.tag===13||e.tag===31){var t=Da(e,67108864);t!==null&&Rt(t,e,67108864),Eo(e,67108864)}}function Ty(e){if(e.tag===13||e.tag===31){var t=Lt();t=pr(t);var n=Da(e,t);n!==null&&Rt(n,e,t),Eo(e,t)}}var Ds=!0;function nb(e,t,n,a){var s=q.T;q.T=null;var c=V.p;try{V.p=2,Ro(e,t,n,a)}finally{V.p=c,q.T=s}}function ab(e,t,n,a){var s=q.T;q.T=null;var c=V.p;try{V.p=8,Ro(e,t,n,a)}finally{V.p=c,q.T=s}}function Ro(e,t,n,a){if(Ds){var s=To(a);if(s===null)ro(e,t,a,zs,n),Oy(e,a);else if(ib(s,e,t,n,a))a.stopPropagation();else if(Oy(e,a),t&4&&-1<lb.indexOf(e)){for(;s!==null;){var c=cl(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var d=ja(c.pendingLanes);if(d!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;d;){var S=1<<31-Ct(d);y.entanglements[1]|=S,d&=~S}dn(c),(Te&6)===0&&(ys=At()+500,Vi(0))}}break;case 31:case 13:y=Da(c,2),y!==null&&Rt(y,c,2),gs(),Eo(c,2)}if(c=To(a),c===null&&ro(e,t,a,zs,n),c===s)break;s=c}s!==null&&a.stopPropagation()}else ro(e,t,a,null,n)}}function To(e){return e=Nr(e),No(e)}var zs=null;function No(e){if(zs=null,e=rl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return zs=e,null}function Ny(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(K0()){case zf:return 2;case Mf:return 8;case Eu:case k0:return 32;case Uf:return 268435456;default:return 32}default:return 32}}var Oo=!1,oa=null,fa=null,da=null,Ii=new Map,eu=new Map,ha=[],lb="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 Oy(e,t){switch(e){case"focusin":case"focusout":oa=null;break;case"dragenter":case"dragleave":fa=null;break;case"mouseover":case"mouseout":da=null;break;case"pointerover":case"pointerout":Ii.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":eu.delete(t.pointerId)}}function tu(e,t,n,a,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[s]},t!==null&&(t=cl(t),t!==null&&Ry(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function ib(e,t,n,a,s){switch(t){case"focusin":return oa=tu(oa,e,t,n,a,s),!0;case"dragenter":return fa=tu(fa,e,t,n,a,s),!0;case"mouseover":return da=tu(da,e,t,n,a,s),!0;case"pointerover":var c=s.pointerId;return Ii.set(c,tu(Ii.get(c)||null,e,t,n,a,s)),!0;case"gotpointercapture":return c=s.pointerId,eu.set(c,tu(eu.get(c)||null,e,t,n,a,s)),!0}return!1}function jy(e){var t=rl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Gf(e.priority,function(){Ty(n)});return}}else if(t===31){if(t=g(n),t!==null){e.blockedOn=t,Gf(e.priority,function(){Ty(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ms(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=To(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Tr=a,n.target.dispatchEvent(a),Tr=null}else return t=cl(n),t!==null&&Ry(t),e.blockedOn=n,!1;t.shift()}return!0}function Ay(e,t,n){Ms(e)&&n.delete(t)}function ub(){Oo=!1,oa!==null&&Ms(oa)&&(oa=null),fa!==null&&Ms(fa)&&(fa=null),da!==null&&Ms(da)&&(da=null),Ii.forEach(Ay),eu.forEach(Ay)}function Us(e,t){e.blockedOn===t&&(e.blockedOn=null,Oo||(Oo=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,ub)))}var qs=null;function wy(e){qs!==e&&(qs=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){qs===e&&(qs=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],s=e[t+2];if(typeof a!="function"){if(No(a||n)===null)continue;break}var c=cl(n);c!==null&&(e.splice(t,3),t-=3,Rc(c,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function kl(e){function t(S){return Us(S,e)}oa!==null&&Us(oa,e),fa!==null&&Us(fa,e),da!==null&&Us(da,e),Ii.forEach(t),eu.forEach(t);for(var n=0;n<ha.length;n++){var a=ha[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ha.length&&(n=ha[0],n.blockedOn===null);)jy(n),n.blockedOn===null&&ha.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],c=n[a+1],d=s[gt]||null;if(typeof c=="function")d||wy(n);else if(d){var y=null;if(c&&c.hasAttribute("formAction")){if(s=c,d=c[gt]||null)y=d.formAction;else if(No(s)!==null)continue}else y=d.action;typeof y=="function"?n[a+1]=y:(n.splice(a,3),a-=3),wy(n)}}}function Cy(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(d){return s=d})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function jo(e){this._internalRoot=e}Ls.prototype.render=jo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,a=Lt();Sy(n,a,e,t,null,null)},Ls.prototype.unmount=jo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Sy(e.current,2,null,e,null,null),gs(),t[sl]=null}};function Ls(e){this._internalRoot=e}Ls.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ha.length&&t!==0&&t<ha[n].priority;n++);ha.splice(n,0,e),n===0&&jy(e)}};var _y=i.version;if(_y!=="19.2.4")throw Error(r(527,_y,"19.2.4"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var sb={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hs.isDisabled&&Hs.supportsFiber)try{oi=Hs.inject(sb),wt=Hs}catch{}}return au.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,a="",s=Hh,c=Bh,d=Qh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=by(e,1,!1,null,null,n,a,null,s,c,d,Cy),e[sl]=t.current,so(e),new jo(t)},au.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var a=!1,s="",c=Hh,d=Bh,y=Qh,S=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(S=n.formState)),t=by(e,1,!0,t,n??null,a,s,S,c,d,y,Cy),t.context=xy(null),n=t.current,a=Lt(),a=pr(a),s=Pn(a),s.callback=null,In(n,s,a),n=a,t.current.lanes=n,di(t,n),dn(t),e[sl]=t.current,so(e),new Ls(t)},au.version="19.2.4",au}var Yy;function vb(){if(Yy)return _o.exports;Yy=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),_o.exports=gb(),_o.exports}var bb=vb();const xb=Lp(bb);/**
|
|
* react-router v7.13.1
|
|
*
|
|
* 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 Ky="popstate";function ky(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function Sb(l={}){function i(r,o){var p;let f=(p=o.state)==null?void 0:p.masked,{pathname:h,search:g,hash:v}=f||r.location;return Ko("",{pathname:h,search:g,hash:v},o.state&&o.state.usr||null,o.state&&o.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function u(r,o){return typeof o=="string"?o:su(o)}return Rb(i,u,null,l)}function Ye(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function un(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Eb(){return Math.random().toString(36).substring(2,10)}function Xy(l,i){return{usr:l.state,key:l.key,idx:i,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function Ko(l,i,u=null,r,o){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?li(i):i,state:u,key:i&&i.key||r||Eb(),unstable_mask:o}}function su({pathname:l="/",search:i="",hash:u=""}){return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),u&&u!=="#"&&(l+=u.charAt(0)==="#"?u:"#"+u),l}function li(l){let i={};if(l){let u=l.indexOf("#");u>=0&&(i.hash=l.substring(u),l=l.substring(0,u));let r=l.indexOf("?");r>=0&&(i.search=l.substring(r),l=l.substring(0,r)),l&&(i.pathname=l)}return i}function Rb(l,i,u,r={}){let{window:o=document.defaultView,v5Compat:f=!1}=r,h=o.history,g="POP",v=null,p=x();p==null&&(p=0,h.replaceState({...h.state,idx:p},""));function x(){return(h.state||{idx:null}).idx}function b(){g="POP";let j=x(),H=j==null?null:j-p;p=j,v&&v({action:g,location:D.location,delta:H})}function A(j,H){g="PUSH";let X=ky(j)?j:Ko(D.location,j,H);p=x()+1;let K=Xy(X,p),k=D.createHref(X.unstable_mask||X);try{h.pushState(K,"",k)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;o.location.assign(k)}f&&v&&v({action:g,location:D.location,delta:1})}function G(j,H){g="REPLACE";let X=ky(j)?j:Ko(D.location,j,H);p=x();let K=Xy(X,p),k=D.createHref(X.unstable_mask||X);h.replaceState(K,"",k),f&&v&&v({action:g,location:D.location,delta:0})}function N(j){return Tb(j)}let D={get action(){return g},get location(){return l(o,h)},listen(j){if(v)throw new Error("A history only accepts one active listener");return o.addEventListener(Ky,b),v=j,()=>{o.removeEventListener(Ky,b),v=null}},createHref(j){return i(o,j)},createURL:N,encodeLocation(j){let H=N(j);return{pathname:H.pathname,search:H.search,hash:H.hash}},push:A,replace:G,go(j){return h.go(j)}};return D}function Tb(l,i=!1){let u="http://localhost";typeof window<"u"&&(u=window.location.origin!=="null"?window.location.origin:window.location.href),Ye(u,"No window.location.(origin|href) available to create URL");let r=typeof l=="string"?l:su(l);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=u+r),new URL(r,u)}function Hp(l,i,u="/"){return Nb(l,i,u,!1)}function Nb(l,i,u,r){let o=typeof i=="string"?li(i):i,f=Yn(o.pathname||"/",u);if(f==null)return null;let h=Bp(l);Ob(h);let g=null;for(let v=0;g==null&&v<h.length;++v){let p=Lb(f);g=Ub(h[v],p,r)}return g}function Bp(l,i=[],u=[],r="",o=!1){let f=(h,g,v=o,p)=>{let x={relativePath:p===void 0?h.path||"":p,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(r)&&v)return;Ye(x.relativePath.startsWith(r),`Absolute route path "${x.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(r.length)}let b=gn([r,x.relativePath]),A=u.concat(x);h.children&&h.children.length>0&&(Ye(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Bp(h.children,i,A,b,v)),!(h.path==null&&!h.index)&&i.push({path:b,score:zb(b,h.index),routesMeta:A})};return l.forEach((h,g)=>{var v;if(h.path===""||!((v=h.path)!=null&&v.includes("?")))f(h,g);else for(let p of Qp(h.path))f(h,g,!0,p)}),i}function Qp(l){let i=l.split("/");if(i.length===0)return[];let[u,...r]=i,o=u.endsWith("?"),f=u.replace(/\?$/,"");if(r.length===0)return o?[f,""]:[f];let h=Qp(r.join("/")),g=[];return g.push(...h.map(v=>v===""?f:[f,v].join("/"))),o&&g.push(...h),g.map(v=>l.startsWith("/")&&v===""?"/":v)}function Ob(l){l.sort((i,u)=>i.score!==u.score?u.score-i.score:Mb(i.routesMeta.map(r=>r.childrenIndex),u.routesMeta.map(r=>r.childrenIndex)))}var jb=/^:[\w-]+$/,Ab=3,wb=2,Cb=1,_b=10,Db=-2,Vy=l=>l==="*";function zb(l,i){let u=l.split("/"),r=u.length;return u.some(Vy)&&(r+=Db),i&&(r+=wb),u.filter(o=>!Vy(o)).reduce((o,f)=>o+(jb.test(f)?Ab:f===""?Cb:_b),r)}function Mb(l,i){return l.length===i.length&&l.slice(0,-1).every((r,o)=>r===i[o])?l[l.length-1]-i[i.length-1]:0}function Ub(l,i,u=!1){let{routesMeta:r}=l,o={},f="/",h=[];for(let g=0;g<r.length;++g){let v=r[g],p=g===r.length-1,x=f==="/"?i:i.slice(f.length)||"/",b=Ws({path:v.relativePath,caseSensitive:v.caseSensitive,end:p},x),A=v.route;if(!b&&p&&u&&!r[r.length-1].route.index&&(b=Ws({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},x)),!b)return null;Object.assign(o,b.params),h.push({params:o,pathname:gn([f,b.pathname]),pathnameBase:Gb(gn([f,b.pathnameBase])),route:A}),b.pathnameBase!=="/"&&(f=gn([f,b.pathnameBase]))}return h}function Ws(l,i){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[u,r]=qb(l.path,l.caseSensitive,l.end),o=i.match(u);if(!o)return null;let f=o[0],h=f.replace(/(.)\/+$/,"$1"),g=o.slice(1);return{params:r.reduce((p,{paramName:x,isOptional:b},A)=>{if(x==="*"){let N=g[A]||"";h=f.slice(0,f.length-N.length).replace(/(.)\/+$/,"$1")}const G=g[A];return b&&!G?p[x]=void 0:p[x]=(G||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:h,pattern:l}}function qb(l,i=!1,u=!0){un(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let r=[],o="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,v,p,x)=>{if(r.push({paramName:g,isOptional:v!=null}),v){let b=x.charAt(p+h.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(r.push({paramName:"*"}),o+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):u?o+="\\/*$":l!==""&&l!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),r]}function Lb(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return un(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),l}}function Yn(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let u=i.endsWith("/")?i.length-1:i.length,r=l.charAt(u);return r&&r!=="/"?null:l.slice(u)||"/"}var Hb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Bb(l,i="/"){let{pathname:u,search:r="",hash:o=""}=typeof l=="string"?li(l):l,f;return u?(u=u.replace(/\/\/+/g,"/"),u.startsWith("/")?f=Zy(u.substring(1),"/"):f=Zy(u,i)):f=i,{pathname:f,search:Yb(r),hash:Kb(o)}}function Zy(l,i){let u=i.replace(/\/+$/,"").split("/");return l.split("/").forEach(o=>{o===".."?u.length>1&&u.pop():o!=="."&&u.push(o)}),u.length>1?u.join("/"):"/"}function Uo(l,i,u,r){return`Cannot include a '${l}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${u}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Qb(l){return l.filter((i,u)=>u===0||i.route.path&&i.route.path.length>0)}function df(l){let i=Qb(l);return i.map((u,r)=>r===i.length-1?u.pathname:u.pathnameBase)}function tr(l,i,u,r=!1){let o;typeof l=="string"?o=li(l):(o={...l},Ye(!o.pathname||!o.pathname.includes("?"),Uo("?","pathname","search",o)),Ye(!o.pathname||!o.pathname.includes("#"),Uo("#","pathname","hash",o)),Ye(!o.search||!o.search.includes("#"),Uo("#","search","hash",o)));let f=l===""||o.pathname==="",h=f?"/":o.pathname,g;if(h==null)g=u;else{let b=i.length-1;if(!r&&h.startsWith("..")){let A=h.split("/");for(;A[0]==="..";)A.shift(),b-=1;o.pathname=A.join("/")}g=b>=0?i[b]:"/"}let v=Bb(o,g),p=h&&h!=="/"&&h.endsWith("/"),x=(f||h===".")&&u.endsWith("/");return!v.pathname.endsWith("/")&&(p||x)&&(v.pathname+="/"),v}var gn=l=>l.join("/").replace(/\/\/+/g,"/"),Gb=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),Yb=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,Kb=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,kb=class{constructor(l,i,u,r=!1){this.status=l,this.statusText=i||"",this.internal=r,u instanceof Error?(this.data=u.toString(),this.error=u):this.data=u}};function Xb(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function Vb(l){return l.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Gp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Yp(l,i){let u=l;if(typeof u!="string"||!Hb.test(u))return{absoluteURL:void 0,isExternal:!1,to:u};let r=u,o=!1;if(Gp)try{let f=new URL(window.location.href),h=u.startsWith("//")?new URL(f.protocol+u):new URL(u),g=Yn(h.pathname,i);h.origin===f.origin&&g!=null?u=g+h.search+h.hash:o=!0}catch{un(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Kp=["POST","PUT","PATCH","DELETE"];new Set(Kp);var Zb=["GET",...Kp];new Set(Zb);var ii=C.createContext(null);ii.displayName="DataRouter";var nr=C.createContext(null);nr.displayName="DataRouterState";var Jb=C.createContext(!1),kp=C.createContext({isTransitioning:!1});kp.displayName="ViewTransition";var Fb=C.createContext(new Map);Fb.displayName="Fetchers";var $b=C.createContext(null);$b.displayName="Await";var Ht=C.createContext(null);Ht.displayName="Navigation";var mu=C.createContext(null);mu.displayName="Location";var Pt=C.createContext({outlet:null,matches:[],isDataRoute:!1});Pt.displayName="Route";var hf=C.createContext(null);hf.displayName="RouteError";var Xp="REACT_ROUTER_ERROR",Wb="REDIRECT",Pb="ROUTE_ERROR_RESPONSE";function Ib(l){if(l.startsWith(`${Xp}:${Wb}:{`))try{let i=JSON.parse(l.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function ex(l){if(l.startsWith(`${Xp}:${Pb}:{`))try{let i=JSON.parse(l.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new kb(i.status,i.statusText,i.data)}catch{}}function tx(l,{relative:i}={}){Ye(ui(),"useHref() may be used only in the context of a <Router> component.");let{basename:u,navigator:r}=C.useContext(Ht),{hash:o,pathname:f,search:h}=yu(l,{relative:i}),g=f;return u!=="/"&&(g=f==="/"?u:gn([u,f])),r.createHref({pathname:g,search:h,hash:o})}function ui(){return C.useContext(mu)!=null}function sn(){return Ye(ui(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(mu).location}var Vp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Zp(l){C.useContext(Ht).static||C.useLayoutEffect(l)}function mf(){let{isDataRoute:l}=C.useContext(Pt);return l?gx():nx()}function nx(){Ye(ui(),"useNavigate() may be used only in the context of a <Router> component.");let l=C.useContext(ii),{basename:i,navigator:u}=C.useContext(Ht),{matches:r}=C.useContext(Pt),{pathname:o}=sn(),f=JSON.stringify(df(r)),h=C.useRef(!1);return Zp(()=>{h.current=!0}),C.useCallback((v,p={})=>{if(un(h.current,Vp),!h.current)return;if(typeof v=="number"){u.go(v);return}let x=tr(v,JSON.parse(f),o,p.relative==="path");l==null&&i!=="/"&&(x.pathname=x.pathname==="/"?i:gn([i,x.pathname])),(p.replace?u.replace:u.push)(x,p.state,p)},[i,u,f,o,l])}var ax=C.createContext(null);function lx(l){let i=C.useContext(Pt).outlet;return C.useMemo(()=>i&&C.createElement(ax.Provider,{value:l},i),[i,l])}function ix(){let{matches:l}=C.useContext(Pt),i=l[l.length-1];return i?i.params:{}}function yu(l,{relative:i}={}){let{matches:u}=C.useContext(Pt),{pathname:r}=sn(),o=JSON.stringify(df(u));return C.useMemo(()=>tr(l,JSON.parse(o),r,i==="path"),[l,o,r,i])}function ux(l,i){return Jp(l,i)}function Jp(l,i,u){var j;Ye(ui(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=C.useContext(Ht),{matches:o}=C.useContext(Pt),f=o[o.length-1],h=f?f.params:{},g=f?f.pathname:"/",v=f?f.pathnameBase:"/",p=f&&f.route;{let H=p&&p.path||"";$p(g,!p||H.endsWith("*")||H.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${H}">) 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="${H}"> to <Route path="${H==="/"?"*":`${H}/*`}">.`)}let x=sn(),b;if(i){let H=typeof i=="string"?li(i):i;Ye(v==="/"||((j=H.pathname)==null?void 0:j.startsWith(v)),`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 "${v}" but pathname "${H.pathname}" was given in the \`location\` prop.`),b=H}else b=x;let A=b.pathname||"/",G=A;if(v!=="/"){let H=v.replace(/^\//,"").split("/");G="/"+A.replace(/^\//,"").split("/").slice(H.length).join("/")}let N=Hp(l,{pathname:G});un(p||N!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),un(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let D=fx(N&&N.map(H=>Object.assign({},H,{params:Object.assign({},h,H.params),pathname:gn([v,r.encodeLocation?r.encodeLocation(H.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?v:gn([v,r.encodeLocation?r.encodeLocation(H.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathnameBase])})),o,u);return i&&D?C.createElement(mu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...b},navigationType:"POP"}},D):D}function sx(){let l=px(),i=Xb(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),u=l instanceof Error?l.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",l),h=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:f},"ErrorBoundary")," or"," ",C.createElement("code",{style:f},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},i),u?C.createElement("pre",{style:o},u):null,h)}var rx=C.createElement(sx,null),Fp=class extends C.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){this.props.onError?this.props.onError(l,i):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const u=ex(l.digest);u&&(l=u)}let i=l!==void 0?C.createElement(Pt.Provider,{value:this.props.routeContext},C.createElement(hf.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?C.createElement(cx,{error:l},i):i}};Fp.contextType=Jb;var qo=new WeakMap;function cx({children:l,error:i}){let{basename:u}=C.useContext(Ht);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=Ib(i.digest);if(r){let o=qo.get(i);if(o)throw o;let f=Yp(r.location,u);if(Gp&&!qo.get(i))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw qo.set(i,h),h}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return l}function ox({routeContext:l,match:i,children:u}){let r=C.useContext(ii);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),C.createElement(Pt.Provider,{value:l},u)}function fx(l,i=[],u){let r=u==null?void 0:u.state;if(l==null){if(!r)return null;if(r.errors)l=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)l=r.matches;else return null}let o=l,f=r==null?void 0:r.errors;if(f!=null){let x=o.findIndex(b=>b.route.id&&(f==null?void 0:f[b.route.id])!==void 0);Ye(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,x+1))}let h=!1,g=-1;if(u&&r){h=r.renderFallback;for(let x=0;x<o.length;x++){let b=o[x];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(g=x),b.route.id){let{loaderData:A,errors:G}=r,N=b.route.loader&&!A.hasOwnProperty(b.route.id)&&(!G||G[b.route.id]===void 0);if(b.route.lazy||N){u.isStatic&&(h=!0),g>=0?o=o.slice(0,g+1):o=[o[0]];break}}}}let v=u==null?void 0:u.onError,p=r&&v?(x,b)=>{var A,G;v(x,{location:r.location,params:((G=(A=r.matches)==null?void 0:A[0])==null?void 0:G.params)??{},unstable_pattern:Vb(r.matches),errorInfo:b})}:void 0;return o.reduceRight((x,b,A)=>{let G,N=!1,D=null,j=null;r&&(G=f&&b.route.id?f[b.route.id]:void 0,D=b.route.errorElement||rx,h&&(g<0&&A===0?($p("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,j=null):g===A&&(N=!0,j=b.route.hydrateFallbackElement||null)));let H=i.concat(o.slice(0,A+1)),X=()=>{let K;return G?K=D:N?K=j:b.route.Component?K=C.createElement(b.route.Component,null):b.route.element?K=b.route.element:K=x,C.createElement(ox,{match:b,routeContext:{outlet:x,matches:H,isDataRoute:r!=null},children:K})};return r&&(b.route.ErrorBoundary||b.route.errorElement||A===0)?C.createElement(Fp,{location:r.location,revalidation:r.revalidation,component:D,error:G,children:X(),routeContext:{outlet:null,matches:H,isDataRoute:!0},onError:p}):X()},null)}function yf(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dx(l){let i=C.useContext(ii);return Ye(i,yf(l)),i}function hx(l){let i=C.useContext(nr);return Ye(i,yf(l)),i}function mx(l){let i=C.useContext(Pt);return Ye(i,yf(l)),i}function pf(l){let i=mx(l),u=i.matches[i.matches.length-1];return Ye(u.route.id,`${l} can only be used on routes that contain a unique "id"`),u.route.id}function yx(){return pf("useRouteId")}function px(){var r;let l=C.useContext(hf),i=hx("useRouteError"),u=pf("useRouteError");return l!==void 0?l:(r=i.errors)==null?void 0:r[u]}function gx(){let{router:l}=dx("useNavigate"),i=pf("useNavigate"),u=C.useRef(!1);return Zp(()=>{u.current=!0}),C.useCallback(async(o,f={})=>{un(u.current,Vp),u.current&&(typeof o=="number"?await l.navigate(o):await l.navigate(o,{fromRouteId:i,...f}))},[l,i])}var Jy={};function $p(l,i,u){!i&&!Jy[l]&&(Jy[l]=!0,un(!1,u))}C.memo(vx);function vx({routes:l,future:i,state:u,isStatic:r,onError:o}){return Jp(l,void 0,{state:u,isStatic:r,onError:o})}function Wp({to:l,replace:i,state:u,relative:r}){Ye(ui(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=C.useContext(Ht);un(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:f}=C.useContext(Pt),{pathname:h}=sn(),g=mf(),v=tr(l,df(f),h,r==="path"),p=JSON.stringify(v);return C.useEffect(()=>{g(JSON.parse(p),{replace:i,state:u,relative:r})},[g,p,r,i,u]),null}function bx(l){return lx(l.context)}function hn(l){Ye(!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 xx({basename:l="/",children:i=null,location:u,navigationType:r="POP",navigator:o,static:f=!1,unstable_useTransitions:h}){Ye(!ui(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=l.replace(/^\/*/,"/"),v=C.useMemo(()=>({basename:g,navigator:o,static:f,unstable_useTransitions:h,future:{}}),[g,o,f,h]);typeof u=="string"&&(u=li(u));let{pathname:p="/",search:x="",hash:b="",state:A=null,key:G="default",unstable_mask:N}=u,D=C.useMemo(()=>{let j=Yn(p,g);return j==null?null:{location:{pathname:j,search:x,hash:b,state:A,key:G,unstable_mask:N},navigationType:r}},[g,p,x,b,A,G,r,N]);return un(D!=null,`<Router basename="${g}"> is not able to match the URL "${p}${x}${b}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:C.createElement(Ht.Provider,{value:v},C.createElement(mu.Provider,{children:i,value:D}))}function Sx({children:l,location:i}){return ux(ko(l),i)}function ko(l,i=[]){let u=[];return C.Children.forEach(l,(r,o)=>{if(!C.isValidElement(r))return;let f=[...i,o];if(r.type===C.Fragment){u.push.apply(u,ko(r.props.children,f));return}Ye(r.type===hn,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ye(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(h.children=ko(r.props.children,f)),u.push(h)}),u}var Xs="get",Vs="application/x-www-form-urlencoded";function ar(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function Ex(l){return ar(l)&&l.tagName.toLowerCase()==="button"}function Rx(l){return ar(l)&&l.tagName.toLowerCase()==="form"}function Tx(l){return ar(l)&&l.tagName.toLowerCase()==="input"}function Nx(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function Ox(l,i){return l.button===0&&(!i||i==="_self")&&!Nx(l)}var Qs=null;function jx(){if(Qs===null)try{new FormData(document.createElement("form"),0),Qs=!1}catch{Qs=!0}return Qs}var Ax=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lo(l){return l!=null&&!Ax.has(l)?(un(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Vs}"`),null):l}function wx(l,i){let u,r,o,f,h;if(Rx(l)){let g=l.getAttribute("action");r=g?Yn(g,i):null,u=l.getAttribute("method")||Xs,o=Lo(l.getAttribute("enctype"))||Vs,f=new FormData(l)}else if(Ex(l)||Tx(l)&&(l.type==="submit"||l.type==="image")){let g=l.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=l.getAttribute("formaction")||g.getAttribute("action");if(r=v?Yn(v,i):null,u=l.getAttribute("formmethod")||g.getAttribute("method")||Xs,o=Lo(l.getAttribute("formenctype"))||Lo(g.getAttribute("enctype"))||Vs,f=new FormData(g,l),!jx()){let{name:p,type:x,value:b}=l;if(x==="image"){let A=p?`${p}.`:"";f.append(`${A}x`,"0"),f.append(`${A}y`,"0")}else p&&f.append(p,b)}}else{if(ar(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');u=Xs,r=null,o=Vs,h=l}return f&&o==="text/plain"&&(h=f,f=void 0),{action:r,method:u.toLowerCase(),encType:o,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function gf(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function Cx(l,i,u,r){let o=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return u?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:i&&Yn(o.pathname,i)==="/"?o.pathname=`${i.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function _x(l,i){if(l.id in i)return i[l.id];try{let u=await import(l.module);return i[l.id]=u,u}catch(u){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(u),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Dx(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function zx(l,i,u){let r=await Promise.all(l.map(async o=>{let f=i.routes[o.route.id];if(f){let h=await _x(f,u);return h.links?h.links():[]}return[]}));return Lx(r.flat(1).filter(Dx).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Fy(l,i,u,r,o,f){let h=(v,p)=>u[p]?v.route.id!==u[p].route.id:!0,g=(v,p)=>{var x;return u[p].pathname!==v.pathname||((x=u[p].route.path)==null?void 0:x.endsWith("*"))&&u[p].params["*"]!==v.params["*"]};return f==="assets"?i.filter((v,p)=>h(v,p)||g(v,p)):f==="data"?i.filter((v,p)=>{var b;let x=r.routes[v.route.id];if(!x||!x.hasLoader)return!1;if(h(v,p)||g(v,p))return!0;if(v.route.shouldRevalidate){let A=v.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((b=u[0])==null?void 0:b.params)||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof A=="boolean")return A}return!0}):[]}function Mx(l,i,{includeHydrateFallback:u}={}){return Ux(l.map(r=>{let o=i.routes[r.route.id];if(!o)return[];let f=[o.module];return o.clientActionModule&&(f=f.concat(o.clientActionModule)),o.clientLoaderModule&&(f=f.concat(o.clientLoaderModule)),u&&o.hydrateFallbackModule&&(f=f.concat(o.hydrateFallbackModule)),o.imports&&(f=f.concat(o.imports)),f}).flat(1))}function Ux(l){return[...new Set(l)]}function qx(l){let i={},u=Object.keys(l).sort();for(let r of u)i[r]=l[r];return i}function Lx(l,i){let u=new Set;return new Set(i),l.reduce((r,o)=>{let f=JSON.stringify(qx(o));return u.has(f)||(u.add(f),r.push({key:f,link:o})),r},[])}function Pp(){let l=C.useContext(ii);return gf(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function Hx(){let l=C.useContext(nr);return gf(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var vf=C.createContext(void 0);vf.displayName="FrameworkContext";function Ip(){let l=C.useContext(vf);return gf(l,"You must render this element inside a <HydratedRouter> element"),l}function Bx(l,i){let u=C.useContext(vf),[r,o]=C.useState(!1),[f,h]=C.useState(!1),{onFocus:g,onBlur:v,onMouseEnter:p,onMouseLeave:x,onTouchStart:b}=i,A=C.useRef(null);C.useEffect(()=>{if(l==="render"&&h(!0),l==="viewport"){let D=H=>{H.forEach(X=>{h(X.isIntersecting)})},j=new IntersectionObserver(D,{threshold:.5});return A.current&&j.observe(A.current),()=>{j.disconnect()}}},[l]),C.useEffect(()=>{if(r){let D=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(D)}}},[r]);let G=()=>{o(!0)},N=()=>{o(!1),h(!1)};return u?l!=="intent"?[f,A,{}]:[f,A,{onFocus:lu(g,G),onBlur:lu(v,N),onMouseEnter:lu(p,G),onMouseLeave:lu(x,N),onTouchStart:lu(b,G)}]:[!1,A,{}]}function lu(l,i){return u=>{l&&l(u),u.defaultPrevented||i(u)}}function Qx({page:l,...i}){let{router:u}=Pp(),r=C.useMemo(()=>Hp(u.routes,l,u.basename),[u.routes,l,u.basename]);return r?C.createElement(Yx,{page:l,matches:r,...i}):null}function Gx(l){let{manifest:i,routeModules:u}=Ip(),[r,o]=C.useState([]);return C.useEffect(()=>{let f=!1;return zx(l,i,u).then(h=>{f||o(h)}),()=>{f=!0}},[l,i,u]),r}function Yx({page:l,matches:i,...u}){let r=sn(),{future:o,manifest:f,routeModules:h}=Ip(),{basename:g}=Pp(),{loaderData:v,matches:p}=Hx(),x=C.useMemo(()=>Fy(l,i,p,f,r,"data"),[l,i,p,f,r]),b=C.useMemo(()=>Fy(l,i,p,f,r,"assets"),[l,i,p,f,r]),A=C.useMemo(()=>{if(l===r.pathname+r.search+r.hash)return[];let D=new Set,j=!1;if(i.forEach(X=>{var k;let K=f.routes[X.route.id];!K||!K.hasLoader||(!x.some(F=>F.route.id===X.route.id)&&X.route.id in v&&((k=h[X.route.id])!=null&&k.shouldRevalidate)||K.hasClientLoader?j=!0:D.add(X.route.id))}),D.size===0)return[];let H=Cx(l,g,o.unstable_trailingSlashAwareDataRequests,"data");return j&&D.size>0&&H.searchParams.set("_routes",i.filter(X=>D.has(X.route.id)).map(X=>X.route.id).join(",")),[H.pathname+H.search]},[g,o.unstable_trailingSlashAwareDataRequests,v,r,f,x,i,l,h]),G=C.useMemo(()=>Mx(b,f),[b,f]),N=Gx(b);return C.createElement(C.Fragment,null,A.map(D=>C.createElement("link",{key:D,rel:"prefetch",as:"fetch",href:D,...u})),G.map(D=>C.createElement("link",{key:D,rel:"modulepreload",href:D,...u})),N.map(({key:D,link:j})=>C.createElement("link",{key:D,nonce:u.nonce,...j,crossOrigin:j.crossOrigin??u.crossOrigin})))}function Kx(...l){return i=>{l.forEach(u=>{typeof u=="function"?u(i):u!=null&&(u.current=i)})}}var kx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{kx&&(window.__reactRouterVersion="7.13.1")}catch{}function Xx({basename:l,children:i,unstable_useTransitions:u,window:r}){let o=C.useRef();o.current==null&&(o.current=Sb({window:r,v5Compat:!0}));let f=o.current,[h,g]=C.useState({action:f.action,location:f.location}),v=C.useCallback(p=>{u===!1?g(p):C.startTransition(()=>g(p))},[u]);return C.useLayoutEffect(()=>f.listen(v),[f,v]),C.createElement(xx,{basename:l,children:i,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:u})}var e0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ln=C.forwardRef(function({onClick:i,discover:u="render",prefetch:r="none",relative:o,reloadDocument:f,replace:h,unstable_mask:g,state:v,target:p,to:x,preventScrollReset:b,viewTransition:A,unstable_defaultShouldRevalidate:G,...N},D){let{basename:j,navigator:H,unstable_useTransitions:X}=C.useContext(Ht),K=typeof x=="string"&&e0.test(x),k=Yp(x,j);x=k.to;let F=tx(x,{relative:o}),ne=sn(),$=null;if(g){let _e=tr(g,[],ne.unstable_mask?ne.unstable_mask.pathname:"/",!0);j!=="/"&&(_e.pathname=_e.pathname==="/"?j:gn([j,_e.pathname])),$=H.createHref(_e)}let[le,fe,je]=Bx(r,N),Qe=Fx(x,{replace:h,unstable_mask:g,state:v,target:p,preventScrollReset:b,relative:o,viewTransition:A,unstable_defaultShouldRevalidate:G,unstable_useTransitions:X});function qe(_e){i&&i(_e),_e.defaultPrevented||Qe(_e)}let Ie=!(k.isExternal||f),Le=C.createElement("a",{...N,...je,href:(Ie?$:void 0)||k.absoluteURL||F,onClick:Ie?qe:i,ref:Kx(D,fe),target:p,"data-discover":!K&&u==="render"?"true":void 0});return le&&!K?C.createElement(C.Fragment,null,Le,C.createElement(Qx,{page:F})):Le});ln.displayName="Link";var Vx=C.forwardRef(function({"aria-current":i="page",caseSensitive:u=!1,className:r="",end:o=!1,style:f,to:h,viewTransition:g,children:v,...p},x){let b=yu(h,{relative:p.relative}),A=sn(),G=C.useContext(nr),{navigator:N,basename:D}=C.useContext(Ht),j=G!=null&&e1(b)&&g===!0,H=N.encodeLocation?N.encodeLocation(b).pathname:b.pathname,X=A.pathname,K=G&&G.navigation&&G.navigation.location?G.navigation.location.pathname:null;u||(X=X.toLowerCase(),K=K?K.toLowerCase():null,H=H.toLowerCase()),K&&D&&(K=Yn(K,D)||K);const k=H!=="/"&&H.endsWith("/")?H.length-1:H.length;let F=X===H||!o&&X.startsWith(H)&&X.charAt(k)==="/",ne=K!=null&&(K===H||!o&&K.startsWith(H)&&K.charAt(H.length)==="/"),$={isActive:F,isPending:ne,isTransitioning:j},le=F?i:void 0,fe;typeof r=="function"?fe=r($):fe=[r,F?"active":null,ne?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let je=typeof f=="function"?f($):f;return C.createElement(ln,{...p,"aria-current":le,className:fe,ref:x,style:je,to:h,viewTransition:g},typeof v=="function"?v($):v)});Vx.displayName="NavLink";var Zx=C.forwardRef(({discover:l="render",fetcherKey:i,navigate:u,reloadDocument:r,replace:o,state:f,method:h=Xs,action:g,onSubmit:v,relative:p,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:A,...G},N)=>{let{unstable_useTransitions:D}=C.useContext(Ht),j=Px(),H=Ix(g,{relative:p}),X=h.toLowerCase()==="get"?"get":"post",K=typeof g=="string"&&e0.test(g),k=F=>{if(v&&v(F),F.defaultPrevented)return;F.preventDefault();let ne=F.nativeEvent.submitter,$=(ne==null?void 0:ne.getAttribute("formmethod"))||h,le=()=>j(ne||F.currentTarget,{fetcherKey:i,method:$,navigate:u,replace:o,state:f,relative:p,preventScrollReset:x,viewTransition:b,unstable_defaultShouldRevalidate:A});D&&u!==!1?C.startTransition(()=>le()):le()};return C.createElement("form",{ref:N,method:X,action:H,onSubmit:r?v:k,...G,"data-discover":!K&&l==="render"?"true":void 0})});Zx.displayName="Form";function Jx(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function t0(l){let i=C.useContext(ii);return Ye(i,Jx(l)),i}function Fx(l,{target:i,replace:u,unstable_mask:r,state:o,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:v,unstable_useTransitions:p}={}){let x=mf(),b=sn(),A=yu(l,{relative:h});return C.useCallback(G=>{if(Ox(G,i)){G.preventDefault();let N=u!==void 0?u:su(b)===su(A),D=()=>x(l,{replace:N,unstable_mask:r,state:o,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:v});p?C.startTransition(()=>D()):D()}},[b,x,A,u,r,o,i,l,f,h,g,v,p])}var $x=0,Wx=()=>`__${String(++$x)}__`;function Px(){let{router:l}=t0("useSubmit"),{basename:i}=C.useContext(Ht),u=yx(),r=l.fetch,o=l.navigate;return C.useCallback(async(f,h={})=>{let{action:g,method:v,encType:p,formData:x,body:b}=wx(f,i);if(h.navigate===!1){let A=h.fetcherKey||Wx();await r(A,u,h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:x,body:b,formMethod:h.method||v,formEncType:h.encType||p,flushSync:h.flushSync})}else await o(h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:x,body:b,formMethod:h.method||v,formEncType:h.encType||p,replace:h.replace,state:h.state,fromRouteId:u,flushSync:h.flushSync,viewTransition:h.viewTransition})},[r,o,i,u])}function Ix(l,{relative:i}={}){let{basename:u}=C.useContext(Ht),r=C.useContext(Pt);Ye(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),f={...yu(l||".",{relative:i})},h=sn();if(l==null){f.search=h.search;let g=new URLSearchParams(f.search),v=g.getAll("index");if(v.some(x=>x==="")){g.delete("index"),v.filter(b=>b).forEach(b=>g.append("index",b));let x=g.toString();f.search=x?`?${x}`:""}}return(!l||l===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),u!=="/"&&(f.pathname=f.pathname==="/"?u:gn([u,f.pathname])),su(f)}function e1(l,{relative:i}={}){let u=C.useContext(kp);Ye(u!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=t0("useViewTransitionState"),o=yu(l,{relative:i});if(!u.isTransitioning)return!1;let f=Yn(u.currentLocation.pathname,r)||u.currentLocation.pathname,h=Yn(u.nextLocation.pathname,r)||u.nextLocation.pathname;return Ws(o.pathname,h)!=null||Ws(o.pathname,f)!=null}var si=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},t1={setTimeout:(l,i)=>setTimeout(l,i),clearTimeout:l=>clearTimeout(l),setInterval:(l,i)=>setInterval(l,i),clearInterval:l=>clearInterval(l)},pa,of,Op,n1=(Op=class{constructor(){te(this,pa,t1);te(this,of,!1)}setTimeoutProvider(l){J(this,pa,l)}setTimeout(l,i){return E(this,pa).setTimeout(l,i)}clearTimeout(l){E(this,pa).clearTimeout(l)}setInterval(l,i){return E(this,pa).setInterval(l,i)}clearInterval(l){E(this,pa).clearInterval(l)}},pa=new WeakMap,of=new WeakMap,Op),Va=new n1;function a1(l){setTimeout(l,0)}var ll=typeof window>"u"||"Deno"in globalThis;function pt(){}function l1(l,i){return typeof l=="function"?l(i):l}function Xo(l){return typeof l=="number"&&l>=0&&l!==1/0}function n0(l,i){return Math.max(l+(i||0)-Date.now(),0)}function Na(l,i){return typeof l=="function"?l(i):l}function Wt(l,i){return typeof l=="function"?l(i):l}function $y(l,i){const{type:u="all",exact:r,fetchStatus:o,predicate:f,queryKey:h,stale:g}=l;if(h){if(r){if(i.queryHash!==bf(h,i.options))return!1}else if(!ru(i.queryKey,h))return!1}if(u!=="all"){const v=i.isActive();if(u==="active"&&!v||u==="inactive"&&v)return!1}return!(typeof g=="boolean"&&i.isStale()!==g||o&&o!==i.state.fetchStatus||f&&!f(i))}function Wy(l,i){const{exact:u,status:r,predicate:o,mutationKey:f}=l;if(f){if(!i.options.mutationKey)return!1;if(u){if(il(i.options.mutationKey)!==il(f))return!1}else if(!ru(i.options.mutationKey,f))return!1}return!(r&&i.state.status!==r||o&&!o(i))}function bf(l,i){return((i==null?void 0:i.queryKeyHashFn)||il)(l)}function il(l){return JSON.stringify(l,(i,u)=>Vo(u)?Object.keys(u).sort().reduce((r,o)=>(r[o]=u[o],r),{}):u)}function ru(l,i){return l===i?!0:typeof l!=typeof i?!1:l&&i&&typeof l=="object"&&typeof i=="object"?Object.keys(i).every(u=>ru(l[u],i[u])):!1}var i1=Object.prototype.hasOwnProperty;function a0(l,i,u=0){if(l===i)return l;if(u>500)return i;const r=Py(l)&&Py(i);if(!r&&!(Vo(l)&&Vo(i)))return i;const f=(r?l:Object.keys(l)).length,h=r?i:Object.keys(i),g=h.length,v=r?new Array(g):{};let p=0;for(let x=0;x<g;x++){const b=r?x:h[x],A=l[b],G=i[b];if(A===G){v[b]=A,(r?x<f:i1.call(l,b))&&p++;continue}if(A===null||G===null||typeof A!="object"||typeof G!="object"){v[b]=G;continue}const N=a0(A,G,u+1);v[b]=N,N===A&&p++}return f===g&&p===f?l:v}function Ps(l,i){if(!i||Object.keys(l).length!==Object.keys(i).length)return!1;for(const u in l)if(l[u]!==i[u])return!1;return!0}function Py(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Vo(l){if(!Iy(l))return!1;const i=l.constructor;if(i===void 0)return!0;const u=i.prototype;return!(!Iy(u)||!u.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function Iy(l){return Object.prototype.toString.call(l)==="[object Object]"}function u1(l){return new Promise(i=>{Va.setTimeout(i,l)})}function Zo(l,i,u){return typeof u.structuralSharing=="function"?u.structuralSharing(l,i):u.structuralSharing!==!1?a0(l,i):i}function s1(l,i,u=0){const r=[...l,i];return u&&r.length>u?r.slice(1):r}function r1(l,i,u=0){const r=[i,...l];return u&&r.length>u?r.slice(0,-1):r}var xf=Symbol();function l0(l,i){return!l.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!l.queryFn||l.queryFn===xf?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function Sf(l,i){return typeof l=="function"?l(...i):!!l}function c1(l,i,u){let r=!1,o;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(o??(o=i()),r||(r=!0,o.aborted?u():o.addEventListener("abort",u,{once:!0})),o)}),l}var Ja,ga,Xl,jp,o1=(jp=class extends si{constructor(){super();te(this,Ja);te(this,ga);te(this,Xl);J(this,Xl,i=>{if(!ll&&window.addEventListener){const u=()=>i();return window.addEventListener("visibilitychange",u,!1),()=>{window.removeEventListener("visibilitychange",u)}}})}onSubscribe(){E(this,ga)||this.setEventListener(E(this,Xl))}onUnsubscribe(){var i;this.hasListeners()||((i=E(this,ga))==null||i.call(this),J(this,ga,void 0))}setEventListener(i){var u;J(this,Xl,i),(u=E(this,ga))==null||u.call(this),J(this,ga,i(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(i){E(this,Ja)!==i&&(J(this,Ja,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(u=>{u(i)})}isFocused(){var i;return typeof E(this,Ja)=="boolean"?E(this,Ja):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Ja=new WeakMap,ga=new WeakMap,Xl=new WeakMap,jp),Ef=new o1;function Jo(){let l,i;const u=new Promise((o,f)=>{l=o,i=f});u.status="pending",u.catch(()=>{});function r(o){Object.assign(u,o),delete u.resolve,delete u.reject}return u.resolve=o=>{r({status:"fulfilled",value:o}),l(o)},u.reject=o=>{r({status:"rejected",reason:o}),i(o)},u}var f1=a1;function d1(){let l=[],i=0,u=g=>{g()},r=g=>{g()},o=f1;const f=g=>{i?l.push(g):o(()=>{u(g)})},h=()=>{const g=l;l=[],g.length&&o(()=>{r(()=>{g.forEach(v=>{u(v)})})})};return{batch:g=>{let v;i++;try{v=g()}finally{i--,i||h()}return v},batchCalls:g=>(...v)=>{f(()=>{g(...v)})},schedule:f,setNotifyFunction:g=>{u=g},setBatchNotifyFunction:g=>{r=g},setScheduler:g=>{o=g}}}var tt=d1(),Vl,va,Zl,Ap,h1=(Ap=class extends si{constructor(){super();te(this,Vl,!0);te(this,va);te(this,Zl);J(this,Zl,i=>{if(!ll&&window.addEventListener){const u=()=>i(!0),r=()=>i(!1);return window.addEventListener("online",u,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",u),window.removeEventListener("offline",r)}}})}onSubscribe(){E(this,va)||this.setEventListener(E(this,Zl))}onUnsubscribe(){var i;this.hasListeners()||((i=E(this,va))==null||i.call(this),J(this,va,void 0))}setEventListener(i){var u;J(this,Zl,i),(u=E(this,va))==null||u.call(this),J(this,va,i(this.setOnline.bind(this)))}setOnline(i){E(this,Vl)!==i&&(J(this,Vl,i),this.listeners.forEach(r=>{r(i)}))}isOnline(){return E(this,Vl)}},Vl=new WeakMap,va=new WeakMap,Zl=new WeakMap,Ap),Is=new h1;function m1(l){return Math.min(1e3*2**l,3e4)}function i0(l){return(l??"online")==="online"?Is.isOnline():!0}var Fo=class extends Error{constructor(l){super("CancelledError"),this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent}};function u0(l){let i=!1,u=0,r;const o=Jo(),f=()=>o.status!=="pending",h=D=>{var j;if(!f()){const H=new Fo(D);A(H),(j=l.onCancel)==null||j.call(l,H)}},g=()=>{i=!0},v=()=>{i=!1},p=()=>Ef.isFocused()&&(l.networkMode==="always"||Is.isOnline())&&l.canRun(),x=()=>i0(l.networkMode)&&l.canRun(),b=D=>{f()||(r==null||r(),o.resolve(D))},A=D=>{f()||(r==null||r(),o.reject(D))},G=()=>new Promise(D=>{var j;r=H=>{(f()||p())&&D(H)},(j=l.onPause)==null||j.call(l)}).then(()=>{var D;r=void 0,f()||(D=l.onContinue)==null||D.call(l)}),N=()=>{if(f())return;let D;const j=u===0?l.initialPromise:void 0;try{D=j??l.fn()}catch(H){D=Promise.reject(H)}Promise.resolve(D).then(b).catch(H=>{var ne;if(f())return;const X=l.retry??(ll?0:3),K=l.retryDelay??m1,k=typeof K=="function"?K(u,H):K,F=X===!0||typeof X=="number"&&u<X||typeof X=="function"&&X(u,H);if(i||!F){A(H);return}u++,(ne=l.onFail)==null||ne.call(l,u,H),u1(k).then(()=>p()?void 0:G()).then(()=>{i?A(H):N()})})};return{promise:o,status:()=>o.status,cancel:h,continue:()=>(r==null||r(),o),cancelRetry:g,continueRetry:v,canStart:x,start:()=>(x()?N():G().then(N),o)}}var Fa,wp,s0=(wp=class{constructor(){te(this,Fa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Xo(this.gcTime)&&J(this,Fa,Va.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(ll?1/0:300*1e3))}clearGcTimeout(){E(this,Fa)&&(Va.clearTimeout(E(this,Fa)),J(this,Fa,void 0))}},Fa=new WeakMap,wp),$a,Jl,$t,Wa,lt,cu,Pa,nn,qn,Cp,y1=(Cp=class extends s0{constructor(i){super();te(this,nn);te(this,$a);te(this,Jl);te(this,$t);te(this,Wa);te(this,lt);te(this,cu);te(this,Pa);J(this,Pa,!1),J(this,cu,i.defaultOptions),this.setOptions(i.options),this.observers=[],J(this,Wa,i.client),J(this,$t,E(this,Wa).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,J(this,$a,tp(this.options)),this.state=i.state??E(this,$a),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var i;return(i=E(this,lt))==null?void 0:i.promise}setOptions(i){if(this.options={...E(this,cu),...i},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const u=tp(this.options);u.data!==void 0&&(this.setState(ep(u.data,u.dataUpdatedAt)),J(this,$a,u))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,$t).remove(this)}setData(i,u){const r=Zo(this.state.data,i,this.options);return de(this,nn,qn).call(this,{data:r,type:"success",dataUpdatedAt:u==null?void 0:u.updatedAt,manual:u==null?void 0:u.manual}),r}setState(i,u){de(this,nn,qn).call(this,{type:"setState",state:i,setStateOptions:u})}cancel(i){var r,o;const u=(r=E(this,lt))==null?void 0:r.promise;return(o=E(this,lt))==null||o.cancel(i),u?u.then(pt).catch(pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(E(this,$a))}isActive(){return this.observers.some(i=>Wt(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>Na(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!n0(this.state.dataUpdatedAt,i)}onFocus(){var u;const i=this.observers.find(r=>r.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(u=E(this,lt))==null||u.continue()}onOnline(){var u;const i=this.observers.find(r=>r.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(u=E(this,lt))==null||u.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),E(this,$t).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(u=>u!==i),this.observers.length||(E(this,lt)&&(E(this,Pa)?E(this,lt).cancel({revert:!0}):E(this,lt).cancelRetry()),this.scheduleGc()),E(this,$t).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||de(this,nn,qn).call(this,{type:"invalidate"})}async fetch(i,u){var v,p,x,b,A,G,N,D,j,H,X,K;if(this.state.fetchStatus!=="idle"&&((v=E(this,lt))==null?void 0:v.status())!=="rejected"){if(this.state.data!==void 0&&(u!=null&&u.cancelRefetch))this.cancel({silent:!0});else if(E(this,lt))return E(this,lt).continueRetry(),E(this,lt).promise}if(i&&this.setOptions(i),!this.options.queryFn){const k=this.observers.find(F=>F.options.queryFn);k&&this.setOptions(k.options)}const r=new AbortController,o=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(J(this,Pa,!0),r.signal)})},f=()=>{const k=l0(this.options,u),ne=(()=>{const $={client:E(this,Wa),queryKey:this.queryKey,meta:this.meta};return o($),$})();return J(this,Pa,!1),this.options.persister?this.options.persister(k,ne,this):k(ne)},g=(()=>{const k={fetchOptions:u,options:this.options,queryKey:this.queryKey,client:E(this,Wa),state:this.state,fetchFn:f};return o(k),k})();(p=this.options.behavior)==null||p.onFetch(g,this),J(this,Jl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=g.fetchOptions)==null?void 0:x.meta))&&de(this,nn,qn).call(this,{type:"fetch",meta:(b=g.fetchOptions)==null?void 0:b.meta}),J(this,lt,u0({initialPromise:u==null?void 0:u.initialPromise,fn:g.fetchFn,onCancel:k=>{k instanceof Fo&&k.revert&&this.setState({...E(this,Jl),fetchStatus:"idle"}),r.abort()},onFail:(k,F)=>{de(this,nn,qn).call(this,{type:"failed",failureCount:k,error:F})},onPause:()=>{de(this,nn,qn).call(this,{type:"pause"})},onContinue:()=>{de(this,nn,qn).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const k=await E(this,lt).start();if(k===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(k),(G=(A=E(this,$t).config).onSuccess)==null||G.call(A,k,this),(D=(N=E(this,$t).config).onSettled)==null||D.call(N,k,this.state.error,this),k}catch(k){if(k instanceof Fo){if(k.silent)return E(this,lt).promise;if(k.revert){if(this.state.data===void 0)throw k;return this.state.data}}throw de(this,nn,qn).call(this,{type:"error",error:k}),(H=(j=E(this,$t).config).onError)==null||H.call(j,k,this),(K=(X=E(this,$t).config).onSettled)==null||K.call(X,this.state.data,k,this),k}finally{this.scheduleGc()}}},$a=new WeakMap,Jl=new WeakMap,$t=new WeakMap,Wa=new WeakMap,lt=new WeakMap,cu=new WeakMap,Pa=new WeakMap,nn=new WeakSet,qn=function(i){const u=r=>{switch(i.type){case"failed":return{...r,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...r0(r.data,this.options),fetchMeta:i.meta??null};case"success":const o={...r,...ep(i.data,i.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return J(this,Jl,i.manual?o:void 0),o;case"error":const f=i.error;return{...r,error:f,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...i.state}}};this.state=u(this.state),tt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),E(this,$t).notify({query:this,type:"updated",action:i})})},Cp);function r0(l,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:i0(i.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function ep(l,i){return{data:l,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function tp(l){const i=typeof l.initialData=="function"?l.initialData():l.initialData,u=i!==void 0,r=u?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:u?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:u?"success":"pending",fetchStatus:"idle"}}var Tt,be,ou,yt,Ia,Fl,Ln,ba,fu,$l,Wl,el,tl,xa,Pl,Oe,uu,$o,Wo,Po,Io,ef,tf,nf,c0,_p,p1=(_p=class extends si{constructor(i,u){super();te(this,Oe);te(this,Tt);te(this,be);te(this,ou);te(this,yt);te(this,Ia);te(this,Fl);te(this,Ln);te(this,ba);te(this,fu);te(this,$l);te(this,Wl);te(this,el);te(this,tl);te(this,xa);te(this,Pl,new Set);this.options=u,J(this,Tt,i),J(this,ba,null),J(this,Ln,Jo()),this.bindMethods(),this.setOptions(u)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,be).addObserver(this),np(E(this,be),this.options)?de(this,Oe,uu).call(this):this.updateResult(),de(this,Oe,Io).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return af(E(this,be),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return af(E(this,be),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,de(this,Oe,ef).call(this),de(this,Oe,tf).call(this),E(this,be).removeObserver(this)}setOptions(i){const u=this.options,r=E(this,be);if(this.options=E(this,Tt).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Wt(this.options.enabled,E(this,be))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");de(this,Oe,nf).call(this),E(this,be).setOptions(this.options),u._defaulted&&!Ps(this.options,u)&&E(this,Tt).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,be),observer:this});const o=this.hasListeners();o&&ap(E(this,be),r,this.options,u)&&de(this,Oe,uu).call(this),this.updateResult(),o&&(E(this,be)!==r||Wt(this.options.enabled,E(this,be))!==Wt(u.enabled,E(this,be))||Na(this.options.staleTime,E(this,be))!==Na(u.staleTime,E(this,be)))&&de(this,Oe,$o).call(this);const f=de(this,Oe,Wo).call(this);o&&(E(this,be)!==r||Wt(this.options.enabled,E(this,be))!==Wt(u.enabled,E(this,be))||f!==E(this,xa))&&de(this,Oe,Po).call(this,f)}getOptimisticResult(i){const u=E(this,Tt).getQueryCache().build(E(this,Tt),i),r=this.createResult(u,i);return v1(this,r)&&(J(this,yt,r),J(this,Fl,this.options),J(this,Ia,E(this,be).state)),r}getCurrentResult(){return E(this,yt)}trackResult(i,u){return new Proxy(i,{get:(r,o)=>(this.trackProp(o),u==null||u(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,Ln).status==="pending"&&E(this,Ln).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(i){E(this,Pl).add(i)}getCurrentQuery(){return E(this,be)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const u=E(this,Tt).defaultQueryOptions(i),r=E(this,Tt).getQueryCache().build(E(this,Tt),u);return r.fetch().then(()=>this.createResult(r,u))}fetch(i){return de(this,Oe,uu).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,yt)))}createResult(i,u){var fe;const r=E(this,be),o=this.options,f=E(this,yt),h=E(this,Ia),g=E(this,Fl),p=i!==r?i.state:E(this,ou),{state:x}=i;let b={...x},A=!1,G;if(u._optimisticResults){const je=this.hasListeners(),Qe=!je&&np(i,u),qe=je&&ap(i,r,u,o);(Qe||qe)&&(b={...b,...r0(x.data,i.options)}),u._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:N,errorUpdatedAt:D,status:j}=b;G=b.data;let H=!1;if(u.placeholderData!==void 0&&G===void 0&&j==="pending"){let je;f!=null&&f.isPlaceholderData&&u.placeholderData===(g==null?void 0:g.placeholderData)?(je=f.data,H=!0):je=typeof u.placeholderData=="function"?u.placeholderData((fe=E(this,Wl))==null?void 0:fe.state.data,E(this,Wl)):u.placeholderData,je!==void 0&&(j="success",G=Zo(f==null?void 0:f.data,je,u),A=!0)}if(u.select&&G!==void 0&&!H)if(f&&G===(h==null?void 0:h.data)&&u.select===E(this,fu))G=E(this,$l);else try{J(this,fu,u.select),G=u.select(G),G=Zo(f==null?void 0:f.data,G,u),J(this,$l,G),J(this,ba,null)}catch(je){J(this,ba,je)}E(this,ba)&&(N=E(this,ba),G=E(this,$l),D=Date.now(),j="error");const X=b.fetchStatus==="fetching",K=j==="pending",k=j==="error",F=K&&X,ne=G!==void 0,le={status:j,fetchStatus:b.fetchStatus,isPending:K,isSuccess:j==="success",isError:k,isInitialLoading:F,isLoading:F,data:G,dataUpdatedAt:b.dataUpdatedAt,error:N,errorUpdatedAt:D,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>p.dataUpdateCount||b.errorUpdateCount>p.errorUpdateCount,isFetching:X,isRefetching:X&&!K,isLoadingError:k&&!ne,isPaused:b.fetchStatus==="paused",isPlaceholderData:A,isRefetchError:k&&ne,isStale:Rf(i,u),refetch:this.refetch,promise:E(this,Ln),isEnabled:Wt(u.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const je=le.data!==void 0,Qe=le.status==="error"&&!je,qe=_e=>{Qe?_e.reject(le.error):je&&_e.resolve(le.data)},Ie=()=>{const _e=J(this,Ln,le.promise=Jo());qe(_e)},Le=E(this,Ln);switch(Le.status){case"pending":i.queryHash===r.queryHash&&qe(Le);break;case"fulfilled":(Qe||le.data!==Le.value)&&Ie();break;case"rejected":(!Qe||le.error!==Le.reason)&&Ie();break}}return le}updateResult(){const i=E(this,yt),u=this.createResult(E(this,be),this.options);if(J(this,Ia,E(this,be).state),J(this,Fl,this.options),E(this,Ia).data!==void 0&&J(this,Wl,E(this,be)),Ps(u,i))return;J(this,yt,u);const r=()=>{if(!i)return!0;const{notifyOnChangeProps:o}=this.options,f=typeof o=="function"?o():o;if(f==="all"||!f&&!E(this,Pl).size)return!0;const h=new Set(f??E(this,Pl));return this.options.throwOnError&&h.add("error"),Object.keys(E(this,yt)).some(g=>{const v=g;return E(this,yt)[v]!==i[v]&&h.has(v)})};de(this,Oe,c0).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&de(this,Oe,Io).call(this)}},Tt=new WeakMap,be=new WeakMap,ou=new WeakMap,yt=new WeakMap,Ia=new WeakMap,Fl=new WeakMap,Ln=new WeakMap,ba=new WeakMap,fu=new WeakMap,$l=new WeakMap,Wl=new WeakMap,el=new WeakMap,tl=new WeakMap,xa=new WeakMap,Pl=new WeakMap,Oe=new WeakSet,uu=function(i){de(this,Oe,nf).call(this);let u=E(this,be).fetch(this.options,i);return i!=null&&i.throwOnError||(u=u.catch(pt)),u},$o=function(){de(this,Oe,ef).call(this);const i=Na(this.options.staleTime,E(this,be));if(ll||E(this,yt).isStale||!Xo(i))return;const r=n0(E(this,yt).dataUpdatedAt,i)+1;J(this,el,Va.setTimeout(()=>{E(this,yt).isStale||this.updateResult()},r))},Wo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,be)):this.options.refetchInterval)??!1},Po=function(i){de(this,Oe,tf).call(this),J(this,xa,i),!(ll||Wt(this.options.enabled,E(this,be))===!1||!Xo(E(this,xa))||E(this,xa)===0)&&J(this,tl,Va.setInterval(()=>{(this.options.refetchIntervalInBackground||Ef.isFocused())&&de(this,Oe,uu).call(this)},E(this,xa)))},Io=function(){de(this,Oe,$o).call(this),de(this,Oe,Po).call(this,de(this,Oe,Wo).call(this))},ef=function(){E(this,el)&&(Va.clearTimeout(E(this,el)),J(this,el,void 0))},tf=function(){E(this,tl)&&(Va.clearInterval(E(this,tl)),J(this,tl,void 0))},nf=function(){const i=E(this,Tt).getQueryCache().build(E(this,Tt),this.options);if(i===E(this,be))return;const u=E(this,be);J(this,be,i),J(this,ou,i.state),this.hasListeners()&&(u==null||u.removeObserver(this),i.addObserver(this))},c0=function(i){tt.batch(()=>{i.listeners&&this.listeners.forEach(u=>{u(E(this,yt))}),E(this,Tt).getQueryCache().notify({query:E(this,be),type:"observerResultsUpdated"})})},_p);function g1(l,i){return Wt(i.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&i.retryOnMount===!1)}function np(l,i){return g1(l,i)||l.state.data!==void 0&&af(l,i,i.refetchOnMount)}function af(l,i,u){if(Wt(i.enabled,l)!==!1&&Na(i.staleTime,l)!=="static"){const r=typeof u=="function"?u(l):u;return r==="always"||r!==!1&&Rf(l,i)}return!1}function ap(l,i,u,r){return(l!==i||Wt(r.enabled,l)===!1)&&(!u.suspense||l.state.status!=="error")&&Rf(l,u)}function Rf(l,i){return Wt(i.enabled,l)!==!1&&l.isStaleByTime(Na(i.staleTime,l))}function v1(l,i){return!Ps(l.getCurrentResult(),i)}function lp(l){return{onFetch:(i,u)=>{var x,b,A,G,N;const r=i.options,o=(A=(b=(x=i.fetchOptions)==null?void 0:x.meta)==null?void 0:b.fetchMore)==null?void 0:A.direction,f=((G=i.state.data)==null?void 0:G.pages)||[],h=((N=i.state.data)==null?void 0:N.pageParams)||[];let g={pages:[],pageParams:[]},v=0;const p=async()=>{let D=!1;const j=K=>{c1(K,()=>i.signal,()=>D=!0)},H=l0(i.options,i.fetchOptions),X=async(K,k,F)=>{if(D)return Promise.reject();if(k==null&&K.pages.length)return Promise.resolve(K);const $=(()=>{const Qe={client:i.client,queryKey:i.queryKey,pageParam:k,direction:F?"backward":"forward",meta:i.options.meta};return j(Qe),Qe})(),le=await H($),{maxPages:fe}=i.options,je=F?r1:s1;return{pages:je(K.pages,le,fe),pageParams:je(K.pageParams,k,fe)}};if(o&&f.length){const K=o==="backward",k=K?b1:ip,F={pages:f,pageParams:h},ne=k(r,F);g=await X(F,ne,K)}else{const K=l??f.length;do{const k=v===0?h[0]??r.initialPageParam:ip(r,g);if(v>0&&k==null)break;g=await X(g,k),v++}while(v<K)}return g};i.options.persister?i.fetchFn=()=>{var D,j;return(j=(D=i.options).persister)==null?void 0:j.call(D,p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},u)}:i.fetchFn=p}}}function ip(l,{pages:i,pageParams:u}){const r=i.length-1;return i.length>0?l.getNextPageParam(i[r],i,u[r],u):void 0}function b1(l,{pages:i,pageParams:u}){var r;return i.length>0?(r=l.getPreviousPageParam)==null?void 0:r.call(l,i[0],i,u[0],u):void 0}var du,mn,ft,nl,yn,ya,Dp,x1=(Dp=class extends s0{constructor(i){super();te(this,yn);te(this,du);te(this,mn);te(this,ft);te(this,nl);J(this,du,i.client),this.mutationId=i.mutationId,J(this,ft,i.mutationCache),J(this,mn,[]),this.state=i.state||o0(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){E(this,mn).includes(i)||(E(this,mn).push(i),this.clearGcTimeout(),E(this,ft).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){J(this,mn,E(this,mn).filter(u=>u!==i)),this.scheduleGc(),E(this,ft).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){E(this,mn).length||(this.state.status==="pending"?this.scheduleGc():E(this,ft).remove(this))}continue(){var i;return((i=E(this,nl))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var h,g,v,p,x,b,A,G,N,D,j,H,X,K,k,F,ne,$;const u=()=>{de(this,yn,ya).call(this,{type:"continue"})},r={client:E(this,du),meta:this.options.meta,mutationKey:this.options.mutationKey};J(this,nl,u0({fn:()=>this.options.mutationFn?this.options.mutationFn(i,r):Promise.reject(new Error("No mutationFn found")),onFail:(le,fe)=>{de(this,yn,ya).call(this,{type:"failed",failureCount:le,error:fe})},onPause:()=>{de(this,yn,ya).call(this,{type:"pause"})},onContinue:u,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,ft).canRun(this)}));const o=this.state.status==="pending",f=!E(this,nl).canStart();try{if(o)u();else{de(this,yn,ya).call(this,{type:"pending",variables:i,isPaused:f}),E(this,ft).config.onMutate&&await E(this,ft).config.onMutate(i,this,r);const fe=await((g=(h=this.options).onMutate)==null?void 0:g.call(h,i,r));fe!==this.state.context&&de(this,yn,ya).call(this,{type:"pending",context:fe,variables:i,isPaused:f})}const le=await E(this,nl).start();return await((p=(v=E(this,ft).config).onSuccess)==null?void 0:p.call(v,le,i,this.state.context,this,r)),await((b=(x=this.options).onSuccess)==null?void 0:b.call(x,le,i,this.state.context,r)),await((G=(A=E(this,ft).config).onSettled)==null?void 0:G.call(A,le,null,this.state.variables,this.state.context,this,r)),await((D=(N=this.options).onSettled)==null?void 0:D.call(N,le,null,i,this.state.context,r)),de(this,yn,ya).call(this,{type:"success",data:le}),le}catch(le){try{await((H=(j=E(this,ft).config).onError)==null?void 0:H.call(j,le,i,this.state.context,this,r))}catch(fe){Promise.reject(fe)}try{await((K=(X=this.options).onError)==null?void 0:K.call(X,le,i,this.state.context,r))}catch(fe){Promise.reject(fe)}try{await((F=(k=E(this,ft).config).onSettled)==null?void 0:F.call(k,void 0,le,this.state.variables,this.state.context,this,r))}catch(fe){Promise.reject(fe)}try{await(($=(ne=this.options).onSettled)==null?void 0:$.call(ne,void 0,le,i,this.state.context,r))}catch(fe){Promise.reject(fe)}throw de(this,yn,ya).call(this,{type:"error",error:le}),le}finally{E(this,ft).runNext(this)}}},du=new WeakMap,mn=new WeakMap,ft=new WeakMap,nl=new WeakMap,yn=new WeakSet,ya=function(i){const u=r=>{switch(i.type){case"failed":return{...r,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...r,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:i.error,failureCount:r.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=u(this.state),tt.batch(()=>{E(this,mn).forEach(r=>{r.onMutationUpdate(i)}),E(this,ft).notify({mutation:this,type:"updated",action:i})})},Dp);function o0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Hn,an,hu,zp,S1=(zp=class extends si{constructor(i={}){super();te(this,Hn);te(this,an);te(this,hu);this.config=i,J(this,Hn,new Set),J(this,an,new Map),J(this,hu,0)}build(i,u,r){const o=new x1({client:i,mutationCache:this,mutationId:++Bs(this,hu)._,options:i.defaultMutationOptions(u),state:r});return this.add(o),o}add(i){E(this,Hn).add(i);const u=Gs(i);if(typeof u=="string"){const r=E(this,an).get(u);r?r.push(i):E(this,an).set(u,[i])}this.notify({type:"added",mutation:i})}remove(i){if(E(this,Hn).delete(i)){const u=Gs(i);if(typeof u=="string"){const r=E(this,an).get(u);if(r)if(r.length>1){const o=r.indexOf(i);o!==-1&&r.splice(o,1)}else r[0]===i&&E(this,an).delete(u)}}this.notify({type:"removed",mutation:i})}canRun(i){const u=Gs(i);if(typeof u=="string"){const r=E(this,an).get(u),o=r==null?void 0:r.find(f=>f.state.status==="pending");return!o||o===i}else return!0}runNext(i){var r;const u=Gs(i);if(typeof u=="string"){const o=(r=E(this,an).get(u))==null?void 0:r.find(f=>f!==i&&f.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){tt.batch(()=>{E(this,Hn).forEach(i=>{this.notify({type:"removed",mutation:i})}),E(this,Hn).clear(),E(this,an).clear()})}getAll(){return Array.from(E(this,Hn))}find(i){const u={exact:!0,...i};return this.getAll().find(r=>Wy(u,r))}findAll(i={}){return this.getAll().filter(u=>Wy(i,u))}notify(i){tt.batch(()=>{this.listeners.forEach(u=>{u(i)})})}resumePausedMutations(){const i=this.getAll().filter(u=>u.state.isPaused);return tt.batch(()=>Promise.all(i.map(u=>u.continue().catch(pt))))}},Hn=new WeakMap,an=new WeakMap,hu=new WeakMap,zp);function Gs(l){var i;return(i=l.options.scope)==null?void 0:i.id}var Bn,Sa,Nt,Qn,Gn,Zs,lf,Mp,E1=(Mp=class extends si{constructor(u,r){super();te(this,Gn);te(this,Bn);te(this,Sa);te(this,Nt);te(this,Qn);J(this,Bn,u),this.setOptions(r),this.bindMethods(),de(this,Gn,Zs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(u){var o;const r=this.options;this.options=E(this,Bn).defaultMutationOptions(u),Ps(this.options,r)||E(this,Bn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,Nt),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&il(r.mutationKey)!==il(this.options.mutationKey)?this.reset():((o=E(this,Nt))==null?void 0:o.state.status)==="pending"&&E(this,Nt).setOptions(this.options)}onUnsubscribe(){var u;this.hasListeners()||(u=E(this,Nt))==null||u.removeObserver(this)}onMutationUpdate(u){de(this,Gn,Zs).call(this),de(this,Gn,lf).call(this,u)}getCurrentResult(){return E(this,Sa)}reset(){var u;(u=E(this,Nt))==null||u.removeObserver(this),J(this,Nt,void 0),de(this,Gn,Zs).call(this),de(this,Gn,lf).call(this)}mutate(u,r){var o;return J(this,Qn,r),(o=E(this,Nt))==null||o.removeObserver(this),J(this,Nt,E(this,Bn).getMutationCache().build(E(this,Bn),this.options)),E(this,Nt).addObserver(this),E(this,Nt).execute(u)}},Bn=new WeakMap,Sa=new WeakMap,Nt=new WeakMap,Qn=new WeakMap,Gn=new WeakSet,Zs=function(){var r;const u=((r=E(this,Nt))==null?void 0:r.state)??o0();J(this,Sa,{...u,isPending:u.status==="pending",isSuccess:u.status==="success",isError:u.status==="error",isIdle:u.status==="idle",mutate:this.mutate,reset:this.reset})},lf=function(u){tt.batch(()=>{var r,o,f,h,g,v,p,x;if(E(this,Qn)&&this.hasListeners()){const b=E(this,Sa).variables,A=E(this,Sa).context,G={client:E(this,Bn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((u==null?void 0:u.type)==="success"){try{(o=(r=E(this,Qn)).onSuccess)==null||o.call(r,u.data,b,A,G)}catch(N){Promise.reject(N)}try{(h=(f=E(this,Qn)).onSettled)==null||h.call(f,u.data,null,b,A,G)}catch(N){Promise.reject(N)}}else if((u==null?void 0:u.type)==="error"){try{(v=(g=E(this,Qn)).onError)==null||v.call(g,u.error,b,A,G)}catch(N){Promise.reject(N)}try{(x=(p=E(this,Qn)).onSettled)==null||x.call(p,void 0,u.error,b,A,G)}catch(N){Promise.reject(N)}}}this.listeners.forEach(b=>{b(E(this,Sa))})})},Mp),pn,Up,R1=(Up=class extends si{constructor(i={}){super();te(this,pn);this.config=i,J(this,pn,new Map)}build(i,u,r){const o=u.queryKey,f=u.queryHash??bf(o,u);let h=this.get(f);return h||(h=new y1({client:i,queryKey:o,queryHash:f,options:i.defaultQueryOptions(u),state:r,defaultOptions:i.getQueryDefaults(o)}),this.add(h)),h}add(i){E(this,pn).has(i.queryHash)||(E(this,pn).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const u=E(this,pn).get(i.queryHash);u&&(i.destroy(),u===i&&E(this,pn).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){tt.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return E(this,pn).get(i)}getAll(){return[...E(this,pn).values()]}find(i){const u={exact:!0,...i};return this.getAll().find(r=>$y(u,r))}findAll(i={}){const u=this.getAll();return Object.keys(i).length>0?u.filter(r=>$y(i,r)):u}notify(i){tt.batch(()=>{this.listeners.forEach(u=>{u(i)})})}onFocus(){tt.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){tt.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},pn=new WeakMap,Up),Xe,Ea,Ra,Il,ei,Ta,ti,ni,qp,T1=(qp=class{constructor(l={}){te(this,Xe);te(this,Ea);te(this,Ra);te(this,Il);te(this,ei);te(this,Ta);te(this,ti);te(this,ni);J(this,Xe,l.queryCache||new R1),J(this,Ea,l.mutationCache||new S1),J(this,Ra,l.defaultOptions||{}),J(this,Il,new Map),J(this,ei,new Map),J(this,Ta,0)}mount(){Bs(this,Ta)._++,E(this,Ta)===1&&(J(this,ti,Ef.subscribe(async l=>{l&&(await this.resumePausedMutations(),E(this,Xe).onFocus())})),J(this,ni,Is.subscribe(async l=>{l&&(await this.resumePausedMutations(),E(this,Xe).onOnline())})))}unmount(){var l,i;Bs(this,Ta)._--,E(this,Ta)===0&&((l=E(this,ti))==null||l.call(this),J(this,ti,void 0),(i=E(this,ni))==null||i.call(this),J(this,ni,void 0))}isFetching(l){return E(this,Xe).findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return E(this,Ea).findAll({...l,status:"pending"}).length}getQueryData(l){var u;const i=this.defaultQueryOptions({queryKey:l});return(u=E(this,Xe).get(i.queryHash))==null?void 0:u.state.data}ensureQueryData(l){const i=this.defaultQueryOptions(l),u=E(this,Xe).build(this,i),r=u.state.data;return r===void 0?this.fetchQuery(l):(l.revalidateIfStale&&u.isStaleByTime(Na(i.staleTime,u))&&this.prefetchQuery(i),Promise.resolve(r))}getQueriesData(l){return E(this,Xe).findAll(l).map(({queryKey:i,state:u})=>{const r=u.data;return[i,r]})}setQueryData(l,i,u){const r=this.defaultQueryOptions({queryKey:l}),o=E(this,Xe).get(r.queryHash),f=o==null?void 0:o.state.data,h=l1(i,f);if(h!==void 0)return E(this,Xe).build(this,r).setData(h,{...u,manual:!0})}setQueriesData(l,i,u){return tt.batch(()=>E(this,Xe).findAll(l).map(({queryKey:r})=>[r,this.setQueryData(r,i,u)]))}getQueryState(l){var u;const i=this.defaultQueryOptions({queryKey:l});return(u=E(this,Xe).get(i.queryHash))==null?void 0:u.state}removeQueries(l){const i=E(this,Xe);tt.batch(()=>{i.findAll(l).forEach(u=>{i.remove(u)})})}resetQueries(l,i){const u=E(this,Xe);return tt.batch(()=>(u.findAll(l).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...l},i)))}cancelQueries(l,i={}){const u={revert:!0,...i},r=tt.batch(()=>E(this,Xe).findAll(l).map(o=>o.cancel(u)));return Promise.all(r).then(pt).catch(pt)}invalidateQueries(l,i={}){return tt.batch(()=>(E(this,Xe).findAll(l).forEach(u=>{u.invalidate()}),(l==null?void 0:l.refetchType)==="none"?Promise.resolve():this.refetchQueries({...l,type:(l==null?void 0:l.refetchType)??(l==null?void 0:l.type)??"active"},i)))}refetchQueries(l,i={}){const u={...i,cancelRefetch:i.cancelRefetch??!0},r=tt.batch(()=>E(this,Xe).findAll(l).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let f=o.fetch(void 0,u);return u.throwOnError||(f=f.catch(pt)),o.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(pt)}fetchQuery(l){const i=this.defaultQueryOptions(l);i.retry===void 0&&(i.retry=!1);const u=E(this,Xe).build(this,i);return u.isStaleByTime(Na(i.staleTime,u))?u.fetch(i):Promise.resolve(u.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(pt).catch(pt)}fetchInfiniteQuery(l){return l.behavior=lp(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(pt).catch(pt)}ensureInfiniteQueryData(l){return l.behavior=lp(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return Is.isOnline()?E(this,Ea).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,Xe)}getMutationCache(){return E(this,Ea)}getDefaultOptions(){return E(this,Ra)}setDefaultOptions(l){J(this,Ra,l)}setQueryDefaults(l,i){E(this,Il).set(il(l),{queryKey:l,defaultOptions:i})}getQueryDefaults(l){const i=[...E(this,Il).values()],u={};return i.forEach(r=>{ru(l,r.queryKey)&&Object.assign(u,r.defaultOptions)}),u}setMutationDefaults(l,i){E(this,ei).set(il(l),{mutationKey:l,defaultOptions:i})}getMutationDefaults(l){const i=[...E(this,ei).values()],u={};return i.forEach(r=>{ru(l,r.mutationKey)&&Object.assign(u,r.defaultOptions)}),u}defaultQueryOptions(l){if(l._defaulted)return l;const i={...E(this,Ra).queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return i.queryHash||(i.queryHash=bf(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===xf&&(i.enabled=!1),i}defaultMutationOptions(l){return l!=null&&l._defaulted?l:{...E(this,Ra).mutations,...(l==null?void 0:l.mutationKey)&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){E(this,Xe).clear(),E(this,Ea).clear()}},Xe=new WeakMap,Ea=new WeakMap,Ra=new WeakMap,Il=new WeakMap,ei=new WeakMap,Ta=new WeakMap,ti=new WeakMap,ni=new WeakMap,qp),f0=C.createContext(void 0),d0=l=>{const i=C.useContext(f0);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},N1=({client:l,children:i})=>(C.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),m.jsx(f0.Provider,{value:l,children:i})),h0=C.createContext(!1),O1=()=>C.useContext(h0);h0.Provider;function j1(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var A1=C.createContext(j1()),w1=()=>C.useContext(A1),C1=(l,i,u)=>{const r=u!=null&&u.state.error&&typeof l.throwOnError=="function"?Sf(l.throwOnError,[u.state.error,u]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||r)&&(i.isReset()||(l.retryOnMount=!1))},_1=l=>{C.useEffect(()=>{l.clearReset()},[l])},D1=({result:l,errorResetBoundary:i,throwOnError:u,query:r,suspense:o})=>l.isError&&!i.isReset()&&!l.isFetching&&r&&(o&&l.data===void 0||Sf(u,[l.error,r])),z1=l=>{if(l.suspense){const u=o=>o==="static"?o:Math.max(o??1e3,1e3),r=l.staleTime;l.staleTime=typeof r=="function"?(...o)=>u(r(...o)):u(r),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},M1=(l,i)=>l.isLoading&&l.isFetching&&!i,U1=(l,i)=>(l==null?void 0:l.suspense)&&i.isPending,up=(l,i,u)=>i.fetchOptimistic(l).catch(()=>{u.clearReset()});function q1(l,i,u){var A,G,N,D;const r=O1(),o=w1(),f=d0(),h=f.defaultQueryOptions(l);(G=(A=f.getDefaultOptions().queries)==null?void 0:A._experimental_beforeQuery)==null||G.call(A,h);const g=f.getQueryCache().get(h.queryHash);h._optimisticResults=r?"isRestoring":"optimistic",z1(h),C1(h,o,g),_1(o);const v=!f.getQueryCache().get(h.queryHash),[p]=C.useState(()=>new i(f,h)),x=p.getOptimisticResult(h),b=!r&&l.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(j=>{const H=b?p.subscribe(tt.batchCalls(j)):pt;return p.updateResult(),H},[p,b]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),C.useEffect(()=>{p.setOptions(h)},[h,p]),U1(h,x))throw up(h,p,o);if(D1({result:x,errorResetBoundary:o,throwOnError:h.throwOnError,query:g,suspense:h.suspense}))throw x.error;if((D=(N=f.getDefaultOptions().queries)==null?void 0:N._experimental_afterQuery)==null||D.call(N,h,x),h.experimental_prefetchInRender&&!ll&&M1(x,r)){const j=v?up(h,p,o):g==null?void 0:g.promise;j==null||j.catch(pt).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?x:p.trackResult(x)}function Kn(l,i){return q1(l,p1)}function Tf(l,i){const u=d0(),[r]=C.useState(()=>new E1(u,l));C.useEffect(()=>{r.setOptions(l)},[r,l]);const o=C.useSyncExternalStore(C.useCallback(h=>r.subscribe(tt.batchCalls(h)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),f=C.useCallback((h,g)=>{r.mutate(h,g).catch(pt)},[r]);if(o.error&&Sf(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:f,mutateAsync:o.mutate}}function m0(l,i){return function(){return l.apply(i,arguments)}}const{toString:L1}=Object.prototype,{getPrototypeOf:Nf}=Object,{iterator:lr,toStringTag:y0}=Symbol,ir=(l=>i=>{const u=L1.call(i);return l[u]||(l[u]=u.slice(8,-1).toLowerCase())})(Object.create(null)),rn=l=>(l=l.toLowerCase(),i=>ir(i)===l),ur=l=>i=>typeof i===l,{isArray:ri}=Array,ai=ur("undefined");function pu(l){return l!==null&&!ai(l)&&l.constructor!==null&&!ai(l.constructor)&&Ot(l.constructor.isBuffer)&&l.constructor.isBuffer(l)}const p0=rn("ArrayBuffer");function H1(l){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(l):i=l&&l.buffer&&p0(l.buffer),i}const B1=ur("string"),Ot=ur("function"),g0=ur("number"),gu=l=>l!==null&&typeof l=="object",Q1=l=>l===!0||l===!1,Js=l=>{if(ir(l)!=="object")return!1;const i=Nf(l);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(y0 in l)&&!(lr in l)},G1=l=>{if(!gu(l)||pu(l))return!1;try{return Object.keys(l).length===0&&Object.getPrototypeOf(l)===Object.prototype}catch{return!1}},Y1=rn("Date"),K1=rn("File"),k1=l=>!!(l&&typeof l.uri<"u"),X1=l=>l&&typeof l.getParts<"u",V1=rn("Blob"),Z1=rn("FileList"),J1=l=>gu(l)&&Ot(l.pipe);function F1(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const sp=F1(),rp=typeof sp.FormData<"u"?sp.FormData:void 0,$1=l=>{let i;return l&&(rp&&l instanceof rp||Ot(l.append)&&((i=ir(l))==="formdata"||i==="object"&&Ot(l.toString)&&l.toString()==="[object FormData]"))},W1=rn("URLSearchParams"),[P1,I1,eS,tS]=["ReadableStream","Request","Response","Headers"].map(rn),nS=l=>l.trim?l.trim():l.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vu(l,i,{allOwnKeys:u=!1}={}){if(l===null||typeof l>"u")return;let r,o;if(typeof l!="object"&&(l=[l]),ri(l))for(r=0,o=l.length;r<o;r++)i.call(null,l[r],r,l);else{if(pu(l))return;const f=u?Object.getOwnPropertyNames(l):Object.keys(l),h=f.length;let g;for(r=0;r<h;r++)g=f[r],i.call(null,l[g],g,l)}}function v0(l,i){if(pu(l))return null;i=i.toLowerCase();const u=Object.keys(l);let r=u.length,o;for(;r-- >0;)if(o=u[r],i===o.toLowerCase())return o;return null}const Za=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,b0=l=>!ai(l)&&l!==Za;function uf(){const{caseless:l,skipUndefined:i}=b0(this)&&this||{},u={},r=(o,f)=>{if(f==="__proto__"||f==="constructor"||f==="prototype")return;const h=l&&v0(u,f)||f;Js(u[h])&&Js(o)?u[h]=uf(u[h],o):Js(o)?u[h]=uf({},o):ri(o)?u[h]=o.slice():(!i||!ai(o))&&(u[h]=o)};for(let o=0,f=arguments.length;o<f;o++)arguments[o]&&vu(arguments[o],r);return u}const aS=(l,i,u,{allOwnKeys:r}={})=>(vu(i,(o,f)=>{u&&Ot(o)?Object.defineProperty(l,f,{value:m0(o,u),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(l,f,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),l),lS=l=>(l.charCodeAt(0)===65279&&(l=l.slice(1)),l),iS=(l,i,u,r)=>{l.prototype=Object.create(i.prototype,r),Object.defineProperty(l.prototype,"constructor",{value:l,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(l,"super",{value:i.prototype}),u&&Object.assign(l.prototype,u)},uS=(l,i,u,r)=>{let o,f,h;const g={};if(i=i||{},l==null)return i;do{for(o=Object.getOwnPropertyNames(l),f=o.length;f-- >0;)h=o[f],(!r||r(h,l,i))&&!g[h]&&(i[h]=l[h],g[h]=!0);l=u!==!1&&Nf(l)}while(l&&(!u||u(l,i))&&l!==Object.prototype);return i},sS=(l,i,u)=>{l=String(l),(u===void 0||u>l.length)&&(u=l.length),u-=i.length;const r=l.indexOf(i,u);return r!==-1&&r===u},rS=l=>{if(!l)return null;if(ri(l))return l;let i=l.length;if(!g0(i))return null;const u=new Array(i);for(;i-- >0;)u[i]=l[i];return u},cS=(l=>i=>l&&i instanceof l)(typeof Uint8Array<"u"&&Nf(Uint8Array)),oS=(l,i)=>{const r=(l&&l[lr]).call(l);let o;for(;(o=r.next())&&!o.done;){const f=o.value;i.call(l,f[0],f[1])}},fS=(l,i)=>{let u;const r=[];for(;(u=l.exec(i))!==null;)r.push(u);return r},dS=rn("HTMLFormElement"),hS=l=>l.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(u,r,o){return r.toUpperCase()+o}),cp=(({hasOwnProperty:l})=>(i,u)=>l.call(i,u))(Object.prototype),mS=rn("RegExp"),x0=(l,i)=>{const u=Object.getOwnPropertyDescriptors(l),r={};vu(u,(o,f)=>{let h;(h=i(o,f,l))!==!1&&(r[f]=h||o)}),Object.defineProperties(l,r)},yS=l=>{x0(l,(i,u)=>{if(Ot(l)&&["arguments","caller","callee"].indexOf(u)!==-1)return!1;const r=l[u];if(Ot(r)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+u+"'")})}})},pS=(l,i)=>{const u={},r=o=>{o.forEach(f=>{u[f]=!0})};return ri(l)?r(l):r(String(l).split(i)),u},gS=()=>{},vS=(l,i)=>l!=null&&Number.isFinite(l=+l)?l:i;function bS(l){return!!(l&&Ot(l.append)&&l[y0]==="FormData"&&l[lr])}const xS=l=>{const i=new Array(10),u=(r,o)=>{if(gu(r)){if(i.indexOf(r)>=0)return;if(pu(r))return r;if(!("toJSON"in r)){i[o]=r;const f=ri(r)?[]:{};return vu(r,(h,g)=>{const v=u(h,o+1);!ai(v)&&(f[g]=v)}),i[o]=void 0,f}}return r};return u(l,0)},SS=rn("AsyncFunction"),ES=l=>l&&(gu(l)||Ot(l))&&Ot(l.then)&&Ot(l.catch),S0=((l,i)=>l?setImmediate:i?((u,r)=>(Za.addEventListener("message",({source:o,data:f})=>{o===Za&&f===u&&r.length&&r.shift()()},!1),o=>{r.push(o),Za.postMessage(u,"*")}))(`axios@${Math.random()}`,[]):u=>setTimeout(u))(typeof setImmediate=="function",Ot(Za.postMessage)),RS=typeof queueMicrotask<"u"?queueMicrotask.bind(Za):typeof process<"u"&&process.nextTick||S0,TS=l=>l!=null&&Ot(l[lr]),M={isArray:ri,isArrayBuffer:p0,isBuffer:pu,isFormData:$1,isArrayBufferView:H1,isString:B1,isNumber:g0,isBoolean:Q1,isObject:gu,isPlainObject:Js,isEmptyObject:G1,isReadableStream:P1,isRequest:I1,isResponse:eS,isHeaders:tS,isUndefined:ai,isDate:Y1,isFile:K1,isReactNativeBlob:k1,isReactNative:X1,isBlob:V1,isRegExp:mS,isFunction:Ot,isStream:J1,isURLSearchParams:W1,isTypedArray:cS,isFileList:Z1,forEach:vu,merge:uf,extend:aS,trim:nS,stripBOM:lS,inherits:iS,toFlatObject:uS,kindOf:ir,kindOfTest:rn,endsWith:sS,toArray:rS,forEachEntry:oS,matchAll:fS,isHTMLForm:dS,hasOwnProperty:cp,hasOwnProp:cp,reduceDescriptors:x0,freezeMethods:yS,toObjectSet:pS,toCamelCase:hS,noop:gS,toFiniteNumber:vS,findKey:v0,global:Za,isContextDefined:b0,isSpecCompliantForm:bS,toJSONObject:xS,isAsyncFn:SS,isThenable:ES,setImmediate:S0,asap:RS,isIterable:TS};let ue=class E0 extends Error{static from(i,u,r,o,f,h){const g=new E0(i.message,u||i.code,r,o,f);return g.cause=i,g.name=i.name,i.status!=null&&g.status==null&&(g.status=i.status),h&&Object.assign(g,h),g}constructor(i,u,r,o,f){super(i),Object.defineProperty(this,"message",{value:i,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,u&&(this.code=u),r&&(this.config=r),o&&(this.request=o),f&&(this.response=f,this.status=f.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.status}}};ue.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ue.ERR_BAD_OPTION="ERR_BAD_OPTION";ue.ECONNABORTED="ECONNABORTED";ue.ETIMEDOUT="ETIMEDOUT";ue.ERR_NETWORK="ERR_NETWORK";ue.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ue.ERR_DEPRECATED="ERR_DEPRECATED";ue.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ue.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ue.ERR_CANCELED="ERR_CANCELED";ue.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ue.ERR_INVALID_URL="ERR_INVALID_URL";const NS=null;function sf(l){return M.isPlainObject(l)||M.isArray(l)}function R0(l){return M.endsWith(l,"[]")?l.slice(0,-2):l}function Ho(l,i,u){return l?l.concat(i).map(function(o,f){return o=R0(o),!u&&f?"["+o+"]":o}).join(u?".":""):i}function OS(l){return M.isArray(l)&&!l.some(sf)}const jS=M.toFlatObject(M,{},null,function(i){return/^is[A-Z]/.test(i)});function sr(l,i,u){if(!M.isObject(l))throw new TypeError("target must be an object");i=i||new FormData,u=M.toFlatObject(u,{metaTokens:!0,dots:!1,indexes:!1},!1,function(D,j){return!M.isUndefined(j[D])});const r=u.metaTokens,o=u.visitor||x,f=u.dots,h=u.indexes,v=(u.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(i);if(!M.isFunction(o))throw new TypeError("visitor must be a function");function p(N){if(N===null)return"";if(M.isDate(N))return N.toISOString();if(M.isBoolean(N))return N.toString();if(!v&&M.isBlob(N))throw new ue("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(N)||M.isTypedArray(N)?v&&typeof Blob=="function"?new Blob([N]):Buffer.from(N):N}function x(N,D,j){let H=N;if(M.isReactNative(i)&&M.isReactNativeBlob(N))return i.append(Ho(j,D,f),p(N)),!1;if(N&&!j&&typeof N=="object"){if(M.endsWith(D,"{}"))D=r?D:D.slice(0,-2),N=JSON.stringify(N);else if(M.isArray(N)&&OS(N)||(M.isFileList(N)||M.endsWith(D,"[]"))&&(H=M.toArray(N)))return D=R0(D),H.forEach(function(K,k){!(M.isUndefined(K)||K===null)&&i.append(h===!0?Ho([D],k,f):h===null?D:D+"[]",p(K))}),!1}return sf(N)?!0:(i.append(Ho(j,D,f),p(N)),!1)}const b=[],A=Object.assign(jS,{defaultVisitor:x,convertValue:p,isVisitable:sf});function G(N,D){if(!M.isUndefined(N)){if(b.indexOf(N)!==-1)throw Error("Circular reference detected in "+D.join("."));b.push(N),M.forEach(N,function(H,X){(!(M.isUndefined(H)||H===null)&&o.call(i,H,M.isString(X)?X.trim():X,D,A))===!0&&G(H,D?D.concat(X):[X])}),b.pop()}}if(!M.isObject(l))throw new TypeError("data must be an object");return G(l),i}function op(l){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(l).replace(/[!'()~]|%20|%00/g,function(r){return i[r]})}function Of(l,i){this._pairs=[],l&&sr(l,this,i)}const T0=Of.prototype;T0.append=function(i,u){this._pairs.push([i,u])};T0.toString=function(i){const u=i?function(r){return i.call(this,r,op)}:op;return this._pairs.map(function(o){return u(o[0])+"="+u(o[1])},"").join("&")};function AS(l){return encodeURIComponent(l).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function N0(l,i,u){if(!i)return l;const r=u&&u.encode||AS,o=M.isFunction(u)?{serialize:u}:u,f=o&&o.serialize;let h;if(f?h=f(i,o):h=M.isURLSearchParams(i)?i.toString():new Of(i,o).toString(r),h){const g=l.indexOf("#");g!==-1&&(l=l.slice(0,g)),l+=(l.indexOf("?")===-1?"?":"&")+h}return l}class fp{constructor(){this.handlers=[]}use(i,u,r){return this.handlers.push({fulfilled:i,rejected:u,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){M.forEach(this.handlers,function(r){r!==null&&i(r)})}}const jf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},wS=typeof URLSearchParams<"u"?URLSearchParams:Of,CS=typeof FormData<"u"?FormData:null,_S=typeof Blob<"u"?Blob:null,DS={isBrowser:!0,classes:{URLSearchParams:wS,FormData:CS,Blob:_S},protocols:["http","https","file","blob","url","data"]},Af=typeof window<"u"&&typeof document<"u",rf=typeof navigator=="object"&&navigator||void 0,zS=Af&&(!rf||["ReactNative","NativeScript","NS"].indexOf(rf.product)<0),MS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",US=Af&&window.location.href||"http://localhost",qS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Af,hasStandardBrowserEnv:zS,hasStandardBrowserWebWorkerEnv:MS,navigator:rf,origin:US},Symbol.toStringTag,{value:"Module"})),dt={...qS,...DS};function LS(l,i){return sr(l,new dt.classes.URLSearchParams,{visitor:function(u,r,o,f){return dt.isNode&&M.isBuffer(u)?(this.append(r,u.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)},...i})}function HS(l){return M.matchAll(/\w+|\[(\w*)]/g,l).map(i=>i[0]==="[]"?"":i[1]||i[0])}function BS(l){const i={},u=Object.keys(l);let r;const o=u.length;let f;for(r=0;r<o;r++)f=u[r],i[f]=l[f];return i}function O0(l){function i(u,r,o,f){let h=u[f++];if(h==="__proto__")return!0;const g=Number.isFinite(+h),v=f>=u.length;return h=!h&&M.isArray(o)?o.length:h,v?(M.hasOwnProp(o,h)?o[h]=[o[h],r]:o[h]=r,!g):((!o[h]||!M.isObject(o[h]))&&(o[h]=[]),i(u,r,o[h],f)&&M.isArray(o[h])&&(o[h]=BS(o[h])),!g)}if(M.isFormData(l)&&M.isFunction(l.entries)){const u={};return M.forEachEntry(l,(r,o)=>{i(HS(r),o,u,0)}),u}return null}function QS(l,i,u){if(M.isString(l))try{return(i||JSON.parse)(l),M.trim(l)}catch(r){if(r.name!=="SyntaxError")throw r}return(u||JSON.stringify)(l)}const bu={transitional:jf,adapter:["xhr","http","fetch"],transformRequest:[function(i,u){const r=u.getContentType()||"",o=r.indexOf("application/json")>-1,f=M.isObject(i);if(f&&M.isHTMLForm(i)&&(i=new FormData(i)),M.isFormData(i))return o?JSON.stringify(O0(i)):i;if(M.isArrayBuffer(i)||M.isBuffer(i)||M.isStream(i)||M.isFile(i)||M.isBlob(i)||M.isReadableStream(i))return i;if(M.isArrayBufferView(i))return i.buffer;if(M.isURLSearchParams(i))return u.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let g;if(f){if(r.indexOf("application/x-www-form-urlencoded")>-1)return LS(i,this.formSerializer).toString();if((g=M.isFileList(i))||r.indexOf("multipart/form-data")>-1){const v=this.env&&this.env.FormData;return sr(g?{"files[]":i}:i,v&&new v,this.formSerializer)}}return f||o?(u.setContentType("application/json",!1),QS(i)):i}],transformResponse:[function(i){const u=this.transitional||bu.transitional,r=u&&u.forcedJSONParsing,o=this.responseType==="json";if(M.isResponse(i)||M.isReadableStream(i))return i;if(i&&M.isString(i)&&(r&&!this.responseType||o)){const h=!(u&&u.silentJSONParsing)&&o;try{return JSON.parse(i,this.parseReviver)}catch(g){if(h)throw g.name==="SyntaxError"?ue.from(g,ue.ERR_BAD_RESPONSE,this,null,this.response):g}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dt.classes.FormData,Blob:dt.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],l=>{bu.headers[l]={}});const GS=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),YS=l=>{const i={};let u,r,o;return l&&l.split(`
|
|
`).forEach(function(h){o=h.indexOf(":"),u=h.substring(0,o).trim().toLowerCase(),r=h.substring(o+1).trim(),!(!u||i[u]&&GS[u])&&(u==="set-cookie"?i[u]?i[u].push(r):i[u]=[r]:i[u]=i[u]?i[u]+", "+r:r)}),i},dp=Symbol("internals");function iu(l){return l&&String(l).trim().toLowerCase()}function Fs(l){return l===!1||l==null?l:M.isArray(l)?l.map(Fs):String(l)}function KS(l){const i=Object.create(null),u=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=u.exec(l);)i[r[1]]=r[2];return i}const kS=l=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(l.trim());function Bo(l,i,u,r,o){if(M.isFunction(r))return r.call(this,i,u);if(o&&(i=u),!!M.isString(i)){if(M.isString(r))return i.indexOf(r)!==-1;if(M.isRegExp(r))return r.test(i)}}function XS(l){return l.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,u,r)=>u.toUpperCase()+r)}function VS(l,i){const u=M.toCamelCase(" "+i);["get","set","has"].forEach(r=>{Object.defineProperty(l,r+u,{value:function(o,f,h){return this[r].call(this,i,o,f,h)},configurable:!0})})}let jt=class{constructor(i){i&&this.set(i)}set(i,u,r){const o=this;function f(g,v,p){const x=iu(v);if(!x)throw new Error("header name must be a non-empty string");const b=M.findKey(o,x);(!b||o[b]===void 0||p===!0||p===void 0&&o[b]!==!1)&&(o[b||v]=Fs(g))}const h=(g,v)=>M.forEach(g,(p,x)=>f(p,x,v));if(M.isPlainObject(i)||i instanceof this.constructor)h(i,u);else if(M.isString(i)&&(i=i.trim())&&!kS(i))h(YS(i),u);else if(M.isObject(i)&&M.isIterable(i)){let g={},v,p;for(const x of i){if(!M.isArray(x))throw TypeError("Object iterator must return a key-value pair");g[p=x[0]]=(v=g[p])?M.isArray(v)?[...v,x[1]]:[v,x[1]]:x[1]}h(g,u)}else i!=null&&f(u,i,r);return this}get(i,u){if(i=iu(i),i){const r=M.findKey(this,i);if(r){const o=this[r];if(!u)return o;if(u===!0)return KS(o);if(M.isFunction(u))return u.call(this,o,r);if(M.isRegExp(u))return u.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,u){if(i=iu(i),i){const r=M.findKey(this,i);return!!(r&&this[r]!==void 0&&(!u||Bo(this,this[r],r,u)))}return!1}delete(i,u){const r=this;let o=!1;function f(h){if(h=iu(h),h){const g=M.findKey(r,h);g&&(!u||Bo(r,r[g],g,u))&&(delete r[g],o=!0)}}return M.isArray(i)?i.forEach(f):f(i),o}clear(i){const u=Object.keys(this);let r=u.length,o=!1;for(;r--;){const f=u[r];(!i||Bo(this,this[f],f,i,!0))&&(delete this[f],o=!0)}return o}normalize(i){const u=this,r={};return M.forEach(this,(o,f)=>{const h=M.findKey(r,f);if(h){u[h]=Fs(o),delete u[f];return}const g=i?XS(f):String(f).trim();g!==f&&delete u[f],u[g]=Fs(o),r[g]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const u=Object.create(null);return M.forEach(this,(r,o)=>{r!=null&&r!==!1&&(u[o]=i&&M.isArray(r)?r.join(", "):r)}),u}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,u])=>i+": "+u).join(`
|
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...u){const r=new this(i);return u.forEach(o=>r.set(o)),r}static accessor(i){const r=(this[dp]=this[dp]={accessors:{}}).accessors,o=this.prototype;function f(h){const g=iu(h);r[g]||(VS(o,h),r[g]=!0)}return M.isArray(i)?i.forEach(f):f(i),this}};jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(jt.prototype,({value:l},i)=>{let u=i[0].toUpperCase()+i.slice(1);return{get:()=>l,set(r){this[u]=r}}});M.freezeMethods(jt);function Qo(l,i){const u=this||bu,r=i||u,o=jt.from(r.headers);let f=r.data;return M.forEach(l,function(g){f=g.call(u,f,o.normalize(),i?i.status:void 0)}),o.normalize(),f}function j0(l){return!!(l&&l.__CANCEL__)}let xu=class extends ue{constructor(i,u,r){super(i??"canceled",ue.ERR_CANCELED,u,r),this.name="CanceledError",this.__CANCEL__=!0}};function A0(l,i,u){const r=u.config.validateStatus;!u.status||!r||r(u.status)?l(u):i(new ue("Request failed with status code "+u.status,[ue.ERR_BAD_REQUEST,ue.ERR_BAD_RESPONSE][Math.floor(u.status/100)-4],u.config,u.request,u))}function ZS(l){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(l);return i&&i[1]||""}function JS(l,i){l=l||10;const u=new Array(l),r=new Array(l);let o=0,f=0,h;return i=i!==void 0?i:1e3,function(v){const p=Date.now(),x=r[f];h||(h=p),u[o]=v,r[o]=p;let b=f,A=0;for(;b!==o;)A+=u[b++],b=b%l;if(o=(o+1)%l,o===f&&(f=(f+1)%l),p-h<i)return;const G=x&&p-x;return G?Math.round(A*1e3/G):void 0}}function FS(l,i){let u=0,r=1e3/i,o,f;const h=(p,x=Date.now())=>{u=x,o=null,f&&(clearTimeout(f),f=null),l(...p)};return[(...p)=>{const x=Date.now(),b=x-u;b>=r?h(p,x):(o=p,f||(f=setTimeout(()=>{f=null,h(o)},r-b)))},()=>o&&h(o)]}const er=(l,i,u=3)=>{let r=0;const o=JS(50,250);return FS(f=>{const h=f.loaded,g=f.lengthComputable?f.total:void 0,v=h-r,p=o(v),x=h<=g;r=h;const b={loaded:h,total:g,progress:g?h/g:void 0,bytes:v,rate:p||void 0,estimated:p&&g&&x?(g-h)/p:void 0,event:f,lengthComputable:g!=null,[i?"download":"upload"]:!0};l(b)},u)},hp=(l,i)=>{const u=l!=null;return[r=>i[0]({lengthComputable:u,total:l,loaded:r}),i[1]]},mp=l=>(...i)=>M.asap(()=>l(...i)),$S=dt.hasStandardBrowserEnv?((l,i)=>u=>(u=new URL(u,dt.origin),l.protocol===u.protocol&&l.host===u.host&&(i||l.port===u.port)))(new URL(dt.origin),dt.navigator&&/(msie|trident)/i.test(dt.navigator.userAgent)):()=>!0,WS=dt.hasStandardBrowserEnv?{write(l,i,u,r,o,f,h){if(typeof document>"u")return;const g=[`${l}=${encodeURIComponent(i)}`];M.isNumber(u)&&g.push(`expires=${new Date(u).toUTCString()}`),M.isString(r)&&g.push(`path=${r}`),M.isString(o)&&g.push(`domain=${o}`),f===!0&&g.push("secure"),M.isString(h)&&g.push(`SameSite=${h}`),document.cookie=g.join("; ")},read(l){if(typeof document>"u")return null;const i=document.cookie.match(new RegExp("(?:^|; )"+l+"=([^;]*)"));return i?decodeURIComponent(i[1]):null},remove(l){this.write(l,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function PS(l){return typeof l!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(l)}function IS(l,i){return i?l.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):l}function w0(l,i,u){let r=!PS(i);return l&&(r||u==!1)?IS(l,i):i}const yp=l=>l instanceof jt?{...l}:l;function ul(l,i){i=i||{};const u={};function r(p,x,b,A){return M.isPlainObject(p)&&M.isPlainObject(x)?M.merge.call({caseless:A},p,x):M.isPlainObject(x)?M.merge({},x):M.isArray(x)?x.slice():x}function o(p,x,b,A){if(M.isUndefined(x)){if(!M.isUndefined(p))return r(void 0,p,b,A)}else return r(p,x,b,A)}function f(p,x){if(!M.isUndefined(x))return r(void 0,x)}function h(p,x){if(M.isUndefined(x)){if(!M.isUndefined(p))return r(void 0,p)}else return r(void 0,x)}function g(p,x,b){if(b in i)return r(p,x);if(b in l)return r(void 0,p)}const v={url:f,method:f,data:f,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,withXSRFToken:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:g,headers:(p,x,b)=>o(yp(p),yp(x),b,!0)};return M.forEach(Object.keys({...l,...i}),function(x){if(x==="__proto__"||x==="constructor"||x==="prototype")return;const b=M.hasOwnProp(v,x)?v[x]:o,A=b(l[x],i[x],x);M.isUndefined(A)&&b!==g||(u[x]=A)}),u}const C0=l=>{const i=ul({},l);let{data:u,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:f,headers:h,auth:g}=i;if(i.headers=h=jt.from(h),i.url=N0(w0(i.baseURL,i.url,i.allowAbsoluteUrls),l.params,l.paramsSerializer),g&&h.set("Authorization","Basic "+btoa((g.username||"")+":"+(g.password?unescape(encodeURIComponent(g.password)):""))),M.isFormData(u)){if(dt.hasStandardBrowserEnv||dt.hasStandardBrowserWebWorkerEnv)h.setContentType(void 0);else if(M.isFunction(u.getHeaders)){const v=u.getHeaders(),p=["content-type","content-length"];Object.entries(v).forEach(([x,b])=>{p.includes(x.toLowerCase())&&h.set(x,b)})}}if(dt.hasStandardBrowserEnv&&(r&&M.isFunction(r)&&(r=r(i)),r||r!==!1&&$S(i.url))){const v=o&&f&&WS.read(f);v&&h.set(o,v)}return i},e2=typeof XMLHttpRequest<"u",t2=e2&&function(l){return new Promise(function(u,r){const o=C0(l);let f=o.data;const h=jt.from(o.headers).normalize();let{responseType:g,onUploadProgress:v,onDownloadProgress:p}=o,x,b,A,G,N;function D(){G&&G(),N&&N(),o.cancelToken&&o.cancelToken.unsubscribe(x),o.signal&&o.signal.removeEventListener("abort",x)}let j=new XMLHttpRequest;j.open(o.method.toUpperCase(),o.url,!0),j.timeout=o.timeout;function H(){if(!j)return;const K=jt.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),F={data:!g||g==="text"||g==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:K,config:l,request:j};A0(function($){u($),D()},function($){r($),D()},F),j=null}"onloadend"in j?j.onloadend=H:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(H)},j.onabort=function(){j&&(r(new ue("Request aborted",ue.ECONNABORTED,l,j)),j=null)},j.onerror=function(k){const F=k&&k.message?k.message:"Network Error",ne=new ue(F,ue.ERR_NETWORK,l,j);ne.event=k||null,r(ne),j=null},j.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const F=o.transitional||jf;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),r(new ue(k,F.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,l,j)),j=null},f===void 0&&h.setContentType(null),"setRequestHeader"in j&&M.forEach(h.toJSON(),function(k,F){j.setRequestHeader(F,k)}),M.isUndefined(o.withCredentials)||(j.withCredentials=!!o.withCredentials),g&&g!=="json"&&(j.responseType=o.responseType),p&&([A,N]=er(p,!0),j.addEventListener("progress",A)),v&&j.upload&&([b,G]=er(v),j.upload.addEventListener("progress",b),j.upload.addEventListener("loadend",G)),(o.cancelToken||o.signal)&&(x=K=>{j&&(r(!K||K.type?new xu(null,l,j):K),j.abort(),j=null)},o.cancelToken&&o.cancelToken.subscribe(x),o.signal&&(o.signal.aborted?x():o.signal.addEventListener("abort",x)));const X=ZS(o.url);if(X&&dt.protocols.indexOf(X)===-1){r(new ue("Unsupported protocol "+X+":",ue.ERR_BAD_REQUEST,l));return}j.send(f||null)})},n2=(l,i)=>{const{length:u}=l=l?l.filter(Boolean):[];if(i||u){let r=new AbortController,o;const f=function(p){if(!o){o=!0,g();const x=p instanceof Error?p:this.reason;r.abort(x instanceof ue?x:new xu(x instanceof Error?x.message:x))}};let h=i&&setTimeout(()=>{h=null,f(new ue(`timeout of ${i}ms exceeded`,ue.ETIMEDOUT))},i);const g=()=>{l&&(h&&clearTimeout(h),h=null,l.forEach(p=>{p.unsubscribe?p.unsubscribe(f):p.removeEventListener("abort",f)}),l=null)};l.forEach(p=>p.addEventListener("abort",f));const{signal:v}=r;return v.unsubscribe=()=>M.asap(g),v}},a2=function*(l,i){let u=l.byteLength;if(u<i){yield l;return}let r=0,o;for(;r<u;)o=r+i,yield l.slice(r,o),r=o},l2=async function*(l,i){for await(const u of i2(l))yield*a2(u,i)},i2=async function*(l){if(l[Symbol.asyncIterator]){yield*l;return}const i=l.getReader();try{for(;;){const{done:u,value:r}=await i.read();if(u)break;yield r}}finally{await i.cancel()}},pp=(l,i,u,r)=>{const o=l2(l,i);let f=0,h,g=v=>{h||(h=!0,r&&r(v))};return new ReadableStream({async pull(v){try{const{done:p,value:x}=await o.next();if(p){g(),v.close();return}let b=x.byteLength;if(u){let A=f+=b;u(A)}v.enqueue(new Uint8Array(x))}catch(p){throw g(p),p}},cancel(v){return g(v),o.return()}},{highWaterMark:2})},gp=64*1024,{isFunction:Ys}=M,u2=(({Request:l,Response:i})=>({Request:l,Response:i}))(M.global),{ReadableStream:vp,TextEncoder:bp}=M.global,xp=(l,...i)=>{try{return!!l(...i)}catch{return!1}},s2=l=>{l=M.merge.call({skipUndefined:!0},u2,l);const{fetch:i,Request:u,Response:r}=l,o=i?Ys(i):typeof fetch=="function",f=Ys(u),h=Ys(r);if(!o)return!1;const g=o&&Ys(vp),v=o&&(typeof bp=="function"?(N=>D=>N.encode(D))(new bp):async N=>new Uint8Array(await new u(N).arrayBuffer())),p=f&&g&&xp(()=>{let N=!1;const D=new u(dt.origin,{body:new vp,method:"POST",get duplex(){return N=!0,"half"}}).headers.has("Content-Type");return N&&!D}),x=h&&g&&xp(()=>M.isReadableStream(new r("").body)),b={stream:x&&(N=>N.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(N=>{!b[N]&&(b[N]=(D,j)=>{let H=D&&D[N];if(H)return H.call(D);throw new ue(`Response type '${N}' is not supported`,ue.ERR_NOT_SUPPORT,j)})});const A=async N=>{if(N==null)return 0;if(M.isBlob(N))return N.size;if(M.isSpecCompliantForm(N))return(await new u(dt.origin,{method:"POST",body:N}).arrayBuffer()).byteLength;if(M.isArrayBufferView(N)||M.isArrayBuffer(N))return N.byteLength;if(M.isURLSearchParams(N)&&(N=N+""),M.isString(N))return(await v(N)).byteLength},G=async(N,D)=>{const j=M.toFiniteNumber(N.getContentLength());return j??A(D)};return async N=>{let{url:D,method:j,data:H,signal:X,cancelToken:K,timeout:k,onDownloadProgress:F,onUploadProgress:ne,responseType:$,headers:le,withCredentials:fe="same-origin",fetchOptions:je}=C0(N),Qe=i||fetch;$=$?($+"").toLowerCase():"text";let qe=n2([X,K&&K.toAbortSignal()],k),Ie=null;const Le=qe&&qe.unsubscribe&&(()=>{qe.unsubscribe()});let _e;try{if(ne&&p&&j!=="get"&&j!=="head"&&(_e=await G(le,H))!==0){let R=new u(D,{method:"POST",body:H,duplex:"half"}),Q;if(M.isFormData(H)&&(Q=R.headers.get("content-type"))&&le.setContentType(Q),R.body){const[Z,W]=hp(_e,er(mp(ne)));H=pp(R.body,gp,Z,W)}}M.isString(fe)||(fe=fe?"include":"omit");const q=f&&"credentials"in u.prototype,V={...je,signal:qe,method:j.toUpperCase(),headers:le.normalize().toJSON(),body:H,duplex:"half",credentials:q?fe:void 0};Ie=f&&new u(D,V);let ee=await(f?Qe(Ie,je):Qe(D,V));const Re=x&&($==="stream"||$==="response");if(x&&(F||Re&&Le)){const R={};["status","statusText","headers"].forEach(se=>{R[se]=ee[se]});const Q=M.toFiniteNumber(ee.headers.get("content-length")),[Z,W]=F&&hp(Q,er(mp(F),!0))||[];ee=new r(pp(ee.body,gp,Z,()=>{W&&W(),Le&&Le()}),R)}$=$||"text";let Ae=await b[M.findKey(b,$)||"text"](ee,N);return!Re&&Le&&Le(),await new Promise((R,Q)=>{A0(R,Q,{data:Ae,headers:jt.from(ee.headers),status:ee.status,statusText:ee.statusText,config:N,request:Ie})})}catch(q){throw Le&&Le(),q&&q.name==="TypeError"&&/Load failed|fetch/i.test(q.message)?Object.assign(new ue("Network Error",ue.ERR_NETWORK,N,Ie,q&&q.response),{cause:q.cause||q}):ue.from(q,q&&q.code,N,Ie,q&&q.response)}}},r2=new Map,_0=l=>{let i=l&&l.env||{};const{fetch:u,Request:r,Response:o}=i,f=[r,o,u];let h=f.length,g=h,v,p,x=r2;for(;g--;)v=f[g],p=x.get(v),p===void 0&&x.set(v,p=g?new Map:s2(i)),x=p;return p};_0();const wf={http:NS,xhr:t2,fetch:{get:_0}};M.forEach(wf,(l,i)=>{if(l){try{Object.defineProperty(l,"name",{value:i})}catch{}Object.defineProperty(l,"adapterName",{value:i})}});const Sp=l=>`- ${l}`,c2=l=>M.isFunction(l)||l===null||l===!1;function o2(l,i){l=M.isArray(l)?l:[l];const{length:u}=l;let r,o;const f={};for(let h=0;h<u;h++){r=l[h];let g;if(o=r,!c2(r)&&(o=wf[(g=String(r)).toLowerCase()],o===void 0))throw new ue(`Unknown adapter '${g}'`);if(o&&(M.isFunction(o)||(o=o.get(i))))break;f[g||"#"+h]=o}if(!o){const h=Object.entries(f).map(([v,p])=>`adapter ${v} `+(p===!1?"is not supported by the environment":"is not available in the build"));let g=u?h.length>1?`since :
|
|
`+h.map(Sp).join(`
|
|
`):" "+Sp(h[0]):"as no adapter specified";throw new ue("There is no suitable adapter to dispatch the request "+g,"ERR_NOT_SUPPORT")}return o}const D0={getAdapter:o2,adapters:wf};function Go(l){if(l.cancelToken&&l.cancelToken.throwIfRequested(),l.signal&&l.signal.aborted)throw new xu(null,l)}function Ep(l){return Go(l),l.headers=jt.from(l.headers),l.data=Qo.call(l,l.transformRequest),["post","put","patch"].indexOf(l.method)!==-1&&l.headers.setContentType("application/x-www-form-urlencoded",!1),D0.getAdapter(l.adapter||bu.adapter,l)(l).then(function(r){return Go(l),r.data=Qo.call(l,l.transformResponse,r),r.headers=jt.from(r.headers),r},function(r){return j0(r)||(Go(l),r&&r.response&&(r.response.data=Qo.call(l,l.transformResponse,r.response),r.response.headers=jt.from(r.response.headers))),Promise.reject(r)})}const z0="1.13.6",rr={};["object","boolean","number","function","string","symbol"].forEach((l,i)=>{rr[l]=function(r){return typeof r===l||"a"+(i<1?"n ":" ")+l}});const Rp={};rr.transitional=function(i,u,r){function o(f,h){return"[Axios v"+z0+"] Transitional option '"+f+"'"+h+(r?". "+r:"")}return(f,h,g)=>{if(i===!1)throw new ue(o(h," has been removed"+(u?" in "+u:"")),ue.ERR_DEPRECATED);return u&&!Rp[h]&&(Rp[h]=!0,console.warn(o(h," has been deprecated since v"+u+" and will be removed in the near future"))),i?i(f,h,g):!0}};rr.spelling=function(i){return(u,r)=>(console.warn(`${r} is likely a misspelling of ${i}`),!0)};function f2(l,i,u){if(typeof l!="object")throw new ue("options must be an object",ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(l);let o=r.length;for(;o-- >0;){const f=r[o],h=i[f];if(h){const g=l[f],v=g===void 0||h(g,f,l);if(v!==!0)throw new ue("option "+f+" must be "+v,ue.ERR_BAD_OPTION_VALUE);continue}if(u!==!0)throw new ue("Unknown option "+f,ue.ERR_BAD_OPTION)}}const $s={assertOptions:f2,validators:rr},Ft=$s.validators;let al=class{constructor(i){this.defaults=i||{},this.interceptors={request:new fp,response:new fp}}async request(i,u){try{return await this._request(i,u)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const f=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?f&&!String(r.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
`+f):r.stack=f}catch{}}throw r}}_request(i,u){typeof i=="string"?(u=u||{},u.url=i):u=i||{},u=ul(this.defaults,u);const{transitional:r,paramsSerializer:o,headers:f}=u;r!==void 0&&$s.assertOptions(r,{silentJSONParsing:Ft.transitional(Ft.boolean),forcedJSONParsing:Ft.transitional(Ft.boolean),clarifyTimeoutError:Ft.transitional(Ft.boolean),legacyInterceptorReqResOrdering:Ft.transitional(Ft.boolean)},!1),o!=null&&(M.isFunction(o)?u.paramsSerializer={serialize:o}:$s.assertOptions(o,{encode:Ft.function,serialize:Ft.function},!0)),u.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?u.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:u.allowAbsoluteUrls=!0),$s.assertOptions(u,{baseUrl:Ft.spelling("baseURL"),withXsrfToken:Ft.spelling("withXSRFToken")},!0),u.method=(u.method||this.defaults.method||"get").toLowerCase();let h=f&&M.merge(f.common,f[u.method]);f&&M.forEach(["delete","get","head","post","put","patch","common"],N=>{delete f[N]}),u.headers=jt.concat(h,f);const g=[];let v=!0;this.interceptors.request.forEach(function(D){if(typeof D.runWhen=="function"&&D.runWhen(u)===!1)return;v=v&&D.synchronous;const j=u.transitional||jf;j&&j.legacyInterceptorReqResOrdering?g.unshift(D.fulfilled,D.rejected):g.push(D.fulfilled,D.rejected)});const p=[];this.interceptors.response.forEach(function(D){p.push(D.fulfilled,D.rejected)});let x,b=0,A;if(!v){const N=[Ep.bind(this),void 0];for(N.unshift(...g),N.push(...p),A=N.length,x=Promise.resolve(u);b<A;)x=x.then(N[b++],N[b++]);return x}A=g.length;let G=u;for(;b<A;){const N=g[b++],D=g[b++];try{G=N(G)}catch(j){D.call(this,j);break}}try{x=Ep.call(this,G)}catch(N){return Promise.reject(N)}for(b=0,A=p.length;b<A;)x=x.then(p[b++],p[b++]);return x}getUri(i){i=ul(this.defaults,i);const u=w0(i.baseURL,i.url,i.allowAbsoluteUrls);return N0(u,i.params,i.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(i){al.prototype[i]=function(u,r){return this.request(ul(r||{},{method:i,url:u,data:(r||{}).data}))}});M.forEach(["post","put","patch"],function(i){function u(r){return function(f,h,g){return this.request(ul(g||{},{method:i,headers:r?{"Content-Type":"multipart/form-data"}:{},url:f,data:h}))}}al.prototype[i]=u(),al.prototype[i+"Form"]=u(!0)});let d2=class M0{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let u;this.promise=new Promise(function(f){u=f});const r=this;this.promise.then(o=>{if(!r._listeners)return;let f=r._listeners.length;for(;f-- >0;)r._listeners[f](o);r._listeners=null}),this.promise.then=o=>{let f;const h=new Promise(g=>{r.subscribe(g),f=g}).then(o);return h.cancel=function(){r.unsubscribe(f)},h},i(function(f,h,g){r.reason||(r.reason=new xu(f,h,g),u(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const u=this._listeners.indexOf(i);u!==-1&&this._listeners.splice(u,1)}toAbortSignal(){const i=new AbortController,u=r=>{i.abort(r)};return this.subscribe(u),i.signal.unsubscribe=()=>this.unsubscribe(u),i.signal}static source(){let i;return{token:new M0(function(o){i=o}),cancel:i}}};function h2(l){return function(u){return l.apply(null,u)}}function m2(l){return M.isObject(l)&&l.isAxiosError===!0}const cf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(cf).forEach(([l,i])=>{cf[i]=l});function U0(l){const i=new al(l),u=m0(al.prototype.request,i);return M.extend(u,al.prototype,i,{allOwnKeys:!0}),M.extend(u,i,null,{allOwnKeys:!0}),u.create=function(o){return U0(ul(l,o))},u}const xe=U0(bu);xe.Axios=al;xe.CanceledError=xu;xe.CancelToken=d2;xe.isCancel=j0;xe.VERSION=z0;xe.toFormData=sr;xe.AxiosError=ue;xe.Cancel=xe.CanceledError;xe.all=function(i){return Promise.all(i)};xe.spread=h2;xe.isAxiosError=m2;xe.mergeConfig=ul;xe.AxiosHeaders=jt;xe.formToJSON=l=>O0(M.isHTMLForm(l)?new FormData(l):l);xe.getAdapter=D0.getAdapter;xe.HttpStatusCode=cf;xe.default=xe;const{Axios:UE,AxiosError:qE,CanceledError:LE,isCancel:HE,CancelToken:BE,VERSION:QE,all:GE,Cancel:YE,isAxiosError:KE,spread:kE,toFormData:XE,AxiosHeaders:VE,HttpStatusCode:ZE,formToJSON:JE,getAdapter:FE,mergeConfig:$E}=xe,q0="antholume_token";xe.interceptors.request.use(l=>{const i=localStorage.getItem(q0);return i&&l.headers&&(l.headers.Authorization=`Bearer ${i}`),l},l=>Promise.reject(l));xe.interceptors.response.use(l=>l,l=>{var i;return((i=l.response)==null?void 0:i.status)===401&&localStorage.removeItem(q0),Promise.reject(l)});const y2=(l,i)=>xe.get("/api/v1/documents",{...i,params:{...l,...i==null?void 0:i.params}}),p2=l=>["/api/v1/documents",...l?[l]:[]],g2=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??p2(l),queryFn:({signal:h})=>y2(l,{signal:h,...r}),...u}};function L0(l,i,u){const r=g2(l),o=Kn(r);return o.queryKey=r.queryKey,o}const v2=(l,i)=>{const u=new FormData;return u.append("document_file",l.document_file),xe.post("/api/v1/documents",u,i)},b2=l=>{const i=["createDocument"],{mutation:u,axios:r}={mutation:{mutationKey:i},axios:void 0};return{mutationFn:f=>{const{data:h}=f??{};return v2(h,r)},...u}},x2=(l,i)=>{const u=b2();return Tf(u)},S2=(l,i)=>xe.get(`/api/v1/documents/${l}`,i),E2=l=>[`/api/v1/documents/${l}`],R2=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??E2(l),queryFn:({signal:h})=>S2(l,{signal:h,...r}),enabled:!!l,...u}};function T2(l,i,u){const r=R2(l),o=Kn(r);return o.queryKey=r.queryKey,o}const N2=(l,i)=>xe.get("/api/v1/progress",{...i,params:{...l,...i==null?void 0:i.params}}),O2=l=>["/api/v1/progress",...l?[l]:[]],j2=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??O2(l),queryFn:({signal:h})=>N2(l,{signal:h,...r}),...u}};function A2(l,i,u){const r=j2(l),o=Kn(r);return o.queryKey=r.queryKey,o}const w2=(l,i)=>xe.get(`/api/v1/progress/${l}`,i),C2=l=>[`/api/v1/progress/${l}`],_2=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??C2(l),queryFn:({signal:h})=>w2(l,{signal:h,...r}),enabled:!!l,...u}};function D2(l,i,u){const r=_2(l),o=Kn(r);return o.queryKey=r.queryKey,o}const z2=(l,i)=>xe.get("/api/v1/activity",{...i,params:{...l,...i==null?void 0:i.params}}),M2=l=>["/api/v1/activity",...l?[l]:[]],U2=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??M2(l),queryFn:({signal:h})=>z2(l,{signal:h,...r}),...u}};function q2(l,i,u){const r=U2(l),o=Kn(r);return o.queryKey=r.queryKey,o}const L2=l=>xe.get("/api/v1/settings",l),H2=()=>["/api/v1/settings"],B2=l=>{const{query:i,axios:u}={};return{queryKey:(i==null?void 0:i.queryKey)??H2(),queryFn:({signal:f})=>L2({signal:f,...u}),...i}};function Q2(l,i){const u=B2(),r=Kn(u);return r.queryKey=u.queryKey,r}const G2=(l,i)=>xe.post("/api/v1/auth/login",l,i),Y2=l=>{const i=["login"],{mutation:u,axios:r}={mutation:{mutationKey:i},axios:void 0};return{mutationFn:f=>{const{data:h}=f??{};return G2(h,r)},...u}},K2=(l,i)=>{const u=Y2();return Tf(u)},k2=l=>xe.post("/api/v1/auth/logout",void 0,l),X2=l=>{const i=["logout"],{mutation:u,axios:r}={mutation:{mutationKey:i},axios:void 0};return{mutationFn:()=>k2(r),...u}},V2=(l,i)=>{const u=X2();return Tf(u)},Z2=l=>xe.get("/api/v1/auth/me",l),J2=()=>["/api/v1/auth/me"],F2=l=>{const{query:i,axios:u}=l??{};return{queryKey:(i==null?void 0:i.queryKey)??J2(),queryFn:({signal:f})=>Z2({signal:f,...u}),...i}};function H0(l,i){const u=F2(l),r=Kn(u);return r.queryKey=u.queryKey,r}const $2=l=>xe.get("/api/v1/home",l),W2=()=>["/api/v1/home"],P2=l=>{const{query:i,axios:u}={};return{queryKey:(i==null?void 0:i.queryKey)??W2(),queryFn:({signal:f})=>$2({signal:f,...u}),...i}};function I2(l,i){const u=P2(),r=Kn(u);return r.queryKey=u.queryKey,r}const eE=(l,i)=>xe.get("/api/v1/search",{...i,params:{...l,...i==null?void 0:i.params}}),tE=l=>["/api/v1/search",...l?[l]:[]],nE=(l,i)=>{const{query:u,axios:r}={};return{queryKey:(u==null?void 0:u.queryKey)??tE(l),queryFn:({signal:h})=>eE(l,{signal:h,...r}),...u}};function aE(l,i,u){const r=nE(l),o=Kn(r);return o.queryKey=r.queryKey,o}const B0=C.createContext(void 0),Ks="antholume_token";function lE({children:l}){const[i,u]=C.useState({isAuthenticated:!1,user:null,token:null}),r=K2(),o=V2(),{data:f}=H0(i.isAuthenticated?{}:void 0),h=mf();C.useEffect(()=>{const p=localStorage.getItem(Ks);p&&u(x=>({...x,token:p,isAuthenticated:!0}))},[]),C.useEffect(()=>{f!=null&&f.data&&i.isAuthenticated&&u(p=>({...p,user:f.data}))},[f,i.isAuthenticated]);const g=async(p,x)=>{try{r.mutate({data:{username:p,password:x}},{onSuccess:()=>{const b=localStorage.getItem(Ks)||"authenticated";localStorage.setItem(Ks,b),u({isAuthenticated:!0,user:null,token:b}),h("/")},onError:()=>{throw new Error("Login failed")}})}catch(b){throw b}},v=()=>{o.mutate(void 0,{onSuccess:()=>{localStorage.removeItem(Ks),u({isAuthenticated:!1,user:null,token:null}),h("/login")}})};return m.jsx(B0.Provider,{value:{...i,login:g,logout:v},children:l})}function Cf(){const l=C.useContext(B0);if(l===void 0)throw new Error("useAuth must be used within an AuthProvider");return l}const iE=[{path:"/",label:"Home",icon:"home"},{path:"/documents",label:"Documents",icon:"documents"},{path:"/progress",label:"Progress",icon:"activity"},{path:"/activity",label:"Activity",icon:"activity"},{path:"/search",label:"Search",icon:"search"}];function uE(){const l=sn(),{isAuthenticated:i,user:u,logout:r}=Cf(),{data:o}=H0(i?{}:void 0),f=(o==null?void 0:o.data)||u;if(!i)return m.jsx(Wp,{to:"/login",replace:!0});const h=()=>{r()};return m.jsxs("div",{className:"bg-gray-100 dark:bg-gray-800 min-h-screen",children:[m.jsxs("div",{className:"flex items-center justify-between w-full h-16",children:[m.jsxs("div",{className:"flex flex-col z-40 relative ml-6",children:[m.jsx("input",{type:"checkbox",className:"absolute lg:hidden z-50 -top-2 w-7 h-7 flex cursor-pointer opacity-0",id:"mobile-nav-toggle"}),m.jsx("span",{className:"lg:hidden bg-black w-7 h-0.5 z-40 mt-0.5 dark:bg-white"}),m.jsx("span",{className:"lg:hidden bg-black w-7 h-0.5 z-40 mt-1 dark:bg-white"}),m.jsx("span",{className:"lg:hidden bg-black w-7 h-0.5 z-40 mt-1 dark:bg-white"}),m.jsxs("div",{id:"menu",className:"fixed -ml-6 h-full w-56 lg:w-48 bg-white dark:bg-gray-700 shadow-lg",children:[m.jsx("div",{className:"h-16 flex justify-end lg:justify-around",children:m.jsx("p",{className:"text-xl font-bold dark:text-white text-right my-auto pr-8 lg:pr-0",children:"AnthoLume"})}),m.jsx("nav",{className:"flex flex-col",children:iE.map(g=>m.jsx(ln,{to:g.path,className:`flex items-center justify-start w-full p-2 pl-6 my-2 transition-colors duration-200 border-l-4 ${l.pathname===g.path?"border-purple-500 dark:text-white":"border-transparent text-gray-400 hover:text-gray-800 dark:hover:text-gray-100"}`,children:m.jsx("span",{className:"mx-4 text-sm font-normal",children:g.label})},g.path))}),m.jsx("a",{className:"flex flex-col gap-2 justify-center items-center p-6 w-full absolute bottom-0 text-black dark:text-white",target:"_blank",href:"https://gitea.va.reichard.io/evan/AnthoLume",children:m.jsx("span",{className:"text-xs",children:"v1.0.0"})})]})]}),m.jsx("h1",{className:"text-xl font-bold dark:text-white px-6 lg:ml-44",children:m.jsx(ln,{to:"/documents",children:"Documents"})}),m.jsxs("div",{className:"relative flex items-center justify-end w-full p-4 space-x-4",children:[m.jsx("input",{type:"checkbox",id:"user-dropdown-button",className:"hidden"}),m.jsx("div",{id:"user-dropdown",className:"transition duration-200 z-20 absolute right-4 top-16 pt-4",children:m.jsx("div",{className:"w-40 origin-top-right bg-white rounded-md shadow-lg dark:shadow-gray-800 dark:bg-gray-700 ring-1 ring-black ring-opacity-5",children:m.jsxs("div",{className:"py-1",children:[m.jsx(ln,{to:"/settings",className:"block px-4 py-2 text-md text-gray-700 hover:bg-gray-100 hover:text-gray-900 dark:text-gray-100 dark:hover:text-white dark:hover:bg-gray-600",children:"Settings"}),m.jsx("button",{onClick:h,className:"block px-4 py-2 text-md text-gray-700 hover:bg-gray-100 hover:text-gray-900 dark:text-gray-100 dark:hover:text-white dark:hover:bg-gray-600 w-full text-left",children:"Logout"})]})})}),m.jsx("label",{htmlFor:"user-dropdown-button",children:m.jsx("div",{className:"flex items-center gap-2 text-gray-500 dark:text-white text-md py-4 cursor-pointer",children:m.jsx("span",{children:(f==null?void 0:f.username)||"User"})})})]})]}),m.jsx("main",{className:"relative overflow-hidden",children:m.jsx("div",{id:"container",className:"h-[100dvh] px-4 overflow-auto md:px-6 lg:ml-48",children:m.jsx(bx,{})})})]})}function ks({title:l,size:i,link:u}){return u?m.jsx(ln,{to:u,className:"w-full",children:m.jsx("div",{className:"flex gap-4 w-full p-4 bg-white shadow-lg dark:bg-gray-700 rounded",children:m.jsxs("div",{className:"flex flex-col justify-around dark:text-white w-full text-sm",children:[m.jsx("p",{className:"text-2xl font-bold text-black dark:text-white",children:i}),m.jsx("p",{className:"text-sm text-gray-400",children:l})]})})}):m.jsx("div",{className:"w-full",children:m.jsx("div",{className:"flex gap-4 w-full p-4 bg-white shadow-lg dark:bg-gray-700 rounded",children:m.jsxs("div",{className:"flex flex-col justify-around dark:text-white w-full text-sm",children:[m.jsx("p",{className:"text-2xl font-bold text-black dark:text-white",children:i}),m.jsx("p",{className:"text-sm text-gray-400",children:l})]})})})}function sE({window:l,currentStreak:i,currentStreakStartDate:u,currentStreakEndDate:r,maxStreak:o,maxStreakStartDate:f,maxStreakEndDate:h}){return m.jsx("div",{className:"w-full",children:m.jsxs("div",{className:"relative w-full px-4 py-6 bg-white shadow-lg dark:bg-gray-700 rounded",children:[m.jsx("p",{className:"text-sm font-semibold text-gray-700 border-b border-gray-200 w-max dark:text-white dark:border-gray-500",children:l==="WEEK"?"Weekly Read Streak":"Daily Read Streak"}),m.jsx("div",{className:"flex items-end my-6 space-x-2",children:m.jsx("p",{className:"text-5xl font-bold text-black dark:text-white",children:i})}),m.jsxs("div",{className:"dark:text-white",children:[m.jsxs("div",{className:"flex items-center justify-between pb-2 mb-2 text-sm border-b border-gray-200",children:[m.jsxs("div",{children:[m.jsx("p",{children:l==="WEEK"?"Current Weekly Streak":"Current Daily Streak"}),m.jsxs("div",{className:"flex items-end text-sm text-gray-400",children:[u," ➞ ",r]})]}),m.jsx("div",{className:"flex items-end font-bold",children:i})]}),m.jsxs("div",{className:"flex items-center justify-between pb-2 mb-2 text-sm",children:[m.jsxs("div",{children:[m.jsx("p",{children:l==="WEEK"?"Best Weekly Streak":"Best Daily Streak"}),m.jsxs("div",{className:"flex items-end text-sm text-gray-400",children:[f," ➞ ",h]})]}),m.jsx("div",{className:"flex items-end font-bold",children:o})]})]})]})})}function Yo({name:l,data:i}){var u;return m.jsx("div",{className:"w-full",children:m.jsxs("div",{className:"flex flex-col justify-between h-full w-full px-4 py-6 bg-white shadow-lg dark:bg-gray-700 rounded",children:[m.jsx("div",{children:m.jsxs("div",{className:"flex justify-between",children:[m.jsxs("p",{className:"text-sm font-semibold text-gray-700 border-b border-gray-200 w-max dark:text-white dark:border-gray-500",children:[l," Leaderboard"]}),m.jsxs("div",{className:"flex gap-2 text-xs text-gray-400 items-center",children:[m.jsx("span",{className:"cursor-pointer hover:text-black dark:hover:text-white",children:"all"}),m.jsx("span",{className:"cursor-pointer hover:text-black dark:hover:text-white",children:"year"}),m.jsx("span",{className:"cursor-pointer hover:text-black dark:hover:text-white",children:"month"}),m.jsx("span",{className:"cursor-pointer hover:text-black dark:hover:text-white",children:"week"})]})]})}),m.jsx("div",{className:"flex items-end my-6 space-x-2",children:i.all.length===0?m.jsx("p",{className:"text-5xl font-bold text-black dark:text-white",children:"N/A"}):m.jsx("p",{className:"text-5xl font-bold text-black dark:text-white",children:((u=i.all[0])==null?void 0:u.user_id)||"N/A"})}),m.jsx("div",{className:"dark:text-white",children:i.all.slice(0,3).map((r,o)=>m.jsxs("div",{className:`flex items-center justify-between pt-2 pb-2 text-sm ${o>0?"border-t border-gray-200":""}`,children:[m.jsx("div",{children:m.jsx("p",{children:r.user_id})}),m.jsx("div",{className:"flex items-end font-bold",children:r.value})]},o))})]})})}function rE({data:l}){if(!l||l.length===0)return m.jsx("div",{className:"relative h-24 flex items-center justify-center bg-gray-100 dark:bg-gray-600",children:m.jsx("p",{className:"text-gray-400 dark:text-gray-300",children:"No data available"})});const i=Math.max(...l.map(u=>u.minutes_read),1);return m.jsx("div",{className:"relative h-24 flex items-end justify-between p-2 bg-gray-100 dark:bg-gray-600",children:l.map((u,r)=>m.jsx("div",{className:"flex-1 mx-0.5 bg-blue-500 hover:bg-blue-600 transition-colors relative group",style:{height:`${u.minutes_read/i*100}%`},children:m.jsxs("div",{className:"absolute bottom-full mb-1 left-0 w-full text-xs text-center text-gray-600 dark:text-gray-300 opacity-0 group-hover:opacity-100 pointer-events-none",children:[u.minutes_read," min"]})},r))})}function cE(){var p,x,b,A,G,N,D;const{data:l,isLoading:i}=I2(),{data:u,isLoading:r}=L0({page:1,limit:9}),o=(p=u==null?void 0:u.data)==null?void 0:p.documents,f=(x=l==null?void 0:l.data)==null?void 0:x.database_info,h=(A=(b=l==null?void 0:l.data)==null?void 0:b.streaks)==null?void 0:A.streaks,g=(N=(G=l==null?void 0:l.data)==null?void 0:G.graph_data)==null?void 0:N.graph_data,v=(D=l==null?void 0:l.data)==null?void 0:D.user_statistics;return i||r?m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."}):m.jsxs("div",{className:"flex flex-col gap-4",children:[m.jsx("div",{className:"w-full",children:m.jsxs("div",{className:"relative w-full bg-white shadow-lg dark:bg-gray-700 rounded",children:[m.jsx("p",{className:"absolute top-3 left-5 text-sm font-semibold text-gray-700 border-b border-gray-200 w-max dark:text-white dark:border-gray-500",children:"Daily Read Totals"}),m.jsx(rE,{data:g||[]})]})}),m.jsxs("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-4",children:[m.jsx(ks,{title:"Documents",size:(f==null?void 0:f.documents_size)||0,link:"./documents"}),m.jsx(ks,{title:"Activity Records",size:(f==null?void 0:f.activity_size)||0,link:"./activity"}),m.jsx(ks,{title:"Progress Records",size:(f==null?void 0:f.progress_size)||0,link:"./progress"}),m.jsx(ks,{title:"Devices",size:(f==null?void 0:f.devices_size)||0})]}),m.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:h==null?void 0:h.map((j,H)=>m.jsx(sE,{window:j.window,currentStreak:j.current_streak,currentStreakStartDate:j.current_streak_start_date,currentStreakEndDate:j.current_streak_end_date,maxStreak:j.max_streak,maxStreakStartDate:j.max_streak_start_date,maxStreakEndDate:j.max_streak_end_date},H))}),m.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:[m.jsx(Yo,{name:"WPM",data:(v==null?void 0:v.wpm)||{all:[],year:[],month:[],week:[]}}),m.jsx(Yo,{name:"Duration",data:(v==null?void 0:v.duration)||{all:[],year:[],month:[],week:[]}}),m.jsx(Yo,{name:"Words",data:(v==null?void 0:v.words)||{all:[],year:[],month:[],week:[]}})]}),m.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:o==null?void 0:o.slice(0,6).map(j=>m.jsxs("div",{className:"flex flex-col gap-2 p-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:[m.jsx("h3",{className:"font-medium text-lg",children:j.title}),m.jsx("p",{className:"text-sm",children:j.author}),m.jsx(ln,{to:`/documents/${j.id}`,className:"text-white bg-blue-700 hover:bg-blue-800 font-medium rounded text-sm text-center py-1 dark:bg-blue-600 dark:hover:bg-blue-700",children:"View Document"})]},j.id))})]})}function oE(){return m.jsx("svg",{className:"w-20 h-20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:m.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})})}function Tp({disabled:l}){return l?m.jsxs("svg",{className:"w-20 h-20 text-gray-400",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[m.jsx("polyline",{points:"21 15 16 10 8 10"}),m.jsx("line",{x1:"12",y1:"3",x2:"12",y2:"21"}),m.jsx("line",{x1:"21",y1:"15",x2:"21",y2:"15",opacity:"0"})]}):m.jsxs("svg",{className:"w-20 h-20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[m.jsx("polyline",{points:"21 15 16 10 8 10"}),m.jsx("line",{x1:"12",y1:"3",x2:"12",y2:"21"})]})}function fE({doc:l}){const i=l.percentage||0,u=l.total_time_seconds||0,r=o=>{const f=Math.floor(o/3600),h=Math.floor(o%3600/60);return f>0?`${f}h ${h}m`:`${h}m`};return m.jsx("div",{className:"w-full relative",children:m.jsxs("div",{className:"flex gap-4 w-full h-full p-4 shadow-lg bg-white dark:bg-gray-700 rounded",children:[m.jsx("div",{className:"min-w-fit my-auto h-48 relative",children:m.jsx(ln,{to:`/documents/${l.id}`,children:m.jsx("img",{className:"rounded object-cover h-full",src:`/api/v1/documents/${l.id}/cover`,alt:l.title})})}),m.jsxs("div",{className:"flex flex-col justify-around dark:text-white w-full text-sm",children:[m.jsx("div",{className:"inline-flex shrink-0 items-center",children:m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-400",children:"Title"}),m.jsx("p",{className:"font-medium",children:l.title||"Unknown"})]})}),m.jsx("div",{className:"inline-flex shrink-0 items-center",children:m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-400",children:"Author"}),m.jsx("p",{className:"font-medium",children:l.author||"Unknown"})]})}),m.jsx("div",{className:"inline-flex shrink-0 items-center",children:m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-400",children:"Progress"}),m.jsxs("p",{className:"font-medium",children:[i,"%"]})]})}),m.jsx("div",{className:"inline-flex shrink-0 items-center",children:m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-400",children:"Time Read"}),m.jsx("p",{className:"font-medium",children:r(u)})]})})]}),m.jsxs("div",{className:"absolute flex flex-col gap-2 right-4 bottom-4 text-gray-500 dark:text-gray-400",children:[m.jsx(ln,{to:`/activity?document=${l.id}`,children:m.jsx(oE,{})}),l.filepath?m.jsx(ln,{to:`/documents/${l.id}/file`,children:m.jsx(Tp,{})}):m.jsx(Tp,{disabled:!0})]})]})})}function dE(){return m.jsxs("svg",{className:"w-15 h-15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[m.jsx("circle",{cx:"11",cy:"11",r:"8"}),m.jsx("path",{d:"M21 21l-6-6"})]})}function hE(){return m.jsxs("svg",{className:"w-34 h-34",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[m.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),m.jsx("polyline",{points:"17 8 12 3 7 8"}),m.jsx("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]})}function mE(){var X,K,k;const[l,i]=C.useState(""),[u,r]=C.useState(1),[o]=C.useState(9),[f,h]=C.useState(!1),g=C.useRef(null),{data:v,isLoading:p,refetch:x}=L0({page:u,limit:o,search:l}),b=x2(),A=(X=v==null?void 0:v.data)==null?void 0:X.documents,G=(K=v==null?void 0:v.data)==null?void 0:K.previous_page,N=(k=v==null?void 0:v.data)==null?void 0:k.next_page,D=F=>{F.preventDefault(),x()},j=async F=>{var $;const ne=($=F.target.files)==null?void 0:$[0];if(ne){if(!ne.name.endsWith(".epub")){alert("Please upload an EPUB file");return}try{await b.mutateAsync({data:{document_file:ne}}),alert("Document uploaded successfully!"),h(!1),x()}catch(le){console.error("Upload failed:",le),alert("Failed to upload document")}}},H=()=>{h(!1),g.current&&(g.current.value="")};return p?m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."}):m.jsxs("div",{className:"flex flex-col gap-4",children:[m.jsx("div",{className:"flex flex-col gap-2 grow p-4 mb-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:m.jsxs("form",{className:"flex gap-4 flex-col lg:flex-row",onSubmit:D,children:[m.jsx("div",{className:"flex flex-col w-full grow",children:m.jsxs("div",{className:"flex relative",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(dE,{})}),m.jsx("input",{type:"text",value:l,onChange:F=>i(F.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-2 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"Search Author / Title",name:"search"})]})}),m.jsx("div",{className:"lg:w-60",children:m.jsx("button",{type:"submit",className:"font-medium px-4 py-2 text-gray-800 bg-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-800 rounded",children:"Search"})})]})}),m.jsx("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:A==null?void 0:A.map(F=>m.jsx(fE,{doc:F},F.id))}),m.jsxs("div",{className:"w-full flex gap-4 justify-center mt-4 text-black dark:text-white",children:[G&&G>0&&m.jsx("button",{onClick:()=>r(u-1),className:"bg-white shadow-lg dark:bg-gray-600 hover:bg-gray-400 font-medium rounded text-sm text-center p-2 w-24 dark:hover:bg-gray-700 focus:outline-none",children:"◄"}),N&&N>0&&m.jsx("button",{onClick:()=>r(u+1),className:"bg-white shadow-lg dark:bg-gray-600 hover:bg-gray-400 font-medium rounded text-sm text-center p-2 w-24 dark:hover:bg-gray-700 focus:outline-none",children:"►"})]}),m.jsxs("div",{className:"fixed bottom-6 right-6 rounded-full flex items-center justify-center",children:[m.jsx("input",{type:"checkbox",id:"upload-file-button",className:"hidden",checked:f,onChange:()=>h(!f)}),m.jsxs("div",{className:`absolute right-0 z-10 bottom-0 rounded p-4 bg-gray-800 dark:bg-gray-200 text-white dark:text-black w-72 text-sm flex flex-col gap-2 ${f?"display-block":"display-none"}`,children:[m.jsxs("form",{method:"POST",encType:"multipart/form-data",className:"flex flex-col gap-2",children:[m.jsx("input",{type:"file",accept:".epub",id:"document_file",name:"document_file",ref:g,onChange:j}),m.jsx("button",{className:"font-medium px-2 py-1 text-gray-800 bg-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-800",type:"submit",onClick:F=>{var ne;F.preventDefault(),j({target:{files:(ne=g.current)==null?void 0:ne.files}})},children:"Upload File"})]}),m.jsx("label",{htmlFor:"upload-file-button",children:m.jsx("div",{className:"w-full text-center cursor-pointer font-medium mt-2 px-2 py-1 text-gray-800 bg-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-800",onClick:H,children:"Cancel Upload"})})]}),m.jsx("label",{className:"w-16 h-16 bg-gray-800 dark:bg-gray-200 rounded-full flex items-center justify-center opacity-30 hover:opacity-100 transition-all duration-200 cursor-pointer",htmlFor:"upload-file-button",children:m.jsx(hE,{})})]})]})}function yE(){var g,v,p;const{id:l}=ix(),{data:i,isLoading:u}=T2(l||""),{data:r,isLoading:o}=D2(l||"");if(u||o)return m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."});const f=(g=i==null?void 0:i.data)==null?void 0:g.document,h=r==null?void 0:r.data;return f?m.jsx("div",{className:"h-full w-full relative",children:m.jsxs("div",{className:"h-full w-full overflow-scroll bg-white shadow-lg dark:bg-gray-700 rounded dark:text-white p-4",children:[m.jsxs("div",{className:"flex flex-col gap-2 float-left w-44 md:w-60 lg:w-80 mr-4 mb-2 relative",children:[m.jsx("div",{className:"rounded object-fill w-full bg-gray-200 dark:bg-gray-600 h-60",children:m.jsx("div",{className:"w-full h-full flex items-center justify-center text-gray-400",children:"No Cover"})}),m.jsx("a",{href:`/reader#id=${f.id}&type=REMOTE`,className:"text-white bg-blue-700 hover:bg-blue-800 font-medium rounded text-sm text-center py-1 dark:bg-blue-600 dark:hover:bg-blue-700",children:"Read"}),m.jsx("div",{className:"flex flex-wrap-reverse justify-between gap-2",children:m.jsx("div",{className:"min-w-[50%] md:mr-2",children:m.jsxs("div",{className:"flex gap-1 text-sm",children:[m.jsx("p",{className:"text-gray-500",children:"Words:"}),m.jsx("p",{className:"font-medium",children:f.words||"N/A"})]})})})]}),m.jsxs("div",{className:"grid sm:grid-cols-2 justify-between gap-4 pb-4",children:[m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Title"}),m.jsx("p",{className:"font-medium text-lg",children:f.title})]}),m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Author"}),m.jsx("p",{className:"font-medium text-lg",children:f.author})]}),m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Time Read"}),m.jsx("p",{className:"font-medium text-lg",children:(v=h==null?void 0:h.progress)!=null&&v.percentage?`${Math.round(h.progress.percentage)}%`:"0%"})]}),m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Progress"}),m.jsx("p",{className:"font-medium text-lg",children:(p=h==null?void 0:h.progress)!=null&&p.percentage?`${Math.round(h.progress.percentage)}%`:"0%"})]})]}),m.jsxs("div",{className:"relative",children:[m.jsx("div",{className:"text-gray-500 inline-flex gap-2 relative",children:m.jsx("p",{children:"Description"})}),m.jsx("div",{className:"relative font-medium text-justify hyphens-auto",children:m.jsx("p",{children:"N/A"})})]}),m.jsxs("div",{className:"mt-4 grid sm:grid-cols-3 gap-4",children:[m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Words"}),m.jsx("p",{className:"font-medium",children:f.words||"N/A"})]}),m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Created"}),m.jsx("p",{className:"font-medium",children:new Date(f.created_at).toLocaleDateString()})]}),m.jsxs("div",{children:[m.jsx("p",{className:"text-gray-500",children:"Updated"}),m.jsx("p",{className:"font-medium",children:new Date(f.updated_at).toLocaleDateString()})]})]})]})}):m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Document not found"})}function pE(){var r;const{data:l,isLoading:i}=A2({page:1,limit:15}),u=(r=l==null?void 0:l.data)==null?void 0:r.progress;return i?m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."}):m.jsx("div",{className:"overflow-x-auto",children:m.jsx("div",{className:"inline-block min-w-full overflow-hidden rounded shadow",children:m.jsxs("table",{className:"min-w-full bg-white dark:bg-gray-700",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b dark:border-gray-600",children:[m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Document"}),m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Device Name"}),m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Percentage"}),m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Created At"})]})}),m.jsx("tbody",{children:u==null?void 0:u.map(o=>m.jsxs("tr",{className:"border-b dark:border-gray-600",children:[m.jsx("td",{className:"p-3",children:m.jsxs(ln,{to:`/documents/${o.document_id}`,className:"text-blue-600 dark:text-blue-400 hover:underline",children:[o.author||"Unknown"," - ",o.title||"Unknown"]})}),m.jsx("td",{className:"p-3 text-gray-700 dark:text-gray-300",children:o.device_name||"Unknown"}),m.jsxs("td",{className:"p-3 text-gray-700 dark:text-gray-300",children:[o.percentage?Math.round(o.percentage):0,"%"]}),m.jsx("td",{className:"p-3 text-gray-700 dark:text-gray-300",children:o.created_at?new Date(o.created_at).toLocaleDateString():"N/A"})]},o.document_id))})]})})})}function gE(){var r;const{data:l,isLoading:i}=q2({offset:0,limit:100}),u=(r=l==null?void 0:l.data)==null?void 0:r.activities;return i?m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."}):m.jsx("div",{className:"overflow-x-auto",children:m.jsx("div",{className:"inline-block min-w-full overflow-hidden rounded shadow",children:m.jsxs("table",{className:"min-w-full bg-white dark:bg-gray-700",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"border-b dark:border-gray-600",children:[m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Activity Type"}),m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Document"}),m.jsx("th",{className:"text-left p-3 text-gray-500 dark:text-white",children:"Timestamp"})]})}),m.jsx("tbody",{children:u==null?void 0:u.map(o=>m.jsxs("tr",{className:"border-b dark:border-gray-600",children:[m.jsx("td",{className:"p-3 text-gray-700 dark:text-gray-300",children:o.activity_type}),m.jsx("td",{className:"p-3",children:m.jsx("a",{href:`/documents/${o.document_id}`,className:"text-blue-600 dark:text-blue-400",children:o.document_id})}),m.jsx("td",{className:"p-3 text-gray-700 dark:text-gray-300",children:new Date(o.timestamp).toLocaleString()})]},o.id))})]})})})}const vE={LibGen:"LibGen"};function bE(){return m.jsxs("svg",{className:"w-15 h-15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[m.jsx("circle",{cx:"11",cy:"11",r:"8"}),m.jsx("path",{d:"M21 21l-6-6"})]})}function xE(){return m.jsxs("svg",{className:"w-15 h-15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[m.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),m.jsx("polyline",{points:"14 2 14 8 20 8"}),m.jsx("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),m.jsx("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),m.jsx("polyline",{points:"10 9 9 9 8 9"})]})}function SE(){return m.jsxs("svg",{className:"w-15 h-15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[m.jsx("polyline",{points:"21 15 16 10 8 10"}),m.jsx("line",{x1:"12",y1:"3",x2:"12",y2:"21"})]})}function EE(){var v;const[l,i]=C.useState(""),[u,r]=C.useState(vE.LibGen),{data:o,isLoading:f}=aE({query:l,source:u}),h=(v=o==null?void 0:o.data)==null?void 0:v.results,g=p=>{p.preventDefault()};return m.jsx("div",{className:"w-full flex flex-col md:flex-row gap-4",children:m.jsxs("div",{className:"flex flex-col gap-4 grow",children:[m.jsx("div",{className:"flex flex-col gap-2 grow p-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:m.jsxs("form",{className:"flex gap-4 flex-col lg:flex-row",onSubmit:g,children:[m.jsx("div",{className:"flex flex-col w-full grow",children:m.jsxs("div",{className:"flex relative",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(bE,{})}),m.jsx("input",{type:"text",value:l,onChange:p=>i(p.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"Query"})]})}),m.jsxs("div",{className:"flex relative min-w-[12em]",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(xE,{})}),m.jsxs("select",{value:u,onChange:p=>r(p.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",children:[m.jsx("option",{value:"LibGen",children:"Library Genesis"}),m.jsx("option",{value:"Annas Archive",children:"Annas Archive"})]})]}),m.jsx("div",{className:"lg:w-60",children:m.jsx("button",{type:"submit",className:"font-medium px-4 py-2 text-gray-800 bg-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-800 rounded",children:"Search"})})]})}),m.jsx("div",{className:"inline-block min-w-full overflow-hidden rounded shadow",children:m.jsxs("table",{className:"min-w-full leading-normal bg-white dark:bg-gray-700 text-sm md:text-sm",children:[m.jsx("thead",{className:"text-gray-800 dark:text-gray-400",children:m.jsxs("tr",{children:[m.jsx("th",{className:"w-12 p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Document"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Series"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Type"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Size"}),m.jsx("th",{className:"p-3 hidden md:block font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Date"})]})}),m.jsxs("tbody",{className:"text-black dark:text-white",children:[f&&m.jsx("tr",{children:m.jsx("td",{className:"text-center p-3",colSpan:6,children:"Loading..."})}),!f&&!h&&m.jsx("tr",{children:m.jsx("td",{className:"text-center p-3",colSpan:6,children:"No Results"})}),!f&&h&&h.map(p=>m.jsxs("tr",{children:[m.jsx("td",{className:"p-3 border-b border-gray-200 text-gray-500 dark:text-gray-500",children:m.jsx("button",{className:"hover:text-purple-600",title:"Download",children:m.jsx(SE,{})})}),m.jsxs("td",{className:"p-3 border-b border-gray-200",children:[p.author||"N/A"," - ",p.title||"N/A"]}),m.jsx("td",{className:"p-3 border-b border-gray-200",children:m.jsx("p",{children:p.series||"N/A"})}),m.jsx("td",{className:"p-3 border-b border-gray-200",children:m.jsx("p",{children:p.file_type||"N/A"})}),m.jsx("td",{className:"p-3 border-b border-gray-200",children:m.jsx("p",{children:p.file_size||"N/A"})}),m.jsx("td",{className:"hidden md:table-cell p-3 border-b border-gray-200",children:m.jsx("p",{children:p.upload_date||"N/A"})})]},p.id))]})]})})]})})}function RE(){return m.jsxs("svg",{className:"w-60 h-60",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[m.jsx("circle",{cx:"12",cy:"8",r:"4"}),m.jsx("path",{d:"M12 12c-4 0-8 3-8 8h16c0-5-4-8-8-8"})]})}function Np(){return m.jsxs("svg",{className:"w-15 h-15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[m.jsx("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2",ry:"2"}),m.jsx("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]})}function TE(){return m.jsxs("svg",{className:"w-15 h-15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[m.jsx("circle",{cx:"12",cy:"12",r:"10"}),m.jsx("polyline",{points:"12 6 12 12 16 14"})]})}function NE(){var b;const{data:l,isLoading:i}=Q2(),u=l==null?void 0:l.data,[r,o]=C.useState(""),[f,h]=C.useState(""),[g,v]=C.useState((u==null?void 0:u.timezone)||""),p=A=>{A.preventDefault()},x=A=>{A.preventDefault()};return i?m.jsx("div",{className:"text-gray-500 dark:text-white",children:"Loading..."}):m.jsxs("div",{className:"w-full flex flex-col md:flex-row gap-4",children:[m.jsx("div",{children:m.jsxs("div",{className:"flex flex-col p-4 items-center rounded shadow-lg md:w-60 lg:w-80 bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:[m.jsx(RE,{}),m.jsx("p",{className:"text-lg",children:(b=u==null?void 0:u.user)==null?void 0:b.username})]})}),m.jsxs("div",{className:"flex flex-col gap-4 grow",children:[m.jsxs("div",{className:"flex flex-col gap-2 grow p-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:[m.jsx("p",{className:"text-lg font-semibold mb-2",children:"Change Password"}),m.jsxs("form",{className:"flex gap-4 flex-col lg:flex-row",onSubmit:p,children:[m.jsx("div",{className:"flex flex-col grow",children:m.jsxs("div",{className:"flex relative",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(Np,{})}),m.jsx("input",{type:"password",value:r,onChange:A=>o(A.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"Password"})]})}),m.jsx("div",{className:"flex flex-col grow",children:m.jsxs("div",{className:"flex relative",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(Np,{})}),m.jsx("input",{type:"password",value:f,onChange:A=>h(A.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"New Password"})]})}),m.jsx("div",{className:"lg:w-60",children:m.jsx("button",{type:"submit",className:"font-medium px-4 py-2 text-gray-800 bg-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-800 rounded",children:"Submit"})})]})]}),m.jsxs("div",{className:"flex flex-col grow gap-2 p-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:[m.jsx("p",{className:"text-lg font-semibold mb-2",children:"Change Timezone"}),m.jsxs("form",{className:"flex gap-4 flex-col lg:flex-row",onSubmit:x,children:[m.jsxs("div",{className:"flex relative grow",children:[m.jsx("span",{className:"inline-flex items-center px-3 border-t bg-white border-l border-b border-gray-300 text-gray-500 shadow-sm text-sm",children:m.jsx(TE,{})}),m.jsxs("select",{value:g,onChange:A=>v(A.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",children:[m.jsx("option",{value:"UTC",children:"UTC"}),m.jsx("option",{value:"America/New_York",children:"America/New_York"}),m.jsx("option",{value:"America/Chicago",children:"America/Chicago"}),m.jsx("option",{value:"America/Denver",children:"America/Denver"}),m.jsx("option",{value:"America/Los_Angeles",children:"America/Los_Angeles"}),m.jsx("option",{value:"Europe/London",children:"Europe/London"}),m.jsx("option",{value:"Europe/Paris",children:"Europe/Paris"}),m.jsx("option",{value:"Asia/Tokyo",children:"Asia/Tokyo"}),m.jsx("option",{value:"Asia/Shanghai",children:"Asia/Shanghai"}),m.jsx("option",{value:"Australia/Sydney",children:"Australia/Sydney"})]})]}),m.jsx("div",{className:"lg:w-60",children:m.jsx("button",{type:"submit",className:"font-medium px-4 py-2 text-gray-800 bg-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-800 rounded",children:"Submit"})})]})]}),m.jsxs("div",{className:"flex flex-col grow p-4 rounded shadow-lg bg-white dark:bg-gray-700 text-gray-500 dark:text-white",children:[m.jsx("p",{className:"text-lg font-semibold",children:"Devices"}),m.jsxs("table",{className:"min-w-full bg-white dark:bg-gray-700 text-sm",children:[m.jsx("thead",{className:"text-gray-800 dark:text-gray-400",children:m.jsxs("tr",{children:[m.jsx("th",{className:"p-3 pl-0 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Name"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Last Sync"}),m.jsx("th",{className:"p-3 font-normal text-left uppercase border-b border-gray-200 dark:border-gray-800",children:"Created"})]})}),m.jsx("tbody",{className:"text-black dark:text-white",children:!(u!=null&&u.devices)||u.devices.length===0?m.jsx("tr",{children:m.jsx("td",{className:"text-center p-3",colSpan:3,children:"No Results"})}):u.devices.map(A=>m.jsxs("tr",{children:[m.jsx("td",{className:"p-3 pl-0",children:m.jsx("p",{children:A.device_name||"Unknown"})}),m.jsx("td",{className:"p-3",children:m.jsx("p",{children:A.last_synced?new Date(A.last_synced).toLocaleString():"N/A"})}),m.jsx("td",{className:"p-3",children:m.jsx("p",{children:A.created_at?new Date(A.created_at).toLocaleString():"N/A"})})]},A.id))})]})]})]})]})}function OE(){const[l,i]=C.useState(""),[u,r]=C.useState(""),[o,f]=C.useState(""),[h,g]=C.useState(!1),{login:v}=Cf(),p=async x=>{x.preventDefault(),g(!0),f("");try{await v(l,u)}catch{f("Invalid credentials")}finally{g(!1)}};return m.jsx("div",{className:"bg-gray-100 dark:bg-gray-800 dark:text-white min-h-screen",children:m.jsxs("div",{className:"flex flex-wrap w-full",children:[m.jsx("div",{className:"flex flex-col w-full md:w-1/2",children:m.jsxs("div",{className:"flex flex-col justify-center px-8 pt-8 my-auto md:justify-start md:pt-0 md:px-24 lg:px-32",children:[m.jsx("p",{className:"text-3xl text-center",children:"Welcome."}),m.jsxs("form",{className:"flex flex-col pt-3 md:pt-8",onSubmit:p,children:[m.jsx("div",{className:"flex flex-col pt-4",children:m.jsx("div",{className:"flex relative",children:m.jsx("input",{type:"text",value:l,onChange:x=>i(x.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"Username",required:!0,disabled:h})})}),m.jsx("div",{className:"flex flex-col pt-4 mb-12",children:m.jsxs("div",{className:"flex relative",children:[m.jsx("input",{type:"password",value:u,onChange:x=>r(x.target.value),className:"flex-1 appearance-none rounded-none border border-gray-300 w-full py-2 px-4 bg-white text-gray-700 placeholder-gray-400 shadow-sm text-base focus:outline-none focus:ring-2 focus:ring-purple-600 focus:border-transparent",placeholder:"Password",required:!0,disabled:h}),m.jsx("span",{className:"absolute -bottom-5 text-red-400 text-xs",children:o})]})}),m.jsx("button",{type:"submit",disabled:h,className:"w-full px-4 py-2 text-base font-semibold text-center text-white transition duration-200 ease-in bg-black shadow-md hover:text-black hover:bg-white focus:outline-none focus:ring-2 disabled:opacity-50",children:h?"Logging in...":"Login"})]}),m.jsx("div",{className:"pt-12 pb-12 text-center",children:m.jsx("p",{className:"mt-4",children:m.jsx("a",{href:"/local",className:"font-semibold underline",children:"Offline / Local Mode"})})})]})}),m.jsx("div",{className:"hidden image-fader w-1/2 shadow-2xl h-screen relative md:block",children:m.jsx("div",{className:"w-full h-screen object-cover ease-in-out top-0 left-0 bg-gray-300 flex items-center justify-center",children:m.jsx("span",{className:"text-gray-500",children:"AnthoLume"})})})]})})}function Xa({children:l}){const{isAuthenticated:i}=Cf(),u=sn();return i?l:m.jsx(Wp,{to:"/login",state:{from:u},replace:!0})}function jE(){return m.jsxs(Sx,{children:[m.jsxs(hn,{path:"/",element:m.jsx(uE,{}),children:[m.jsx(hn,{index:!0,element:m.jsx(Xa,{children:m.jsx(cE,{})})}),m.jsx(hn,{path:"documents",element:m.jsx(Xa,{children:m.jsx(mE,{})})}),m.jsx(hn,{path:"documents/:id",element:m.jsx(Xa,{children:m.jsx(yE,{})})}),m.jsx(hn,{path:"progress",element:m.jsx(Xa,{children:m.jsx(pE,{})})}),m.jsx(hn,{path:"activity",element:m.jsx(Xa,{children:m.jsx(gE,{})})}),m.jsx(hn,{path:"search",element:m.jsx(Xa,{children:m.jsx(EE,{})})}),m.jsx(hn,{path:"settings",element:m.jsx(Xa,{children:m.jsx(NE,{})})})]}),m.jsx(hn,{path:"/login",element:m.jsx(OE,{})})]})}function AE(){return m.jsx(lE,{children:m.jsx(jE,{})})}const wE=new T1({defaultOptions:{queries:{staleTime:1e3*60*5,retry:1},mutations:{retry:0}}});xb.createRoot(document.getElementById("root")).render(m.jsx(db.StrictMode,{children:m.jsx(N1,{client:wE,children:m.jsx(Xx,{children:m.jsx(AE,{})})})}));
|