Files
study-tool aa48145557 feat: 故障推送 / 公需课自动重学 / 插件解耦,发版 v0.0.8
体检修复:启动日志不再打印 AUTH_TOKEN、密钥可清空、推送失败不占整段冷却、目录名与文案统一成 plugins/。
2026-11-01 17:47:22 +08:00

267 lines
309 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var Dy=Object.defineProperty;var Uy=(f,x,T)=>x in f?Dy(f,x,{enumerable:!0,configurable:!0,writable:!0,value:T}):f[x]=T;var $i=(f,x,T)=>Uy(f,typeof x!="symbol"?x+"":x,T);(function(){const x=document.createElement("link").relList;if(x&&x.supports&&x.supports("modulepreload"))return;for(const j of document.querySelectorAll('link[rel="modulepreload"]'))o(j);new MutationObserver(j=>{for(const H of j)if(H.type==="childList")for(const A of H.addedNodes)A.tagName==="LINK"&&A.rel==="modulepreload"&&o(A)}).observe(document,{childList:!0,subtree:!0});function T(j){const H={};return j.integrity&&(H.integrity=j.integrity),j.referrerPolicy&&(H.referrerPolicy=j.referrerPolicy),j.crossOrigin==="use-credentials"?H.credentials="include":j.crossOrigin==="anonymous"?H.credentials="omit":H.credentials="same-origin",H}function o(j){if(j.ep)return;j.ep=!0;const H=T(j);fetch(j.href,H)}})();var Mf={exports:{}},xu={};/**
* @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 ym;function Ry(){if(ym)return xu;ym=1;var f=Symbol.for("react.transitional.element"),x=Symbol.for("react.fragment");function T(o,j,H){var A=null;if(H!==void 0&&(A=""+H),j.key!==void 0&&(A=""+j.key),"key"in j){H={};for(var W in j)W!=="key"&&(H[W]=j[W])}else H=j;return j=H.ref,{$$typeof:f,type:o,key:A,ref:j!==void 0?j:null,props:H}}return xu.Fragment=x,xu.jsx=T,xu.jsxs=T,xu}var vm;function Hy(){return vm||(vm=1,Mf.exports=Ry()),Mf.exports}var c=Hy(),Df={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 gm;function wy(){if(gm)return re;gm=1;var f=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),A=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),Z=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),C=Symbol.for("react.view_transition"),F=Symbol.iterator;function xe(d){return d===null||typeof d!="object"?null:(d=F&&d[F]||d["@@iterator"],typeof d=="function"?d:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ee=Object.assign,Ue={};function le(d,E,B){this.props=d,this.context=E,this.refs=Ue,this.updater=B||L}le.prototype.isReactComponent={},le.prototype.setState=function(d,E){if(typeof d!="object"&&typeof d!="function"&&d!=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,d,E,"setState")},le.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function I(){}I.prototype=le.prototype;function Le(d,E,B){this.props=d,this.context=E,this.refs=Ue,this.updater=B||L}var Se=Le.prototype=new I;Se.constructor=Le,ee(Se,le.prototype),Se.isPureReactComponent=!0;var $=Array.isArray;function ae(){}var ve={H:null,A:null,T:null,S:null},Ce=Object.prototype.hasOwnProperty;function Y(d,E,B){var w=B.ref;return{$$typeof:f,type:d,key:E,ref:w!==void 0?w:null,props:B}}function Me(d,E){return Y(d.type,E,d.props)}function Ae(d){return typeof d=="object"&&d!==null&&d.$$typeof===f}function qe(d){var E={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(B){return E[B]})}var U=/\/+/g;function se(d,E){return typeof d=="object"&&d!==null&&d.key!=null?qe(""+d.key):E.toString(36)}function R(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(ae,ae):(d.status="pending",d.then(function(E){d.status==="pending"&&(d.status="fulfilled",d.value=E)},function(E){d.status==="pending"&&(d.status="rejected",d.reason=E)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function Q(d,E,B,w,ce){var me=typeof d;(me==="undefined"||me==="boolean")&&(d=null);var Ee=!1;if(d===null)Ee=!0;else switch(me){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(d.$$typeof){case f:case x:Ee=!0;break;case q:return Ee=d._init,Q(Ee(d._payload),E,B,w,ce)}}if(Ee)return ce=ce(d),Ee=w===""?"."+se(d,0):w,$(ce)?(B="",Ee!=null&&(B=Ee.replace(U,"$&/")+"/"),Q(ce,E,B,"",function(jt){return jt})):ce!=null&&(Ae(ce)&&(ce=Me(ce,B+(ce.key==null||d&&d.key===ce.key?"":(""+ce.key).replace(U,"$&/")+"/")+Ee)),E.push(ce)),1;Ee=0;var K=w===""?".":w+":";if($(d))for(var ue=0;ue<d.length;ue++)w=d[ue],me=K+se(w,ue),Ee+=Q(w,E,B,me,ce);else if(ue=xe(d),typeof ue=="function")for(d=ue.call(d),ue=0;!(w=d.next()).done;)w=w.value,me=K+se(w,ue++),Ee+=Q(w,E,B,me,ce);else if(me==="object"){if(typeof d.then=="function")return Q(R(d),E,B,w,ce);throw E=String(d),Error("Objects are not valid as a React child (found: "+(E==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function te(d,E,B){if(d==null)return d;var w=[],ce=0;return Q(d,w,"","",function(me){return E.call(B,me,ce++)}),w}function _e(d){if(d._status===-1){var E=d._result,B=E();B.then(function(w){(d._status===0||d._status===-1)&&(d._status=1,d._result=w,B.status===void 0&&(B.status="fulfilled",B.value=w))},function(w){(d._status===0||d._status===-1)&&(d._status=2,d._result=w,B.status===void 0&&(B.status="rejected",B.reason=w))}),d._status===-1&&(d._status=0,d._result=B)}if(d._status===1)return d._result.default;throw d._result}var ze=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var E=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(E))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)};function it(d){var E=ve.T,B={};B.types=E!==null?E.types:null,ve.T=B;try{var w=d(),ce=ve.S;ce!==null&&ce(B,w),typeof w=="object"&&w!==null&&typeof w.then=="function"&&w.then(ae,ze)}catch(me){ze(me)}finally{E!==null&&B.types!==null&&(E.types=B.types),ve.T=E}}function ne(d){var E=ve.T;if(E!==null){var B=E.types;B===null?E.types=[d]:B.indexOf(d)===-1&&B.push(d)}else it(ne.bind(null,d))}var oe={map:te,forEach:function(d,E,B){te(d,function(){E.apply(this,arguments)},B)},count:function(d){var E=0;return te(d,function(){E++}),E},toArray:function(d){return te(d,function(E){return E})||[]},only:function(d){if(!Ae(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return re.Activity=S,re.Children=oe,re.Component=le,re.Fragment=T,re.Profiler=j,re.PureComponent=Le,re.StrictMode=o,re.Suspense=k,re.ViewTransition=C,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ve,re.__COMPILER_RUNTIME={__proto__:null,c:function(d){return ve.H.useMemoCache(d)}},re.addTransitionType=ne,re.cache=function(d){return function(){return d.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(d,E,B){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var w=ee({},d.props),ce=d.key;if(E!=null)for(me in E.key!==void 0&&(ce=""+E.key),E)!Ce.call(E,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&E.ref===void 0||(w[me]=E[me]);var me=arguments.length-2;if(me===1)w.children=B;else if(1<me){for(var Ee=Array(me),K=0;K<me;K++)Ee[K]=arguments[K+2];w.children=Ee}return Y(d.type,ce,w)},re.createContext=function(d){return d={$$typeof:A,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:H,_context:d},d},re.createElement=function(d,E,B){var w,ce={},me=null;if(E!=null)for(w in E.key!==void 0&&(me=""+E.key),E)Ce.call(E,w)&&w!=="key"&&w!=="__self"&&w!=="__source"&&(ce[w]=E[w]);var Ee=arguments.length-2;if(Ee===1)ce.children=B;else if(1<Ee){for(var K=Array(Ee),ue=0;ue<Ee;ue++)K[ue]=arguments[ue+2];ce.children=K}if(d&&d.defaultProps)for(w in Ee=d.defaultProps,Ee)ce[w]===void 0&&(ce[w]=Ee[w]);return Y(d,me,ce)},re.createRef=function(){return{current:null}},re.forwardRef=function(d){return{$$typeof:W,render:d}},re.isValidElement=Ae,re.lazy=function(d){return{$$typeof:q,_payload:{_status:-1,_result:d},_init:_e}},re.memo=function(d,E){return{$$typeof:Z,type:d,compare:E===void 0?null:E}},re.startTransition=it,re.unstable_useCacheRefresh=function(){return ve.H.useCacheRefresh()},re.use=function(d){return ve.H.use(d)},re.useActionState=function(d,E,B){return ve.H.useActionState(d,E,B)},re.useCallback=function(d,E){return ve.H.useCallback(d,E)},re.useContext=function(d){return ve.H.useContext(d)},re.useDebugValue=function(){},re.useDeferredValue=function(d,E){return ve.H.useDeferredValue(d,E)},re.useEffect=function(d,E){return ve.H.useEffect(d,E)},re.useEffectEvent=function(d){return ve.H.useEffectEvent(d)},re.useId=function(){return ve.H.useId()},re.useImperativeHandle=function(d,E,B){return ve.H.useImperativeHandle(d,E,B)},re.useInsertionEffect=function(d,E){return ve.H.useInsertionEffect(d,E)},re.useLayoutEffect=function(d,E){return ve.H.useLayoutEffect(d,E)},re.useMemo=function(d,E){return ve.H.useMemo(d,E)},re.useOptimistic=function(d,E){return ve.H.useOptimistic(d,E)},re.useReducer=function(d,E,B){return ve.H.useReducer(d,E,B)},re.useRef=function(d){return ve.H.useRef(d)},re.useState=function(d){return ve.H.useState(d)},re.useSyncExternalStore=function(d,E,B){return ve.H.useSyncExternalStore(d,E,B)},re.useTransition=function(){return ve.H.useTransition()},re.version="19.3.1",re}var xm;function Qf(){return xm||(xm=1,Df.exports=wy()),Df.exports}var D=Qf(),Uf={exports:{}},bu={},Rf={exports:{}},Hf={};/**
* @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 bm;function qy(){return bm||(bm=1,(function(f){function x(R,Q){var te=R.length;R.push(Q);e:for(;0<te;){var _e=te-1>>>1,ze=R[_e];if(0<j(ze,Q))R[_e]=Q,R[te]=ze,te=_e;else break e}}function T(R){return R.length===0?null:R[0]}function o(R){if(R.length===0)return null;var Q=R[0],te=R.pop();if(te!==Q){R[0]=te;e:for(var _e=0,ze=R.length,it=ze>>>1;_e<it;){var ne=2*(_e+1)-1,oe=R[ne],d=ne+1,E=R[d];if(0>j(oe,te))d<ze&&0>j(E,oe)?(R[_e]=E,R[d]=te,_e=d):(R[_e]=oe,R[ne]=te,_e=ne);else if(d<ze&&0>j(E,te))R[_e]=E,R[d]=te,_e=d;else break e}}return Q}function j(R,Q){var te=R.sortIndex-Q.sortIndex;return te!==0?te:R.id-Q.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var H=performance;f.unstable_now=function(){return H.now()}}else{var A=Date,W=A.now();f.unstable_now=function(){return A.now()-W}}var k=[],Z=[],q=1,S=null,C=3,F=!1,xe=!1,L=!1,ee=!1,Ue=typeof setTimeout=="function"?setTimeout:null,le=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;function Le(R){for(var Q=T(Z);Q!==null;){if(Q.callback===null)o(Z);else if(Q.startTime<=R)o(Z),Q.sortIndex=Q.expirationTime,x(k,Q);else break;Q=T(Z)}}function Se(R){if(L=!1,Le(R),!xe)if(T(k)!==null)xe=!0,$||($=!0,Ae());else{var Q=T(Z);Q!==null&&se(Se,Q.startTime-R)}}var $=!1,ae=-1,ve=5,Ce=-1;function Y(){return ee?!0:!(f.unstable_now()-Ce<ve)}function Me(){if(ee=!1,$){var R=f.unstable_now();Ce=R;var Q=!0;try{e:{xe=!1,L&&(L=!1,le(ae),ae=-1),F=!0;var te=C;try{t:{for(Le(R),S=T(k);S!==null&&!(S.expirationTime>R&&Y());){var _e=S.callback;if(typeof _e=="function"){S.callback=null,C=S.priorityLevel;var ze=_e(S.expirationTime<=R);if(R=f.unstable_now(),typeof ze=="function"){S.callback=ze,Le(R),Q=!0;break t}S===T(k)&&o(k),Le(R)}else o(k);S=T(k)}if(S!==null)Q=!0;else{var it=T(Z);it!==null&&se(Se,it.startTime-R),Q=!1}}break e}finally{S=null,C=te,F=!1}Q=void 0}}finally{Q?Ae():$=!1}}}var Ae;if(typeof I=="function")Ae=function(){I(Me)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,U=qe.port2;qe.port1.onmessage=Me,Ae=function(){U.postMessage(null)}}else Ae=function(){Ue(Me,0)};function se(R,Q){ae=Ue(function(){R(f.unstable_now())},Q)}f.unstable_IdlePriority=5,f.unstable_ImmediatePriority=1,f.unstable_LowPriority=4,f.unstable_NormalPriority=3,f.unstable_Profiling=null,f.unstable_UserBlockingPriority=2,f.unstable_cancelCallback=function(R){R.callback=null},f.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ve=0<R?Math.floor(1e3/R):5},f.unstable_getCurrentPriorityLevel=function(){return C},f.unstable_next=function(R){switch(C){case 1:case 2:case 3:var Q=3;break;default:Q=C}var te=C;C=Q;try{return R()}finally{C=te}},f.unstable_requestPaint=function(){ee=!0},f.unstable_runWithPriority=function(R,Q){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var te=C;C=R;try{return Q()}finally{C=te}},f.unstable_scheduleCallback=function(R,Q,te){var _e=f.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?_e+te:_e):te=_e,R){case 1:var ze=-1;break;case 2:ze=250;break;case 5:ze=1073741823;break;case 4:ze=1e4;break;default:ze=5e3}return ze=te+ze,R={id:q++,callback:Q,priorityLevel:R,startTime:te,expirationTime:ze,sortIndex:-1},te>_e?(R.sortIndex=te,x(Z,R),T(k)===null&&R===T(Z)&&(L?(le(ae),ae=-1):L=!0,se(Se,te-_e))):(R.sortIndex=ze,x(k,R),xe||F||(xe=!0,$||($=!0,Ae()))),R},f.unstable_shouldYield=Y,f.unstable_wrapCallback=function(R){var Q=C;return function(){var te=C;C=Q;try{return R.apply(this,arguments)}finally{C=te}}}})(Hf)),Hf}var pm;function By(){return pm||(pm=1,Rf.exports=qy()),Rf.exports}var wf={exports:{}},xt={};/**
* @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 Sm;function Yy(){if(Sm)return xt;Sm=1;var f=Qf();function x(q){var S="https://react.dev/errors/"+q;if(1<arguments.length){S+="?args[]="+encodeURIComponent(arguments[1]);for(var C=2;C<arguments.length;C++)S+="&args[]="+encodeURIComponent(arguments[C])}return"Minified React error #"+q+"; visit "+S+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function T(){}var o={d:{f:T,r:function(){throw Error(x(522))},D:T,C:T,L:T,m:T,X:T,S:T,M:T},p:0,findDOMNode:null},j=Symbol.for("react.portal"),H=Symbol.for("react.recoverable"),A=Symbol.for("react.optimistic_key");function W(q,S,C){var F=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:j,key:F==null?null:F===A?A:""+F,children:q,containerInfo:S,implementation:C}}var k=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Z(q,S){if(q==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}return xt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,xt.browser=function(q){return{$$typeof:H,_reason:q}},xt.createPortal=function(q,S){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)throw Error(x(299));return W(q,S,null,C)},xt.flushSync=function(q){var S=k.T,C=o.p;try{if(k.T=null,o.p=2,q)return q()}finally{k.T=S,o.p=C,o.d.f()}},xt.preconnect=function(q,S){typeof q=="string"&&(S?(S=S.crossOrigin,S=typeof S=="string"?S==="use-credentials"?S:"":void 0):S=null,o.d.C(q,S))},xt.prefetchDNS=function(q){typeof q=="string"&&o.d.D(q)},xt.preinit=function(q,S){if(typeof q=="string"&&S&&typeof S.as=="string"){var C=S.as,F=Z(C,S.crossOrigin),xe=typeof S.integrity=="string"?S.integrity:void 0,L=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;C==="style"?o.d.S(q,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:F,integrity:xe,fetchPriority:L}):C==="script"&&o.d.X(q,{crossOrigin:F,integrity:xe,fetchPriority:L,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},xt.preinitModule=function(q,S){if(typeof q=="string")if(typeof S=="object"&&S!==null){if(S.as==null||S.as==="script"){var C=Z(S.as,S.crossOrigin);o.d.M(q,{crossOrigin:C,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0})}}else S==null&&o.d.M(q)},xt.preload=function(q,S){if(typeof q=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){var C=S.as,F=Z(C,S.crossOrigin);o.d.L(q,C,{crossOrigin:F,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,type:typeof S.type=="string"?S.type:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0,referrerPolicy:typeof S.referrerPolicy=="string"?S.referrerPolicy:void 0,imageSrcSet:typeof S.imageSrcSet=="string"?S.imageSrcSet:void 0,imageSizes:typeof S.imageSizes=="string"?S.imageSizes:void 0,media:typeof S.media=="string"?S.media:void 0})}},xt.preloadModule=function(q,S){if(typeof q=="string")if(S){var C=Z(S.as,S.crossOrigin);o.d.m(q,{as:typeof S.as=="string"&&S.as!=="script"?S.as:void 0,crossOrigin:C,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0})}else o.d.m(q)},xt.requestFormReset=function(q){o.d.r(q)},xt.unstable_batchedUpdates=function(q,S){return q(S)},xt.useFormState=function(q,S,C){return k.H.useFormState(q,S,C)},xt.useFormStatus=function(){return k.H.useHostTransitionStatus()},xt.version="19.3.1",xt}var Nm;function Gy(){if(Nm)return wf.exports;Nm=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(x){console.error(x)}}return f(),wf.exports=Yy(),wf.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 Tm;function Qy(){if(Tm)return bu;Tm=1;var f=By(),x=Qf(),T=Gy();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function j(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function H(e){for(var t=e,l=t;l&&!l.alternate;)t=l,(t.flags&4098)!==0&&(e=t.return),l=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function A(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 W(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 k(e){if(H(e)!==e)throw Error(o(188))}function Z(e){var t=e.alternate;if(!t){if(t=H(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return k(n),e;if(u===a)return k(n),t;u=u.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=u;else{for(var i=!1,s=n.child;s;){if(s===l){i=!0,l=n,a=u;break}if(s===a){i=!0,a=n,l=u;break}s=s.sibling}if(!i){for(s=u.child;s;){if(s===l){i=!0,l=u,a=n;break}if(s===a){i=!0,a=u,l=n;break}s=s.sibling}if(!i)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function q(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=q(e),t!==null)return t;e=e.sibling}return null}function S(e,t,l,a,n,u){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&l(e,a,n,u)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&S(e.child,t,l,a,n,u))return!0;e=e.sibling}return!1}function C(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function F(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function xe(e){var t=[null,null],l=C(e);return l===null||L(t,e,l.child,{foundSelf:!1}),t}function L(e,t,l,a){for(;l!==null;){if(l===t)a.foundSelf=!0;else if(l.tag===5||l.tag===27||l.tag===6){if(a.foundSelf)return e[1]=l,!0;e[0]=l}else if((l.tag!==22||l.memoizedState===null)&&L(e,t,l.child,a))return!0;l=l.sibling}return!1}function ee(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(o(559))}}var Ue=null,le=null;function I(e,t,l){return e===l?!0:e===t?(Ue=e,!0):!1}function Le(e,t,l){return e===l?(le=e,!1):e===t?(le!==null&&(Ue=e),!0):!1}function Se(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function $(e,t,l){for(var a=0,n=e;n;n=l(n))a++;n=0;for(var u=t;u;u=l(u))n++;for(;0<a-n;)e=l(e),a--;for(;0<n-a;)t=l(t),n--;for(;a--;){if(e===t||t!==null&&e===t.alternate)return e;e=l(e),t=l(t)}return null}var ae=Object.assign,ve=Symbol.for("react.element"),Ce=Symbol.for("react.transitional.element"),Y=Symbol.for("react.portal"),Me=Symbol.for("react.fragment"),Ae=Symbol.for("react.strict_mode"),qe=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),se=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),_e=Symbol.for("react.memo"),ze=Symbol.for("react.lazy"),it=Symbol.for("react.activity"),ne=Symbol.for("react.legacy_hidden"),oe=Symbol.for("react.memo_cache_sentinel"),d=Symbol.for("react.view_transition"),E=Symbol.for("react.recoverable"),B=Symbol.iterator;function w(e){return e===null||typeof e!="object"?null:(e=B&&e[B]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function me(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Me:return"Fragment";case qe:return"Profiler";case Ae:return"StrictMode";case Q:return"Suspense";case te:return"SuspenseList";case it:return"Activity";case d:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case Y:return"Portal";case se:return e.displayName||"Context";case U:return(e._context.displayName||"Context")+".Consumer";case R:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _e:return t=e.displayName||null,t!==null?t:me(e.type)||"Memo";case ze:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}var Ee=Array.isArray,K=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=T.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,jt={pending:!1,data:null,method:null,action:null},tl=[],St=-1;function Nt(e){return{current:e}}function h(e){0>St||(e.current=tl[St],tl[St]=null,St--)}function M(e,t){St++,tl[St]=e.current,e.current=t}var O=Nt(null),X=Nt(null),fe=Nt(null),de=Nt(null);function ge(e,t){switch(M(fe,t),M(X,e),M(O,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?_0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=_0(t),e=z0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}h(O),M(O,e)}function nt(){h(O),h(X),h(fe)}function bt(e){var t=e.memoizedState;t!==null&&(Nn._currentValue=t.memoizedState,M(de,e)),t=O.current;var l=z0(t,e.type);t!==l&&(M(X,e),M(O,l))}function ll(e){X.current===e&&(h(O),h(X)),de.current===e&&(h(de),Nn._currentValue=jt)}var Wi,Vf;function wl(e){if(Wi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Wi=t&&t[1]||"",Vf=-1<l.stack.indexOf(`
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Wi+e+Vf}var Ii=!1;function Pi(e,t){if(!e||Ii)return"";Ii=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(G){var y=G}Reflect.construct(e,[],z)}else{try{z.call()}catch(G){y=G}z=!1;try{var p=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),z=!0,new e}finally{z&&(p!==void 0?Object.defineProperty(e.prototype,"props",p):delete e.prototype.props)}}}else{try{throw Error()}catch(G){y=G}(z=e())&&typeof z.catch=="function"&&z.catch(function(){})}}catch(G){if(G&&y&&typeof G.stack=="string")return[G.stack,y.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],s=u[1];if(i&&s){var r=i.split(`
`),g=s.split(`
`);for(n=a=0;a<r.length&&!r[a].includes("DetermineComponentFrameRoot");)a++;for(;n<g.length&&!g[n].includes("DetermineComponentFrameRoot");)n++;if(a===r.length||n===g.length)for(a=r.length-1,n=g.length-1;1<=a&&0<=n&&r[a]!==g[n];)n--;for(;1<=a&&0<=n;a--,n--)if(r[a]!==g[n]){if(a!==1||n!==1)do if(a--,n--,0>n||r[a]!==g[n]){var N=`
`+r[a].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),N}while(1<=a&&0<=n);break}}}finally{Ii=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?wl(l):""}function wm(e,t){switch(e.tag){case 26:case 27:case 5:return wl(e.type);case 16:return wl("Lazy");case 13:return e.child!==t&&t!==null?wl("Suspense Fallback"):wl("Suspense");case 19:return wl("SuspenseList");case 0:case 15:return Pi(e.type,!1);case 11:return Pi(e.type.render,!1);case 1:return Pi(e.type,!0);case 31:return wl("Activity");case 30:return wl("ViewTransition");default:return""}}function Zf(e){try{var t="",l=null;do t+=wm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var ec=Object.prototype.hasOwnProperty,tc=f.unstable_scheduleCallback,lc=f.unstable_cancelCallback,qm=f.unstable_shouldYield,Bm=f.unstable_requestPaint,Rt=f.unstable_now,Ym=f.unstable_getCurrentPriorityLevel,Kf=f.unstable_ImmediatePriority,kf=f.unstable_UserBlockingPriority,Nu=f.unstable_NormalPriority,Gm=f.unstable_LowPriority,Jf=f.unstable_IdlePriority,Qm=f.log,Xm=f.unstable_setDisableYieldValue,zn=null,Ht=null;function ql(e){if(typeof Qm=="function"&&Xm(e),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(zn,e)}catch{}}var wt=Math.clz32?Math.clz32:Zm,Lm=Math.log,Vm=Math.LN2;function Zm(e){return e>>>=0,e===0?32:31-(Lm(e)/Vm|0)|0}var Tu=256,_u=262144,zu=4194304;function ra(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Eu(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var s=a&134217727;return s!==0?(a=s&~u,a!==0?n=ra(a):(i&=s,i!==0?n=ra(i):l||(l=s&~e,l!==0&&(n=ra(l))))):(s=a&~u,s!==0?n=ra(s):i!==0?n=ra(i):l||(l=a&~e,l!==0&&(n=ra(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function En(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $f(e,t){(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var a=31-wt(l),n=1<<a;t|=e[a],l&=~n}return t}function Km(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 Ff(){var e=zu;return zu<<=1,(zu&62914560)===0&&(zu=4194304),e}function ac(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function jn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function km(e,t,l,a,n,u){var i=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var s=e.entanglements,r=e.expirationTimes,g=e.hiddenUpdates;for(l=i&~l;0<l;){var N=31-wt(l),z=1<<N;s[N]=0,r[N]=-1;var y=g[N];if(y!==null)for(g[N]=null,N=0;N<y.length;N++){var p=y[N];p!==null&&(p.lane&=-536870913)}l&=~z}a!==0&&Wf(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(i&~t))}function Wf(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-wt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function If(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-wt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Pf(e,t){var l=t&-t;return l=(l&42)!==0?1:nc(l),(l&(e.suspendedLanes|t))!==0?0:l}function nc(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 uc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function er(){var e=ue.p;return e!==0?e:(e=window.event,e===void 0?32:sm(e.type))}function tr(e,t){var l=ue.p;try{return ue.p=e,t()}finally{ue.p=l}}var pl=Math.random().toString(36).slice(2),dt="__reactFiber$"+pl,Ot="__reactProps$"+pl,Ha="__reactContainer$"+pl,lr="__reactEvents$"+pl,Jm="__reactListeners$"+pl,$m="__reactHandles$"+pl,ar="__reactResources$"+pl,On="__reactMarker$"+pl,ju="__reactLoad$"+pl;function Ou(e){delete e[dt],delete e[Ot],delete e[Jm],delete e[$m]}function oa(e){var t;if(t=e[dt])return t;for(var l=e.parentNode;l;){if(t=l[Ha]||l[dt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=X0(e);e!==null;){if(l=e[dt])return l;e=X0(e)}return t}e=l,l=e.parentNode}return null}function wa(e){if(e=e[dt]||e[Ha]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function An(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function qa(e){var t=e[ar];return t||(t=e[ar]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ct(e){e[On]=!0}function nr(e){e[ju]=void 0}var ur=new Set,ir={};function da(e,t){Ba(e,t),Ba(e+"Capture",t)}function Ba(e,t){for(ir[e]=t,e=0;e<t.length;e++)ur.add(t[e])}var Fm=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]*$"),cr={},sr={};function Wm(e){return ec.call(sr,e)?!0:ec.call(cr,e)?!1:Fm.test(e)?sr[e]=!0:(cr[e]=!0,!1)}var He=!1;function fr(){var e=He;return He=!1,e}function Au(e,t,l){if(Wm(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,l)}}function Cu(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,l)}}function Sl(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,a)}}function qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Im(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){l=""+i,u.call(this,i)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ic(e){if(!e._valueTracker){var t=rr(e)?"checked":"value";e._valueTracker=Im(e,t,""+e[t])}}function or(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=rr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}var Pm=/[\n"\\]/g;function Zt(e){return e.replace(Pm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function cc(e,t,l,a,n,u,i,s){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+qt(t)):e.value!==""+qt(t)&&(e.value=""+qt(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?i==="number"&&e.value==t?sc(e,qt(e.value)):sc(e,qt(t)):l!=null?sc(e,qt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+qt(s):e.removeAttribute("name")}function dr(e,t,l,a,n,u,i,s){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){ic(e);return}l=l!=null?""+qt(l):"",t=t!=null?""+qt(t):l,s||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=s?e.checked:!!a,e.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),ic(e)}function sc(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Ya(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+qt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function mr(e,t,l){if(t!=null&&(t=""+qt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+qt(l):""}function hr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(Ee(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=qt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),ic(e)}function Ga(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var e1=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 yr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||e1.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function vr(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="",He=!0);for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&(yr(e,n,a),He=!0)}else for(var u in t)t.hasOwnProperty(u)&&yr(e,u,t[u])}function fc(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 t1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),l1=/^[\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 Mu(e){return l1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function fl(){}var rc=null;function oc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qa=null,Xa=null;function gr(e){var t=wa(e);if(t&&(e=t.stateNode)){var l=e[Ot]||null;e:switch(e=t.stateNode,t.type){case"input":if(cc(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Zt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[Ot]||null;if(!n)throw Error(o(90));cc(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&or(a)}break e;case"textarea":mr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Ya(e,!!l.multiple,t,!1)}}}var dc=!1;function xr(e,t,l){if(dc)return e(t,l);dc=!0;try{var a=e(t);return a}finally{if(dc=!1,(Qa!==null||Xa!==null)&&(Mi(),Qa&&(t=Qa,e=Xa,Xa=Qa=null,gr(t),e)))for(t=0;t<e.length;t++)gr(e[t])}}function Cn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Ot]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var Nl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mc=!1;if(Nl)try{var Mn={};Object.defineProperty(Mn,"passive",{get:function(){mc=!0}}),window.addEventListener("test",Mn,Mn),window.removeEventListener("test",Mn,Mn)}catch{mc=!1}var Bl=null,hc=null,Du=null;function br(){if(Du)return Du;var e,t=hc,l=t.length,a,n="value"in Bl?Bl.value:Bl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var i=l-e;for(a=1;a<=i&&t[l-a]===n[u-a];a++);return Du=n.slice(e,1<a?1-a:void 0)}function Uu(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 Ru(){return!0}function pr(){return!1}function Tt(e){function t(l,a,n,u,i){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(l=e[s],this[s]=l?l(u):u[s]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ru:pr,this.isPropagationStopped=pr,this}return ae(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ru)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ru)},persist:function(){},isPersistent:Ru}),t}var Yl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hu=Tt(Yl),Dn=ae({},Yl,{view:0,detail:0}),a1=Tt(Dn),yc,vc,Un,wu=ae({},Dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xc,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!==Un&&(Un&&e.type==="mousemove"?(yc=e.screenX-Un.screenX,vc=e.screenY-Un.screenY):vc=yc=0,Un=e),yc)},movementY:function(e){return"movementY"in e?e.movementY:vc}}),Sr=Tt(wu),n1=ae({},wu,{dataTransfer:0}),u1=Tt(n1),i1=ae({},Dn,{relatedTarget:0}),gc=Tt(i1),c1=ae({},Yl,{animationName:0,elapsedTime:0,pseudoElement:0}),s1=Tt(c1),f1=ae({},Yl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),r1=Tt(f1),o1=ae({},Yl,{data:0}),Nr=Tt(o1),d1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},m1={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"},h1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function y1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=h1[e])?!!t[e]:!1}function xc(){return y1}var v1=ae({},Dn,{key:function(e){if(e.key){var t=d1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Uu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?m1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xc,charCode:function(e){return e.type==="keypress"?Uu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Uu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),g1=Tt(v1),x1=ae({},wu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tr=Tt(x1),b1=ae({},Yl,{submitter:0}),p1=Tt(b1),S1=ae({},Dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xc}),N1=Tt(S1),T1=ae({},Yl,{propertyName:0,elapsedTime:0,pseudoElement:0}),_1=Tt(T1),z1=ae({},wu,{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}),E1=Tt(z1),j1=ae({},Yl,{newState:0,oldState:0,source:0}),O1=Tt(j1),A1=[9,13,27,32],bc=Nl&&"CompositionEvent"in window,Rn=null;Nl&&"documentMode"in document&&(Rn=document.documentMode);var C1=Nl&&"TextEvent"in window&&!Rn,_r=Nl&&(!bc||Rn&&8<Rn&&11>=Rn),zr=" ",Er=!1;function jr(e,t){switch(e){case"keyup":return A1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Or(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var La=!1;function M1(e,t){switch(e){case"compositionend":return Or(t);case"keypress":return t.which!==32?null:(Er=!0,zr);case"textInput":return e=t.data,e===zr&&Er?null:e;default:return null}}function D1(e,t){if(La)return e==="compositionend"||!bc&&jr(e,t)?(e=br(),Du=hc=Bl=null,La=!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 _r&&t.locale!=="ko"?null:t.data;default:return null}}var U1={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 Ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!U1[e.type]:t==="textarea"}function Cr(e,t,l,a){Qa?Xa?Xa.push(a):Xa=[a]:Qa=a,t=qi(t,"onChange"),0<t.length&&(l=new Hu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Hn=null,wn=null;function R1(e){x0(e,0)}function qu(e){var t=An(e);if(or(t))return e}function Mr(e,t){if(e==="change")return t}var Dr=!1;if(Nl){var pc;if(Nl){var Sc="oninput"in document;if(!Sc){var Ur=document.createElement("div");Ur.setAttribute("oninput","return;"),Sc=typeof Ur.oninput=="function"}pc=Sc}else pc=!1;Dr=pc&&(!document.documentMode||9<document.documentMode)}function Rr(){Hn&&(Hn.detachEvent("onpropertychange",Hr),wn=Hn=null)}function Hr(e){if(e.propertyName==="value"&&qu(wn)){var t=[];Cr(t,wn,e,oc(e)),xr(R1,t)}}function H1(e,t,l){e==="focusin"?(Rr(),Hn=t,wn=l,Hn.attachEvent("onpropertychange",Hr)):e==="focusout"&&Rr()}function w1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qu(wn)}function q1(e,t){if(e==="click")return qu(t)}function B1(e,t){if(e==="input"||e==="change")return qu(t)}function Y1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:Y1;function qn(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!ec.call(t,n)||!Bt(e[n],t[n]))return!1}return!0}function Nc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qr(e,t){var l=wr(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=wr(l)}}function Br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Br(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Nc(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Nc(e.document)}return t}function Tc(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 G1=Nl&&"documentMode"in document&&11>=document.documentMode,Va=null,_c=null,Bn=null,zc=!1;function Gr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;zc||Va==null||Va!==Nc(a)||(a=Va,"selectionStart"in a&&Tc(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}),Bn&&qn(Bn,a)||(Bn=a,a=qi(_c,"onSelect"),0<a.length&&(t=new Hu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Va)))}function ma(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Za={animationend:ma("Animation","AnimationEnd"),animationiteration:ma("Animation","AnimationIteration"),animationstart:ma("Animation","AnimationStart"),transitionrun:ma("Transition","TransitionRun"),transitionstart:ma("Transition","TransitionStart"),transitioncancel:ma("Transition","TransitionCancel"),transitionend:ma("Transition","TransitionEnd")},Ec={},Qr={};Nl&&(Qr=document.createElement("div").style,"AnimationEvent"in window||(delete Za.animationend.animation,delete Za.animationiteration.animation,delete Za.animationstart.animation),"TransitionEvent"in window||delete Za.transitionend.transition);function ha(e){if(Ec[e])return Ec[e];if(!Za[e])return e;var t=Za[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Qr)return Ec[e]=t[l];return e}var Xr=ha("animationend"),Lr=ha("animationiteration"),Vr=ha("animationstart"),Q1=ha("transitionrun"),X1=ha("transitionstart"),L1=ha("transitioncancel"),Zr=ha("transitionend"),Kr=new Map,jc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");jc.push("scrollEnd");function al(e,t){Kr.set(e,t),da(t,[e])}var V1=0;function Tl(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=cl.identifierPrefix;var l=V1++;return e="_"+e+"t_"+l.toString(32)+"_",t.autoName=e}function kr(e){if(e==null||typeof e=="string")return e;var t=null,l=dn;if(l!==null)for(var a=0;a<l.length;a++){var n=e[l[a]];if(n!=null){if(n==="none")return"none";t=t==null?n:t+(" "+n)}}return t??e.default}function _l(e,t){return e=kr(e),t=kr(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Bu=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)},Kt=[],Ka=0,Oc=0;function Yu(){for(var e=Ka,t=Oc=Ka=0;t<e;){var l=Kt[t];Kt[t++]=null;var a=Kt[t];Kt[t++]=null;var n=Kt[t];Kt[t++]=null;var u=Kt[t];if(Kt[t++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&Jr(l,n,u)}}function Gu(e,t,l,a){Kt[Ka++]=e,Kt[Ka++]=t,Kt[Ka++]=l,Kt[Ka++]=a,Oc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ac(e,t,l,a){return Gu(e,t,l,a),Qu(e)}function ya(e,t){return Gu(e,null,null,t),Qu(e)}function Jr(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-wt(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function Qu(e){if(50<iu)throw iu=0,Ci=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ka={};function Z1(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,l,a){return new Z1(e,t,l,a)}function Cc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zl(e,t){var l=e.alternate;return l===null?(l=At(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&1206910976,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function $r(e,t){e.flags&=1206910978;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Xu(e,t,l,a,n,u){var i=0;if(a=e,typeof a=="function")Cc(a)&&(i=1);else if(typeof a=="string")i=by(e,l,O.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case it:return e=At(31,l,t,n),e.elementType=it,e.lanes=u,e;case Me:return va(l.children,n,u,t);case Ae:i=8,n|=24;break;case qe:return e=At(12,l,t,n|2),e.elementType=qe,e.lanes=u,e;case Q:return e=At(13,l,t,n),e.elementType=Q,e.lanes=u,e;case te:return e=At(19,l,t,n),e.elementType=te,e.lanes=u,e;case ne:case d:return e=n|32,e=At(30,l,t,e),e.elementType=d,e.lanes=u,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case se:i=10;break e;case U:i=9;break e;case R:i=11;break e;case _e:i=14;break e;case ze:i=16,a=null;break e}i=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=At(i,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function va(e,t,l,a){return e=At(7,e,a,t),e.lanes=l,e}function Mc(e,t,l){return e=At(6,e,null,t),e.lanes=l,e}function Fr(e){var t=At(18,null,null,0);return t.stateNode=e,t}function Dc(e,t,l){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Wr=new WeakMap;function kt(e,t){if(typeof e=="object"&&e!==null){var l=Wr.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Zf(t)},Wr.set(e,t),t)}return{value:e,source:t,stack:Zf(t)}}var Ja=[],$a=0,Lu=null,Yn=0,Jt=[],$t=0,Gl=null,rl=1,ol="";function El(e,t){Ja[$a++]=Yn,Ja[$a++]=Lu,Lu=e,Yn=t}function Ir(e,t,l){Jt[$t++]=rl,Jt[$t++]=ol,Jt[$t++]=Gl,Gl=e;var a=rl;e=ol;var n=32-wt(a)-1;a&=~(1<<n),l+=1;var u=32-wt(t)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,rl=1<<32-wt(t)+n|l<<n|a,ol=u+e}else rl=1<<u|l<<n|a,ol=e}function Vu(e){e.return!==null&&(El(e,1),Ir(e,1,0))}function Uc(e){for(;e===Lu;)Lu=Ja[--$a],Ja[$a]=null,Yn=Ja[--$a],Ja[$a]=null;for(;e===Gl;)Gl=Jt[--$t],Jt[$t]=null,ol=Jt[--$t],Jt[$t]=null,rl=Jt[--$t],Jt[$t]=null}function Pr(e,t){Jt[$t++]=rl,Jt[$t++]=ol,Jt[$t++]=Gl,rl=t.id,ol=t.overflow,Gl=e}var st=null,Ke=null,be=!1,Ql=null,Ft=!1,Rc=Error(o(519));function Xl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gn(kt(t,e)),Rc}function eo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[dt]=e,t[Ot]=a,l){case"dialog":Te("cancel",t),Te("close",t);break;case"iframe":case"object":case"embed":Te("load",t);break;case"video":case"audio":for(l=0;l<su.length;l++)Te(su[l],t);break;case"source":Te("error",t);break;case"img":case"image":case"link":Te("error",t),Te("load",t);break;case"details":Te("toggle",t);break;case"input":Te("invalid",t),dr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Te("invalid",t);break;case"textarea":Te("invalid",t),hr(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||N0(t.textContent,l)?(a.popover!=null&&(Te("beforetoggle",t),Te("toggle",t)),a.onScroll!=null&&Te("scroll",t),a.onScrollEnd!=null&&Te("scrollend",t),a.onClick!=null&&(t.onclick=fl),t=!0):t=!1,t||Xl(e,!0)}function Zu(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Ft=!1;return;case 27:case 3:Ft=!0;return;default:st=st.return}}function Fa(e){if(e!==st)return!1;if(!be)return Zu(e),be=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||of(e.type,e.memoizedProps)),l=!l),l&&Ke&&Xl(e),Zu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ke=Q0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ke=Q0(e)}else t===27?(t=Ke,na(e.type)?(e=pf,pf=null,Ke=e):Ke=t):Ke=st?It(e.stateNode.nextSibling):null;return!0}function ga(){Ke=st=null,be=!1}function Hc(){var e=Ql;return e!==null&&(Dt===null?Dt=e:Dt.push.apply(Dt,e),Ql=null),e}function Gn(e){Ql===null?Ql=[e]:Ql.push(e)}var wc=Nt(null),xa=null,jl=null;function Ll(e,t,l){M(wc,t._currentValue),t._currentValue=l}function Ol(e){e._currentValue=wc.current,h(wc)}function Ku(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function qc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;e:for(;u!==null;){var s=u;u=n;for(var r=0;r<t.length;r++)if(s.context===t[r]){u.lanes|=l,s=u.alternate,s!==null&&(s.lanes|=l),Ku(u.return,l,e),a||(i=null);break e}u=s.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(o(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),Ku(i,l,e),i=null}else n.tag===13&&n.memoizedState!==null&&n.memoizedState.dehydrated===null?(n.lanes|=l,i=n.alternate,i!==null&&(i.lanes|=l),Ku(n.return,l,e),i=n.child,i=i!==null?i.sibling:null):i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===e){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function ba(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(o(387));if(i=i.memoizedProps,i!==null){var s=n.type;Bt(n.pendingProps.value,i.value)||(e!==null?e.push(s):e=[s])}}else if(n===de.current){if(i=n.alternate,i===null)throw Error(o(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Nn):e=[Nn])}n=n.return}return e!==null&&qc(t,e,l,a),t.flags|=262144,e!==null}function ku(e){for(e=e.firstContext;e!==null;){if(!Bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pa(e){xa=e,jl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return to(xa,e)}function Ju(e,t){return xa===null&&pa(e),to(e,t)}function to(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},jl===null){if(e===null)throw Error(o(308));jl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else jl=jl.next=t;return l}var K1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},k1=f.unstable_scheduleCallback,J1=f.unstable_NormalPriority,et={$$typeof:se,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bc(){return{controller:new K1,data:new Map,refCount:0}}function Qn(e){e.refCount--,e.refCount===0&&k1(J1,function(){e.controller.abort()})}function lo(e,t){if((e.pendingLanes&4194048)!==0){var l=e.transitionTypes;for(l===null&&(l=e.transitionTypes=[]),e=0;e<t.length;e++){var a=t[e];l.indexOf(a)===-1&&l.push(a)}}}var Xn=null;function $1(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ln=null,Yc=0,Sa=0,Wa=null;function F1(e,t){if(Ln===null){var l=Ln=[];Yc=0,Sa=tf(),Wa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Yc++,t.then(ao,ao),t}function ao(){if(--Yc===0&&(Xn=null,Ln!==null)){Wa!==null&&(Wa.status="fulfilled");var e=Ln;Ln=null,Sa=0,Wa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function W1(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var no=K.S;K.S=function(e,t){if(Wd=Rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&F1(e,t),Xn!==null)for(var l=vn;l!==null;)lo(l,Xn),l=l.next;if(l=e.types,l!==null){for(var a=vn;a!==null;)lo(a,l),a=a.next;if(Sa!==0){a=Xn,a===null&&(a=Xn=[]);for(var n=0;n<l.length;n++){var u=l[n];a.indexOf(u)===-1&&a.push(u)}}}no!==null&&no(e,t)};var Na=Nt(null);function Gc(){var e=Na.current;return e!==null?e:Ze.pooledCache}function $u(e,t){t===null?M(Na,Na.current):M(Na,t.pool)}function uo(){var e=Gc();return e===null?null:{parent:et._currentValue,pool:e}}var Ia=Error(o(460)),Qc=Error(o(474)),Fu=Error(o(542)),Wu={then:function(){}};function io(e){return e=e.status,e==="fulfilled"||e==="rejected"}function co(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(fl,fl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fo(e),e===void 0&&!("reason"in t)?Error(o(600)):e;default:if(typeof t.status=="string")t.then(fl,fl);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,fo(e),e}throw _a=t,Ia}}function Ta(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(_a=l,Ia):l}}var _a=null;function so(){if(_a===null)throw Error(o(459));var e=_a;return _a=null,e}function fo(e){if(e===Ia||e===Fu)throw Error(o(483))}var Pa=null,Vn=0;function Iu(e){var t=Vn;return Vn+=1,Pa===null&&(Pa=[]),co(Pa,e,t)}function Vl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Pu(e,t){throw t.$$typeof===ve?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ro(e){function t(v,m){if(e){var b=v.deletions;b===null?(v.deletions=[m],v.flags|=16):b.push(m)}}function l(v,m){if(!e)return null;for(;m!==null;)t(v,m),m=m.sibling;return null}function a(v){for(var m=new Map;v!==null;)v.key===null?m.set(v.index,v):m.set(v.key,v),v=v.sibling;return m}function n(v,m){return v=zl(v,m),v.index=0,v.sibling=null,v}function u(v,m,b){return v.index=b,e?(b=v.alternate,b!==null?(b=b.index,b<m?(v.flags|=2,m):b):(v.flags|=134217730,m)):(v.flags|=1048576,m)}function i(v){return e&&v.alternate===null&&(v.flags|=134217730),v}function s(v,m,b,_){return m===null||m.tag!==6?(m=Mc(b,v.mode,_),m.return=v,m):(m=n(m,b),m.return=v,m)}function r(v,m,b,_){var V=b.type;return V===Me?(v=N(v,m,b.props.children,_,b.key),Vl(v,b),v):m!==null&&(m.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===ze&&Ta(V)===m.type)?(m=n(m,b.props),Vl(m,b),m.return=v,m):(m=Xu(b.type,b.key,b.props,null,v.mode,_),Vl(m,b),m.return=v,m)}function g(v,m,b,_){return m===null||m.tag!==4||m.stateNode.containerInfo!==b.containerInfo||m.stateNode.implementation!==b.implementation?(m=Dc(b,v.mode,_),m.return=v,m):(m=n(m,b.children||[]),m.return=v,m)}function N(v,m,b,_,V){return m===null||m.tag!==7?(m=va(b,v.mode,_,V),m.return=v,m):(m=n(m,b),m.return=v,m)}function z(v,m,b){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Mc(""+m,v.mode,b),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Ce:return b=Xu(m.type,m.key,m.props,null,v.mode,b),Vl(b,m),b.return=v,b;case Y:return m=Dc(m,v.mode,b),m.return=v,m;case ze:return m=Ta(m),z(v,m,b)}if(Ee(m)||w(m))return m=va(m,v.mode,b,null),m.return=v,m;if(typeof m.then=="function")return z(v,Iu(m),b);if(m.$$typeof===se)return z(v,Ju(v,m),b);Pu(v,m)}return null}function y(v,m,b,_){var V=m!==null?m.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return V!==null?null:s(v,m,""+b,_);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Ce:return b.key===V?r(v,m,b,_):null;case Y:return b.key===V?g(v,m,b,_):null;case ze:return b=Ta(b),y(v,m,b,_)}if(Ee(b)||w(b))return V!==null?null:N(v,m,b,_,null);if(typeof b.then=="function")return y(v,m,Iu(b),_);if(b.$$typeof===se)return y(v,m,Ju(v,b),_);Pu(v,b)}return null}function p(v,m,b,_,V){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return v=v.get(b)||null,s(m,v,""+_,V);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Ce:return v=v.get(_.key===null?b:_.key)||null,r(m,v,_,V);case Y:return v=v.get(_.key===null?b:_.key)||null,g(m,v,_,V);case ze:return _=Ta(_),p(v,m,b,_,V)}if(Ee(_)||w(_))return v=v.get(b)||null,N(m,v,_,V,null);if(typeof _.then=="function")return p(v,m,b,Iu(_),V);if(_.$$typeof===se)return p(v,m,b,Ju(m,_),V);Pu(m,_)}return null}function G(v,m,b,_){for(var V=null,Oe=null,P=m,ie=m=0,at=null;P!==null&&ie<b.length;ie++){P.index>ie?(at=P,P=null):at=P.sibling;var De=y(v,P,b[ie],_);if(De===null){P===null&&(P=at);break}e&&P&&De.alternate===null&&t(v,P),m=u(De,m,ie),Oe===null?V=De:Oe.sibling=De,Oe=De,P=at}if(ie===b.length)return l(v,P),be&&El(v,ie),V;if(P===null){for(;ie<b.length;ie++)P=z(v,b[ie],_),P!==null&&(m=u(P,m,ie),Oe===null?V=P:Oe.sibling=P,Oe=P);return be&&El(v,ie),V}for(P=a(P);ie<b.length;ie++)at=p(P,v,ie,b[ie],_),at!==null&&(e&&(De=at.alternate,De!==null&&P.delete(De.key===null?ie:De.key)),m=u(at,m,ie),Oe===null?V=at:Oe.sibling=at,Oe=at);return e&&P.forEach(function(fa){return t(v,fa)}),be&&El(v,ie),V}function J(v,m,b,_){if(b==null)throw Error(o(151));for(var V=null,Oe=null,P=m,ie=m=0,at=null,De=b.next();P!==null&&!De.done;ie++,De=b.next()){P.index>ie?(at=P,P=null):at=P.sibling;var fa=y(v,P,De.value,_);if(fa===null){P===null&&(P=at);break}e&&P&&fa.alternate===null&&t(v,P),m=u(fa,m,ie),Oe===null?V=fa:Oe.sibling=fa,Oe=fa,P=at}if(De.done)return l(v,P),be&&El(v,ie),V;if(P===null){for(;!De.done;ie++,De=b.next())De=z(v,De.value,_),De!==null&&(m=u(De,m,ie),Oe===null?V=De:Oe.sibling=De,Oe=De);return be&&El(v,ie),V}for(P=a(P);!De.done;ie++,De=b.next())De=p(P,v,ie,De.value,_),De!==null&&(e&&(at=De.alternate,at!==null&&P.delete(at.key===null?ie:at.key)),m=u(De,m,ie),Oe===null?V=De:Oe.sibling=De,Oe=De);return e&&P.forEach(function(My){return t(v,My)}),be&&El(v,ie),V}function ye(v,m,b,_){if(typeof b=="object"&&b!==null&&b.type===Me&&b.key===null&&b.props.ref===void 0&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ce:e:{for(var V=b.key;m!==null;){if(m.key===V){if(V=b.type,V===Me){if(m.tag===7){l(v,m.sibling),_=n(m,b.props.children),Vl(_,b),_.return=v,v=_;break e}}else if(m.elementType===V||typeof V=="object"&&V!==null&&V.$$typeof===ze&&Ta(V)===m.type){l(v,m.sibling),_=n(m,b.props),Vl(_,b),_.return=v,v=_;break e}l(v,m);break}else t(v,m);m=m.sibling}b.type===Me?(_=va(b.props.children,v.mode,_,b.key),Vl(_,b),_.return=v,v=_):(_=Xu(b.type,b.key,b.props,null,v.mode,_),Vl(_,b),_.return=v,v=_)}return i(v);case Y:e:{for(V=b.key;m!==null;){if(m.key===V)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){l(v,m.sibling),_=n(m,b.children||[]),_.return=v,v=_;break e}else{l(v,m);break}else t(v,m);m=m.sibling}_=Dc(b,v.mode,_),_.return=v,v=_}return i(v);case ze:return b=Ta(b),ye(v,m,b,_)}if(Ee(b))return G(v,m,b,_);if(w(b)){if(V=w(b),typeof V!="function")throw Error(o(150));return b=V.call(b),J(v,m,b,_)}if(typeof b.then=="function")return ye(v,m,Iu(b),_);if(b.$$typeof===se)return ye(v,m,Ju(v,b),_);Pu(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,m!==null&&m.tag===6?(l(v,m.sibling),_=n(m,b),_.return=v,v=_):(l(v,m),_=Mc(b,v.mode,_),_.return=v,v=_),i(v)):l(v,m)}return function(v,m,b,_){try{Vn=0;var V=ye(v,m,b,_);return Pa=null,V}catch(P){if(P===Ia||P===Fu)throw P;var Oe=At(29,P,null,v.mode);return Oe.lanes=_,Oe.return=v,Oe}finally{}}}var za=ro(!0),oo=ro(!1),Zl=!1;function Xc(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 Kl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function kl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(we&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Qu(e),Jr(e,null,l),t}return Gu(e,a,t,l),Qu(e)}function Zn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,If(e,l)}}function Vc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Zc=!1;function Kn(){if(Zc){var e=Wa;if(e!==null)throw e}}function kn(e,t,l,a){Zc=!1;var n=e.updateQueue;Zl=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var r=s,g=r.next;r.next=null,i===null?u=g:i.next=g,i=r;var N=e.alternate;N!==null&&(N=N.updateQueue,s=N.lastBaseUpdate,s!==i&&(s===null?N.firstBaseUpdate=g:s.next=g,N.lastBaseUpdate=r))}if(u!==null){var z=n.baseState;i=0,N=g=r=null,s=u;do{var y=s.lane&-536870913,p=y!==s.lane;if(p?(je&y)===y:(a&y)===y){y!==0&&y===Sa&&(Zc=!0),N!==null&&(N=N.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var G=e,J=s;y=t;var ye=l;switch(J.tag){case 1:if(G=J.payload,typeof G=="function"){z=G.call(ye,z,y);break e}z=G;break e;case 3:G.flags=G.flags&-65537|128;case 0:if(G=J.payload,y=typeof G=="function"?G.call(ye,z,y):G,y==null)break e;z=ae({},z,y);break e;case 2:Zl=!0}}y=s.callback,y!==null&&(e.flags|=64,p&&(e.flags|=8192),p=n.callbacks,p===null?n.callbacks=[y]:p.push(y))}else p={lane:y,tag:s.tag,payload:s.payload,callback:s.callback,next:null},N===null?(g=N=p,r=z):N=N.next=p,i|=y;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;p=s,s=p.next,p.next=null,n.lastBaseUpdate=p,n.shared.pending=null}}while(!0);N===null&&(r=z),n.baseState=r,n.firstBaseUpdate=g,n.lastBaseUpdate=N,u===null&&(n.shared.lanes=0),ea|=i,e.lanes=i,e.memoizedState=z}}function mo(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function ho(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)mo(l[e],t)}var Jl=Nt(null),ei=Nt(0);function yo(e,t){e=Ul,M(ei,e),M(Jl,t),Ul=e|t.baseLanes}function Kc(){M(ei,Ul),M(Jl,Jl.current)}function kc(){Ul=ei.current,h(Jl),h(ei)}var ht=Nt(null),pt=null;function $l(e){var t=e.alternate;M(yt,yt.current&1),M(ht,e),pt===null&&(t===null||Jl.current!==null||t.memoizedState!==null)&&(pt=e)}function Jc(e){M(yt,yt.current),M(ht,e),pt===null&&(pt=e)}function vo(e){e.tag===22?(M(yt,yt.current),M(ht,e),pt===null&&(pt=e)):Fl()}function Fl(){M(yt,yt.current),M(ht,ht.current)}function Yt(e){h(ht),pt===e&&(pt=null),h(yt)}var yt=Nt(0);function Jn(e,t){M(ht,ht.current),M(yt,t)}function $c(e){h(yt),h(ht),pt===e&&(pt=null)}function ti(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||xf(l)||bf(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Al=0,he=null,Ve=null,tt=null,li=!1,en=!1,Ea=!1,ai=0,$n=0,tn=null,I1=0;function Fe(){throw Error(o(321))}function Fc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Bt(e[l],t[l]))return!1;return!0}function Wc(e,t,l,a,n,u){return Al=u,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,K.H=e===null||e.memoizedState===null?Po:ed,Ea=!1,u=l(a,n),Ea=!1,en&&(u=xo(t,l,a,n)),go(e),u}function go(e){K.H=ri;var t=Ve!==null&&Ve.next!==null;if(Al=0,tt=Ve=he=null,li=!1,$n=0,tn=null,t)throw Error(o(300));e===null||lt||(e=e.dependencies,e!==null&&ku(e)&&(lt=!0))}function xo(e,t,l,a){he=e;var n=0;do{if(en&&(tn=null),$n=0,en=!1,25<=n)throw Error(o(301));if(n+=1,tt=Ve=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}K.H=ih,u=t(l,a)}while(en);return u}function P1(){var e=K.H,t=e.useState()[0];return t=typeof t.then=="function"?Fn(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(he.flags|=1024),t}function Ic(){var e=ai!==0;return ai=0,e}function Pc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function es(e){if(li){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}li=!1}Al=0,tt=Ve=he=null,en=!1,$n=ai=0,tn=null}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?he.memoizedState=tt=e:tt=tt.next=e,tt}function Pe(){if(Ve===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=tt===null?he.memoizedState:tt.next;if(t!==null)tt=t,Ve=e;else{if(e===null)throw he.alternate===null?Error(o(467)):Error(o(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},tt===null?he.memoizedState=tt=e:tt=tt.next=e}return tt}function ni(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fn(e){var t=$n;return $n+=1,tn===null&&(tn=[]),e=co(tn,e,t),t=he,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,K.H=t===null||t.memoizedState===null?Po:ed),e}function ui(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Fn(e);if(e.$$typeof===E)return;if(e.$$typeof===se)return mt(e)}throw Error(o(438,String(e)))}function ts(e){var t=null,l=he.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=he.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=ni(),he.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=oe;return t.index++,l}function Cl(e,t){return typeof t=="function"?t(e):t}function ii(e){var t=Pe();return ls(t,Ve,e)}function ls(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var s=i=null,r=null,g=t,N=!1;do{var z=g.lane&-536870913;if(z!==g.lane?(je&z)===z:(Al&z)===z){var y=g.revertLane;if(y===0)r!==null&&(r=r.next={lane:0,revertLane:0,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),z===Sa&&(N=!0);else if((Al&y)===y){g=g.next,y===Sa&&(N=!0);continue}else z={lane:0,revertLane:g.revertLane,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},r===null?(s=r=z,i=u):r=r.next=z,he.lanes|=y,ea|=y;z=g.action,Ea&&l(u,z),u=g.hasEagerState?g.eagerState:l(u,z)}else y={lane:z,revertLane:g.revertLane,gesture:g.gesture,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},r===null?(s=r=y,i=u):r=r.next=y,he.lanes|=z,ea|=z;g=g.next}while(g!==null&&g!==t);if(r===null?i=u:r.next=s,!Bt(u,e.memoizedState)&&(lt=!0,N&&(l=Wa,l!==null)))throw l;e.memoizedState=u,e.baseState=i,e.baseQueue=r,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function as(e){var t=Pe(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var i=n=n.next;do u=e(u,i.action),i=i.next;while(i!==n);Bt(u,t.memoizedState)||(lt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function bo(e,t,l){var a=he,n=Pe(),u=be;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=t();var i=!Bt((Ve||n).memoizedState,l);if(i&&(n.memoizedState=l,lt=!0),n=n.queue,is(No.bind(null,a,n,e),[e]),e=n.getSnapshot!==t||i||tt!==null&&(tt.memoizedState.tag&1)!==0,ln(e?9:8,{destroy:void 0},So.bind(null,a,n,l,t),null),e){if(a.flags|=2048,Ze===null)throw Error(o(349));u||(Al&127)!==0||po(a,t,l)}return l}function po(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=he.updateQueue,t===null?(t=ni(),he.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function So(e,t,l,a){t.value=l,t.getSnapshot=a,To(t)&&_o(e)}function No(e,t,l){return l(function(){To(t)&&_o(e)})}function To(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Bt(e,l)}catch{return!0}}function _o(e){var t=ya(e,2);t!==null&&Ut(t,e,2)}function ns(e){var t=_t();if(typeof e=="function"){var l=e;if(e=l(),Ea){ql(!0);try{l()}finally{ql(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cl,lastRenderedState:e},t}function zo(e,t,l,a){return e.baseState=l,ls(e,Ve,typeof a=="function"?a:Cl)}function eh(e,t,l,a,n){if(fi(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};K.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Eo(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Eo(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=K.T,i={};i.types=u!==null?u.types:null,K.T=i;try{var s=l(n,a),r=K.S;r!==null&&r(i,s),jo(e,t,s)}catch(g){us(e,t,g)}finally{u!==null&&i.types!==null&&(u.types=i.types),K.T=u}}else try{u=l(n,a),jo(e,t,u)}catch(g){us(e,t,g)}}function jo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Oo(e,t,a)},function(a){return us(e,t,a)}):Oo(e,t,l)}function Oo(e,t,l){t.status="fulfilled",t.value=l,Ao(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Eo(e,l)))}function us(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Ao(t),t=t.next;while(t!==a)}e.action=null}function Ao(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Co(e,t){return t}function Mo(e,t){if(be){var l=Ze.formState;if(l!==null){e:{var a=he;if(be){if(Ke){t:{for(var n=Ke,u=Ft;n.nodeType!==8;){if(!u){n=null;break t}if(n=It(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Ke=It(n.nextSibling),a=n.data==="F!";break e}}Xl(a)}a=!1}a&&(t=l[0])}}return l=_t(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Co,lastRenderedState:t},l.queue=a,l=Fo.bind(null,he,a),a.dispatch=l,a=ns(!1),u=os.bind(null,he,!1,a.queue),a=_t(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=eh.bind(null,he,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Do(e){var t=Pe();return Uo(t,Ve,e)}function Uo(e,t,l){if(t=ls(e,t,Co)[0],e=ii(Cl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Fn(t)}catch(i){throw i===Ia?Fu:i}else a=t;t=Pe();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(he.flags|=2048,ln(9,{destroy:void 0},th.bind(null,n,l),null)),[a,u,e]}function th(e,t){e.action=t}function Ro(e){var t=Pe(),l=Ve;if(l!==null)return Uo(t,l,e);Pe(),t=t.memoizedState,l=Pe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function ln(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=he.updateQueue,t===null&&(t=ni(),he.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Ho(){return Pe().memoizedState}function ci(e,t,l,a){var n=_t();he.flags|=e,n.memoizedState=ln(1|t,{destroy:void 0},l,a===void 0?null:a)}function si(e,t,l,a){var n=Pe();a=a===void 0?null:a;var u=n.memoizedState.inst;Ve!==null&&a!==null&&Fc(a,Ve.memoizedState.deps)?n.memoizedState=ln(t,u,l,a):(he.flags|=e,n.memoizedState=ln(1|t,u,l,a))}function wo(e,t){ci(8390656,8,e,t)}function is(e,t){si(2048,8,e,t)}function lh(e){he.flags|=4;var t=he.updateQueue;if(t===null)t=ni(),he.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function qo(e){var t=Pe().memoizedState;return lh({ref:t,nextImpl:e}),function(){if((we&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Bo(e,t){return si(4,2,e,t)}function Yo(e,t){return si(4,4,e,t)}function Go(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Qo(e,t,l){l=l!=null?l.concat([e]):null,si(4,4,Go.bind(null,t,e),l)}function cs(){}function Xo(e,t){var l=Pe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Fc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Lo(e,t){var l=Pe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Fc(t,a[1]))return a[0];if(a=e(),Ea){ql(!0);try{e()}finally{ql(!1)}}return l.memoizedState=[a,t],a}function ss(e,t,l){return l===void 0||(Al&1073741824)!==0&&(je&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Pd(),he.lanes|=e,ea|=e,l)}function Vo(e,t,l,a){return Bt(l,t)?l:Jl.current!==null?(e=ss(e,l,a),Bt(e,t)||(lt=!0),e):(Al&106)===0||(Al&1073741824)!==0&&(je&261930)===0?(lt=!0,e.memoizedState=l):(e=Pd(),he.lanes|=e,ea|=e,t)}function Zo(e,t,l,a,n){var u=ue.p;ue.p=u!==0&&8>u?u:8;var i=K.T,s={};s.types=i!==null?i.types:null,K.T=s,os(e,!1,t,l);try{var r=n(),g=K.S;if(g!==null&&g(s,r),r!==null&&typeof r=="object"&&typeof r.then=="function"){var N=W1(r,a);Wn(e,t,N,Lt(e))}else Wn(e,t,a,Lt(e))}catch(z){Wn(e,t,{then:function(){},status:"rejected",reason:z},Lt())}finally{ue.p=u,i!==null&&s.types!==null&&(i.types=s.types),K.T=i}}function ah(){}function fs(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=Ko(e).queue;Zo(e,n,t,jt,l===null?ah:function(){return ko(e),l(a)})}function Ko(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:jt,baseState:jt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cl,lastRenderedState:jt},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ko(e){var t=Ko(e);t.next===null&&(t=e.alternate.memoizedState),Wn(e,t.next.queue,{},Lt())}function rs(){return mt(Nn)}function Jo(){return Pe().memoizedState}function $o(){return Pe().memoizedState}function nh(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Lt();e=Kl(l);var a=kl(t,e,l);a!==null&&(Ut(a,t,l),Zn(a,t,l)),t={cache:Bc()},e.payload=t;return}t=t.return}}function uh(e,t,l){var a=Lt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},fi(e)?Wo(t,l):(l=Ac(e,t,l,a),l!==null&&(Ut(l,e,a),Io(l,t,a)))}function Fo(e,t,l){var a=Lt();Wn(e,t,l,a)}function Wn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(fi(e))Wo(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var i=t.lastRenderedState,s=u(i,l);if(n.hasEagerState=!0,n.eagerState=s,Bt(s,i))return Gu(e,t,n,0),Ze===null&&Yu(),!1}catch{}finally{}if(l=Ac(e,t,n,a),l!==null)return Ut(l,e,a),Io(l,t,a),!0}return!1}function os(e,t,l,a){if(a={lane:2,revertLane:tf(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},fi(e)){if(t)throw Error(o(479))}else t=Ac(e,l,a,2),t!==null&&Ut(t,e,2)}function fi(e){var t=e.alternate;return e===he||t!==null&&t===he}function Wo(e,t){en=li=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Io(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,If(e,l)}}var ri={readContext:mt,use:ui,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useLayoutEffect:Fe,useInsertionEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useSyncExternalStore:Fe,useId:Fe,useHostTransitionStatus:Fe,useFormState:Fe,useActionState:Fe,useOptimistic:Fe,useMemoCache:Fe,useCacheRefresh:Fe,useEffectEvent:Fe},Po={readContext:mt,use:ui,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:wo,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ci(4194308,4,Go.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ci(4194308,4,e,t)},useInsertionEffect:function(e,t){ci(4,2,e,t)},useMemo:function(e,t){var l=_t();t=t===void 0?null:t;var a=e();if(Ea){ql(!0);try{e()}finally{ql(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=_t();if(l!==void 0){var n=l(t);if(Ea){ql(!0);try{l(t)}finally{ql(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=uh.bind(null,he,e),[a.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:function(e){e=ns(e);var t=e.queue,l=Fo.bind(null,he,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:cs,useDeferredValue:function(e,t){var l=_t();return ss(l,e,t)},useTransition:function(){var e=ns(!1);return e=Zo.bind(null,he,e.queue,!0,!1),_t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=he,n=_t();if(be){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Ze===null)throw Error(o(349));(je&127)!==0||po(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,wo(No.bind(null,a,u,e),[e]),a.flags|=2048,ln(9,{destroy:void 0},So.bind(null,a,u,l,t),null),l},useId:function(){var e=_t(),t=Ze.identifierPrefix;if(be){var l=ol,a=rl;l=(a&~(1<<32-wt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=ai++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=I1++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:rs,useFormState:Mo,useActionState:Mo,useOptimistic:function(e){var t=_t();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=os.bind(null,he,!0,l),l.dispatch=t,[e,t]},useMemoCache:ts,useCacheRefresh:function(){return _t().memoizedState=nh.bind(null,he)},useEffectEvent:function(e){var t=_t(),l={impl:e};return t.memoizedState=l,function(){if((we&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},ed={readContext:mt,use:ui,useCallback:Xo,useContext:mt,useEffect:is,useImperativeHandle:Qo,useInsertionEffect:Bo,useLayoutEffect:Yo,useMemo:Lo,useReducer:ii,useRef:Ho,useState:function(){return ii(Cl)},useDebugValue:cs,useDeferredValue:function(e,t){var l=Pe();return Vo(l,Ve.memoizedState,e,t)},useTransition:function(){var e=ii(Cl)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Fn(e),t]},useSyncExternalStore:bo,useId:Jo,useHostTransitionStatus:rs,useFormState:Do,useActionState:Do,useOptimistic:function(e,t){var l=Pe();return zo(l,Ve,e,t)},useMemoCache:ts,useCacheRefresh:$o,useEffectEvent:qo},ih={readContext:mt,use:ui,useCallback:Xo,useContext:mt,useEffect:is,useImperativeHandle:Qo,useInsertionEffect:Bo,useLayoutEffect:Yo,useMemo:Lo,useReducer:as,useRef:Ho,useState:function(){return as(Cl)},useDebugValue:cs,useDeferredValue:function(e,t){var l=Pe();return Ve===null?ss(l,e,t):Vo(l,Ve.memoizedState,e,t)},useTransition:function(){var e=as(Cl)[0],t=Pe().memoizedState;return[typeof e=="boolean"?e:Fn(e),t]},useSyncExternalStore:bo,useId:Jo,useHostTransitionStatus:rs,useFormState:Ro,useActionState:Ro,useOptimistic:function(e,t){var l=Pe();return Ve!==null?zo(l,Ve,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ts,useCacheRefresh:$o,useEffectEvent:qo};function ds(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:ae({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var ms={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Lt(),n=Kl(a);n.payload=t,l!=null&&(n.callback=l),t=kl(e,n,a),t!==null&&(Ut(t,e,a),Zn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Lt(),n=Kl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=kl(e,n,a),t!==null&&(Ut(t,e,a),Zn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Lt(),a=Kl(l);a.tag=2,t!=null&&(a.callback=t),t=kl(e,a,l),t!==null&&(Ut(t,e,l),Zn(t,e,l))}};function td(e,t,l,a,n,u,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,i):t.prototype&&t.prototype.isPureReactComponent?!qn(l,a)||!qn(n,u):!0}function ld(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&ms.enqueueReplaceState(t,t.state,null)}function ja(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=ae({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function ad(e){Bu(e)}function nd(e){console.error(e)}function ud(e){Bu(e)}function oi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function id(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function hs(e,t,l){return l=Kl(l),l.tag=3,l.payload={element:null},l.callback=function(){oi(e,t)},l}function cd(e){return e=Kl(e),e.tag=3,e}function sd(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){id(t,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){id(t,l,a),typeof n!="function"&&(ta===null?ta=new Set([this]):ta.add(this));var s=a.stack;this.componentDidCatch(a.value,{componentStack:s!==null?s:""})})}function ch(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&ba(t,l,n,!0),l=ht.current,l!==null){switch(l.tag){case 31:case 13:case 19:return pt===null?Di():l.alternate===null&&We===0&&(We=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Wu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Is(e,a,n)),!1;case 22:return l.flags|=65536,a===Wu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Is(e,a,n)),!1}throw Error(o(435,l.tag))}return Is(e,a,n),Di(),!1}if(be)return t=ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Rc&&(e=Error(o(422),{cause:a}),Gn(kt(e,l)))):(a!==Rc&&(t=Error(o(423),{cause:a}),Gn(kt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=kt(a,l),n=hs(e.stateNode,a,n),Vc(e,n),We!==4&&(We=2)),!1;var u=Error(o(520),{cause:a});if(u=kt(u,l),uu===null?uu=[u]:uu.push(u),We!==4&&(We=2),t===null)return!0;a=kt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=hs(l.stateNode,a,e),Vc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(ta===null||!ta.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=cd(n),sd(n,e,l,a),Vc(l,n),!1;break;case 22:if(l.memoizedState!==null)return l.flags|=65536,!1}l=l.return}while(l!==null);return!1}var ys=Error(o(461)),lt=!1;function ut(e,t,l,a){t.child=e===null?oo(t,null,l,a):za(t,e.child,l,a)}function fd(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var i={};for(var s in a)s!=="ref"&&(i[s]=a[s])}else i=a;return pa(t),a=Wc(e,t,l,i,u,n),s=Ic(),e!==null&&!lt?(Pc(e,t,n),Ml(e,t,n)):(be&&s&&Vu(t),t.flags|=1,ut(e,t,a,n),t.child)}function rd(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Cc(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,od(e,t,u,a,n)):(e=Xu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Ts(e,n)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:qn,l(i,a)&&e.ref===t.ref)return Ml(e,t,n)}return t.flags|=1,e=zl(u,a),e.ref=t.ref,e.return=t,t.child=e}function od(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(qn(u,a)&&e.ref===t.ref)if(lt=!1,t.pendingProps=a=u,Ts(e,n))(e.flags&131072)!==0&&(lt=!0);else return t.lanes=e.lanes,Ml(e,t,n)}return vs(e,t,l,a,n)}function dd(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return md(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&$u(t,u!==null?u.cachePool:null),u!==null?yo(t,u):Kc(),vo(t);else return a=t.lanes=536870912,md(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?($u(t,u.cachePool),yo(t,u),Fl(),t.memoizedState=null):(e!==null&&$u(t,null),Kc(),Fl());return ut(e,t,n,l),t.child}function In(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function md(e,t,l,a,n){var u=Gc();return u=u===null?null:{parent:et._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&$u(t,null),Kc(),vo(t),e!==null&&ba(e,t,a,!0),t.childLanes=n,null}function di(e,t){return t=mi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function hd(e,t,l){return za(t,e.child,null,l),e=di(t,t.pendingProps),e.flags|=2,Yt(t),t.memoizedState=null,e}function sh(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(be){if(a.mode==="hidden")return e=di(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},In(null,e);if(Jc(t),(e=Ke)?(e=G0(e,Ft),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Gl!==null?{id:rl,overflow:ol}:null,retryLane:536870912,hydrationErrors:null},l=Fr(e),l.return=t,t.child=l,st=t,Ke=null)):e=null,e===null)throw Xl(t);return t.lanes=536870912,null}return di(t,a)}var u=e.memoizedState;if(u!==null){var i=u.dehydrated;if(Jc(t),n)if(t.flags&256)t.flags&=-257,t=hd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(lt||ba(e,t,l,!1),n=(l&e.childLanes)!==0,lt||n){if(Jl.current===null){if(a=Ze,a!==null&&(i=Pf(a,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,ya(e,i),Ut(a,e,i),ys;Di()}t=hd(e,t,l)}else e=u.treeContext,Ke=It(i.nextSibling),st=t,be=!0,Ql=null,Ft=!1,e!==null&&Pr(t,e),t=di(t,a),t.flags|=134221824;return t}return e=zl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function an(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function vs(e,t,l,a,n){return pa(t),l=Wc(e,t,l,a,void 0,n),a=Ic(),e!==null&&!lt?(Pc(e,t,n),Ml(e,t,n)):(be&&a&&Vu(t),t.flags|=1,ut(e,t,l,n),t.child)}function yd(e,t,l,a,n,u){return pa(t),t.updateQueue=null,l=xo(t,a,l,n),go(e),a=Ic(),e!==null&&!lt?(Pc(e,t,u),Ml(e,t,u)):(be&&a&&Vu(t),t.flags|=1,ut(e,t,l,u),t.child)}function vd(e,t,l,a,n){if(pa(t),t.stateNode===null){var u=ka,i=l.contextType;typeof i=="object"&&i!==null&&(u=mt(i)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=ms,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Xc(t),i=l.contextType,u.context=typeof i=="object"&&i!==null?mt(i):ka,u.state=t.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(ds(t,l,i,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&ms.enqueueReplaceState(u,u.state,null),kn(t,a,u,n),Kn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var s=t.memoizedProps,r=ja(l,s);u.props=r;var g=u.context,N=l.contextType;i=ka,typeof N=="object"&&N!==null&&(i=mt(N));var z=l.getDerivedStateFromProps;N=typeof z=="function"||typeof u.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,N||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s||g!==i)&&ld(t,u,a,i),Zl=!1;var y=t.memoizedState;u.state=y,kn(t,a,u,n),Kn(),g=t.memoizedState,s||y!==g||Zl?(typeof z=="function"&&(ds(t,l,z,a),g=t.memoizedState),(r=Zl||td(t,l,r,a,y,g,i))?(N||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=g),u.props=a,u.state=g,u.context=i,a=r):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Lc(e,t),i=t.memoizedProps,N=ja(l,i),u.props=N,z=t.pendingProps,y=u.context,g=l.contextType,r=ka,typeof g=="object"&&g!==null&&(r=mt(g)),s=l.getDerivedStateFromProps,(g=typeof s=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==z||y!==r)&&ld(t,u,a,r),Zl=!1,y=t.memoizedState,u.state=y,kn(t,a,u,n),Kn();var p=t.memoizedState;i!==z||y!==p||Zl||e!==null&&e.dependencies!==null&&ku(e.dependencies)?(typeof s=="function"&&(ds(t,l,s,a),p=t.memoizedState),(N=Zl||td(t,l,N,a,y,p,r)||e!==null&&e.dependencies!==null&&ku(e.dependencies))?(g||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,p,r),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,p,r)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=p),u.props=a,u.state=p,u.context=r,a=N):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,an(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=za(t,e.child,null,n),t.child=za(t,null,l,n)):ut(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Ml(e,t,n),e}function gd(e,t,l,a){return ga(),t.flags|=256,ut(e,t,l,a),t.child}var gs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xs(e){return{baseLanes:e,cachePool:uo()}}function bs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Xt),e}function xd(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,i;if((i=u)||(i=e!==null&&e.memoizedState===null?!1:(yt.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(n?$l(t):Fl(),(e=Ke)?(e=G0(e,Ft),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Gl!==null?{id:rl,overflow:ol}:null,retryLane:536870912,hydrationErrors:null},l=Fr(e),l.return=t,t.child=l,st=t,Ke=null)):e=null,e===null)throw Xl(t);return bf(e)?t.lanes=32:t.lanes=536870912,null}return u=a.children,a=a.fallback,n?(Fl(),n=t.mode,u=mi({mode:"hidden",children:u},n),a=va(a,n,l,null),u.return=t,a.return=t,u.sibling=a,t.child=u,a=t.child,a.memoizedState=xs(l),a.childLanes=bs(e,i,l),t.memoizedState=gs,In(null,a)):($l(t),ps(t,u))}var s=e.memoizedState;if(s!==null){var r=s.dehydrated;if(r!==null)return fh(e,t,u,i,a,r,s,l)}return n?(Fl(),n=a.fallback,u=t.mode,s=e.child,r=s.sibling,a=zl(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&1206910976,r!==null?n=zl(r,n):(n=va(n,u,l,null),n.flags|=2),n.return=t,a.return=t,a.sibling=n,t.child=a,In(null,a),a=t.child,n=e.child.memoizedState,n===null?n=xs(l):(u=n.cachePool,u!==null?(s=et._currentValue,u=u.parent!==s?{parent:s,pool:s}:u):u=uo(),n={baseLanes:n.baseLanes|l,cachePool:u}),a.memoizedState=n,a.childLanes=bs(e,i,l),t.memoizedState=gs,In(e.child,a)):($l(t),l=e.child,e=l.sibling,l=zl(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=l,t.memoizedState=null,l)}function ps(e,t){return t=mi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function mi(e,t){return e=At(22,e,null,t),e.lanes=0,e}function hi(e,t,l){return za(t,e.child,null,l),e=ps(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fh(e,t,l,a,n,u,i,s){if(l)return t.flags&256?($l(t),t.flags&=-257,hi(e,t,s)):t.memoizedState!==null?(Fl(),t.child=e.child,t.flags|=128,null):(Fl(),u=n.fallback,i=t.mode,n=mi({mode:"visible",children:n.children},i),u=va(u,i,s,null),u.flags|=2,n.return=t,u.return=t,n.sibling=u,t.child=n,za(t,e.child,null,s),n=t.child,n.memoizedState=xs(s),n.childLanes=bs(e,a,s),t.memoizedState=gs,In(null,n));if($l(t),bf(u)){if(a=u.nextSibling&&u.nextSibling.dataset,a)var r=a.dgst;return a=r,a!==""&&(n=Error(o(419)),n.stack="",n.digest=a,Gn({value:n,source:null,stack:null})),hi(e,t,s)}if(lt||ba(e,t,s,!1),a=(s&e.childLanes)!==0,lt||a){if(Jl.current!==null)return hi(e,t,s);if(a=Ze,a!==null&&(n=Pf(a,s),n!==0&&n!==i.retryLane))throw i.retryLane=n,ya(e,n),Ut(a,e,n),ys;return xf(u)||Di(),hi(e,t,s)}return xf(u)?(t.flags|=192,t.child=e.child,null):(e=i.treeContext,Ke=It(u.nextSibling),st=t,be=!0,Ql=null,Ft=!1,e!==null&&Pr(t,e),t=ps(t,n.children),t.flags|=134221824,t)}function bd(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Ku(e.return,t,l)}function pd(e){for(var t=null;e!==null;){var l=e.alternate;l!==null&&ti(l)===null&&(t=e),e=e.sibling}return t}function yi(e,t,l,a,n,u){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n,i.treeForkCount=u)}function Ss(e){var t=e.child;for(e.child=null;t!==null;){var l=t.sibling;t.sibling=e.child,e.child=t,t=l}}function Ns(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=yt.current;if(t.flags&128)return Jn(t,i),null;var s=(i&2)!==0;if(s?(i=i&1|2,t.flags|=128):i&=1,Jn(t,i),n==="backwards"&&e!==null?(Ss(e),ut(e,t,a,l),Ss(e)):ut(e,t,a,l),a=be?Yn:0,!s&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bd(e,l,t);else if(e.tag===19)bd(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"backwards":l=pd(t.child),l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null,Ss(t)),yi(t,!0,n,null,u,a);break;case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&ti(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}yi(t,!0,l,null,u,a);break;case"together":yi(t,!1,null,null,void 0,a);break;case"independent":t.memoizedState=null;break;default:l=pd(t.child),l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),yi(t,!1,n,l,u,a)}return t.child}function Sd(e,t,l){var a=t.pendingProps;return Ll(t,t.type,a.value),ut(e,t,a.children,l),t.child}function Ml(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ea|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ba(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=zl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=zl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ts(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ku(e)))}function rh(e,t,l){switch(t.tag){case 3:ge(t,t.stateNode.containerInfo),Ll(t,et,e.memoizedState.cache),ga();break;case 27:case 5:bt(t);break;case 4:ge(t,t.stateNode.containerInfo);break;case 10:Ll(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Jc(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return $l(t),t.flags|=128,null;a=ba(e,t,l,!1);var n=t.child.childLanes;return a||(l&n)!==0?xd(e,t,l):($l(t),e=Ml(e,t,l),e!==null?e.sibling:null)}$l(t);break;case 19:if(t.flags&128)return Ns(e,t,l);if(n=(e.flags&128)!==0,a=(l&t.childLanes)!==0,a||(ba(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Ns(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Jn(t,yt.current),a)break;return null;case 22:return t.lanes=0,dd(e,t,l,t.pendingProps);case 24:Ll(t,et,e.memoizedState.cache)}return Ml(e,t,l)}function Nd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)lt=!0;else{if(!Ts(e,l)&&(t.flags&128)===0)return lt=!1,rh(e,t,l);lt=(e.flags&131072)!==0}else lt=!1,be&&(t.flags&1048576)!==0&&Ir(t,Yn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ta(t.elementType),t.type=e,typeof e=="function")Cc(e)?(a=ja(e,a),t.tag=1,t=vd(null,t,e,a,l)):(t.tag=0,t=vs(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===R){t.tag=11,t=fd(null,t,e,a,l);break e}else if(n===_e){t.tag=14,t=rd(null,t,e,a,l);break e}else if(n===se){t.tag=10,t.type=e,t=Sd(null,t,l);break e}}throw t=me(e)||e,Error(o(306,t,""))}}return t;case 0:return vs(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=ja(a,t.pendingProps),vd(e,t,a,n,l);case 3:e:{if(ge(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Lc(e,t),kn(t,a,null,l);var i=t.memoizedState;if(a=i.cache,Ll(t,et,a),a!==u.cache&&qc(t,[et],l,!0),Kn(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=gd(e,t,a,l);break e}else if(a!==n){n=kt(Error(o(424)),t),Gn(n),t=gd(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ke=It(e.firstChild),st=t,be=!0,Ql=null,Ft=!0,l=oo(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|134221824,l=l.sibling}else{if(ga(),a===n){t=Ml(e,t,l);break e}ut(e,t,a,l)}t=t.child}return t;case 26:return an(e,t),e===null?(l=k0(t.type,null,t.pendingProps,null))?t.memoizedState=l:be||(t.stateNode=E0(t.type,t.pendingProps,fe.current,t)):t.memoizedState=k0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return bt(t),e===null&&be&&(a=t.stateNode=L0(t.type,t.pendingProps,fe.current),st=t,Ft=!0,n=Ke,na(t.type)?(pf=n,Ke=It(a.firstChild)):Ke=n),ut(e,t,t.pendingProps.children,l),an(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((n=a=Ke)&&(a=ny(a,t.type,t.pendingProps,Ft),a!==null?(t.stateNode=a,st=t,Ke=It(a.firstChild),Ft=!1,n=!0):n=!1),n||Xl(t)),bt(t),n=t.type,u=t.pendingProps,i=e!==null?e.memoizedProps:null,a=u.children,of(n,u)?a=null:i!==null&&of(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=Wc(e,t,P1,null,null,l),Nn._currentValue=n),an(e,t),ut(e,t,a,l),t.child;case 6:return e===null&&be&&((e=l=Ke)&&(l=uy(l,t.pendingProps,Ft),l!==null?(t.stateNode=l,st=t,Ke=null,e=!0):e=!1),e||Xl(t)),null;case 13:return xd(e,t,l);case 4:return ge(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=za(t,null,a,l):ut(e,t,a,l),t.child;case 11:return fd(e,t,t.type,t.pendingProps,l);case 7:return a=t.pendingProps,an(e,t),ut(e,t,a,l),t.child;case 8:return ut(e,t,t.pendingProps.children,l),t.child;case 12:return ut(e,t,t.pendingProps.children,l),t.child;case 10:return Sd(e,t,l);case 9:return n=t.type._context,a=t.pendingProps.children,pa(t),n=mt(n),a=a(n),t.flags|=1,ut(e,t,a,l),t.child;case 14:return rd(e,t,t.type,t.pendingProps,l);case 15:return od(e,t,t.type,t.pendingProps,l);case 19:return Ns(e,t,l);case 31:return sh(e,t,l);case 22:return dd(e,t,l,t.pendingProps);case 24:return pa(t),a=mt(et),e===null?(n=Gc(),n===null&&(n=Ze,u=Bc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},Xc(t),Ll(t,et,n)):((e.lanes&l)!==0&&(Lc(e,t),kn(t,null,null,l),Kn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Ll(t,et,a)):(a=u.cache,Ll(t,et,a),a!==n.cache&&qc(t,[et],l,!0))),ut(e,t,t.pendingProps.children,l),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=t.pendingProps,a.name!=null&&a.name!=="auto"?t.flags|=e===null?18882560:18874368:be&&Vu(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:an(e,t),ut(e,t,a.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Dl(e){e.flags|=4}function _s(e,t,l,a,n){var u;if((u=(e.mode&32)!==0)&&(u=l===null?W0(t,a):W0(t,a)&&(a.src!==l.src||a.srcSet!==l.srcSet)),u){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(a0())e.flags|=8192;else throw _a=Wu,Qc}else e.flags&=-16777217}function Td(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!I0(t))if(a0())e.flags|=8192;else throw _a=Wu,Qc}function vi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ff():536870912,e.lanes|=t,fn|=t)}function Pn(e,t){if(!be)switch(e.tailMode){case"visible":break;case"collapsed":for(var l=e.tail,a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null;break;default:for(t=e.tail,l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null}}function ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&1206910976,a|=n.flags&1206910976,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function oh(e,t,l){var a=t.pendingProps;switch(Uc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return ke(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ol(et),nt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Fa(t)?Dl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Hc())),ke(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(Dl(t),u!==null?(ke(t),Td(t,u)):(ke(t),_s(t,n,null,a,l))):u?u!==e.memoizedState?(Dl(t),ke(t),Td(t,u)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Dl(t),ke(t),_s(t,n,e,a,l)),null;case 27:if(ll(t),l=fe.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Dl(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return ke(t),t.subtreeFlags&=-33554433,null}e=O.current,Fa(t)?eo(t):(e=L0(n,a,l),t.stateNode=e,Dl(t))}return ke(t),t.subtreeFlags&=-33554433,null;case 5:if(ll(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Dl(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return ke(t),t.subtreeFlags&=-33554433,null}if(u=O.current,Fa(t))eo(t);else{var i=ru(fe.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[dt]=t,u[Ot]=a;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=u;e:switch(gt(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Dl(t)}}return ke(t),t.subtreeFlags&=-33554433,_s(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Dl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=fe.current,Fa(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=st,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[dt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||N0(e.nodeValue,l)),e||Xl(t,!0)}else e=ru(e).createTextNode(a),e[dt]=t,t.stateNode=e}return ke(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Fa(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[dt]=t}else ga(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else l=Hc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Yt(t),t):(Yt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return ke(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Fa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[dt]=t}else ga(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),n=!1}else n=Hc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Yt(t),t):(Yt(t),null)}return Yt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),vi(t,t.updateQueue),ke(t),null);case 4:return nt(),e===null&&uf(t.stateNode.containerInfo),t.flags|=67108864,ke(t),null;case 10:return Ol(t.type),ke(t),null;case 19:if($c(t),a=t.memoizedState,a===null)return ke(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)Pn(a,!1);else{if(We!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=ti(e),u!==null){for(t.flags|=128,Pn(a,!1),e=u.updateQueue,t.updateQueue=e,vi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)$r(l,e),l=l.sibling;return Jn(t,yt.current&1|2),be&&El(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Rt()>Oi&&(t.flags|=128,n=!0,Pn(a,!1),t.lanes=4194304)}else{if(!n)if(e=ti(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,vi(t,e),Pn(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!u.alternate&&!be)return ke(t),null}else 2*Rt()-a.renderingStartTime>Oi&&l!==536870912&&(t.flags|=128,n=!0,Pn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}if(a.tail!==null){e=a.tail;e:{for(l=e;l!==null;){if(l.alternate!==null){l=!1;break e}l=l.sibling}l=!0}return a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Rt(),e.sibling=null,u=yt.current,u=n?u&1|2:u&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!l||be?Jn(t,u):(l=u,M(ht,t),M(yt,l),pt===null&&(pt=t)),be&&El(t,a.treeForkCount),e}return ke(t),null;case 22:case 23:return Yt(t),kc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),l=t.updateQueue,l!==null&&vi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&h(Na),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ol(et),ke(t),null;case 25:return null;case 30:return t.flags|=33554432,ke(t),null}throw Error(o(156,t.tag))}function dh(e,t){switch(Uc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ol(et),nt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ll(t),null;case 31:if(t.memoizedState!==null){if(Yt(t),t.alternate===null)throw Error(o(340));ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Yt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $c(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return nt(),null;case 10:return Ol(t.type),null;case 22:case 23:return Yt(t),kc(),e!==null&&h(Na),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ol(et),null;case 25:return null;default:return null}}function _d(e,t){switch(Uc(t),t.tag){case 3:Ol(et),nt();break;case 26:case 27:case 5:ll(t);break;case 4:nt();break;case 31:t.memoizedState!==null&&Yt(t);break;case 13:Yt(t);break;case 19:$c(t);break;case 10:Ol(t.type);break;case 22:case 23:Yt(t),kc(),e!==null&&h(Na);break;case 24:Ol(et)}}function eu(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,i=l.inst;a=u(),i.destroy=a}l=l.next}while(l!==n)}}catch(s){Ge(t,t.return,s)}}function Wl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var i=a.inst,s=i.destroy;if(s!==void 0){i.destroy=void 0,n=t;var r=l,g=s;try{g()}catch(N){Ge(n,r,N)}}}a=a.next}while(a!==u)}}catch(N){Ge(t,t.return,N)}}function zd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{ho(t,l)}catch(a){Ge(e,e.return,a)}}}function Ed(e,t,l){l.props=ja(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ge(e,t,a)}}function dl(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:var n=e.stateNode,u=Tl(e.memoizedProps,n);(n.ref===null||n.ref.name!==u)&&(n.ref=U0(u)),a=n.ref;break;case 7:if(e.stateNode===null){var i=new Vt(e);S(e.child,!1,ly,i,void 0,void 0),e.stateNode=i}a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(s){Ge(e,t,s)}}function vt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Ge(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Ge(e,t,n)}else l.current=null}function gi(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var l=0;l<t.length;l++)Y0(e.stateNode,t[l])}function jd(e){for(var t=e.return;t!==null&&(Es(t)&&Y0(e.stateNode,t.stateNode),!zs(t));)t=t.return}function tu(e){for(var t=e.return;t!==null&&(Es(t)&&ay(e.stateNode,t.stateNode),!zs(t));)t=t.return}function zs(e){return e.tag===5||e.tag===3||e.tag===27}function Es(e){return e&&e.tag===7&&e.stateNode!==null}function js(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Ge(e,e.return,n)}}function Os(e,t,l){try{var a=e.stateNode;Bh(a,e.type,l,t),a[Ot]=t}catch(n){Ge(e,e.return,n)}}function Od(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&na(e.type)||e.tag===4}function As(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Od(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&&na(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 Cs(e,t,l,a){var n=e.tag;if(n===5||n===6)n=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(n),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=fl)),gi(e,a),He=!0;else if(n!==4&&(n===27&&(gi(e,a),a=null,na(e.type)&&(l=e.stateNode,t=null)),e=e.child,e!==null))for(Cs(e,t,l,a),e=e.sibling;e!==null;)Cs(e,t,l,a),e=e.sibling}function xi(e,t,l,a){var n=e.tag;if(n===5||n===6)n=e.stateNode,t?l.insertBefore(n,t):l.appendChild(n),gi(e,a),He=!0;else if(n!==4&&(n===27&&(gi(e,a),a=null,na(e.type)&&(l=e.stateNode)),e=e.child,e!==null))for(xi(e,t,l,a),e=e.sibling;e!==null;)xi(e,t,l,a),e=e.sibling}function Ad(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);gt(t,a,l),t[dt]=e,t[Ot]=l}catch(u){Ge(e,e.return,u)}}var bi=!1,Gt=null;function Cd(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(bi=!0)}var ml=null;function Md(){var e=ml;return ml=null,e}var Ct=0;function nn(e,t,l,a,n){return Ct=0,Dd(e.child,t,l,a,n)}function Dd(e,t,l,a,n){for(var u=!1;e!==null;){if(e.tag===5){var i=e.stateNode;if(a!==null){var s=hf(i);a.push(s),s.view&&(u=!0)}else u||hf(i).view&&(u=!0);bi=!0,M0(i,Ct===0?t:t+"_"+Ct,l),Ct++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&n||Dd(e.child,t,l,a,n)&&(u=!0));e=e.sibling}return u}function hl(e,t){for(;e!==null;)e.tag===5?D0(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||hl(e.child,t)),e=e.sibling}function pi(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(pi(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(o(544));var l=t.name;t=_l(t.default,t.share),t!=="none"&&(nn(e,l,t,null,!1)||hl(e.child,!1))}e=e.sibling}}function Ms(e,t){if(e.tag===30){var l=e.stateNode,a=e.memoizedProps,n=Tl(a,l),u=_l(a.default,l.paired?a.share:a.enter);u!=="none"?nn(e,n,u,null,!1)?(pi(e),l.paired||t||mn(e,a.onEnter)):hl(e.child,!1):pi(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Ms(e,t),e=e.sibling;else pi(e)}function Ds(e){if(Gt!==null&&Gt.size!==0){var t=Gt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var l=e.memoizedProps,a=l.name;if(a!=null&&a!=="auto"){var n=t.get(a);if(n!==void 0){var u=_l(l.default,l.share);if(u!=="none"&&(nn(e,a,u,null,!1)?(u=e.stateNode,n.paired=u,u.paired=n,mn(e,l.onShare)):hl(e.child,!1)),t.delete(a),t.size===0)break}}}Ds(e)}e=e.sibling}}}function Us(e){if(e.tag===30){var t=e.memoizedProps,l=Tl(t,e.stateNode),a=Gt!==null?Gt.get(l):void 0,n=_l(t.default,a!==void 0?t.share:t.exit);n!=="none"&&(nn(e,l,n,null,!1)?a!==void 0?(n=e.stateNode,a.paired=n,n.paired=a,Gt.delete(l),mn(e,t.onShare)):mn(e,t.onExit):hl(e.child,!1)),Gt!==null&&Ds(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Us(e),e=e.sibling;else Gt!==null&&Ds(e)}function Ud(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,l=Tl(t,e.stateNode);t=_l(t.default,t.update),e.flags&=-5,t!=="none"&&nn(e,l,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Ud(e);e=e.sibling}}function Rs(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,hl(e.child,!1))}Rs(e)}e=e.sibling}}function Si(e){if(e.tag===30)e.stateNode.paired=null,hl(e.child,!1),Rs(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Si(e),e=e.sibling;else Rs(e)}function Rd(e){for(e=e.child;e!==null;)e.tag===30?hl(e.child,!1):(e.subtreeFlags&33554432)!==0&&Rd(e),e=e.sibling}function Hs(e,t,l,a,n,u,i){for(var s=!1;t!==null;){if(t.tag===5){var r=t.stateNode;if(u!==null&&Ct<u.length){var g=u[Ct],N=hf(r);(g.view||N.view)&&(s=!0);var z;if(z=(e.flags&4)===0)if(N.clip)z=!0;else{z=g.rect;var y=N.rect;z=z.y!==y.y||z.x!==y.x||z.height!==y.height||z.width!==y.width}z&&(e.flags|=4),N.abs?N=!g.abs:(g=g.rect,N=N.rect,N=g.height!==N.height||g.width!==N.width),N&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&M0(r,Ct===0?l:l+"_"+Ct,n),s&&(e.flags&4)!==0||(ml===null&&(ml=[]),ml.push(r,Ct===0?a:a+"_"+Ct,t.memoizedProps)),Ct++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&i?e.flags|=t.flags&32:Hs(e,t.child,l,a,n,u,i)&&(s=!0));t=t.sibling}return s}function Hd(e,t){for(e=e.child;e!==null;){if(e.tag===30){var l=e.memoizedProps,a=e.stateNode,n=Tl(l,a),u=_l(l.default,l.update),i;i=e.memoizedState,e.memoizedState=null,a=e;var s=e.child;Ct=0,n=Hs(a,s,n,n,u,i,!1),(e.flags&4)!==0&&n&&mn(e,l.onUpdate)}else(e.subtreeFlags&33554432)!==0&&Hd(e);e=e.sibling}}var ft=!1,Be=!1,yl=!1,ws=!1,wd=typeof WeakSet=="function"?WeakSet:Set,rt=null,vl=!1,lu=!1,Ni=!1,qs=!1;function mh(e,t,l){if(e=e.containerInfo,ff=Tn,e=Yr(e),Tc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var u=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var s=0,r=-1,g=-1,N=0,z=0,y=e,p=null;t:for(;;){for(var G;y!==a||u!==0&&y.nodeType!==3||(r=s+u),y!==i||n!==0&&y.nodeType!==3||(g=s+n),y.nodeType===3&&(s+=y.nodeValue.length),(G=y.firstChild)!==null;)p=y,y=G;for(;;){if(y===e)break t;if(p===a&&++N===u&&(r=s),p===i&&++z===n&&(g=s),(G=y.nextSibling)!==null)break;y=p,p=y.parentNode}y=G}a=r===-1||g===-1?null:{start:r,end:g}}else a=null}a=a||{start:0,end:0}}else a=null;for(rf={focusedElem:e,selectionRange:a},Tn=!1,l=(l&335544064)===l,rt=t,t=l?9270:1024;rt!==null;){if(e=rt,l&&(a=e.deletions,a!==null))for(u=0;u<a.length;u++)l&&Us(a[u]);if(e.alternate===null&&(e.flags&2)!==0)l&&Cd(e),Ti(l);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&l&&Us(a),Ti(l);continue}else if(a!==null&&a.memoizedState!==null){l&&Cd(e),Ti(l);continue}}a=e.child,(e.subtreeFlags&t)!==0&&a!==null?(a.return=e,rt=a):(l&&Ud(e),Ti(l))}}Gt=null}function Ti(e){for(;rt!==null;){var t=rt,l=e,a=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((n&1024)!==0&&a!==null){l=void 0,n=a.memoizedProps,a=a.memoizedState;var u=t.stateNode;try{var i=ja(t.type,n);l=u.getSnapshotBeforeUpdate(i,a),u.__reactInternalSnapshotBeforeUpdate=l}catch(s){Ge(t,t.return,s)}}break;case 3:if((n&1024)!==0){if(a=t.stateNode.containerInfo,l=a.nodeType,l===9)gf(a);else if(l===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":gf(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:l&&a!==null&&(l=Tl(a.memoizedProps,a.stateNode),n=t.memoizedProps,n=_l(n.default,n.update),n!=="none"&&nn(a,l,n,a.memoizedState=[],!0));break;default:if((n&1024)!==0)throw Error(o(163))}if(a=t.sibling,a!==null){a.return=t.return,rt=a;break}rt=t.return}}function qd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:gl(e,l),a&4&&eu(5,l);break;case 1:if(gl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(i){Ge(l,l.return,i)}else{var n=ja(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){Ge(l,l.return,i)}}a&64&&zd(l),a&512&&dl(l,l.return);break;case 3:if(gl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{ho(e,t)}catch(i){Ge(l,l.return,i)}}break;case 27:t===null&&a&4&&Ad(l);case 26:case 5:gl(e,l),t===null&&a&4&&js(l),a&512&&dl(l,l.return);break;case 12:gl(e,l);break;case 31:gl(e,l),a&4&&Qd(e,l);break;case 13:gl(e,l),a&4&&Xd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=zh.bind(null,l),iy(e,l))));break;case 22:if(a=l.memoizedState!==null||ft,!a){var u=t!==null&&t.memoizedState!==null||Be;t=ft,n=Be,ft=a,(Be=u)&&!n?(a=2,(l.subtreeFlags&8772)!==0&&(a|=1),il(e,l,a)):gl(e,l),ft=t,Be=n}break;case 30:gl(e,l),a&512&&dl(l,l.return);break;case 7:a&512&&dl(l,l.return);default:gl(e,l)}}function Bs(e,t){for(e=e.child;e!==null;)Bd(e,t),e=e.sibling}function Bd(e,t){switch(e.tag){case 5:case 26:try{var l=e.stateNode;if(t){var a=l.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}else{var n=e.stateNode,u=e.memoizedProps.style,i=u!=null&&u.hasOwnProperty("display")?u.display:null;n.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}}catch(r){Ge(e,e.return,r)}Ys(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,He=!0}catch(r){Ge(e,e.return,r)}break;case 18:try{var s=e.stateNode;t?C0(s,!0):C0(e.stateNode,!1)}catch(r){Ge(e,e.return,r)}break;case 22:case 23:e.memoizedState===null&&Bs(e,t);break;default:Bs(e,t)}}function Ys(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var l=e,a=t;switch(l.tag){case 4:Bd(l,a);break e;case 22:l.memoizedState===null&&Ys(l,a);break e;default:Ys(l,a)}}e=e.sibling}}function Yd(e){var t=e.alternate;t!==null&&(e.alternate=null,Yd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ou(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 Je=null,Mt=!1;function nl(e,t,l){for(l=l.child;l!==null;)Gd(e,t,l),l=l.sibling}function Gd(e,t,l){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(zn,l)}catch{}switch(l.tag){case 26:Be||vt(l,t),nl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&!Be&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Be||vt(l,t),tu(l);var a=Je,n=Mt;na(l.type)&&(Je=l.stateNode,Mt=!1),nl(e,t,l),V0(l.stateNode,l.type,l.memoizedProps),Je=a,Mt=n;break;case 5:Be||vt(l,t),tu(l);case 6:if(l.tag===6&&tu(l),a=Je,n=Mt,Je=null,nl(e,t,l),Je=a,Mt=n,Je!==null)if(Mt)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(l.stateNode),He=!0}catch(u){Ge(l,t,u)}else try{Je.removeChild(l.stateNode),He=!0}catch(u){Ge(l,t,u)}break;case 18:Je!==null&&(Mt?(e=Je,A0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),_n(e)):A0(Je,l.stateNode));break;case 4:a=Je,n=Mt,Je=l.stateNode.containerInfo,Mt=!0,nl(e,t,l),Je=a,Mt=n;break;case 0:case 11:case 14:case 15:Wl(2,l,t),Be||Wl(4,l,t),nl(e,t,l);break;case 1:Be||(vt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Ed(l,t,a)),nl(e,t,l);break;case 21:nl(e,t,l);break;case 22:Be=(a=Be)||l.memoizedState!==null,nl(e,t,l),Be=a;break;case 30:vt(l,t),nl(e,t,l);break;case 7:Be||vt(l,t),nl(e,t,l);break;default:nl(e,t,l)}}function Qd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{_n(e)}catch(l){Ge(t,t.return,l)}}}function Xd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{_n(e)}catch(l){Ge(t,t.return,l)}}function hh(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new wd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new wd),t;default:throw Error(o(435,e.tag))}}function _i(e,t){var l=hh(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Eh.bind(null,e,a);a.then(n,n)}})}function zt(e,t,l){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var u=a[n],i=e,s=t,r=s;e:for(;r!==null;){switch(r.tag){case 27:if(na(r.type)){Je=r.stateNode,Mt=!1;break e}break;case 5:Je=r.stateNode,Mt=!1;break e;case 3:case 4:Je=r.stateNode.containerInfo,Mt=!0;break e}r=r.return}if(Je===null)throw Error(o(160));Gd(i,s,u),Je=null,Mt=!1,i=u.alternate,i!==null&&(i.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ld(t,e,l),t=t.sibling}var ul=null;function Ld(e,t,l){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(n&4&&(a=e.updateQueue,a=a!==null?a.events:null,a!==null))for(var u=0;u<a.length;u++){var i=a[u];i.ref.impl=i.nextImpl}zt(t,e,l),Et(e),n&4&&(Wl(3,e,e.return),eu(3,e),Wl(5,e,e.return));break;case 1:zt(t,e,l),Et(e),n&512&&(Be||a===null||vt(a,a.return)),n&64&&ft&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?t:l.concat(t))));break;case 26:if(u=ul,zt(t,e,l),Et(e),n&512&&(Be||a===null||vt(a,a.return)),n&4)if(n=a!==null?a.memoizedState:null,l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null)if(ft)e.stateNode=E0(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,l=e.memoizedProps,n=u.ownerDocument||u;t:switch(t){case"title":a=n.getElementsByTagName("title")[0],(!a||a[On]||a[dt]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=n.createElement(t),n.head.insertBefore(a,n.querySelector("head > title"))),gt(a,t,l),a[dt]=e,ct(a),t=a;break e;case"link":if(u=F0("link","href",n).get(t+(l.href||""))){for(i=0;i<u.length;i++)if(a=u[i],a.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&a.getAttribute("rel")===(l.rel==null?null:l.rel)&&a.getAttribute("title")===(l.title==null?null:l.title)&&a.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(i,1);break t}}a=n.createElement(t),gt(a,t,l),n.head.appendChild(a);break;case"meta":if(u=F0("meta","content",n).get(t+(l.content||""))){for(i=0;i<u.length;i++)if(a=u[i],a.getAttribute("content")===(l.content==null?null:""+l.content)&&a.getAttribute("name")===(l.name==null?null:l.name)&&a.getAttribute("property")===(l.property==null?null:l.property)&&a.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&a.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(i,1);break t}}a=n.createElement(t),gt(a,t,l),n.head.appendChild(a);break;default:throw Error(o(468,t))}a[dt]=e,ct(a),t=a}e.stateNode=t}else ft||_f(u,e.type,e.stateNode);else e.stateNode=$0(u,l,e.memoizedProps);else n!==l?(n===null?(t=a.stateNode,t===null||Be||t.parentNode.removeChild(t)):n.count--,l===null?ft||_f(u,e.type,e.stateNode):$0(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Os(e,e.memoizedProps,a.memoizedProps);break;case 27:zt(t,e,l),Et(e),n&512&&(Be||a===null||vt(a,a.return)),a!==null&&n&4&&Os(e,e.memoizedProps,a.memoizedProps);break;case 5:if(u=yl,yl=!1,zt(t,e,l),yl=u,Et(e),n&512&&(Be||a===null||vt(a,a.return)),e.flags&32){t=e.stateNode;try{Ga(t,""),He=!0}catch(N){Ge(e,e.return,N)}}n&4&&e.stateNode!=null&&(t=e.memoizedProps,Os(e,t,a!==null?a.memoizedProps:t)),n&1024&&(ws=!0);break;case 6:if(zt(t,e,l),Et(e),n&4){if(e.stateNode===null)throw Error(o(162));t=e.memoizedProps,l=e.stateNode;try{l.nodeValue=t,He=!0}catch(N){Ge(e,e.return,N)}}break;case 3:if(He=!1,Yi=null,u=ul,ul=ou(t.containerInfo),zt(t,e,l),ul=u,Et(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{_n(t.containerInfo)}catch(N){Ge(e,e.return,N)}ws&&(ws=!1,Vd(e)),He=!1;break;case 4:n=yl,yl=ft,a=fr(),u=ul,ul=ou(e.stateNode.containerInfo),zt(t,e,l),Et(e),ul=u,He&&lu&&(Ni=!0),He=a,yl=n;break;case 12:zt(t,e,l),Et(e);break;case 31:zt(t,e,l),Et(e),n&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,_i(e,t)));break;case 13:zt(t,e,l),Et(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ji=Rt()),n&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,_i(e,t)));break;case 22:u=e.memoizedState!==null,i=a!==null&&a.memoizedState!==null;var s=ft,r=Be,g=yl;ft=s||u,yl=g||u,Be=r||i,zt(t,e,l),Be=r,yl=g,ft=s,Et(e),n&8192&&(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,!u||a===null||i||ft||Be||(t=i||Be,l=ft,a=Be,ft=u||ft,Be=t,Il(e,2),ft=l,Be=a),!u&&yl||Bs(e,u)),n&4&&(t=e.updateQueue,t!==null&&(l=t.retryQueue,l!==null&&(t.retryQueue=null,_i(e,l))));break;case 19:zt(t,e,l),Et(e),n&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,_i(e,t)));break;case 30:n&512&&(Be||a===null||vt(a,a.return)),n=fr(),u=lu,i=(l&335544064)===l,s=e.memoizedProps,lu=i&&_l(s.default,s.update)!=="none",zt(t,e,l),Et(e),i&&a!==null&&He&&(e.flags|=4),lu=u,He=n;break;case 21:break;case 7:n&512&&(Be||a===null||vt(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:zt(t,e,l),Et(e)}}function Et(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Od(a)){l=a;break}a=a.return}a=null;for(var n=e.return;n!==null;){if(Es(n)){var u=n.stateNode;a===null?a=[u]:a.push(u)}if(zs(n))break;n=n.return}var i=a;if(l==null)throw Error(o(160));switch(l.tag){case 27:var s=l.stateNode,r=As(e);xi(e,r,s,i);break;case 5:var g=l.stateNode;l.flags&32&&(Ga(g,""),l.flags&=-33);var N=As(e);xi(e,N,g,i);break;case 3:case 4:var z=l.stateNode.containerInfo,y=As(e);Cs(e,y,z,i);break;default:throw Error(o(161))}}catch(p){Ge(e,e.return,p)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Vd(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Tn=!0,t.reset(),Tn=!1),e=e.sibling}}function un(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Zd(t,e),t=t.sibling;else Hd(t)}function Zd(e,t){var l=e.alternate;if(l===null)Ms(e,!1);else switch(e.tag){case 3:if(qs=vl=!1,Md(),un(t,e),!vl&&!Ni){if(e=ml,e!==null)for(var a=0;a<e.length;a+=3){l=e[a];var n=e[a+1];D0(l,e[a+2]),l=l.ownerDocument.documentElement,l!==null&&l.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+n+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),qs=!0}ml=null;break;case 5:un(t,e);break;case 4:a=vl,vl=!1,un(t,e),vl&&(Ni=!0),vl=a;break;case 22:e.memoizedState===null&&(l.memoizedState!==null?Ms(e,!1):un(t,e));break;case 30:a=vl,n=Md(),vl=!1,un(t,e),vl&&(e.flags|=4);var u=e.memoizedProps,i=e.stateNode;t=Tl(u,i),i=Tl(l.memoizedProps,i);var s=_l(u.default,u.update);s==="none"?t=!1:(u=l.memoizedState,l.memoizedState=null,l=e.child,Ct=0,t=Hs(e,l,t,i,s,u,!0),Ct!==(u===null?0:u.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(mn(e,e.memoizedProps.onUpdate),ml=n):n!==null&&(n.push.apply(n,ml),ml=n),vl=(e.flags&32)!==0?!0:a;break;default:un(t,e)}}function gl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)qd(e,t.alternate,t),t=t.sibling}function Il(e,t){for(e=e.child;e!==null;){var l=e,a=t;switch(l.tag){case 0:case 11:case 14:case 15:Wl(4,l,l.return),Il(l,a);break;case 1:vt(l,l.return);var n=l.stateNode;typeof n.componentWillUnmount=="function"&&Ed(l,l.return,n),Il(l,a);break;case 27:(a&2)!==0&&V0(l.stateNode,l.type,l.memoizedProps);case 5:vt(l,l.return),l.tag!==5&&l.tag!==27||tu(l),Il(l,a);break;case 6:tu(l);break;case 26:vt(l,l.return),n=l.stateNode,l.memoizedState!==null||n===null||Be||n.parentNode.removeChild(n),Il(l,a);break;case 22:l.memoizedState===null&&Il(l,a);break;case 30:vt(l,l.return),Il(l,a);break;case 7:vt(l,l.return);default:Il(l,a)}e=e.sibling}}function il(e,t,l){for(l=(t.subtreeFlags&8772)!==0?l:l&-2,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,i=u.flags,s=(l&1)!==0;switch(u.tag){case 0:case 11:case 15:il(n,u,l),eu(4,u);break;case 1:if(il(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(N){Ge(a,a.return,N)}if(a=u,n=a.updateQueue,n!==null){var r=a.stateNode;try{var g=n.shared.hiddenCallbacks;if(g!==null)for(n.shared.hiddenCallbacks=null,n=0;n<g.length;n++)mo(g[n],r)}catch(N){Ge(a,a.return,N)}}s&&i&64&&zd(u),dl(u,u.return);break;case 27:(l&2)!==0&&Ad(u);case 5:u.tag!==5&&u.tag!==27||jd(u),il(n,u,l),s&&a===null&&i&4&&js(u),dl(u,u.return);break;case 6:jd(u);break;case 26:r=u.stateNode,u.memoizedState!==null||r===null||ft||_f(ou(r.ownerDocument),u.type,r),il(n,u,l),s&&a===null&&i&4&&js(u),dl(u,u.return);break;case 12:il(n,u,l);break;case 31:il(n,u,l),s&&i&4&&Qd(n,u);break;case 13:il(n,u,l),s&&i&4&&Xd(n,u);break;case 22:u.memoizedState===null&&il(n,u,l),dl(u,u.return);break;case 30:il(n,u,l),dl(u,u.return);break;case 7:dl(u,u.return);default:il(n,u,l)}t=t.sibling}}function Gs(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Qn(l))}function Qs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Qn(e))}function Wt(e,t,l,a){var n=(l&335544064)===l;if(t.subtreeFlags&(n?10262:10256))for(t=t.child;t!==null;)Kd(e,t,l,a),t=t.sibling;else n&&Rd(t)}function Kd(e,t,l,a){var n=(l&335544064)===l;n&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Si(t);var u=t.flags;switch(t.tag){case 0:case 11:case 15:Wt(e,t,l,a),u&2048&&eu(9,t);break;case 1:Wt(e,t,l,a);break;case 3:Wt(e,t,l,a),n&&qs&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),u&2048&&(u=null,t.alternate!==null&&(u=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==u&&(t.refCount++,u!=null&&Qn(u)));break;case 12:if(u&2048){Wt(e,t,l,a),u=t.stateNode;try{var i=t.memoizedProps,s=i.id,r=i.onPostCommit;typeof r=="function"&&r(s,t.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(g){Ge(t,t.return,g)}}else Wt(e,t,l,a);break;case 31:Wt(e,t,l,a);break;case 13:Wt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,s=t.alternate,t.memoizedState!==null?(n&&s!==null&&s.memoizedState===null&&Si(s),i._visibility&2?Wt(e,t,l,a):au(e,t)):(n&&s!==null&&s.memoizedState!==null&&Si(t),i._visibility&2?Wt(e,t,l,a):(i._visibility|=2,cn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1))),u&2048&&Gs(s,t);break;case 24:Wt(e,t,l,a),u&2048&&Qs(t.alternate,t);break;case 30:n&&(u=t.alternate,u!==null&&(hl(u.child,!0),hl(t.child,!0))),Wt(e,t,l,a);break;default:Wt(e,t,l,a)}}function cn(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,i=t,s=l,r=a,g=i.flags;switch(i.tag){case 0:case 11:case 15:cn(u,i,s,r,n),eu(8,i);break;case 23:break;case 22:var N=i.stateNode;i.memoizedState!==null?N._visibility&2?cn(u,i,s,r,n):au(u,i):(N._visibility|=2,cn(u,i,s,r,n)),n&&g&2048&&Gs(i.alternate,i);break;case 24:cn(u,i,s,r,n),n&&g&2048&&Qs(i.alternate,i);break;default:cn(u,i,s,r,n)}t=t.sibling}}function au(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:au(l,a),n&2048&&Gs(a.alternate,a);break;case 24:au(l,a),n&2048&&Qs(a.alternate,a);break;default:au(l,a)}t=t.sibling}}var Oa=8192;function Aa(e,t,l){if(e.subtreeFlags&Oa)for(e=e.child;e!==null;)kd(e,t,l),e=e.sibling}function kd(e,t,l){switch(e.tag){case 26:Aa(e,t,l),e.flags&Oa&&(e.memoizedState!==null?py(l,ul,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&em(l,e)));break;case 5:Aa(e,t,l),e.flags&Oa&&(e=e.stateNode,(t&335544128)===t&&em(l,e));break;case 3:case 4:var a=ul;ul=ou(e.stateNode.containerInfo),Aa(e,t,l),ul=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Oa,Oa=16777216,Aa(e,t,l),Oa=a):Aa(e,t,l));break;case 30:if((e.flags&Oa)!==0&&(a=e.memoizedProps.name,a!=null&&a!=="auto")){var n=e.stateNode;n.paired=null,Gt===null&&(Gt=new Map),Gt.set(a,n)}Aa(e,t,l);break;default:Aa(e,t,l)}}function Jd(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 nu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];rt=a,Fd(a,e)}Jd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)$d(e),e=e.sibling}function $d(e){switch(e.tag){case 0:case 11:case 15:nu(e),e.flags&2048&&Wl(9,e,e.return);break;case 3:nu(e);break;case 12:nu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,zi(e)):nu(e);break;default:nu(e)}}function zi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];rt=a,Fd(a,e)}Jd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wl(8,t,t.return),zi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,zi(t));break;default:zi(t)}e=e.sibling}}function Fd(e,t){for(;rt!==null;){var l=rt;switch(l.tag){case 0:case 11:case 15:Wl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Qn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,rt=a;else e:for(l=e;rt!==null;){a=rt;var n=a.sibling,u=a.return;if(Yd(a),a===l){rt=null;break e}if(n!==null){n.return=u,rt=n;break e}rt=u}}}var yh={getCacheForType:function(e){var t=mt(et),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return mt(et).controller.signal}},vh=typeof WeakMap=="function"?WeakMap:Map,we=0,Ze=null,Ne=null,je=0,Ye=0,Qt=null,Pl=!1,sn=!1,Xs=!1,Ul=0,We=0,ea=0,Ca=0,Ei=0,Xt=0,fn=0,uu=null,Dt=null,Ls=!1,ji=0,Wd=0,Oi=1/0,Ai=null,ta=null,$e=0,cl=null,Ma=null,xl=0,Vs=0,Zs=null,Id=null,rn=null,on=null,dn=null,iu=0,Ci=null;function Lt(){return(we&2)!==0&&je!==0?je&-je:K.T!==null?tf():er()}function Pd(){if(Xt===0)if((je&536870912)===0||be){var e=_u;_u<<=1,(_u&3932160)===0&&(_u=262144),Xt=e}else Xt=536870912;return e=ht.current,e!==null&&(e.flags|=32),Xt}function mn(e,t){if(t!=null){var l=e.stateNode,a=l.ref;a===null&&(a=l.ref=U0(Tl(e.memoizedProps,l))),on===null&&(on=[]),on.push(t.bind(null,a))}}function Ut(e,t,l){(e===Ze&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)&&(hn(e,0),la(e,je,Xt,!1)),jn(e,l),((we&2)===0||e!==Ze)&&(e===Ze&&((we&2)===0&&(Ca|=l),We===4&&la(e,je,Xt,!1)),bl(e))}function e0(e,t,l){if((we&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||En(e,t),n=a?bh(e,t):ks(e,t,!0),u=a;do{if(n===0){sn&&!a&&la(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!gh(l)){n=ks(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var s=e;n=uu;var r=s.current.memoizedState.isDehydrated;if(r&&(hn(s,i).flags|=256),i=ks(s,i,!1),i!==2&&i!==6){if(Xs&&!r){s.errorRecoveryDisabledLanes|=u,Ca|=u,n=4;break e}u=Dt,Dt=n,u!==null&&(Dt===null?Dt=u:Dt.push.apply(Dt,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){hn(e,0),la(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:la(a,t,Xt,!Pl);break e;case 2:Dt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=ji+300-Rt(),10<n)){if(la(a,t,Xt,!Pl),Eu(a,0,!0)!==0)break e;xl=t,a.timeoutHandle=mf(t0.bind(null,a,l,Dt,Ai,Ls,t,Xt,Ca,fn,Pl,u,"Throttled",-0,0),n);break e}t0(a,l,Dt,Ai,Ls,t,Xt,Ca,fn,Pl,u,null,-0,0)}}break}while(!0);bl(e)}function t0(e,t,l,a,n,u,i,s,r,g,N,z,y,p){e.timeoutHandle=-1;var G=t.subtreeFlags,J=(u&335544064)===u;if(z=null,(J||G&8192||(G&16785408)===16785408)&&(z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fl},Gt=null,kd(t,u,z),J&&(G=z,J=e.containerInfo,J=(J.nodeType===9?J:J.ownerDocument).__reactViewTransition,J!=null&&(G.count++,G.waitingForViewTransition=!0,G=hu.bind(G),J.finished.then(G,G))),G=(u&62914560)===u?ji-Rt():(u&4194048)===u?Wd-Rt():0,G=Sy(z,G),G!==null)){xl=u,e.cancelPendingCommit=G(f0.bind(null,e,t,u,l,a,n,i,s,r,g,N,z,null,y,p)),la(e,u,i,!g);return}f0(e,t,u,l,a,n,i,s,r,g,N,z)}function gh(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!Bt(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function la(e,t,l,a){t=$f(e,t),t&=~Ei,t&=~Ca,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-wt(n),i=1<<u;a[u]=-1,n&=~i}l!==0&&Wf(e,l,t)}function Mi(){return(we&6)===0?(cu(0),!1):!0}function Ks(){if(Ne!==null){if(Ye===0)var e=Ne.return;else e=Ne,jl=xa=null,es(e),Pa=null,Vn=0,e=Ne;for(;e!==null;)_d(e.alternate,e),e=e.return;Ne=null}}function hn(e,t){var l=e.timeoutHandle;return l!==-1&&(e.timeoutHandle=-1,Qh(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),xl=0,Ks(),Ze=e,Ne=l=zl(e.current,null),je=t,Ye=0,Qt=null,Pl=!1,sn=En(e,t),Xs=!1,fn=Xt=Ei=Ca=ea=We=0,Dt=uu=null,Ls=!1,Ul=$f(e,t),Yu(),l}function l0(e,t){he=null,K.H=ri,t===Ia||t===Fu?(t=so(),Ye=3):t===Qc?(t=so(),Ye=4):Ye=t===ys?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Qt=t,Ne===null&&(We=1,oi(e,kt(t,e.current)))}function a0(){var e=ht.current;return e===null?!0:(je&4194048)===je?pt===null:(je&62914560)===je||(je&536870912)!==0?e===pt:!1}function n0(){var e=K.H;return K.H=ri,e===null?ri:e}function u0(){var e=K.A;return K.A=yh,e}function Di(){We=4,Pl||(je&4194048)!==je&&ht.current!==null||(sn=!0),(ea&134217727)===0&&(Ca&134217727)===0||Ze===null||la(Ze,je,Xt,!1)}function ks(e,t,l){var a=we;we|=2;var n=n0(),u=u0();(Ze!==e||je!==t)&&(Ai=null,hn(e,t)),t=!1;var i=We;e:do try{if(Ye!==0&&Ne!==null){var s=Ne,r=Qt;switch(Ye){case 8:Ks(),i=6;break e;case 3:case 2:case 9:case 6:ht.current===null&&(t=!0);var g=Ye;if(Ye=0,Qt=null,yn(e,s,r,g),l&&sn){i=0;break e}break;default:g=Ye,Ye=0,Qt=null,yn(e,s,r,g)}}xh(),i=We;break}catch(N){l0(e,N)}while(!0);return t&&e.shellSuspendCounter++,jl=xa=null,we=a,K.H=n,K.A=u,Ne===null&&(Ze=null,je=0,Yu()),i}function xh(){for(;Ne!==null;)i0(Ne)}function bh(e,t){var l=we;we|=2;var a=n0(),n=u0();Ze!==e||je!==t?(Ai=null,Oi=Rt()+500,hn(e,t)):sn=En(e,t);e:do try{if(Ye!==0&&Ne!==null){t=Ne;var u=Qt;t:switch(Ye){case 1:Ye=0,Qt=null,yn(e,t,u,1);break;case 2:case 9:if(io(u)){Ye=0,Qt=null,c0(t);break}t=function(){Ye!==2&&Ye!==9||Ze!==e||(Ye=7),bl(e)},u.then(t,t);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:io(u)?(Ye=0,Qt=null,c0(t)):(Ye=0,Qt=null,yn(e,t,u,7));break;case 5:var i=null;switch(Ne.tag){case 26:i=Ne.memoizedState;case 5:case 27:var s=Ne;if(i?I0(i):s.stateNode.complete){Ye=0,Qt=null;var r=s.sibling;if(r!==null)Ne=r;else{var g=s.return;g!==null?(Ne=g,Ui(g)):Ne=null}break t}}Ye=0,Qt=null,yn(e,t,u,5);break;case 6:Ye=0,Qt=null,yn(e,t,u,6);break;case 8:Ks(),We=6;break e;default:throw Error(o(462))}}ph();break}catch(N){l0(e,N)}while(!0);return jl=xa=null,K.H=a,K.A=n,we=l,Ne!==null?0:(Ze=null,je=0,Yu(),We)}function ph(){for(;Ne!==null&&!qm();)i0(Ne)}function i0(e){var t=Nd(e.alternate,e,Ul);e.memoizedProps=e.pendingProps,t===null?Ui(e):Ne=t}function c0(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=yd(l,t,t.pendingProps,t.type,void 0,je);break;case 11:t=yd(l,t,t.pendingProps,t.type.render,t.ref,je);break;case 5:es(t);var a=t;a===st&&(be?(Zu(a),a.tag===5&&a.stateNode!=null&&(Ke=a.stateNode)):(Zu(a),be=!0));default:_d(l,t),t=Ne=$r(t,Ul),t=Nd(l,t,Ul)}e.memoizedProps=e.pendingProps,t===null?Ui(e):Ne=t}function yn(e,t,l,a){jl=xa=null,es(t),Pa=null,Vn=0;var n=t.return;try{if(ch(e,n,t,l,je)){We=1,oi(e,kt(l,e.current)),Ne=null;return}}catch(u){if(n!==null)throw Ne=n,u;We=1,oi(e,kt(l,e.current)),Ne=null;return}t.flags&32768?(be||a===1?e=!0:sn||(je&536870912)!==0?e=!1:(Pl=e=!0,(a===2||a===9||a===3||a===6)&&(a=ht.current,a!==null&&a.tag===13&&(a.flags|=16384))),s0(t,e)):Ui(t)}function Ui(e){var t=e;do{if((t.flags&32768)!==0){s0(t,Pl);return}e=t.return;var l=oh(t.alternate,t,Ul);if(l!==null){Ne=l;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);We===0&&(We=5)}function s0(e,t){do{var l=dh(e.alternate,e);if(l!==null){l.flags&=32767,Ne=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=l}while(e!==null);We=6,Ne=null}function f0(e,t,l,a,n,u,i,s,r,g,N,z){e.cancelPendingCommit=null;do Ri();while($e!==0);if((we&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));e===Ze&&(Ne=Ze=null,je=0),Ma=t,cl=e,xl=l,Zs=n,Id=a,Sh(e,t,l,i,s,r,z)}}function Sh(e,t,l,a,n,u,i){var s=t.lanes|t.childLanes;if(Vs=s,s|=Oc,km(e,l,s,a,n,u),on=null,(l&335544064)===l?(dn=$1(e),a=10262):(dn=null,a=10256),(t.subtreeFlags&a)!==0||(t.flags&a)!==0?(e.callbackNode=null,e.callbackPriority=0,jh(Nu,function(){return Ws(),null})):(e.callbackNode=null,e.callbackPriority=0),bi=!1,a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=K.T,K.T=null,n=ue.p,ue.p=2,u=we,we|=4;try{mh(e,t,l)}finally{we=u,ue.p=n,K.T=a}}$e=1,bi?rn=kh(i,e.containerInfo,dn,Js,$s,Th,Fs,Ws,Nh):(Js(),$s(),Fs())}function Nh(e){if($e!==0){var t=cl.onRecoverableError;t(e,{componentStack:null})}}function Th(){$e===3&&($e=0,Zd(Ma,cl),$e=4)}function Js(){if($e===1){$e=0;var e=cl,t=Ma,l=xl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=K.T,K.T=null;var n=ue.p;ue.p=2;var u=we;we|=4;try{lu=Ni=!1,Ld(t,e,l),l=rf;var i=Yr(e.containerInfo),s=l.focusedElem,r=l.selectionRange;if(i!==s&&s&&s.ownerDocument&&Br(s.ownerDocument.documentElement,s)){if(r!==null&&Tc(s)){var g=r.start,N=r.end;if(N===void 0&&(N=g),"selectionStart"in s)s.selectionStart=g,s.selectionEnd=Math.min(N,s.value.length);else{var z=s.ownerDocument||document,y=z&&z.defaultView||window;if(y.getSelection){var p=y.getSelection(),G=s.textContent.length,J=Math.min(r.start,G),ye=r.end===void 0?J:Math.min(r.end,G);!p.extend&&J>ye&&(i=ye,ye=J,J=i);var v=qr(s,J),m=qr(s,ye);if(v&&m&&(p.rangeCount!==1||p.anchorNode!==v.node||p.anchorOffset!==v.offset||p.focusNode!==m.node||p.focusOffset!==m.offset)){var b=z.createRange();b.setStart(v.node,v.offset),p.removeAllRanges(),J>ye?(p.addRange(b),p.extend(m.node,m.offset)):(b.setEnd(m.node,m.offset),p.addRange(b))}}}}for(z=[],p=s;p=p.parentNode;)p.nodeType===1&&z.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<z.length;s++){var _=z[s];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}Tn=!!ff,rf=ff=null}finally{we=u,ue.p=n,K.T=a}}e.current=t,$e=2}}function $s(){if($e===2){$e=0;var e=cl,t=Ma,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=K.T,K.T=null;var a=ue.p;ue.p=2;var n=we;we|=4;try{qd(e,t.alternate,t)}finally{we=n,ue.p=a,K.T=l}}$e=3}}function Fs(){if($e===4||$e===3){$e=0;var e=rn;rn=null,Bm();var t=cl,l=Ma,a=xl,n=Id,u=(a&335544064)===a?10262:10256;if((l.subtreeFlags&u)!==0||(l.flags&u)!==0?$e=5:($e=0,Ma=cl=null,r0(t,t.pendingLanes)),u=t.pendingLanes,u===0&&(ta=null),uc(a),l=l.stateNode,Ht&&typeof Ht.onCommitFiberRoot=="function")try{Ht.onCommitFiberRoot(zn,l,void 0,(l.current.flags&128)===128)}catch{}if(n!==null){l=K.T,u=ue.p,ue.p=2,K.T=null;try{for(var i=t.onRecoverableError,s=0;s<n.length;s++){var r=n[s];i(r.value,{componentStack:r.stack})}}finally{K.T=l,ue.p=u}}if(n=on,i=dn,dn=null,n!==null&&(on=null,i===null&&(i=[]),e!==null))for(r=0;r<n.length;r++)l=(0,n[r])(i),l!==void 0&&e.finished.finally(l);(xl&3)!==0&&Ri(),bl(t),u=t.pendingLanes,(a&261930)!==0&&(u&42)!==0?t===Ci?iu++:(iu=0,Ci=t):(iu=0,Ci=null),cu(0)}}function r0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Qn(t)))}function Ri(){return rn!==null&&(rn.skipTransition(),rn=null),Js(),$s(),Fs(),Ws()}function Ws(){if($e!==5)return!1;var e=cl,t=Vs;Vs=0;var l=uc(xl),a=K.T,n=ue.p;try{ue.p=32>l?32:l,K.T=null,l=Zs,Zs=null;var u=cl,i=xl;if($e=0,Ma=cl=null,xl=0,(we&6)!==0)throw Error(o(331));var s=we;if(we|=4,$d(u.current),Kd(u,u.current,i,l),we=s,cu(0,!1),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(zn,u)}catch{}return!0}finally{ue.p=n,K.T=a,r0(e,t)}}function o0(e,t,l){t=kt(l,t),t=hs(e.stateNode,t,2),e=kl(e,t,2),e!==null&&(jn(e,2),bl(e))}function Ge(e,t,l){if(e.tag===3)o0(e,e,l);else for(;t!==null;){if(t.tag===3){o0(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ta===null||!ta.has(a))){e=kt(l,e),l=cd(2),a=kl(t,l,2),a!==null&&(sd(l,a,t,e),jn(a,2),bl(a));break}}t=t.return}}function Is(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new vh;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Xs=!0,n.add(l),e=_h.bind(null,e,t,l),t.then(e,e))}function _h(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ze===e&&(je&l)===l&&((We===4||We===3&&(je&62914560)===je&&300>Rt()-ji)&&(we&2)===0?hn(e,0):Ei|=l,fn===je&&(fn=0)),bl(e)}function d0(e,t){t===0&&(t=Ff()),e=ya(e,t),e!==null&&(jn(e,t),bl(e))}function zh(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),d0(e,l)}function Eh(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),d0(e,l)}function jh(e,t){return tc(e,t)}var vn=null,gn=null,Ps=!1,Hi=!1,ef=!1,aa=0;function bl(e){e!==gn&&e.next===null&&(gn===null?vn=gn=e:gn=gn.next=e),Hi=!0,Ps||(Ps=!0,Ah())}function cu(e,t){if(!ef&&Hi){ef=!0;do for(var l=!1,a=vn;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,s=a.pingedLanes;u=(1<<31-wt(42|e)+1)-1,u&=n&~(i&~s),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,v0(a,u))}else u=je,u=Eu(a,a===Ze?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||En(a,u)||(l=!0,v0(a,u));a=a.next}while(l);ef=!1}}function Oh(){m0()}function m0(){Hi=Ps=!1;var e=0;aa!==0&&Gh()&&(e=aa);for(var t=Rt(),l=null,a=vn;a!==null;){var n=a.next,u=h0(a,t);u===0?(a.next=null,l===null?vn=n:l.next=n,n===null&&(gn=l)):(l=a,(e!==0||(u&3)!==0)&&(Hi=!0)),a=n}$e!==0&&$e!==5||cu(e),aa!==0&&(aa=0)}function h0(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var i=31-wt(u),s=1<<i,r=n[i];r===-1?((s&l)===0||(s&a)!==0)&&(n[i]=Km(s,t)):r<=t&&(e.expiredLanes|=s),u&=~s}if(t=Ze,l=je,l=Eu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&lc(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||En(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&lc(a),uc(l)){case 2:case 8:l=kf;break;case 32:l=Nu;break;case 268435456:l=Jf;break;default:l=Nu}return a=y0.bind(null,e),l=tc(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&lc(a),e.callbackPriority=2,e.callbackNode=null,2}function y0(e,t){if($e!==0&&$e!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ri()&&e.callbackNode!==l)return null;var a=je;return a=Eu(e,e===Ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(e0(e,a,t),h0(e,Rt()),e.callbackNode!=null&&e.callbackNode===l?y0.bind(null,e):null)}function v0(e,t){if(Ri())return null;e0(e,t,!0)}function Ah(){Xh(function(){(we&6)!==0?tc(Kf,Oh):m0()})}function tf(){if(aa===0){var e=Sa;e===0&&(e=Tu,Tu<<=1,(Tu&261888)===0&&(Tu=256)),aa=e}return aa}function g0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Mu(e)}function Ch(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=g0((n[Ot]||null).action),i=a.submitter;i&&(t=(t=i[Ot]||null)?g0(t.formAction):i.getAttribute("formAction"),t!==null&&(u=t,i=null));var s=new Hu("action","action",null,a,n);e.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(aa!==0){var r=new FormData(n,i);fs(l,{pending:!0,data:r,method:n.method,action:u},null,r)}}else typeof u=="function"&&(s.preventDefault(),r=new FormData(n,i),fs(l,{pending:!0,data:r,method:n.method,action:u},u,r))},currentTarget:n}]})}}for(var lf=0;lf<jc.length;lf++){var af=jc[lf],Mh=af.toLowerCase(),Dh=af[0].toUpperCase()+af.slice(1);al(Mh,"on"+Dh)}al(Xr,"onAnimationEnd"),al(Lr,"onAnimationIteration"),al(Vr,"onAnimationStart"),al("dblclick","onDoubleClick"),al("focusin","onFocus"),al("focusout","onBlur"),al(Q1,"onTransitionRun"),al(X1,"onTransitionStart"),al(L1,"onTransitionCancel"),al(Zr,"onTransitionEnd"),Ba("onMouseEnter",["mouseout","mouseover"]),Ba("onMouseLeave",["mouseout","mouseover"]),Ba("onPointerEnter",["pointerout","pointerover"]),Ba("onPointerLeave",["pointerout","pointerover"]),da("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),da("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),da("onBeforeInput",["compositionend","keypress","textInput","paste"]),da("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),da("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),da("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var su="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(" "),Uh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(su));function x0(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var i=a.length-1;0<=i;i--){var s=a[i],r=s.instance,g=s.currentTarget;if(s=s.listener,r!==u&&n.isPropagationStopped())break e;u=s,n.currentTarget=g;try{u(n)}catch(N){Bu(N)}n.currentTarget=null,u=r}else for(i=0;i<a.length;i++){if(s=a[i],r=s.instance,g=s.currentTarget,s=s.listener,r!==u&&n.isPropagationStopped())break e;u=s,n.currentTarget=g;try{u(n)}catch(N){Bu(N)}n.currentTarget=null,u=r}}}}function Te(e,t){var l=t[lr];l===void 0&&(l=t[lr]=new Set);var a=e+"__bubble";l.has(a)||(b0(t,e,2,!1),l.add(a))}function nf(e,t,l){var a=0;t&&(a|=4),b0(l,e,a,t)}var wi="_reactListening"+Math.random().toString(36).slice(2);function uf(e){if(!e[wi]){e[wi]=!0,ur.forEach(function(l){l!=="selectionchange"&&(Uh.has(l)||nf(l,!1,e),nf(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wi]||(t[wi]=!0,nf("selectionchange",!1,t))}}function b0(e,t,l,a){switch(sm(t)){case 2:var n=zy;break;case 8:n=Ey;break;default:n=Ef}l=n.bind(null,t,l,e),n=void 0,!mc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function cf(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var s=a.stateNode.containerInfo;if(s===n)break;if(i===4)for(i=a.return;i!==null;){var r=i.tag;if((r===3||r===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;s!==null;){if(i=oa(s),i===null)return;if(r=i.tag,r===5||r===6||r===26||r===27){a=u=i;continue e}s=s.parentNode}}a=a.return}xr(function(){var g=u,N=oc(l),z=[];e:{var y=Kr.get(e);if(y!==void 0){var p=Hu,G=e;switch(e){case"keypress":if(Uu(l)===0)break e;case"keydown":case"keyup":p=g1;break;case"focusin":G="focus",p=gc;break;case"focusout":G="blur",p=gc;break;case"beforeblur":case"afterblur":p=gc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Sr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=u1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=N1;break;case Xr:case Lr:case Vr:p=s1;break;case Zr:p=_1;break;case"scroll":case"scrollend":p=a1;break;case"wheel":p=E1;break;case"copy":case"cut":case"paste":p=r1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Tr;break;case"submit":p=p1;break;case"toggle":case"beforetoggle":p=O1}var J=(t&4)!==0,ye=!J&&(e==="scroll"||e==="scrollend"),v=J?y!==null?y+"Capture":null:y;J=[];for(var m=g,b;m!==null;){var _=m;if(b=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||b===null||v===null||(_=Cn(m,v),_!=null&&J.push(fu(m,_,b))),ye)break;m=m.return}0<J.length&&(y=new p(y,G,null,l,N),z.push({event:y,listeners:J}))}}if((t&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",p&&l!==rc&&(G=l.relatedTarget||l.fromElement)&&(oa(G)||G[Ha]))break e;(y||p)&&(G=N.window===N?N:(p=N.ownerDocument)?p.defaultView||p.parentWindow:window,y?(p=l.relatedTarget||l.toElement,y=g,p=p?oa(p):null,p!==null&&(ye=H(p),J=p.tag,p!==ye||J!==5&&J!==27&&J!==6)&&(p=null)):(y=null,p=g),y!==p&&(J=Sr,_="onMouseLeave",v="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(J=Tr,_="onPointerLeave",v="onPointerEnter",m="pointer"),ye=y==null?G:An(y),b=p==null?G:An(p),G=new J(_,m+"leave",y,l,N),G.target=ye,G.relatedTarget=b,_=null,oa(N)===g&&(J=new J(v,m+"enter",p,l,N),J.target=b,J.relatedTarget=ye,_=J),ye=_,J=y&&p?$(y,p,Rh):null,y!==null&&p0(z,G,y,J,!1),p!==null&&ye!==null&&p0(z,ye,p,J,!0)))}e:{if(y=g?An(g):window,p=y.nodeName&&y.nodeName.toLowerCase(),p==="select"||p==="input"&&y.type==="file")var V=Mr;else if(Ar(y))if(Dr)V=B1;else{V=w1;var Oe=H1}else p=y.nodeName,!p||p.toLowerCase()!=="input"||y.type!=="checkbox"&&y.type!=="radio"?g&&fc(g.elementType)&&(V=Mr):V=q1;if(V&&(V=V(e,g))){Cr(z,V,l,N);break e}Oe&&Oe(e,y,g)}switch(Oe=g?An(g):window,e){case"focusin":(Ar(Oe)||Oe.contentEditable==="true")&&(Va=Oe,_c=g,Bn=null);break;case"focusout":Bn=_c=Va=null;break;case"mousedown":zc=!0;break;case"contextmenu":case"mouseup":case"dragend":zc=!1,Gr(z,l,N);break;case"selectionchange":if(G1)break;case"keydown":case"keyup":Gr(z,l,N)}var P;if(bc)e:{switch(e){case"compositionstart":var ie="onCompositionStart";break e;case"compositionend":ie="onCompositionEnd";break e;case"compositionupdate":ie="onCompositionUpdate";break e}ie=void 0}else La?jr(e,l)&&(ie="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ie="onCompositionStart");ie&&(_r&&l.locale!=="ko"&&(La||ie!=="onCompositionStart"?ie==="onCompositionEnd"&&La&&(P=br()):(Bl=N,hc="value"in Bl?Bl.value:Bl.textContent,La=!0)),Oe=qi(g,ie),0<Oe.length&&(ie=new Nr(ie,e,null,l,N),z.push({event:ie,listeners:Oe}),P?ie.data=P:(P=Or(l),P!==null&&(ie.data=P)))),(P=C1?M1(e,l):D1(e,l))&&(ie=qi(g,"onBeforeInput"),0<ie.length&&(Oe=new Nr("onBeforeInput","beforeinput",null,l,N),z.push({event:Oe,listeners:ie}),Oe.data=P)),Ch(z,e,g,l,N)}x0(z,t)})}function fu(e,t,l){return{instance:e,listener:t,currentTarget:l}}function qi(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Cn(e,l),n!=null&&a.unshift(fu(e,n,u)),n=Cn(e,t),n!=null&&a.push(fu(e,n,u))),e.tag===3)return a;e=e.return}return[]}function Rh(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function p0(e,t,l,a,n){for(var u=t._reactName,i=[];l!==null&&l!==a;){var s=l,r=s.alternate,g=s.stateNode;if(s=s.tag,r!==null&&r===a)break;s!==5&&s!==26&&s!==27||g===null||(r=g,n?(g=Cn(l,u),g!=null&&i.unshift(fu(l,g,r))):n||(g=Cn(l,u),g!=null&&i.push(fu(l,g,r)))),l=l.return}i.length!==0&&e.push({event:t,listeners:i})}var Hh=/\r\n?/g,wh=/\u0000|\uFFFD/g;function S0(e){return(typeof e=="string"?e:""+e).replace(Hh,`
`).replace(wh,"")}function N0(e,t){return t=S0(t),S0(e)===t}function Qe(e,t,l,a,n,u){switch(l){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||Ga(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&Ga(e,""+a);else return;break;case"className":Cu(e,"class",a);break;case"tabIndex":Cu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Cu(e,l,a);break;case"style":vr(e,a,u);return;case"data":if(t!=="object"){Cu(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Mu(a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&Qe(e,t,"name",n.name,n,null),Qe(e,t,"formEncType",n.formEncType,n,null),Qe(e,t,"formMethod",n.formMethod,n,null),Qe(e,t,"formTarget",n.formTarget,n,null)):(Qe(e,t,"encType",n.encType,n,null),Qe(e,t,"method",n.method,n,null),Qe(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Mu(a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=fl);return;case"onScroll":a!=null&&Te("scroll",e);return;case"onScrollEnd":a!=null&&Te("scrollend",e);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));(u!=null?u.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Mu(a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":Te("beforetoggle",e),Te("toggle",e),Au(e,"popover",a);break;case"xlinkActuate":Sl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Sl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Sl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Sl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Sl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Sl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Sl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Sl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Sl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Au(e,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")l=t1.get(l)||l,Au(e,l,a);else return}He=!0}function sf(e,t,l,a,n,u){switch(l){case"style":vr(e,a,u);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));(u!=null?u.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"children":if(typeof a=="string")Ga(e,a);else if(typeof a=="number"||typeof a=="bigint")Ga(e,""+a);else return;break;case"onScroll":a!=null&&Te("scroll",e);return;case"onScrollEnd":a!=null&&Te("scrollend",e);return;case"onClick":a!=null&&(e.onclick=fl);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!ir.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),u=l.slice(2,n?l.length-7:void 0),t=e[Ot]||null,t=t!=null?t[l]:null,typeof t=="function"&&e.removeEventListener(u,t,n),typeof a=="function")){typeof t!="function"&&t!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(u,a,n);break e}He=!0,l in e?e[l]=a:a===!0?e.setAttribute(l,""):Au(e,l,a)}return}He=!0}function gt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Te("error",e),Te("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Qe(e,t,u,i,l,null)}}n&&Qe(e,t,"srcSet",l.srcSet,l,null),a&&Qe(e,t,"src",l.src,l,null);return;case"input":Te("invalid",e);var s=u=i=n=null,r=null,g=null;for(a in l)if(l.hasOwnProperty(a)){var N=l[a];if(N!=null)switch(a){case"name":n=N;break;case"type":i=N;break;case"checked":r=N;break;case"defaultChecked":g=N;break;case"value":u=N;break;case"defaultValue":s=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(o(137,t));break;default:Qe(e,t,a,N,l,null)}}dr(e,u,s,r,g,i,n,!1);return;case"select":Te("invalid",e),a=i=u=null;for(n in l)if(l.hasOwnProperty(n)&&(s=l[n],s!=null))switch(n){case"value":u=s;break;case"defaultValue":i=s;break;case"multiple":a=s;default:Qe(e,t,n,s,l,null)}t=u,l=i,e.multiple=!!a,t!=null?Ya(e,!!a,t,!1):l!=null&&Ya(e,!!a,l,!0);return;case"textarea":Te("invalid",e),u=n=a=null;for(i in l)if(l.hasOwnProperty(i)&&(s=l[i],s!=null))switch(i){case"value":a=s;break;case"defaultValue":n=s;break;case"children":u=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:Qe(e,t,i,s,l,null)}hr(e,a,n,u);return;case"option":for(r in l)if(l.hasOwnProperty(r)&&(a=l[r],a!=null))switch(r){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Qe(e,t,r,a,l,null)}return;case"dialog":Te("beforetoggle",e),Te("toggle",e),Te("cancel",e),Te("close",e);break;case"iframe":case"object":Te("load",e);break;case"video":case"audio":for(a=0;a<su.length;a++)Te(su[a],e);break;case"image":Te("error",e),Te("load",e);break;case"details":Te("toggle",e);break;case"embed":case"source":case"link":Te("error",e),Te("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(g in l)if(l.hasOwnProperty(g)&&(a=l[g],a!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Qe(e,t,g,a,l,null)}return;default:if(fc(t)){for(N in l)l.hasOwnProperty(N)&&(a=l[N],a!==void 0&&sf(e,t,N,a,l,void 0));return}}for(s in l)l.hasOwnProperty(s)&&(a=l[s],a!=null&&Qe(e,t,s,a,l,null))}var qh={};function Bh(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,s=null,r=null,g=null,N=null;for(p in l){var z=l[p];if(l.hasOwnProperty(p)&&z!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":r=z;default:a.hasOwnProperty(p)||Qe(e,t,p,null,a,z)}}for(var y in a){var p=a[y];if(z=l[y],a.hasOwnProperty(y)&&(p!=null||z!=null))switch(y){case"type":p!==z&&(He=!0),u=p;break;case"name":p!==z&&(He=!0),n=p;break;case"checked":p!==z&&(He=!0),g=p;break;case"defaultChecked":p!==z&&(He=!0),N=p;break;case"value":p!==z&&(He=!0),i=p;break;case"defaultValue":p!==z&&(He=!0),s=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(137,t));break;default:p!==z&&Qe(e,t,y,p,a,z)}}cc(e,i,s,r,g,N,u,n);return;case"select":p=i=s=y=null;for(u in l)if(r=l[u],l.hasOwnProperty(u)&&r!=null)switch(u){case"value":break;case"multiple":p=r;default:a.hasOwnProperty(u)||Qe(e,t,u,null,a,r)}for(n in a)if(u=a[n],r=l[n],a.hasOwnProperty(n)&&(u!=null||r!=null))switch(n){case"value":u!==r&&(He=!0),y=u;break;case"defaultValue":u!==r&&(He=!0),s=u;break;case"multiple":u!==r&&(He=!0),i=u;default:u!==r&&Qe(e,t,n,u,a,r)}t=s,l=i,a=p,y!=null?Ya(e,!!l,y,!1):!!a!=!!l&&(t!=null?Ya(e,!!l,t,!0):Ya(e,!!l,l?[]:"",!1));return;case"textarea":p=y=null;for(s in l)if(n=l[s],l.hasOwnProperty(s)&&n!=null&&!a.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:Qe(e,t,s,null,a,n)}for(i in a)if(n=a[i],u=l[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":n!==u&&(He=!0),y=n;break;case"defaultValue":n!==u&&(He=!0),p=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&Qe(e,t,i,n,a,u)}mr(e,y,p);return;case"option":for(var G in l)if(y=l[G],l.hasOwnProperty(G)&&y!=null&&!a.hasOwnProperty(G))switch(G){case"selected":e.selected=!1;break;default:Qe(e,t,G,null,a,y)}for(r in a)if(y=a[r],p=l[r],a.hasOwnProperty(r)&&y!==p&&(y!=null||p!=null))switch(r){case"selected":y!==p&&(He=!0),e.selected=y&&typeof y!="function"&&typeof y!="symbol";break;default:Qe(e,t,r,y,a,p)}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 J in l)y=l[J],l.hasOwnProperty(J)&&y!=null&&!a.hasOwnProperty(J)&&Qe(e,t,J,null,a,y);for(g in a)if(y=a[g],p=l[g],a.hasOwnProperty(g)&&y!==p&&(y!=null||p!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(y!=null)throw Error(o(137,t));break;default:Qe(e,t,g,y,a,p)}return;default:if(fc(t)){for(var ye in l)y=l[ye],l.hasOwnProperty(ye)&&y!==void 0&&!a.hasOwnProperty(ye)&&sf(e,t,ye,void 0,a,y);for(N in a)y=a[N],p=l[N],!a.hasOwnProperty(N)||y===p||y===void 0&&p===void 0||sf(e,t,N,y,a,p);return}}for(var v in l)y=l[v],l.hasOwnProperty(v)&&y!=null&&!a.hasOwnProperty(v)&&Qe(e,t,v,null,a,y);for(z in a)y=a[z],p=l[z],!a.hasOwnProperty(z)||y===p||y==null&&p==null||Qe(e,t,z,y,a,p)}function T0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Yh(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,i=n.initiatorType,s=n.duration;if(u&&s&&T0(i)){for(i=0,s=n.responseEnd,a+=1;a<l.length;a++){var r=l[a],g=r.startTime;if(g>s)break;var N=r.transferSize,z=r.initiatorType;N&&T0(z)&&(r=r.responseEnd,i+=N*(r<s?1:(s-g)/(r-g)))}if(--a,t+=8*(u+i)/(n.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 ff=null,rf=null;function ru(e){return e.nodeType===9?e:e.ownerDocument}function _0(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 z0(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 E0(e,t,l,a){return l=ru(l).createElement(e),l[dt]=a,l[Ot]=t,gt(l,e,t),ct(l),l}function of(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 df=null;function Gh(){var e=window.event;return e&&e.type==="popstate"?e===df?!1:(df=e,!0):(df=null,!1)}var mf=typeof setTimeout=="function"?setTimeout:void 0,Qh=typeof clearTimeout=="function"?clearTimeout:void 0,j0=typeof Promise=="function"?Promise:void 0,O0=typeof requestAnimationFrame=="function"?requestAnimationFrame:mf,Xh=typeof queueMicrotask=="function"?queueMicrotask:typeof j0<"u"?function(e){return j0.resolve(null).then(e).catch(Lh)}:mf;function Lh(e){setTimeout(function(){throw e})}function na(e){return e==="head"}function A0(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),_n(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Sf(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Sf(l);for(var u=l.firstChild;u;){var i=u.nextSibling,s=u.nodeName;u[On]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&Sf(e.ownerDocument.body);l=n}while(l);_n(t)}function C0(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function M0(e,t,l){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,l!=null&&(e.style.viewTransitionClass=l),l=getComputedStyle(e),l.display==="inline"){if(t=e.getClientRects(),t.length===1)var a=1;else for(var n=a=0;n<t.length;n++){var u=t[n];0<u.width&&0<u.height&&a++}a===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+l.paddingTop,e.marginBottom="-"+l.paddingBottom)}}function D0(e,t){e=e.style,t=t.style;var l=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=l==null||typeof l=="boolean"?"":(""+l).trim(),l=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=l==null||typeof l=="boolean"?"":(""+l).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(l=t.display,e.display=l==null||typeof l=="boolean"?"":l,l=t.margin,l!=null?e.margin=l:(l=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=l==null||typeof l=="boolean"?"":l,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Vh(e,t,l){return l=l.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=l.innerHeight&&e.left<=l.innerWidth}}function hf(e){var t=e.getBoundingClientRect(),l=getComputedStyle(e);return Vh(t,l,e)}function Zh(e){return e.documentElement.clientHeight}function Kh(e){this.addEventListener("load",e),this.addEventListener("error",e)}function kh(e,t,l,a,n,u,i,s,r){var g=t.nodeType===9?t:t.ownerDocument;try{var N=g.startViewTransition({update:function(){var y=g.defaultView,p=y.navigation&&y.navigation.transition,G=g.fonts.status;a();var J=[];if(G==="loaded"&&(Zh(g),g.fonts.status==="loading"&&J.push(g.fonts.ready)),G=J.length,e!==null)for(var ye=e.suspenseyImages,v=0,m=0;m<ye.length;m++){var b=ye[m];if(!b.complete){var _=b.getBoundingClientRect();if(0<_.bottom&&0<_.right&&_.top<y.innerHeight&&_.left<y.innerWidth){if(v+=P0(b),v>Gi){J.length=G;break}b=new Promise(Kh.bind(b)),J.push(b)}}}if(0<J.length)return y=Promise.race([Promise.all(J),new Promise(function(V){return setTimeout(V,500)})]).then(n,n),(p?Promise.allSettled([p.finished,y]):y).then(u,u);if(n(),p)return p.finished.then(u,u);u()},types:l});g.__reactViewTransition=N;var z=[];return N.ready.then(function(){for(var y=g.documentElement.getAnimations({subtree:!0}),p=0;p<y.length;p++){var G=y[p],J=G.effect,ye=J.pseudoElement;if(ye!=null&&ye.startsWith("::view-transition")){z.push(G),G=J.getKeyframes();for(var v=ye=void 0,m=!0,b=0;b<G.length;b++){var _=G[b],V=_.width;if(ye===void 0)ye=V;else if(ye!==V){m=!1;break}if(V=_.height,v===void 0)v=V;else if(v!==V){m=!1;break}delete _.width,delete _.height,_.transform==="none"&&delete _.transform}m&&ye!==void 0&&v!==void 0&&(J.setKeyframes(G),m=getComputedStyle(J.target,J.pseudoElement),m.width!==ye||m.height!==v)&&(m=G[0],m.width=ye,m.height=v,m=G[G.length-1],m.width=ye,m.height=v,J.setKeyframes(G))}}i()},function(y){g.__reactViewTransition===N&&(g.__reactViewTransition=null);try{if(typeof y=="object"&&y!==null)switch(y.name){case"InvalidStateError":(y.message==="View transition was skipped because document visibility state is hidden."||y.message==="Skipping view transition because document visibility state has become hidden."||y.message==="Skipping view transition because viewport size changed."||y.message==="Transition was aborted because of invalid state")&&(y=null)}y!==null&&r(y)}finally{a(),n(),i()}}),N.finished.finally(function(){for(var y=0;y<z.length;y++)z[y].cancel();g.__reactViewTransition===N&&(g.__reactViewTransition=null),s()}),N}catch{return a(),n(),i(),null}}function Da(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}Da.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:ae({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Da.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,l=e.getAnimations({subtree:!0}),a=[],n=0;n<l.length;n++){var u=l[n].effect;u!==null&&u.target===e&&u.pseudoElement===t&&a.push(l[n])}return a},Da.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function U0(e){return{name:e,group:new Da("group",e),imagePair:new Da("image-pair",e),old:new Da("old",e),new:new Da("new",e)}}function Vt(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Vt.prototype.addEventListener=function(e,t,l){var a=null,n=null;if(!(l!=null&&typeof l!="boolean"&&(a=l.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var u=this._eventListeners;if(H0(u,e,t,l)===-1){var i=this,s=t;l!=null&&typeof l!="boolean"&&l.once===!0&&(s=function(r){i.removeEventListener(e,t,l),typeof t=="function"?t.call(this,r):t.handleEvent(r)}),a!==null&&(n=i.removeEventListener.bind(i,e,t,l),a.addEventListener("abort",n,{once:!0}),n=a.removeEventListener.bind(a,"abort",n)),a=xn(l),u.push({type:e,listener:t,optionsOrUseCapture:l,attachedListener:s,cleanup:n}),S(this._fragmentFiber.child,!1,Jh,e,s,a)}this._eventListeners=u}};function Jh(e,t,l,a){return ee(e).addEventListener(t,l,a),!1}Vt.prototype.removeEventListener=function(e,t,l){var a=this._eventListeners;if(a!==null&&(t=H0(a,e,t,l),t!==-1)){var n=a[t];l=n.attachedListener;var u=n.cleanup;n=xn(n.optionsOrUseCapture),S(this._fragmentFiber.child,!1,$h,e,l,n),a.splice(t,1),u!==null&&u()}};function $h(e,t,l,a){return ee(e).removeEventListener(t,l,a),!1}function xn(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function R0(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function H0(e,t,l,a){if(e.length===0)return-1;a=R0(a);for(var n=0;n<e.length;n++){var u=e[n];if(u.type===t&&u.listener===l&&R0(u.optionsOrUseCapture)===a)return n}return-1}Vt.prototype.dispatchEvent=function(e){var t=C(this._fragmentFiber);if(t===null)return!0;t=ee(t);var l=this._eventListeners;if(l!==null&&0<l.length||!e.bubbles){var a=t.nodeType===9?t.createComment(""):document.createTextNode("");if(l)for(var n=0;n<l.length;n++){var u=l[n];a.addEventListener(u.type,u.attachedListener,xn(u.optionsOrUseCapture))}if(t.appendChild(a),e=a.dispatchEvent(e),l)for(n=0;n<l.length;n++)u=l[n],a.removeEventListener(u.type,u.attachedListener,xn(u.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)},Vt.prototype.focus=function(e){S(this._fragmentFiber.child,!0,w0,e,void 0,void 0)};function w0(e,t){return e.tag===6?!1:(e=ee(e),cy(e,t))}Vt.prototype.focusLast=function(e){var t=[];S(this._fragmentFiber.child,!0,yf,t,void 0,void 0);for(var l=t.length-1;0<=l&&!w0(t[l],e);l--);};function yf(e,t){return t.push(e),!1}Vt.prototype.blur=function(){var e=C(this._fragmentFiber);e!==null&&(e=ee(e),e=ru(e).activeElement,e!==null&&S(this._fragmentFiber.child,!1,Fh,e,void 0,void 0))};function Fh(e,t){return e.tag===6?!1:(e=ee(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Vt.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),S(this._fragmentFiber.child,!1,Wh,e,void 0,void 0)};function Wh(e,t){return e.tag===6||(e=ee(e),t.observe(e)),!1}Vt.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),S(this._fragmentFiber.child,!1,Ih,e,void 0,void 0);for(var l=t=0;l<sl.length;l++){var a=sl[l];a.fragmentInstance===this&&a.observer===e?e.unobserve(a.instance):sl[t++]=a}sl.length=t}};function Ih(e,t){return e.tag===6||(e=ee(e),t.unobserve(e)),!1}var sl=[],vf=!1;function Ph(e,t,l){sl.push({fragmentInstance:e,observer:t,instance:l}),vf||(vf=!0,sy(function(){vf=!1;var a=sl;sl=[];for(var n=0;n<a.length;n++){var u=a[n];u.observer.unobserve(u.instance)}}))}Vt.prototype.getClientRects=function(){var e=[];return S(this._fragmentFiber.child,!1,ey,e,void 0,void 0),e};function ey(e,t){if(e.tag===6){e=e.stateNode;var l=e.ownerDocument.createRange();l.selectNodeContents(e),t.push.apply(t,l.getClientRects())}else e=ee(e),t.push.apply(t,e.getClientRects());return!1}Vt.prototype.getRootNode=function(e){var t=C(this._fragmentFiber);return t===null?this:ee(t).getRootNode(e)},Vt.prototype.compareDocumentPosition=function(e){var t=C(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var l=[];S(this._fragmentFiber.child,!1,yf,l,void 0,void 0);var a=ee(t);if(l.length===0){if(l=a,F(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(l=t)}t=this._fragmentFiber;var n=a=l.compareDocumentPosition(e);return l===e?n=Node.DOCUMENT_POSITION_CONTAINS:a&Node.DOCUMENT_POSITION_CONTAINED_BY&&(l=xe(t)[1],l===null?n=Node.DOCUMENT_POSITION_PRECEDING:(e=ee(l).compareDocumentPosition(e),n=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),n|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=ee(l[0]),n=ee(l[l.length-1]);var u=F(this._fragmentFiber)?t.parentElement:a;if(u==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=u.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,u=u.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY;var i=t.compareDocumentPosition(e),s=n.compareDocumentPosition(e),r=i&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=a&&u&&i&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=a&&t===e||u&&n===e||r||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&t===e||!u&&n===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:i,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||ty(t,this._fragmentFiber,l[0],l[l.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function ty(e,t,l,a,n){var u=oa(n);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(l=!!u)e:{for(;u!==null;){if(u.tag===7&&(u===t||u.alternate===t)){l=!0;break e}u=u.return}l=!1}return l}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(u===null)return u=n.ownerDocument,n===u||n===u.documentElement||n===u.body;e:{for(u=t,t=C(t);u!==null;){if(!(u.tag!==5&&u.tag!==3&&u.tag!==27||u!==t&&u.alternate!==t)){u=!0;break e}u=u.return}u=!1}return u}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!u)&&!(t=u===l)&&(t=$(l,u,Se),t===null?t=!1:(S(t,!0,I,u,l),u=Ue,Ue=null,t=u!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!u)&&!(t=u===a)&&(t=$(a,u,Se),t===null?t=!1:(S(t,!0,Le,u,a),u=Ue,le=Ue=null,t=u!==null)),t):!1}function q0(e,t){var l=e.ownerDocument.createRange();l.selectNodeContents(e),e=l.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Vt.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(o(566));var t=[];S(this._fragmentFiber.child,!1,yf,t,void 0,void 0);var l=e!==!1;if(t.length===0){var a=xe(this._fragmentFiber);if(a=l?a[1]||a[0]||C(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=ee(a),q0(e,l);return}if(a=ee(a),a.nodeType!==9){if(a.nodeType===11){l="host"in a?a.host:null,l!==null&&l.scrollIntoView(e);return}a.scrollIntoView(e)}}for(a=l?t.length-1:0;a!==(l?-1:t.length);){var n=t[a];n.tag===6?(n=ee(n),q0(n,l)):ee(n).scrollIntoView(e),a+=l?-1:1}};function ly(e,t){return e=ee(e),B0(e,t),!1}function B0(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Y0(e,t){var l=t._eventListeners;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a];e.addEventListener(n.type,n.attachedListener,xn(n.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){for(var i=0,s=0;s<sl.length;s++){var r=sl[s];(r.fragmentInstance!==t||r.observer!==u||r.instance!==e)&&(sl[i++]=r)}sl.length=i,u.observe(e)}),B0(e,t))}function ay(e,t){var l=t._eventListeners;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a];e.removeEventListener(n.type,n.attachedListener,xn(n.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){typeof u.rootMargin=="string"?Ph(t,u,e):u.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function gf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":gf(l),Ou(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function ny(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[On])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=It(e.nextSibling),e===null)break}return null}function uy(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=It(e.nextSibling),e===null))return null;return e}function G0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=It(e.nextSibling),e===null))return null;return e}function xf(e){return e.data==="$?"||e.data==="$~"}function bf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function iy(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function It(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var pf=null;function Q0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return It(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function X0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function cy(e,t){function l(){a=!0}if(e.ownerDocument.activeElement===e)return!0;var a=!1;try{e.ownerDocument.addEventListener("focus",l,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",l,!0)}return a}function sy(e){O0(function(){O0(function(t){return e(t)})})}function L0(e,t,l){switch(t=ru(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function V0(e,t,l){for(var a in l){var n=l[a];l.hasOwnProperty(a)&&n!=null&&Qe(e,t,a,null,qh,n)}l.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===fl&&(e.onclick=null),Ou(e)}function Sf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ou(e)}var Pt=new Map,Z0=new Set;function ou(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Rl=ue.d;ue.d={f:fy,r:ry,D:oy,C:dy,L:my,m:hy,X:vy,S:yy,M:gy};function fy(){var e=Rl.f(),t=Mi();return e||t}function ry(e){var t=wa(e);t!==null&&t.tag===5&&t.type==="form"?ko(t):Rl.r(e)}var bn=typeof document>"u"?null:document;function K0(e,t,l){var a=bn;if(a&&typeof t=="string"&&t){var n=Zt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Z0.has(n)||(Z0.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),gt(t,"link",e),ct(t),a.head.appendChild(t)))}}function oy(e){Rl.D(e),K0("dns-prefetch",e,null)}function dy(e,t){Rl.C(e,t),K0("preconnect",e,t)}function my(e,t,l){Rl.L(e,t,l);var a=bn;if(a&&e&&t){var n='link[rel="preload"][as="'+Zt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Zt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Zt(l.imageSizes)+'"]')):n+='[href="'+Zt(e)+'"]';var u=n;switch(t){case"style":u=pn(e);break;case"script":u=Sn(e)}if(!(Pt.has(u)||(e=ae({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Pt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(du(u))||t==="script"&&a.querySelector(mu(u))))){var i=a.createElement("link");gt(i,"link",e),t==="style"&&(i[ju]=!0,i.onload=i.onerror=function(){nr(i)}),ct(i),a.head.appendChild(i)}}}function hy(e,t){Rl.m(e,t);var l=bn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Zt(a)+'"][href="'+Zt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Sn(e)}if(!Pt.has(u)&&(e=ae({rel:"modulepreload",href:e},t),Pt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(mu(u)))return}a=l.createElement("link"),gt(a,"link",e),ct(a),l.head.appendChild(a)}}}function yy(e,t,l){Rl.S(e,t,l);var a=bn;if(a&&e){var n=qa(a).hoistableStyles,u=pn(e);t=t||"default";var i=n.get(u);if(!i){var s={loading:0,preload:null};if(i=a.querySelector(du(u)))s.loading=5;else{e=ae({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Pt.get(u))&&Nf(e,l);var r=i=a.createElement("link");ct(r),gt(r,"link",e),r._p=new Promise(function(g,N){r.onload=g,r.onerror=N}),r.addEventListener("load",function(){s.loading|=1}),r.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Bi(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:s},n.set(u,i)}}}function vy(e,t){Rl.X(e,t);var l=bn;if(l&&e){var a=qa(l).hoistableScripts,n=Sn(e),u=a.get(n);u||(u=l.querySelector(mu(n)),u||(e=ae({src:e,async:!0},t),(t=Pt.get(n))&&Tf(e,t),u=l.createElement("script"),ct(u),gt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function gy(e,t){Rl.M(e,t);var l=bn;if(l&&e){var a=qa(l).hoistableScripts,n=Sn(e),u=a.get(n);u||(u=l.querySelector(mu(n)),u||(e=ae({src:e,async:!0,type:"module"},t),(t=Pt.get(n))&&Tf(e,t),u=l.createElement("script"),ct(u),gt(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function k0(e,t,l,a){var n=(n=fe.current)?ou(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=pn(l.href),t=qa(n).hoistableStyles,a=t.get(l),a||(a={type:"style",instance:null,count:0,state:null},t.set(l,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=pn(l.href);var u=qa(n).hoistableStyles,i=u.get(e);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,i),(u=n.querySelector(du(e)))?u._p||(i.instance=u,i.state.loading=5):(u=Pt.get(e),u||(u={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Pt.set(e,u)),xy(n,e,u,i.state))),t&&a===null)throw Error(o(528,""));return i}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(l=Sn(l),t=qa(n).hoistableScripts,a=t.get(l),a||(a={type:"script",instance:null,count:0,state:null},t.set(l,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function pn(e){return'href="'+Zt(e)+'"'}function du(e){return'link[rel="stylesheet"]['+e+"]"}function J0(e){return ae({},e,{"data-precedence":e.precedence,precedence:null})}function xy(e,t,l,a){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[ju]!==!0){a.loading=1;return}}else t=e.createElement("link"),t[ju]=!0,t.onload=t.onerror=nr.bind(null,t),gt(t,"link",l),ct(t),e.head.appendChild(t);a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2})}function Sn(e){return'[src="'+Zt(e)+'"]'}function mu(e){return"script[async]"+e}function $0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Zt(l.href)+'"]');if(a)return t.instance=a,ct(a),a;var n=ae({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ct(a),gt(a,"style",n),Bi(a,l.precedence,e),t.instance=a;case"stylesheet":n=pn(l.href);var u=e.querySelector(du(n));if(u)return t.state.loading|=4,t.instance=u,ct(u),u;a=J0(l),(n=Pt.get(n))&&Nf(a,n),u=(e.ownerDocument||e).createElement("link"),ct(u);var i=u;return i._p=new Promise(function(s,r){i.onload=s,i.onerror=r}),gt(u,"link",a),t.state.loading|=4,Bi(u,l.precedence,e),t.instance=u;case"script":return u=Sn(l.src),(n=e.querySelector(mu(u)))?(t.instance=n,ct(n),n):(a=l,(n=Pt.get(u))&&(a=ae({},l),Tf(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),ct(n),gt(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Bi(a,l.precedence,e));return t.instance}function Bi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var s=a[i];if(s.dataset.precedence===t)u=s;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Nf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Tf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Yi=null;function F0(e,t,l){if(Yi===null){var a=new Map,n=Yi=new Map;n.set(l,a)}else n=Yi,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[On]||u[dt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(t)||"";i=e+i;var s=a.get(i);s?s.push(u):a.set(i,[u])}}return a}function _f(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function by(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function W0(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function I0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function P0(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function em(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=P0(t),e.suspenseyImages.push(t)),e=Ny.bind(e),t.decode().then(e,e))}function py(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=pn(a.href),u=t.querySelector(du(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=hu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,ct(u);return}u=t.ownerDocument||t,a=J0(a),(n=Pt.get(n))&&Nf(a,n),u=u.createElement("link"),ct(u);var i=u;i._p=new Promise(function(s,r){i.onload=s,i.onerror=r}),gt(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=hu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Gi=0;function Sy(e,t){return e.stylesheets&&e.count===0&&Xi(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Xi(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Gi===0&&(Gi=62500*Yh());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xi(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Gi?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function tm(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Xi(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function hu(){this.count--,tm(this)}function Ny(){this.imgCount--,tm(this)}var Qi=null;function Xi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Qi=new Map,t.forEach(Ty,e),Qi=null,hu.call(e))}function Ty(e,t){if(!(t.state.loading&4)){var l=Qi.get(e);if(l)var a=l.get(null);else{l=new Map,Qi.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}n=t.instance,i=n.getAttribute("data-precedence"),u=l.get(i)||a,u===a&&l.set(null,n),l.set(i,n),this.count++,a=hu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Nn={$$typeof:se,Provider:null,Consumer:null,_currentValue:jt,_currentValue2:jt,_threadCount:0};function _y(e,t,l,a,n,u,i,s,r){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=ac(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ac(0),this.hiddenUpdates=ac(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=r,this.transitionTypes=null,this.incompleteTransitions=new Map}function lm(e,t,l,a,n,u,i,s,r,g,N,z){return e=new _y(e,t,l,i,r,g,N,z,s),t=1,u===!0&&(t|=24),u=At(3,null,null,t),e.current=u,u.stateNode=e,t=Bc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},Xc(u),e}function am(e){return e?(e=ka,e):ka}function nm(e,t,l,a,n,u){n=am(n),a.context===null?a.context=n:a.pendingContext=n,a=Kl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=kl(e,a,t),l!==null&&(Ut(l,e,t),Zn(l,e,t))}function um(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function zf(e,t){um(e,t),(e=e.alternate)&&um(e,t)}function im(e){if(e.tag===13||e.tag===31){var t=ya(e,67108864);t!==null&&Ut(t,e,67108864),zf(e,67108864)}}function cm(e){if(e.tag===13||e.tag===31){var t=Lt();t=nc(t);var l=ya(e,t);l!==null&&Ut(l,e,t),zf(e,t)}}var Tn=!0;function zy(e,t,l,a){var n=K.T;K.T=null;var u=ue.p;try{ue.p=2,Ef(e,t,l,a)}finally{ue.p=u,K.T=n}}function Ey(e,t,l,a){var n=K.T;K.T=null;var u=ue.p;try{ue.p=8,Ef(e,t,l,a)}finally{ue.p=u,K.T=n}}function Ef(e,t,l,a){if(Tn){var n=jf(a);if(n===null)cf(e,t,a,Li,l),fm(e,a);else if(Oy(n,e,t,l,a))a.stopPropagation();else if(fm(e,a),t&4&&-1<jy.indexOf(e)){for(;n!==null;){var u=wa(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=ra(u.pendingLanes);if(i!==0){var s=u;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var r=1<<31-wt(i);s.entanglements[1]|=r,i&=~r}bl(u),(we&6)===0&&(Oi=Rt()+500,cu(0))}}break;case 31:case 13:s=ya(u,2),s!==null&&Ut(s,u,2),Mi(),zf(u,2)}if(u=jf(a),u===null&&cf(e,t,a,Li,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else cf(e,t,a,null,l)}}function jf(e){return e=oc(e),Of(e)}var Li=null;function Of(e){if(Li=null,e=oa(e),e!==null){var t=H(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=A(t),e!==null)return e;e=null}else if(l===31){if(e=W(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Li=e,null}function sm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ym()){case Kf:return 2;case kf:return 8;case Nu:case Gm:return 32;case Jf:return 268435456;default:return 32}default:return 32}}var Af=!1,ua=null,ia=null,ca=null,yu=new Map,vu=new Map,sa=[],jy="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 fm(e,t){switch(e){case"focusin":case"focusout":ua=null;break;case"dragenter":case"dragleave":ia=null;break;case"mouseover":case"mouseout":ca=null;break;case"pointerover":case"pointerout":yu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vu.delete(t.pointerId)}}function gu(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=wa(t),t!==null&&im(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Oy(e,t,l,a,n){switch(t){case"focusin":return ua=gu(ua,e,t,l,a,n),!0;case"dragenter":return ia=gu(ia,e,t,l,a,n),!0;case"mouseover":return ca=gu(ca,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return yu.set(u,gu(yu.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,vu.set(u,gu(vu.get(u)||null,e,t,l,a,n)),!0}return!1}function rm(e){var t=oa(e.target);if(t!==null){var l=H(t);if(l!==null){if(t=l.tag,t===13){if(t=A(l),t!==null){e.blockedOn=t,tr(e.priority,function(){cm(l)});return}}else if(t===31){if(t=W(l),t!==null){e.blockedOn=t,tr(e.priority,function(){cm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=jf(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);rc=a,l.target.dispatchEvent(a),rc=null}else return t=wa(l),t!==null&&im(t),e.blockedOn=l,!1;t.shift()}return!0}function om(e,t,l){Vi(e)&&l.delete(t)}function Ay(){Af=!1,ua!==null&&Vi(ua)&&(ua=null),ia!==null&&Vi(ia)&&(ia=null),ca!==null&&Vi(ca)&&(ca=null),yu.forEach(om),vu.forEach(om)}function Zi(e,t){e.blockedOn===t&&(e.blockedOn=null,Af||(Af=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,Ay)))}var Ki=null;function dm(e){Ki!==e&&(Ki=e,f.unstable_scheduleCallback(f.unstable_NormalPriority,function(){Ki===e&&(Ki=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Of(a||l)===null)continue;break}var u=wa(l);u!==null&&(e.splice(t,3),t-=3,fs(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function _n(e){function t(r){return Zi(r,e)}ua!==null&&Zi(ua,e),ia!==null&&Zi(ia,e),ca!==null&&Zi(ca,e),yu.forEach(t),vu.forEach(t);for(var l=0;l<sa.length;l++){var a=sa[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<sa.length&&(l=sa[0],l.blockedOn===null);)rm(l),l.blockedOn===null&&sa.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],i=n[Ot]||null;if(typeof u=="function")i||dm(l);else if(i){var s=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[Ot]||null)s=i.formAction;else if(Of(n)!==null)continue}else s=i.action;typeof s=="function"?l[a+1]=s:(l.splice(a,3),a-=3),dm(l)}}}function mm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Cf(e){this._internalRoot=e}ki.prototype.render=Cf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=Lt();nm(l,a,e,t,null,null)},ki.prototype.unmount=Cf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nm(e.current,2,null,e,null,null),Mi(),t[Ha]=null}};function ki(e){this._internalRoot=e}ki.prototype.unstable_scheduleHydration=function(e){if(e){var t=er();e={blockedOn:null,target:e,priority:t};for(var l=0;l<sa.length&&t!==0&&t<sa[l].priority;l++);sa.splice(l,0,e),l===0&&rm(e)}};var hm=x.version;if(hm!=="19.3.1")throw Error(o(527,hm,"19.3.1"));ue.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=Z(t),e=e!==null?q(e):null,e=e===null?null:e.stateNode,e};var Cy={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:K,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ji=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ji.isDisabled&&Ji.supportsFiber)try{zn=Ji.inject(Cy),Ht=Ji}catch{}}return bu.createRoot=function(e,t){if(!j(e))throw Error(o(299));var l=!1,a="",n=ad,u=nd,i=ud;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=lm(e,1,!1,null,null,l,a,null,n,u,i,mm),e[Ha]=t.current,uf(e),new Cf(t)},bu.hydrateRoot=function(e,t,l){if(!j(e))throw Error(o(299));var a=!1,n="",u=ad,i=nd,s=ud,r=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(s=l.onRecoverableError),l.formState!==void 0&&(r=l.formState)),t=lm(e,1,!0,t,l??null,a,n,r,u,i,s,mm),t.context=am(null),l=t.current,a=Lt(),a=nc(a),n=Kl(a),n.callback=null,kl(l,n,a),l=a,t.current.lanes=l,jn(t,l),bl(t),e[Ha]=t.current,uf(e),new ki(t)},bu.version="19.3.1",bu}var _m;function Xy(){if(_m)return Uf.exports;_m=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(x){console.error(x)}}return f(),Uf.exports=Qy(),Uf.exports}var Ly=Xy();/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vy=f=>f.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),jm=(...f)=>f.filter((x,T,o)=>!!x&&x.trim()!==""&&o.indexOf(x)===T).join(" ").trim();/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Zy={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ky=D.forwardRef(({color:f="currentColor",size:x=24,strokeWidth:T=2,absoluteStrokeWidth:o,className:j="",children:H,iconNode:A,...W},k)=>D.createElement("svg",{ref:k,...Zy,width:x,height:x,stroke:f,strokeWidth:o?Number(T)*24/Number(x):T,className:jm("lucide",j),...W},[...A.map(([Z,q])=>D.createElement(Z,q)),...Array.isArray(H)?H:[H]]));/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pe=(f,x)=>{const T=D.forwardRef(({className:o,...j},H)=>D.createElement(Ky,{ref:H,iconNode:x,className:jm(`lucide-${Vy(f)}`,o),...j}));return T.displayName=`${f}`,T};/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ky=pe("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jy=pe("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $y=pe("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xf=pe("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fy=pe("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Wy=pe("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Iy=pe("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Py=pe("CircleStop",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ev=pe("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tv=pe("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lv=pe("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const av=pe("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nv=pe("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uv=pe("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Lf=pe("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iv=pe("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Bf=pe("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cv=pe("ListVideo",[["path",{d:"M12 12H3",key:"18klou"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M12 18H3",key:"11ftsu"}],["path",{d:"m16 12 5 3-5 3v-6Z",key:"zpskkp"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sv=pe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fv=pe("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rv=pe("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Om=pe("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Am=pe("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fi=pe("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ov=pe("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dv=pe("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mv=pe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Cm=pe("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hv=pe("ServerCog",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5",key:"tn8das"}],["path",{d:"M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5",key:"1g2pve"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"m15.7 13.4-.9-.3",key:"1jwmzr"}],["path",{d:"m9.2 10.9-.9-.3",key:"qapnim"}],["path",{d:"m10.6 15.7.3-.9",key:"quwk0k"}],["path",{d:"m13.6 15.7-.4-1",key:"cb9xp7"}],["path",{d:"m10.8 9.3-.4-1",key:"1uaiz5"}],["path",{d:"m8.3 13.6 1-.4",key:"s6srou"}],["path",{d:"m14.7 10.8 1-.4",key:"4d31cq"}],["path",{d:"m13.4 8.3-.3.9",key:"1bm987"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yv=pe("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vv=pe("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gv=pe("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xv=pe("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bv=pe("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yf=pe("UserPen",[["path",{d:"M11.5 15H7a4 4 0 0 0-4 4v2",key:"15lzij"}],["path",{d:"M21.378 16.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1817ys"}],["circle",{cx:"10",cy:"7",r:"4",key:"e45bow"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Mm=pe("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pv=pe("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sv=pe("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
* @license lucide-react v0.468.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Nv=pe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Dm(f){var x,T,o="";if(typeof f=="string"||typeof f=="number")o+=f;else if(typeof f=="object")if(Array.isArray(f)){var j=f.length;for(x=0;x<j;x++)f[x]&&(T=Dm(f[x]))&&(o&&(o+=" "),o+=T)}else for(T in f)f[T]&&(o&&(o+=" "),o+=T);return o}function Tv(){for(var f,x,T=0,o="",j=arguments.length;T<j;T++)(f=arguments[T])&&(x=Dm(f))&&(o&&(o+=" "),o+=x);return o}const ot=(...f)=>Tv(f),Ie="w-full rounded-lg border border-line bg-white px-3 py-2 text-[13px] text-slate-900 placeholder:text-slate-400 transition focus:border-brand-500 focus:outline-none focus:ring-3 focus:ring-brand-500/15 disabled:cursor-not-allowed disabled:bg-slate-50";function zm(f){if(!f)return"—";const x=Math.floor((Date.now()-f)/6e4);return x<1?"刚刚":x<60?`${x} 分钟前`:`${Math.floor(x/60)} 小时前`}function Gf(f=[]){return{total:f.length,studyable:f.filter(x=>x.in_study!==!1).length}}function pu(f){return String(f||"").split("#").filter(Boolean)}const _v={"01":"单选","02":"多选","03":"判断","04":"问答"};function el(f){return f instanceof Error?f.message:String(f)}const zv={neutral:"bg-slate-100 text-slate-600 ring-slate-200",brand:"bg-brand-50 text-brand-700 ring-brand-100",success:"bg-emerald-50 text-emerald-700 ring-emerald-100",warning:"bg-amber-50 text-amber-700 ring-amber-100",danger:"bg-red-50 text-red-700 ring-red-100",running:"bg-sky-50 text-sky-700 ring-sky-100"};function Ua({tone:f="neutral",children:x,dot:T=!1,className:o}){return c.jsxs("span",{className:ot("inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-[11px] font-medium ring-1 ring-inset",zv[f],o),children:[T&&c.jsx("span",{className:"size-1.5 rounded-full bg-current opacity-70"}),x]})}const Ev={primary:"border-brand-500 bg-brand-500 text-white shadow-sm shadow-brand-500/25 hover:border-brand-600 hover:bg-brand-600",secondary:"border-line bg-white text-slate-700 hover:border-slate-300 hover:bg-slate-50",ghost:"border-transparent bg-transparent text-slate-600 hover:bg-slate-100",danger:"border-transparent bg-transparent text-red-600 hover:bg-red-50","danger-solid":"border-red-500 bg-red-500 text-white shadow-sm shadow-red-500/25 hover:border-red-600 hover:bg-red-600",soft:"border-brand-100 bg-brand-50 text-brand-700 hover:border-brand-200 hover:bg-brand-100"},jv={sm:"h-8 gap-1.5 rounded-lg px-2.5 text-xs",md:"h-9 gap-1.5 rounded-lg px-3.5 text-[13px]",icon:"h-9 w-9 rounded-lg"};function Re({variant:f="secondary",size:x="md",loading:T=!1,icon:o,className:j,children:H,disabled:A,type:W="button",...k}){return c.jsxs("button",{type:W,disabled:A||T,className:ot("inline-flex shrink-0 items-center justify-center border font-medium transition","focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-brand-500/20","disabled:cursor-not-allowed disabled:opacity-50",Ev[f],jv[x],j),...k,children:[T?c.jsx(sv,{className:"size-3.5 animate-spin"}):o,H]})}const Ov={error:"text-red-600",fail:"text-red-600",failed:"text-red-600",warn:"text-amber-600",warning:"text-amber-600",success:"text-emerald-600",info:"text-slate-600"},Av=/^(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}) \[([a-zA-Z]+)\] ([\s\S]*)$/;function Um({lines:f,empty:x}){return f.length?c.jsx(c.Fragment,{children:f.map((T,o)=>{const j=Av.exec(T);if(!j)return c.jsx("span",{className:"block text-slate-600",children:T},o);const H=Ov[j[2].toLowerCase()]||"text-slate-600";return c.jsxs("span",{className:"block",children:[c.jsx("span",{className:"text-slate-400",children:j[1]})," ",c.jsxs("span",{className:ot("font-medium",H),children:["[",j[2],"]"]})," ",c.jsx("span",{className:H,children:j[3]})]},o)})}):c.jsx("span",{className:"text-slate-400",children:x})}function Cv(f,x){var H,A;const T=x==="login"||f.status==="logging"||((H=f.run)==null?void 0:H.status)==="logging"?"logging":((A=f.run)==null?void 0:A.status)||f.status||"idle",j={discovering:{label:"发现课程中",tone:"running",pulse:!0},studying:{label:"学习中",tone:"running",pulse:!0},finished:{label:"已完成",tone:"success"},stopped:{label:"已停止",tone:"warning"},error:{label:"出错",tone:"danger"},interrupted:{label:"已中断",tone:"warning"},logging:{label:"登录中",tone:"running",pulse:!0},logged_in:{label:"已登录",tone:"success"},login_failed:{label:"登录失败",tone:"danger"},idle:{label:"未登录",tone:"neutral"}}[T]||{label:T,tone:"neutral"};return{label:j.label,tone:j.tone,pulse:!!j.pulse}}function Mv({account:f,course:x,disabled:T,onToggle:o}){var H;const j=(H=f.selected)==null?void 0:H.includes(x.plan_id);return c.jsxs("label",{className:ot("flex cursor-pointer items-start gap-2.5 rounded-lg border border-transparent px-2 py-1.5 transition","hover:border-line hover:bg-slate-50",T&&"pointer-events-none opacity-60"),children:[c.jsx("input",{type:"checkbox",className:"mt-0.5 size-3.5 shrink-0 accent-brand-500",checked:!!j,disabled:T,onChange:A=>o(x.plan_id,A.target.checked)}),c.jsxs("span",{className:"min-w-0 flex-1",children:[c.jsx("span",{className:"block truncate text-[12.5px] font-medium text-slate-700",children:x.name||x.plan_id}),c.jsx("span",{className:"mt-0.5 block truncate text-[11px] text-slate-400",children:[x.section,x.status_label,x.info].filter(Boolean).join(" · ")||"—"})]}),c.jsx("span",{className:"shrink-0 pt-0.5 text-[11px] tabular-nums text-slate-500",children:x.progress||""})]})}function Dv({account:f,platformLabel:x,capabilities:T,pending:o,openLog:j,logLines:H,onToggleLog:A,onLogin:W,onRefresh:k,onStudy:Z,onStop:q,onCapture:S,onStopCapture:C,onQuiz:F,onEdit:xe,onDelete:L,onToggleCourse:ee,onSelectAll:Ue,onClearSelection:le,onToggleOption:I}){var it,ne,oe,d,E,B,w,ce,me,Ee,K,ue,jt,tl,St,Nt;const[Le,Se]=D.useState(!1),$=D.useRef(null),ae=D.useRef(null),ve=D.useRef(!0);D.useEffect(()=>{if(!Le)return;const h=M=>{var O;(O=$.current)!=null&&O.contains(M.target)||Se(!1)};return document.addEventListener("pointerdown",h),()=>document.removeEventListener("pointerdown",h)},[Le]),D.useEffect(()=>{const h=ae.current;h&&ve.current&&(h.scrollTop=h.scrollHeight)},[H,j]);const Ce=Cv(f,o),Y=!!o||f.status==="logging"||((it=f.run)==null?void 0:it.status)==="logging",Me=f.courses||[],Ae=Me.filter(h=>h.in_study!==!1),qe=Me.filter(h=>h.in_study===!1),U=Gf(Me),se=((ne=f.run)==null?void 0:ne.done)||0,R=((oe=f.run)==null?void 0:oe.total)||0,Q=R?Math.round(se/R*100):0,te=["discovering","studying"].includes(((d=f.run)==null?void 0:d.status)||""),_e=((E=f.selected)==null?void 0:E.length)||0,ze=_e>0&&(((B=f.cookies)==null?void 0:B.length)||0)>0;return c.jsxs("article",{"data-id":f.id,className:"card-shadow flex min-w-0 flex-col rounded-2xl border border-line bg-white transition-colors hover:border-slate-300/80",children:[c.jsxs("header",{className:"flex items-start gap-3 px-4 pt-4",children:[c.jsxs("div",{className:"relative mt-0.5 grid size-10 shrink-0 place-items-center rounded-xl bg-gradient-to-br from-brand-50 to-sky-50 text-[13px] font-semibold text-brand-700 ring-1 ring-brand-100",children:[(f.user||f.username||"?").slice(0,1).toUpperCase(),c.jsx("span",{className:ot("absolute -bottom-0.5 -right-0.5 size-3 rounded-full border-2 border-white",Ce.tone==="success"?"bg-emerald-500":Ce.tone==="danger"?"bg-red-500":Ce.tone==="running"?"bg-sky-500":Ce.tone==="warning"?"bg-amber-500":"bg-slate-300",Ce.pulse&&"animate-pulse")})]}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("h2",{className:"truncate text-[13.5px] font-semibold text-slate-900",children:f.user||f.username}),c.jsx(Ua,{tone:Ce.tone,dot:!0,children:Ce.label})]}),c.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-[11px] text-slate-400",children:[c.jsx("span",{className:"truncate",children:f.username}),f.note&&c.jsxs("span",{className:"truncate",children:["· ",f.note]}),c.jsxs("span",{children:["· ",zm(f.updated||f.loginAt)]})]})]}),c.jsx(Ua,{tone:"brand",className:"mt-0.5 shrink-0",children:x})]}),c.jsxs("div",{className:"px-4 pt-3",children:[c.jsxs("div",{className:"flex items-center justify-between gap-2",children:[c.jsxs("div",{className:"text-[11.5px] text-slate-500",children:["共 ",c.jsx("b",{className:"font-semibold text-slate-700",children:U.total})," 门 · 可学"," ",c.jsx("b",{className:"font-semibold text-slate-700",children:U.studyable}),qe.length>0&&c.jsxs("span",{className:"text-slate-400",children:[" · 已完成 ",qe.length]})]}),Ae.length>0&&c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsx("button",{type:"button",disabled:Y,className:"rounded px-1.5 py-0.5 text-[11px] text-brand-600 transition hover:bg-brand-50 disabled:opacity-40",onClick:Ue,children:"全选"}),c.jsx("button",{type:"button",disabled:Y||_e===0,className:"rounded px-1.5 py-0.5 text-[11px] text-slate-500 transition hover:bg-slate-100 disabled:opacity-40",onClick:le,children:"清空"})]})]}),c.jsx("div",{className:"scrollbar-thin mt-1.5 max-h-[196px] min-h-[70px] overflow-y-auto pr-0.5",children:Me.length===0?c.jsx("div",{className:"grid min-h-[70px] place-items-center rounded-lg border border-dashed border-line text-[12px] text-slate-400",children:"还没有课程,先登录或刷新课程"}):c.jsxs(c.Fragment,{children:[Ae.map(h=>c.jsx(Mv,{account:f,course:h,disabled:Y,onToggle:ee},h.plan_id)),qe.length>0&&c.jsx("div",{className:"mt-1 border-t border-dashed border-line pt-1",children:qe.map(h=>c.jsxs("div",{className:"flex items-start gap-2.5 rounded-lg px-2 py-1.5 text-slate-400",children:[c.jsx("span",{className:"mt-0.5 grid size-3.5 shrink-0 place-items-center rounded-full bg-emerald-50 text-[9px] text-emerald-600",children:"✓"}),c.jsxs("span",{className:"min-w-0 flex-1",children:[c.jsx("span",{className:"block truncate text-[12px]",children:h.name||h.plan_id}),c.jsx("span",{className:"mt-0.5 block truncate text-[10.5px] opacity-80",children:[h.section,h.info].filter(Boolean).join(" · ")})]}),c.jsx("span",{className:"shrink-0 text-[10.5px]",children:h.status_label||"已结束"})]},h.plan_id))})]})})]}),c.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-x-4 gap-y-1.5 border-t border-line/70 px-4 py-2.5",children:[c.jsxs("label",{className:"flex cursor-pointer items-center gap-1.5 text-[11.5px] text-slate-600",children:[c.jsx("input",{type:"checkbox",className:"size-3.5 accent-brand-500",checked:f.optQuiz===!0,disabled:Y,onChange:h=>I("quiz",h.target.checked)}),"自动交测验"]}),c.jsxs("label",{className:"flex cursor-pointer items-center gap-1.5 text-[11.5px] text-slate-600",children:[c.jsx("input",{type:"checkbox",className:"size-3.5 accent-brand-500",checked:f.optFeedback!==!1,disabled:Y,onChange:h=>I("feedback",h.target.checked)}),"自动交反馈表"]}),c.jsx("div",{className:"flex-1"}),c.jsx("span",{className:"text-[11px] tabular-nums text-slate-400",children:_e>0?`已选 ${_e} 门`:"未选择课程"})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 border-t border-line/70 px-4 py-2.5",children:[c.jsx(Re,{size:"sm",variant:"soft",loading:o==="login"||f.status==="logging"||((w=f.run)==null?void 0:w.status)==="logging",disabled:Y,icon:c.jsx(fv,{className:"size-3.5"}),onClick:W,children:(ce=f.cookies)!=null&&ce.length?"重新登录":"登录"}),c.jsx(Re,{size:"sm",loading:o==="refresh",disabled:Y||!((me=f.cookies)!=null&&me.length),icon:c.jsx(Fi,{className:"size-3.5"}),onClick:k,children:"刷新课程"}),c.jsx(Re,{size:"sm",variant:"primary",loading:o==="study",disabled:Y||!ze,icon:c.jsx(rv,{className:"size-3.5"}),onClick:Z,children:"开始学习"}),c.jsx("div",{className:"flex-1"}),te&&c.jsx(Re,{size:"icon",variant:"danger",loading:o==="stop",onClick:q,title:"停止学习","aria-label":"停止学习",children:c.jsx(Py,{className:"size-4"})}),c.jsxs("div",{className:"relative",ref:$,children:[c.jsx(Re,{size:"icon",variant:"ghost",onClick:()=>Se(h=>!h),"aria-label":"更多操作",title:"更多操作",children:c.jsx(lv,{className:"size-4"})}),Le&&c.jsx("div",{className:"absolute bottom-10 right-0 z-20 w-40 overflow-hidden rounded-xl border border-line bg-white py-1 shadow-xl shadow-slate-900/10",children:[{label:"修改账号信息",icon:Yf,action:xe},{label:"课程日志",icon:cv,action:A},...T.includes("quiz")?[{label:"打开测验",icon:ev,action:F}]:[],...T.includes("capture")?[(Ee=f.run)!=null&&Ee.capturing?{label:"停止抓包",icon:gv,action:C}:{label:"抓包 10 分钟",icon:pv,action:S}]:[],{label:"删除账号",icon:xv,action:L,danger:!0}].map(h=>c.jsxs("button",{type:"button",className:ot("flex w-full items-center gap-2 px-3 py-2 text-left text-[12px] transition hover:bg-slate-50",h.danger?"text-red-600":"text-slate-700"),onClick:()=>{Se(!1),h.action()},children:[c.jsx(h.icon,{className:"size-3.5 opacity-70"}),h.label]},h.label))})]})]}),(R>0||((K=f.run)==null?void 0:K.error))&&c.jsxs("div",{className:"border-t border-line/70 px-4 py-3",children:[c.jsxs("div",{className:"mb-1.5 flex items-center justify-between gap-2 text-[11px] text-slate-500",children:[c.jsx("span",{className:"truncate",children:((ue=f.run)==null?void 0:ue.course)||((jt=f.run)==null?void 0:jt.status)||"学习进度"}),c.jsxs("span",{className:"shrink-0 tabular-nums",children:[se," / ",R,R>0&&c.jsxs("span",{className:"ml-1 text-slate-400",children:["(",Q,"%)"]})]})]}),c.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-slate-100",children:c.jsx("div",{className:ot("h-full rounded-full transition-all duration-500",((tl=f.run)==null?void 0:tl.status)==="error"?"bg-red-500":((St=f.run)==null?void 0:St.status)==="finished"?"bg-emerald-500":"bg-gradient-to-r from-brand-500 to-sky-400"),style:{width:`${Math.min(100,Q)}%`}})}),((Nt=f.run)==null?void 0:Nt.error)&&c.jsx("p",{className:"mt-2 rounded-lg bg-red-50 px-2.5 py-1.5 text-[11px] leading-relaxed text-red-700",children:f.run.error})]}),f.lastError&&c.jsxs("div",{className:"border-t border-line/70 px-4 py-2.5",children:[c.jsxs("p",{className:"rounded-lg bg-red-50/80 px-2.5 py-1.5 text-[11px] leading-relaxed text-red-700",children:[f.lastError,f.lastErrorAt?c.jsxs("span",{className:"ml-1 text-red-400",children:["· ",zm(f.lastErrorAt)]}):null]}),c.jsxs("button",{type:"button",onClick:xe,className:"mt-1.5 inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 text-[11px] font-medium text-red-600 transition hover:bg-red-50",children:[c.jsx(Yf,{className:"size-3"}),"修改账号信息"]})]}),c.jsxs("div",{className:ot("border-t border-line/70",j?"block":"hidden"),children:[c.jsxs("div",{className:"flex items-center gap-2 px-4 pt-2.5 text-[11px] text-slate-400",children:[c.jsx("span",{className:"font-medium text-slate-500",children:"课程日志"}),c.jsxs("span",{className:"tabular-nums",children:["(",H.length,")"]}),c.jsx("div",{className:"flex-1"}),c.jsx("button",{type:"button",onClick:A,className:"rounded px-1.5 py-0.5 text-[11px] text-slate-500 transition hover:bg-slate-100",children:"收起"})]}),c.jsx("pre",{ref:ae,onScroll:h=>{const M=h.currentTarget;ve.current=M.scrollHeight-M.scrollTop-M.clientHeight<24},className:"scrollbar-thin mx-4 mb-3 mt-2 max-h-56 overflow-auto whitespace-pre-wrap break-words rounded-lg border border-line bg-slate-50 p-3 font-mono text-[11px] leading-relaxed text-slate-600",children:c.jsx(Um,{lines:H,empty:"暂无日志 · 开始学习后这里会实时显示"})})]}),c.jsxs("button",{type:"button",onClick:A,className:"flex items-center justify-center gap-1 border-t border-line/70 py-1.5 text-[10.5px] text-slate-400 transition hover:bg-slate-50 hover:text-slate-600","aria-expanded":j,children:[c.jsx(Xf,{className:ot("size-3 transition-transform",j&&"rotate-180")}),j?"收起课程日志":"展开课程日志"]})]})}const Uv={sm:"max-w-md",md:"max-w-xl",lg:"max-w-3xl",xl:"max-w-6xl",settings:"max-w-4xl"};function Ra({open:f,onClose:x,title:T,subtitle:o,size:j="md",footer:H,children:A,bodyClassName:W}){return D.useEffect(()=>{if(!f)return;const k=q=>{q.key==="Escape"&&x()};window.addEventListener("keydown",k);const Z=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",k),document.body.style.overflow=Z}},[f,x]),f?c.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[c.jsx("div",{className:"absolute inset-0 bg-slate-900/40 backdrop-blur-[2px]",onClick:x}),c.jsxs("div",{role:"dialog","aria-modal":"true",className:ot("relative flex max-h-[calc(100vh-2rem)] w-full flex-col overflow-hidden rounded-2xl","border border-line bg-white shadow-2xl shadow-slate-900/20",Uv[j]),children:[c.jsxs("header",{className:"flex items-start gap-3 border-b border-line px-5 py-4",children:[c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("h2",{className:"truncate text-[15px] font-semibold text-slate-900",children:T}),o&&c.jsx("p",{className:"mt-0.5 truncate text-xs text-slate-500",children:o})]}),c.jsx("button",{type:"button",onClick:x,className:"-mr-1 rounded-lg p-1.5 text-slate-400 transition hover:bg-slate-100 hover:text-slate-600","aria-label":"关闭",children:c.jsx(Nv,{className:"size-4"})})]}),c.jsx("div",{className:ot("min-h-0 flex-1 overflow-auto",W??"px-5 py-4"),children:A}),H&&c.jsx("footer",{className:"flex flex-wrap items-center justify-end gap-2 border-t border-line bg-slate-50/70 px-5 py-3",children:H})]})]}):null}function Rv({open:f,account:x,platforms:T,onClose:o,onSubmit:j}){const[H,A]=D.useState(""),[W,k]=D.useState(""),[Z,q]=D.useState(""),[S,C]=D.useState(""),[F,xe]=D.useState(!1),[L,ee]=D.useState(!1),[Ue,le]=D.useState(""),I=D.useRef(x);I.current=x;const Le=D.useRef(T);Le.current=T,D.useEffect(()=>{var ae;if(!f)return;const $=I.current;A(($==null?void 0:$.username)||""),k(""),q(($==null?void 0:$.note)||""),C(($==null?void 0:$.platform)||((ae=Le.current[0])==null?void 0:ae.id)||""),xe(!1),ee(!1),le("")},[f,x==null?void 0:x.id]);async function Se(){if(!H.trim()){le("登录账号不能为空");return}if(!S){le("请选择学习平台");return}ee(!0),le("");try{await j({username:H.trim(),password:W,note:Z.trim(),platform:S}),o()}catch($){le($ instanceof Error?$.message:String($))}finally{ee(!1)}}return c.jsx(Ra,{open:f,onClose:o,title:c.jsxs("span",{className:"flex items-center gap-2",children:[c.jsx(Yf,{className:"size-4 text-brand-600"}),"修改账号信息"]}),subtitle:x!=null&&x.user?`当前会话:${x.user}`:"这个账号还没有登录成功,改完会自动重试登录",footer:c.jsxs(c.Fragment,{children:[c.jsx(Re,{onClick:o,disabled:L,children:"取消"}),c.jsx(Re,{variant:"primary",loading:L,onClick:Se,children:"保存并重新登录"})]}),children:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[12px] font-medium text-slate-600",children:"学习平台"}),c.jsxs("div",{className:"relative",children:[c.jsx(Lf,{className:"pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-slate-400"}),c.jsx("select",{className:`${Ie} appearance-none pl-8 pr-8`,value:S,onChange:$=>C($.target.value),children:T.map($=>c.jsx("option",{value:$.id,children:$.label},$.id))}),c.jsx(Xf,{className:"pointer-events-none absolute right-2.5 top-1/2 size-3.5 -translate-y-1/2 text-slate-400"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[12px] font-medium text-slate-600",children:"登录账号"}),c.jsx("input",{className:Ie,value:H,autoFocus:!0,placeholder:"手机号 / 身份证号 / 教师账号",onChange:$=>A($.target.value),onKeyDown:$=>$.key==="Enter"&&Se()})]}),c.jsxs("div",{children:[c.jsxs("label",{className:"mb-1.5 flex items-center gap-1.5 text-[12px] font-medium text-slate-600",children:[c.jsx(Bf,{className:"size-3.5 text-slate-400"}),"密码",c.jsx("span",{className:"font-normal text-slate-400",children:"(留空表示不修改)"})]}),c.jsxs("div",{className:"relative",children:[c.jsx("input",{className:`${Ie} pr-9`,type:F?"text":"password",value:W,autoComplete:"new-password",placeholder:x!=null&&x.hasPassword?"已保存密码,需要更换时再填":"还没有保存密码,请填写",onChange:$=>k($.target.value),onKeyDown:$=>$.key==="Enter"&&Se()}),c.jsx("button",{type:"button",className:"absolute right-1.5 top-1/2 -translate-y-1/2 rounded-md p-1.5 text-slate-400 transition hover:bg-slate-100 hover:text-slate-600",onClick:()=>xe($=>!$),"aria-label":F?"隐藏密码":"显示密码",children:F?c.jsx(av,{className:"size-3.5"}):c.jsx(nv,{className:"size-3.5"})})]})]}),c.jsxs("div",{children:[c.jsxs("label",{className:"mb-1.5 block text-[12px] font-medium text-slate-600",children:["备注 ",c.jsx("span",{className:"font-normal text-slate-400",children:"(可选)"})]}),c.jsx("input",{className:Ie,value:Z,placeholder:"例如:张三 · 语文",onChange:$=>q($.target.value)})]}),c.jsx("p",{className:"rounded-lg border border-line bg-slate-50 px-3 py-2 text-[11.5px] leading-relaxed text-slate-500",children:"保存后会用新的账号密码重新登录一次:登录成功会刷新会话和课程,失败则保留当前会话并提示原因。 改「学习平台」只影响之后用哪个插件登录和读取课程。"}),Ue&&c.jsx("p",{className:"rounded-lg bg-red-50 px-3 py-2 text-[12px] text-red-700",children:Ue})]})})}function Hv({open:f,platforms:x,onClose:T,onSubmit:o}){var Ue;const[j,H]=D.useState(""),[A,W]=D.useState(""),[k,Z]=D.useState(""),[q,S]=D.useState(((Ue=x[0])==null?void 0:Ue.id)||""),[C,F]=D.useState(!1),[xe,L]=D.useState("");D.useEffect(()=>{var le;f&&(H(""),W(""),Z(""),S(((le=x[0])==null?void 0:le.id)||""),L(""),F(!1))},[f,x]);async function ee(){if(!q){L("没有可用的学习平台,请先在「插件」里启用一个平台插件");return}if(!j.trim()||!A){L("请填写账号和密码");return}F(!0),L("");try{await o({username:j.trim(),password:A,note:k.trim(),platform:q}),T()}catch(le){L(le instanceof Error?le.message:String(le))}finally{F(!1)}}return c.jsx(Ra,{open:f,onClose:T,title:"添加账号",subtitle:"账号密码保存在本机 SQLite,用于会话失效时自动重新登录",footer:c.jsxs(c.Fragment,{children:[c.jsx(Re,{onClick:T,disabled:C,children:"取消"}),c.jsx(Re,{variant:"primary",loading:C,onClick:ee,children:"保存并登录"})]}),children:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[12px] font-medium text-slate-600",children:"学习平台"}),c.jsxs("div",{className:"relative",children:[c.jsx(Lf,{className:"pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-slate-400"}),c.jsx("select",{className:`${Ie} appearance-none pl-8 pr-8`,value:q,onChange:le=>S(le.target.value),children:x.map(le=>c.jsx("option",{value:le.id,children:le.label},le.id))}),c.jsx(Xf,{className:"pointer-events-none absolute right-2.5 top-1/2 size-3.5 -translate-y-1/2 text-slate-400"})]}),c.jsx("p",{className:"mt-1.5 text-[11px] leading-relaxed text-slate-400",children:"账号的登录、刷新课程、学习都按所选平台的插件实现;新增或启用平台插件后会出现在这里。"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[12px] font-medium text-slate-600",children:"登录账号"}),c.jsx("input",{className:Ie,value:j,autoFocus:!0,placeholder:"手机号 / 身份证号 / 教师账号",onChange:le=>H(le.target.value),onKeyDown:le=>le.key==="Enter"&&ee()})]}),c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[12px] font-medium text-slate-600",children:"密码"}),c.jsx("input",{className:Ie,type:"password",value:A,autoComplete:"off",placeholder:"平台登录密码",onChange:le=>W(le.target.value),onKeyDown:le=>le.key==="Enter"&&ee()})]}),c.jsxs("div",{children:[c.jsxs("label",{className:"mb-1.5 block text-[12px] font-medium text-slate-600",children:["备注 ",c.jsx("span",{className:"font-normal text-slate-400",children:"(可选)"})]}),c.jsx("input",{className:Ie,value:k,placeholder:"例如:张三 · 语文",onChange:le=>Z(le.target.value)})]}),c.jsx("p",{className:"rounded-lg border border-line bg-slate-50 px-3 py-2 text-[11.5px] leading-relaxed text-slate-500",children:"保存后会自动尝试登录一次。若密码错误或需要验证码,卡片上会保留「登录」按钮,可手动重试。"}),xe&&c.jsx("p",{className:"rounded-lg bg-red-50 px-3 py-2 text-[12px] text-red-700",children:xe})]})})}class Hl extends Error{constructor(T,o={}){super(T);$i(this,"offline",!1);$i(this,"status");$i(this,"code");this.name="ApiError",Object.assign(this,o)}}async function Xe(f,x={}){let T;try{T=await fetch(f,{...x,headers:{"Content-Type":"application/json",...x.headers||{}}})}catch{throw new Hl("后端未连接",{offline:!0})}if(T.status===401)throw new Hl("需要访问令牌:请用 /?token=<AUTH_TOKEN> 打开一次",{status:401});if(!T.ok)throw new Hl(`HTTP ${T.status}`,{status:T.status});return await T.json()}async function wv(f,x,T){let o;try{o=await fetch(f,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(x)})}catch{throw new Hl("后端未连接",{offline:!0})}if(o.status===401)throw new Hl("需要访问令牌:请用 /?token=<AUTH_TOKEN> 打开一次");if(!o.ok)throw new Hl(`HTTP ${o.status}`);if(!o.body)throw new Hl("浏览器不支持流式响应");const j=o.body.getReader(),H=new TextDecoder;let A="";for(;;){const{value:W,done:k}=await j.read();if(k)break;A+=H.decode(W,{stream:!0});const Z=A.split(`
`);A=Z.pop()||"";for(const q of Z){const S=q.trim();if(S.startsWith("data:"))try{T(JSON.parse(S.slice(5).trim()))}catch{}}}}const qv={login:"登录",session:"会话",renew:"续期",profile:"账号信息",courses:"课程列表",discover:"课程详情",study:"学习",quiz:"测验",capture:"抓包",push:"推送"};function Bv({open:f,onClose:x,notify:T,onChanged:o}){const[j,H]=D.useState([]),[A,W]=D.useState(""),[k,Z]=D.useState(!1),q=D.useCallback(async()=>{Z(!0);try{const C=await Xe("/api/plugins");H(C.plugins||[])}catch(C){T({message:el(C),tone:"error"})}finally{Z(!1)}},[T]);D.useEffect(()=>{f&&q()},[f,q]);async function S(C,F,xe){W(C);try{const L=await Xe(F,{method:"POST"});L.plugins&&H(L.plugins),L.ok===!1?T({message:L.error||"插件操作失败",tone:"error"}):(T({message:xe,tone:"success"}),o())}catch(L){T({message:el(L),tone:"error"})}finally{W("")}}return c.jsx(Ra,{open:f,onClose:x,title:"插件管理",size:"lg",footer:c.jsxs(c.Fragment,{children:[c.jsxs("span",{className:"mr-auto text-[11px] text-slate-400",children:["共 ",j.length," 个 · 停用后平台会从「添加账号」下拉里消失,推送渠道也会停止推送"]}),c.jsx(Re,{variant:"soft",size:"sm",icon:c.jsx(Fi,{className:"size-3.5"}),loading:A==="*",onClick:()=>void S("*","/api/plugins/reload","全部插件已重载"),children:"全部重载"})]}),children:c.jsxs("div",{className:"space-y-2.5",children:[j.map(C=>{var F;return c.jsxs("div",{className:"rounded-xl border border-line bg-slate-50/70 px-3.5 py-3",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsx(Am,{className:"size-4 shrink-0 text-brand-600"}),c.jsx("span",{className:"text-[13px] font-semibold text-slate-900",children:C.title||C.name}),c.jsx("span",{className:"text-[11px] text-slate-400",children:C.name}),c.jsx(Ua,{tone:C.enabled?"success":"neutral",dot:!0,children:C.enabled?"已启用":"已停用"}),C.enabled&&c.jsx(Ua,{tone:C.loaded?"brand":"warning",children:C.loaded?"已加载":"未加载"})]}),c.jsxs("div",{className:"mt-2 space-y-1.5 rounded-lg border border-line/80 bg-white px-3 py-2",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[c.jsx("span",{className:"w-[52px] shrink-0 text-[11px] text-slate-400",children:"适配网站"}),(F=C.sites)!=null&&F.length?C.sites.map(xe=>c.jsx("span",{className:"rounded-md border border-line bg-slate-50 px-1.5 py-0.5 font-mono text-[11px] text-slate-600",children:xe},xe)):c.jsx("span",{className:"text-[11px] text-slate-400",children:"—"})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[c.jsx("span",{className:"w-[52px] shrink-0 text-[11px] text-slate-400",children:"能力"}),C.capabilities.length?C.capabilities.map(xe=>c.jsx("span",{className:"rounded-md bg-brand-50 px-1.5 py-0.5 text-[11px] font-medium text-brand-700 ring-1 ring-inset ring-brand-100",children:qv[xe]||xe},xe)):c.jsx("span",{className:"text-[11px] text-slate-400",children:"无"})]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 pl-[52px] text-[11px] text-slate-400",children:[c.jsxs("span",{children:["平台 ",c.jsx("span",{className:"text-slate-600",children:C.label||"—"})]}),c.jsxs("span",{children:["id ",c.jsx("span",{className:"text-slate-600",children:C.id||"—"})]})]})]}),c.jsxs("div",{className:"mt-2.5 flex items-center gap-2",children:[c.jsx(Re,{size:"sm",variant:C.enabled?"secondary":"primary",loading:A===C.name,onClick:()=>void S(C.name,`/api/plugins/${C.name}/${C.enabled?"disable":"enable"}`,C.enabled?`${C.name} 已停用`:`${C.name} 已启用`),children:C.enabled?"停用":"启用"}),c.jsx(Re,{size:"sm",variant:"ghost",disabled:!C.enabled,loading:A===C.name,onClick:()=>void S(C.name,`/api/plugins/${C.name}/reload`,`${C.name} 已重载`),children:"重载"})]})]},C.name)}),!j.length&&!k&&c.jsx("p",{className:"py-8 text-center text-[12.5px] text-slate-400",children:"plugins/ 下还没有插件。建一个含 plugin.json + main.py 的目录丢进去,刷新即可看到。"})]})})}function Rm(){const[f,x]=D.useState(null),T=D.useRef(null);T.current=f;const o=D.useCallback(k=>new Promise(Z=>x({...k,resolve:Z})),[]),j=D.useCallback(k=>{const Z=T.current;T.current=null,x(null),Z==null||Z.resolve(k)},[]),H=((f==null?void 0:f.tone)||"danger")==="danger",A=H?bv:Iy,W=c.jsx(Ra,{open:!!f,onClose:()=>j(!1),size:"sm",title:(f==null?void 0:f.title)||"",footer:c.jsxs(c.Fragment,{children:[c.jsx(Re,{onClick:()=>j(!1),children:(f==null?void 0:f.cancelText)||"取消"}),c.jsx(Re,{variant:H?"danger-solid":"primary",onClick:()=>j(!0),autoFocus:!0,children:(f==null?void 0:f.confirmText)||"确定"})]}),children:c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx("span",{className:ot("grid size-9 shrink-0 place-items-center rounded-xl ring-1",H?"bg-red-50 text-red-600 ring-red-100":"bg-brand-50 text-brand-600 ring-brand-100"),children:c.jsx(A,{className:"size-4"})}),c.jsx("div",{className:"min-w-0 flex-1 pt-1 text-[13px] leading-relaxed text-slate-600",children:f==null?void 0:f.message})]})});return{ask:o,dialog:W}}function Yv(f){const x=String((f==null?void 0:f.text)||"").replace(/\s+/g," ").trim();return x.length>24?`${x.slice(0,24)}…`:x}function Gv({open:f,account:x,course:T,onClose:o,notify:j,onSubmitted:H}){const[A,W]=D.useState(null),[k,Z]=D.useState({}),[q,S]=D.useState(!1),[C,F]=D.useState(!1),[xe,L]=D.useState(!1),[ee,Ue]=D.useState(!1),[le,I]=D.useState(""),[Le,Se]=D.useState("info"),$=D.useRef(0),{ask:ae,dialog:ve}=Rm();async function Ce(ne=!1){if(!x||!T)return!1;S(!0),I(ne?"正在生成新答卷…":"取题中…"),Se("info");try{const oe={cookies:x.cookies,platform:x.platform||"",plan_id:T.plan_id,project_id:T.project_id,name:T.name||""};ne&&(oe.retake=!0,oe.period_id=(A==null?void 0:A.period_id)||"");const d=await Xe("/api/quiz",{method:"POST",body:JSON.stringify(oe)});if(!d.ok)return W(null),I(d.error||"取题失败"),Se("error"),!1;W(d),Z(Object.fromEntries((d.questions||[]).map(B=>[B.no,B.picked||""])));const E=[];if(d.done){const B=d.surplus_exam_count;B!=null?E.push(`剩 ${B} 次`):d.allow_exam_count&&E.push(`共 ${d.allow_exam_count} 次`),d.show_answers?E.push("已显示标准答案"):d.exam_after_watch_answer==="0"&&E.push("本测验不开放答案"),I(`已交卷${E.length?` · ${E.join(" · ")}`:""}`),Se("success")}else I(d.started?"已自动创建答卷(限时考试已开始计时)":""),Se("info");return!0}catch(oe){return I(oe instanceof Error?oe.message:"取题失败"),Se("error"),!1}finally{S(!1)}}if(D.useEffect(()=>{!f||!x||!T||(W(null),Z({}),Ue(!1),Ce(!1))},[f,x==null?void 0:x.id,T==null?void 0:T.plan_id]),!x||!T)return null;const Y=(A==null?void 0:A.questions)||[],Me=!!(A!=null&&A.done),Ae=!!(A!=null&&A.show_answers),qe=!!(A!=null&&A.can_retake),U=A==null?void 0:A.surplus_exam_count,se=Me||q||C||ee;function R(ne,oe){Z(d=>({...d,[ne]:oe}))}function Q(ne,oe,d){Z(E=>{const B=pu(E[ne]),w=d?[...B,oe]:B.filter(ce=>ce!==oe);return w.sort(),{...E,[ne]:w.join("#")}})}async function te(){if(!A||!x)return;const ne=Y.filter(oe=>!k[oe.no]).length;if(!(ne&&!await ae({title:"提交测验",message:`还有 ${ne} 题没作答,提交后就不能再改了,确定提交?`,confirmText:"提交",tone:"normal"}))){F(!0),I("提交中…"),Se("info");try{const oe=await Xe("/api/quiz/submit",{method:"POST",body:JSON.stringify({cookies:x.cookies,platform:x.platform||"",plan_id:A.plan_id,object_id:A.object_id,generation:A.generation||"legacy",result_id:A.result_id||"",answers:k})});if(!oe.ok){oe.code==="already_finished"&&await Ce(),I(oe.error||"提交失败"),Se("error");return}j({message:`测验已提交${oe.score?`,得分 ${oe.score}`:""}`,tone:"success"}),await Ce(),H()}catch(oe){I(oe instanceof Error?oe.message:"提交失败"),Se("error")}finally{F(!1)}}}async function _e(){if(!A)return;if(!A.can_retake){j({message:"没有剩余考试机会",tone:"error"});return}const ne=U!=null?`(剩余 ${U} 次)`:"";if(await ae({title:"再考一次",message:`再考一次会消耗 1 次机会${ne};限时考试会立即开始计时,确定继续?`,confirmText:"再考一次",tone:"normal"})){L(!0);try{await Ce(!0)&&j({message:"已生成新答卷,可以重新答题了",tone:"success"})}finally{L(!1)}}}async function ze(){if(!A||!x)return;if(A.done){j({message:"已交卷,点「再考一次」生成新答卷后再 AI 答题",tone:"error"});return}Ue(!0),$.current=0;const ne=Date.now();let oe=0,d="";const E=window.setInterval(()=>{I(`AI 答题中… ${Math.round((Date.now()-ne)/1e3)}s · 已填 ${$.current}/${Y.length} 题`),Se("info")},1e3);I(`AI 答题中… 已填 0/${Y.length} 题`);try{await wv("/api/quiz/answer",{questions:A.questions,account_id:x.id},B=>{const w=B.answers;if(w&&typeof w=="object"){const ce=Object.keys(w).length;ce&&($.current+=ce,Z(me=>({...me,...w})))}B.error&&(d=String(B.error)),B.done&&typeof B.failed=="number"&&(oe=B.failed)}),$.current?oe?(I(`AI 已填 ${$.current} 题,${oe} 题失败${d?`:${d}`:""}`),Se("error")):(I(`AI 已填 ${$.current} 题`),Se("success")):(I(d?`AI 答题失败:${d}`:"AI 没有返回答案"),Se("error"))}catch(B){I(B instanceof Error?B.message:"AI 答题失败"),Se("error")}finally{window.clearInterval(E),Ue(!1)}}const it=qe?`再考一次${U!=null?`(剩 ${U} 次)`:""}`:U===0?"考试机会已用完":"再考一次";return c.jsxs(Ra,{open:f,onClose:o,title:`测验 · ${T.name||T.plan_id}`,subtitle:le||"取题后可手动作答,或让大模型逐批填写",size:"xl",footer:c.jsxs(c.Fragment,{children:[c.jsx("span",{className:ot("mr-auto max-w-[50%] truncate text-[11.5px]",Le==="error"?"text-red-600":Le==="success"?"text-emerald-600":"text-slate-500"),children:le}),Me&&c.jsx(Re,{size:"sm",loading:xe,disabled:q||!qe,icon:c.jsx(ov,{className:"size-3.5"}),onClick:_e,children:it}),c.jsx(Re,{size:"sm",onClick:o,children:"关闭"}),c.jsx(Re,{size:"sm",variant:"soft",loading:ee,disabled:se||!Y.length,icon:c.jsx($y,{className:"size-3.5"}),onClick:ze,children:"AI 答题"}),c.jsx(Re,{size:"sm",variant:"primary",loading:C,disabled:se||!Y.length,icon:c.jsx(Cm,{className:"size-3.5"}),onClick:te,children:"提交"})]}),children:[q&&!Y.length?c.jsx("div",{className:"py-16 text-center text-[13px] text-slate-400",children:"正在打开课程页取题…"}):Y.length?c.jsx("div",{className:"space-y-2.5",children:Y.map(ne=>{const oe=ne.options||[],d=k[ne.no]||"",E=ne.type==="02",B=oe.length>0;return c.jsxs("div",{className:"rounded-xl border border-line px-3.5 py-3",children:[c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx("span",{className:"mt-0.5 grid size-5 shrink-0 place-items-center rounded-md bg-slate-100 text-[10.5px] font-semibold tabular-nums text-slate-500",children:ne.no}),c.jsx(Ua,{tone:"neutral",className:"mt-0.5 shrink-0",children:_v[ne.type||""]||"题目"}),c.jsx("p",{className:"min-w-0 flex-1 text-[13px] leading-relaxed text-slate-800",children:ne.title||`第 ${ne.no} 题`}),Ae&&ne.is_correct!==void 0&&c.jsx("span",{className:ot("shrink-0 text-[12px] font-semibold",ne.is_correct?"text-emerald-600":"text-red-500"),children:ne.is_correct?"✓":"✗"})]}),B&&c.jsx("div",{className:"mt-2 flex flex-wrap gap-1.5 pl-7",children:oe.map(w=>{const ce=Ae&&pu(ne.correct).includes(w.key),me=Ae&&pu(ne.picked).includes(w.key)&&!pu(ne.correct).includes(w.key);return c.jsxs("span",{className:ot("max-w-full rounded-lg border px-2 py-1 text-[11.5px] leading-snug",ce?"border-emerald-200 bg-emerald-50 text-emerald-800":me?"border-red-200 bg-red-50 text-red-700":"border-line bg-slate-50/70 text-slate-600"),children:[c.jsx("b",{className:"mr-1 font-semibold",children:w.key}),Yv(w)]},w.key)})}),c.jsxs("div",{className:"mt-2.5 flex flex-wrap items-center gap-2 pl-7",children:[E?c.jsx("div",{className:"flex flex-wrap gap-1.5",children:oe.map(w=>{const ce=pu(d);return c.jsxs("label",{title:`${w.key}. ${w.text||""}`,className:ot("flex cursor-pointer items-center gap-1 rounded-lg border px-2 py-1 text-[11.5px] transition",ce.includes(w.key)?"border-brand-300 bg-brand-50 text-brand-700":"border-line text-slate-600 hover:border-slate-300",se&&"pointer-events-none opacity-60"),children:[c.jsx("input",{type:"checkbox",className:"size-3 accent-brand-500",checked:ce.includes(w.key),disabled:se,onChange:me=>Q(ne.no,w.key,me.target.checked)}),w.key]},w.key)})}):B?c.jsxs("select",{className:"h-8 w-full max-w-[320px] rounded-lg border border-line bg-white px-2 text-[12px] text-slate-700 focus:border-brand-500 focus:outline-none disabled:bg-slate-50 disabled:text-slate-400",value:d,disabled:se,onChange:w=>R(ne.no,w.target.value),children:[c.jsx("option",{value:"",children:"未选"}),oe.map(w=>c.jsxs("option",{value:w.key,children:[w.key,". ",w.text||""]},w.key))]}):c.jsx("input",{className:"h-8 w-full max-w-[320px] rounded-lg border border-line bg-white px-2 text-[12px] text-slate-700 focus:border-brand-500 focus:outline-none disabled:bg-slate-50 disabled:text-slate-400",value:d,placeholder:"填写答案",disabled:se,onChange:w=>R(ne.no,w.target.value)}),Ae&&ne.correct&&c.jsxs("span",{className:"text-[11.5px] text-slate-500",children:["标准答案:",c.jsx("b",{className:"font-semibold text-slate-700",children:ne.correct})]})]}),Ae&&ne.analysis&&c.jsxs("p",{className:"mt-2 rounded-lg bg-slate-50 px-2.5 py-1.5 text-[11.5px] leading-relaxed text-slate-500",children:["解析:",ne.analysis]})]},ne.no)})}):c.jsx("div",{className:"py-16 text-center text-[13px] text-red-600",children:le||"没有题目"}),ve]})}const Qv=[{key:"llm",label:"大模型",icon:hv},{key:"study",label:"学习模式",icon:uv},{key:"notify",label:"故障推送",icon:Jy}];function Su({checked:f,label:x,onChange:T}){return c.jsxs("label",{className:"flex cursor-pointer items-center gap-1.5 text-[12px] text-slate-600",children:[c.jsx("input",{type:"checkbox",className:"size-3.5 accent-brand-600",checked:f,onChange:o=>T(o.target.checked)}),x]})}function qf({title:f,desc:x,action:T,children:o}){return c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("h3",{className:"text-[13.5px] font-semibold text-slate-900",children:f}),c.jsx("p",{className:"mt-0.5 text-[11.5px] text-slate-500",children:x})]}),T]}),c.jsx("div",{className:"space-y-3.5",children:o})]})}function Xv({open:f,onClose:x,notify:T}){const[o,j]=D.useState(!1),[H,A]=D.useState(!1),[W,k]=D.useState(!1),[Z,q]=D.useState(!1),[S,C]=D.useState("llm"),[F,xe]=D.useState({base_url:"",api_key:"",model:"",temperature:"0.2",timeout:"120",prompt:"",study_mode:"fast",study_parallel:"2"}),[L,ee]=D.useState("sk-..."),[Ue,le]=D.useState(!1),[I,Le]=D.useState({enabled:!0,base_url:"",app_key:"",app_secret:"",channel_name:"",on_error:!0,on_login:!0,on_progress:!0,on_retry:!0,retry_threshold:"3",cooldown_min:"10"}),[Se,$]=D.useState("未设置"),[ae,ve]=D.useState(!1);D.useEffect(()=>{f&&(j(!0),le(!1),ve(!1),Xe("/api/settings").then(U=>{const se=U.llm||{},R=U.study||{},Q=U.notify||{};xe({base_url:se.base_url||"",api_key:"",model:se.model||"",temperature:String(se.temperature??.2),timeout:String(se.timeout??120),prompt:se.prompt||"",study_mode:R.mode||"fast",study_parallel:String(R.parallel||2)}),ee(se.has_key?`已保存 ${se.key_hint||""},留空不修改`:"sk-..."),Le({enabled:Q.enabled!==!1,base_url:Q.base_url||"",app_key:Q.app_key||"",app_secret:"",channel_name:Q.channel_name||"",on_error:Q.on_error!==!1,on_login:Q.on_login!==!1,on_progress:Q.on_progress!==!1,on_retry:Q.on_retry!==!1,retry_threshold:String(Q.retry_threshold??3),cooldown_min:String(Q.cooldown_min??10)}),$(Q.has_secret?`已保存 ${Q.secret_hint||""},留空不修改`:"未设置")}).catch(U=>T({message:`读取设置失败:${U.message}`,tone:"error"})).finally(()=>j(!1)))},[f,T]);function Ce(U,se){xe(R=>({...R,[U]:se}))}function Y(U,se){Le(R=>({...R,[U]:se}))}async function Me(){A(!0);try{await Xe("/api/settings",{method:"POST",body:JSON.stringify({base_url:F.base_url.trim(),api_key:F.api_key.trim(),clear_api_key:Ue,model:F.model.trim(),temperature:Number.parseFloat(F.temperature)||.2,timeout:Number.parseInt(F.timeout,10)||120,prompt:F.prompt,study_mode:F.study_mode,study_parallel:Number.parseInt(F.study_parallel,10)||0,notify:{base_url:I.base_url.trim(),app_key:I.app_key.trim(),app_secret:I.app_secret.trim(),clear_app_secret:ae,channel_name:I.channel_name.trim(),enabled:I.enabled,on_error:I.on_error,on_login:I.on_login,on_progress:I.on_progress,on_retry:I.on_retry,retry_threshold:Number.parseInt(I.retry_threshold,10)||0,cooldown_min:Number.parseInt(I.cooldown_min,10)||0}})}),T({message:"设置已保存",tone:"success"}),x()}catch(U){T({message:`保存失败:${U instanceof Error?U.message:U}`,tone:"error"})}finally{A(!1)}}async function Ae(){k(!0);try{const U=await Xe("/api/llm/test",{method:"POST",body:JSON.stringify({base_url:F.base_url.trim(),api_key:F.api_key.trim(),model:F.model.trim()})});T({message:U.ok?`连接正常(${U.ms} ms):${U.reply||""}`:`连接失败:${U.error||"未知错误"}`,tone:U.ok?"success":"error"})}catch(U){T({message:`连接失败:${U instanceof Error?U.message:U}`,tone:"error"})}finally{k(!1)}}async function qe(){q(!0);try{const U=await Xe("/api/notify/test",{method:"POST"});T({message:U.message||(U.ok?"推送成功":"推送失败"),tone:U.ok?"success":"error"})}catch(U){T({message:`推送失败:${U instanceof Error?U.message:U}`,tone:"error"})}finally{q(!1)}}return c.jsx(Ra,{open:f,onClose:x,title:"系统设置",subtitle:"大模型接口、学习模式与故障推送",size:"settings",bodyClassName:"p-0",footer:c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"mr-auto text-[11px] text-slate-400",children:"保存后立即生效;正在学习的账号从下一门课开始按新设置执行"}),c.jsx(Re,{onClick:x,disabled:H,children:"取消"}),c.jsx(Re,{variant:"primary",loading:H,onClick:Me,disabled:o,children:"保存"})]}),children:c.jsxs("div",{className:"grid min-h-[540px] grid-cols-[188px_1fr]",children:[c.jsxs("nav",{className:"border-r border-line bg-slate-50/70 p-2.5",children:[Qv.map(({key:U,label:se,icon:R})=>c.jsxs("button",{type:"button",onClick:()=>C(U),className:ot("mb-1 flex w-full items-center gap-2 rounded-lg px-2.5 py-2 text-left text-[12.5px] font-medium transition",S===U?"bg-white text-brand-700 shadow-sm ring-1 ring-line":"text-slate-600 hover:bg-white/70"),children:[c.jsx(R,{className:"size-4 shrink-0"}),se]},U)),c.jsx("p",{className:"mt-3 px-2.5 text-[11px] leading-relaxed text-slate-400",children:"设置只保存在本机 SQLite,不会同步到学习平台。"})]}),c.jsx("div",{className:"min-w-0 px-5 py-4",children:o?c.jsx("div",{className:"py-20 text-center text-[12.5px] text-slate-400",children:"读取设置…"}):S==="llm"?c.jsxs(qf,{title:"大模型(OpenAI 兼容)",desc:"用于自动答题;接口地址写到 /v1 为止。",action:c.jsx(Re,{size:"sm",loading:W,onClick:Ae,icon:c.jsx(tv,{className:"size-3.5"}),children:"测试连接"}),children:[c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:"接口地址"}),c.jsx("input",{className:Ie,value:F.base_url,placeholder:"https://api.openai.com/v1",onChange:U=>Ce("base_url",U.target.value)})]}),c.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[c.jsxs("div",{children:[c.jsxs("label",{className:"mb-1.5 flex items-center justify-between text-[12px] text-slate-600",children:[c.jsx("span",{children:"API Key"}),L.startsWith("已保存")&&c.jsx("button",{type:"button",className:"text-[11px] text-slate-400 hover:text-rose-500",onClick:()=>{le(!0),ee("保存后清空")},children:Ue?"将清空":"清空"})]}),c.jsxs("div",{className:"relative",children:[c.jsx(Bf,{className:"pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-slate-400"}),c.jsx("input",{className:`${Ie} pl-8`,type:"password",autoComplete:"off",value:F.api_key,placeholder:L,onChange:U=>Ce("api_key",U.target.value)})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:"模型"}),c.jsx("input",{className:Ie,value:F.model,placeholder:"gpt-4o-mini / deepseek-chat / qwen-plus",onChange:U=>Ce("model",U.target.value)})]})]}),c.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:"温度"}),c.jsx("input",{className:Ie,type:"number",min:0,max:2,step:.1,value:F.temperature,onChange:U=>Ce("temperature",U.target.value)})]}),c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:"超时(秒)"}),c.jsx("input",{className:Ie,type:"number",min:10,max:600,value:F.timeout,onChange:U=>Ce("timeout",U.target.value)})]})]}),c.jsxs("div",{children:[c.jsxs("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:["答题提示词 ",c.jsx("span",{className:"text-slate-400",children:"(留空使用内置)"})]}),c.jsx("textarea",{className:`${Ie} min-h-32 resize-y`,value:F.prompt,placeholder:'只输出 JSON {"answers":{"题号":"答案"}}',onChange:U=>Ce("prompt",U.target.value)})]})]}):S==="study"?c.jsxs(qf,{title:"学习模式",desc:"快速上报只调接口,常规模式开无头浏览器真播。",children:[c.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:"模式"}),c.jsxs("select",{className:Ie,value:F.study_mode,onChange:U=>Ce("study_mode",U.target.value),children:[c.jsx("option",{value:"fast",children:"快速学习(只调接口上报)"}),c.jsx("option",{value:"normal",children:"常规学习(真实播放视频)"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:"常规模式并发数"}),c.jsx("input",{className:Ie,type:"number",min:1,max:5,value:F.study_parallel,onChange:U=>Ce("study_parallel",U.target.value)})]})]}),c.jsxs("p",{className:"rounded-lg bg-slate-50 px-3 py-2 text-[11.5px] leading-relaxed text-slate-500",children:["常规学习会开多个无头浏览器同时播视频;平台若按课节顺序放行,会被弹回并自动降为 1 路。 快速学习只调用 ",c.jsx("code",{className:"rounded bg-white px-1 ring-1 ring-line",children:"period/study/log"}),",不启动浏览器。"]})]}):c.jsxs(qf,{title:"故障推送",desc:"进度异常、反复重试、运行/登录异常时推送到配置的渠道。",action:c.jsx(Re,{size:"sm",loading:Z,onClick:qe,icon:c.jsx(Cm,{className:"size-3.5"}),children:"测试推送"}),children:[c.jsxs("div",{children:[c.jsxs("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:["推送地址 ",c.jsx("span",{className:"text-slate-400",children:"(baseurl,不带 /api)"})]}),c.jsx("input",{className:Ie,value:I.base_url,placeholder:"https://corn.hanhan.ltd",onChange:U=>Y("base_url",U.target.value)})]}),c.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:"app_key"}),c.jsx("input",{className:Ie,value:I.app_key,placeholder:"应用 app_key",onChange:U=>Y("app_key",U.target.value)})]}),c.jsxs("div",{children:[c.jsxs("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:["推送 channel_name ",c.jsx("span",{className:"text-slate-400",children:"(留空 = 默认渠道)"})]}),c.jsx("input",{className:Ie,value:I.channel_name,placeholder:"我的邮箱",onChange:U=>Y("channel_name",U.target.value)})]})]}),c.jsxs("div",{children:[c.jsxs("label",{className:"mb-1.5 flex items-center justify-between text-[12px] text-slate-600",children:[c.jsx("span",{children:"app_secret"}),Se.startsWith("已保存")&&c.jsx("button",{type:"button",className:"text-[11px] text-slate-400 hover:text-rose-500",onClick:()=>{ve(!0),$("保存后清空")},children:ae?"将清空":"清空"})]}),c.jsxs("div",{className:"relative",children:[c.jsx(Bf,{className:"pointer-events-none absolute left-2.5 top-1/2 size-3.5 -translate-y-1/2 text-slate-400"}),c.jsx("input",{className:`${Ie} pl-8`,type:"password",autoComplete:"off",value:I.app_secret,placeholder:Se,onChange:U=>Y("app_secret",U.target.value)})]})]}),c.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:"重试几次算故障"}),c.jsx("input",{className:Ie,type:"number",min:2,max:10,value:I.retry_threshold,onChange:U=>Y("retry_threshold",U.target.value)})]}),c.jsxs("div",{children:[c.jsx("label",{className:"mb-1.5 block text-[12px] text-slate-600",children:"同账号同类型冷却(分钟)"}),c.jsx("input",{className:Ie,type:"number",min:1,max:1440,value:I.cooldown_min,onChange:U=>Y("cooldown_min",U.target.value)})]})]}),c.jsxs("div",{className:"flex flex-wrap gap-x-5 gap-y-2 rounded-lg bg-slate-50 px-3 py-2.5",children:[c.jsx(Su,{checked:I.enabled,label:"启用推送",onChange:U=>Y("enabled",U)}),c.jsx(Su,{checked:I.on_progress,label:"进度异常",onChange:U=>Y("on_progress",U)}),c.jsx(Su,{checked:I.on_retry,label:"多次重试",onChange:U=>Y("on_retry",U)}),c.jsx(Su,{checked:I.on_error,label:"运行/课程异常",onChange:U=>Y("on_error",U)}),c.jsx(Su,{checked:I.on_login,label:"登录/会话异常",onChange:U=>Y("on_login",U)})]}),c.jsx("p",{className:"text-[11.5px] leading-relaxed text-slate-500",children:"推送由「插件管理」里的推送渠道插件发出(默认自带「呆呆面板推送」)。关闭某个开关只是不推该类故障, 不影响学习流程。"})]})})]})})}function Lv({accounts:f}){const x=f.filter(A=>{var W;return((W=A.cookies)==null?void 0:W.length)>0||["logged_in","studying"].includes(A.status||"")}).length,T=f.filter(A=>{var W;return["discovering","studying"].includes(((W=A.run)==null?void 0:W.status)||"")}).length,o=f.reduce((A,W)=>{var k;return A+(((k=W.run)==null?void 0:k.done)||0)},0),j=f.reduce((A,W)=>{var k;return A+(((k=W.run)==null?void 0:k.total)||0)},0),H=[{label:"账号",value:f.length,hint:"已添加",icon:Mm,tone:"text-brand-600 bg-brand-50"},{label:"已登录",value:x,hint:f.length?`共 ${f.length} 个`:"等待添加",icon:vv,tone:"text-emerald-600 bg-emerald-50"},{label:"学习中",value:T,hint:T?"正在跑课":"空闲",icon:ky,tone:"text-sky-600 bg-sky-50"},{label:"课程进度",value:j?`${o}/${j}`:"—",hint:j?`${Math.round(o/j*100)}%`:"暂无任务",icon:Lf,tone:"text-amber-600 bg-amber-50"}];return c.jsx("section",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:H.map(A=>c.jsxs("div",{className:"flex items-center gap-3 rounded-xl border border-line bg-white px-4 py-3",children:[c.jsx("span",{className:`grid size-9 shrink-0 place-items-center rounded-lg ${A.tone}`,children:c.jsx(A.icon,{className:"size-4"})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("div",{className:"text-[11px] text-slate-400",children:A.label}),c.jsxs("div",{className:"flex items-baseline gap-1.5",children:[c.jsx("span",{className:"text-[17px] font-semibold tabular-nums leading-tight text-slate-900",children:A.value}),c.jsx("span",{className:"truncate text-[10.5px] text-slate-400",children:A.hint})]})]})]},A.label))})}function Vv({open:f,onClose:x}){const[T,o]=D.useState([]),[j,H]=D.useState(!1),A=D.useRef(null),W=D.useRef(!0);D.useEffect(()=>{if(!f)return;let Z=!0;const q=async()=>{try{const C=await Xe("/api/log/history?key=system&tail=500");Z&&o(C.lines||[])}catch{}};o([]),q();const S=window.setInterval(()=>{document.hidden||q()},2500);return()=>{Z=!1,window.clearInterval(S)}},[f]),D.useEffect(()=>{const Z=A.current;Z&&W.current&&(Z.scrollTop=Z.scrollHeight)},[T,f]);async function k(){H(!0);try{await Xe("/api/log/history?key=system",{method:"DELETE"}),o([])}finally{H(!1)}}return c.jsx(Ra,{open:f,onClose:x,title:"系统日志",subtitle:"全局事件与系统级错误,实时刷新",size:"xl",footer:c.jsxs(c.Fragment,{children:[c.jsxs("span",{className:"mr-auto text-[11px] text-slate-400",children:["共 ",T.length," 行 · 保留最近 500 行"]}),c.jsx(Re,{variant:"danger",size:"sm",loading:j,onClick:k,children:"清空"}),c.jsx(Re,{size:"sm",onClick:x,children:"关闭"})]}),bodyClassName:"bg-slate-50 p-0",children:c.jsx("pre",{ref:A,onScroll:Z=>{const q=Z.currentTarget;W.current=q.scrollHeight-q.scrollTop-q.clientHeight<24},className:"scrollbar-thin h-[60vh] overflow-auto whitespace-pre-wrap break-words p-4 font-mono text-[11.5px] leading-relaxed text-slate-600",children:c.jsx(Um,{lines:T,empty:"暂无系统日志"})})})}function Zv({toast:f}){if(!f)return null;const x=f.tone||"info",T=x==="error"?Fy:x==="success"?Wy:iv;return c.jsxs("div",{role:"status",className:ot("animate-toast-in fixed bottom-7 left-1/2 z-[60] flex max-w-[85vw] -translate-x-1/2 items-center gap-2","rounded-xl px-4 py-2.5 text-[12.5px] font-medium shadow-xl shadow-slate-900/20",x==="error"?"bg-red-600 text-white":x==="success"?"bg-emerald-600 text-white":"bg-slate-900 text-white"),children:[c.jsx(T,{className:"size-4 shrink-0 opacity-90"}),c.jsx("span",{className:"break-words",children:f.message})]})}function Kv({refreshing:f,onRefresh:x,onSettings:T,onSystemLog:o,onPlugins:j,onAdd:H}){return c.jsx("header",{className:"sticky top-0 z-30 border-b border-line/80 bg-white/85 backdrop-blur-xl",children:c.jsxs("div",{className:"mx-auto flex h-16 max-w-[1320px] items-center gap-3 px-4 sm:px-6",children:[c.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[c.jsx("div",{className:"grid size-9 shrink-0 place-items-center rounded-xl bg-gradient-to-br from-brand-500 to-sky-400 text-[15px] font-bold text-white shadow-md shadow-brand-500/30",children:"学"}),c.jsxs("div",{className:"min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("h1",{className:"truncate text-[15px] font-semibold tracking-tight text-slate-900",children:"在线学习平台"}),c.jsx("span",{className:"hidden rounded-md bg-slate-100 px-1.5 py-0.5 text-[10px] font-medium text-slate-500 sm:inline",children:"多账号学习控制台"})]}),c.jsx("p",{className:"truncate text-[11.5px] text-slate-500",children:"快速解放学习的双手"})]})]}),c.jsx("div",{className:"flex-1"}),c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx(Re,{variant:"ghost",size:"icon",onClick:x,loading:f,title:"刷新列表","aria-label":"刷新列表",children:c.jsx(Fi,{className:"size-4"})}),c.jsx(Re,{variant:"ghost",size:"icon",onClick:j,title:"插件管理","aria-label":"插件管理",children:c.jsx(Am,{className:"size-4"})}),c.jsx(Re,{variant:"ghost",size:"icon",onClick:o,title:"系统日志","aria-label":"系统日志",children:c.jsx(dv,{className:"size-4"})}),c.jsx(Re,{variant:"ghost",size:"icon",onClick:T,title:"系统设置","aria-label":"系统设置",children:c.jsx(yv,{className:"size-4"})}),c.jsx(Re,{variant:"primary",className:"ml-1",icon:c.jsx(Om,{className:"size-4"}),onClick:H,children:c.jsx("span",{className:"hidden sm:inline",children:"添加账号"})})]})]})})}const Hm="guanyixue.inlineLogsOpen";function kv(){try{const f=JSON.parse(localStorage.getItem(Hm)||"[]");return new Set(Array.isArray(f)?f.filter(x=>typeof x=="string"):[])}catch{return new Set}}function Jv(f){try{localStorage.setItem(Hm,JSON.stringify([...f]))}catch{}}function Em(f){return{id:f.id,username:f.username,platform:f.platform||"",note:f.note||"",user:f.user||"",cookies:f.cookies||[],courses:f.courses||[],selected:f.selected||[],status:f.status||"idle",lastError:f.lastError||"",lastErrorAt:f.lastErrorAt||0,optQuiz:f.optQuiz===!0,optFeedback:f.optFeedback!==!1,loginAt:f.loginAt||0}}function $v(){const[f,x]=D.useState([]),T=D.useRef(f),[o,j]=D.useState({}),[H,A]=D.useState([]),[W,k]=D.useState(!1),[Z,q]=D.useState(null),[S,C]=D.useState({}),[F,xe]=D.useState(!1),[L,ee]=D.useState(null),[Ue,le]=D.useState(()=>kv()),I=D.useRef(Ue),[Le,Se]=D.useState({}),$=D.useRef(Le),ae=D.useRef(void 0),{ask:ve,dialog:Ce}=Rm();D.useEffect(()=>{T.current=f},[f]),D.useEffect(()=>{$.current=Le},[Le]),D.useEffect(()=>{I.current=Ue,Jv(Ue)},[Ue]),D.useEffect(()=>()=>window.clearTimeout(ae.current),[]);const Y=D.useCallback(h=>{q(h),window.clearTimeout(ae.current),ae.current=window.setTimeout(()=>q(null),3800)},[]),Me=D.useCallback(async h=>{const M=await Xe("/api/accounts",{method:"POST",body:JSON.stringify(Em(h))});if(M.ok===!1)throw new Error(M.error||"保存失败");return M},[]),Ae=D.useCallback(h=>{x(M=>{const X=M.some(fe=>fe.id===h.id)?M.map(fe=>fe.id===h.id?h:fe):[...M,h];return T.current=X,X})},[]),qe=D.useCallback(async(h=!0)=>{var M,O;try{const[X,fe]=await Promise.all([Xe("/api/runs"),Xe("/api/accounts")]),de=(fe.accounts||[]).map(ge=>({...ge,run:X[ge.id]||null})).sort((ge,nt)=>(ge.created||0)-(nt.created||0));x(de),T.current=de,k(!1);for(const ge of de){const nt=(M=ge.run)==null?void 0:M.status;if(nt!=="discovering"&&nt!=="studying")continue;const bt=(O=ge.run)==null?void 0:O.cookies;if(bt&&bt.length&&JSON.stringify(bt)!==JSON.stringify(ge.cookies||[])){const ll={...ge,cookies:bt};ge.cookies=bt,Me(ll).catch(()=>{})}}}catch(X){X instanceof Hl&&X.offline?k(!0):h||Y({message:`读取账号失败:${el(X)}`,tone:"error"})}},[Y,Me]);D.useEffect(()=>{qe();const h=window.setInterval(()=>{document.hidden||qe()},5e3);return()=>window.clearInterval(h)},[qe]);const U=D.useCallback(async()=>{try{const M=(await Xe("/api/platforms")).platforms||[];A(M);const O={};for(const X of M)O[X.id]=X.label;j(O)}catch{}},[]);D.useEffect(()=>{U()},[U]);const se=D.useCallback(async h=>{var fe;const M=$.current[h]||{lines:[],since:0,busy:!1,historyTried:!1};if(M.busy)return;const O={...M,busy:!0},X=de=>{$.current={...$.current,[h]:de},Se(ge=>({...ge,[h]:de}))};X(O);try{let de=await Xe(`/api/log?key=${encodeURIComponent(h)}&since=${O.since}`);typeof de.next=="number"&&de.next<O.since&&(O.lines=[],O.since=0,de=await Xe(`/api/log?key=${encodeURIComponent(h)}&since=0`));let ge=de.lines||[];if(!ge.length&&!O.historyTried){O.historyTried=!0;try{const bt=await Xe(`/api/log/history?key=${encodeURIComponent(h)}&tail=300`);(fe=bt.lines)!=null&&fe.length&&(ge=bt.lines)}catch{}}ge.length&&(O.lines=[...O.lines,...ge].slice(-600)),typeof de.next=="number"&&(O.since=Math.max(O.since,de.next));const nt=de.cookies;if(nt!=null&&nt.length){const bt=T.current.find(ll=>ll.id===h);if(bt&&JSON.stringify(bt.cookies||[])!==JSON.stringify(nt)){const ll={...bt,cookies:nt};Ae(ll),Me(ll).catch(()=>{})}}}catch{}finally{O.busy=!1,X(O)}},[Ae,Me]);D.useEffect(()=>{const h=window.setInterval(()=>{document.hidden||I.current.forEach(M=>void se(M))},1500);return()=>window.clearInterval(h)},[se]);const R=D.useCallback((h,M)=>{const O=M===void 0?!I.current.has(h):M,X=new Set(I.current);O?X.add(h):X.delete(h),I.current=X,le(X),O&&se(h)},[se]);async function Q(h,M,O){C(X=>({...X,[h]:M}));try{return await O()}finally{C(X=>{const fe={...X};return delete fe[h],fe})}}async function te(h,M=!1){return Q(h.id,"login",async()=>{Ae({...h,status:"logging",lastError:""});try{await Me({...h,status:"logging",lastError:""});const O=await Xe("/api/login",{method:"POST",body:JSON.stringify({account_id:h.id})});if(!O.ok){const de={...h,status:"login_failed",lastError:O.error||`HTTP ${O.code||"失败"}`,lastErrorAt:Date.now(),run:null};return Ae(de),await Me(de).catch(()=>{}),M||Y({message:`登录失败:${de.lastError}`,tone:"error"}),!1}const X=O.courses||[],fe={...h,status:"logged_in",cookies:O.cookies||[],user:O.user||h.user||"",courses:X,selected:(h.selected||[]).filter(de=>X.some(ge=>ge.plan_id===de)),loginAt:Date.now(),updated:Date.now(),lastError:"",lastErrorAt:0,run:null};return Ae(fe),await Me(fe).catch(()=>{}),M||Y({message:O.warn?`登录成功,但课程读取异常:${O.warn}`:`登录成功:${fe.user||fe.username},读到 ${Gf(X).total} 门`,tone:O.warn?"info":"success"}),qe(),!0}catch(O){const X={...h,status:"login_failed",lastError:el(O),lastErrorAt:Date.now()};return Ae(X),await Me(X).catch(()=>{}),M||Y({message:`登录失败:${X.lastError}`,tone:"error"}),O instanceof Hl&&O.offline&&k(!0),!1}})}async function _e(h){return Q(h.id,"refresh",async()=>{var M;try{let O=await Xe("/api/courses",{method:"POST",body:JSON.stringify({cookies:h.cookies,platform:h.platform||""})});if(!O.ok&&O.code==="session_expired"){if(Y({message:"会话已失效,正在自动重新登录…"}),!await te(h,!0))return;const de=T.current.find(ge=>ge.id===h.id);if(!de)return;O=await Xe("/api/courses",{method:"POST",body:JSON.stringify({cookies:de.cookies,platform:de.platform||h.platform||""})})}if(!O.ok){Y({message:`读取失败:${O.error||O.code||"未知错误"}`,tone:"error"});return}const X=T.current.find(de=>de.id===h.id)||h,fe={...X,courses:O.courses||[],user:O.user||X.user,cookies:(M=O.cookies)!=null&&M.length?O.cookies:X.cookies,status:"logged_in",updated:Date.now(),lastError:"",lastErrorAt:0};Ae(fe),await Me(fe).catch(()=>{}),Y({message:`已刷新,读到 ${Gf(fe.courses).total} 门`,tone:"success"})}catch(O){Y({message:`读取失败:${el(O)}`,tone:"error"})}})}async function ze(h){var X;const M=h.selected||[],O=(h.courses||[]).filter(fe=>M.includes(fe.plan_id)&&fe.in_study!==!1);if(!O.length){Y({message:"请先勾选要学习的课程",tone:"error"});return}if(!((X=h.cookies)!=null&&X.length)){Y({message:"请先登录",tone:"error"});return}return Q(h.id,"study",async()=>{var fe,de;try{const ge=await Xe("/api/study",{method:"POST",body:JSON.stringify({key:h.id,username:h.user||h.username,cookies:h.cookies,courses:O,workers:40,cap_minutes:90,enable_quiz:h.optQuiz===!0,enable_feedback:h.optFeedback!==!1})});if(!ge.ok){Y({message:`启动失败:${ge.error||"未知错误"}`,tone:"error"});return}const nt=((fe=ge.study)==null?void 0:fe.mode)==="normal"?`常规真播 ${((de=ge.study)==null?void 0:de.parallel)||1} 路并发`:"快速模式(只调接口)";Y({message:`已开始 ${O.length} 门课程 · ${nt}${h.optQuiz?" · 含自动答题":" · 测验需手动作答"}`,tone:"success"}),R(h.id,!0),qe()}catch(ge){Y({message:`启动失败:${el(ge)}`,tone:"error"})}})}async function it(h){return Q(h.id,"stop",async()=>{try{await Xe("/api/stop",{method:"POST",body:JSON.stringify({key:h.id})}),Y({message:"已请求停止"}),qe()}catch(M){Y({message:`停止失败:${el(M)}`,tone:"error"})}})}async function ne(h){var M;if(!((M=h.cookies)!=null&&M.length)){Y({message:"请先登录",tone:"error"});return}return Q(h.id,"capture",async()=>{try{const O=await Xe("/api/capture",{method:"POST",body:JSON.stringify({key:h.id,cookies:h.cookies,minutes:10})});if(!O.ok){Y({message:`抓包失败:${O.error||"未知错误"}`,tone:"error"});return}Y({message:"已打开浏览器,请手动走一遍课程页;最多记录 10 分钟",tone:"success"})}catch(O){Y({message:`抓包失败:${el(O)}`,tone:"error"})}})}async function oe(h){return Q(h.id,"capture",async()=>{try{await Xe("/api/capture/stop",{method:"POST",body:JSON.stringify({key:h.id})}),Y({message:"已请求停止抓包"}),qe()}catch(M){Y({message:`停止抓包失败:${el(M)}`,tone:"error"})}})}async function d(h,M){const O={...h,username:M.username,note:M.note,platform:M.platform},X=await Xe("/api/accounts",{method:"POST",body:JSON.stringify({...Em(O),password:M.password})});if(X.ok===!1)throw new Error(X.error||"保存失败");Ae(O),Y({message:"账号信息已保存,正在用新凭据重新登录…"}),te(O)}async function E(h){if(await ve({title:"删除账号",message:`删除「${h.user||h.username}」?课程缓存和日志不会自动清理,删掉后要重新添加账号才能继续学习。`,confirmText:"删除账号"}))try{await Xe(`/api/accounts/${encodeURIComponent(h.id)}`,{method:"DELETE"}),x(O=>{const X=O.filter(fe=>fe.id!==h.id);return T.current=X,X}),Y({message:"账号已删除"})}catch(O){Y({message:`删除失败:${el(O)}`,tone:"error"})}}async function B(h,M){const O={...h,selected:M};Ae(O);try{await Me(O)}catch(X){Y({message:`保存勾选失败:${el(X)}`,tone:"error"})}}function w(h,M,O){const X=h.selected||[];B(h,O?[...new Set([...X,M])]:X.filter(fe=>fe!==M))}function ce(h){const M=(h.courses||[]).filter(O=>O.in_study!==!1).map(O=>O.plan_id);B(h,[...new Set([...h.selected||[],...M])])}async function me(h,M,O){const X=M==="quiz"?{...h,optQuiz:O}:{...h,optFeedback:O};Ae(X);try{await Me(X),Y({message:M==="quiz"?O?"已开启自动交测验(注意正确率)":"已关闭自动交测验":O?"已开启自动交反馈表":"已关闭自动交反馈表"})}catch(fe){Y({message:`保存失败:${el(fe)}`,tone:"error"})}}async function Ee(h){const M=await Xe("/api/accounts",{method:"POST",body:JSON.stringify({username:h.username,platform:h.platform,password:h.password,note:h.note,cookies:[],courses:[],selected:[],status:"idle",created:Date.now()})});if(M.ok===!1)throw new Error(M.error||"保存失败");const O=await Xe("/api/accounts"),X=M.account||(O.accounts||[]).find(ge=>ge.username===h.username);if(!X){Y({message:"已保存,但列表里没有找到新账号,请刷新页面",tone:"error"}),await qe();return}Y({message:"已保存,正在尝试首次登录…"});const fe=await te(X,!0),de=T.current.find(ge=>ge.id===X.id);Y(fe?{message:`登录成功:${(de==null?void 0:de.user)||h.username}`,tone:"success"}:{message:`登录失败:${(de==null?void 0:de.lastError)||"未知原因"}(请手动点击「登录」重试)`,tone:"error"}),await qe()}async function K(){xe(!0);try{await qe(!1)}finally{xe(!1)}}function ue(h){var O;const M=h.platform||((O=(h.courses||[]).find(X=>X.platform))==null?void 0:O.platform);return M&&o[M]||M||"未选择平台"}function jt(h){var M;return((M=H.find(O=>O.id===h.platform))==null?void 0:M.capabilities)||[]}const tl=(L==null?void 0:L.type)==="edit"&&f.find(h=>h.id===L.accountId)||null,St=(L==null?void 0:L.type)==="quiz"&&f.find(h=>h.id===L.accountId)||null,Nt=(L==null?void 0:L.type)==="quiz"?(St==null?void 0:St.courses.find(h=>h.plan_id===L.course.plan_id))||L.course:null;return c.jsxs("div",{className:"min-h-screen",children:[c.jsx(Kv,{refreshing:F,onRefresh:()=>void K(),onSettings:()=>ee({type:"settings"}),onSystemLog:()=>ee({type:"system"}),onPlugins:()=>ee({type:"plugins"}),onAdd:()=>ee({type:"add"})}),c.jsxs("main",{className:"mx-auto max-w-[1320px] px-4 pb-16 pt-5 sm:px-6",children:[W&&c.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-2.5 rounded-xl border border-red-200 bg-red-50 px-4 py-2.5 text-[12.5px] text-red-700",children:[c.jsx(Sv,{className:"size-4 shrink-0"}),c.jsx("span",{className:"font-medium",children:"后端未连接"}),c.jsx("span",{className:"text-red-500",children:"页面显示的是上一次数据,请确认服务已启动、端口没有变化。"}),c.jsx("div",{className:"flex-1"}),c.jsx(Re,{size:"sm",variant:"secondary",loading:F,onClick:()=>void K(),children:"重试"})]}),c.jsx(Lv,{accounts:f}),c.jsxs("div",{className:"mb-3 mt-6 flex items-end justify-between gap-3",children:[c.jsx("div",{children:c.jsx("h2",{className:"text-[14px] font-semibold text-slate-900",children:"账号列表"})}),f.length>0&&c.jsx(Re,{size:"sm",variant:"secondary",icon:c.jsx(Fi,{className:"size-3.5"}),loading:F,onClick:()=>void K(),children:"刷新"})]}),f.length===0?c.jsxs("div",{className:"card-shadow grid place-items-center rounded-2xl border border-dashed border-slate-300 bg-white px-6 py-16 text-center",children:[c.jsx("div",{className:"grid size-12 place-items-center rounded-2xl bg-brand-50 text-brand-600",children:c.jsx(Mm,{className:"size-6"})}),c.jsx("h3",{className:"mt-4 text-[14px] font-semibold text-slate-800",children:"还没有账号"}),c.jsx("p",{className:"mt-1.5 max-w-md text-[12.5px] leading-relaxed text-slate-500",children:"添加平台账号后,可自动读取课程、勾选学习、提交反馈表与测验。"}),c.jsx(Re,{variant:"primary",className:"mt-5",icon:c.jsx(Om,{className:"size-4"}),onClick:()=>ee({type:"add"}),children:"添加第一个账号"})]}):c.jsx("div",{className:"grid items-start gap-4 md:grid-cols-2 xl:grid-cols-3",children:f.map(h=>{var M;return c.jsx(Dv,{account:h,platformLabel:ue(h),capabilities:jt(h),pending:S[h.id],openLog:Ue.has(h.id),logLines:((M=Le[h.id])==null?void 0:M.lines)||[],onToggleLog:()=>R(h.id),onLogin:()=>void te(h),onRefresh:()=>void _e(h),onStudy:()=>void ze(h),onStop:()=>void it(h),onCapture:()=>void ne(h),onStopCapture:()=>void oe(h),onEdit:()=>ee({type:"edit",accountId:h.id}),onDelete:()=>void E(h),onQuiz:()=>{var fe;const O=(h.courses||[]).filter(de=>de.in_study!==!1),X=O.find(de=>{var ge;return(ge=h.selected)==null?void 0:ge.includes(de.plan_id)})||O[0];if(!X){Y({message:"这门课还没有课程数据,先点「刷新课程」",tone:"error"});return}if(!((fe=h.cookies)!=null&&fe.length)){Y({message:"请先登录",tone:"error"});return}ee({type:"quiz",accountId:h.id,course:X})},onToggleCourse:(O,X)=>w(h,O,X),onSelectAll:()=>ce(h),onClearSelection:()=>void B(h,[]),onToggleOption:(O,X)=>void me(h,O,X)},h.id)})})]}),c.jsx("footer",{className:"border-t border-line/70 py-5 text-center text-[11px] text-slate-400",children:"多账号学习控制台 · 数据保存在本机"}),c.jsx(Hv,{open:(L==null?void 0:L.type)==="add",platforms:H,onClose:()=>ee(null),onSubmit:Ee}),c.jsx(Rv,{open:(L==null?void 0:L.type)==="edit"&&!!tl,account:tl,platforms:H,onClose:()=>ee(null),onSubmit:h=>tl?d(tl,h):Promise.resolve()}),c.jsx(Xv,{open:(L==null?void 0:L.type)==="settings",onClose:()=>ee(null),notify:Y}),c.jsx(Vv,{open:(L==null?void 0:L.type)==="system",onClose:()=>ee(null)}),c.jsx(Bv,{open:(L==null?void 0:L.type)==="plugins",onClose:()=>ee(null),notify:Y,onChanged:()=>void U()}),c.jsx(Gv,{open:(L==null?void 0:L.type)==="quiz"&&!!St,account:St,course:Nt,onClose:()=>ee(null),notify:Y,onSubmitted:()=>void qe()}),Ce,c.jsx(Zv,{toast:Z})]})}const Fv={discovering:{label:"发现课程中",tone:"running"},studying:{label:"学习中",tone:"running"},finished:{label:"已完成",tone:"success"},stopped:{label:"已停止",tone:"warning"},error:{label:"出错",tone:"danger"},interrupted:{label:"已中断",tone:"warning"},logged_in:{label:"已登录",tone:"success"},login_failed:{label:"登录失败",tone:"danger"},idle:{label:"未开始",tone:"neutral"}};function Wv({account:f}){const{run:x}=f,T=Fv[x.status||f.status]||{label:x.status||f.status,tone:"neutral"},o=x.total?Math.min(100,Math.round((x.done||0)/x.total*100)):null;return c.jsxs("section",{className:"rounded-2xl border border-line bg-white p-5 shadow-sm",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[c.jsx("h2",{className:"text-[15px] font-semibold text-slate-900",children:f.user||f.username}),c.jsx(Ua,{tone:"brand",children:f.platform||"未知平台"}),c.jsx(Ua,{tone:T.tone,dot:!0,children:T.label})]}),(o!==null||x.course||x.error)&&c.jsxs("div",{className:"mt-3 space-y-1.5",children:[o!==null&&c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"h-2 flex-1 overflow-hidden rounded-full bg-slate-100",children:c.jsx("div",{className:"h-full rounded-full bg-brand-500 transition-all",style:{width:`${o}%`}})}),c.jsxs("span",{className:"text-xs tabular-nums text-slate-500",children:[x.done||0,"/",x.total,"(",o,"%)"]})]}),x.course&&c.jsxs("p",{className:"truncate text-xs text-slate-500",children:["当前:",x.course,x.progress?` · ${x.progress}`:""]}),x.error&&c.jsx("p",{className:"text-xs text-red-600",children:x.error})]}),c.jsxs("div",{className:"mt-4 divide-y divide-line/70",children:[f.courses.length===0&&c.jsx("p",{className:"py-3 text-sm text-slate-400",children:"暂无课程"}),f.courses.map((j,H)=>c.jsxs("div",{className:"flex items-start gap-3 py-2.5",children:[c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("div",{className:"truncate text-[13px] font-medium text-slate-700",children:j.name||"—"}),c.jsx("div",{className:"mt-0.5 truncate text-[11.5px] text-slate-400",children:[j.section,j.status_label,j.info].filter(Boolean).join(" · ")||"—"})]}),c.jsx("span",{className:"shrink-0 text-xs tabular-nums text-slate-600",children:j.progress||""})]},H))]})]})}function Iv(){const[f,x]=D.useState(""),[T,o]=D.useState(!1),[j,H]=D.useState(""),[A,W]=D.useState(null);async function k(Z){Z.preventDefault();const q=f.trim();if(q){o(!0),H("");try{const S=await Xe(`/api/query?username=${encodeURIComponent(q)}`);if(!S.ok)throw new Error(S.error||"查询失败");W(S.accounts||[])}catch(S){W(null),H(S instanceof Error?S.message:"查询失败")}finally{o(!1)}}}return c.jsx("div",{className:"min-h-screen bg-slate-50",children:c.jsxs("main",{className:"mx-auto max-w-[760px] px-4 py-10 sm:px-6",children:[c.jsx("h1",{className:"text-xl font-semibold tracking-tight text-slate-900",children:"学习进度查询"}),c.jsx("p",{className:"mt-1 text-sm text-slate-500",children:"输入账号用户名,查看课程列表与当前学习进度"}),c.jsxs("form",{onSubmit:k,className:"mt-6 flex gap-2",children:[c.jsx("input",{value:f,onChange:Z=>x(Z.target.value),placeholder:"请输入账号用户名",autoFocus:!0,className:"h-10 min-w-0 flex-1 rounded-lg border border-line bg-white px-3 text-sm outline-none transition focus:border-brand-500 focus:ring-3 focus:ring-brand-500/20"}),c.jsx(Re,{type:"submit",variant:"primary",loading:T,disabled:!f.trim(),icon:c.jsx(mv,{className:"size-4"}),children:"查询"})]}),c.jsxs("div",{className:"mt-6 space-y-4",children:[j&&c.jsx("p",{className:"rounded-lg bg-red-50 px-3 py-2 text-sm text-red-700",children:j}),(A==null?void 0:A.length)===0&&c.jsx("p",{className:"py-10 text-center text-sm text-slate-400",children:"没有找到该账号"}),A==null?void 0:A.map((Z,q)=>c.jsx(Wv,{account:Z},q))]})]})})}const Pv=window.location.pathname.replace(/\/+$/,"")==="/query"?Iv:$v;Ly.createRoot(document.getElementById("root")).render(c.jsx(D.StrictMode,{children:c.jsx(Pv,{})}));