vskill 0.2.70 → 0.2.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,70 +0,0 @@
1
- (function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))r(m);new MutationObserver(m=>{for(const v of m)if(v.type==="childList")for(const x of v.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&r(x)}).observe(document,{childList:!0,subtree:!0});function f(m){const v={};return m.integrity&&(v.integrity=m.integrity),m.referrerPolicy&&(v.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?v.credentials="include":m.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function r(m){if(m.ep)return;m.ep=!0;const v=f(m);fetch(m.href,v)}})();var Rs={exports:{}},Dn={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var tm;function my(){if(tm)return Dn;tm=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function f(r,m,v){var x=null;if(v!==void 0&&(x=""+v),m.key!==void 0&&(x=""+m.key),"key"in m){v={};for(var _ in m)_!=="key"&&(v[_]=m[_])}else v=m;return m=v.ref,{$$typeof:i,type:r,key:x,ref:m!==void 0?m:null,props:v}}return Dn.Fragment=o,Dn.jsx=f,Dn.jsxs=f,Dn}var lm;function hy(){return lm||(lm=1,Rs.exports=my()),Rs.exports}var c=hy(),Os={exports:{}},le={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var am;function vy(){if(am)return le;am=1;var i=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),x=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),w=Symbol.iterator;function Q(b){return b===null||typeof b!="object"?null:(b=w&&b[w]||b["@@iterator"],typeof b=="function"?b:null)}var Y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},X=Object.assign,G={};function U(b,q,K){this.props=b,this.context=q,this.refs=G,this.updater=K||Y}U.prototype.isReactComponent={},U.prototype.setState=function(b,q){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,q,"setState")},U.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function $(){}$.prototype=U.prototype;function Z(b,q,K){this.props=b,this.context=q,this.refs=G,this.updater=K||Y}var O=Z.prototype=new $;O.constructor=Z,X(O,U.prototype),O.isPureReactComponent=!0;var A=Array.isArray;function C(){}var k={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function de(b,q,K){var W=K.ref;return{$$typeof:i,type:b,key:q,ref:W!==void 0?W:null,props:K}}function Fe(b,q){return de(b.type,q,b.props)}function yt(b){return typeof b=="object"&&b!==null&&b.$$typeof===i}function Ke(b){var q={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(K){return q[K]})}var Ut=/\/+/g;function pt(b,q){return typeof b=="object"&&b!==null&&b.key!=null?Ke(""+b.key):q.toString(36)}function Ue(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(C,C):(b.status="pending",b.then(function(q){b.status==="pending"&&(b.status="fulfilled",b.value=q)},function(q){b.status==="pending"&&(b.status="rejected",b.reason=q)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function H(b,q,K,W,ae){var ie=typeof b;(ie==="undefined"||ie==="boolean")&&(b=null);var ye=!1;if(b===null)ye=!0;else switch(ie){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(b.$$typeof){case i:case o:ye=!0;break;case M:return ye=b._init,H(ye(b._payload),q,K,W,ae)}}if(ye)return ae=ae(b),ye=W===""?"."+pt(b,0):W,A(ae)?(K="",ye!=null&&(K=ye.replace(Ut,"$&/")+"/"),H(ae,q,K,"",function(qa){return qa})):ae!=null&&(yt(ae)&&(ae=Fe(ae,K+(ae.key==null||b&&b.key===ae.key?"":(""+ae.key).replace(Ut,"$&/")+"/")+ye)),q.push(ae)),1;ye=0;var $e=W===""?".":W+":";if(A(b))for(var Oe=0;Oe<b.length;Oe++)W=b[Oe],ie=$e+pt(W,Oe),ye+=H(W,q,K,ie,ae);else if(Oe=Q(b),typeof Oe=="function")for(b=Oe.call(b),Oe=0;!(W=b.next()).done;)W=W.value,ie=$e+pt(W,Oe++),ye+=H(W,q,K,ie,ae);else if(ie==="object"){if(typeof b.then=="function")return H(Ue(b),q,K,W,ae);throw q=String(b),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return ye}function V(b,q,K){if(b==null)return b;var W=[],ae=0;return H(b,W,"","",function(ie){return q.call(K,ie,ae++)}),W}function te(b){if(b._status===-1){var q=b._result;q=q(),q.then(function(K){(b._status===0||b._status===-1)&&(b._status=1,b._result=K)},function(K){(b._status===0||b._status===-1)&&(b._status=2,b._result=K)}),b._status===-1&&(b._status=0,b._result=q)}if(b._status===1)return b._result.default;throw b._result}var ge=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},Ee={map:V,forEach:function(b,q,K){V(b,function(){q.apply(this,arguments)},K)},count:function(b){var q=0;return V(b,function(){q++}),q},toArray:function(b){return V(b,function(q){return q})||[]},only:function(b){if(!yt(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return le.Activity=p,le.Children=Ee,le.Component=U,le.Fragment=f,le.Profiler=m,le.PureComponent=Z,le.StrictMode=r,le.Suspense=S,le.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,le.__COMPILER_RUNTIME={__proto__:null,c:function(b){return k.H.useMemoCache(b)}},le.cache=function(b){return function(){return b.apply(null,arguments)}},le.cacheSignal=function(){return null},le.cloneElement=function(b,q,K){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var W=X({},b.props),ae=b.key;if(q!=null)for(ie in q.key!==void 0&&(ae=""+q.key),q)!P.call(q,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&q.ref===void 0||(W[ie]=q[ie]);var ie=arguments.length-2;if(ie===1)W.children=K;else if(1<ie){for(var ye=Array(ie),$e=0;$e<ie;$e++)ye[$e]=arguments[$e+2];W.children=ye}return de(b.type,ae,W)},le.createContext=function(b){return b={$$typeof:x,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:v,_context:b},b},le.createElement=function(b,q,K){var W,ae={},ie=null;if(q!=null)for(W in q.key!==void 0&&(ie=""+q.key),q)P.call(q,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ae[W]=q[W]);var ye=arguments.length-2;if(ye===1)ae.children=K;else if(1<ye){for(var $e=Array(ye),Oe=0;Oe<ye;Oe++)$e[Oe]=arguments[Oe+2];ae.children=$e}if(b&&b.defaultProps)for(W in ye=b.defaultProps,ye)ae[W]===void 0&&(ae[W]=ye[W]);return de(b,ie,ae)},le.createRef=function(){return{current:null}},le.forwardRef=function(b){return{$$typeof:_,render:b}},le.isValidElement=yt,le.lazy=function(b){return{$$typeof:M,_payload:{_status:-1,_result:b},_init:te}},le.memo=function(b,q){return{$$typeof:h,type:b,compare:q===void 0?null:q}},le.startTransition=function(b){var q=k.T,K={};k.T=K;try{var W=b(),ae=k.S;ae!==null&&ae(K,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(C,ge)}catch(ie){ge(ie)}finally{q!==null&&K.types!==null&&(q.types=K.types),k.T=q}},le.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},le.use=function(b){return k.H.use(b)},le.useActionState=function(b,q,K){return k.H.useActionState(b,q,K)},le.useCallback=function(b,q){return k.H.useCallback(b,q)},le.useContext=function(b){return k.H.useContext(b)},le.useDebugValue=function(){},le.useDeferredValue=function(b,q){return k.H.useDeferredValue(b,q)},le.useEffect=function(b,q){return k.H.useEffect(b,q)},le.useEffectEvent=function(b){return k.H.useEffectEvent(b)},le.useId=function(){return k.H.useId()},le.useImperativeHandle=function(b,q,K){return k.H.useImperativeHandle(b,q,K)},le.useInsertionEffect=function(b,q){return k.H.useInsertionEffect(b,q)},le.useLayoutEffect=function(b,q){return k.H.useLayoutEffect(b,q)},le.useMemo=function(b,q){return k.H.useMemo(b,q)},le.useOptimistic=function(b,q){return k.H.useOptimistic(b,q)},le.useReducer=function(b,q,K){return k.H.useReducer(b,q,K)},le.useRef=function(b){return k.H.useRef(b)},le.useState=function(b){return k.H.useState(b)},le.useSyncExternalStore=function(b,q,K){return k.H.useSyncExternalStore(b,q,K)},le.useTransition=function(){return k.H.useTransition()},le.version="19.2.4",le}var nm;function Qs(){return nm||(nm=1,Os.exports=vy()),Os.exports}var E=Qs(),Cs={exports:{}},Un={},Ds={exports:{}},Us={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var um;function yy(){return um||(um=1,(function(i){function o(H,V){var te=H.length;H.push(V);e:for(;0<te;){var ge=te-1>>>1,Ee=H[ge];if(0<m(Ee,V))H[ge]=V,H[te]=Ee,te=ge;else break e}}function f(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var V=H[0],te=H.pop();if(te!==V){H[0]=te;e:for(var ge=0,Ee=H.length,b=Ee>>>1;ge<b;){var q=2*(ge+1)-1,K=H[q],W=q+1,ae=H[W];if(0>m(K,te))W<Ee&&0>m(ae,K)?(H[ge]=ae,H[W]=te,ge=W):(H[ge]=K,H[q]=te,ge=q);else if(W<Ee&&0>m(ae,te))H[ge]=ae,H[W]=te,ge=W;else break e}}return V}function m(H,V){var te=H.sortIndex-V.sortIndex;return te!==0?te:H.id-V.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;i.unstable_now=function(){return v.now()}}else{var x=Date,_=x.now();i.unstable_now=function(){return x.now()-_}}var S=[],h=[],M=1,p=null,w=3,Q=!1,Y=!1,X=!1,G=!1,U=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function O(H){for(var V=f(h);V!==null;){if(V.callback===null)r(h);else if(V.startTime<=H)r(h),V.sortIndex=V.expirationTime,o(S,V);else break;V=f(h)}}function A(H){if(X=!1,O(H),!Y)if(f(S)!==null)Y=!0,C||(C=!0,Ke());else{var V=f(h);V!==null&&Ue(A,V.startTime-H)}}var C=!1,k=-1,P=5,de=-1;function Fe(){return G?!0:!(i.unstable_now()-de<P)}function yt(){if(G=!1,C){var H=i.unstable_now();de=H;var V=!0;try{e:{Y=!1,X&&(X=!1,$(k),k=-1),Q=!0;var te=w;try{t:{for(O(H),p=f(S);p!==null&&!(p.expirationTime>H&&Fe());){var ge=p.callback;if(typeof ge=="function"){p.callback=null,w=p.priorityLevel;var Ee=ge(p.expirationTime<=H);if(H=i.unstable_now(),typeof Ee=="function"){p.callback=Ee,O(H),V=!0;break t}p===f(S)&&r(S),O(H)}else r(S);p=f(S)}if(p!==null)V=!0;else{var b=f(h);b!==null&&Ue(A,b.startTime-H),V=!1}}break e}finally{p=null,w=te,Q=!1}V=void 0}}finally{V?Ke():C=!1}}}var Ke;if(typeof Z=="function")Ke=function(){Z(yt)};else if(typeof MessageChannel<"u"){var Ut=new MessageChannel,pt=Ut.port2;Ut.port1.onmessage=yt,Ke=function(){pt.postMessage(null)}}else Ke=function(){U(yt,0)};function Ue(H,V){k=U(function(){H(i.unstable_now())},V)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(H){H.callback=null},i.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<H?Math.floor(1e3/H):5},i.unstable_getCurrentPriorityLevel=function(){return w},i.unstable_next=function(H){switch(w){case 1:case 2:case 3:var V=3;break;default:V=w}var te=w;w=V;try{return H()}finally{w=te}},i.unstable_requestPaint=function(){G=!0},i.unstable_runWithPriority=function(H,V){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var te=w;w=H;try{return V()}finally{w=te}},i.unstable_scheduleCallback=function(H,V,te){var ge=i.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?ge+te:ge):te=ge,H){case 1:var Ee=-1;break;case 2:Ee=250;break;case 5:Ee=1073741823;break;case 4:Ee=1e4;break;default:Ee=5e3}return Ee=te+Ee,H={id:M++,callback:V,priorityLevel:H,startTime:te,expirationTime:Ee,sortIndex:-1},te>ge?(H.sortIndex=te,o(h,H),f(S)===null&&H===f(h)&&(X?($(k),k=-1):X=!0,Ue(A,te-ge))):(H.sortIndex=Ee,o(S,H),Y||Q||(Y=!0,C||(C=!0,Ke()))),H},i.unstable_shouldYield=Fe,i.unstable_wrapCallback=function(H){var V=w;return function(){var te=w;w=V;try{return H.apply(this,arguments)}finally{w=te}}}})(Us)),Us}var im;function py(){return im||(im=1,Ds.exports=yy()),Ds.exports}var Hs={exports:{}},Je={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var cm;function xy(){if(cm)return Je;cm=1;var i=Qs();function o(S){var h="https://react.dev/errors/"+S;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var M=2;M<arguments.length;M++)h+="&args[]="+encodeURIComponent(arguments[M])}return"Minified React error #"+S+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var r={d:{f,r:function(){throw Error(o(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},m=Symbol.for("react.portal");function v(S,h,M){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:p==null?null:""+p,children:S,containerInfo:h,implementation:M}}var x=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(S,h){if(S==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Je.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Je.createPortal=function(S,h){var M=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(o(299));return v(S,h,null,M)},Je.flushSync=function(S){var h=x.T,M=r.p;try{if(x.T=null,r.p=2,S)return S()}finally{x.T=h,r.p=M,r.d.f()}},Je.preconnect=function(S,h){typeof S=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(S,h))},Je.prefetchDNS=function(S){typeof S=="string"&&r.d.D(S)},Je.preinit=function(S,h){if(typeof S=="string"&&h&&typeof h.as=="string"){var M=h.as,p=_(M,h.crossOrigin),w=typeof h.integrity=="string"?h.integrity:void 0,Q=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;M==="style"?r.d.S(S,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:w,fetchPriority:Q}):M==="script"&&r.d.X(S,{crossOrigin:p,integrity:w,fetchPriority:Q,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Je.preinitModule=function(S,h){if(typeof S=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var M=_(h.as,h.crossOrigin);r.d.M(S,{crossOrigin:M,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(S)},Je.preload=function(S,h){if(typeof S=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var M=h.as,p=_(M,h.crossOrigin);r.d.L(S,M,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Je.preloadModule=function(S,h){if(typeof S=="string")if(h){var M=_(h.as,h.crossOrigin);r.d.m(S,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:M,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(S)},Je.requestFormReset=function(S){r.d.r(S)},Je.unstable_batchedUpdates=function(S,h){return S(h)},Je.useFormState=function(S,h,M){return x.H.useFormState(S,h,M)},Je.useFormStatus=function(){return x.H.useHostTransitionStatus()},Je.version="19.2.4",Je}var sm;function gy(){if(sm)return Hs.exports;sm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),Hs.exports=xy(),Hs.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var rm;function by(){if(rm)return Un;rm=1;var i=py(),o=Qs(),f=gy();function r(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 m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function v(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function x(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 _(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 S(e){if(v(e)!==e)throw Error(r(188))}function h(e){var t=e.alternate;if(!t){if(t=v(e),t===null)throw Error(r(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 S(n),e;if(u===a)return S(n),t;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var s=!1,d=n.child;d;){if(d===l){s=!0,l=n,a=u;break}if(d===a){s=!0,a=n,l=u;break}d=d.sibling}if(!s){for(d=u.child;d;){if(d===l){s=!0,l=u,a=n;break}if(d===a){s=!0,a=u,l=n;break}d=d.sibling}if(!s)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function M(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=M(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,w=Symbol.for("react.element"),Q=Symbol.for("react.transitional.element"),Y=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),Fe=Symbol.for("react.memo_cache_sentinel"),yt=Symbol.iterator;function Ke(e){return e===null||typeof e!="object"?null:(e=yt&&e[yt]||e["@@iterator"],typeof e=="function"?e:null)}var Ut=Symbol.for("react.client.reference");function pt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ut?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case X:return"Fragment";case U:return"Profiler";case G:return"StrictMode";case A:return"Suspense";case C:return"SuspenseList";case de:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Y:return"Portal";case Z:return e.displayName||"Context";case $:return(e._context.displayName||"Context")+".Consumer";case O:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k:return t=e.displayName||null,t!==null?t:pt(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return pt(e(t))}catch{}}return null}var Ue=Array.isArray,H=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ge=[],Ee=-1;function b(e){return{current:e}}function q(e){0>Ee||(e.current=ge[Ee],ge[Ee]=null,Ee--)}function K(e,t){Ee++,ge[Ee]=e.current,e.current=t}var W=b(null),ae=b(null),ie=b(null),ye=b(null);function $e(e,t){switch(K(ie,t),K(ae,e),K(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Nd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Nd(t),e=Td(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(W),K(W,e)}function Oe(){q(W),q(ae),q(ie)}function qa(e){e.memoizedState!==null&&K(ye,e);var t=W.current,l=Td(t,e.type);t!==l&&(K(ae,e),K(W,l))}function kn(e){ae.current===e&&(q(W),q(ae)),ye.current===e&&(q(ye),Mn._currentValue=te)}var di,Is;function Dl(e){if(di===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);di=t&&t[1]||"",Is=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+di+e+Is}var mi=!1;function hi(e,t){if(!e||mi)return"";mi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(R){var z=R}Reflect.construct(e,[],L)}else{try{L.call()}catch(R){z=R}e.call(L.prototype)}}else{try{throw Error()}catch(R){z=R}(L=e())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(R){if(R&&z&&typeof R.stack=="string")return[R.stack,z.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(),s=u[0],d=u[1];if(s&&d){var y=s.split(`
44
- `),T=d.split(`
45
- `);for(n=a=0;a<y.length&&!y[a].includes("DetermineComponentFrameRoot");)a++;for(;n<T.length&&!T[n].includes("DetermineComponentFrameRoot");)n++;if(a===y.length||n===T.length)for(a=y.length-1,n=T.length-1;1<=a&&0<=n&&y[a]!==T[n];)n--;for(;1<=a&&0<=n;a--,n--)if(y[a]!==T[n]){if(a!==1||n!==1)do if(a--,n--,0>n||y[a]!==T[n]){var D=`
46
- `+y[a].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=a&&0<=n);break}}}finally{mi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Dl(l):""}function Qm(e,t){switch(e.tag){case 26:case 27:case 5:return Dl(e.type);case 16:return Dl("Lazy");case 13:return e.child!==t&&t!==null?Dl("Suspense Fallback"):Dl("Suspense");case 19:return Dl("SuspenseList");case 0:case 15:return hi(e.type,!1);case 11:return hi(e.type.render,!1);case 1:return hi(e.type,!0);case 31:return Dl("Activity");default:return""}}function Ps(e){try{var t="",l=null;do t+=Qm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}var vi=Object.prototype.hasOwnProperty,yi=i.unstable_scheduleCallback,pi=i.unstable_cancelCallback,Zm=i.unstable_shouldYield,Vm=i.unstable_requestPaint,it=i.unstable_now,Km=i.unstable_getCurrentPriorityLevel,er=i.unstable_ImmediatePriority,tr=i.unstable_UserBlockingPriority,Yn=i.unstable_NormalPriority,Jm=i.unstable_LowPriority,lr=i.unstable_IdlePriority,$m=i.log,Wm=i.unstable_setDisableYieldValue,ka=null,ct=null;function sl(e){if(typeof $m=="function"&&Wm(e),ct&&typeof ct.setStrictMode=="function")try{ct.setStrictMode(ka,e)}catch{}}var st=Math.clz32?Math.clz32:Pm,Fm=Math.log,Im=Math.LN2;function Pm(e){return e>>>=0,e===0?32:31-(Fm(e)/Im|0)|0}var Gn=256,Xn=262144,Qn=4194304;function Ul(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Zn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~u,a!==0?n=Ul(a):(s&=d,s!==0?n=Ul(s):l||(l=d&~e,l!==0&&(n=Ul(l))))):(d=a&~u,d!==0?n=Ul(d):s!==0?n=Ul(s):l||(l=a&~e,l!==0&&(n=Ul(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 Ya(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function eh(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 ar(){var e=Qn;return Qn<<=1,(Qn&62914560)===0&&(Qn=4194304),e}function xi(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ga(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function th(e,t,l,a,n,u){var s=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 d=e.entanglements,y=e.expirationTimes,T=e.hiddenUpdates;for(l=s&~l;0<l;){var D=31-st(l),L=1<<D;d[D]=0,y[D]=-1;var z=T[D];if(z!==null)for(T[D]=null,D=0;D<z.length;D++){var R=z[D];R!==null&&(R.lane&=-536870913)}l&=~L}a!==0&&nr(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(s&~t))}function nr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-st(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function ur(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-st(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function ir(e,t){var l=t&-t;return l=(l&42)!==0?1:gi(l),(l&(e.suspendedLanes|t))!==0?0:l}function gi(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 bi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function cr(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:Jd(e.type))}function sr(e,t){var l=V.p;try{return V.p=e,t()}finally{V.p=l}}var rl=Math.random().toString(36).slice(2),Ge="__reactFiber$"+rl,Ie="__reactProps$"+rl,ea="__reactContainer$"+rl,Si="__reactEvents$"+rl,lh="__reactListeners$"+rl,ah="__reactHandles$"+rl,rr="__reactResources$"+rl,Xa="__reactMarker$"+rl;function ji(e){delete e[Ge],delete e[Ie],delete e[Si],delete e[lh],delete e[ah]}function ta(e){var t=e[Ge];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ea]||l[Ge]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Cd(e);e!==null;){if(l=e[Ge])return l;e=Cd(e)}return t}e=l,l=e.parentNode}return null}function la(e){if(e=e[Ge]||e[ea]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Qa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function aa(e){var t=e[rr];return t||(t=e[rr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ke(e){e[Xa]=!0}var or=new Set,fr={};function Hl(e,t){na(e,t),na(e+"Capture",t)}function na(e,t){for(fr[e]=t,e=0;e<t.length;e++)or.add(t[e])}var nh=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]*$"),dr={},mr={};function uh(e){return vi.call(mr,e)?!0:vi.call(dr,e)?!1:nh.test(e)?mr[e]=!0:(dr[e]=!0,!1)}function Vn(e,t,l){if(uh(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 Kn(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 Yt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ih(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(s){l=""+s,u.call(this,s)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(s){l=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ei(e){if(!e._valueTracker){var t=hr(e)?"checked":"value";e._valueTracker=ih(e,t,""+e[t])}}function vr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=hr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Jn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ch=/[\n"\\]/g;function gt(e){return e.replace(ch,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ni(e,t,l,a,n,u,s,d){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+xt(t)):e.value!==""+xt(t)&&(e.value=""+xt(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?Ti(e,s,xt(t)):l!=null?Ti(e,s,xt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+xt(d):e.removeAttribute("name")}function yr(e,t,l,a,n,u,s,d){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)){Ei(e);return}l=l!=null?""+xt(l):"",t=t!=null?""+xt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),Ei(e)}function Ti(e,t,l){t==="number"&&Jn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ua(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=""+xt(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 pr(e,t,l){if(t!=null&&(t=""+xt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+xt(l):""}function xr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(Ue(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=xt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Ei(e)}function ia(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var sh=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 gr(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||sh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function br(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&gr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&gr(e,u,t[u])}function Ai(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 rh=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),oh=/^[\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 $n(e){return oh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Gt(){}var zi=null;function _i(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ca=null,sa=null;function Sr(e){var t=la(e);if(t&&(e=t.stateNode)){var l=e[Ie]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ni(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="'+gt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[Ie]||null;if(!n)throw Error(r(90));Ni(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&&vr(a)}break e;case"textarea":pr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ua(e,!!l.multiple,t,!1)}}}var Mi=!1;function jr(e,t,l){if(Mi)return e(t,l);Mi=!0;try{var a=e(t);return a}finally{if(Mi=!1,(ca!==null||sa!==null)&&(Bu(),ca&&(t=ca,e=sa,sa=ca=null,Sr(t),e)))for(t=0;t<e.length;t++)Sr(e[t])}}function Za(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Ie]||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(r(231,t,typeof l));return l}var Xt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ri=!1;if(Xt)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){Ri=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{Ri=!1}var ol=null,Oi=null,Wn=null;function Er(){if(Wn)return Wn;var e,t=Oi,l=t.length,a,n="value"in ol?ol.value:ol.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var s=l-e;for(a=1;a<=s&&t[l-a]===n[u-a];a++);return Wn=n.slice(e,1<a?1-a:void 0)}function Fn(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 In(){return!0}function Nr(){return!1}function Pe(e){function t(l,a,n,u,s){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=s,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(u):u[d]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?In:Nr,this.isPropagationStopped=Nr,this}return p(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=In)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=In)},persist:function(){},isPersistent:In}),t}var Bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pn=Pe(Bl),Ka=p({},Bl,{view:0,detail:0}),fh=Pe(Ka),Ci,Di,Ja,eu=p({},Ka,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hi,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!==Ja&&(Ja&&e.type==="mousemove"?(Ci=e.screenX-Ja.screenX,Di=e.screenY-Ja.screenY):Di=Ci=0,Ja=e),Ci)},movementY:function(e){return"movementY"in e?e.movementY:Di}}),Tr=Pe(eu),dh=p({},eu,{dataTransfer:0}),mh=Pe(dh),hh=p({},Ka,{relatedTarget:0}),Ui=Pe(hh),vh=p({},Bl,{animationName:0,elapsedTime:0,pseudoElement:0}),yh=Pe(vh),ph=p({},Bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xh=Pe(ph),gh=p({},Bl,{data:0}),Ar=Pe(gh),bh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sh={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"},jh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Eh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jh[e])?!!t[e]:!1}function Hi(){return Eh}var Nh=p({},Ka,{key:function(e){if(e.key){var t=bh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Fn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Sh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hi,charCode:function(e){return e.type==="keypress"?Fn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Fn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Th=Pe(Nh),Ah=p({},eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zr=Pe(Ah),zh=p({},Ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hi}),_h=Pe(zh),Mh=p({},Bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rh=Pe(Mh),Oh=p({},eu,{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}),Ch=Pe(Oh),Dh=p({},Bl,{newState:0,oldState:0}),Uh=Pe(Dh),Hh=[9,13,27,32],Bi=Xt&&"CompositionEvent"in window,$a=null;Xt&&"documentMode"in document&&($a=document.documentMode);var Bh=Xt&&"TextEvent"in window&&!$a,_r=Xt&&(!Bi||$a&&8<$a&&11>=$a),Mr=" ",Rr=!1;function Or(e,t){switch(e){case"keyup":return Hh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ra=!1;function wh(e,t){switch(e){case"compositionend":return Cr(t);case"keypress":return t.which!==32?null:(Rr=!0,Mr);case"textInput":return e=t.data,e===Mr&&Rr?null:e;default:return null}}function Lh(e,t){if(ra)return e==="compositionend"||!Bi&&Or(e,t)?(e=Er(),Wn=Oi=ol=null,ra=!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 qh={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 Dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qh[e.type]:t==="textarea"}function Ur(e,t,l,a){ca?sa?sa.push(a):sa=[a]:ca=a,t=Xu(t,"onChange"),0<t.length&&(l=new Pn("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Wa=null,Fa=null;function kh(e){xd(e,0)}function tu(e){var t=Qa(e);if(vr(t))return e}function Hr(e,t){if(e==="change")return t}var Br=!1;if(Xt){var wi;if(Xt){var Li="oninput"in document;if(!Li){var wr=document.createElement("div");wr.setAttribute("oninput","return;"),Li=typeof wr.oninput=="function"}wi=Li}else wi=!1;Br=wi&&(!document.documentMode||9<document.documentMode)}function Lr(){Wa&&(Wa.detachEvent("onpropertychange",qr),Fa=Wa=null)}function qr(e){if(e.propertyName==="value"&&tu(Fa)){var t=[];Ur(t,Fa,e,_i(e)),jr(kh,t)}}function Yh(e,t,l){e==="focusin"?(Lr(),Wa=t,Fa=l,Wa.attachEvent("onpropertychange",qr)):e==="focusout"&&Lr()}function Gh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tu(Fa)}function Xh(e,t){if(e==="click")return tu(t)}function Qh(e,t){if(e==="input"||e==="change")return tu(t)}function Zh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rt=typeof Object.is=="function"?Object.is:Zh;function Ia(e,t){if(rt(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(!vi.call(t,n)||!rt(e[n],t[n]))return!1}return!0}function kr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yr(e,t){var l=kr(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=kr(l)}}function Gr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Jn(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=Jn(e.document)}return t}function qi(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 Vh=Xt&&"documentMode"in document&&11>=document.documentMode,oa=null,ki=null,Pa=null,Yi=!1;function Qr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Yi||oa==null||oa!==Jn(a)||(a=oa,"selectionStart"in a&&qi(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}),Pa&&Ia(Pa,a)||(Pa=a,a=Xu(ki,"onSelect"),0<a.length&&(t=new Pn("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=oa)))}function wl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var fa={animationend:wl("Animation","AnimationEnd"),animationiteration:wl("Animation","AnimationIteration"),animationstart:wl("Animation","AnimationStart"),transitionrun:wl("Transition","TransitionRun"),transitionstart:wl("Transition","TransitionStart"),transitioncancel:wl("Transition","TransitionCancel"),transitionend:wl("Transition","TransitionEnd")},Gi={},Zr={};Xt&&(Zr=document.createElement("div").style,"AnimationEvent"in window||(delete fa.animationend.animation,delete fa.animationiteration.animation,delete fa.animationstart.animation),"TransitionEvent"in window||delete fa.transitionend.transition);function Ll(e){if(Gi[e])return Gi[e];if(!fa[e])return e;var t=fa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Zr)return Gi[e]=t[l];return e}var Vr=Ll("animationend"),Kr=Ll("animationiteration"),Jr=Ll("animationstart"),Kh=Ll("transitionrun"),Jh=Ll("transitionstart"),$h=Ll("transitioncancel"),$r=Ll("transitionend"),Wr=new Map,Xi="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Xi.push("scrollEnd");function Mt(e,t){Wr.set(e,t),Hl(t,[e])}var lu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},bt=[],da=0,Qi=0;function au(){for(var e=da,t=Qi=da=0;t<e;){var l=bt[t];bt[t++]=null;var a=bt[t];bt[t++]=null;var n=bt[t];bt[t++]=null;var u=bt[t];if(bt[t++]=null,a!==null&&n!==null){var s=a.pending;s===null?n.next=n:(n.next=s.next,s.next=n),a.pending=n}u!==0&&Fr(l,n,u)}}function nu(e,t,l,a){bt[da++]=e,bt[da++]=t,bt[da++]=l,bt[da++]=a,Qi|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Zi(e,t,l,a){return nu(e,t,l,a),uu(e)}function ql(e,t){return nu(e,null,null,t),uu(e)}function Fr(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-st(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function uu(e){if(50<jn)throw jn=0,es=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ma={};function Wh(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 ot(e,t,l,a){return new Wh(e,t,l,a)}function Vi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qt(e,t){var l=e.alternate;return l===null?(l=ot(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Ir(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function iu(e,t,l,a,n,u){var s=0;if(a=e,typeof e=="function")Vi(e)&&(s=1);else if(typeof e=="string")s=ty(e,l,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case de:return e=ot(31,l,t,n),e.elementType=de,e.lanes=u,e;case X:return kl(l.children,n,u,t);case G:s=8,n|=24;break;case U:return e=ot(12,l,t,n|2),e.elementType=U,e.lanes=u,e;case A:return e=ot(13,l,t,n),e.elementType=A,e.lanes=u,e;case C:return e=ot(19,l,t,n),e.elementType=C,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Z:s=10;break e;case $:s=9;break e;case O:s=11;break e;case k:s=14;break e;case P:s=16,a=null;break e}s=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=ot(s,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function kl(e,t,l,a){return e=ot(7,e,a,t),e.lanes=l,e}function Ki(e,t,l){return e=ot(6,e,null,t),e.lanes=l,e}function Pr(e){var t=ot(18,null,null,0);return t.stateNode=e,t}function Ji(e,t,l){return t=ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var eo=new WeakMap;function St(e,t){if(typeof e=="object"&&e!==null){var l=eo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ps(t)},eo.set(e,t),t)}return{value:e,source:t,stack:Ps(t)}}var ha=[],va=0,cu=null,en=0,jt=[],Et=0,fl=null,Ht=1,Bt="";function Zt(e,t){ha[va++]=en,ha[va++]=cu,cu=e,en=t}function to(e,t,l){jt[Et++]=Ht,jt[Et++]=Bt,jt[Et++]=fl,fl=e;var a=Ht;e=Bt;var n=32-st(a)-1;a&=~(1<<n),l+=1;var u=32-st(t)+n;if(30<u){var s=n-n%5;u=(a&(1<<s)-1).toString(32),a>>=s,n-=s,Ht=1<<32-st(t)+n|l<<n|a,Bt=u+e}else Ht=1<<u|l<<n|a,Bt=e}function $i(e){e.return!==null&&(Zt(e,1),to(e,1,0))}function Wi(e){for(;e===cu;)cu=ha[--va],ha[va]=null,en=ha[--va],ha[va]=null;for(;e===fl;)fl=jt[--Et],jt[Et]=null,Bt=jt[--Et],jt[Et]=null,Ht=jt[--Et],jt[Et]=null}function lo(e,t){jt[Et++]=Ht,jt[Et++]=Bt,jt[Et++]=fl,Ht=t.id,Bt=t.overflow,fl=e}var Xe=null,Te=null,fe=!1,dl=null,Nt=!1,Fi=Error(r(519));function ml(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw tn(St(t,e)),Fi}function ao(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ge]=e,t[Ie]=a,l){case"dialog":se("cancel",t),se("close",t);break;case"iframe":case"object":case"embed":se("load",t);break;case"video":case"audio":for(l=0;l<Nn.length;l++)se(Nn[l],t);break;case"source":se("error",t);break;case"img":case"image":case"link":se("error",t),se("load",t);break;case"details":se("toggle",t);break;case"input":se("invalid",t),yr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":se("invalid",t);break;case"textarea":se("invalid",t),xr(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||jd(t.textContent,l)?(a.popover!=null&&(se("beforetoggle",t),se("toggle",t)),a.onScroll!=null&&se("scroll",t),a.onScrollEnd!=null&&se("scrollend",t),a.onClick!=null&&(t.onclick=Gt),t=!0):t=!1,t||ml(e,!0)}function no(e){for(Xe=e.return;Xe;)switch(Xe.tag){case 5:case 31:case 13:Nt=!1;return;case 27:case 3:Nt=!0;return;default:Xe=Xe.return}}function ya(e){if(e!==Xe)return!1;if(!fe)return no(e),fe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||vs(e.type,e.memoizedProps)),l=!l),l&&Te&&ml(e),no(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Te=Od(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Te=Od(e)}else t===27?(t=Te,zl(e.type)?(e=bs,bs=null,Te=e):Te=t):Te=Xe?At(e.stateNode.nextSibling):null;return!0}function Yl(){Te=Xe=null,fe=!1}function Ii(){var e=dl;return e!==null&&(at===null?at=e:at.push.apply(at,e),dl=null),e}function tn(e){dl===null?dl=[e]:dl.push(e)}var Pi=b(null),Gl=null,Vt=null;function hl(e,t,l){K(Pi,t._currentValue),t._currentValue=l}function Kt(e){e._currentValue=Pi.current,q(Pi)}function ec(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 tc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var s=n.child;u=u.firstContext;e:for(;u!==null;){var d=u;u=n;for(var y=0;y<t.length;y++)if(d.context===t[y]){u.lanes|=l,d=u.alternate,d!==null&&(d.lanes|=l),ec(u.return,l,e),a||(s=null);break e}u=d.next}}else if(n.tag===18){if(s=n.return,s===null)throw Error(r(341));s.lanes|=l,u=s.alternate,u!==null&&(u.lanes|=l),ec(s,l,e),s=null}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===e){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}}function pa(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 s=n.alternate;if(s===null)throw Error(r(387));if(s=s.memoizedProps,s!==null){var d=n.type;rt(n.pendingProps.value,s.value)||(e!==null?e.push(d):e=[d])}}else if(n===ye.current){if(s=n.alternate,s===null)throw Error(r(387));s.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Mn):e=[Mn])}n=n.return}e!==null&&tc(t,e,l,a),t.flags|=262144}function su(e){for(e=e.firstContext;e!==null;){if(!rt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xl(e){Gl=e,Vt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qe(e){return uo(Gl,e)}function ru(e,t){return Gl===null&&Xl(e),uo(e,t)}function uo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Vt===null){if(e===null)throw Error(r(308));Vt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vt=Vt.next=t;return l}var Fh=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()})}},Ih=i.unstable_scheduleCallback,Ph=i.unstable_NormalPriority,He={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lc(){return{controller:new Fh,data:new Map,refCount:0}}function ln(e){e.refCount--,e.refCount===0&&Ih(Ph,function(){e.controller.abort()})}var an=null,ac=0,xa=0,ga=null;function ev(e,t){if(an===null){var l=an=[];ac=0,xa=is(),ga={status:"pending",value:void 0,then:function(a){l.push(a)}}}return ac++,t.then(io,io),t}function io(){if(--ac===0&&an!==null){ga!==null&&(ga.status="fulfilled");var e=an;an=null,xa=0,ga=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function tv(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 co=H.S;H.S=function(e,t){Vf=it(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ev(e,t),co!==null&&co(e,t)};var Ql=b(null);function nc(){var e=Ql.current;return e!==null?e:Ne.pooledCache}function ou(e,t){t===null?K(Ql,Ql.current):K(Ql,t.pool)}function so(){var e=nc();return e===null?null:{parent:He._currentValue,pool:e}}var ba=Error(r(460)),uc=Error(r(474)),fu=Error(r(542)),du={then:function(){}};function ro(e){return e=e.status,e==="fulfilled"||e==="rejected"}function oo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Gt,Gt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mo(e),e;default:if(typeof t.status=="string")t.then(Gt,Gt);else{if(e=Ne,e!==null&&100<e.shellSuspendCounter)throw Error(r(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,mo(e),e}throw Vl=t,ba}}function Zl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Vl=l,ba):l}}var Vl=null;function fo(){if(Vl===null)throw Error(r(459));var e=Vl;return Vl=null,e}function mo(e){if(e===ba||e===fu)throw Error(r(483))}var Sa=null,nn=0;function mu(e){var t=nn;return nn+=1,Sa===null&&(Sa=[]),oo(Sa,e,t)}function un(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function hu(e,t){throw t.$$typeof===w?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ho(e){function t(j,g){if(e){var N=j.deletions;N===null?(j.deletions=[g],j.flags|=16):N.push(g)}}function l(j,g){if(!e)return null;for(;g!==null;)t(j,g),g=g.sibling;return null}function a(j){for(var g=new Map;j!==null;)j.key!==null?g.set(j.key,j):g.set(j.index,j),j=j.sibling;return g}function n(j,g){return j=Qt(j,g),j.index=0,j.sibling=null,j}function u(j,g,N){return j.index=N,e?(N=j.alternate,N!==null?(N=N.index,N<g?(j.flags|=67108866,g):N):(j.flags|=67108866,g)):(j.flags|=1048576,g)}function s(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function d(j,g,N,B){return g===null||g.tag!==6?(g=Ki(N,j.mode,B),g.return=j,g):(g=n(g,N),g.return=j,g)}function y(j,g,N,B){var I=N.type;return I===X?D(j,g,N.props.children,B,N.key):g!==null&&(g.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===P&&Zl(I)===g.type)?(g=n(g,N.props),un(g,N),g.return=j,g):(g=iu(N.type,N.key,N.props,null,j.mode,B),un(g,N),g.return=j,g)}function T(j,g,N,B){return g===null||g.tag!==4||g.stateNode.containerInfo!==N.containerInfo||g.stateNode.implementation!==N.implementation?(g=Ji(N,j.mode,B),g.return=j,g):(g=n(g,N.children||[]),g.return=j,g)}function D(j,g,N,B,I){return g===null||g.tag!==7?(g=kl(N,j.mode,B,I),g.return=j,g):(g=n(g,N),g.return=j,g)}function L(j,g,N){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Ki(""+g,j.mode,N),g.return=j,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Q:return N=iu(g.type,g.key,g.props,null,j.mode,N),un(N,g),N.return=j,N;case Y:return g=Ji(g,j.mode,N),g.return=j,g;case P:return g=Zl(g),L(j,g,N)}if(Ue(g)||Ke(g))return g=kl(g,j.mode,N,null),g.return=j,g;if(typeof g.then=="function")return L(j,mu(g),N);if(g.$$typeof===Z)return L(j,ru(j,g),N);hu(j,g)}return null}function z(j,g,N,B){var I=g!==null?g.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return I!==null?null:d(j,g,""+N,B);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Q:return N.key===I?y(j,g,N,B):null;case Y:return N.key===I?T(j,g,N,B):null;case P:return N=Zl(N),z(j,g,N,B)}if(Ue(N)||Ke(N))return I!==null?null:D(j,g,N,B,null);if(typeof N.then=="function")return z(j,g,mu(N),B);if(N.$$typeof===Z)return z(j,g,ru(j,N),B);hu(j,N)}return null}function R(j,g,N,B,I){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return j=j.get(N)||null,d(g,j,""+B,I);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case Q:return j=j.get(B.key===null?N:B.key)||null,y(g,j,B,I);case Y:return j=j.get(B.key===null?N:B.key)||null,T(g,j,B,I);case P:return B=Zl(B),R(j,g,N,B,I)}if(Ue(B)||Ke(B))return j=j.get(N)||null,D(g,j,B,I,null);if(typeof B.then=="function")return R(j,g,N,mu(B),I);if(B.$$typeof===Z)return R(j,g,N,ru(g,B),I);hu(g,B)}return null}function J(j,g,N,B){for(var I=null,me=null,F=g,ue=g=0,oe=null;F!==null&&ue<N.length;ue++){F.index>ue?(oe=F,F=null):oe=F.sibling;var he=z(j,F,N[ue],B);if(he===null){F===null&&(F=oe);break}e&&F&&he.alternate===null&&t(j,F),g=u(he,g,ue),me===null?I=he:me.sibling=he,me=he,F=oe}if(ue===N.length)return l(j,F),fe&&Zt(j,ue),I;if(F===null){for(;ue<N.length;ue++)F=L(j,N[ue],B),F!==null&&(g=u(F,g,ue),me===null?I=F:me.sibling=F,me=F);return fe&&Zt(j,ue),I}for(F=a(F);ue<N.length;ue++)oe=R(F,j,ue,N[ue],B),oe!==null&&(e&&oe.alternate!==null&&F.delete(oe.key===null?ue:oe.key),g=u(oe,g,ue),me===null?I=oe:me.sibling=oe,me=oe);return e&&F.forEach(function(Cl){return t(j,Cl)}),fe&&Zt(j,ue),I}function ee(j,g,N,B){if(N==null)throw Error(r(151));for(var I=null,me=null,F=g,ue=g=0,oe=null,he=N.next();F!==null&&!he.done;ue++,he=N.next()){F.index>ue?(oe=F,F=null):oe=F.sibling;var Cl=z(j,F,he.value,B);if(Cl===null){F===null&&(F=oe);break}e&&F&&Cl.alternate===null&&t(j,F),g=u(Cl,g,ue),me===null?I=Cl:me.sibling=Cl,me=Cl,F=oe}if(he.done)return l(j,F),fe&&Zt(j,ue),I;if(F===null){for(;!he.done;ue++,he=N.next())he=L(j,he.value,B),he!==null&&(g=u(he,g,ue),me===null?I=he:me.sibling=he,me=he);return fe&&Zt(j,ue),I}for(F=a(F);!he.done;ue++,he=N.next())he=R(F,j,ue,he.value,B),he!==null&&(e&&he.alternate!==null&&F.delete(he.key===null?ue:he.key),g=u(he,g,ue),me===null?I=he:me.sibling=he,me=he);return e&&F.forEach(function(dy){return t(j,dy)}),fe&&Zt(j,ue),I}function je(j,g,N,B){if(typeof N=="object"&&N!==null&&N.type===X&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case Q:e:{for(var I=N.key;g!==null;){if(g.key===I){if(I=N.type,I===X){if(g.tag===7){l(j,g.sibling),B=n(g,N.props.children),B.return=j,j=B;break e}}else if(g.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===P&&Zl(I)===g.type){l(j,g.sibling),B=n(g,N.props),un(B,N),B.return=j,j=B;break e}l(j,g);break}else t(j,g);g=g.sibling}N.type===X?(B=kl(N.props.children,j.mode,B,N.key),B.return=j,j=B):(B=iu(N.type,N.key,N.props,null,j.mode,B),un(B,N),B.return=j,j=B)}return s(j);case Y:e:{for(I=N.key;g!==null;){if(g.key===I)if(g.tag===4&&g.stateNode.containerInfo===N.containerInfo&&g.stateNode.implementation===N.implementation){l(j,g.sibling),B=n(g,N.children||[]),B.return=j,j=B;break e}else{l(j,g);break}else t(j,g);g=g.sibling}B=Ji(N,j.mode,B),B.return=j,j=B}return s(j);case P:return N=Zl(N),je(j,g,N,B)}if(Ue(N))return J(j,g,N,B);if(Ke(N)){if(I=Ke(N),typeof I!="function")throw Error(r(150));return N=I.call(N),ee(j,g,N,B)}if(typeof N.then=="function")return je(j,g,mu(N),B);if(N.$$typeof===Z)return je(j,g,ru(j,N),B);hu(j,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,g!==null&&g.tag===6?(l(j,g.sibling),B=n(g,N),B.return=j,j=B):(l(j,g),B=Ki(N,j.mode,B),B.return=j,j=B),s(j)):l(j,g)}return function(j,g,N,B){try{nn=0;var I=je(j,g,N,B);return Sa=null,I}catch(F){if(F===ba||F===fu)throw F;var me=ot(29,F,null,j.mode);return me.lanes=B,me.return=j,me}finally{}}}var Kl=ho(!0),vo=ho(!1),vl=!1;function ic(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cc(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 yl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function pl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ve&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=uu(e),Fr(e,null,l),t}return nu(e,a,t,l),uu(e)}function cn(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,ur(e,l)}}function sc(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 s={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=s:u=u.next=s,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 rc=!1;function sn(){if(rc){var e=ga;if(e!==null)throw e}}function rn(e,t,l,a){rc=!1;var n=e.updateQueue;vl=!1;var u=n.firstBaseUpdate,s=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var y=d,T=y.next;y.next=null,s===null?u=T:s.next=T,s=y;var D=e.alternate;D!==null&&(D=D.updateQueue,d=D.lastBaseUpdate,d!==s&&(d===null?D.firstBaseUpdate=T:d.next=T,D.lastBaseUpdate=y))}if(u!==null){var L=n.baseState;s=0,D=T=y=null,d=u;do{var z=d.lane&-536870913,R=z!==d.lane;if(R?(re&z)===z:(a&z)===z){z!==0&&z===xa&&(rc=!0),D!==null&&(D=D.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var J=e,ee=d;z=t;var je=l;switch(ee.tag){case 1:if(J=ee.payload,typeof J=="function"){L=J.call(je,L,z);break e}L=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ee.payload,z=typeof J=="function"?J.call(je,L,z):J,z==null)break e;L=p({},L,z);break e;case 2:vl=!0}}z=d.callback,z!==null&&(e.flags|=64,R&&(e.flags|=8192),R=n.callbacks,R===null?n.callbacks=[z]:R.push(z))}else R={lane:z,tag:d.tag,payload:d.payload,callback:d.callback,next:null},D===null?(T=D=R,y=L):D=D.next=R,s|=z;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;R=d,d=R.next,R.next=null,n.lastBaseUpdate=R,n.shared.pending=null}}while(!0);D===null&&(y=L),n.baseState=y,n.firstBaseUpdate=T,n.lastBaseUpdate=D,u===null&&(n.shared.lanes=0),jl|=s,e.lanes=s,e.memoizedState=L}}function yo(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function po(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)yo(l[e],t)}var ja=b(null),vu=b(0);function xo(e,t){e=ll,K(vu,e),K(ja,t),ll=e|t.baseLanes}function oc(){K(vu,ll),K(ja,ja.current)}function fc(){ll=vu.current,q(ja),q(vu)}var ft=b(null),Tt=null;function xl(e){var t=e.alternate;K(Ce,Ce.current&1),K(ft,e),Tt===null&&(t===null||ja.current!==null||t.memoizedState!==null)&&(Tt=e)}function dc(e){K(Ce,Ce.current),K(ft,e),Tt===null&&(Tt=e)}function go(e){e.tag===22?(K(Ce,Ce.current),K(ft,e),Tt===null&&(Tt=e)):gl()}function gl(){K(Ce,Ce.current),K(ft,ft.current)}function dt(e){q(ft),Tt===e&&(Tt=null),q(Ce)}var Ce=b(0);function yu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||xs(l)||gs(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jt=0,ne=null,be=null,Be=null,pu=!1,Ea=!1,Jl=!1,xu=0,on=0,Na=null,lv=0;function Me(){throw Error(r(321))}function mc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!rt(e[l],t[l]))return!1;return!0}function hc(e,t,l,a,n,u){return Jt=u,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e===null||e.memoizedState===null?lf:Mc,Jl=!1,u=l(a,n),Jl=!1,Ea&&(u=So(t,l,a,n)),bo(e),u}function bo(e){H.H=mn;var t=be!==null&&be.next!==null;if(Jt=0,Be=be=ne=null,pu=!1,on=0,Na=null,t)throw Error(r(300));e===null||we||(e=e.dependencies,e!==null&&su(e)&&(we=!0))}function So(e,t,l,a){ne=e;var n=0;do{if(Ea&&(Na=null),on=0,Ea=!1,25<=n)throw Error(r(301));if(n+=1,Be=be=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}H.H=af,u=t(l,a)}while(Ea);return u}function av(){var e=H.H,t=e.useState()[0];return t=typeof t.then=="function"?fn(t):t,e=e.useState()[0],(be!==null?be.memoizedState:null)!==e&&(ne.flags|=1024),t}function vc(){var e=xu!==0;return xu=0,e}function yc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function pc(e){if(pu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}pu=!1}Jt=0,Be=be=ne=null,Ea=!1,on=xu=0,Na=null}function We(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?ne.memoizedState=Be=e:Be=Be.next=e,Be}function De(){if(be===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=Be===null?ne.memoizedState:Be.next;if(t!==null)Be=t,be=e;else{if(e===null)throw ne.alternate===null?Error(r(467)):Error(r(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},Be===null?ne.memoizedState=Be=e:Be=Be.next=e}return Be}function gu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fn(e){var t=on;return on+=1,Na===null&&(Na=[]),e=oo(Na,e,t),t=ne,(Be===null?t.memoizedState:Be.next)===null&&(t=t.alternate,H.H=t===null||t.memoizedState===null?lf:Mc),e}function bu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fn(e);if(e.$$typeof===Z)return Qe(e)}throw Error(r(438,String(e)))}function xc(e){var t=null,l=ne.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ne.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=gu(),ne.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]=Fe;return t.index++,l}function $t(e,t){return typeof t=="function"?t(e):t}function Su(e){var t=De();return gc(t,be,e)}function gc(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var s=n.next;n.next=u.next,u.next=s}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var d=s=null,y=null,T=t,D=!1;do{var L=T.lane&-536870913;if(L!==T.lane?(re&L)===L:(Jt&L)===L){var z=T.revertLane;if(z===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),L===xa&&(D=!0);else if((Jt&z)===z){T=T.next,z===xa&&(D=!0);continue}else L={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},y===null?(d=y=L,s=u):y=y.next=L,ne.lanes|=z,jl|=z;L=T.action,Jl&&l(u,L),u=T.hasEagerState?T.eagerState:l(u,L)}else z={lane:L,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},y===null?(d=y=z,s=u):y=y.next=z,ne.lanes|=L,jl|=L;T=T.next}while(T!==null&&T!==t);if(y===null?s=u:y.next=d,!rt(u,e.memoizedState)&&(we=!0,D&&(l=ga,l!==null)))throw l;e.memoizedState=u,e.baseState=s,e.baseQueue=y,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function bc(e){var t=De(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var s=n=n.next;do u=e(u,s.action),s=s.next;while(s!==n);rt(u,t.memoizedState)||(we=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function jo(e,t,l){var a=ne,n=De(),u=fe;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=t();var s=!rt((be||n).memoizedState,l);if(s&&(n.memoizedState=l,we=!0),n=n.queue,Ec(To.bind(null,a,n,e),[e]),n.getSnapshot!==t||s||Be!==null&&Be.memoizedState.tag&1){if(a.flags|=2048,Ta(9,{destroy:void 0},No.bind(null,a,n,l,t),null),Ne===null)throw Error(r(349));u||(Jt&127)!==0||Eo(a,t,l)}return l}function Eo(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ne.updateQueue,t===null?(t=gu(),ne.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function No(e,t,l,a){t.value=l,t.getSnapshot=a,Ao(t)&&zo(e)}function To(e,t,l){return l(function(){Ao(t)&&zo(e)})}function Ao(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!rt(e,l)}catch{return!0}}function zo(e){var t=ql(e,2);t!==null&&nt(t,e,2)}function Sc(e){var t=We();if(typeof e=="function"){var l=e;if(e=l(),Jl){sl(!0);try{l()}finally{sl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:e},t}function _o(e,t,l,a){return e.baseState=l,gc(e,be,typeof a=="function"?a:$t)}function nv(e,t,l,a,n){if(Nu(e))throw Error(r(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(s){u.listeners.push(s)}};H.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Mo(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Mo(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=H.T,s={};H.T=s;try{var d=l(n,a),y=H.S;y!==null&&y(s,d),Ro(e,t,d)}catch(T){jc(e,t,T)}finally{u!==null&&s.types!==null&&(u.types=s.types),H.T=u}}else try{u=l(n,a),Ro(e,t,u)}catch(T){jc(e,t,T)}}function Ro(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Oo(e,t,a)},function(a){return jc(e,t,a)}):Oo(e,t,l)}function Oo(e,t,l){t.status="fulfilled",t.value=l,Co(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Mo(e,l)))}function jc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Co(t),t=t.next;while(t!==a)}e.action=null}function Co(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Do(e,t){return t}function Uo(e,t){if(fe){var l=Ne.formState;if(l!==null){e:{var a=ne;if(fe){if(Te){t:{for(var n=Te,u=Nt;n.nodeType!==8;){if(!u){n=null;break t}if(n=At(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Te=At(n.nextSibling),a=n.data==="F!";break e}}ml(a)}a=!1}a&&(t=l[0])}}return l=We(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Do,lastRenderedState:t},l.queue=a,l=Po.bind(null,ne,a),a.dispatch=l,a=Sc(!1),u=_c.bind(null,ne,!1,a.queue),a=We(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=nv.bind(null,ne,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Ho(e){var t=De();return Bo(t,be,e)}function Bo(e,t,l){if(t=gc(e,t,Do)[0],e=Su($t)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=fn(t)}catch(s){throw s===ba?fu:s}else a=t;t=De();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ne.flags|=2048,Ta(9,{destroy:void 0},uv.bind(null,n,l),null)),[a,u,e]}function uv(e,t){e.action=t}function wo(e){var t=De(),l=be;if(l!==null)return Bo(t,l,e);De(),t=t.memoizedState,l=De();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ta(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ne.updateQueue,t===null&&(t=gu(),ne.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 Lo(){return De().memoizedState}function ju(e,t,l,a){var n=We();ne.flags|=e,n.memoizedState=Ta(1|t,{destroy:void 0},l,a===void 0?null:a)}function Eu(e,t,l,a){var n=De();a=a===void 0?null:a;var u=n.memoizedState.inst;be!==null&&a!==null&&mc(a,be.memoizedState.deps)?n.memoizedState=Ta(t,u,l,a):(ne.flags|=e,n.memoizedState=Ta(1|t,u,l,a))}function qo(e,t){ju(8390656,8,e,t)}function Ec(e,t){Eu(2048,8,e,t)}function iv(e){ne.flags|=4;var t=ne.updateQueue;if(t===null)t=gu(),ne.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function ko(e){var t=De().memoizedState;return iv({ref:t,nextImpl:e}),function(){if((ve&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Yo(e,t){return Eu(4,2,e,t)}function Go(e,t){return Eu(4,4,e,t)}function Xo(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,Eu(4,4,Xo.bind(null,t,e),l)}function Nc(){}function Zo(e,t){var l=De();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&mc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Vo(e,t){var l=De();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&mc(t,a[1]))return a[0];if(a=e(),Jl){sl(!0);try{e()}finally{sl(!1)}}return l.memoizedState=[a,t],a}function Tc(e,t,l){return l===void 0||(Jt&1073741824)!==0&&(re&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Jf(),ne.lanes|=e,jl|=e,l)}function Ko(e,t,l,a){return rt(l,t)?l:ja.current!==null?(e=Tc(e,l,a),rt(e,t)||(we=!0),e):(Jt&42)===0||(Jt&1073741824)!==0&&(re&261930)===0?(we=!0,e.memoizedState=l):(e=Jf(),ne.lanes|=e,jl|=e,t)}function Jo(e,t,l,a,n){var u=V.p;V.p=u!==0&&8>u?u:8;var s=H.T,d={};H.T=d,_c(e,!1,t,l);try{var y=n(),T=H.S;if(T!==null&&T(d,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var D=tv(y,a);dn(e,t,D,vt(e))}else dn(e,t,a,vt(e))}catch(L){dn(e,t,{then:function(){},status:"rejected",reason:L},vt())}finally{V.p=u,s!==null&&d.types!==null&&(s.types=d.types),H.T=s}}function cv(){}function Ac(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=$o(e).queue;Jo(e,n,t,te,l===null?cv:function(){return Wo(e),l(a)})}function $o(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:te},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$t,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wo(e){var t=$o(e);t.next===null&&(t=e.alternate.memoizedState),dn(e,t.next.queue,{},vt())}function zc(){return Qe(Mn)}function Fo(){return De().memoizedState}function Io(){return De().memoizedState}function sv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=vt();e=yl(l);var a=pl(t,e,l);a!==null&&(nt(a,t,l),cn(a,t,l)),t={cache:lc()},e.payload=t;return}t=t.return}}function rv(e,t,l){var a=vt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Nu(e)?ef(t,l):(l=Zi(e,t,l,a),l!==null&&(nt(l,e,a),tf(l,t,a)))}function Po(e,t,l){var a=vt();dn(e,t,l,a)}function dn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Nu(e))ef(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var s=t.lastRenderedState,d=u(s,l);if(n.hasEagerState=!0,n.eagerState=d,rt(d,s))return nu(e,t,n,0),Ne===null&&au(),!1}catch{}finally{}if(l=Zi(e,t,n,a),l!==null)return nt(l,e,a),tf(l,t,a),!0}return!1}function _c(e,t,l,a){if(a={lane:2,revertLane:is(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Nu(e)){if(t)throw Error(r(479))}else t=Zi(e,l,a,2),t!==null&&nt(t,e,2)}function Nu(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function ef(e,t){Ea=pu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function tf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,ur(e,l)}}var mn={readContext:Qe,use:bu,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useLayoutEffect:Me,useInsertionEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useSyncExternalStore:Me,useId:Me,useHostTransitionStatus:Me,useFormState:Me,useActionState:Me,useOptimistic:Me,useMemoCache:Me,useCacheRefresh:Me};mn.useEffectEvent=Me;var lf={readContext:Qe,use:bu,useCallback:function(e,t){return We().memoizedState=[e,t===void 0?null:t],e},useContext:Qe,useEffect:qo,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ju(4194308,4,Xo.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ju(4194308,4,e,t)},useInsertionEffect:function(e,t){ju(4,2,e,t)},useMemo:function(e,t){var l=We();t=t===void 0?null:t;var a=e();if(Jl){sl(!0);try{e()}finally{sl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=We();if(l!==void 0){var n=l(t);if(Jl){sl(!0);try{l(t)}finally{sl(!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=rv.bind(null,ne,e),[a.memoizedState,e]},useRef:function(e){var t=We();return e={current:e},t.memoizedState=e},useState:function(e){e=Sc(e);var t=e.queue,l=Po.bind(null,ne,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Nc,useDeferredValue:function(e,t){var l=We();return Tc(l,e,t)},useTransition:function(){var e=Sc(!1);return e=Jo.bind(null,ne,e.queue,!0,!1),We().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ne,n=We();if(fe){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ne===null)throw Error(r(349));(re&127)!==0||Eo(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,qo(To.bind(null,a,u,e),[e]),a.flags|=2048,Ta(9,{destroy:void 0},No.bind(null,a,u,l,t),null),l},useId:function(){var e=We(),t=Ne.identifierPrefix;if(fe){var l=Bt,a=Ht;l=(a&~(1<<32-st(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=xu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=lv++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:zc,useFormState:Uo,useActionState:Uo,useOptimistic:function(e){var t=We();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=_c.bind(null,ne,!0,l),l.dispatch=t,[e,t]},useMemoCache:xc,useCacheRefresh:function(){return We().memoizedState=sv.bind(null,ne)},useEffectEvent:function(e){var t=We(),l={impl:e};return t.memoizedState=l,function(){if((ve&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Mc={readContext:Qe,use:bu,useCallback:Zo,useContext:Qe,useEffect:Ec,useImperativeHandle:Qo,useInsertionEffect:Yo,useLayoutEffect:Go,useMemo:Vo,useReducer:Su,useRef:Lo,useState:function(){return Su($t)},useDebugValue:Nc,useDeferredValue:function(e,t){var l=De();return Ko(l,be.memoizedState,e,t)},useTransition:function(){var e=Su($t)[0],t=De().memoizedState;return[typeof e=="boolean"?e:fn(e),t]},useSyncExternalStore:jo,useId:Fo,useHostTransitionStatus:zc,useFormState:Ho,useActionState:Ho,useOptimistic:function(e,t){var l=De();return _o(l,be,e,t)},useMemoCache:xc,useCacheRefresh:Io};Mc.useEffectEvent=ko;var af={readContext:Qe,use:bu,useCallback:Zo,useContext:Qe,useEffect:Ec,useImperativeHandle:Qo,useInsertionEffect:Yo,useLayoutEffect:Go,useMemo:Vo,useReducer:bc,useRef:Lo,useState:function(){return bc($t)},useDebugValue:Nc,useDeferredValue:function(e,t){var l=De();return be===null?Tc(l,e,t):Ko(l,be.memoizedState,e,t)},useTransition:function(){var e=bc($t)[0],t=De().memoizedState;return[typeof e=="boolean"?e:fn(e),t]},useSyncExternalStore:jo,useId:Fo,useHostTransitionStatus:zc,useFormState:wo,useActionState:wo,useOptimistic:function(e,t){var l=De();return be!==null?_o(l,be,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:xc,useCacheRefresh:Io};af.useEffectEvent=ko;function Rc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:p({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Oc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=vt(),n=yl(a);n.payload=t,l!=null&&(n.callback=l),t=pl(e,n,a),t!==null&&(nt(t,e,a),cn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=vt(),n=yl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=pl(e,n,a),t!==null&&(nt(t,e,a),cn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=vt(),a=yl(l);a.tag=2,t!=null&&(a.callback=t),t=pl(e,a,l),t!==null&&(nt(t,e,l),cn(t,e,l))}};function nf(e,t,l,a,n,u,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,s):t.prototype&&t.prototype.isPureReactComponent?!Ia(l,a)||!Ia(n,u):!0}function uf(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&&Oc.enqueueReplaceState(t,t.state,null)}function $l(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=p({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function cf(e){lu(e)}function sf(e){console.error(e)}function rf(e){lu(e)}function Tu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function of(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 Cc(e,t,l){return l=yl(l),l.tag=3,l.payload={element:null},l.callback=function(){Tu(e,t)},l}function ff(e){return e=yl(e),e.tag=3,e}function df(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(){of(t,l,a)}}var s=l.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){of(t,l,a),typeof n!="function"&&(El===null?El=new Set([this]):El.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function ov(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&pa(t,l,n,!0),l=ft.current,l!==null){switch(l.tag){case 31:case 13:return Tt===null?wu():l.alternate===null&&Re===0&&(Re=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===du?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),as(e,a,n)),!1;case 22:return l.flags|=65536,a===du?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)),as(e,a,n)),!1}throw Error(r(435,l.tag))}return as(e,a,n),wu(),!1}if(fe)return t=ft.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Fi&&(e=Error(r(422),{cause:a}),tn(St(e,l)))):(a!==Fi&&(t=Error(r(423),{cause:a}),tn(St(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=St(a,l),n=Cc(e.stateNode,a,n),sc(e,n),Re!==4&&(Re=2)),!1;var u=Error(r(520),{cause:a});if(u=St(u,l),Sn===null?Sn=[u]:Sn.push(u),Re!==4&&(Re=2),t===null)return!0;a=St(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Cc(l.stateNode,a,e),sc(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"&&(El===null||!El.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=ff(n),df(n,e,l,a),sc(l,n),!1}l=l.return}while(l!==null);return!1}var Dc=Error(r(461)),we=!1;function Ze(e,t,l,a){t.child=e===null?vo(t,null,l,a):Kl(t,e.child,l,a)}function mf(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var s={};for(var d in a)d!=="ref"&&(s[d]=a[d])}else s=a;return Xl(t),a=hc(e,t,l,s,u,n),d=vc(),e!==null&&!we?(yc(e,t,n),Wt(e,t,n)):(fe&&d&&$i(t),t.flags|=1,Ze(e,t,a,n),t.child)}function hf(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Vi(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,vf(e,t,u,a,n)):(e=iu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Yc(e,n)){var s=u.memoizedProps;if(l=l.compare,l=l!==null?l:Ia,l(s,a)&&e.ref===t.ref)return Wt(e,t,n)}return t.flags|=1,e=Qt(u,a),e.ref=t.ref,e.return=t,t.child=e}function vf(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(Ia(u,a)&&e.ref===t.ref)if(we=!1,t.pendingProps=a=u,Yc(e,n))(e.flags&131072)!==0&&(we=!0);else return t.lanes=e.lanes,Wt(e,t,n)}return Uc(e,t,l,a,n)}function yf(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 pf(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ou(t,u!==null?u.cachePool:null),u!==null?xo(t,u):oc(),go(t);else return a=t.lanes=536870912,pf(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(ou(t,u.cachePool),xo(t,u),gl(),t.memoizedState=null):(e!==null&&ou(t,null),oc(),gl());return Ze(e,t,n,l),t.child}function hn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function pf(e,t,l,a,n){var u=nc();return u=u===null?null:{parent:He._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&ou(t,null),oc(),go(t),e!==null&&pa(e,t,a,!0),t.childLanes=n,null}function Au(e,t){return t=_u({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function xf(e,t,l){return Kl(t,e.child,null,l),e=Au(t,t.pendingProps),e.flags|=2,dt(t),t.memoizedState=null,e}function fv(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(fe){if(a.mode==="hidden")return e=Au(t,a),t.lanes=536870912,hn(null,e);if(dc(t),(e=Te)?(e=Rd(e,Nt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fl!==null?{id:Ht,overflow:Bt}:null,retryLane:536870912,hydrationErrors:null},l=Pr(e),l.return=t,t.child=l,Xe=t,Te=null)):e=null,e===null)throw ml(t);return t.lanes=536870912,null}return Au(t,a)}var u=e.memoizedState;if(u!==null){var s=u.dehydrated;if(dc(t),n)if(t.flags&256)t.flags&=-257,t=xf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(we||pa(e,t,l,!1),n=(l&e.childLanes)!==0,we||n){if(a=Ne,a!==null&&(s=ir(a,l),s!==0&&s!==u.retryLane))throw u.retryLane=s,ql(e,s),nt(a,e,s),Dc;wu(),t=xf(e,t,l)}else e=u.treeContext,Te=At(s.nextSibling),Xe=t,fe=!0,dl=null,Nt=!1,e!==null&&lo(t,e),t=Au(t,a),t.flags|=4096;return t}return e=Qt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zu(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(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Uc(e,t,l,a,n){return Xl(t),l=hc(e,t,l,a,void 0,n),a=vc(),e!==null&&!we?(yc(e,t,n),Wt(e,t,n)):(fe&&a&&$i(t),t.flags|=1,Ze(e,t,l,n),t.child)}function gf(e,t,l,a,n,u){return Xl(t),t.updateQueue=null,l=So(t,a,l,n),bo(e),a=vc(),e!==null&&!we?(yc(e,t,u),Wt(e,t,u)):(fe&&a&&$i(t),t.flags|=1,Ze(e,t,l,u),t.child)}function bf(e,t,l,a,n){if(Xl(t),t.stateNode===null){var u=ma,s=l.contextType;typeof s=="object"&&s!==null&&(u=Qe(s)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Oc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},ic(t),s=l.contextType,u.context=typeof s=="object"&&s!==null?Qe(s):ma,u.state=t.memoizedState,s=l.getDerivedStateFromProps,typeof s=="function"&&(Rc(t,l,s,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(s=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),s!==u.state&&Oc.enqueueReplaceState(u,u.state,null),rn(t,a,u,n),sn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var d=t.memoizedProps,y=$l(l,d);u.props=y;var T=u.context,D=l.contextType;s=ma,typeof D=="object"&&D!==null&&(s=Qe(D));var L=l.getDerivedStateFromProps;D=typeof L=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,D||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||T!==s)&&uf(t,u,a,s),vl=!1;var z=t.memoizedState;u.state=z,rn(t,a,u,n),sn(),T=t.memoizedState,d||z!==T||vl?(typeof L=="function"&&(Rc(t,l,L,a),T=t.memoizedState),(y=vl||nf(t,l,y,a,z,T,s))?(D||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=T),u.props=a,u.state=T,u.context=s,a=y):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,cc(e,t),s=t.memoizedProps,D=$l(l,s),u.props=D,L=t.pendingProps,z=u.context,T=l.contextType,y=ma,typeof T=="object"&&T!==null&&(y=Qe(T)),d=l.getDerivedStateFromProps,(T=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s!==L||z!==y)&&uf(t,u,a,y),vl=!1,z=t.memoizedState,u.state=z,rn(t,a,u,n),sn();var R=t.memoizedState;s!==L||z!==R||vl||e!==null&&e.dependencies!==null&&su(e.dependencies)?(typeof d=="function"&&(Rc(t,l,d,a),R=t.memoizedState),(D=vl||nf(t,l,D,a,z,R,y)||e!==null&&e.dependencies!==null&&su(e.dependencies))?(T||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,R,y),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,R,y)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=R),u.props=a,u.state=R,u.context=y,a=D):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,zu(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=Kl(t,e.child,null,n),t.child=Kl(t,null,l,n)):Ze(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Wt(e,t,n),e}function Sf(e,t,l,a){return Yl(),t.flags|=256,Ze(e,t,l,a),t.child}var Hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bc(e){return{baseLanes:e,cachePool:so()}}function wc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=ht),e}function jf(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,s;if((s=u)||(s=e!==null&&e.memoizedState===null?!1:(Ce.current&2)!==0),s&&(n=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(fe){if(n?xl(t):gl(),(e=Te)?(e=Rd(e,Nt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fl!==null?{id:Ht,overflow:Bt}:null,retryLane:536870912,hydrationErrors:null},l=Pr(e),l.return=t,t.child=l,Xe=t,Te=null)):e=null,e===null)throw ml(t);return gs(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(gl(),n=t.mode,d=_u({mode:"hidden",children:d},n),a=kl(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Bc(l),a.childLanes=wc(e,s,l),t.memoizedState=Hc,hn(null,a)):(xl(t),Lc(t,d))}var y=e.memoizedState;if(y!==null&&(d=y.dehydrated,d!==null)){if(u)t.flags&256?(xl(t),t.flags&=-257,t=qc(e,t,l)):t.memoizedState!==null?(gl(),t.child=e.child,t.flags|=128,t=null):(gl(),d=a.fallback,n=t.mode,a=_u({mode:"visible",children:a.children},n),d=kl(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,Kl(t,e.child,null,l),a=t.child,a.memoizedState=Bc(l),a.childLanes=wc(e,s,l),t.memoizedState=Hc,t=hn(null,a));else if(xl(t),gs(d)){if(s=d.nextSibling&&d.nextSibling.dataset,s)var T=s.dgst;s=T,a=Error(r(419)),a.stack="",a.digest=s,tn({value:a,source:null,stack:null}),t=qc(e,t,l)}else if(we||pa(e,t,l,!1),s=(l&e.childLanes)!==0,we||s){if(s=Ne,s!==null&&(a=ir(s,l),a!==0&&a!==y.retryLane))throw y.retryLane=a,ql(e,a),nt(s,e,a),Dc;xs(d)||wu(),t=qc(e,t,l)}else xs(d)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Te=At(d.nextSibling),Xe=t,fe=!0,dl=null,Nt=!1,e!==null&&lo(t,e),t=Lc(t,a.children),t.flags|=4096);return t}return n?(gl(),d=a.fallback,n=t.mode,y=e.child,T=y.sibling,a=Qt(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&65011712,T!==null?d=Qt(T,d):(d=kl(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,hn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Bc(l):(n=d.cachePool,n!==null?(y=He._currentValue,n=n.parent!==y?{parent:y,pool:y}:n):n=so(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=wc(e,s,l),t.memoizedState=Hc,hn(e.child,a)):(xl(t),l=e.child,e=l.sibling,l=Qt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=l,t.memoizedState=null,l)}function Lc(e,t){return t=_u({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _u(e,t){return e=ot(22,e,null,t),e.lanes=0,e}function qc(e,t,l){return Kl(t,e.child,null,l),e=Lc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ef(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ec(e.return,t,l)}function kc(e,t,l,a,n,u){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=a,s.tail=l,s.tailMode=n,s.treeForkCount=u)}function Nf(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var s=Ce.current,d=(s&2)!==0;if(d?(s=s&1|2,t.flags|=128):s&=1,K(Ce,s),Ze(e,t,a,l),a=fe?en:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ef(e,l,t);else if(e.tag===19)Ef(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"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&yu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),kc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&yu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}kc(t,!0,l,null,u,a);break;case"together":kc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Wt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),jl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Qt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Qt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Yc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&su(e)))}function dv(e,t,l){switch(t.tag){case 3:$e(t,t.stateNode.containerInfo),hl(t,He,e.memoizedState.cache),Yl();break;case 27:case 5:qa(t);break;case 4:$e(t,t.stateNode.containerInfo);break;case 10:hl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,dc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(xl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?jf(e,t,l):(xl(t),e=Wt(e,t,l),e!==null?e.sibling:null);xl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(pa(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Nf(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),K(Ce,Ce.current),a)break;return null;case 22:return t.lanes=0,yf(e,t,l,t.pendingProps);case 24:hl(t,He,e.memoizedState.cache)}return Wt(e,t,l)}function Tf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)we=!0;else{if(!Yc(e,l)&&(t.flags&128)===0)return we=!1,dv(e,t,l);we=(e.flags&131072)!==0}else we=!1,fe&&(t.flags&1048576)!==0&&to(t,en,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Zl(t.elementType),t.type=e,typeof e=="function")Vi(e)?(a=$l(e,a),t.tag=1,t=bf(null,t,e,a,l)):(t.tag=0,t=Uc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===O){t.tag=11,t=mf(null,t,e,a,l);break e}else if(n===k){t.tag=14,t=hf(null,t,e,a,l);break e}}throw t=pt(e)||e,Error(r(306,t,""))}}return t;case 0:return Uc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=$l(a,t.pendingProps),bf(e,t,a,n,l);case 3:e:{if($e(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,cc(e,t),rn(t,a,null,l);var s=t.memoizedState;if(a=s.cache,hl(t,He,a),a!==u.cache&&tc(t,[He],l,!0),sn(),a=s.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Sf(e,t,a,l);break e}else if(a!==n){n=St(Error(r(424)),t),tn(n),t=Sf(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(Te=At(e.firstChild),Xe=t,fe=!0,dl=null,Nt=!0,l=vo(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Yl(),a===n){t=Wt(e,t,l);break e}Ze(e,t,a,l)}t=t.child}return t;case 26:return zu(e,t),e===null?(l=Bd(t.type,null,t.pendingProps,null))?t.memoizedState=l:fe||(l=t.type,e=t.pendingProps,a=Qu(ie.current).createElement(l),a[Ge]=t,a[Ie]=e,Ve(a,l,e),ke(a),t.stateNode=a):t.memoizedState=Bd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return qa(t),e===null&&fe&&(a=t.stateNode=Dd(t.type,t.pendingProps,ie.current),Xe=t,Nt=!0,n=Te,zl(t.type)?(bs=n,Te=At(a.firstChild)):Te=n),Ze(e,t,t.pendingProps.children,l),zu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&fe&&((n=a=Te)&&(a=Gv(a,t.type,t.pendingProps,Nt),a!==null?(t.stateNode=a,Xe=t,Te=At(a.firstChild),Nt=!1,n=!0):n=!1),n||ml(t)),qa(t),n=t.type,u=t.pendingProps,s=e!==null?e.memoizedProps:null,a=u.children,vs(n,u)?a=null:s!==null&&vs(n,s)&&(t.flags|=32),t.memoizedState!==null&&(n=hc(e,t,av,null,null,l),Mn._currentValue=n),zu(e,t),Ze(e,t,a,l),t.child;case 6:return e===null&&fe&&((e=l=Te)&&(l=Xv(l,t.pendingProps,Nt),l!==null?(t.stateNode=l,Xe=t,Te=null,e=!0):e=!1),e||ml(t)),null;case 13:return jf(e,t,l);case 4:return $e(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Kl(t,null,a,l):Ze(e,t,a,l),t.child;case 11:return mf(e,t,t.type,t.pendingProps,l);case 7:return Ze(e,t,t.pendingProps,l),t.child;case 8:return Ze(e,t,t.pendingProps.children,l),t.child;case 12:return Ze(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,hl(t,t.type,a.value),Ze(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Xl(t),n=Qe(n),a=a(n),t.flags|=1,Ze(e,t,a,l),t.child;case 14:return hf(e,t,t.type,t.pendingProps,l);case 15:return vf(e,t,t.type,t.pendingProps,l);case 19:return Nf(e,t,l);case 31:return fv(e,t,l);case 22:return yf(e,t,l,t.pendingProps);case 24:return Xl(t),a=Qe(He),e===null?(n=nc(),n===null&&(n=Ne,u=lc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},ic(t),hl(t,He,n)):((e.lanes&l)!==0&&(cc(e,t),rn(t,null,null,l),sn()),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),hl(t,He,a)):(a=u.cache,hl(t,He,a),a!==n.cache&&tc(t,[He],l,!0))),Ze(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Ft(e){e.flags|=4}function Gc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(If())e.flags|=8192;else throw Vl=du,uc}else e.flags&=-16777217}function Af(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Yd(t))if(If())e.flags|=8192;else throw Vl=du,uc}function Mu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ar():536870912,e.lanes|=t,Ma|=t)}function vn(e,t){if(!fe)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ae(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&65011712,a|=n.flags&65011712,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 mv(e,t,l){var a=t.pendingProps;switch(Wi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return Ae(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Kt(He),Oe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ya(t)?Ft(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ii())),Ae(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(Ft(t),u!==null?(Ae(t),Af(t,u)):(Ae(t),Gc(t,n,null,a,l))):u?u!==e.memoizedState?(Ft(t),Ae(t),Af(t,u)):(Ae(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Ft(t),Ae(t),Gc(t,n,e,a,l)),null;case 27:if(kn(t),l=ie.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ft(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ae(t),null}e=W.current,ya(t)?ao(t):(e=Dd(n,a,l),t.stateNode=e,Ft(t))}return Ae(t),null;case 5:if(kn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Ft(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ae(t),null}if(u=W.current,ya(t))ao(t);else{var s=Qu(ie.current);switch(u){case 1:u=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=s.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?s.createElement(n,{is:a.is}):s.createElement(n)}}u[Ge]=t,u[Ie]=a;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)u.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=u;e:switch(Ve(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&&Ft(t)}}return Ae(t),Gc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Ft(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ie.current,ya(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Xe,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Ge]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||jd(e.nodeValue,l)),e||ml(t,!0)}else e=Qu(e).createTextNode(a),e[Ge]=t,t.stateNode=e}return Ae(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ya(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Ge]=t}else Yl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),e=!1}else l=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(dt(t),t):(dt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ae(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ya(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[Ge]=t}else Yl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),n=!1}else n=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(dt(t),t):(dt(t),null)}return dt(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),Mu(t,t.updateQueue),Ae(t),null);case 4:return Oe(),e===null&&os(t.stateNode.containerInfo),Ae(t),null;case 10:return Kt(t.type),Ae(t),null;case 19:if(q(Ce),a=t.memoizedState,a===null)return Ae(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)vn(a,!1);else{if(Re!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=yu(e),u!==null){for(t.flags|=128,vn(a,!1),e=u.updateQueue,t.updateQueue=e,Mu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Ir(l,e),l=l.sibling;return K(Ce,Ce.current&1|2),fe&&Zt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&it()>Uu&&(t.flags|=128,n=!0,vn(a,!1),t.lanes=4194304)}else{if(!n)if(e=yu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Mu(t,e),vn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!fe)return Ae(t),null}else 2*it()-a.renderingStartTime>Uu&&l!==536870912&&(t.flags|=128,n=!0,vn(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)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=it(),e.sibling=null,l=Ce.current,K(Ce,n?l&1|2:l&1),fe&&Zt(t,a.treeForkCount),e):(Ae(t),null);case 22:case 23:return dt(t),fc(),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&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),l=t.updateQueue,l!==null&&Mu(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&&q(Ql),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Kt(He),Ae(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function hv(e,t){switch(Wi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Kt(He),Oe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return kn(t),null;case 31:if(t.memoizedState!==null){if(dt(t),t.alternate===null)throw Error(r(340));Yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Ce),null;case 4:return Oe(),null;case 10:return Kt(t.type),null;case 22:case 23:return dt(t),fc(),e!==null&&q(Ql),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Kt(He),null;case 25:return null;default:return null}}function zf(e,t){switch(Wi(t),t.tag){case 3:Kt(He),Oe();break;case 26:case 27:case 5:kn(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&dt(t);break;case 13:dt(t);break;case 19:q(Ce);break;case 10:Kt(t.type);break;case 22:case 23:dt(t),fc(),e!==null&&q(Ql);break;case 24:Kt(He)}}function yn(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,s=l.inst;a=u(),s.destroy=a}l=l.next}while(l!==n)}}catch(d){xe(t,t.return,d)}}function bl(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 s=a.inst,d=s.destroy;if(d!==void 0){s.destroy=void 0,n=t;var y=l,T=d;try{T()}catch(D){xe(n,y,D)}}}a=a.next}while(a!==u)}}catch(D){xe(t,t.return,D)}}function _f(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{po(t,l)}catch(a){xe(e,e.return,a)}}}function Mf(e,t,l){l.props=$l(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){xe(e,t,a)}}function pn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){xe(e,t,n)}}function wt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){xe(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){xe(e,t,n)}else l.current=null}function Rf(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){xe(e,e.return,n)}}function Xc(e,t,l){try{var a=e.stateNode;Bv(a,e.type,l,t),a[Ie]=t}catch(n){xe(e,e.return,n)}}function Of(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&zl(e.type)||e.tag===4}function Qc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Of(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&&zl(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 Zc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Gt));else if(a!==4&&(a===27&&zl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Zc(e,t,l),e=e.sibling;e!==null;)Zc(e,t,l),e=e.sibling}function Ru(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&zl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ru(e,t,l),e=e.sibling;e!==null;)Ru(e,t,l),e=e.sibling}function Cf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ve(t,a,l),t[Ge]=e,t[Ie]=l}catch(u){xe(e,e.return,u)}}var It=!1,Le=!1,Vc=!1,Df=typeof WeakSet=="function"?WeakSet:Set,Ye=null;function vv(e,t){if(e=e.containerInfo,ms=Fu,e=Xr(e),qi(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var s=0,d=-1,y=-1,T=0,D=0,L=e,z=null;t:for(;;){for(var R;L!==l||n!==0&&L.nodeType!==3||(d=s+n),L!==u||a!==0&&L.nodeType!==3||(y=s+a),L.nodeType===3&&(s+=L.nodeValue.length),(R=L.firstChild)!==null;)z=L,L=R;for(;;){if(L===e)break t;if(z===l&&++T===n&&(d=s),z===u&&++D===a&&(y=s),(R=L.nextSibling)!==null)break;L=z,z=L.parentNode}L=R}l=d===-1||y===-1?null:{start:d,end:y}}else l=null}l=l||{start:0,end:0}}else l=null;for(hs={focusedElem:e,selectionRange:l},Fu=!1,Ye=t;Ye!==null;)if(t=Ye,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ye=e;else for(;Ye!==null;){switch(t=Ye,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var J=$l(l.type,n);e=a.getSnapshotBeforeUpdate(J,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(ee){xe(l,l.return,ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)ps(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ps(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Ye=e;break}Ye=t.return}}function Uf(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:el(e,l),a&4&&yn(5,l);break;case 1:if(el(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(s){xe(l,l.return,s)}else{var n=$l(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){xe(l,l.return,s)}}a&64&&_f(l),a&512&&pn(l,l.return);break;case 3:if(el(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{po(e,t)}catch(s){xe(l,l.return,s)}}break;case 27:t===null&&a&4&&Cf(l);case 26:case 5:el(e,l),t===null&&a&4&&Rf(l),a&512&&pn(l,l.return);break;case 12:el(e,l);break;case 31:el(e,l),a&4&&wf(e,l);break;case 13:el(e,l),a&4&&Lf(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Nv.bind(null,l),Qv(e,l))));break;case 22:if(a=l.memoizedState!==null||It,!a){t=t!==null&&t.memoizedState!==null||Le,n=It;var u=Le;It=a,(Le=t)&&!u?tl(e,l,(l.subtreeFlags&8772)!==0):el(e,l),It=n,Le=u}break;case 30:break;default:el(e,l)}}function Hf(e){var t=e.alternate;t!==null&&(e.alternate=null,Hf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ji(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 ze=null,et=!1;function Pt(e,t,l){for(l=l.child;l!==null;)Bf(e,t,l),l=l.sibling}function Bf(e,t,l){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(ka,l)}catch{}switch(l.tag){case 26:Le||wt(l,t),Pt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Le||wt(l,t);var a=ze,n=et;zl(l.type)&&(ze=l.stateNode,et=!1),Pt(e,t,l),An(l.stateNode),ze=a,et=n;break;case 5:Le||wt(l,t);case 6:if(a=ze,n=et,ze=null,Pt(e,t,l),ze=a,et=n,ze!==null)if(et)try{(ze.nodeType===9?ze.body:ze.nodeName==="HTML"?ze.ownerDocument.body:ze).removeChild(l.stateNode)}catch(u){xe(l,t,u)}else try{ze.removeChild(l.stateNode)}catch(u){xe(l,t,u)}break;case 18:ze!==null&&(et?(e=ze,_d(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),wa(e)):_d(ze,l.stateNode));break;case 4:a=ze,n=et,ze=l.stateNode.containerInfo,et=!0,Pt(e,t,l),ze=a,et=n;break;case 0:case 11:case 14:case 15:bl(2,l,t),Le||bl(4,l,t),Pt(e,t,l);break;case 1:Le||(wt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Mf(l,t,a)),Pt(e,t,l);break;case 21:Pt(e,t,l);break;case 22:Le=(a=Le)||l.memoizedState!==null,Pt(e,t,l),Le=a;break;default:Pt(e,t,l)}}function wf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{wa(e)}catch(l){xe(t,t.return,l)}}}function Lf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{wa(e)}catch(l){xe(t,t.return,l)}}function yv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Df),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Df),t;default:throw Error(r(435,e.tag))}}function Ou(e,t){var l=yv(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Tv.bind(null,e,a);a.then(n,n)}})}function tt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,s=t,d=s;e:for(;d!==null;){switch(d.tag){case 27:if(zl(d.type)){ze=d.stateNode,et=!1;break e}break;case 5:ze=d.stateNode,et=!1;break e;case 3:case 4:ze=d.stateNode.containerInfo,et=!0;break e}d=d.return}if(ze===null)throw Error(r(160));Bf(u,s,n),ze=null,et=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)qf(t,e),t=t.sibling}var Rt=null;function qf(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:tt(t,e),lt(e),a&4&&(bl(3,e,e.return),yn(3,e),bl(5,e,e.return));break;case 1:tt(t,e),lt(e),a&512&&(Le||l===null||wt(l,l.return)),a&64&&It&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Rt;if(tt(t,e),lt(e),a&512&&(Le||l===null||wt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Xa]||u[Ge]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ve(u,a,l),u[Ge]=e,ke(u),a=u;break e;case"link":var s=qd("link","href",n).get(a+(l.href||""));if(s){for(var d=0;d<s.length;d++)if(u=s[d],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){s.splice(d,1);break t}}u=n.createElement(a),Ve(u,a,l),n.head.appendChild(u);break;case"meta":if(s=qd("meta","content",n).get(a+(l.content||""))){for(d=0;d<s.length;d++)if(u=s[d],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){s.splice(d,1);break t}}u=n.createElement(a),Ve(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[Ge]=e,ke(u),a=u}e.stateNode=a}else kd(n,e.type,e.stateNode);else e.stateNode=Ld(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?kd(n,e.type,e.stateNode):Ld(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Xc(e,e.memoizedProps,l.memoizedProps)}break;case 27:tt(t,e),lt(e),a&512&&(Le||l===null||wt(l,l.return)),l!==null&&a&4&&Xc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(tt(t,e),lt(e),a&512&&(Le||l===null||wt(l,l.return)),e.flags&32){n=e.stateNode;try{ia(n,"")}catch(J){xe(e,e.return,J)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Xc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Vc=!0);break;case 6:if(tt(t,e),lt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(J){xe(e,e.return,J)}}break;case 3:if(Ku=null,n=Rt,Rt=Zu(t.containerInfo),tt(t,e),Rt=n,lt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{wa(t.containerInfo)}catch(J){xe(e,e.return,J)}Vc&&(Vc=!1,kf(e));break;case 4:a=Rt,Rt=Zu(e.stateNode.containerInfo),tt(t,e),lt(e),Rt=a;break;case 12:tt(t,e),lt(e);break;case 31:tt(t,e),lt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 13:tt(t,e),lt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Du=it()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 22:n=e.memoizedState!==null;var y=l!==null&&l.memoizedState!==null,T=It,D=Le;if(It=T||n,Le=D||y,tt(t,e),Le=D,It=T,lt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||y||It||Le||Wl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){y=l=t;try{if(u=y.stateNode,n)s=u.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{d=y.stateNode;var L=y.memoizedProps.style,z=L!=null&&L.hasOwnProperty("display")?L.display:null;d.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(J){xe(y,y.return,J)}}}else if(t.tag===6){if(l===null){y=t;try{y.stateNode.nodeValue=n?"":y.memoizedProps}catch(J){xe(y,y.return,J)}}}else if(t.tag===18){if(l===null){y=t;try{var R=y.stateNode;n?Md(R,!0):Md(y.stateNode,!1)}catch(J){xe(y,y.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Ou(e,l))));break;case 19:tt(t,e),lt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 30:break;case 21:break;default:tt(t,e),lt(e)}}function lt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Of(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=Qc(e);Ru(e,u,n);break;case 5:var s=l.stateNode;l.flags&32&&(ia(s,""),l.flags&=-33);var d=Qc(e);Ru(e,d,s);break;case 3:case 4:var y=l.stateNode.containerInfo,T=Qc(e);Zc(e,T,y);break;default:throw Error(r(161))}}catch(D){xe(e,e.return,D)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function kf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;kf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function el(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Uf(e,t.alternate,t),t=t.sibling}function Wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:bl(4,t,t.return),Wl(t);break;case 1:wt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Mf(t,t.return,l),Wl(t);break;case 27:An(t.stateNode);case 26:case 5:wt(t,t.return),Wl(t);break;case 22:t.memoizedState===null&&Wl(t);break;case 30:Wl(t);break;default:Wl(t)}e=e.sibling}}function tl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,s=u.flags;switch(u.tag){case 0:case 11:case 15:tl(n,u,l),yn(4,u);break;case 1:if(tl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(T){xe(a,a.return,T)}if(a=u,n=a.updateQueue,n!==null){var d=a.stateNode;try{var y=n.shared.hiddenCallbacks;if(y!==null)for(n.shared.hiddenCallbacks=null,n=0;n<y.length;n++)yo(y[n],d)}catch(T){xe(a,a.return,T)}}l&&s&64&&_f(u),pn(u,u.return);break;case 27:Cf(u);case 26:case 5:tl(n,u,l),l&&a===null&&s&4&&Rf(u),pn(u,u.return);break;case 12:tl(n,u,l);break;case 31:tl(n,u,l),l&&s&4&&wf(n,u);break;case 13:tl(n,u,l),l&&s&4&&Lf(n,u);break;case 22:u.memoizedState===null&&tl(n,u,l),pn(u,u.return);break;case 30:break;default:tl(n,u,l)}t=t.sibling}}function Kc(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&&ln(l))}function Jc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ln(e))}function Ot(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Yf(e,t,l,a),t=t.sibling}function Yf(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Ot(e,t,l,a),n&2048&&yn(9,t);break;case 1:Ot(e,t,l,a);break;case 3:Ot(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ln(e)));break;case 12:if(n&2048){Ot(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,s=u.id,d=u.onPostCommit;typeof d=="function"&&d(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(y){xe(t,t.return,y)}}else Ot(e,t,l,a);break;case 31:Ot(e,t,l,a);break;case 13:Ot(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,s=t.alternate,t.memoizedState!==null?u._visibility&2?Ot(e,t,l,a):xn(e,t):u._visibility&2?Ot(e,t,l,a):(u._visibility|=2,Aa(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Kc(s,t);break;case 24:Ot(e,t,l,a),n&2048&&Jc(t.alternate,t);break;default:Ot(e,t,l,a)}}function Aa(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,s=t,d=l,y=a,T=s.flags;switch(s.tag){case 0:case 11:case 15:Aa(u,s,d,y,n),yn(8,s);break;case 23:break;case 22:var D=s.stateNode;s.memoizedState!==null?D._visibility&2?Aa(u,s,d,y,n):xn(u,s):(D._visibility|=2,Aa(u,s,d,y,n)),n&&T&2048&&Kc(s.alternate,s);break;case 24:Aa(u,s,d,y,n),n&&T&2048&&Jc(s.alternate,s);break;default:Aa(u,s,d,y,n)}t=t.sibling}}function xn(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:xn(l,a),n&2048&&Kc(a.alternate,a);break;case 24:xn(l,a),n&2048&&Jc(a.alternate,a);break;default:xn(l,a)}t=t.sibling}}var gn=8192;function za(e,t,l){if(e.subtreeFlags&gn)for(e=e.child;e!==null;)Gf(e,t,l),e=e.sibling}function Gf(e,t,l){switch(e.tag){case 26:za(e,t,l),e.flags&gn&&e.memoizedState!==null&&ly(l,Rt,e.memoizedState,e.memoizedProps);break;case 5:za(e,t,l);break;case 3:case 4:var a=Rt;Rt=Zu(e.stateNode.containerInfo),za(e,t,l),Rt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=gn,gn=16777216,za(e,t,l),gn=a):za(e,t,l));break;default:za(e,t,l)}}function Xf(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 bn(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];Ye=a,Zf(a,e)}Xf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Qf(e),e=e.sibling}function Qf(e){switch(e.tag){case 0:case 11:case 15:bn(e),e.flags&2048&&bl(9,e,e.return);break;case 3:bn(e);break;case 12:bn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Cu(e)):bn(e);break;default:bn(e)}}function Cu(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];Ye=a,Zf(a,e)}Xf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:bl(8,t,t.return),Cu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Cu(t));break;default:Cu(t)}e=e.sibling}}function Zf(e,t){for(;Ye!==null;){var l=Ye;switch(l.tag){case 0:case 11:case 15:bl(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:ln(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ye=a;else e:for(l=e;Ye!==null;){a=Ye;var n=a.sibling,u=a.return;if(Hf(a),a===l){Ye=null;break e}if(n!==null){n.return=u,Ye=n;break e}Ye=u}}}var pv={getCacheForType:function(e){var t=Qe(He),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Qe(He).controller.signal}},xv=typeof WeakMap=="function"?WeakMap:Map,ve=0,Ne=null,ce=null,re=0,pe=0,mt=null,Sl=!1,_a=!1,$c=!1,ll=0,Re=0,jl=0,Fl=0,Wc=0,ht=0,Ma=0,Sn=null,at=null,Fc=!1,Du=0,Vf=0,Uu=1/0,Hu=null,El=null,qe=0,Nl=null,Ra=null,al=0,Ic=0,Pc=null,Kf=null,jn=0,es=null;function vt(){return(ve&2)!==0&&re!==0?re&-re:H.T!==null?is():cr()}function Jf(){if(ht===0)if((re&536870912)===0||fe){var e=Xn;Xn<<=1,(Xn&3932160)===0&&(Xn=262144),ht=e}else ht=536870912;return e=ft.current,e!==null&&(e.flags|=32),ht}function nt(e,t,l){(e===Ne&&(pe===2||pe===9)||e.cancelPendingCommit!==null)&&(Oa(e,0),Tl(e,re,ht,!1)),Ga(e,l),((ve&2)===0||e!==Ne)&&(e===Ne&&((ve&2)===0&&(Fl|=l),Re===4&&Tl(e,re,ht,!1)),Lt(e))}function $f(e,t,l){if((ve&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ya(e,t),n=a?Sv(e,t):ls(e,t,!0),u=a;do{if(n===0){_a&&!a&&Tl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!gv(l)){n=ls(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var d=e;n=Sn;var y=d.current.memoizedState.isDehydrated;if(y&&(Oa(d,s).flags|=256),s=ls(d,s,!1),s!==2){if($c&&!y){d.errorRecoveryDisabledLanes|=u,Fl|=u,n=4;break e}u=at,at=n,u!==null&&(at===null?at=u:at.push.apply(at,u))}n=s}if(u=!1,n!==2)continue}}if(n===1){Oa(e,0),Tl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Tl(a,t,ht,!Sl);break e;case 2:at=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Du+300-it(),10<n)){if(Tl(a,t,ht,!Sl),Zn(a,0,!0)!==0)break e;al=t,a.timeoutHandle=Ad(Wf.bind(null,a,l,at,Hu,Fc,t,ht,Fl,Ma,Sl,u,"Throttled",-0,0),n);break e}Wf(a,l,at,Hu,Fc,t,ht,Fl,Ma,Sl,u,null,-0,0)}}break}while(!0);Lt(e)}function Wf(e,t,l,a,n,u,s,d,y,T,D,L,z,R){if(e.timeoutHandle=-1,L=t.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gt},Gf(t,u,L);var J=(u&62914560)===u?Du-it():(u&4194048)===u?Vf-it():0;if(J=ay(L,J),J!==null){al=u,e.cancelPendingCommit=J(nd.bind(null,e,t,u,l,a,n,s,d,y,D,L,null,z,R)),Tl(e,u,s,!T);return}}nd(e,t,u,l,a,n,s,d,y)}function gv(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(!rt(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 Tl(e,t,l,a){t&=~Wc,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-st(n),s=1<<u;a[u]=-1,n&=~s}l!==0&&nr(e,l,t)}function Bu(){return(ve&6)===0?(En(0),!1):!0}function ts(){if(ce!==null){if(pe===0)var e=ce.return;else e=ce,Vt=Gl=null,pc(e),Sa=null,nn=0,e=ce;for(;e!==null;)zf(e.alternate,e),e=e.return;ce=null}}function Oa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,qv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),al=0,ts(),Ne=e,ce=l=Qt(e.current,null),re=t,pe=0,mt=null,Sl=!1,_a=Ya(e,t),$c=!1,Ma=ht=Wc=Fl=jl=Re=0,at=Sn=null,Fc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-st(a),u=1<<n;t|=e[n],a&=~u}return ll=t,au(),l}function Ff(e,t){ne=null,H.H=mn,t===ba||t===fu?(t=fo(),pe=3):t===uc?(t=fo(),pe=4):pe=t===Dc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,mt=t,ce===null&&(Re=1,Tu(e,St(t,e.current)))}function If(){var e=ft.current;return e===null?!0:(re&4194048)===re?Tt===null:(re&62914560)===re||(re&536870912)!==0?e===Tt:!1}function Pf(){var e=H.H;return H.H=mn,e===null?mn:e}function ed(){var e=H.A;return H.A=pv,e}function wu(){Re=4,Sl||(re&4194048)!==re&&ft.current!==null||(_a=!0),(jl&134217727)===0&&(Fl&134217727)===0||Ne===null||Tl(Ne,re,ht,!1)}function ls(e,t,l){var a=ve;ve|=2;var n=Pf(),u=ed();(Ne!==e||re!==t)&&(Hu=null,Oa(e,t)),t=!1;var s=Re;e:do try{if(pe!==0&&ce!==null){var d=ce,y=mt;switch(pe){case 8:ts(),s=6;break e;case 3:case 2:case 9:case 6:ft.current===null&&(t=!0);var T=pe;if(pe=0,mt=null,Ca(e,d,y,T),l&&_a){s=0;break e}break;default:T=pe,pe=0,mt=null,Ca(e,d,y,T)}}bv(),s=Re;break}catch(D){Ff(e,D)}while(!0);return t&&e.shellSuspendCounter++,Vt=Gl=null,ve=a,H.H=n,H.A=u,ce===null&&(Ne=null,re=0,au()),s}function bv(){for(;ce!==null;)td(ce)}function Sv(e,t){var l=ve;ve|=2;var a=Pf(),n=ed();Ne!==e||re!==t?(Hu=null,Uu=it()+500,Oa(e,t)):_a=Ya(e,t);e:do try{if(pe!==0&&ce!==null){t=ce;var u=mt;t:switch(pe){case 1:pe=0,mt=null,Ca(e,t,u,1);break;case 2:case 9:if(ro(u)){pe=0,mt=null,ld(t);break}t=function(){pe!==2&&pe!==9||Ne!==e||(pe=7),Lt(e)},u.then(t,t);break e;case 3:pe=7;break e;case 4:pe=5;break e;case 7:ro(u)?(pe=0,mt=null,ld(t)):(pe=0,mt=null,Ca(e,t,u,7));break;case 5:var s=null;switch(ce.tag){case 26:s=ce.memoizedState;case 5:case 27:var d=ce;if(s?Yd(s):d.stateNode.complete){pe=0,mt=null;var y=d.sibling;if(y!==null)ce=y;else{var T=d.return;T!==null?(ce=T,Lu(T)):ce=null}break t}}pe=0,mt=null,Ca(e,t,u,5);break;case 6:pe=0,mt=null,Ca(e,t,u,6);break;case 8:ts(),Re=6;break e;default:throw Error(r(462))}}jv();break}catch(D){Ff(e,D)}while(!0);return Vt=Gl=null,H.H=a,H.A=n,ve=l,ce!==null?0:(Ne=null,re=0,au(),Re)}function jv(){for(;ce!==null&&!Zm();)td(ce)}function td(e){var t=Tf(e.alternate,e,ll);e.memoizedProps=e.pendingProps,t===null?Lu(e):ce=t}function ld(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=gf(l,t,t.pendingProps,t.type,void 0,re);break;case 11:t=gf(l,t,t.pendingProps,t.type.render,t.ref,re);break;case 5:pc(t);default:zf(l,t),t=ce=Ir(t,ll),t=Tf(l,t,ll)}e.memoizedProps=e.pendingProps,t===null?Lu(e):ce=t}function Ca(e,t,l,a){Vt=Gl=null,pc(t),Sa=null,nn=0;var n=t.return;try{if(ov(e,n,t,l,re)){Re=1,Tu(e,St(l,e.current)),ce=null;return}}catch(u){if(n!==null)throw ce=n,u;Re=1,Tu(e,St(l,e.current)),ce=null;return}t.flags&32768?(fe||a===1?e=!0:_a||(re&536870912)!==0?e=!1:(Sl=e=!0,(a===2||a===9||a===3||a===6)&&(a=ft.current,a!==null&&a.tag===13&&(a.flags|=16384))),ad(t,e)):Lu(t)}function Lu(e){var t=e;do{if((t.flags&32768)!==0){ad(t,Sl);return}e=t.return;var l=mv(t.alternate,t,ll);if(l!==null){ce=l;return}if(t=t.sibling,t!==null){ce=t;return}ce=t=e}while(t!==null);Re===0&&(Re=5)}function ad(e,t){do{var l=hv(e.alternate,e);if(l!==null){l.flags&=32767,ce=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ce=e;return}ce=e=l}while(e!==null);Re=6,ce=null}function nd(e,t,l,a,n,u,s,d,y){e.cancelPendingCommit=null;do qu();while(qe!==0);if((ve&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=Qi,th(e,l,u,s,d,y),e===Ne&&(ce=Ne=null,re=0),Ra=t,Nl=e,al=l,Ic=u,Pc=n,Kf=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Av(Yn,function(){return rd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=H.T,H.T=null,n=V.p,V.p=2,s=ve,ve|=4;try{vv(e,t,l)}finally{ve=s,V.p=n,H.T=a}}qe=1,ud(),id(),cd()}}function ud(){if(qe===1){qe=0;var e=Nl,t=Ra,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=H.T,H.T=null;var a=V.p;V.p=2;var n=ve;ve|=4;try{qf(t,e);var u=hs,s=Xr(e.containerInfo),d=u.focusedElem,y=u.selectionRange;if(s!==d&&d&&d.ownerDocument&&Gr(d.ownerDocument.documentElement,d)){if(y!==null&&qi(d)){var T=y.start,D=y.end;if(D===void 0&&(D=T),"selectionStart"in d)d.selectionStart=T,d.selectionEnd=Math.min(D,d.value.length);else{var L=d.ownerDocument||document,z=L&&L.defaultView||window;if(z.getSelection){var R=z.getSelection(),J=d.textContent.length,ee=Math.min(y.start,J),je=y.end===void 0?ee:Math.min(y.end,J);!R.extend&&ee>je&&(s=je,je=ee,ee=s);var j=Yr(d,ee),g=Yr(d,je);if(j&&g&&(R.rangeCount!==1||R.anchorNode!==j.node||R.anchorOffset!==j.offset||R.focusNode!==g.node||R.focusOffset!==g.offset)){var N=L.createRange();N.setStart(j.node,j.offset),R.removeAllRanges(),ee>je?(R.addRange(N),R.extend(g.node,g.offset)):(N.setEnd(g.node,g.offset),R.addRange(N))}}}}for(L=[],R=d;R=R.parentNode;)R.nodeType===1&&L.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<L.length;d++){var B=L[d];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Fu=!!ms,hs=ms=null}finally{ve=n,V.p=a,H.T=l}}e.current=t,qe=2}}function id(){if(qe===2){qe=0;var e=Nl,t=Ra,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=H.T,H.T=null;var a=V.p;V.p=2;var n=ve;ve|=4;try{Uf(e,t.alternate,t)}finally{ve=n,V.p=a,H.T=l}}qe=3}}function cd(){if(qe===4||qe===3){qe=0,Vm();var e=Nl,t=Ra,l=al,a=Kf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?qe=5:(qe=0,Ra=Nl=null,sd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(El=null),bi(l),t=t.stateNode,ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(ka,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=H.T,n=V.p,V.p=2,H.T=null;try{for(var u=e.onRecoverableError,s=0;s<a.length;s++){var d=a[s];u(d.value,{componentStack:d.stack})}}finally{H.T=t,V.p=n}}(al&3)!==0&&qu(),Lt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===es?jn++:(jn=0,es=e):jn=0,En(0)}}function sd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ln(t)))}function qu(){return ud(),id(),cd(),rd()}function rd(){if(qe!==5)return!1;var e=Nl,t=Ic;Ic=0;var l=bi(al),a=H.T,n=V.p;try{V.p=32>l?32:l,H.T=null,l=Pc,Pc=null;var u=Nl,s=al;if(qe=0,Ra=Nl=null,al=0,(ve&6)!==0)throw Error(r(331));var d=ve;if(ve|=4,Qf(u.current),Yf(u,u.current,s,l),ve=d,En(0,!1),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(ka,u)}catch{}return!0}finally{V.p=n,H.T=a,sd(e,t)}}function od(e,t,l){t=St(l,t),t=Cc(e.stateNode,t,2),e=pl(e,t,2),e!==null&&(Ga(e,2),Lt(e))}function xe(e,t,l){if(e.tag===3)od(e,e,l);else for(;t!==null;){if(t.tag===3){od(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(El===null||!El.has(a))){e=St(l,e),l=ff(2),a=pl(t,l,2),a!==null&&(df(l,a,t,e),Ga(a,2),Lt(a));break}}t=t.return}}function as(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new xv;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)||($c=!0,n.add(l),e=Ev.bind(null,e,t,l),t.then(e,e))}function Ev(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ne===e&&(re&l)===l&&(Re===4||Re===3&&(re&62914560)===re&&300>it()-Du?(ve&2)===0&&Oa(e,0):Wc|=l,Ma===re&&(Ma=0)),Lt(e)}function fd(e,t){t===0&&(t=ar()),e=ql(e,t),e!==null&&(Ga(e,t),Lt(e))}function Nv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),fd(e,l)}function Tv(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(r(314))}a!==null&&a.delete(t),fd(e,l)}function Av(e,t){return yi(e,t)}var ku=null,Da=null,ns=!1,Yu=!1,us=!1,Al=0;function Lt(e){e!==Da&&e.next===null&&(Da===null?ku=Da=e:Da=Da.next=e),Yu=!0,ns||(ns=!0,_v())}function En(e,t){if(!us&&Yu){us=!0;do for(var l=!1,a=ku;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var s=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-st(42|e)+1)-1,u&=n&~(s&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,vd(a,u))}else u=re,u=Zn(a,a===Ne?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ya(a,u)||(l=!0,vd(a,u));a=a.next}while(l);us=!1}}function zv(){dd()}function dd(){Yu=ns=!1;var e=0;Al!==0&&Lv()&&(e=Al);for(var t=it(),l=null,a=ku;a!==null;){var n=a.next,u=md(a,t);u===0?(a.next=null,l===null?ku=n:l.next=n,n===null&&(Da=l)):(l=a,(e!==0||(u&3)!==0)&&(Yu=!0)),a=n}qe!==0&&qe!==5||En(e),Al!==0&&(Al=0)}function md(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var s=31-st(u),d=1<<s,y=n[s];y===-1?((d&l)===0||(d&a)!==0)&&(n[s]=eh(d,t)):y<=t&&(e.expiredLanes|=d),u&=~d}if(t=Ne,l=re,l=Zn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(pe===2||pe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&pi(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ya(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&pi(a),bi(l)){case 2:case 8:l=tr;break;case 32:l=Yn;break;case 268435456:l=lr;break;default:l=Yn}return a=hd.bind(null,e),l=yi(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&pi(a),e.callbackPriority=2,e.callbackNode=null,2}function hd(e,t){if(qe!==0&&qe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(qu()&&e.callbackNode!==l)return null;var a=re;return a=Zn(e,e===Ne?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:($f(e,a,t),md(e,it()),e.callbackNode!=null&&e.callbackNode===l?hd.bind(null,e):null)}function vd(e,t){if(qu())return null;$f(e,t,!0)}function _v(){kv(function(){(ve&6)!==0?yi(er,zv):dd()})}function is(){if(Al===0){var e=xa;e===0&&(e=Gn,Gn<<=1,(Gn&261888)===0&&(Gn=256)),Al=e}return Al}function yd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$n(""+e)}function pd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Mv(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=yd((n[Ie]||null).action),s=a.submitter;s&&(t=(t=s[Ie]||null)?yd(t.formAction):s.getAttribute("formAction"),t!==null&&(u=t,s=null));var d=new Pn("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Al!==0){var y=s?pd(n,s):new FormData(n);Ac(l,{pending:!0,data:y,method:n.method,action:u},null,y)}}else typeof u=="function"&&(d.preventDefault(),y=s?pd(n,s):new FormData(n),Ac(l,{pending:!0,data:y,method:n.method,action:u},u,y))},currentTarget:n}]})}}for(var cs=0;cs<Xi.length;cs++){var ss=Xi[cs],Rv=ss.toLowerCase(),Ov=ss[0].toUpperCase()+ss.slice(1);Mt(Rv,"on"+Ov)}Mt(Vr,"onAnimationEnd"),Mt(Kr,"onAnimationIteration"),Mt(Jr,"onAnimationStart"),Mt("dblclick","onDoubleClick"),Mt("focusin","onFocus"),Mt("focusout","onBlur"),Mt(Kh,"onTransitionRun"),Mt(Jh,"onTransitionStart"),Mt($h,"onTransitionCancel"),Mt($r,"onTransitionEnd"),na("onMouseEnter",["mouseout","mouseover"]),na("onMouseLeave",["mouseout","mouseover"]),na("onPointerEnter",["pointerout","pointerover"]),na("onPointerLeave",["pointerout","pointerover"]),Hl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nn="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(" "),Cv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nn));function xd(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 s=a.length-1;0<=s;s--){var d=a[s],y=d.instance,T=d.currentTarget;if(d=d.listener,y!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=T;try{u(n)}catch(D){lu(D)}n.currentTarget=null,u=y}else for(s=0;s<a.length;s++){if(d=a[s],y=d.instance,T=d.currentTarget,d=d.listener,y!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=T;try{u(n)}catch(D){lu(D)}n.currentTarget=null,u=y}}}}function se(e,t){var l=t[Si];l===void 0&&(l=t[Si]=new Set);var a=e+"__bubble";l.has(a)||(gd(t,e,2,!1),l.add(a))}function rs(e,t,l){var a=0;t&&(a|=4),gd(l,e,a,t)}var Gu="_reactListening"+Math.random().toString(36).slice(2);function os(e){if(!e[Gu]){e[Gu]=!0,or.forEach(function(l){l!=="selectionchange"&&(Cv.has(l)||rs(l,!1,e),rs(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gu]||(t[Gu]=!0,rs("selectionchange",!1,t))}}function gd(e,t,l,a){switch(Jd(t)){case 2:var n=iy;break;case 8:n=cy;break;default:n=Ts}l=n.bind(null,t,l,e),n=void 0,!Ri||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 fs(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var s=a.tag;if(s===3||s===4){var d=a.stateNode.containerInfo;if(d===n)break;if(s===4)for(s=a.return;s!==null;){var y=s.tag;if((y===3||y===4)&&s.stateNode.containerInfo===n)return;s=s.return}for(;d!==null;){if(s=ta(d),s===null)return;if(y=s.tag,y===5||y===6||y===26||y===27){a=u=s;continue e}d=d.parentNode}}a=a.return}jr(function(){var T=u,D=_i(l),L=[];e:{var z=Wr.get(e);if(z!==void 0){var R=Pn,J=e;switch(e){case"keypress":if(Fn(l)===0)break e;case"keydown":case"keyup":R=Th;break;case"focusin":J="focus",R=Ui;break;case"focusout":J="blur",R=Ui;break;case"beforeblur":case"afterblur":R=Ui;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":R=Tr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=mh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=_h;break;case Vr:case Kr:case Jr:R=yh;break;case $r:R=Rh;break;case"scroll":case"scrollend":R=fh;break;case"wheel":R=Ch;break;case"copy":case"cut":case"paste":R=xh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=zr;break;case"toggle":case"beforetoggle":R=Uh}var ee=(t&4)!==0,je=!ee&&(e==="scroll"||e==="scrollend"),j=ee?z!==null?z+"Capture":null:z;ee=[];for(var g=T,N;g!==null;){var B=g;if(N=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||N===null||j===null||(B=Za(g,j),B!=null&&ee.push(Tn(g,B,N))),je)break;g=g.return}0<ee.length&&(z=new R(z,J,null,l,D),L.push({event:z,listeners:ee}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",z&&l!==zi&&(J=l.relatedTarget||l.fromElement)&&(ta(J)||J[ea]))break e;if((R||z)&&(z=D.window===D?D:(z=D.ownerDocument)?z.defaultView||z.parentWindow:window,R?(J=l.relatedTarget||l.toElement,R=T,J=J?ta(J):null,J!==null&&(je=v(J),ee=J.tag,J!==je||ee!==5&&ee!==27&&ee!==6)&&(J=null)):(R=null,J=T),R!==J)){if(ee=Tr,B="onMouseLeave",j="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(ee=zr,B="onPointerLeave",j="onPointerEnter",g="pointer"),je=R==null?z:Qa(R),N=J==null?z:Qa(J),z=new ee(B,g+"leave",R,l,D),z.target=je,z.relatedTarget=N,B=null,ta(D)===T&&(ee=new ee(j,g+"enter",J,l,D),ee.target=N,ee.relatedTarget=je,B=ee),je=B,R&&J)t:{for(ee=Dv,j=R,g=J,N=0,B=j;B;B=ee(B))N++;B=0;for(var I=g;I;I=ee(I))B++;for(;0<N-B;)j=ee(j),N--;for(;0<B-N;)g=ee(g),B--;for(;N--;){if(j===g||g!==null&&j===g.alternate){ee=j;break t}j=ee(j),g=ee(g)}ee=null}else ee=null;R!==null&&bd(L,z,R,ee,!1),J!==null&&je!==null&&bd(L,je,J,ee,!0)}}e:{if(z=T?Qa(T):window,R=z.nodeName&&z.nodeName.toLowerCase(),R==="select"||R==="input"&&z.type==="file")var me=Hr;else if(Dr(z))if(Br)me=Qh;else{me=Gh;var F=Yh}else R=z.nodeName,!R||R.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?T&&Ai(T.elementType)&&(me=Hr):me=Xh;if(me&&(me=me(e,T))){Ur(L,me,l,D);break e}F&&F(e,z,T),e==="focusout"&&T&&z.type==="number"&&T.memoizedProps.value!=null&&Ti(z,"number",z.value)}switch(F=T?Qa(T):window,e){case"focusin":(Dr(F)||F.contentEditable==="true")&&(oa=F,ki=T,Pa=null);break;case"focusout":Pa=ki=oa=null;break;case"mousedown":Yi=!0;break;case"contextmenu":case"mouseup":case"dragend":Yi=!1,Qr(L,l,D);break;case"selectionchange":if(Vh)break;case"keydown":case"keyup":Qr(L,l,D)}var ue;if(Bi)e:{switch(e){case"compositionstart":var oe="onCompositionStart";break e;case"compositionend":oe="onCompositionEnd";break e;case"compositionupdate":oe="onCompositionUpdate";break e}oe=void 0}else ra?Or(e,l)&&(oe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(oe="onCompositionStart");oe&&(_r&&l.locale!=="ko"&&(ra||oe!=="onCompositionStart"?oe==="onCompositionEnd"&&ra&&(ue=Er()):(ol=D,Oi="value"in ol?ol.value:ol.textContent,ra=!0)),F=Xu(T,oe),0<F.length&&(oe=new Ar(oe,e,null,l,D),L.push({event:oe,listeners:F}),ue?oe.data=ue:(ue=Cr(l),ue!==null&&(oe.data=ue)))),(ue=Bh?wh(e,l):Lh(e,l))&&(oe=Xu(T,"onBeforeInput"),0<oe.length&&(F=new Ar("onBeforeInput","beforeinput",null,l,D),L.push({event:F,listeners:oe}),F.data=ue)),Mv(L,e,T,l,D)}xd(L,t)})}function Tn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Xu(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=Za(e,l),n!=null&&a.unshift(Tn(e,n,u)),n=Za(e,t),n!=null&&a.push(Tn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function Dv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bd(e,t,l,a,n){for(var u=t._reactName,s=[];l!==null&&l!==a;){var d=l,y=d.alternate,T=d.stateNode;if(d=d.tag,y!==null&&y===a)break;d!==5&&d!==26&&d!==27||T===null||(y=T,n?(T=Za(l,u),T!=null&&s.unshift(Tn(l,T,y))):n||(T=Za(l,u),T!=null&&s.push(Tn(l,T,y)))),l=l.return}s.length!==0&&e.push({event:t,listeners:s})}var Uv=/\r\n?/g,Hv=/\u0000|\uFFFD/g;function Sd(e){return(typeof e=="string"?e:""+e).replace(Uv,`
49
- `).replace(Hv,"")}function jd(e,t){return t=Sd(t),Sd(e)===t}function Se(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ia(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ia(e,""+a);break;case"className":Kn(e,"class",a);break;case"tabIndex":Kn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Kn(e,l,a);break;case"style":br(e,a,u);break;case"data":if(t!=="object"){Kn(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=$n(""+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"&&Se(e,t,"name",n.name,n,null),Se(e,t,"formEncType",n.formEncType,n,null),Se(e,t,"formMethod",n.formMethod,n,null),Se(e,t,"formTarget",n.formTarget,n,null)):(Se(e,t,"encType",n.encType,n,null),Se(e,t,"method",n.method,n,null),Se(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=$n(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Gt);break;case"onScroll":a!=null&&se("scroll",e);break;case"onScrollEnd":a!=null&&se("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=$n(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":se("beforetoggle",e),se("toggle",e),Vn(e,"popover",a);break;case"xlinkActuate":Yt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Yt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Yt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Yt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Yt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Yt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Vn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=rh.get(l)||l,Vn(e,l,a))}}function ds(e,t,l,a,n,u){switch(l){case"style":br(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ia(e,a):(typeof a=="number"||typeof a=="bigint")&&ia(e,""+a);break;case"onScroll":a!=null&&se("scroll",e);break;case"onScrollEnd":a!=null&&se("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Gt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fr.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[Ie]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):Vn(e,l,a)}}}function Ve(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":se("error",e),se("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var s=l[u];if(s!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Se(e,t,u,s,l,null)}}n&&Se(e,t,"srcSet",l.srcSet,l,null),a&&Se(e,t,"src",l.src,l,null);return;case"input":se("invalid",e);var d=u=s=n=null,y=null,T=null;for(a in l)if(l.hasOwnProperty(a)){var D=l[a];if(D!=null)switch(a){case"name":n=D;break;case"type":s=D;break;case"checked":y=D;break;case"defaultChecked":T=D;break;case"value":u=D;break;case"defaultValue":d=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,t));break;default:Se(e,t,a,D,l,null)}}yr(e,u,d,y,T,s,n,!1);return;case"select":se("invalid",e),a=s=u=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":s=d;break;case"multiple":a=d;default:Se(e,t,n,d,l,null)}t=u,l=s,e.multiple=!!a,t!=null?ua(e,!!a,t,!1):l!=null&&ua(e,!!a,l,!0);return;case"textarea":se("invalid",e),u=n=a=null;for(s in l)if(l.hasOwnProperty(s)&&(d=l[s],d!=null))switch(s){case"value":a=d;break;case"defaultValue":n=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:Se(e,t,s,d,l,null)}xr(e,a,n,u);return;case"option":for(y in l)if(l.hasOwnProperty(y)&&(a=l[y],a!=null))switch(y){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Se(e,t,y,a,l,null)}return;case"dialog":se("beforetoggle",e),se("toggle",e),se("cancel",e),se("close",e);break;case"iframe":case"object":se("load",e);break;case"video":case"audio":for(a=0;a<Nn.length;a++)se(Nn[a],e);break;case"image":se("error",e),se("load",e);break;case"details":se("toggle",e);break;case"embed":case"source":case"link":se("error",e),se("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(T in l)if(l.hasOwnProperty(T)&&(a=l[T],a!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Se(e,t,T,a,l,null)}return;default:if(Ai(t)){for(D in l)l.hasOwnProperty(D)&&(a=l[D],a!==void 0&&ds(e,t,D,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&Se(e,t,d,a,l,null))}function Bv(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,s=null,d=null,y=null,T=null,D=null;for(R in l){var L=l[R];if(l.hasOwnProperty(R)&&L!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":y=L;default:a.hasOwnProperty(R)||Se(e,t,R,null,a,L)}}for(var z in a){var R=a[z];if(L=l[z],a.hasOwnProperty(z)&&(R!=null||L!=null))switch(z){case"type":u=R;break;case"name":n=R;break;case"checked":T=R;break;case"defaultChecked":D=R;break;case"value":s=R;break;case"defaultValue":d=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(r(137,t));break;default:R!==L&&Se(e,t,z,R,a,L)}}Ni(e,s,d,y,T,D,u,n);return;case"select":R=s=d=z=null;for(u in l)if(y=l[u],l.hasOwnProperty(u)&&y!=null)switch(u){case"value":break;case"multiple":R=y;default:a.hasOwnProperty(u)||Se(e,t,u,null,a,y)}for(n in a)if(u=a[n],y=l[n],a.hasOwnProperty(n)&&(u!=null||y!=null))switch(n){case"value":z=u;break;case"defaultValue":d=u;break;case"multiple":s=u;default:u!==y&&Se(e,t,n,u,a,y)}t=d,l=s,a=R,z!=null?ua(e,!!l,z,!1):!!a!=!!l&&(t!=null?ua(e,!!l,t,!0):ua(e,!!l,l?[]:"",!1));return;case"textarea":R=z=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Se(e,t,d,null,a,n)}for(s in a)if(n=a[s],u=l[s],a.hasOwnProperty(s)&&(n!=null||u!=null))switch(s){case"value":z=n;break;case"defaultValue":R=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&Se(e,t,s,n,a,u)}pr(e,z,R);return;case"option":for(var J in l)if(z=l[J],l.hasOwnProperty(J)&&z!=null&&!a.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:Se(e,t,J,null,a,z)}for(y in a)if(z=a[y],R=l[y],a.hasOwnProperty(y)&&z!==R&&(z!=null||R!=null))switch(y){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Se(e,t,y,z,a,R)}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 ee in l)z=l[ee],l.hasOwnProperty(ee)&&z!=null&&!a.hasOwnProperty(ee)&&Se(e,t,ee,null,a,z);for(T in a)if(z=a[T],R=l[T],a.hasOwnProperty(T)&&z!==R&&(z!=null||R!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:Se(e,t,T,z,a,R)}return;default:if(Ai(t)){for(var je in l)z=l[je],l.hasOwnProperty(je)&&z!==void 0&&!a.hasOwnProperty(je)&&ds(e,t,je,void 0,a,z);for(D in a)z=a[D],R=l[D],!a.hasOwnProperty(D)||z===R||z===void 0&&R===void 0||ds(e,t,D,z,a,R);return}}for(var j in l)z=l[j],l.hasOwnProperty(j)&&z!=null&&!a.hasOwnProperty(j)&&Se(e,t,j,null,a,z);for(L in a)z=a[L],R=l[L],!a.hasOwnProperty(L)||z===R||z==null&&R==null||Se(e,t,L,z,a,R)}function Ed(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wv(){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,s=n.initiatorType,d=n.duration;if(u&&d&&Ed(s)){for(s=0,d=n.responseEnd,a+=1;a<l.length;a++){var y=l[a],T=y.startTime;if(T>d)break;var D=y.transferSize,L=y.initiatorType;D&&Ed(L)&&(y=y.responseEnd,s+=D*(y<d?1:(d-T)/(y-T)))}if(--a,t+=8*(u+s)/(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 ms=null,hs=null;function Qu(e){return e.nodeType===9?e:e.ownerDocument}function Nd(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 Td(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 vs(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 ys=null;function Lv(){var e=window.event;return e&&e.type==="popstate"?e===ys?!1:(ys=e,!0):(ys=null,!1)}var Ad=typeof setTimeout=="function"?setTimeout:void 0,qv=typeof clearTimeout=="function"?clearTimeout:void 0,zd=typeof Promise=="function"?Promise:void 0,kv=typeof queueMicrotask=="function"?queueMicrotask:typeof zd<"u"?function(e){return zd.resolve(null).then(e).catch(Yv)}:Ad;function Yv(e){setTimeout(function(){throw e})}function zl(e){return e==="head"}function _d(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),wa(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")An(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,An(l);for(var u=l.firstChild;u;){var s=u.nextSibling,d=u.nodeName;u[Xa]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=s}}else l==="body"&&An(e.ownerDocument.body);l=n}while(l);wa(t)}function Md(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 ps(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":ps(l),ji(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Gv(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[Xa])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=At(e.nextSibling),e===null)break}return null}function Xv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=At(e.nextSibling),e===null))return null;return e}function Rd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=At(e.nextSibling),e===null))return null;return e}function xs(e){return e.data==="$?"||e.data==="$~"}function gs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Qv(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 At(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 bs=null;function Od(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return At(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Cd(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 Dd(e,t,l){switch(t=Qu(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function An(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ji(e)}var zt=new Map,Ud=new Set;function Zu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var nl=V.d;V.d={f:Zv,r:Vv,D:Kv,C:Jv,L:$v,m:Wv,X:Iv,S:Fv,M:Pv};function Zv(){var e=nl.f(),t=Bu();return e||t}function Vv(e){var t=la(e);t!==null&&t.tag===5&&t.type==="form"?Wo(t):nl.r(e)}var Ua=typeof document>"u"?null:document;function Hd(e,t,l){var a=Ua;if(a&&typeof t=="string"&&t){var n=gt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Ud.has(n)||(Ud.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ve(t,"link",e),ke(t),a.head.appendChild(t)))}}function Kv(e){nl.D(e),Hd("dns-prefetch",e,null)}function Jv(e,t){nl.C(e,t),Hd("preconnect",e,t)}function $v(e,t,l){nl.L(e,t,l);var a=Ua;if(a&&e&&t){var n='link[rel="preload"][as="'+gt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+gt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+gt(l.imageSizes)+'"]')):n+='[href="'+gt(e)+'"]';var u=n;switch(t){case"style":u=Ha(e);break;case"script":u=Ba(e)}zt.has(u)||(e=p({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),zt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(zn(u))||t==="script"&&a.querySelector(_n(u))||(t=a.createElement("link"),Ve(t,"link",e),ke(t),a.head.appendChild(t)))}}function Wv(e,t){nl.m(e,t);var l=Ua;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+gt(a)+'"][href="'+gt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ba(e)}if(!zt.has(u)&&(e=p({rel:"modulepreload",href:e},t),zt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(_n(u)))return}a=l.createElement("link"),Ve(a,"link",e),ke(a),l.head.appendChild(a)}}}function Fv(e,t,l){nl.S(e,t,l);var a=Ua;if(a&&e){var n=aa(a).hoistableStyles,u=Ha(e);t=t||"default";var s=n.get(u);if(!s){var d={loading:0,preload:null};if(s=a.querySelector(zn(u)))d.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},l),(l=zt.get(u))&&Ss(e,l);var y=s=a.createElement("link");ke(y),Ve(y,"link",e),y._p=new Promise(function(T,D){y.onload=T,y.onerror=D}),y.addEventListener("load",function(){d.loading|=1}),y.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Vu(s,t,a)}s={type:"stylesheet",instance:s,count:1,state:d},n.set(u,s)}}}function Iv(e,t){nl.X(e,t);var l=Ua;if(l&&e){var a=aa(l).hoistableScripts,n=Ba(e),u=a.get(n);u||(u=l.querySelector(_n(n)),u||(e=p({src:e,async:!0},t),(t=zt.get(n))&&js(e,t),u=l.createElement("script"),ke(u),Ve(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Pv(e,t){nl.M(e,t);var l=Ua;if(l&&e){var a=aa(l).hoistableScripts,n=Ba(e),u=a.get(n);u||(u=l.querySelector(_n(n)),u||(e=p({src:e,async:!0,type:"module"},t),(t=zt.get(n))&&js(e,t),u=l.createElement("script"),ke(u),Ve(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Bd(e,t,l,a){var n=(n=ie.current)?Zu(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ha(l.href),l=aa(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Ha(l.href);var u=aa(n).hoistableStyles,s=u.get(e);if(s||(n=n.ownerDocument||n,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,s),(u=n.querySelector(zn(e)))&&!u._p&&(s.instance=u,s.state.loading=5),zt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},zt.set(e,l),u||ey(n,e,l,s.state))),t&&a===null)throw Error(r(528,""));return s}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ba(l),l=aa(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ha(e){return'href="'+gt(e)+'"'}function zn(e){return'link[rel="stylesheet"]['+e+"]"}function wd(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function ey(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ve(t,"link",l),ke(t),e.head.appendChild(t))}function Ba(e){return'[src="'+gt(e)+'"]'}function _n(e){return"script[async]"+e}function Ld(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+gt(l.href)+'"]');if(a)return t.instance=a,ke(a),a;var n=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ke(a),Ve(a,"style",n),Vu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ha(l.href);var u=e.querySelector(zn(n));if(u)return t.state.loading|=4,t.instance=u,ke(u),u;a=wd(l),(n=zt.get(n))&&Ss(a,n),u=(e.ownerDocument||e).createElement("link"),ke(u);var s=u;return s._p=new Promise(function(d,y){s.onload=d,s.onerror=y}),Ve(u,"link",a),t.state.loading|=4,Vu(u,l.precedence,e),t.instance=u;case"script":return u=Ba(l.src),(n=e.querySelector(_n(u)))?(t.instance=n,ke(n),n):(a=l,(n=zt.get(u))&&(a=p({},l),js(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),ke(n),Ve(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Vu(a,l.precedence,e));return t.instance}function Vu(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,s=0;s<a.length;s++){var d=a[s];if(d.dataset.precedence===t)u=d;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 Ss(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function js(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ku=null;function qd(e,t,l){if(Ku===null){var a=new Map,n=Ku=new Map;n.set(l,a)}else n=Ku,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[Xa]||u[Ge]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var s=u.getAttribute(t)||"";s=e+s;var d=a.get(s);d?d.push(u):a.set(s,[u])}}return a}function kd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function ty(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 Yd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ly(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=Ha(a.href),u=t.querySelector(zn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ju.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,ke(u);return}u=t.ownerDocument||t,a=wd(a),(n=zt.get(n))&&Ss(a,n),u=u.createElement("link"),ke(u);var s=u;s._p=new Promise(function(d,y){s.onload=d,s.onerror=y}),Ve(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=Ju.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Es=0;function ay(e,t){return e.stylesheets&&e.count===0&&Wu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Wu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Es===0&&(Es=62500*wv());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Es?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Ju(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $u=null;function Wu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$u=new Map,t.forEach(ny,e),$u=null,Ju.call(e))}function ny(e,t){if(!(t.state.loading&4)){var l=$u.get(e);if(l)var a=l.get(null);else{l=new Map,$u.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var s=n[u];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(l.set(s.dataset.precedence,s),a=s)}a&&l.set(null,a)}n=t.instance,s=n.getAttribute("data-precedence"),u=l.get(s)||a,u===a&&l.set(null,n),l.set(s,n),this.count++,a=Ju.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 Mn={$$typeof:Z,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function uy(e,t,l,a,n,u,s,d,y){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=xi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xi(0),this.hiddenUpdates=xi(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function Gd(e,t,l,a,n,u,s,d,y,T,D,L){return e=new uy(e,t,l,s,y,T,D,L,d),t=1,u===!0&&(t|=24),u=ot(3,null,null,t),e.current=u,u.stateNode=e,t=lc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},ic(u),e}function Xd(e){return e?(e=ma,e):ma}function Qd(e,t,l,a,n,u){n=Xd(n),a.context===null?a.context=n:a.pendingContext=n,a=yl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=pl(e,a,t),l!==null&&(nt(l,e,t),cn(l,e,t))}function Zd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ns(e,t){Zd(e,t),(e=e.alternate)&&Zd(e,t)}function Vd(e){if(e.tag===13||e.tag===31){var t=ql(e,67108864);t!==null&&nt(t,e,67108864),Ns(e,67108864)}}function Kd(e){if(e.tag===13||e.tag===31){var t=vt();t=gi(t);var l=ql(e,t);l!==null&&nt(l,e,t),Ns(e,t)}}var Fu=!0;function iy(e,t,l,a){var n=H.T;H.T=null;var u=V.p;try{V.p=2,Ts(e,t,l,a)}finally{V.p=u,H.T=n}}function cy(e,t,l,a){var n=H.T;H.T=null;var u=V.p;try{V.p=8,Ts(e,t,l,a)}finally{V.p=u,H.T=n}}function Ts(e,t,l,a){if(Fu){var n=As(a);if(n===null)fs(e,t,a,Iu,l),$d(e,a);else if(ry(n,e,t,l,a))a.stopPropagation();else if($d(e,a),t&4&&-1<sy.indexOf(e)){for(;n!==null;){var u=la(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var s=Ul(u.pendingLanes);if(s!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;s;){var y=1<<31-st(s);d.entanglements[1]|=y,s&=~y}Lt(u),(ve&6)===0&&(Uu=it()+500,En(0))}}break;case 31:case 13:d=ql(u,2),d!==null&&nt(d,u,2),Bu(),Ns(u,2)}if(u=As(a),u===null&&fs(e,t,a,Iu,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else fs(e,t,a,null,l)}}function As(e){return e=_i(e),zs(e)}var Iu=null;function zs(e){if(Iu=null,e=ta(e),e!==null){var t=v(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=x(t),e!==null)return e;e=null}else if(l===31){if(e=_(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 Iu=e,null}function Jd(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Km()){case er:return 2;case tr:return 8;case Yn:case Jm:return 32;case lr:return 268435456;default:return 32}default:return 32}}var _s=!1,_l=null,Ml=null,Rl=null,Rn=new Map,On=new Map,Ol=[],sy="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 $d(e,t){switch(e){case"focusin":case"focusout":_l=null;break;case"dragenter":case"dragleave":Ml=null;break;case"mouseover":case"mouseout":Rl=null;break;case"pointerover":case"pointerout":Rn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":On.delete(t.pointerId)}}function Cn(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=la(t),t!==null&&Vd(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function ry(e,t,l,a,n){switch(t){case"focusin":return _l=Cn(_l,e,t,l,a,n),!0;case"dragenter":return Ml=Cn(Ml,e,t,l,a,n),!0;case"mouseover":return Rl=Cn(Rl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Rn.set(u,Cn(Rn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,On.set(u,Cn(On.get(u)||null,e,t,l,a,n)),!0}return!1}function Wd(e){var t=ta(e.target);if(t!==null){var l=v(t);if(l!==null){if(t=l.tag,t===13){if(t=x(l),t!==null){e.blockedOn=t,sr(e.priority,function(){Kd(l)});return}}else if(t===31){if(t=_(l),t!==null){e.blockedOn=t,sr(e.priority,function(){Kd(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 Pu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=As(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);zi=a,l.target.dispatchEvent(a),zi=null}else return t=la(l),t!==null&&Vd(t),e.blockedOn=l,!1;t.shift()}return!0}function Fd(e,t,l){Pu(e)&&l.delete(t)}function oy(){_s=!1,_l!==null&&Pu(_l)&&(_l=null),Ml!==null&&Pu(Ml)&&(Ml=null),Rl!==null&&Pu(Rl)&&(Rl=null),Rn.forEach(Fd),On.forEach(Fd)}function ei(e,t){e.blockedOn===t&&(e.blockedOn=null,_s||(_s=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,oy)))}var ti=null;function Id(e){ti!==e&&(ti=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ti===e&&(ti=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(zs(a||l)===null)continue;break}var u=la(l);u!==null&&(e.splice(t,3),t-=3,Ac(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function wa(e){function t(y){return ei(y,e)}_l!==null&&ei(_l,e),Ml!==null&&ei(Ml,e),Rl!==null&&ei(Rl,e),Rn.forEach(t),On.forEach(t);for(var l=0;l<Ol.length;l++){var a=Ol[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ol.length&&(l=Ol[0],l.blockedOn===null);)Wd(l),l.blockedOn===null&&Ol.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],s=n[Ie]||null;if(typeof u=="function")s||Id(l);else if(s){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,s=u[Ie]||null)d=s.formAction;else if(zs(n)!==null)continue}else d=s.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),Id(l)}}}function Pd(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(s){return n=s})},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 Ms(e){this._internalRoot=e}li.prototype.render=Ms.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=vt();Qd(l,a,e,t,null,null)},li.prototype.unmount=Ms.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qd(e.current,2,null,e,null,null),Bu(),t[ea]=null}};function li(e){this._internalRoot=e}li.prototype.unstable_scheduleHydration=function(e){if(e){var t=cr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ol.length&&t!==0&&t<Ol[l].priority;l++);Ol.splice(l,0,e),l===0&&Wd(e)}};var em=o.version;if(em!=="19.2.4")throw Error(r(527,em,"19.2.4"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=h(t),e=e!==null?M(e):null,e=e===null?null:e.stateNode,e};var fy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ai=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ai.isDisabled&&ai.supportsFiber)try{ka=ai.inject(fy),ct=ai}catch{}}return Un.createRoot=function(e,t){if(!m(e))throw Error(r(299));var l=!1,a="",n=cf,u=sf,s=rf;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&&(s=t.onRecoverableError)),t=Gd(e,1,!1,null,null,l,a,null,n,u,s,Pd),e[ea]=t.current,os(e),new Ms(t)},Un.hydrateRoot=function(e,t,l){if(!m(e))throw Error(r(299));var a=!1,n="",u=cf,s=sf,d=rf,y=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&&(s=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(y=l.formState)),t=Gd(e,1,!0,t,l??null,a,n,y,u,s,d,Pd),t.context=Xd(null),l=t.current,a=vt(),a=gi(a),n=yl(a),n.callback=null,pl(l,n,a),l=a,t.current.lanes=l,Ga(t,l),Lt(t),e[ea]=t.current,os(e),new li(t)},Un.version="19.2.4",Un}var om;function Sy(){if(om)return Cs.exports;om=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(o){console.error(o)}}return i(),Cs.exports=by(),Cs.exports}var jy=Sy();/**
50
- * react-router v7.13.1
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */var fm="popstate";function dm(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function Ey(i={}){function o(m,v){let{pathname:x="/",search:_="",hash:S=""}=Pl(m.location.hash.substring(1));return!x.startsWith("/")&&!x.startsWith(".")&&(x="/"+x),Gs("",{pathname:x,search:_,hash:S},v.state&&v.state.usr||null,v.state&&v.state.key||"default")}function f(m,v){let x=m.document.querySelector("base"),_="";if(x&&x.getAttribute("href")){let S=m.location.href,h=S.indexOf("#");_=h===-1?S:S.slice(0,h)}return _+"#"+(typeof v=="string"?v:Bn(v))}function r(m,v){Dt(m.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(v)})`)}return Ty(o,f,r,i)}function _e(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function Dt(i,o){if(!i){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function Ny(){return Math.random().toString(36).substring(2,10)}function mm(i,o){return{usr:i.state,key:i.key,idx:o,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Gs(i,o,f=null,r,m){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof o=="string"?Pl(o):o,state:f,key:o&&o.key||r||Ny(),unstable_mask:m}}function Bn({pathname:i="/",search:o="",hash:f=""}){return o&&o!=="?"&&(i+=o.charAt(0)==="?"?o:"?"+o),f&&f!=="#"&&(i+=f.charAt(0)==="#"?f:"#"+f),i}function Pl(i){let o={};if(i){let f=i.indexOf("#");f>=0&&(o.hash=i.substring(f),i=i.substring(0,f));let r=i.indexOf("?");r>=0&&(o.search=i.substring(r),i=i.substring(0,r)),i&&(o.pathname=i)}return o}function Ty(i,o,f,r={}){let{window:m=document.defaultView,v5Compat:v=!1}=r,x=m.history,_="POP",S=null,h=M();h==null&&(h=0,x.replaceState({...x.state,idx:h},""));function M(){return(x.state||{idx:null}).idx}function p(){_="POP";let G=M(),U=G==null?null:G-h;h=G,S&&S({action:_,location:X.location,delta:U})}function w(G,U){_="PUSH";let $=dm(G)?G:Gs(X.location,G,U);f&&f($,G),h=M()+1;let Z=mm($,h),O=X.createHref($.unstable_mask||$);try{x.pushState(Z,"",O)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;m.location.assign(O)}v&&S&&S({action:_,location:X.location,delta:1})}function Q(G,U){_="REPLACE";let $=dm(G)?G:Gs(X.location,G,U);f&&f($,G),h=M();let Z=mm($,h),O=X.createHref($.unstable_mask||$);x.replaceState(Z,"",O),v&&S&&S({action:_,location:X.location,delta:0})}function Y(G){return Ay(G)}let X={get action(){return _},get location(){return i(m,x)},listen(G){if(S)throw new Error("A history only accepts one active listener");return m.addEventListener(fm,p),S=G,()=>{m.removeEventListener(fm,p),S=null}},createHref(G){return o(m,G)},createURL:Y,encodeLocation(G){let U=Y(G);return{pathname:U.pathname,search:U.search,hash:U.hash}},push:w,replace:Q,go(G){return x.go(G)}};return X}function Ay(i,o=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),_e(f,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:Bn(i);return r=r.replace(/ $/,"%20"),!o&&r.startsWith("//")&&(r=f+r),new URL(r,f)}function Tm(i,o,f="/"){return zy(i,o,f,!1)}function zy(i,o,f,r){let m=typeof o=="string"?Pl(o):o,v=il(m.pathname||"/",f);if(v==null)return null;let x=Am(i);_y(x);let _=null;for(let S=0;_==null&&S<x.length;++S){let h=qy(v);_=wy(x[S],h,r)}return _}function Am(i,o=[],f=[],r="",m=!1){let v=(x,_,S=m,h)=>{let M={relativePath:h===void 0?x.path||"":h,caseSensitive:x.caseSensitive===!0,childrenIndex:_,route:x};if(M.relativePath.startsWith("/")){if(!M.relativePath.startsWith(r)&&S)return;_e(M.relativePath.startsWith(r),`Absolute route path "${M.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),M.relativePath=M.relativePath.slice(r.length)}let p=qt([r,M.relativePath]),w=f.concat(M);x.children&&x.children.length>0&&(_e(x.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Am(x.children,o,w,p,S)),!(x.path==null&&!x.index)&&o.push({path:p,score:Hy(p,x.index),routesMeta:w})};return i.forEach((x,_)=>{var S;if(x.path===""||!((S=x.path)!=null&&S.includes("?")))v(x,_);else for(let h of zm(x.path))v(x,_,!0,h)}),o}function zm(i){let o=i.split("/");if(o.length===0)return[];let[f,...r]=o,m=f.endsWith("?"),v=f.replace(/\?$/,"");if(r.length===0)return m?[v,""]:[v];let x=zm(r.join("/")),_=[];return _.push(...x.map(S=>S===""?v:[v,S].join("/"))),m&&_.push(...x),_.map(S=>i.startsWith("/")&&S===""?"/":S)}function _y(i){i.sort((o,f)=>o.score!==f.score?f.score-o.score:By(o.routesMeta.map(r=>r.childrenIndex),f.routesMeta.map(r=>r.childrenIndex)))}var My=/^:[\w-]+$/,Ry=3,Oy=2,Cy=1,Dy=10,Uy=-2,hm=i=>i==="*";function Hy(i,o){let f=i.split("/"),r=f.length;return f.some(hm)&&(r+=Uy),o&&(r+=Oy),f.filter(m=>!hm(m)).reduce((m,v)=>m+(My.test(v)?Ry:v===""?Cy:Dy),r)}function By(i,o){return i.length===o.length&&i.slice(0,-1).every((r,m)=>r===o[m])?i[i.length-1]-o[o.length-1]:0}function wy(i,o,f=!1){let{routesMeta:r}=i,m={},v="/",x=[];for(let _=0;_<r.length;++_){let S=r[_],h=_===r.length-1,M=v==="/"?o:o.slice(v.length)||"/",p=si({path:S.relativePath,caseSensitive:S.caseSensitive,end:h},M),w=S.route;if(!p&&h&&f&&!r[r.length-1].route.index&&(p=si({path:S.relativePath,caseSensitive:S.caseSensitive,end:!1},M)),!p)return null;Object.assign(m,p.params),x.push({params:m,pathname:qt([v,p.pathname]),pathnameBase:Xy(qt([v,p.pathnameBase])),route:w}),p.pathnameBase!=="/"&&(v=qt([v,p.pathnameBase]))}return x}function si(i,o){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[f,r]=Ly(i.path,i.caseSensitive,i.end),m=o.match(f);if(!m)return null;let v=m[0],x=v.replace(/(.)\/+$/,"$1"),_=m.slice(1);return{params:r.reduce((h,{paramName:M,isOptional:p},w)=>{if(M==="*"){let Y=_[w]||"";x=v.slice(0,v.length-Y.length).replace(/(.)\/+$/,"$1")}const Q=_[w];return p&&!Q?h[M]=void 0:h[M]=(Q||"").replace(/%2F/g,"/"),h},{}),pathname:v,pathnameBase:x,pattern:i}}function Ly(i,o=!1,f=!0){Dt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let r=[],m="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(x,_,S,h,M)=>{if(r.push({paramName:_,isOptional:S!=null}),S){let p=M.charAt(h+x.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(r.push({paramName:"*"}),m+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?m+="\\/*$":i!==""&&i!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,o?void 0:"i"),r]}function qy(i){try{return i.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Dt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),i}}function il(i,o){if(o==="/")return i;if(!i.toLowerCase().startsWith(o.toLowerCase()))return null;let f=o.endsWith("/")?o.length-1:o.length,r=i.charAt(f);return r&&r!=="/"?null:i.slice(f)||"/"}var ky=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Yy(i,o="/"){let{pathname:f,search:r="",hash:m=""}=typeof i=="string"?Pl(i):i,v;return f?(f=f.replace(/\/\/+/g,"/"),f.startsWith("/")?v=vm(f.substring(1),"/"):v=vm(f,o)):v=o,{pathname:v,search:Qy(r),hash:Zy(m)}}function vm(i,o){let f=o.replace(/\/+$/,"").split("/");return i.split("/").forEach(m=>{m===".."?f.length>1&&f.pop():m!=="."&&f.push(m)}),f.length>1?f.join("/"):"/"}function Bs(i,o,f,r){return`Cannot include a '${i}' character in a manually specified \`to.${o}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${f}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Gy(i){return i.filter((o,f)=>f===0||o.route.path&&o.route.path.length>0)}function _m(i){let o=Gy(i);return o.map((f,r)=>r===o.length-1?f.pathname:f.pathnameBase)}function Zs(i,o,f,r=!1){let m;typeof i=="string"?m=Pl(i):(m={...i},_e(!m.pathname||!m.pathname.includes("?"),Bs("?","pathname","search",m)),_e(!m.pathname||!m.pathname.includes("#"),Bs("#","pathname","hash",m)),_e(!m.search||!m.search.includes("#"),Bs("#","search","hash",m)));let v=i===""||m.pathname==="",x=v?"/":m.pathname,_;if(x==null)_=f;else{let p=o.length-1;if(!r&&x.startsWith("..")){let w=x.split("/");for(;w[0]==="..";)w.shift(),p-=1;m.pathname=w.join("/")}_=p>=0?o[p]:"/"}let S=Yy(m,_),h=x&&x!=="/"&&x.endsWith("/"),M=(v||x===".")&&f.endsWith("/");return!S.pathname.endsWith("/")&&(h||M)&&(S.pathname+="/"),S}var qt=i=>i.join("/").replace(/\/\/+/g,"/"),Xy=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Qy=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Zy=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Vy=class{constructor(i,o,f,r=!1){this.status=i,this.statusText=o||"",this.internal=r,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function Ky(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function Jy(i){return i.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Mm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Rm(i,o){let f=i;if(typeof f!="string"||!ky.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let r=f,m=!1;if(Mm)try{let v=new URL(window.location.href),x=f.startsWith("//")?new URL(v.protocol+f):new URL(f),_=il(x.pathname,o);x.origin===v.origin&&_!=null?f=_+x.search+x.hash:m=!0}catch{Dt(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:m,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Om=["POST","PUT","PATCH","DELETE"];new Set(Om);var $y=["GET",...Om];new Set($y);var La=E.createContext(null);La.displayName="DataRouter";var ri=E.createContext(null);ri.displayName="DataRouterState";var Wy=E.createContext(!1),Cm=E.createContext({isTransitioning:!1});Cm.displayName="ViewTransition";var Fy=E.createContext(new Map);Fy.displayName="Fetchers";var Iy=E.createContext(null);Iy.displayName="Await";var _t=E.createContext(null);_t.displayName="Navigation";var wn=E.createContext(null);wn.displayName="Location";var kt=E.createContext({outlet:null,matches:[],isDataRoute:!1});kt.displayName="Route";var Vs=E.createContext(null);Vs.displayName="RouteError";var Dm="REACT_ROUTER_ERROR",Py="REDIRECT",ep="ROUTE_ERROR_RESPONSE";function tp(i){if(i.startsWith(`${Dm}:${Py}:{`))try{let o=JSON.parse(i.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function lp(i){if(i.startsWith(`${Dm}:${ep}:{`))try{let o=JSON.parse(i.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new Vy(o.status,o.statusText,o.data)}catch{}}function ap(i,{relative:o}={}){_e(Ln(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:r}=E.useContext(_t),{hash:m,pathname:v,search:x}=qn(i,{relative:o}),_=v;return f!=="/"&&(_=v==="/"?f:qt([f,v])),r.createHref({pathname:_,search:x,hash:m})}function Ln(){return E.useContext(wn)!=null}function cl(){return _e(Ln(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(wn).location}var Um="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Hm(i){E.useContext(_t).static||E.useLayoutEffect(i)}function np(){let{isDataRoute:i}=E.useContext(kt);return i?pp():up()}function up(){_e(Ln(),"useNavigate() may be used only in the context of a <Router> component.");let i=E.useContext(La),{basename:o,navigator:f}=E.useContext(_t),{matches:r}=E.useContext(kt),{pathname:m}=cl(),v=JSON.stringify(_m(r)),x=E.useRef(!1);return Hm(()=>{x.current=!0}),E.useCallback((S,h={})=>{if(Dt(x.current,Um),!x.current)return;if(typeof S=="number"){f.go(S);return}let M=Zs(S,JSON.parse(v),m,h.relative==="path");i==null&&o!=="/"&&(M.pathname=M.pathname==="/"?o:qt([o,M.pathname])),(h.replace?f.replace:f.push)(M,h.state,h)},[o,f,v,m,i])}E.createContext(null);function oi(){let{matches:i}=E.useContext(kt),o=i[i.length-1];return o?o.params:{}}function qn(i,{relative:o}={}){let{matches:f}=E.useContext(kt),{pathname:r}=cl(),m=JSON.stringify(_m(f));return E.useMemo(()=>Zs(i,JSON.parse(m),r,o==="path"),[i,m,r,o])}function ip(i,o){return Bm(i,o)}function Bm(i,o,f){var G;_e(Ln(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=E.useContext(_t),{matches:m}=E.useContext(kt),v=m[m.length-1],x=v?v.params:{},_=v?v.pathname:"/",S=v?v.pathnameBase:"/",h=v&&v.route;{let U=h&&h.path||"";Lm(_,!h||U.endsWith("*")||U.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${_}" (under <Route path="${U}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
-
60
- Please change the parent <Route path="${U}"> to <Route path="${U==="/"?"*":`${U}/*`}">.`)}let M=cl(),p;if(o){let U=typeof o=="string"?Pl(o):o;_e(S==="/"||((G=U.pathname)==null?void 0:G.startsWith(S)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${S}" but pathname "${U.pathname}" was given in the \`location\` prop.`),p=U}else p=M;let w=p.pathname||"/",Q=w;if(S!=="/"){let U=S.replace(/^\//,"").split("/");Q="/"+w.replace(/^\//,"").split("/").slice(U.length).join("/")}let Y=Tm(i,{pathname:Q});Dt(h||Y!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),Dt(Y==null||Y[Y.length-1].route.element!==void 0||Y[Y.length-1].route.Component!==void 0||Y[Y.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let X=fp(Y&&Y.map(U=>Object.assign({},U,{params:Object.assign({},x,U.params),pathname:qt([S,r.encodeLocation?r.encodeLocation(U.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:U.pathname]),pathnameBase:U.pathnameBase==="/"?S:qt([S,r.encodeLocation?r.encodeLocation(U.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:U.pathnameBase])})),m,f);return o&&X?E.createElement(wn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},X):X}function cp(){let i=yp(),o=Ky(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),f=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:r},v={padding:"2px 4px",backgroundColor:r},x=null;return console.error("Error handled by React Router default ErrorBoundary:",i),x=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:v},"ErrorBoundary")," or"," ",E.createElement("code",{style:v},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},o),f?E.createElement("pre",{style:m},f):null,x)}var sp=E.createElement(cp,null),wm=class extends E.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,o){return o.location!==i.location||o.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:o.error,location:o.location,revalidation:i.revalidation||o.revalidation}}componentDidCatch(i,o){this.props.onError?this.props.onError(i,o):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const f=lp(i.digest);f&&(i=f)}let o=i!==void 0?E.createElement(kt.Provider,{value:this.props.routeContext},E.createElement(Vs.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?E.createElement(rp,{error:i},o):o}};wm.contextType=Wy;var ws=new WeakMap;function rp({children:i,error:o}){let{basename:f}=E.useContext(_t);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let r=tp(o.digest);if(r){let m=ws.get(o);if(m)throw m;let v=Rm(r.location,f);if(Mm&&!ws.get(o))if(v.isExternal||r.reloadDocument)window.location.href=v.absoluteURL||v.to;else{const x=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(v.to,{replace:r.replace}));throw ws.set(o,x),x}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${v.absoluteURL||v.to}`})}}return i}function op({routeContext:i,match:o,children:f}){let r=E.useContext(La);return r&&r.static&&r.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=o.route.id),E.createElement(kt.Provider,{value:i},f)}function fp(i,o=[],f){let r=f==null?void 0:f.state;if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(o.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let m=i,v=r==null?void 0:r.errors;if(v!=null){let M=m.findIndex(p=>p.route.id&&(v==null?void 0:v[p.route.id])!==void 0);_e(M>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(v).join(",")}`),m=m.slice(0,Math.min(m.length,M+1))}let x=!1,_=-1;if(f&&r){x=r.renderFallback;for(let M=0;M<m.length;M++){let p=m[M];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(_=M),p.route.id){let{loaderData:w,errors:Q}=r,Y=p.route.loader&&!w.hasOwnProperty(p.route.id)&&(!Q||Q[p.route.id]===void 0);if(p.route.lazy||Y){f.isStatic&&(x=!0),_>=0?m=m.slice(0,_+1):m=[m[0]];break}}}}let S=f==null?void 0:f.onError,h=r&&S?(M,p)=>{var w,Q;S(M,{location:r.location,params:((Q=(w=r.matches)==null?void 0:w[0])==null?void 0:Q.params)??{},unstable_pattern:Jy(r.matches),errorInfo:p})}:void 0;return m.reduceRight((M,p,w)=>{let Q,Y=!1,X=null,G=null;r&&(Q=v&&p.route.id?v[p.route.id]:void 0,X=p.route.errorElement||sp,x&&(_<0&&w===0?(Lm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Y=!0,G=null):_===w&&(Y=!0,G=p.route.hydrateFallbackElement||null)));let U=o.concat(m.slice(0,w+1)),$=()=>{let Z;return Q?Z=X:Y?Z=G:p.route.Component?Z=E.createElement(p.route.Component,null):p.route.element?Z=p.route.element:Z=M,E.createElement(op,{match:p,routeContext:{outlet:M,matches:U,isDataRoute:r!=null},children:Z})};return r&&(p.route.ErrorBoundary||p.route.errorElement||w===0)?E.createElement(wm,{location:r.location,revalidation:r.revalidation,component:X,error:Q,children:$(),routeContext:{outlet:null,matches:U,isDataRoute:!0},onError:h}):$()},null)}function Ks(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dp(i){let o=E.useContext(La);return _e(o,Ks(i)),o}function mp(i){let o=E.useContext(ri);return _e(o,Ks(i)),o}function hp(i){let o=E.useContext(kt);return _e(o,Ks(i)),o}function Js(i){let o=hp(i),f=o.matches[o.matches.length-1];return _e(f.route.id,`${i} can only be used on routes that contain a unique "id"`),f.route.id}function vp(){return Js("useRouteId")}function yp(){var r;let i=E.useContext(Vs),o=mp("useRouteError"),f=Js("useRouteError");return i!==void 0?i:(r=o.errors)==null?void 0:r[f]}function pp(){let{router:i}=dp("useNavigate"),o=Js("useNavigate"),f=E.useRef(!1);return Hm(()=>{f.current=!0}),E.useCallback(async(m,v={})=>{Dt(f.current,Um),f.current&&(typeof m=="number"?await i.navigate(m):await i.navigate(m,{fromRouteId:o,...v}))},[i,o])}var ym={};function Lm(i,o,f){!o&&!ym[i]&&(ym[i]=!0,Dt(!1,f))}E.memo(xp);function xp({routes:i,future:o,state:f,isStatic:r,onError:m}){return Bm(i,void 0,{state:f,isStatic:r,onError:m})}function Il(i){_e(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function gp({basename:i="/",children:o=null,location:f,navigationType:r="POP",navigator:m,static:v=!1,unstable_useTransitions:x}){_e(!Ln(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let _=i.replace(/^\/*/,"/"),S=E.useMemo(()=>({basename:_,navigator:m,static:v,unstable_useTransitions:x,future:{}}),[_,m,v,x]);typeof f=="string"&&(f=Pl(f));let{pathname:h="/",search:M="",hash:p="",state:w=null,key:Q="default",unstable_mask:Y}=f,X=E.useMemo(()=>{let G=il(h,_);return G==null?null:{location:{pathname:G,search:M,hash:p,state:w,key:Q,unstable_mask:Y},navigationType:r}},[_,h,M,p,w,Q,r,Y]);return Dt(X!=null,`<Router basename="${_}"> is not able to match the URL "${h}${M}${p}" because it does not start with the basename, so the <Router> won't render anything.`),X==null?null:E.createElement(_t.Provider,{value:S},E.createElement(wn.Provider,{children:o,value:X}))}function bp({children:i,location:o}){return ip(Xs(i),o)}function Xs(i,o=[]){let f=[];return E.Children.forEach(i,(r,m)=>{if(!E.isValidElement(r))return;let v=[...o,m];if(r.type===E.Fragment){f.push.apply(f,Xs(r.props.children,v));return}_e(r.type===Il,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),_e(!r.props.index||!r.props.children,"An index route cannot have child routes.");let x={id:r.props.id||v.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(x.children=Xs(r.props.children,v)),f.push(x)}),f}var ii="get",ci="application/x-www-form-urlencoded";function fi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Sp(i){return fi(i)&&i.tagName.toLowerCase()==="button"}function jp(i){return fi(i)&&i.tagName.toLowerCase()==="form"}function Ep(i){return fi(i)&&i.tagName.toLowerCase()==="input"}function Np(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Tp(i,o){return i.button===0&&(!o||o==="_self")&&!Np(i)}var ni=null;function Ap(){if(ni===null)try{new FormData(document.createElement("form"),0),ni=!1}catch{ni=!0}return ni}var zp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ls(i){return i!=null&&!zp.has(i)?(Dt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ci}"`),null):i}function _p(i,o){let f,r,m,v,x;if(jp(i)){let _=i.getAttribute("action");r=_?il(_,o):null,f=i.getAttribute("method")||ii,m=Ls(i.getAttribute("enctype"))||ci,v=new FormData(i)}else if(Sp(i)||Ep(i)&&(i.type==="submit"||i.type==="image")){let _=i.form;if(_==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let S=i.getAttribute("formaction")||_.getAttribute("action");if(r=S?il(S,o):null,f=i.getAttribute("formmethod")||_.getAttribute("method")||ii,m=Ls(i.getAttribute("formenctype"))||Ls(_.getAttribute("enctype"))||ci,v=new FormData(_,i),!Ap()){let{name:h,type:M,value:p}=i;if(M==="image"){let w=h?`${h}.`:"";v.append(`${w}x`,"0"),v.append(`${w}y`,"0")}else h&&v.append(h,p)}}else{if(fi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=ii,r=null,m=ci,x=i}return v&&m==="text/plain"&&(x=v,v=void 0),{action:r,method:f.toLowerCase(),encType:m,formData:v,body:x}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function $s(i,o){if(i===!1||i===null||typeof i>"u")throw new Error(o)}function Mp(i,o,f,r){let m=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return f?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${r}`:m.pathname=`${m.pathname}.${r}`:m.pathname==="/"?m.pathname=`_root.${r}`:o&&il(m.pathname,o)==="/"?m.pathname=`${o.replace(/\/$/,"")}/_root.${r}`:m.pathname=`${m.pathname.replace(/\/$/,"")}.${r}`,m}async function Rp(i,o){if(i.id in o)return o[i.id];try{let f=await import(i.module);return o[i.id]=f,f}catch(f){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(f),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Op(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function Cp(i,o,f){let r=await Promise.all(i.map(async m=>{let v=o.routes[m.route.id];if(v){let x=await Rp(v,f);return x.links?x.links():[]}return[]}));return Bp(r.flat(1).filter(Op).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function pm(i,o,f,r,m,v){let x=(S,h)=>f[h]?S.route.id!==f[h].route.id:!0,_=(S,h)=>{var M;return f[h].pathname!==S.pathname||((M=f[h].route.path)==null?void 0:M.endsWith("*"))&&f[h].params["*"]!==S.params["*"]};return v==="assets"?o.filter((S,h)=>x(S,h)||_(S,h)):v==="data"?o.filter((S,h)=>{var p;let M=r.routes[S.route.id];if(!M||!M.hasLoader)return!1;if(x(S,h)||_(S,h))return!0;if(S.route.shouldRevalidate){let w=S.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:((p=f[0])==null?void 0:p.params)||{},nextUrl:new URL(i,window.origin),nextParams:S.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function Dp(i,o,{includeHydrateFallback:f}={}){return Up(i.map(r=>{let m=o.routes[r.route.id];if(!m)return[];let v=[m.module];return m.clientActionModule&&(v=v.concat(m.clientActionModule)),m.clientLoaderModule&&(v=v.concat(m.clientLoaderModule)),f&&m.hydrateFallbackModule&&(v=v.concat(m.hydrateFallbackModule)),m.imports&&(v=v.concat(m.imports)),v}).flat(1))}function Up(i){return[...new Set(i)]}function Hp(i){let o={},f=Object.keys(i).sort();for(let r of f)o[r]=i[r];return o}function Bp(i,o){let f=new Set;return new Set(o),i.reduce((r,m)=>{let v=JSON.stringify(Hp(m));return f.has(v)||(f.add(v),r.push({key:v,link:m})),r},[])}function qm(){let i=E.useContext(La);return $s(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function wp(){let i=E.useContext(ri);return $s(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Ws=E.createContext(void 0);Ws.displayName="FrameworkContext";function km(){let i=E.useContext(Ws);return $s(i,"You must render this element inside a <HydratedRouter> element"),i}function Lp(i,o){let f=E.useContext(Ws),[r,m]=E.useState(!1),[v,x]=E.useState(!1),{onFocus:_,onBlur:S,onMouseEnter:h,onMouseLeave:M,onTouchStart:p}=o,w=E.useRef(null);E.useEffect(()=>{if(i==="render"&&x(!0),i==="viewport"){let X=U=>{U.forEach($=>{x($.isIntersecting)})},G=new IntersectionObserver(X,{threshold:.5});return w.current&&G.observe(w.current),()=>{G.disconnect()}}},[i]),E.useEffect(()=>{if(r){let X=setTimeout(()=>{x(!0)},100);return()=>{clearTimeout(X)}}},[r]);let Q=()=>{m(!0)},Y=()=>{m(!1),x(!1)};return f?i!=="intent"?[v,w,{}]:[v,w,{onFocus:Hn(_,Q),onBlur:Hn(S,Y),onMouseEnter:Hn(h,Q),onMouseLeave:Hn(M,Y),onTouchStart:Hn(p,Q)}]:[!1,w,{}]}function Hn(i,o){return f=>{i&&i(f),f.defaultPrevented||o(f)}}function qp({page:i,...o}){let{router:f}=qm(),r=E.useMemo(()=>Tm(f.routes,i,f.basename),[f.routes,i,f.basename]);return r?E.createElement(Yp,{page:i,matches:r,...o}):null}function kp(i){let{manifest:o,routeModules:f}=km(),[r,m]=E.useState([]);return E.useEffect(()=>{let v=!1;return Cp(i,o,f).then(x=>{v||m(x)}),()=>{v=!0}},[i,o,f]),r}function Yp({page:i,matches:o,...f}){let r=cl(),{future:m,manifest:v,routeModules:x}=km(),{basename:_}=qm(),{loaderData:S,matches:h}=wp(),M=E.useMemo(()=>pm(i,o,h,v,r,"data"),[i,o,h,v,r]),p=E.useMemo(()=>pm(i,o,h,v,r,"assets"),[i,o,h,v,r]),w=E.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let X=new Set,G=!1;if(o.forEach($=>{var O;let Z=v.routes[$.route.id];!Z||!Z.hasLoader||(!M.some(A=>A.route.id===$.route.id)&&$.route.id in S&&((O=x[$.route.id])!=null&&O.shouldRevalidate)||Z.hasClientLoader?G=!0:X.add($.route.id))}),X.size===0)return[];let U=Mp(i,_,m.unstable_trailingSlashAwareDataRequests,"data");return G&&X.size>0&&U.searchParams.set("_routes",o.filter($=>X.has($.route.id)).map($=>$.route.id).join(",")),[U.pathname+U.search]},[_,m.unstable_trailingSlashAwareDataRequests,S,r,v,M,o,i,x]),Q=E.useMemo(()=>Dp(p,v),[p,v]),Y=kp(p);return E.createElement(E.Fragment,null,w.map(X=>E.createElement("link",{key:X,rel:"prefetch",as:"fetch",href:X,...f})),Q.map(X=>E.createElement("link",{key:X,rel:"modulepreload",href:X,...f})),Y.map(({key:X,link:G})=>E.createElement("link",{key:X,nonce:f.nonce,...G,crossOrigin:G.crossOrigin??f.crossOrigin})))}function Gp(...i){return o=>{i.forEach(f=>{typeof f=="function"?f(o):f!=null&&(f.current=o)})}}var Xp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Xp&&(window.__reactRouterVersion="7.13.1")}catch{}function Qp({basename:i,children:o,unstable_useTransitions:f,window:r}){let m=E.useRef();m.current==null&&(m.current=Ey({window:r,v5Compat:!0}));let v=m.current,[x,_]=E.useState({action:v.action,location:v.location}),S=E.useCallback(h=>{f===!1?_(h):E.startTransition(()=>_(h))},[f]);return E.useLayoutEffect(()=>v.listen(S),[v,S]),E.createElement(gp,{basename:i,children:o,location:x.location,navigationType:x.action,navigator:v,unstable_useTransitions:f})}var Ym=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ct=E.forwardRef(function({onClick:o,discover:f="render",prefetch:r="none",relative:m,reloadDocument:v,replace:x,unstable_mask:_,state:S,target:h,to:M,preventScrollReset:p,viewTransition:w,unstable_defaultShouldRevalidate:Q,...Y},X){let{basename:G,navigator:U,unstable_useTransitions:$}=E.useContext(_t),Z=typeof M=="string"&&Ym.test(M),O=Rm(M,G);M=O.to;let A=ap(M,{relative:m}),C=cl(),k=null;if(_){let Ue=Zs(_,[],C.unstable_mask?C.unstable_mask.pathname:"/",!0);G!=="/"&&(Ue.pathname=Ue.pathname==="/"?G:qt([G,Ue.pathname])),k=U.createHref(Ue)}let[P,de,Fe]=Lp(r,Y),yt=Jp(M,{replace:x,unstable_mask:_,state:S,target:h,preventScrollReset:p,relative:m,viewTransition:w,unstable_defaultShouldRevalidate:Q,unstable_useTransitions:$});function Ke(Ue){o&&o(Ue),Ue.defaultPrevented||yt(Ue)}let Ut=!(O.isExternal||v),pt=E.createElement("a",{...Y,...Fe,href:(Ut?k:void 0)||O.absoluteURL||A,onClick:Ut?Ke:o,ref:Gp(X,de),target:h,"data-discover":!Z&&f==="render"?"true":void 0});return P&&!Z?E.createElement(E.Fragment,null,pt,E.createElement(qp,{page:A})):pt});Ct.displayName="Link";var Zp=E.forwardRef(function({"aria-current":o="page",caseSensitive:f=!1,className:r="",end:m=!1,style:v,to:x,viewTransition:_,children:S,...h},M){let p=qn(x,{relative:h.relative}),w=cl(),Q=E.useContext(ri),{navigator:Y,basename:X}=E.useContext(_t),G=Q!=null&&Pp(p)&&_===!0,U=Y.encodeLocation?Y.encodeLocation(p).pathname:p.pathname,$=w.pathname,Z=Q&&Q.navigation&&Q.navigation.location?Q.navigation.location.pathname:null;f||($=$.toLowerCase(),Z=Z?Z.toLowerCase():null,U=U.toLowerCase()),Z&&X&&(Z=il(Z,X)||Z);const O=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let A=$===U||!m&&$.startsWith(U)&&$.charAt(O)==="/",C=Z!=null&&(Z===U||!m&&Z.startsWith(U)&&Z.charAt(U.length)==="/"),k={isActive:A,isPending:C,isTransitioning:G},P=A?o:void 0,de;typeof r=="function"?de=r(k):de=[r,A?"active":null,C?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let Fe=typeof v=="function"?v(k):v;return E.createElement(Ct,{...h,"aria-current":P,className:de,ref:M,style:Fe,to:x,viewTransition:_},typeof S=="function"?S(k):S)});Zp.displayName="NavLink";var Vp=E.forwardRef(({discover:i="render",fetcherKey:o,navigate:f,reloadDocument:r,replace:m,state:v,method:x=ii,action:_,onSubmit:S,relative:h,preventScrollReset:M,viewTransition:p,unstable_defaultShouldRevalidate:w,...Q},Y)=>{let{unstable_useTransitions:X}=E.useContext(_t),G=Fp(),U=Ip(_,{relative:h}),$=x.toLowerCase()==="get"?"get":"post",Z=typeof _=="string"&&Ym.test(_),O=A=>{if(S&&S(A),A.defaultPrevented)return;A.preventDefault();let C=A.nativeEvent.submitter,k=(C==null?void 0:C.getAttribute("formmethod"))||x,P=()=>G(C||A.currentTarget,{fetcherKey:o,method:k,navigate:f,replace:m,state:v,relative:h,preventScrollReset:M,viewTransition:p,unstable_defaultShouldRevalidate:w});X&&f!==!1?E.startTransition(()=>P()):P()};return E.createElement("form",{ref:Y,method:$,action:U,onSubmit:r?S:O,...Q,"data-discover":!Z&&i==="render"?"true":void 0})});Vp.displayName="Form";function Kp(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gm(i){let o=E.useContext(La);return _e(o,Kp(i)),o}function Jp(i,{target:o,replace:f,unstable_mask:r,state:m,preventScrollReset:v,relative:x,viewTransition:_,unstable_defaultShouldRevalidate:S,unstable_useTransitions:h}={}){let M=np(),p=cl(),w=qn(i,{relative:x});return E.useCallback(Q=>{if(Tp(Q,o)){Q.preventDefault();let Y=f!==void 0?f:Bn(p)===Bn(w),X=()=>M(i,{replace:Y,unstable_mask:r,state:m,preventScrollReset:v,relative:x,viewTransition:_,unstable_defaultShouldRevalidate:S});h?E.startTransition(()=>X()):X()}},[p,M,w,f,r,m,o,i,v,x,_,S,h])}var $p=0,Wp=()=>`__${String(++$p)}__`;function Fp(){let{router:i}=Gm("useSubmit"),{basename:o}=E.useContext(_t),f=vp(),r=i.fetch,m=i.navigate;return E.useCallback(async(v,x={})=>{let{action:_,method:S,encType:h,formData:M,body:p}=_p(v,o);if(x.navigate===!1){let w=x.fetcherKey||Wp();await r(w,f,x.action||_,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:M,body:p,formMethod:x.method||S,formEncType:x.encType||h,flushSync:x.flushSync})}else await m(x.action||_,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:M,body:p,formMethod:x.method||S,formEncType:x.encType||h,replace:x.replace,state:x.state,fromRouteId:f,flushSync:x.flushSync,viewTransition:x.viewTransition})},[r,m,o,f])}function Ip(i,{relative:o}={}){let{basename:f}=E.useContext(_t),r=E.useContext(kt);_e(r,"useFormAction must be used inside a RouteContext");let[m]=r.matches.slice(-1),v={...qn(i||".",{relative:o})},x=cl();if(i==null){v.search=x.search;let _=new URLSearchParams(v.search),S=_.getAll("index");if(S.some(M=>M==="")){_.delete("index"),S.filter(p=>p).forEach(p=>_.append("index",p));let M=_.toString();v.search=M?`?${M}`:""}}return(!i||i===".")&&m.route.index&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(v.pathname=v.pathname==="/"?f:qt([f,v.pathname])),Bn(v)}function Pp(i,{relative:o}={}){let f=E.useContext(Cm);_e(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Gm("useViewTransitionState"),m=qn(i,{relative:o});if(!f.isTransitioning)return!1;let v=il(f.currentLocation.pathname,r)||f.currentLocation.pathname,x=il(f.nextLocation.pathname,r)||f.nextLocation.pathname;return si(m.pathname,x)!=null||si(m.pathname,v)!=null}const e1="";async function ul(i,o){const f=await fetch(`${e1}${i}`,o);if(!f.ok){const r=await f.json().catch(()=>({error:f.statusText}));throw new Error(r.error||`HTTP ${f.status}`)}return f.json()}const ut={getConfig(){return ul("/api/config")},setConfig(i,o){return ul("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:i,model:o})})},getSkills(){return ul("/api/skills")},getSkillDetail(i,o){return ul(`/api/skills/${i}/${o}`)},getEvals(i,o){return ul(`/api/skills/${i}/${o}/evals`)},saveEvals(i,o,f){return ul(`/api/skills/${i}/${o}/evals`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(f)})},getLatestBenchmark(i,o){return ul(`/api/skills/${i}/${o}/benchmark/latest`)},getHistory(i,o){return ul(`/api/skills/${i}/${o}/history`)},getHistoryEntry(i,o,f){return ul(`/api/skills/${i}/${o}/history/${encodeURIComponent(f)}`)}},xm={pass:{bg:"var(--green-muted)",text:"var(--green)",dot:"var(--green)",label:"Passing"},fail:{bg:"var(--red-muted)",text:"var(--red)",dot:"var(--red)",label:"Failing"},pending:{bg:"var(--yellow-muted)",text:"var(--yellow)",dot:"var(--yellow)",label:"Pending"},missing:{bg:"var(--surface-3)",text:"var(--text-tertiary)",dot:"var(--text-tertiary)",label:"No evals"}};function qs(){return c.jsx("div",{className:"glass-card p-5",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{className:"flex-1",children:[c.jsx("div",{className:"skeleton h-5 w-36 mb-2"}),c.jsx("div",{className:"skeleton h-3.5 w-48"})]}),c.jsx("div",{className:"skeleton h-6 w-20 rounded-full"})]})})}function t1(){const[i,o]=E.useState([]),[f,r]=E.useState(!0),[m,v]=E.useState(null);E.useEffect(()=>{ut.getSkills().then(o).catch(_=>v(_.message)).finally(()=>r(!1))},[]);const x=i.reduce((_,S)=>{var h;return(_[h=S.plugin]||(_[h]=[])).push(S),_},{});return c.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[c.jsxs("div",{className:"mb-8",children:[c.jsx("h2",{className:"text-[22px] font-semibold tracking-tight",style:{color:"var(--text-primary)"},children:"Skills"}),c.jsx("p",{className:"text-[13px] mt-1",style:{color:"var(--text-tertiary)"},children:f?"Scanning plugins...":`${i.length} skill${i.length!==1?"s":""} across ${Object.keys(x).length} plugin${Object.keys(x).length!==1?"s":""}`})]}),m&&c.jsx("div",{className:"mb-6 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:m}),f&&c.jsxs("div",{className:"space-y-3",children:[c.jsx(qs,{}),c.jsx(qs,{}),c.jsx(qs,{})]}),!f&&c.jsx("div",{className:"space-y-8 stagger-children",children:Object.entries(x).map(([_,S])=>c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-3 px-1",children:[c.jsx("div",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--accent)"}}),c.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:_}),c.jsx("div",{className:"flex-1 h-px",style:{background:"var(--border-subtle)"}})]}),c.jsx("div",{className:"grid gap-2",children:S.map(h=>{const M=xm[h.benchmarkStatus]||xm.missing;return c.jsxs(Ct,{to:`/skills/${h.plugin}/${h.skill}`,className:"glass-card glass-card-interactive p-5 flex items-center justify-between group",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"flex items-center gap-2",children:c.jsx("span",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:h.skill})}),c.jsxs("div",{className:"flex items-center gap-3 mt-1.5",children:[c.jsxs("span",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:[h.evalCount," eval",h.evalCount!==1?"s":""]}),c.jsxs("span",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:[h.assertionCount," assertion",h.assertionCount!==1?"s":""]}),h.lastBenchmark&&c.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:new Date(h.lastBenchmark).toLocaleDateString()})]})]}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsxs("span",{className:"pill",style:{background:M.bg,color:M.text},children:[c.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:M.dot}}),M.label]}),c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"opacity-0 group-hover:opacity-100 transition-opacity duration-150",style:{transform:"translateX(0)",transition:"transform 0.15s ease"},children:c.jsx("polyline",{points:"9 18 15 12 9 6"})})]})]},`${h.plugin}/${h.skill}`)})})]},_))}),!f&&i.length===0&&!m&&c.jsxs("div",{className:"text-center py-16 animate-fade-in-scale",children:[c.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:c.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"})})}),c.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"No skills found"}),c.jsxs("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:["Check your ",c.jsx("code",{className:"px-1.5 py-0.5 rounded text-[11px]",style:{background:"var(--surface-2)"},children:"--root"})," directory"]})]})]})}function l1(){const{plugin:i,skill:o}=oi(),[f,r]=E.useState(null),[m,v]=E.useState(!0),[x,_]=E.useState(null),[S,h]=E.useState(!1),[M,p]=E.useState(null),[w,Q]=E.useState(!1);E.useEffect(()=>{!i||!o||ut.getEvals(i,o).then(r).catch(A=>_(A.message)).finally(()=>v(!1))},[i,o]);async function Y(A){if(!(!i||!o)){h(!0);try{const C=await ut.saveEvals(i,o,A);r(C),_(null)}catch(C){_(C.message)}finally{h(!1)}}}function X(A){f&&(Y({...f,evals:[...f.evals,A]}),Q(!1))}function G(A){f&&(Y({...f,evals:f.evals.map(C=>C.id===A.id?A:C)}),p(null))}function U(A){!f||!confirm("Delete this eval case?")||Y({...f,evals:f.evals.filter(C=>C.id!==A)})}function $(A){if(!f)return;const C=f.evals.find(k=>k.id===A);C&&G({...C,assertions:[...C.assertions,{id:`assert-${Date.now()}`,text:"New assertion",type:"boolean"}]})}function Z(A,C,k){if(!f)return;const P=f.evals.find(de=>de.id===A);P&&G({...P,assertions:P.assertions.map(de=>de.id===C?{...de,text:k}:de)})}function O(A,C){if(!f)return;const k=f.evals.find(P=>P.id===A);k&&G({...k,assertions:k.assertions.filter(P=>P.id!==C)})}return m?c.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[c.jsx("div",{className:"skeleton h-5 w-48 mb-6"}),c.jsxs("div",{className:"flex gap-2 mb-6",children:[c.jsx("div",{className:"skeleton h-9 w-32 rounded-lg"}),c.jsx("div",{className:"skeleton h-9 w-32 rounded-lg"})]}),c.jsxs("div",{className:"space-y-4",children:[c.jsx("div",{className:"skeleton h-32 rounded-xl"}),c.jsx("div",{className:"skeleton h-32 rounded-xl"})]})]}):c.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1 text-[13px]",children:[c.jsx(Ct,{to:"/",className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:A=>{A.currentTarget.style.color="var(--text-primary)"},onMouseLeave:A=>{A.currentTarget.style.color="var(--text-tertiary)"},children:"Skills"}),c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:c.jsx("polyline",{points:"9 18 15 12 9 6"})}),c.jsx("span",{style:{color:"var(--text-tertiary)"},children:i}),c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:c.jsx("polyline",{points:"9 18 15 12 9 6"})}),c.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:o})]}),c.jsxs("div",{className:"flex items-center gap-2 mt-4 mb-7",children:[c.jsxs(Ct,{to:`/skills/${i}/${o}/benchmark`,className:"btn btn-primary",children:[c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})}),"Run Benchmark"]}),c.jsxs(Ct,{to:`/skills/${i}/${o}/compare`,className:"btn btn-purple",children:[c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M16 3h5v5"}),c.jsx("path",{d:"M8 21H3v-5"}),c.jsx("path",{d:"M21 3l-7 7"}),c.jsx("path",{d:"M3 21l7-7"})]}),"Compare A/B"]}),c.jsxs(Ct,{to:`/skills/${i}/${o}/history`,className:"btn btn-secondary",children:[c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("circle",{cx:"12",cy:"12",r:"10"}),c.jsx("polyline",{points:"12 6 12 12 16 14"})]}),"History"]})]}),x&&c.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:x}),f?c.jsxs("div",{className:"space-y-3 stagger-children",children:[f.evals.map(A=>c.jsxs("div",{className:"glass-card p-5",children:[c.jsxs("div",{className:"flex items-start justify-between mb-3",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",A.id]}),c.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:A.name})]}),c.jsx("p",{className:"text-[12px] mt-1.5 line-clamp-2",style:{color:"var(--text-tertiary)"},children:A.prompt})]}),c.jsxs("div",{className:"flex gap-1 ml-3",children:[c.jsx("button",{onClick:()=>{p(A),Q(!0)},className:"btn btn-ghost text-[12px]",children:"Edit"}),c.jsx("button",{onClick:()=>U(A.id),className:"btn btn-danger text-[12px]",children:"Delete"})]})]}),c.jsxs("div",{className:"mt-3 pt-3",style:{borderTop:"1px solid var(--border-subtle)"},children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Assertions"}),c.jsx("span",{className:"pill",style:{background:"var(--surface-3)",color:"var(--text-tertiary)",fontSize:"10px",padding:"1px 7px"},children:A.assertions.length})]}),c.jsx("div",{className:"space-y-1.5",children:A.assertions.map(C=>c.jsxs("div",{className:"flex items-center gap-2 group",children:[c.jsx("span",{className:"text-[11px] font-mono w-28 truncate flex-shrink-0",style:{color:"var(--text-tertiary)"},children:C.id}),c.jsx("input",{className:"input-field flex-1 text-[12px] py-1.5",style:{background:"transparent",border:"1px solid transparent",borderRadius:"6px"},value:C.text,onChange:k=>Z(A.id,C.id,k.target.value),onFocus:k=>{k.currentTarget.style.borderColor="var(--border-default)",k.currentTarget.style.background="var(--surface-2)"},onBlur:k=>{k.currentTarget.style.borderColor="transparent",k.currentTarget.style.background="transparent"}}),c.jsx("button",{onClick:()=>O(A.id,C.id),className:"opacity-0 group-hover:opacity-100 transition-opacity duration-150 p-1 rounded",style:{color:"var(--red)"},children:c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},C.id))}),c.jsxs("button",{onClick:()=>$(A.id),className:"btn btn-ghost text-[12px] mt-2",style:{color:"var(--accent)"},children:[c.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[c.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),c.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"Add assertion"]})]})]},A.id)),c.jsx("button",{onClick:()=>{p(null),Q(!0)},className:"w-full p-4 rounded-xl text-[13px] font-medium transition-all duration-150",style:{border:"2px dashed var(--border-default)",color:"var(--text-tertiary)",background:"transparent"},onMouseEnter:A=>{A.currentTarget.style.borderColor="var(--accent)",A.currentTarget.style.color="var(--accent)",A.currentTarget.style.background="var(--accent-muted)"},onMouseLeave:A=>{A.currentTarget.style.borderColor="var(--border-default)",A.currentTarget.style.color="var(--text-tertiary)",A.currentTarget.style.background="transparent"},children:"+ Add Eval Case"})]}):c.jsxs("div",{className:"text-center py-16 animate-fade-in-scale",children:[c.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:c.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",children:[c.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),c.jsx("polyline",{points:"14 2 14 8 20 8"})]})}),c.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"No evals.json found"}),c.jsx("button",{onClick:()=>Q(!0),className:"btn btn-primary mt-3",children:"Create evals.json"})]}),w&&c.jsx(a1,{evalCase:M,skillName:(f==null?void 0:f.skill_name)||o||"",existingIds:(f==null?void 0:f.evals.map(A=>A.id))||[],onSave:A=>M?G(A):X(A),onCancel:()=>{Q(!1),p(null)}}),S&&c.jsxs("div",{className:"fixed bottom-5 right-5 flex items-center gap-2 px-4 py-2.5 rounded-lg text-[13px] animate-fade-in-scale",style:{background:"var(--accent)",color:"#fff",boxShadow:"0 8px 32px rgba(99,131,255,0.3)"},children:[c.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)"}}),"Saving..."]})]})}function a1({evalCase:i,skillName:o,existingIds:f,onSave:r,onCancel:m}){const[v,x]=E.useState((i==null?void 0:i.name)||""),[_,S]=E.useState((i==null?void 0:i.prompt)||""),[h,M]=E.useState((i==null?void 0:i.expected_output)||""),[p,w]=E.useState((i==null?void 0:i.assertions)||[{id:"assert-1",text:"",type:"boolean"}]);function Q(Y){Y.preventDefault();const X=(i==null?void 0:i.id)??(f.length>0?Math.max(...f)+1:1);r({id:X,name:v,prompt:_,expected_output:h,files:(i==null?void 0:i.files)||[],assertions:p.filter(G=>G.text.trim())})}return c.jsx("div",{className:"fixed inset-0 flex items-center justify-center z-50 animate-overlay-in",style:{background:"rgba(0,0,0,0.6)",backdropFilter:"blur(4px)"},children:c.jsxs("form",{onSubmit:Q,className:"glass-card p-6 w-full max-w-2xl max-h-[85vh] overflow-auto animate-modal-in",style:{background:"var(--surface-1)",border:"1px solid var(--border-default)"},children:[c.jsx("h3",{className:"text-[16px] font-semibold mb-5",style:{color:"var(--text-primary)"},children:i?"Edit Eval Case":"New Eval Case"}),c.jsxs("label",{className:"block mb-4",children:[c.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Name"}),c.jsx("input",{className:"input-field",value:v,onChange:Y=>x(Y.target.value),required:!0,placeholder:"e.g. basic-test-question"})]}),c.jsxs("label",{className:"block mb-4",children:[c.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Prompt"}),c.jsx("textarea",{className:"input-field h-24 resize-y",value:_,onChange:Y=>S(Y.target.value),required:!0,placeholder:"The user prompt to test against..."})]}),c.jsxs("label",{className:"block mb-4",children:[c.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Expected Output"}),c.jsx("textarea",{className:"input-field h-20 resize-y",value:h,onChange:Y=>M(Y.target.value),placeholder:"What a good answer should include..."})]}),c.jsxs("div",{className:"mb-5",children:[c.jsx("span",{className:"text-[12px] font-medium mb-2 block",style:{color:"var(--text-secondary)"},children:"Assertions"}),p.map((Y,X)=>c.jsxs("div",{className:"flex gap-2 mt-1.5",children:[c.jsx("input",{className:"input-field w-32 text-[12px] font-mono",value:Y.id,onChange:G=>{const U=[...p];U[X]={...U[X],id:G.target.value},w(U)},placeholder:"ID"}),c.jsx("input",{className:"input-field flex-1 text-[12px]",value:Y.text,onChange:G=>{const U=[...p];U[X]={...U[X],text:G.target.value},w(U)},placeholder:"Assertion text"}),c.jsx("button",{type:"button",onClick:()=>w(p.filter((G,U)=>U!==X)),className:"btn btn-ghost p-1.5",style:{color:"var(--red)"},children:c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},X)),c.jsx("button",{type:"button",onClick:()=>w([...p,{id:`assert-${p.length+1}`,text:"",type:"boolean"}]),className:"btn btn-ghost text-[12px] mt-2",style:{color:"var(--accent)"},children:"+ Add assertion"})]}),c.jsxs("div",{className:"flex justify-end gap-2 pt-4",style:{borderTop:"1px solid var(--border-subtle)"},children:[c.jsx("button",{type:"button",onClick:m,className:"btn btn-secondary",children:"Cancel"}),c.jsx("button",{type:"submit",className:"btn btn-primary",children:"Save"})]})]})})}function Fs(){const[i,o]=E.useState([]),[f,r]=E.useState(!1),[m,v]=E.useState(!1),[x,_]=E.useState(null),S=E.useRef(null),h=E.useCallback(async(p,w)=>{o([]),r(!0),v(!1),_(null);const Q=new AbortController;S.current=Q;try{const Y=await fetch(p,{method:"POST",headers:{"Content-Type":"application/json"},body:w?JSON.stringify(w):void 0,signal:Q.signal});if(!Y.ok||!Y.body)throw new Error(`HTTP ${Y.status}`);const X=Y.body.getReader(),G=new TextDecoder;let U="",$="";for(;;){const{done:Z,value:O}=await X.read();if(Z)break;U+=G.decode(O,{stream:!0});const A=U.split(`
61
- `);U=A.pop()||"";for(const C of A)if(C.startsWith("event: "))$=C.slice(7).trim();else if(C.startsWith("data: ")){try{const k=JSON.parse(C.slice(6)),P={event:$,data:k};$==="done"?(v(!0),o(de=>[...de,P])):o(de=>[...de,P])}catch{}$=""}}}catch(Y){Y.name!=="AbortError"&&_(Y.message)}finally{r(!1),S.current=null}},[]),M=E.useCallback(()=>{var p;(p=S.current)==null||p.abort()},[]);return{events:i,running:f,done:m,error:x,start:h,stop:M}}function n1(){const{plugin:i,skill:o}=oi(),{events:f,running:r,done:m,error:v,start:x}=Fs(),[_,S]=E.useState(new Set),[h,M]=E.useState(null),[p,w]=E.useState(null),[Q,Y]=E.useState(null);E.useEffect(()=>{ut.getConfig().then(A=>M(A.model)).catch(()=>{}),i&&o&&ut.getEvals(i,o).then(w).catch(()=>{})},[i,o]);function X(A){ut.getConfig().then(k=>M(k.model)).catch(()=>{}),S(new Set),Y((A==null?void 0:A.length)===1?A[0]:"all");const C=A?{eval_ids:A}:void 0;x(`/api/skills/${i}/${o}/benchmark`,C)}function G(A){S(C=>{const k=new Set(C);return k.has(A)?k.delete(A):k.add(A),k})}const U=new Map;for(const A of f){if(A.event==="case_start"){const C=A.data;U.has(C.eval_id)||U.set(C.eval_id,{name:C.eval_name,assertions:[]})}if(A.event==="output_ready"){const C=A.data,k=U.get(C.eval_id)||{assertions:[]};k.output=C.output,C.durationMs!=null&&(k.durationMs=C.durationMs),C.tokens!=null&&(k.tokens=C.tokens),U.set(C.eval_id,k)}if(A.event==="assertion_result"){const C=A.data,k=U.get(C.eval_id)||{assertions:[]};k.assertions.find(P=>P.assertion_id===C.assertion_id)||(k.assertions.push(C),U.set(C.eval_id,k))}if(A.event==="case_complete"){const C=A.data,k=U.get(C.eval_id)||{assertions:[]};k.status=C.status,k.passRate=C.pass_rate,k.errorMessage=C.error_message||void 0,U.set(C.eval_id,k)}}const $=f.find(A=>A.event==="done"),Z=$==null?void 0:$.data,O=(Z==null?void 0:Z.overall_pass_rate)!==void 0?Math.round(Z.overall_pass_rate*100):null;return c.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[c.jsx(Ct,{to:`/skills/${i}/${o}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:A=>{A.currentTarget.style.color="var(--text-primary)"},onMouseLeave:A=>{A.currentTarget.style.color="var(--text-tertiary)"},children:o}),c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:c.jsx("polyline",{points:"9 18 15 12 9 6"})}),c.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"Benchmark"})]}),c.jsx("div",{className:"mb-3",children:c.jsx("p",{className:"text-[13px]",style:{color:"var(--text-tertiary)"},children:"Runs your skill against each eval case. An LLM judge grades every assertion against the actual output."})}),c.jsx("button",{onClick:()=>X(),disabled:r,className:"btn btn-primary mb-7",children:r&&Q==="all"?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Running All..."]}):c.jsxs(c.Fragment,{children:[c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})})," Run All (",(p==null?void 0:p.evals.length)??0," cases)"]})}),v&&c.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:v}),!r&&U.size===0&&p&&p.evals.length>0&&c.jsxs("div",{className:"space-y-2 mb-6",children:[c.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"Eval Cases"}),p.evals.map(A=>c.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 rounded-lg transition-all duration-100",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[c.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded flex-shrink-0",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",A.id]}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"text-[13px] font-medium truncate",style:{color:"var(--text-primary)"},children:A.name}),c.jsxs("div",{className:"text-[11px] truncate mt-0.5",style:{color:"var(--text-tertiary)"},children:[A.assertions.length," assertion",A.assertions.length!==1?"s":""]})]}),c.jsxs("button",{onClick:()=>X([A.id]),disabled:r,className:"btn btn-ghost text-[12px] flex-shrink-0",style:{color:"var(--accent)"},children:[c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})}),"Run"]})]},A.id))]}),U.size>0&&c.jsxs("div",{className:"space-y-3 stagger-children",children:[Array.from(U.entries()).map(([A,C])=>{const k=_.has(A);return c.jsxs("div",{className:"glass-card overflow-hidden",children:[c.jsxs("div",{className:"p-5",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",A]}),c.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:C.name||"Eval Case"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[C.durationMs!=null&&c.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[(C.durationMs/1e3).toFixed(1),"s"]}),C.tokens!=null&&c.jsxs("span",{className:"text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[C.tokens.toLocaleString()," tok"]}),C.status?c.jsxs("span",{className:"pill",style:{background:C.status==="pass"?"var(--green-muted)":C.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:C.status==="pass"?"var(--green)":C.status==="error"?"var(--yellow)":"var(--red)"},children:[c.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:C.status==="pass"?"var(--green)":C.status==="error"?"var(--yellow)":"var(--red)"}}),C.status," ",C.passRate!==void 0?`${Math.round(C.passRate*100)}%`:""]}):c.jsxs("div",{className:"flex items-center gap-2 text-[12px]",style:{color:"var(--accent)"},children:[c.jsx("div",{className:"spinner",style:{width:12,height:12}}),"Evaluating..."]})]})]}),C.errorMessage&&c.jsx("div",{className:"mb-3 p-3 rounded-lg text-[12px]",style:{background:"var(--red-muted)",color:"var(--red)"},children:C.errorMessage}),c.jsx("div",{className:"space-y-2",children:C.assertions.map(P=>c.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg animate-fade-in",style:{background:P.pass?"var(--green-muted)":"var(--red-muted)"},children:[c.jsx("div",{className:"w-5 h-5 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:P.pass?"var(--green)":"var(--red)"},children:c.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:P.pass?c.jsx("polyline",{points:"20 6 9 17 4 12"}):c.jsxs(c.Fragment,{children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:P.text||P.assertion_id}),c.jsx("div",{className:"text-[12px] mt-0.5",style:{color:"var(--text-secondary)"},children:P.reasoning})]})]},P.assertion_id))})]}),C.output&&c.jsxs(c.Fragment,{children:[c.jsxs("button",{onClick:()=>G(A),className:"w-full px-5 py-2.5 flex items-center justify-center gap-2 text-[12px] font-medium transition-all duration-150",style:{background:"var(--surface-2)",color:"var(--text-secondary)",borderTop:"1px solid var(--border-subtle)"},onMouseEnter:P=>{P.currentTarget.style.background="var(--surface-3)"},onMouseLeave:P=>{P.currentTarget.style.background="var(--surface-2)"},children:[c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:k?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:c.jsx("polyline",{points:"6 9 12 15 18 9"})}),k?"Hide LLM Output":"Show Actual LLM Output"]}),k&&c.jsxs("div",{className:"p-4 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)"},children:[c.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"LLM Output"}),c.jsx("div",{className:"text-[12px] leading-relaxed p-3 rounded-lg max-h-64 overflow-y-auto whitespace-pre-wrap",style:{background:"var(--surface-1)",color:"var(--text-secondary)",fontFamily:"var(--font-mono, monospace)"},children:C.output})]})]})]},A)}),m&&O!==null&&(()=>{const A=Array.from(U.values()),C=A.reduce((de,Fe)=>de+(Fe.durationMs??0),0),k=A.reduce((de,Fe)=>de+(Fe.tokens??0),0),P=A.some(de=>de.tokens!=null);return c.jsxs("div",{className:"glass-card p-6 text-center animate-fade-in-scale",style:{borderColor:O>=80?"var(--green)":O>=50?"var(--yellow)":"var(--red)",borderWidth:2},children:[c.jsxs("div",{className:"text-[36px] font-bold tracking-tight",style:{color:O>=80?"var(--green)":O>=50?"var(--yellow)":"var(--red)"},children:[O,"%"]}),c.jsx("div",{className:"text-[13px] mt-1",style:{color:"var(--text-tertiary)"},children:Q==="all"?"Overall Pass Rate":"Pass Rate"}),c.jsxs("div",{className:"flex items-center justify-center gap-4 mt-2 text-[11px] font-mono",style:{color:"var(--text-tertiary)"},children:[h&&c.jsx("span",{children:h}),C>0&&c.jsxs("span",{children:[(C/1e3).toFixed(1),"s total"]}),P&&k>0&&c.jsxs("span",{children:[k.toLocaleString()," tokens"]})]})]})})()]}),r&&U.size===0&&c.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[c.jsx("div",{className:"spinner-lg mx-auto mb-4"}),c.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Generating outputs and evaluating assertions..."})]})]})}const gm={EFFECTIVE:{bg:"var(--green-muted)",text:"var(--green)",border:"var(--green)",glow:"rgba(52,211,153,0.15)"},MARGINAL:{bg:"var(--yellow-muted)",text:"var(--yellow)",border:"var(--yellow)",glow:"rgba(251,191,36,0.15)"},INEFFECTIVE:{bg:"rgba(251,146,60,0.12)",text:"var(--orange)",border:"var(--orange)",glow:"rgba(251,146,60,0.15)"},DEGRADING:{bg:"var(--red-muted)",text:"var(--red)",border:"var(--red)",glow:"rgba(248,113,113,0.15)"}};function u1(){const{plugin:i,skill:o}=oi(),{events:f,running:r,done:m,error:v,start:x}=Fs(),[_,S]=E.useState(new Set),[h,M]=E.useState(null);E.useEffect(()=>{ut.getConfig().then(O=>M(O.model)).catch(()=>{})},[]);function p(){S(new Set),x(`/api/skills/${i}/${o}/compare`)}function w(O){S(A=>{const C=new Set(A);return C.has(O)?C.delete(O):C.add(O),C})}const Q=[],Y=[],X=[];for(const O of f)if(O.event==="outputs_ready"){const A=O.data;Q.find(C=>C.eval_id===A.eval_id)||Q.push(A)}else if(O.event==="case_error"){const A=O.data;Y.find(C=>C.eval_id===A.eval_id)||Y.push(A)}else if(O.event==="case_start"){const A=O.data;X.find(C=>C.eval_id===A.eval_id)||X.push(A)}const G=new Set([...Q.map(O=>O.eval_id),...Y.map(O=>O.eval_id)]),U=X.filter(O=>!G.has(O.eval_id)).pop(),$=f.find(O=>O.event==="done"),Z=$==null?void 0:$.data;return c.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[c.jsx(Ct,{to:`/skills/${i}/${o}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:O=>{O.currentTarget.style.color="var(--text-primary)"},onMouseLeave:O=>{O.currentTarget.style.color="var(--text-tertiary)"},children:o}),c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:c.jsx("polyline",{points:"9 18 15 12 9 6"})}),c.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"A/B Comparison"})]}),c.jsxs("div",{className:"mb-3",children:[c.jsx("p",{className:"text-[13px]",style:{color:"var(--text-tertiary)"},children:"Runs each eval prompt twice: once WITH your skill, once WITHOUT. An LLM judge scores both outputs blindly on content and structure (1-5 each)."}),h&&c.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5",children:[c.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"Model:"}),c.jsx("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--accent)"},children:h})]})]}),c.jsx("button",{onClick:p,disabled:r,className:"btn btn-purple mb-7",children:r?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Comparing..."]}):c.jsxs(c.Fragment,{children:[c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M16 3h5v5"}),c.jsx("path",{d:"M8 21H3v-5"}),c.jsx("path",{d:"M21 3l-7 7"}),c.jsx("path",{d:"M3 21l7-7"})]})," Run Comparison"]})}),v&&c.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:v}),(Z==null?void 0:Z.error)&&c.jsxs("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:[c.jsx("span",{className:"font-semibold",children:"Error:"})," ",Z.error]}),Y.length>0&&c.jsx("div",{className:"space-y-2 mb-5",children:Y.map(O=>c.jsxs("div",{className:"px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:[c.jsxs("span",{className:"font-semibold",children:["Eval #",O.eval_id," failed:"]})," ",O.error]},O.eval_id))}),Q.length>0&&c.jsxs("div",{className:"space-y-4 stagger-children",children:[Q.map(O=>{const A=_.has(O.eval_id),C=O.winner==="skill"?"Skill Wins":O.winner==="baseline"?"Baseline Wins":"Tie",k=O.winner==="skill"?"var(--green)":O.winner==="baseline"?"var(--red)":"var(--text-tertiary)";return c.jsxs("div",{className:"glass-card overflow-hidden",children:[c.jsxs("div",{className:"p-5 pb-4",children:[c.jsxs("div",{className:"flex items-center justify-between mb-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",O.eval_id]}),c.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:O.eval_name||"Eval Case"})]}),c.jsx("span",{className:"pill",style:{background:O.winner==="skill"?"var(--green-muted)":O.winner==="baseline"?"var(--red-muted)":"var(--surface-3)",color:k,fontWeight:700},children:C})]}),c.jsxs("div",{className:"mb-4 p-3 rounded-lg",style:{background:"var(--surface-2)"},children:[c.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-1.5",style:{color:"var(--text-tertiary)"},children:"Prompt"}),c.jsx("div",{className:"text-[12px] leading-relaxed",style:{color:"var(--text-secondary)"},children:O.prompt})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx(bm,{label:"WITH Skill",contentScore:O.skillContentScore,structureScore:O.skillStructureScore,isWinner:O.winner==="skill"}),c.jsx(bm,{label:"WITHOUT Skill",contentScore:O.baselineContentScore,structureScore:O.baselineStructureScore,isWinner:O.winner==="baseline"})]})]}),c.jsxs("button",{onClick:()=>w(O.eval_id),className:"w-full px-5 py-3 flex items-center justify-center gap-2 text-[12px] font-medium transition-all duration-150",style:{background:"var(--surface-2)",color:"var(--text-secondary)",borderTop:"1px solid var(--border-subtle)"},onMouseEnter:P=>{P.currentTarget.style.background="var(--surface-3)"},onMouseLeave:P=>{P.currentTarget.style.background="var(--surface-2)"},children:[c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:A?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:c.jsx("polyline",{points:"6 9 12 15 18 9"})}),A?"Hide LLM Outputs":"Show Actual LLM Outputs"]}),A&&c.jsxs("div",{className:"grid grid-cols-2 gap-0 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)"},children:[c.jsx(jm,{label:"WITH Skill",output:O.skillOutput,accentColor:O.winner==="skill"?"var(--green)":void 0}),c.jsx(jm,{label:"WITHOUT Skill",output:O.baselineOutput,accentColor:O.winner==="baseline"?"var(--red)":void 0,hasBorderLeft:!0})]})]},O.eval_id)}),m&&(Z==null?void 0:Z.verdict)&&(()=>{const O=gm[Z.verdict]||gm.INEFFECTIVE;return c.jsxs("div",{className:"glass-card p-8 text-center animate-fade-in-scale",style:{borderColor:O.border,borderWidth:2,boxShadow:`0 0 40px ${O.glow}`},children:[c.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"Verdict"}),c.jsx("div",{className:"text-[32px] font-bold tracking-tight",style:{color:O.text},children:Z.verdict}),Z.comparison&&c.jsxs("div",{className:"flex justify-center gap-8 mt-5",children:[c.jsx(ks,{label:"Skill Avg",value:Z.comparison.skillRubricAvg.toFixed(1)}),c.jsx(ks,{label:"Baseline Avg",value:Z.comparison.baselineRubricAvg.toFixed(1)}),c.jsx(ks,{label:"Delta",value:`${Z.comparison.delta>0?"+":""}${Z.comparison.delta.toFixed(1)}`,color:Z.comparison.delta>0?"var(--green)":Z.comparison.delta<0?"var(--red)":"var(--text-secondary)"})]}),Z.overall_pass_rate!==void 0&&c.jsxs("div",{className:"text-[12px] mt-3",style:{color:"var(--text-tertiary)"},children:["Assertion pass rate: ",Math.round(Z.overall_pass_rate*100),"%"]})]})})()]}),r&&Q.length===0&&Y.length===0&&c.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[c.jsx("div",{className:"spinner-lg mx-auto mb-4"}),c.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Generating WITH and WITHOUT outputs..."}),c.jsx("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:U?`Processing: ${U.eval_name||`Eval #${U.eval_id}`}`:"Then blind-scoring both responses"})]})]})}function bm({label:i,contentScore:o,structureScore:f,isWinner:r}){const m=((o+f)/2).toFixed(1),v=parseFloat(m),x=v>=4?"var(--green)":v>=3?"var(--yellow)":"var(--red)";return c.jsxs("div",{className:"rounded-xl p-4",style:{background:"var(--surface-2)",border:r?"1px solid var(--green)":"1px solid transparent",boxShadow:r?"0 0 20px var(--green-muted)":"none"},children:[c.jsxs("div",{className:"flex items-center justify-between mb-3",children:[c.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:"var(--text-tertiary)"},children:i}),c.jsx("div",{className:"text-[16px] font-bold",style:{color:x},children:m})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx(Sm,{label:"Content",score:o}),c.jsx(Sm,{label:"Structure",score:f})]})]})}function Sm({label:i,score:o}){const f=o/5*100,r=o>=4?"var(--green)":o>=3?"var(--yellow)":"var(--red)";return c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx("div",{className:"text-[11px] w-16",style:{color:"var(--text-tertiary)"},children:i}),c.jsx("div",{className:"flex-1 h-1.5 rounded-full",style:{background:"var(--surface-3)"},children:c.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${f}%`,background:r}})}),c.jsx("div",{className:"text-[12px] font-semibold w-5 text-right",style:{color:r},children:o})]})}function jm({label:i,output:o,accentColor:f,hasBorderLeft:r}){return c.jsxs("div",{className:"p-4",style:{borderLeft:r?"1px solid var(--border-subtle)":void 0},children:[c.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[f&&c.jsx("div",{className:"w-2 h-2 rounded-full",style:{background:f}}),c.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:f||"var(--text-tertiary)"},children:i})]}),c.jsx("div",{className:"text-[12px] leading-relaxed p-3 rounded-lg max-h-64 overflow-y-auto whitespace-pre-wrap",style:{background:"var(--surface-1)",color:"var(--text-secondary)",fontFamily:"var(--font-mono, monospace)"},children:o||"(empty output)"})]})}function ks({label:i,value:o,color:f}){return c.jsxs("div",{className:"text-center",children:[c.jsx("div",{className:"text-[18px] font-bold",style:{color:f||"var(--text-primary)"},children:o}),c.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:i})]})}function i1(){const{plugin:i,skill:o}=oi(),[f,r]=E.useState([]),[m,v]=E.useState(!0),[x,_]=E.useState(null),[S,h]=E.useState(null);E.useEffect(()=>{!i||!o||ut.getHistory(i,o).then(r).catch(()=>{}).finally(()=>v(!1))},[i,o]);async function M(p){if(!(!i||!o)){h(p);try{const w=await ut.getHistoryEntry(i,o,p);_(w)}catch{_(null)}}}return m?c.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[c.jsx("div",{className:"skeleton h-5 w-48 mb-6"}),c.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx("div",{className:"skeleton h-20 rounded-xl"}),c.jsx("div",{className:"skeleton h-20 rounded-xl"})]}),c.jsx("div",{className:"col-span-2",children:c.jsx("div",{className:"skeleton h-48 rounded-xl"})})]})]}):c.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[c.jsx(Ct,{to:`/skills/${i}/${o}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:p=>{p.currentTarget.style.color="var(--text-primary)"},onMouseLeave:p=>{p.currentTarget.style.color="var(--text-tertiary)"},children:o}),c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:c.jsx("polyline",{points:"9 18 15 12 9 6"})}),c.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"History"})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[c.jsxs("div",{className:"col-span-1",children:[c.jsxs("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-3 px-1",style:{color:"var(--text-tertiary)"},children:["Past Runs (",f.length,")"]}),f.length===0&&c.jsxs("div",{className:"text-center py-8",children:[c.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center mx-auto mb-3",style:{background:"var(--surface-2)"},children:c.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",children:[c.jsx("circle",{cx:"12",cy:"12",r:"10"}),c.jsx("polyline",{points:"12 6 12 12 16 14"})]})}),c.jsx("p",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"No benchmark runs yet"})]}),c.jsx("div",{className:"space-y-1.5 stagger-children",children:f.map(p=>{const w=S===p.timestamp,Q=p.passRate>=.8?"var(--green)":p.passRate>=.5?"var(--yellow)":"var(--red)";return c.jsxs("button",{onClick:()=>M(p.timestamp),className:"w-full text-left p-3.5 rounded-xl transition-all duration-150",style:{background:w?"var(--accent-muted)":"var(--surface-1)",border:w?"1px solid var(--border-active)":"1px solid var(--border-subtle)"},onMouseEnter:Y=>{w||(Y.currentTarget.style.borderColor="var(--border-hover)")},onMouseLeave:Y=>{w||(Y.currentTarget.style.borderColor="var(--border-subtle)")},children:[c.jsx("div",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:new Date(p.timestamp).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}),c.jsxs("div",{className:"flex items-center gap-2 mt-1.5",children:[c.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:p.model}),c.jsxs("span",{className:"text-[11px] font-semibold",style:{color:Q},children:[Math.round(p.passRate*100),"%"]}),p.type==="comparison"&&c.jsx("span",{className:"pill",style:{background:"var(--purple-muted)",color:"var(--purple)",fontSize:"9px",padding:"1px 6px"},children:"A/B"})]})]},p.timestamp)})})]}),c.jsx("div",{className:"col-span-2",children:x?c.jsxs("div",{className:"space-y-3 animate-slide-in-right",children:[c.jsx("div",{className:"glass-card p-4",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("div",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:new Date(x.timestamp).toLocaleString()}),c.jsx("div",{className:"text-[12px] mt-0.5",style:{color:"var(--text-tertiary)"},children:x.model})]}),x.verdict&&c.jsx("span",{className:"text-[14px] font-bold",style:{color:x.verdict==="EFFECTIVE"?"var(--green)":x.verdict==="MARGINAL"?"var(--yellow)":x.verdict==="DEGRADING"?"var(--red)":"var(--orange)"},children:x.verdict})]})}),x.cases.map(p=>c.jsxs("div",{className:"glass-card p-5",children:[c.jsxs("div",{className:"flex items-center justify-between mb-3",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",p.eval_id]}),c.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:p.eval_name})]}),c.jsxs("span",{className:"pill",style:{background:p.status==="pass"?"var(--green-muted)":p.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:p.status==="pass"?"var(--green)":p.status==="error"?"var(--yellow)":"var(--red)"},children:[p.status," (",Math.round(p.pass_rate*100),"%)"]})]}),p.error_message&&c.jsx("div",{className:"text-[12px] mb-3 p-2 rounded",style:{background:"var(--red-muted)",color:"var(--red)"},children:p.error_message}),c.jsx("div",{className:"space-y-1.5",children:p.assertions.map(w=>c.jsxs("div",{className:"flex items-start gap-2.5 py-1.5",children:[c.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:w.pass?"var(--green)":"var(--red)"},children:c.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:w.pass?c.jsx("polyline",{points:"20 6 9 17 4 12"}):c.jsxs(c.Fragment,{children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"text-[12px]",style:{color:"var(--text-primary)"},children:w.text}),c.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-tertiary)"},children:w.reasoning})]})]},w.id))})]},p.eval_id))]}):c.jsxs("div",{className:"text-center py-20",children:[c.jsx("div",{className:"w-14 h-14 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:c.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polyline",{points:"15 18 9 12 15 6"})})}),c.jsx("p",{className:"text-[13px]",style:{color:"var(--text-tertiary)"},children:"Select a run to view details"})]})})]})]})}const Em={TP:{bg:"var(--green-muted)",text:"var(--green)",icon:"check"},TN:{bg:"rgba(52,211,153,0.06)",text:"rgba(52,211,153,0.6)",icon:"check"},FP:{bg:"var(--red-muted)",text:"var(--red)",icon:"x"},FN:{bg:"rgba(248,113,113,0.06)",text:"rgba(248,113,113,0.6)",icon:"x"}},c1=[{label:"Should activate",prompts:["How do I use this feature?","Show me best practices for this","What's the recommended approach?"]},{label:"Should NOT activate",prompts:["!What's the weather today?","!Write me a poem","!How do I cook pasta?"]}];function s1(){const[i,o]=E.useState([]),[f,r]=E.useState(null),[m,v]=E.useState(null),[x,_]=E.useState(""),[S,h]=E.useState(!1),{events:M,running:p,error:w,start:Q}=Fs();E.useEffect(()=>{ut.getSkills().then(o).catch(()=>{})},[]),E.useEffect(()=>{if(!f){v(null);return}fetch(`/api/skills/${f.plugin}/${f.skill}/description`).then(O=>O.json()).then(O=>v(O.description)).catch(()=>v(null))},[f]);function Y(){if(!f)return;const A=x.trim().split(`
62
- `).filter(Boolean).map(C=>{const k=C.startsWith("!");return{prompt:k?C.slice(1).trim():C.trim(),expected:k?"should_not_activate":"should_activate"}});Q(`/api/skills/${f.plugin}/${f.skill}/activation-test`,{prompts:A})}function X(O){const A=x.trim(),C=A?`${A}
63
- ${O.join(`
64
- `)}`:O.join(`
65
- `);_(C)}const G=[];let U=null;for(const O of M)O.event==="prompt_result"&&G.push(O.data),O.event==="done"&&(U=O.data);const $=G.filter(O=>O.classification==="TP"||O.classification==="TN"),Z=G.filter(O=>O.classification==="FP"||O.classification==="FN");return c.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[c.jsxs("div",{className:"mb-6",children:[c.jsx("h2",{className:"text-[22px] font-semibold tracking-tight",style:{color:"var(--text-primary)"},children:"Description Activation Test"}),c.jsxs("p",{className:"text-[13px] mt-1 max-w-2xl",style:{color:"var(--text-tertiary)"},children:["Tests whether a skill's description activates correctly for relevant prompts and stays silent for irrelevant ones. This validates the ",c.jsx("strong",{children:"auto-activation quality"})," of your skill description."]})]}),c.jsxs("div",{className:"grid grid-cols-5 gap-5 mb-6",children:[c.jsxs("div",{className:"col-span-3 space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Skill"}),c.jsxs("select",{className:"input-field",value:f?`${f.plugin}/${f.skill}`:"",onChange:O=>{const[A,C]=O.target.value.split("/");r(A&&C?{plugin:A,skill:C}:null)},children:[c.jsx("option",{value:"",children:"Select a skill..."}),i.map(O=>c.jsxs("option",{value:`${O.plugin}/${O.skill}`,children:[O.plugin," / ",O.skill]},`${O.plugin}/${O.skill}`))]})]}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[c.jsx("label",{className:"text-[12px] font-medium",style:{color:"var(--text-secondary)"},children:"Test Prompts"}),c.jsx("div",{className:"flex gap-1.5",children:c1.map(O=>c.jsxs("button",{onClick:()=>X(O.prompts),className:"text-[10px] px-2 py-1 rounded-md transition-colors duration-150",style:{background:"var(--surface-2)",color:"var(--text-tertiary)"},onMouseEnter:A=>{A.currentTarget.style.color="var(--text-primary)",A.currentTarget.style.background="var(--surface-3)"},onMouseLeave:A=>{A.currentTarget.style.color="var(--text-tertiary)",A.currentTarget.style.background="var(--surface-2)"},children:["+ ",O.label]},O.label))})]}),c.jsx("textarea",{className:"input-field h-32 resize-y font-mono text-[12px]",value:x,onChange:O=>_(O.target.value),placeholder:`How do I write a unit test?
66
- What edge cases should I test?
67
- !What's the weather like today?
68
- !Write me a poem about flowers`}),c.jsxs("div",{className:"flex items-center gap-4 mt-1.5 text-[11px]",style:{color:"var(--text-tertiary)"},children:[c.jsx("span",{children:"One prompt per line"}),c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx("code",{className:"px-1 rounded",style:{background:"var(--surface-2)"},children:"!"})," prefix = should NOT activate"]}),c.jsxs("span",{children:[x.trim().split(`
69
- `).filter(Boolean).length," prompt",x.trim().split(`
70
- `).filter(Boolean).length!==1?"s":""]})]})]})]}),c.jsx("div",{className:"col-span-2",children:c.jsxs("div",{className:"glass-card h-full",children:[c.jsxs("button",{onClick:()=>h(!S),className:"w-full p-3 flex items-center justify-between text-left",style:{borderBottom:S?"1px solid var(--border-subtle)":void 0},children:[c.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Skill Description"}),c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2.5",style:{transform:S?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:c.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),S&&c.jsx("div",{className:"p-3 animate-fade-in",children:m?c.jsx("div",{className:"text-[12px] leading-relaxed whitespace-pre-wrap",style:{color:"var(--text-secondary)"},children:m}):f?c.jsx("div",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"Loading description..."}):c.jsx("div",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"Select a skill to see its description"})}),!S&&m&&c.jsx("div",{className:"px-3 pb-3 pt-1",children:c.jsxs("div",{className:"text-[11px] truncate",style:{color:"var(--text-tertiary)"},children:[m.slice(0,100),m.length>100?"...":""]})})]})})]}),c.jsx("button",{onClick:Y,disabled:p||!f||!x.trim(),className:"btn btn-primary mb-7",children:p?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Testing..."]}):c.jsxs(c.Fragment,{children:[c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("circle",{cx:"12",cy:"12",r:"10"}),c.jsx("circle",{cx:"12",cy:"12",r:"6"}),c.jsx("circle",{cx:"12",cy:"12",r:"2"})]})," Run Activation Test"]})}),w&&c.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:w}),G.length>0&&c.jsxs("div",{className:"space-y-5 mb-6",children:[Z.length>0&&c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--red)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("circle",{cx:"12",cy:"12",r:"10"}),c.jsx("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),c.jsx("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]}),c.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--red)"},children:["Incorrect (",Z.length,")"]}),c.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"— These need attention"})]}),c.jsx("div",{className:"space-y-1.5 stagger-children",children:Z.map((O,A)=>c.jsx(Nm,{result:O},`incorrect-${A}`))})]}),$.length>0&&c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--green)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("circle",{cx:"12",cy:"12",r:"10"}),c.jsx("polyline",{points:"16 10 11 15 8 12"})]}),c.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--green)"},children:["Correct (",$.length,")"]})]}),c.jsx("div",{className:"space-y-1.5 stagger-children",children:$.map((O,A)=>c.jsx(Nm,{result:O},`correct-${A}`))})]})]}),U&&c.jsxs("div",{className:"glass-card p-6 animate-fade-in-scale",style:{borderColor:"var(--border-active)",borderWidth:2},children:[c.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-4",style:{color:"var(--text-tertiary)"},children:"Summary"}),c.jsxs("div",{className:"grid grid-cols-3 gap-6 mb-5",children:[c.jsx(Ys,{label:"Precision",value:U.precision,description:"Of all activations, how many were correct?",detail:`${U.tp} true / ${U.tp+U.fp} total activations`}),c.jsx(Ys,{label:"Recall",value:U.recall,description:"Of expected activations, how many fired?",detail:`${U.tp} activated / ${U.tp+U.fn} expected`}),c.jsx(Ys,{label:"Reliability",value:U.reliability,description:"Overall correct classification rate",detail:`${U.tp+U.tn} correct / ${U.total} total`})]}),c.jsxs("div",{className:"pt-4",style:{borderTop:"1px solid var(--border-subtle)"},children:[c.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-3 text-center",style:{color:"var(--text-tertiary)"},children:"Confusion Matrix"}),c.jsxs("div",{className:"grid grid-cols-2 gap-2 max-w-xs mx-auto",children:[c.jsx(ui,{label:"True Positive",abbr:"TP",count:U.tp,bg:"var(--green-muted)",color:"var(--green)",description:"Correctly activated"}),c.jsx(ui,{label:"False Positive",abbr:"FP",count:U.fp,bg:"var(--red-muted)",color:"var(--red)",description:"Wrongly activated"}),c.jsx(ui,{label:"False Negative",abbr:"FN",count:U.fn,bg:"rgba(248,113,113,0.06)",color:"rgba(248,113,113,0.6)",description:"Missed activation"}),c.jsx(ui,{label:"True Negative",abbr:"TN",count:U.tn,bg:"rgba(52,211,153,0.06)",color:"rgba(52,211,153,0.6)",description:"Correctly silent"})]})]})]}),p&&G.length===0&&c.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[c.jsx("div",{className:"spinner-lg mx-auto mb-4"}),c.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Testing activation against skill description..."})]})]})}function Nm({result:i}){const o=Em[i.classification]||Em.FN,f=i.classification==="TP"||i.classification==="TN";return c.jsxs("div",{className:"flex items-start gap-3 p-4 rounded-xl transition-all duration-200",style:{background:o.bg,border:"1px solid transparent"},children:[c.jsx("div",{className:"flex-shrink-0 mt-0.5",children:c.jsx("div",{className:"w-7 h-7 rounded-lg flex items-center justify-center",style:{background:`color-mix(in srgb, ${o.text} 20%, transparent)`},children:f?c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:o.text,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polyline",{points:"20 6 9 17 4 12"})}):c.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:o.text,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("div",{className:"flex items-center gap-2 mb-1",children:c.jsx("span",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:i.prompt})}),c.jsxs("div",{className:"flex items-center gap-3 text-[12px]",children:[c.jsx("span",{className:"pill",style:{background:"rgba(0,0,0,0.1)",color:o.text,fontWeight:700,fontSize:"10px",padding:"1px 6px"},children:i.classification}),c.jsx("span",{style:{color:i.activate?"var(--green)":"var(--text-tertiary)"},children:i.activate?"Activated":"Silent"}),c.jsx("span",{style:{color:"var(--text-tertiary)"},children:"·"}),c.jsxs("span",{style:{color:"var(--text-tertiary)"},children:["Expected: ",i.expected==="should_activate"?"activate":"stay silent"]}),c.jsx("span",{style:{color:"var(--text-tertiary)"},children:"·"}),c.jsxs("span",{style:{color:"var(--text-tertiary)"},children:[i.confidence," confidence"]})]}),i.reasoning&&c.jsx("div",{className:"text-[11px] mt-1.5",style:{color:"var(--text-tertiary)"},children:i.reasoning})]})]})}function Ys({label:i,value:o,description:f,detail:r}){const m=Math.round(o*100),v=m>=80?"var(--green)":m>=60?"var(--yellow)":"var(--red)";return c.jsxs("div",{className:"text-center",children:[c.jsxs("div",{className:"text-[28px] font-bold tracking-tight",style:{color:v},children:[m,"%"]}),c.jsx("div",{className:"text-[12px] font-medium mt-0.5",style:{color:"var(--text-secondary)"},children:i}),c.jsx("div",{className:"text-[10px] mt-1",style:{color:"var(--text-tertiary)"},children:f}),c.jsx("div",{className:"text-[10px] mt-0.5 font-mono",style:{color:"var(--text-tertiary)"},children:r})]})}function ui({label:i,abbr:o,count:f,bg:r,color:m,description:v}){return c.jsxs("div",{className:"text-center p-3 rounded-lg",style:{background:r},children:[c.jsx("div",{className:"text-[20px] font-bold",style:{color:m},children:f}),c.jsx("div",{className:"text-[11px] font-semibold",style:{color:m},children:o}),c.jsx("div",{className:"text-[9px] mt-0.5",style:{color:"var(--text-tertiary)"},children:v})]})}function r1(){const[i,o]=E.useState(null),[f,r]=E.useState(!1),[m,v]=E.useState(!1),x=E.useRef(null);E.useEffect(()=>{ut.getConfig().then(o).catch(()=>{})},[]),E.useEffect(()=>{function h(M){x.current&&!x.current.contains(M.target)&&r(!1)}return f&&document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[f]);async function _(h,M){v(!0);try{const p=await ut.setConfig(h.id,M.id);o(p),r(!1)}catch{const p=await ut.getConfig();o(p)}finally{v(!1)}}if(!i)return null;const S=o1(i);return c.jsxs("div",{ref:x,className:"relative",children:[c.jsxs("button",{onClick:()=>r(!f),className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg text-[12px] transition-all duration-150",style:{background:"var(--surface-3)",color:"var(--text-primary)",border:"1px solid var(--border-subtle)"},onMouseEnter:h=>{h.currentTarget.style.borderColor="var(--accent)"},onMouseLeave:h=>{h.currentTarget.style.borderColor="var(--border-subtle)"},children:[c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("circle",{cx:"12",cy:"12",r:"3"}),c.jsx("path",{d:"M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"})]}),c.jsx("span",{className:"flex-1 text-left font-medium truncate",children:S}),c.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2.5",style:{transform:f?"rotate(180deg)":"rotate(0)",transition:"transform 0.15s ease"},children:c.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),f&&c.jsxs("div",{className:"absolute bottom-full mb-1 left-0 w-64 rounded-xl shadow-xl z-50 overflow-hidden animate-fade-in",style:{background:"var(--surface-2)",border:"1px solid var(--border-subtle)"},children:[c.jsx("div",{className:"px-4 py-2.5",style:{borderBottom:"1px solid var(--border-subtle)"},children:c.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Select Model"})}),c.jsx("div",{className:"py-1 max-h-80 overflow-y-auto",children:i.providers.map(h=>c.jsxs("div",{children:[c.jsxs("div",{className:"px-4 py-1.5 flex items-center gap-2",children:[c.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-wider",style:{color:(h.available,"var(--text-tertiary)"),opacity:h.available?1:.5},children:h.label}),!h.available&&c.jsx("span",{className:"text-[9px] px-1 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:"unavailable"})]}),h.models.map(M=>{const p=Xm(i,h.id,M.id),w=!h.available||m;return c.jsxs("button",{onClick:()=>!w&&_(h,M),disabled:w,className:"w-full px-4 py-2 flex items-center gap-2.5 text-left transition-all duration-100",style:{background:p?"var(--accent-muted)":"transparent",color:w?"var(--text-tertiary)":"var(--text-primary)",opacity:w?.4:1,cursor:w?"not-allowed":"pointer"},onMouseEnter:Q=>{!w&&!p&&(Q.currentTarget.style.background="var(--surface-3)")},onMouseLeave:Q=>{p||(Q.currentTarget.style.background="transparent")},children:[c.jsx("div",{className:"w-3 h-3 rounded-full flex-shrink-0 flex items-center justify-center",style:{border:`2px solid ${p?"var(--accent)":"var(--border-subtle)"}`},children:p&&c.jsx("div",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--accent)"}})}),c.jsx("span",{className:"text-[12px]",children:M.label})]},`${h.id}-${M.id}`)})]},h.id))})]})]})}function Xm(i,o,f){return i.provider!==o?!1:o==="claude-cli"?i.model===`claude-${f}`:i.model===f}function o1(i){for(const o of i.providers)for(const f of o.models)if(Xm(i,o.id,f.id))return f.label;return i.model}function f1({active:i}){return c.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:i?"#fff":"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"}),c.jsx("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),c.jsx("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})}function d1({active:i}){return c.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:i?"#fff":"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("circle",{cx:"12",cy:"12",r:"10"}),c.jsx("circle",{cx:"12",cy:"12",r:"6"}),c.jsx("circle",{cx:"12",cy:"12",r:"2"})]})}const m1=[{path:"/",label:"Skills",Icon:f1},{path:"/activation",label:"Activation Test",Icon:d1}];function h1(){const i=cl(),[o,f]=E.useState(null);return E.useEffect(()=>{ut.getConfig().then(r=>f(r.projectName)).catch(()=>{})},[]),c.jsxs("div",{className:"flex h-screen",children:[c.jsxs("nav",{className:"w-[220px] flex flex-col flex-shrink-0",style:{background:"var(--surface-1)",borderRight:"1px solid var(--border-subtle)"},children:[c.jsx("div",{className:"px-5 py-5",style:{borderBottom:"1px solid var(--border-subtle)"},children:c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center",style:{background:"var(--accent-muted)"},children:c.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:c.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})})}),c.jsxs("div",{children:[c.jsx("div",{className:"text-[14px] font-semibold",style:{color:"var(--text-primary)",letterSpacing:"-0.01em"},children:"Skill Eval"}),c.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:o||"vskill"})]})]})}),c.jsxs("div",{className:"flex-1 px-3 py-3",children:[c.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-2",style:{color:"var(--text-tertiary)"},children:"Navigation"}),m1.map(r=>{const m=i.pathname===r.path;return c.jsxs(Ct,{to:r.path,className:"flex items-center gap-2.5 px-3 py-[9px] rounded-lg text-[13px] font-medium mb-0.5 transition-all duration-150",style:{background:m?"var(--accent)":"transparent",color:m?"#fff":"var(--text-secondary)"},onMouseEnter:v=>{m||(v.currentTarget.style.background="var(--surface-3)",v.currentTarget.style.color="var(--text-primary)")},onMouseLeave:v=>{m||(v.currentTarget.style.background="transparent",v.currentTarget.style.color="var(--text-secondary)")},children:[c.jsx(r.Icon,{active:m}),r.label]},r.path)})]}),c.jsxs("div",{className:"px-3 py-3",style:{borderTop:"1px solid var(--border-subtle)"},children:[c.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-2",style:{color:"var(--text-tertiary)"},children:"Model"}),c.jsx(r1,{})]})]}),c.jsx("main",{className:"flex-1 overflow-auto",style:{background:"var(--surface-0)"},children:c.jsx("div",{className:"animate-fade-in",children:c.jsxs(bp,{children:[c.jsx(Il,{path:"/",element:c.jsx(t1,{})}),c.jsx(Il,{path:"/skills/:plugin/:skill",element:c.jsx(l1,{})}),c.jsx(Il,{path:"/skills/:plugin/:skill/benchmark",element:c.jsx(n1,{})}),c.jsx(Il,{path:"/skills/:plugin/:skill/compare",element:c.jsx(u1,{})}),c.jsx(Il,{path:"/skills/:plugin/:skill/history",element:c.jsx(i1,{})}),c.jsx(Il,{path:"/activation",element:c.jsx(s1,{})})]})},i.pathname)})]})}jy.createRoot(document.getElementById("root")).render(c.jsx(E.StrictMode,{children:c.jsx(Qp,{children:c.jsx(h1,{})})}));