vskill 0.2.66 → 0.2.68
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.
- package/dist/eval/llm.js +7 -0
- package/dist/eval/llm.js.map +1 -1
- package/dist/eval-server/api-routes.js +14 -4
- package/dist/eval-server/api-routes.js.map +1 -1
- package/dist/eval-ui/assets/index-sP1kJUeE.js +70 -0
- package/dist/eval-ui/index.html +1 -1
- package/package.json +1 -1
- package/dist/eval-ui/assets/index-Bi3nlfPA.js +0 -70
|
@@ -0,0 +1,70 @@
|
|
|
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 Ms={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 A in m)A!=="key"&&(v[A]=m[A])}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,Ms.exports=my()),Ms.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"),A=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),B=Symbol.iterator;function Q(b){return b===null||typeof b!="object"?null:(b=B&&b[B]||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 _=Array.isArray;function w(){}var k={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function Ne(b,q,K){var W=K.ref;return{$$typeof:i,type:b,key:q,ref:W!==void 0?W:null,props:K}}function Dt(b,q){return Ne(b.type,q,b.props)}function vt(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 yt(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(w,w):(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 D(b,q,K,W,ae){var ie=typeof b;(ie==="undefined"||ie==="boolean")&&(b=null);var ve=!1;if(b===null)ve=!0;else switch(ie){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(b.$$typeof){case i:case o:ve=!0;break;case R:return ve=b._init,D(ve(b._payload),q,K,W,ae)}}if(ve)return ae=ae(b),ve=W===""?"."+yt(b,0):W,_(ae)?(K="",ve!=null&&(K=ve.replace(Ut,"$&/")+"/"),D(ae,q,K,"",function(qa){return qa})):ae!=null&&(vt(ae)&&(ae=Dt(ae,K+(ae.key==null||b&&b.key===ae.key?"":(""+ae.key).replace(Ut,"$&/")+"/")+ve)),q.push(ae)),1;ve=0;var $e=W===""?".":W+":";if(_(b))for(var Oe=0;Oe<b.length;Oe++)W=b[Oe],ie=$e+yt(W,Oe),ve+=D(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+yt(W,Oe++),ve+=D(W,q,K,ie,ae);else if(ie==="object"){if(typeof b.then=="function")return D(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 ve}function V(b,q,K){if(b==null)return b;var W=[],ae=0;return D(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 xe=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)},je={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(!vt(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return le.Activity=p,le.Children=je,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)!ee.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 ve=Array(ie),$e=0;$e<ie;$e++)ve[$e]=arguments[$e+2];W.children=ve}return Ne(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)ee.call(q,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ae[W]=q[W]);var ve=arguments.length-2;if(ve===1)ae.children=K;else if(1<ve){for(var $e=Array(ve),Oe=0;Oe<ve;Oe++)$e[Oe]=arguments[Oe+2];ae.children=$e}if(b&&b.defaultProps)for(W in ve=b.defaultProps,ve)ae[W]===void 0&&(ae[W]=ve[W]);return Ne(b,ie,ae)},le.createRef=function(){return{current:null}},le.forwardRef=function(b){return{$$typeof:A,render:b}},le.isValidElement=vt,le.lazy=function(b){return{$$typeof:R,_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(w,xe)}catch(ie){xe(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(D,V){var te=D.length;D.push(V);e:for(;0<te;){var xe=te-1>>>1,je=D[xe];if(0<m(je,V))D[xe]=V,D[te]=je,te=xe;else break e}}function f(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var V=D[0],te=D.pop();if(te!==V){D[0]=te;e:for(var xe=0,je=D.length,b=je>>>1;xe<b;){var q=2*(xe+1)-1,K=D[q],W=q+1,ae=D[W];if(0>m(K,te))W<je&&0>m(ae,K)?(D[xe]=ae,D[W]=te,xe=W):(D[xe]=K,D[q]=te,xe=q);else if(W<je&&0>m(ae,te))D[xe]=ae,D[W]=te,xe=W;else break e}}return V}function m(D,V){var te=D.sortIndex-V.sortIndex;return te!==0?te:D.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,A=x.now();i.unstable_now=function(){return x.now()-A}}var S=[],h=[],R=1,p=null,B=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(D){for(var V=f(h);V!==null;){if(V.callback===null)r(h);else if(V.startTime<=D)r(h),V.sortIndex=V.expirationTime,o(S,V);else break;V=f(h)}}function _(D){if(X=!1,O(D),!Y)if(f(S)!==null)Y=!0,w||(w=!0,Ke());else{var V=f(h);V!==null&&Ue(_,V.startTime-D)}}var w=!1,k=-1,ee=5,Ne=-1;function Dt(){return G?!0:!(i.unstable_now()-Ne<ee)}function vt(){if(G=!1,w){var D=i.unstable_now();Ne=D;var V=!0;try{e:{Y=!1,X&&(X=!1,$(k),k=-1),Q=!0;var te=B;try{t:{for(O(D),p=f(S);p!==null&&!(p.expirationTime>D&&Dt());){var xe=p.callback;if(typeof xe=="function"){p.callback=null,B=p.priorityLevel;var je=xe(p.expirationTime<=D);if(D=i.unstable_now(),typeof je=="function"){p.callback=je,O(D),V=!0;break t}p===f(S)&&r(S),O(D)}else r(S);p=f(S)}if(p!==null)V=!0;else{var b=f(h);b!==null&&Ue(_,b.startTime-D),V=!1}}break e}finally{p=null,B=te,Q=!1}V=void 0}}finally{V?Ke():w=!1}}}var Ke;if(typeof Z=="function")Ke=function(){Z(vt)};else if(typeof MessageChannel<"u"){var Ut=new MessageChannel,yt=Ut.port2;Ut.port1.onmessage=vt,Ke=function(){yt.postMessage(null)}}else Ke=function(){U(vt,0)};function Ue(D,V){k=U(function(){D(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(D){D.callback=null},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return B},i.unstable_next=function(D){switch(B){case 1:case 2:case 3:var V=3;break;default:V=B}var te=B;B=V;try{return D()}finally{B=te}},i.unstable_requestPaint=function(){G=!0},i.unstable_runWithPriority=function(D,V){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var te=B;B=D;try{return V()}finally{B=te}},i.unstable_scheduleCallback=function(D,V,te){var xe=i.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?xe+te:xe):te=xe,D){case 1:var je=-1;break;case 2:je=250;break;case 5:je=1073741823;break;case 4:je=1e4;break;default:je=5e3}return je=te+je,D={id:R++,callback:V,priorityLevel:D,startTime:te,expirationTime:je,sortIndex:-1},te>xe?(D.sortIndex=te,o(h,D),f(S)===null&&D===f(h)&&(X?($(k),k=-1):X=!0,Ue(_,te-xe))):(D.sortIndex=je,o(S,D),Y||Q||(Y=!0,w||(w=!0,Ke()))),D},i.unstable_shouldYield=Dt,i.unstable_wrapCallback=function(D){var V=B;return function(){var te=B;B=V;try{return D.apply(this,arguments)}finally{B=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 R=2;R<arguments.length;R++)h+="&args[]="+encodeURIComponent(arguments[R])}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,R){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:R}}var x=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function A(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 R=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,R)},Je.flushSync=function(S){var h=x.T,R=r.p;try{if(x.T=null,r.p=2,S)return S()}finally{x.T=h,r.p=R,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 R=h.as,p=A(R,h.crossOrigin),B=typeof h.integrity=="string"?h.integrity:void 0,Q=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;R==="style"?r.d.S(S,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:B,fetchPriority:Q}):R==="script"&&r.d.X(S,{crossOrigin:p,integrity:B,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 R=A(h.as,h.crossOrigin);r.d.M(S,{crossOrigin:R,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 R=h.as,p=A(R,h.crossOrigin);r.d.L(S,R,{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 R=A(h.as,h.crossOrigin);r.d.m(S,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:R,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,R){return x.H.useFormState(S,h,R)},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 A(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 R(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=R(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,B=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"),_=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),Ne=Symbol.for("react.activity"),Dt=Symbol.for("react.memo_cache_sentinel"),vt=Symbol.iterator;function Ke(e){return e===null||typeof e!="object"?null:(e=vt&&e[vt]||e["@@iterator"],typeof e=="function"?e:null)}var Ut=Symbol.for("react.client.reference");function yt(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 _:return"Suspense";case w:return"SuspenseList";case Ne: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:yt(e.type)||"Memo";case ee:t=e._payload,e=e._init;try{return yt(e(t))}catch{}}return null}var Ue=Array.isArray,D=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},xe=[],je=-1;function b(e){return{current:e}}function q(e){0>je||(e.current=xe[je],xe[je]=null,je--)}function K(e,t){je++,xe[je]=e.current,e.current=t}var W=b(null),ae=b(null),ie=b(null),ve=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(ve,e);var t=W.current,l=Td(t,e.type);t!==l&&(K(ae,e),K(W,l))}function Yn(e){ae.current===e&&(q(W),q(ae)),ve.current===e&&(q(ve),Rn._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(M){var z=M}Reflect.construct(e,[],L)}else{try{L.call()}catch(M){z=M}e.call(L.prototype)}}else{try{throw Error()}catch(M){z=M}(L=e())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(M){if(M&&z&&typeof M.stack=="string")return[M.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 C=`
|
|
46
|
+
`+y[a].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),C}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,ut=i.unstable_now,Km=i.unstable_getCurrentPriorityLevel,er=i.unstable_ImmediatePriority,tr=i.unstable_UserBlockingPriority,kn=i.unstable_NormalPriority,Jm=i.unstable_LowPriority,lr=i.unstable_IdlePriority,$m=i.log,Wm=i.unstable_setDisableYieldValue,Ya=null,it=null;function sl(e){if(typeof $m=="function"&&Wm(e),it&&typeof it.setStrictMode=="function")try{it.setStrictMode(Ya,e)}catch{}}var ct=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 ka(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 C=31-ct(l),L=1<<C;d[C]=0,y[C]=-1;var z=T[C];if(z!==null)for(T[C]=null,C=0;C<z.length;C++){var M=z[C];M!==null&&(M.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-ct(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-ct(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,Fe="__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[Fe],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 Ye(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 kt(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 pt(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 xt(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=""+pt(t)):e.value!==""+pt(t)&&(e.value=""+pt(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?Ti(e,s,pt(t)):l!=null?Ti(e,s,pt(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=""+pt(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?""+pt(l):"",t=t!=null?""+pt(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=""+pt(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=""+pt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+pt(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=pt(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 zi(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 Ai=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[Fe]||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="'+xt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[Fe]||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 Ri=!1;function jr(e,t,l){if(Ri)return e(t,l);Ri=!0;try{var a=e(t);return a}finally{if(Ri=!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[Fe]||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"),Mi=!1;if(Xt)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){Mi=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{Mi=!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 Ie(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=Ie(Bl),Ka=p({},Bl,{view:0,detail:0}),fh=Ie(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=Ie(eu),dh=p({},eu,{dataTransfer:0}),mh=Ie(dh),hh=p({},Ka,{relatedTarget:0}),Ui=Ie(hh),vh=p({},Bl,{animationName:0,elapsedTime:0,pseudoElement:0}),yh=Ie(vh),ph=p({},Bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xh=Ie(ph),gh=p({},Bl,{data:0}),zr=Ie(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=Ie(Nh),zh=p({},eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ar=Ie(zh),Ah=p({},Ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hi}),_h=Ie(Ah),Rh=p({},Bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mh=Ie(Rh),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=Ie(Oh),Dh=p({},Bl,{newState:0,oldState:0}),Uh=Ie(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),Rr=" ",Mr=!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:(Mr=!0,Rr);case"textInput":return e=t.data,e===Rr&&Mr?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 Yh(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(Yh,t)}}function kh(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 st=typeof Object.is=="function"?Object.is:Zh;function Ia(e,t){if(st(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)||!st(e[n],t[n]))return!1}return!0}function Yr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kr(e,t){var l=Yr(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=Yr(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,Yi=null,Pa=null,ki=!1;function Qr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ki||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(Yi,"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 _t(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)},gt=[],da=0,Qi=0;function au(){for(var e=da,t=Qi=da=0;t<e;){var l=gt[t];gt[t++]=null;var a=gt[t];gt[t++]=null;var n=gt[t];gt[t++]=null;var u=gt[t];if(gt[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){gt[da++]=e,gt[da++]=t,gt[da++]=l,gt[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-ct(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 rt(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=rt(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 Ne:return e=rt(31,l,t,n),e.elementType=Ne,e.lanes=u,e;case X:return Yl(l.children,n,u,t);case G:s=8,n|=24;break;case U:return e=rt(12,l,t,n|2),e.elementType=U,e.lanes=u,e;case _:return e=rt(13,l,t,n),e.elementType=_,e.lanes=u,e;case w:return e=rt(19,l,t,n),e.elementType=w,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 ee:s=16,a=null;break e}s=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=rt(s,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Yl(e,t,l,a){return e=rt(7,e,a,t),e.lanes=l,e}function Ki(e,t,l){return e=rt(6,e,null,t),e.lanes=l,e}function Pr(e){var t=rt(18,null,null,0);return t.stateNode=e,t}function Ji(e,t,l){return t=rt(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 bt(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,St=[],jt=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){St[jt++]=Ht,St[jt++]=Bt,St[jt++]=fl,fl=e;var a=Ht;e=Bt;var n=32-ct(a)-1;a&=~(1<<n),l+=1;var u=32-ct(t)+n;if(30<u){var s=n-n%5;u=(a&(1<<s)-1).toString(32),a>>=s,n-=s,Ht=1<<32-ct(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=St[--jt],St[jt]=null,Bt=St[--jt],St[jt]=null,Ht=St[--jt],St[jt]=null}function lo(e,t){St[jt++]=Ht,St[jt++]=Bt,St[jt++]=fl,Ht=t.id,Bt=t.overflow,fl=e}var Xe=null,Te=null,fe=!1,dl=null,Et=!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(bt(t,e)),Fi}function ao(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ge]=e,t[Fe]=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:Et=!1;return;case 27:case 3:Et=!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,Al(e.type)?(e=bs,bs=null,Te=e):Te=t):Te=Xe?Tt(e.stateNode.nextSibling):null;return!0}function kl(){Te=Xe=null,fe=!1}function Ii(){var e=dl;return e!==null&&(lt===null?lt=e:lt.push.apply(lt,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;st(n.pendingProps.value,s.value)||(e!==null?e.push(d):e=[d])}}else if(n===ve.current){if(s=n.alternate,s===null)throw Error(r(387));s.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Rn):e=[Rn])}n=n.return}e!==null&&tc(t,e,l,a),t.flags|=262144}function su(e){for(e=e.firstContext;e!==null;){if(!st(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=D.S;D.S=function(e,t){Vf=ut(),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:Ee.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=Ee,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===B?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,H){return g===null||g.tag!==6?(g=Ki(N,j.mode,H),g.return=j,g):(g=n(g,N),g.return=j,g)}function y(j,g,N,H){var I=N.type;return I===X?C(j,g,N.props.children,H,N.key):g!==null&&(g.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===ee&&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,H),un(g,N),g.return=j,g)}function T(j,g,N,H){return g===null||g.tag!==4||g.stateNode.containerInfo!==N.containerInfo||g.stateNode.implementation!==N.implementation?(g=Ji(N,j.mode,H),g.return=j,g):(g=n(g,N.children||[]),g.return=j,g)}function C(j,g,N,H,I){return g===null||g.tag!==7?(g=Yl(N,j.mode,H,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 ee:return g=Zl(g),L(j,g,N)}if(Ue(g)||Ke(g))return g=Yl(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,H){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,H);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Q:return N.key===I?y(j,g,N,H):null;case Y:return N.key===I?T(j,g,N,H):null;case ee:return N=Zl(N),z(j,g,N,H)}if(Ue(N)||Ke(N))return I!==null?null:C(j,g,N,H,null);if(typeof N.then=="function")return z(j,g,mu(N),H);if(N.$$typeof===Z)return z(j,g,ru(j,N),H);hu(j,N)}return null}function M(j,g,N,H,I){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return j=j.get(N)||null,d(g,j,""+H,I);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case Q:return j=j.get(H.key===null?N:H.key)||null,y(g,j,H,I);case Y:return j=j.get(H.key===null?N:H.key)||null,T(g,j,H,I);case ee:return H=Zl(H),M(j,g,N,H,I)}if(Ue(H)||Ke(H))return j=j.get(N)||null,C(g,j,H,I,null);if(typeof H.then=="function")return M(j,g,N,mu(H),I);if(H.$$typeof===Z)return M(j,g,N,ru(g,H),I);hu(g,H)}return null}function J(j,g,N,H){for(var I=null,de=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 me=z(j,F,N[ue],H);if(me===null){F===null&&(F=oe);break}e&&F&&me.alternate===null&&t(j,F),g=u(me,g,ue),de===null?I=me:de.sibling=me,de=me,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],H),F!==null&&(g=u(F,g,ue),de===null?I=F:de.sibling=F,de=F);return fe&&Zt(j,ue),I}for(F=a(F);ue<N.length;ue++)oe=M(F,j,ue,N[ue],H),oe!==null&&(e&&oe.alternate!==null&&F.delete(oe.key===null?ue:oe.key),g=u(oe,g,ue),de===null?I=oe:de.sibling=oe,de=oe);return e&&F.forEach(function(Cl){return t(j,Cl)}),fe&&Zt(j,ue),I}function P(j,g,N,H){if(N==null)throw Error(r(151));for(var I=null,de=null,F=g,ue=g=0,oe=null,me=N.next();F!==null&&!me.done;ue++,me=N.next()){F.index>ue?(oe=F,F=null):oe=F.sibling;var Cl=z(j,F,me.value,H);if(Cl===null){F===null&&(F=oe);break}e&&F&&Cl.alternate===null&&t(j,F),g=u(Cl,g,ue),de===null?I=Cl:de.sibling=Cl,de=Cl,F=oe}if(me.done)return l(j,F),fe&&Zt(j,ue),I;if(F===null){for(;!me.done;ue++,me=N.next())me=L(j,me.value,H),me!==null&&(g=u(me,g,ue),de===null?I=me:de.sibling=me,de=me);return fe&&Zt(j,ue),I}for(F=a(F);!me.done;ue++,me=N.next())me=M(F,j,ue,me.value,H),me!==null&&(e&&me.alternate!==null&&F.delete(me.key===null?ue:me.key),g=u(me,g,ue),de===null?I=me:de.sibling=me,de=me);return e&&F.forEach(function(dy){return t(j,dy)}),fe&&Zt(j,ue),I}function Se(j,g,N,H){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),H=n(g,N.props.children),H.return=j,j=H;break e}}else if(g.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===ee&&Zl(I)===g.type){l(j,g.sibling),H=n(g,N.props),un(H,N),H.return=j,j=H;break e}l(j,g);break}else t(j,g);g=g.sibling}N.type===X?(H=Yl(N.props.children,j.mode,H,N.key),H.return=j,j=H):(H=iu(N.type,N.key,N.props,null,j.mode,H),un(H,N),H.return=j,j=H)}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),H=n(g,N.children||[]),H.return=j,j=H;break e}else{l(j,g);break}else t(j,g);g=g.sibling}H=Ji(N,j.mode,H),H.return=j,j=H}return s(j);case ee:return N=Zl(N),Se(j,g,N,H)}if(Ue(N))return J(j,g,N,H);if(Ke(N)){if(I=Ke(N),typeof I!="function")throw Error(r(150));return N=I.call(N),P(j,g,N,H)}if(typeof N.then=="function")return Se(j,g,mu(N),H);if(N.$$typeof===Z)return Se(j,g,ru(j,N),H);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),H=n(g,N),H.return=j,j=H):(l(j,g),H=Ki(N,j.mode,H),H.return=j,j=H),s(j)):l(j,g)}return function(j,g,N,H){try{nn=0;var I=Se(j,g,N,H);return Sa=null,I}catch(F){if(F===ba||F===fu)throw F;var de=rt(29,F,null,j.mode);return de.lanes=H,de.return=j,de}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,(he&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 C=e.alternate;C!==null&&(C=C.updateQueue,d=C.lastBaseUpdate,d!==s&&(d===null?C.firstBaseUpdate=T:d.next=T,C.lastBaseUpdate=y))}if(u!==null){var L=n.baseState;s=0,C=T=y=null,d=u;do{var z=d.lane&-536870913,M=z!==d.lane;if(M?(re&z)===z:(a&z)===z){z!==0&&z===xa&&(rc=!0),C!==null&&(C=C.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var J=e,P=d;z=t;var Se=l;switch(P.tag){case 1:if(J=P.payload,typeof J=="function"){L=J.call(Se,L,z);break e}L=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=P.payload,z=typeof J=="function"?J.call(Se,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,M&&(e.flags|=8192),M=n.callbacks,M===null?n.callbacks=[z]:M.push(z))}else M={lane:z,tag:d.tag,payload:d.payload,callback:d.callback,next:null},C===null?(T=C=M,y=L):C=C.next=M,s|=z;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;M=d,d=M.next,M.next=null,n.lastBaseUpdate=M,n.shared.pending=null}}while(!0);C===null&&(y=L),n.baseState=y,n.firstBaseUpdate=T,n.lastBaseUpdate=C,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 ot=b(null),Nt=null;function xl(e){var t=e.alternate;K(Ce,Ce.current&1),K(ot,e),Nt===null&&(t===null||ja.current!==null||t.memoizedState!==null)&&(Nt=e)}function dc(e){K(Ce,Ce.current),K(ot,e),Nt===null&&(Nt=e)}function go(e){e.tag===22?(K(Ce,Ce.current),K(ot,e),Nt===null&&(Nt=e)):gl()}function gl(){K(Ce,Ce.current),K(ot,ot.current)}function ft(e){q(ot),Nt===e&&(Nt=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,ge=null,Be=null,pu=!1,Ea=!1,Jl=!1,xu=0,on=0,Na=null,lv=0;function Re(){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(!st(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,D.H=e===null||e.memoizedState===null?lf:Rc,Jl=!1,u=l(a,n),Jl=!1,Ea&&(u=So(t,l,a,n)),bo(e),u}function bo(e){D.H=mn;var t=ge!==null&&ge.next!==null;if(Jt=0,Be=ge=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=ge=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}D.H=af,u=t(l,a)}while(Ea);return u}function av(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?fn(t):t,e=e.useState()[0],(ge!==null?ge.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=ge=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(ge===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=ge.next;var t=Be===null?ne.memoizedState:Be.next;if(t!==null)Be=t,ge=e;else{if(e===null)throw ne.alternate===null?Error(r(467)):Error(r(310));ge=e,e={memoizedState:ge.memoizedState,baseState:ge.baseState,baseQueue:ge.baseQueue,queue:ge.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,D.H=t===null||t.memoizedState===null?lf:Rc),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]=Dt;return t.index++,l}function $t(e,t){return typeof t=="function"?t(e):t}function Su(e){var t=De();return gc(t,ge,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,C=!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&&(C=!0);else if((Jt&z)===z){T=T.next,z===xa&&(C=!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,!st(u,e.memoizedState)&&(we=!0,C&&(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);st(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=!st((ge||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),Ee===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,zo(t)&&Ao(e)}function To(e,t,l){return l(function(){zo(t)&&Ao(e)})}function zo(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!st(e,l)}catch{return!0}}function Ao(e){var t=ql(e,2);t!==null&&at(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,ge,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)}};D.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Ro(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Ro(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=D.T,s={};D.T=s;try{var d=l(n,a),y=D.S;y!==null&&y(s,d),Mo(e,t,d)}catch(T){jc(e,t,T)}finally{u!==null&&s.types!==null&&(u.types=s.types),D.T=u}}else try{u=l(n,a),Mo(e,t,u)}catch(T){jc(e,t,T)}}function Mo(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,Ro(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=Ee.formState;if(l!==null){e:{var a=ne;if(fe){if(Te){t:{for(var n=Te,u=Et;n.nodeType!==8;){if(!u){n=null;break t}if(n=Tt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Te=Tt(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,ge,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=ge;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;ge!==null&&a!==null&&mc(a,ge.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 Yo(e){var t=De().memoizedState;return iv({ref:t,nextImpl:e}),function(){if((he&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function ko(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 st(l,t)?l:ja.current!==null?(e=Tc(e,l,a),st(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=D.T,d={};D.T=d,_c(e,!1,t,l);try{var y=n(),T=D.S;if(T!==null&&T(d,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var C=tv(y,a);dn(e,t,C,ht(e))}else dn(e,t,a,ht(e))}catch(L){dn(e,t,{then:function(){},status:"rejected",reason:L},ht())}finally{V.p=u,s!==null&&d.types!==null&&(s.types=d.types),D.T=s}}function cv(){}function zc(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,{},ht())}function Ac(){return Qe(Rn)}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=ht();e=yl(l);var a=pl(t,e,l);a!==null&&(at(a,t,l),cn(a,t,l)),t={cache:lc()},e.payload=t;return}t=t.return}}function rv(e,t,l){var a=ht();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&&(at(l,e,a),tf(l,t,a)))}function Po(e,t,l){var a=ht();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,st(d,s))return nu(e,t,n,0),Ee===null&&au(),!1}catch{}finally{}if(l=Zi(e,t,n,a),l!==null)return at(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&&at(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:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useLayoutEffect:Re,useInsertionEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useSyncExternalStore:Re,useId:Re,useHostTransitionStatus:Re,useFormState:Re,useActionState:Re,useOptimistic:Re,useMemoCache:Re,useCacheRefresh:Re};mn.useEffectEvent=Re;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(),Ee===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=Ee.identifierPrefix;if(fe){var l=Bt,a=Ht;l=(a&~(1<<32-ct(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:Ac,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((he&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Rc={readContext:Qe,use:bu,useCallback:Zo,useContext:Qe,useEffect:Ec,useImperativeHandle:Qo,useInsertionEffect:ko,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,ge.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:Ac,useFormState:Ho,useActionState:Ho,useOptimistic:function(e,t){var l=De();return _o(l,ge,e,t)},useMemoCache:xc,useCacheRefresh:Io};Rc.useEffectEvent=Yo;var af={readContext:Qe,use:bu,useCallback:Zo,useContext:Qe,useEffect:Ec,useImperativeHandle:Qo,useInsertionEffect:ko,useLayoutEffect:Go,useMemo:Vo,useReducer:bc,useRef:Lo,useState:function(){return bc($t)},useDebugValue:Nc,useDeferredValue:function(e,t){var l=De();return ge===null?Tc(l,e,t):Ko(l,ge.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:Ac,useFormState:wo,useActionState:wo,useOptimistic:function(e,t){var l=De();return ge!==null?_o(l,ge,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:xc,useCacheRefresh:Io};af.useEffectEvent=Yo;function Mc(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=ht(),n=yl(a);n.payload=t,l!=null&&(n.callback=l),t=pl(e,n,a),t!==null&&(at(t,e,a),cn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=ht(),n=yl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=pl(e,n,a),t!==null&&(at(t,e,a),cn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=ht(),a=yl(l);a.tag=2,t!=null&&(a.callback=t),t=pl(e,a,l),t!==null&&(at(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=ot.current,l!==null){switch(l.tag){case 31:case 13:return Nt===null?wu():l.alternate===null&&Me===0&&(Me=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=ot.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(bt(e,l)))):(a!==Fi&&(t=Error(r(423),{cause:a}),tn(bt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=bt(a,l),n=Cc(e.stateNode,a,n),sc(e,n),Me!==4&&(Me=2)),!1;var u=Error(r(520),{cause:a});if(u=bt(u,l),Sn===null?Sn=[u]:Sn.push(u),Me!==4&&(Me=2),t===null)return!0;a=bt(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,!kc(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,kc(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 zu(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=zu(t,t.pendingProps),e.flags|=2,ft(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=zu(t,a),t.lanes=536870912,hn(null,e);if(dc(t),(e=Te)?(e=Md(e,Et),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 zu(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=Ee,a!==null&&(s=ir(a,l),s!==0&&s!==u.retryLane))throw u.retryLane=s,ql(e,s),at(a,e,s),Dc;wu(),t=xf(e,t,l)}else e=u.treeContext,Te=Tt(s.nextSibling),Xe=t,fe=!0,dl=null,Et=!1,e!==null&&lo(t,e),t=zu(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 Au(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"&&(Mc(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,C=l.contextType;s=ma,typeof C=="object"&&C!==null&&(s=Qe(C));var L=l.getDerivedStateFromProps;C=typeof L=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,C||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"&&(Mc(t,l,L,a),T=t.memoizedState),(y=vl||nf(t,l,y,a,z,T,s))?(C||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,C=$l(l,s),u.props=C,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 M=t.memoizedState;s!==L||z!==M||vl||e!==null&&e.dependencies!==null&&su(e.dependencies)?(typeof d=="function"&&(Mc(t,l,d,a),M=t.memoizedState),(C=vl||nf(t,l,C,a,z,M,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,M,y),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,M,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=M),u.props=a,u.state=M,u.context=y,a=C):(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,Au(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 kl(),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|=mt),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=Md(e,Et),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=Yl(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=Yl(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=Ee,s!==null&&(a=ir(s,l),a!==0&&a!==y.retryLane))throw y.retryLane=a,ql(e,a),at(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=Tt(d.nextSibling),Xe=t,fe=!0,dl=null,Et=!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=Yl(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=rt(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 Yc(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),Yc(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}Yc(t,!0,l,null,u,a);break;case"together":Yc(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 kc(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),kl();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(!kc(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=yt(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=bt(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=Tt(e.firstChild),Xe=t,fe=!0,dl=null,Et=!0,l=vo(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(kl(),a===n){t=Wt(e,t,l);break e}Ze(e,t,a,l)}t=t.child}return t;case 26:return Au(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[Fe]=e,Ve(a,l,e),Ye(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,Et=!0,n=Te,Al(t.type)?(bs=n,Te=Tt(a.firstChild)):Te=n),Ze(e,t,t.pendingProps.children,l),Au(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,Et),a!==null?(t.stateNode=a,Xe=t,Te=Tt(a.firstChild),Et=!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),Rn._currentValue=n),Au(e,t),Ze(e,t,a,l),t.child;case 6:return e===null&&fe&&((e=l=Te)&&(l=Xv(l,t.pendingProps,Et),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=Ee,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 zf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!kd(t))if(If())e.flags|=8192;else throw Vl=du,uc}function Ru(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ar():536870912,e.lanes|=t,Ra|=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 ze(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 ze(t),null;case 1:return ze(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),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())),ze(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(Ft(t),u!==null?(ze(t),zf(t,u)):(ze(t),Gc(t,n,null,a,l))):u?u!==e.memoizedState?(Ft(t),ze(t),zf(t,u)):(ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Ft(t),ze(t),Gc(t,n,e,a,l)),null;case 27:if(Yn(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 ze(t),null}e=W.current,ya(t)?ao(t):(e=Dd(n,a,l),t.stateNode=e,Ft(t))}return ze(t),null;case 5:if(Yn(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 ze(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[Fe]=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 ze(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 ze(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 kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),e=!1}else l=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(ft(t),t):(ft(t),null);if((t.flags&128)!==0)throw Error(r(558))}return ze(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 kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),n=!1}else n=Ii(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(ft(t),t):(ft(t),null)}return ft(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),Ru(t,t.updateQueue),ze(t),null);case 4:return Oe(),e===null&&os(t.stateNode.containerInfo),ze(t),null;case 10:return Kt(t.type),ze(t),null;case 19:if(q(Ce),a=t.memoizedState,a===null)return ze(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)vn(a,!1);else{if(Me!==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,Ru(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&&ut()>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,Ru(t,e),vn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!fe)return ze(t),null}else 2*ut()-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=ut(),e.sibling=null,l=Ce.current,K(Ce,n?l&1|2:l&1),fe&&Zt(t,a.treeForkCount),e):(ze(t),null);case 22:case 23:return ft(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&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),l=t.updateQueue,l!==null&&Ru(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),ze(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 Yn(t),null;case 31:if(t.memoizedState!==null){if(ft(t),t.alternate===null)throw Error(r(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ft(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));kl()}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 ft(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 Af(e,t){switch(Wi(t),t.tag){case 3:Kt(He),Oe();break;case 26:case 27:case 5:Yn(t);break;case 4:Oe();break;case 31:t.memoizedState!==null&&ft(t);break;case 13:ft(t);break;case 19:q(Ce);break;case 10:Kt(t.type);break;case 22:case 23:ft(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){pe(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(C){pe(n,y,C)}}}a=a.next}while(a!==u)}}catch(C){pe(t,t.return,C)}}function _f(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{po(t,l)}catch(a){pe(e,e.return,a)}}}function Rf(e,t,l){l.props=$l(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){pe(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){pe(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){pe(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){pe(e,t,n)}else l.current=null}function Mf(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){pe(e,e.return,n)}}function Xc(e,t,l){try{var a=e.stateNode;Bv(a,e.type,l,t),a[Fe]=t}catch(n){pe(e,e.return,n)}}function Of(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Al(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&&Al(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&&Al(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 Mu(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&&Al(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Mu(e,t,l),e=e.sibling;e!==null;)Mu(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[Fe]=l}catch(u){pe(e,e.return,u)}}var It=!1,Le=!1,Vc=!1,Df=typeof WeakSet=="function"?WeakSet:Set,ke=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,C=0,L=e,z=null;t:for(;;){for(var M;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),(M=L.firstChild)!==null;)z=L,L=M;for(;;){if(L===e)break t;if(z===l&&++T===n&&(d=s),z===u&&++C===a&&(y=s),(M=L.nextSibling)!==null)break;L=z,z=L.parentNode}L=M}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,ke=t;ke!==null;)if(t=ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ke=e;else for(;ke!==null;){switch(t=ke,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(P){pe(l,l.return,P)}}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,ke=e;break}ke=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){pe(l,l.return,s)}else{var n=$l(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){pe(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){pe(l,l.return,s)}}break;case 27:t===null&&a&4&&Cf(l);case 26:case 5:el(e,l),t===null&&a&4&&Mf(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 Ae=null,Pe=!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(it&&typeof it.onCommitFiberUnmount=="function")try{it.onCommitFiberUnmount(Ya,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=Ae,n=Pe;Al(l.type)&&(Ae=l.stateNode,Pe=!1),Pt(e,t,l),zn(l.stateNode),Ae=a,Pe=n;break;case 5:Le||wt(l,t);case 6:if(a=Ae,n=Pe,Ae=null,Pt(e,t,l),Ae=a,Pe=n,Ae!==null)if(Pe)try{(Ae.nodeType===9?Ae.body:Ae.nodeName==="HTML"?Ae.ownerDocument.body:Ae).removeChild(l.stateNode)}catch(u){pe(l,t,u)}else try{Ae.removeChild(l.stateNode)}catch(u){pe(l,t,u)}break;case 18:Ae!==null&&(Pe?(e=Ae,_d(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),wa(e)):_d(Ae,l.stateNode));break;case 4:a=Ae,n=Pe,Ae=l.stateNode.containerInfo,Pe=!0,Pt(e,t,l),Ae=a,Pe=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"&&Rf(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){pe(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){pe(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 et(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(Al(d.type)){Ae=d.stateNode,Pe=!1;break e}break;case 5:Ae=d.stateNode,Pe=!1;break e;case 3:case 4:Ae=d.stateNode.containerInfo,Pe=!0;break e}d=d.return}if(Ae===null)throw Error(r(160));Bf(u,s,n),Ae=null,Pe=!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:et(t,e),tt(e),a&4&&(bl(3,e,e.return),yn(3,e),bl(5,e,e.return));break;case 1:et(t,e),tt(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(et(t,e),tt(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,Ye(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,Ye(u),a=u}e.stateNode=a}else Yd(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?Yd(n,e.type,e.stateNode):Ld(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Xc(e,e.memoizedProps,l.memoizedProps)}break;case 27:et(t,e),tt(e),a&512&&(Le||l===null||wt(l,l.return)),l!==null&&a&4&&Xc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(et(t,e),tt(e),a&512&&(Le||l===null||wt(l,l.return)),e.flags&32){n=e.stateNode;try{ia(n,"")}catch(J){pe(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(et(t,e),tt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(J){pe(e,e.return,J)}}break;case 3:if(Ku=null,n=Rt,Rt=Zu(t.containerInfo),et(t,e),Rt=n,tt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{wa(t.containerInfo)}catch(J){pe(e,e.return,J)}Vc&&(Vc=!1,Yf(e));break;case 4:a=Rt,Rt=Zu(e.stateNode.containerInfo),et(t,e),tt(e),Rt=a;break;case 12:et(t,e),tt(e);break;case 31:et(t,e),tt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 13:et(t,e),tt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Du=ut()),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,C=Le;if(It=T||n,Le=C||y,et(t,e),Le=C,It=T,tt(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){pe(y,y.return,J)}}}else if(t.tag===6){if(l===null){y=t;try{y.stateNode.nodeValue=n?"":y.memoizedProps}catch(J){pe(y,y.return,J)}}}else if(t.tag===18){if(l===null){y=t;try{var M=y.stateNode;n?Rd(M,!0):Rd(y.stateNode,!1)}catch(J){pe(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:et(t,e),tt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 30:break;case 21:break;default:et(t,e),tt(e)}}function tt(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);Mu(e,u,n);break;case 5:var s=l.stateNode;l.flags&32&&(ia(s,""),l.flags&=-33);var d=Qc(e);Mu(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(C){pe(e,e.return,C)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Yf(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"&&Rf(t,t.return,l),Wl(t);break;case 27:zn(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){pe(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){pe(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&&Mf(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 Mt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kf(e,t,l,a),t=t.sibling}function kf(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Mt(e,t,l,a),n&2048&&yn(9,t);break;case 1:Mt(e,t,l,a);break;case 3:Mt(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){Mt(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){pe(t,t.return,y)}}else Mt(e,t,l,a);break;case 31:Mt(e,t,l,a);break;case 13:Mt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,s=t.alternate,t.memoizedState!==null?u._visibility&2?Mt(e,t,l,a):xn(e,t):u._visibility&2?Mt(e,t,l,a):(u._visibility|=2,za(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Kc(s,t);break;case 24:Mt(e,t,l,a),n&2048&&Jc(t.alternate,t);break;default:Mt(e,t,l,a)}}function za(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:za(u,s,d,y,n),yn(8,s);break;case 23:break;case 22:var C=s.stateNode;s.memoizedState!==null?C._visibility&2?za(u,s,d,y,n):xn(u,s):(C._visibility|=2,za(u,s,d,y,n)),n&&T&2048&&Kc(s.alternate,s);break;case 24:za(u,s,d,y,n),n&&T&2048&&Jc(s.alternate,s);break;default:za(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 Aa(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:Aa(e,t,l),e.flags&gn&&e.memoizedState!==null&&ly(l,Rt,e.memoizedState,e.memoizedProps);break;case 5:Aa(e,t,l);break;case 3:case 4:var a=Rt;Rt=Zu(e.stateNode.containerInfo),Aa(e,t,l),Rt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=gn,gn=16777216,Aa(e,t,l),gn=a):Aa(e,t,l));break;default:Aa(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];ke=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];ke=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(;ke!==null;){var l=ke;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,ke=a;else e:for(l=e;ke!==null;){a=ke;var n=a.sibling,u=a.return;if(Hf(a),a===l){ke=null;break e}if(n!==null){n.return=u,ke=n;break e}ke=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,he=0,Ee=null,ce=null,re=0,ye=0,dt=null,Sl=!1,_a=!1,$c=!1,ll=0,Me=0,jl=0,Fl=0,Wc=0,mt=0,Ra=0,Sn=null,lt=null,Fc=!1,Du=0,Vf=0,Uu=1/0,Hu=null,El=null,qe=0,Nl=null,Ma=null,al=0,Ic=0,Pc=null,Kf=null,jn=0,es=null;function ht(){return(he&2)!==0&&re!==0?re&-re:D.T!==null?is():cr()}function Jf(){if(mt===0)if((re&536870912)===0||fe){var e=Xn;Xn<<=1,(Xn&3932160)===0&&(Xn=262144),mt=e}else mt=536870912;return e=ot.current,e!==null&&(e.flags|=32),mt}function at(e,t,l){(e===Ee&&(ye===2||ye===9)||e.cancelPendingCommit!==null)&&(Oa(e,0),Tl(e,re,mt,!1)),Ga(e,l),((he&2)===0||e!==Ee)&&(e===Ee&&((he&2)===0&&(Fl|=l),Me===4&&Tl(e,re,mt,!1)),Lt(e))}function $f(e,t,l){if((he&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||ka(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=lt,lt=n,u!==null&&(lt===null?lt=u:lt.push.apply(lt,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,mt,!Sl);break e;case 2:lt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Du+300-ut(),10<n)){if(Tl(a,t,mt,!Sl),Zn(a,0,!0)!==0)break e;al=t,a.timeoutHandle=zd(Wf.bind(null,a,l,lt,Hu,Fc,t,mt,Fl,Ra,Sl,u,"Throttled",-0,0),n);break e}Wf(a,l,lt,Hu,Fc,t,mt,Fl,Ra,Sl,u,null,-0,0)}}break}while(!0);Lt(e)}function Wf(e,t,l,a,n,u,s,d,y,T,C,L,z,M){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-ut():(u&4194048)===u?Vf-ut():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,C,L,null,z,M)),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(!st(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-ct(n),s=1<<u;a[u]=-1,n&=~s}l!==0&&nr(e,l,t)}function Bu(){return(he&6)===0?(En(0),!1):!0}function ts(){if(ce!==null){if(ye===0)var e=ce.return;else e=ce,Vt=Gl=null,pc(e),Sa=null,nn=0,e=ce;for(;e!==null;)Af(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(),Ee=e,ce=l=Qt(e.current,null),re=t,ye=0,dt=null,Sl=!1,_a=ka(e,t),$c=!1,Ra=mt=Wc=Fl=jl=Me=0,lt=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-ct(a),u=1<<n;t|=e[n],a&=~u}return ll=t,au(),l}function Ff(e,t){ne=null,D.H=mn,t===ba||t===fu?(t=fo(),ye=3):t===uc?(t=fo(),ye=4):ye=t===Dc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,dt=t,ce===null&&(Me=1,Tu(e,bt(t,e.current)))}function If(){var e=ot.current;return e===null?!0:(re&4194048)===re?Nt===null:(re&62914560)===re||(re&536870912)!==0?e===Nt:!1}function Pf(){var e=D.H;return D.H=mn,e===null?mn:e}function ed(){var e=D.A;return D.A=pv,e}function wu(){Me=4,Sl||(re&4194048)!==re&&ot.current!==null||(_a=!0),(jl&134217727)===0&&(Fl&134217727)===0||Ee===null||Tl(Ee,re,mt,!1)}function ls(e,t,l){var a=he;he|=2;var n=Pf(),u=ed();(Ee!==e||re!==t)&&(Hu=null,Oa(e,t)),t=!1;var s=Me;e:do try{if(ye!==0&&ce!==null){var d=ce,y=dt;switch(ye){case 8:ts(),s=6;break e;case 3:case 2:case 9:case 6:ot.current===null&&(t=!0);var T=ye;if(ye=0,dt=null,Ca(e,d,y,T),l&&_a){s=0;break e}break;default:T=ye,ye=0,dt=null,Ca(e,d,y,T)}}bv(),s=Me;break}catch(C){Ff(e,C)}while(!0);return t&&e.shellSuspendCounter++,Vt=Gl=null,he=a,D.H=n,D.A=u,ce===null&&(Ee=null,re=0,au()),s}function bv(){for(;ce!==null;)td(ce)}function Sv(e,t){var l=he;he|=2;var a=Pf(),n=ed();Ee!==e||re!==t?(Hu=null,Uu=ut()+500,Oa(e,t)):_a=ka(e,t);e:do try{if(ye!==0&&ce!==null){t=ce;var u=dt;t:switch(ye){case 1:ye=0,dt=null,Ca(e,t,u,1);break;case 2:case 9:if(ro(u)){ye=0,dt=null,ld(t);break}t=function(){ye!==2&&ye!==9||Ee!==e||(ye=7),Lt(e)},u.then(t,t);break e;case 3:ye=7;break e;case 4:ye=5;break e;case 7:ro(u)?(ye=0,dt=null,ld(t)):(ye=0,dt=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?kd(s):d.stateNode.complete){ye=0,dt=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}}ye=0,dt=null,Ca(e,t,u,5);break;case 6:ye=0,dt=null,Ca(e,t,u,6);break;case 8:ts(),Me=6;break e;default:throw Error(r(462))}}jv();break}catch(C){Ff(e,C)}while(!0);return Vt=Gl=null,D.H=a,D.A=n,he=l,ce!==null?0:(Ee=null,re=0,au(),Me)}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:Af(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)){Me=1,Tu(e,bt(l,e.current)),ce=null;return}}catch(u){if(n!==null)throw ce=n,u;Me=1,Tu(e,bt(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=ot.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);Me===0&&(Me=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);Me=6,ce=null}function nd(e,t,l,a,n,u,s,d,y){e.cancelPendingCommit=null;do qu();while(qe!==0);if((he&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===Ee&&(ce=Ee=null,re=0),Ma=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,zv(kn,function(){return rd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,n=V.p,V.p=2,s=he,he|=4;try{vv(e,t,l)}finally{he=s,V.p=n,D.T=a}}qe=1,ud(),id(),cd()}}function ud(){if(qe===1){qe=0;var e=Nl,t=Ma,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var a=V.p;V.p=2;var n=he;he|=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,C=y.end;if(C===void 0&&(C=T),"selectionStart"in d)d.selectionStart=T,d.selectionEnd=Math.min(C,d.value.length);else{var L=d.ownerDocument||document,z=L&&L.defaultView||window;if(z.getSelection){var M=z.getSelection(),J=d.textContent.length,P=Math.min(y.start,J),Se=y.end===void 0?P:Math.min(y.end,J);!M.extend&&P>Se&&(s=Se,Se=P,P=s);var j=kr(d,P),g=kr(d,Se);if(j&&g&&(M.rangeCount!==1||M.anchorNode!==j.node||M.anchorOffset!==j.offset||M.focusNode!==g.node||M.focusOffset!==g.offset)){var N=L.createRange();N.setStart(j.node,j.offset),M.removeAllRanges(),P>Se?(M.addRange(N),M.extend(g.node,g.offset)):(N.setEnd(g.node,g.offset),M.addRange(N))}}}}for(L=[],M=d;M=M.parentNode;)M.nodeType===1&&L.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<L.length;d++){var H=L[d];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Fu=!!ms,hs=ms=null}finally{he=n,V.p=a,D.T=l}}e.current=t,qe=2}}function id(){if(qe===2){qe=0;var e=Nl,t=Ma,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var a=V.p;V.p=2;var n=he;he|=4;try{Uf(e,t.alternate,t)}finally{he=n,V.p=a,D.T=l}}qe=3}}function cd(){if(qe===4||qe===3){qe=0,Vm();var e=Nl,t=Ma,l=al,a=Kf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?qe=5:(qe=0,Ma=Nl=null,sd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(El=null),bi(l),t=t.stateNode,it&&typeof it.onCommitFiberRoot=="function")try{it.onCommitFiberRoot(Ya,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,n=V.p,V.p=2,D.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{D.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=D.T,n=V.p;try{V.p=32>l?32:l,D.T=null,l=Pc,Pc=null;var u=Nl,s=al;if(qe=0,Ma=Nl=null,al=0,(he&6)!==0)throw Error(r(331));var d=he;if(he|=4,Qf(u.current),kf(u,u.current,s,l),he=d,En(0,!1),it&&typeof it.onPostCommitFiberRoot=="function")try{it.onPostCommitFiberRoot(Ya,u)}catch{}return!0}finally{V.p=n,D.T=a,sd(e,t)}}function od(e,t,l){t=bt(l,t),t=Cc(e.stateNode,t,2),e=pl(e,t,2),e!==null&&(Ga(e,2),Lt(e))}function pe(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=bt(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,Ee===e&&(re&l)===l&&(Me===4||Me===3&&(re&62914560)===re&&300>ut()-Du?(he&2)===0&&Oa(e,0):Wc|=l,Ra===re&&(Ra=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 zv(e,t){return yi(e,t)}var Yu=null,Da=null,ns=!1,ku=!1,us=!1,zl=0;function Lt(e){e!==Da&&e.next===null&&(Da===null?Yu=Da=e:Da=Da.next=e),ku=!0,ns||(ns=!0,_v())}function En(e,t){if(!us&&ku){us=!0;do for(var l=!1,a=Yu;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-ct(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===Ee?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||ka(a,u)||(l=!0,vd(a,u));a=a.next}while(l);us=!1}}function Av(){dd()}function dd(){ku=ns=!1;var e=0;zl!==0&&Lv()&&(e=zl);for(var t=ut(),l=null,a=Yu;a!==null;){var n=a.next,u=md(a,t);u===0?(a.next=null,l===null?Yu=n:l.next=n,n===null&&(Da=l)):(l=a,(e!==0||(u&3)!==0)&&(ku=!0)),a=n}qe!==0&&qe!==5||En(e),zl!==0&&(zl=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-ct(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=Ee,l=re,l=Zn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ye===2||ye===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&pi(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ka(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=kn;break;case 268435456:l=lr;break;default:l=kn}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===Ee?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:($f(e,a,t),md(e,ut()),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(){Yv(function(){(he&6)!==0?yi(er,Av):dd()})}function is(){if(zl===0){var e=xa;e===0&&(e=Gn,Gn<<=1,(Gn&261888)===0&&(Gn=256)),zl=e}return zl}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 Rv(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=yd((n[Fe]||null).action),s=a.submitter;s&&(t=(t=s[Fe]||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(zl!==0){var y=s?pd(n,s):new FormData(n);zc(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),zc(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],Mv=ss.toLowerCase(),Ov=ss[0].toUpperCase()+ss.slice(1);_t(Mv,"on"+Ov)}_t(Vr,"onAnimationEnd"),_t(Kr,"onAnimationIteration"),_t(Jr,"onAnimationStart"),_t("dblclick","onDoubleClick"),_t("focusin","onFocus"),_t("focusout","onBlur"),_t(Kh,"onTransitionRun"),_t(Jh,"onTransitionStart"),_t($h,"onTransitionCancel"),_t($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(C){lu(C)}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(C){lu(C)}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,!Mi||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,C=_i(l),L=[];e:{var z=Wr.get(e);if(z!==void 0){var M=Pn,J=e;switch(e){case"keypress":if(Fn(l)===0)break e;case"keydown":case"keyup":M=Th;break;case"focusin":J="focus",M=Ui;break;case"focusout":J="blur",M=Ui;break;case"beforeblur":case"afterblur":M=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":M=Tr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=mh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=_h;break;case Vr:case Kr:case Jr:M=yh;break;case $r:M=Mh;break;case"scroll":case"scrollend":M=fh;break;case"wheel":M=Ch;break;case"copy":case"cut":case"paste":M=xh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=Ar;break;case"toggle":case"beforetoggle":M=Uh}var P=(t&4)!==0,Se=!P&&(e==="scroll"||e==="scrollend"),j=P?z!==null?z+"Capture":null:z;P=[];for(var g=T,N;g!==null;){var H=g;if(N=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||N===null||j===null||(H=Za(g,j),H!=null&&P.push(Tn(g,H,N))),Se)break;g=g.return}0<P.length&&(z=new M(z,J,null,l,C),L.push({event:z,listeners:P}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",z&&l!==Ai&&(J=l.relatedTarget||l.fromElement)&&(ta(J)||J[ea]))break e;if((M||z)&&(z=C.window===C?C:(z=C.ownerDocument)?z.defaultView||z.parentWindow:window,M?(J=l.relatedTarget||l.toElement,M=T,J=J?ta(J):null,J!==null&&(Se=v(J),P=J.tag,J!==Se||P!==5&&P!==27&&P!==6)&&(J=null)):(M=null,J=T),M!==J)){if(P=Tr,H="onMouseLeave",j="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(P=Ar,H="onPointerLeave",j="onPointerEnter",g="pointer"),Se=M==null?z:Qa(M),N=J==null?z:Qa(J),z=new P(H,g+"leave",M,l,C),z.target=Se,z.relatedTarget=N,H=null,ta(C)===T&&(P=new P(j,g+"enter",J,l,C),P.target=N,P.relatedTarget=Se,H=P),Se=H,M&&J)t:{for(P=Dv,j=M,g=J,N=0,H=j;H;H=P(H))N++;H=0;for(var I=g;I;I=P(I))H++;for(;0<N-H;)j=P(j),N--;for(;0<H-N;)g=P(g),H--;for(;N--;){if(j===g||g!==null&&j===g.alternate){P=j;break t}j=P(j),g=P(g)}P=null}else P=null;M!==null&&bd(L,z,M,P,!1),J!==null&&Se!==null&&bd(L,Se,J,P,!0)}}e:{if(z=T?Qa(T):window,M=z.nodeName&&z.nodeName.toLowerCase(),M==="select"||M==="input"&&z.type==="file")var de=Hr;else if(Dr(z))if(Br)de=Qh;else{de=Gh;var F=kh}else M=z.nodeName,!M||M.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?T&&zi(T.elementType)&&(de=Hr):de=Xh;if(de&&(de=de(e,T))){Ur(L,de,l,C);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,Yi=T,Pa=null);break;case"focusout":Pa=Yi=oa=null;break;case"mousedown":ki=!0;break;case"contextmenu":case"mouseup":case"dragend":ki=!1,Qr(L,l,C);break;case"selectionchange":if(Vh)break;case"keydown":case"keyup":Qr(L,l,C)}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=C,Oi="value"in ol?ol.value:ol.textContent,ra=!0)),F=Xu(T,oe),0<F.length&&(oe=new zr(oe,e,null,l,C),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 zr("onBeforeInput","beforeinput",null,l,C),L.push({event:F,listeners:oe}),F.data=ue)),Rv(L,e,T,l,C)}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 be(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"&&be(e,t,"name",n.name,n,null),be(e,t,"formEncType",n.formEncType,n,null),be(e,t,"formMethod",n.formMethod,n,null),be(e,t,"formTarget",n.formTarget,n,null)):(be(e,t,"encType",n.encType,n,null),be(e,t,"method",n.method,n,null),be(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":kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":kt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":kt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":kt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":kt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":kt(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[Fe]||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:be(e,t,u,s,l,null)}}n&&be(e,t,"srcSet",l.srcSet,l,null),a&&be(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 C=l[a];if(C!=null)switch(a){case"name":n=C;break;case"type":s=C;break;case"checked":y=C;break;case"defaultChecked":T=C;break;case"value":u=C;break;case"defaultValue":d=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(137,t));break;default:be(e,t,a,C,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:be(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:be(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:be(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:be(e,t,T,a,l,null)}return;default:if(zi(t)){for(C in l)l.hasOwnProperty(C)&&(a=l[C],a!==void 0&&ds(e,t,C,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&be(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,C=null;for(M in l){var L=l[M];if(l.hasOwnProperty(M)&&L!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":y=L;default:a.hasOwnProperty(M)||be(e,t,M,null,a,L)}}for(var z in a){var M=a[z];if(L=l[z],a.hasOwnProperty(z)&&(M!=null||L!=null))switch(z){case"type":u=M;break;case"name":n=M;break;case"checked":T=M;break;case"defaultChecked":C=M;break;case"value":s=M;break;case"defaultValue":d=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,t));break;default:M!==L&&be(e,t,z,M,a,L)}}Ni(e,s,d,y,T,C,u,n);return;case"select":M=s=d=z=null;for(u in l)if(y=l[u],l.hasOwnProperty(u)&&y!=null)switch(u){case"value":break;case"multiple":M=y;default:a.hasOwnProperty(u)||be(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&&be(e,t,n,u,a,y)}t=d,l=s,a=M,z!=null?ua(e,!!l,z,!1):!!a!=!!l&&(t!=null?ua(e,!!l,t,!0):ua(e,!!l,l?[]:"",!1));return;case"textarea":M=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:be(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":M=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&be(e,t,s,n,a,u)}pr(e,z,M);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:be(e,t,J,null,a,z)}for(y in a)if(z=a[y],M=l[y],a.hasOwnProperty(y)&&z!==M&&(z!=null||M!=null))switch(y){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:be(e,t,y,z,a,M)}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 P in l)z=l[P],l.hasOwnProperty(P)&&z!=null&&!a.hasOwnProperty(P)&&be(e,t,P,null,a,z);for(T in a)if(z=a[T],M=l[T],a.hasOwnProperty(T)&&z!==M&&(z!=null||M!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:be(e,t,T,z,a,M)}return;default:if(zi(t)){for(var Se in l)z=l[Se],l.hasOwnProperty(Se)&&z!==void 0&&!a.hasOwnProperty(Se)&&ds(e,t,Se,void 0,a,z);for(C in a)z=a[C],M=l[C],!a.hasOwnProperty(C)||z===M||z===void 0&&M===void 0||ds(e,t,C,z,a,M);return}}for(var j in l)z=l[j],l.hasOwnProperty(j)&&z!=null&&!a.hasOwnProperty(j)&&be(e,t,j,null,a,z);for(L in a)z=a[L],M=l[L],!a.hasOwnProperty(L)||z===M||z==null&&M==null||be(e,t,L,z,a,M)}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 C=y.transferSize,L=y.initiatorType;C&&Ed(L)&&(y=y.responseEnd,s+=C*(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 zd=typeof setTimeout=="function"?setTimeout:void 0,qv=typeof clearTimeout=="function"?clearTimeout:void 0,Ad=typeof Promise=="function"?Promise:void 0,Yv=typeof queueMicrotask=="function"?queueMicrotask:typeof Ad<"u"?function(e){return Ad.resolve(null).then(e).catch(kv)}:zd;function kv(e){setTimeout(function(){throw e})}function Al(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")zn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,zn(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"&&zn(e.ownerDocument.body);l=n}while(l);wa(t)}function Rd(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=Tt(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=Tt(e.nextSibling),e===null))return null;return e}function Md(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Tt(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 Tt(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 Tt(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 zn(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=xt(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),Ye(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="'+xt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+xt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+xt(l.imageSizes)+'"]')):n+='[href="'+xt(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(An(u))||t==="script"&&a.querySelector(_n(u))||(t=a.createElement("link"),Ve(t,"link",e),Ye(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="'+xt(a)+'"][href="'+xt(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),Ye(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(An(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");Ye(y),Ve(y,"link",e),y._p=new Promise(function(T,C){y.onload=T,y.onerror=C}),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"),Ye(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"),Ye(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(An(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="'+xt(e)+'"'}function An(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),Ye(t),e.head.appendChild(t))}function Ba(e){return'[src="'+xt(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~="'+xt(l.href)+'"]');if(a)return t.instance=a,Ye(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"),Ye(a),Ve(a,"style",n),Vu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ha(l.href);var u=e.querySelector(An(n));if(u)return t.state.loading|=4,t.instance=u,Ye(u),u;a=wd(l),(n=zt.get(n))&&Ss(a,n),u=(e.ownerDocument||e).createElement("link"),Ye(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,Ye(n),n):(a=l,(n=zt.get(u))&&(a=p({},l),js(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ye(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 Yd(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 kd(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(An(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,Ye(u);return}u=t.ownerDocument||t,a=wd(a),(n=zt.get(n))&&Ss(a,n),u=u.createElement("link"),Ye(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 Rn={$$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,C,L){return e=new uy(e,t,l,s,y,T,C,L,d),t=1,u===!0&&(t|=24),u=rt(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&&(at(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&&at(t,e,67108864),Ns(e,67108864)}}function Kd(e){if(e.tag===13||e.tag===31){var t=ht();t=gi(t);var l=ql(e,t);l!==null&&at(l,e,t),Ns(e,t)}}var Fu=!0;function iy(e,t,l,a){var n=D.T;D.T=null;var u=V.p;try{V.p=2,Ts(e,t,l,a)}finally{V.p=u,D.T=n}}function cy(e,t,l,a){var n=D.T;D.T=null;var u=V.p;try{V.p=8,Ts(e,t,l,a)}finally{V.p=u,D.T=n}}function Ts(e,t,l,a){if(Fu){var n=zs(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-ct(s);d.entanglements[1]|=y,s&=~y}Lt(u),(he&6)===0&&(Uu=ut()+500,En(0))}}break;case 31:case 13:d=ql(u,2),d!==null&&at(d,u,2),Bu(),Ns(u,2)}if(u=zs(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 zs(e){return e=_i(e),As(e)}var Iu=null;function As(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=A(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 kn:case Jm:return 32;case lr:return 268435456;default:return 32}default:return 32}}var _s=!1,_l=null,Rl=null,Ml=null,Mn=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":Rl=null;break;case"mouseover":case"mouseout":Ml=null;break;case"pointerover":case"pointerout":Mn.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 Rl=Cn(Rl,e,t,l,a,n),!0;case"mouseover":return Ml=Cn(Ml,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Mn.set(u,Cn(Mn.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=A(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=zs(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Ai=a,l.target.dispatchEvent(a),Ai=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),Rl!==null&&Pu(Rl)&&(Rl=null),Ml!==null&&Pu(Ml)&&(Ml=null),Mn.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(As(a||l)===null)continue;break}var u=la(l);u!==null&&(e.splice(t,3),t-=3,zc(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),Rl!==null&&ei(Rl,e),Ml!==null&&ei(Ml,e),Mn.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[Fe]||null;if(typeof u=="function")s||Id(l);else if(s){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,s=u[Fe]||null)d=s.formAction;else if(As(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 Rs(e){this._internalRoot=e}li.prototype.render=Rs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=ht();Qd(l,a,e,t,null,null)},li.prototype.unmount=Rs.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?R(e):null,e=e===null?null:e.stateNode,e};var fy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ai=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ai.isDisabled&&ai.supportsFiber)try{Ya=ai.inject(fy),it=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 Rs(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=ht(),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:A="",hash:S=""}=Pl(m.location.hash.substring(1));return!x.startsWith("/")&&!x.startsWith(".")&&(x="/"+x),Gs("",{pathname:x,search:A,hash:S},v.state&&v.state.usr||null,v.state&&v.state.key||"default")}function f(m,v){let x=m.document.querySelector("base"),A="";if(x&&x.getAttribute("href")){let S=m.location.href,h=S.indexOf("#");A=h===-1?S:S.slice(0,h)}return A+"#"+(typeof v=="string"?v:Bn(v))}function r(m,v){Ct(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 Ct(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,A="POP",S=null,h=R();h==null&&(h=0,x.replaceState({...x.state,idx:h},""));function R(){return(x.state||{idx:null}).idx}function p(){A="POP";let G=R(),U=G==null?null:G-h;h=G,S&&S({action:A,location:X.location,delta:U})}function B(G,U){A="PUSH";let $=dm(G)?G:Gs(X.location,G,U);f&&f($,G),h=R()+1;let Z=mm($,h),O=X.createHref($.unstable_mask||$);try{x.pushState(Z,"",O)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;m.location.assign(O)}v&&S&&S({action:A,location:X.location,delta:1})}function Q(G,U){A="REPLACE";let $=dm(G)?G:Gs(X.location,G,U);f&&f($,G),h=R();let Z=mm($,h),O=X.createHref($.unstable_mask||$);x.replaceState(Z,"",O),v&&S&&S({action:A,location:X.location,delta:0})}function Y(G){return zy(G)}let X={get action(){return A},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:B,replace:Q,go(G){return x.go(G)}};return X}function zy(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 Ay(i,o,f,!1)}function Ay(i,o,f,r){let m=typeof o=="string"?Pl(o):o,v=il(m.pathname||"/",f);if(v==null)return null;let x=zm(i);_y(x);let A=null;for(let S=0;A==null&&S<x.length;++S){let h=qy(v);A=wy(x[S],h,r)}return A}function zm(i,o=[],f=[],r="",m=!1){let v=(x,A,S=m,h)=>{let R={relativePath:h===void 0?x.path||"":h,caseSensitive:x.caseSensitive===!0,childrenIndex:A,route:x};if(R.relativePath.startsWith("/")){if(!R.relativePath.startsWith(r)&&S)return;_e(R.relativePath.startsWith(r),`Absolute route path "${R.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),R.relativePath=R.relativePath.slice(r.length)}let p=qt([r,R.relativePath]),B=f.concat(R);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}".`),zm(x.children,o,B,p,S)),!(x.path==null&&!x.index)&&o.push({path:p,score:Hy(p,x.index),routesMeta:B})};return i.forEach((x,A)=>{var S;if(x.path===""||!((S=x.path)!=null&&S.includes("?")))v(x,A);else for(let h of Am(x.path))v(x,A,!0,h)}),o}function Am(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=Am(r.join("/")),A=[];return A.push(...x.map(S=>S===""?v:[v,S].join("/"))),m&&A.push(...x),A.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 Ry=/^:[\w-]+$/,My=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+(Ry.test(v)?My: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 A=0;A<r.length;++A){let S=r[A],h=A===r.length-1,R=v==="/"?o:o.slice(v.length)||"/",p=si({path:S.relativePath,caseSensitive:S.caseSensitive,end:h},R),B=S.route;if(!p&&h&&f&&!r[r.length-1].route.index&&(p=si({path:S.relativePath,caseSensitive:S.caseSensitive,end:!1},R)),!p)return null;Object.assign(m,p.params),x.push({params:m,pathname:qt([v,p.pathname]),pathnameBase:Xy(qt([v,p.pathnameBase])),route:B}),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"),A=m.slice(1);return{params:r.reduce((h,{paramName:R,isOptional:p},B)=>{if(R==="*"){let Y=A[B]||"";x=v.slice(0,v.length-Y.length).replace(/(.)\/+$/,"$1")}const Q=A[B];return p&&!Q?h[R]=void 0:h[R]=(Q||"").replace(/%2F/g,"/"),h},{}),pathname:v,pathnameBase:x,pattern:i}}function Ly(i,o=!1,f=!0){Ct(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,A,S,h,R)=>{if(r.push({paramName:A,isOptional:S!=null}),S){let p=R.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 Ct(!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 Yy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ky(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,A;if(x==null)A=f;else{let p=o.length-1;if(!r&&x.startsWith("..")){let B=x.split("/");for(;B[0]==="..";)B.shift(),p-=1;m.pathname=B.join("/")}A=p>=0?o[p]:"/"}let S=ky(m,A),h=x&&x!=="/"&&x.endsWith("/"),R=(v||x===".")&&f.endsWith("/");return!S.pathname.endsWith("/")&&(h||R)&&(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 Rm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Mm(i,o){let f=i;if(typeof f!="string"||!Yy.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let r=f,m=!1;if(Rm)try{let v=new URL(window.location.href),x=f.startsWith("//")?new URL(v.protocol+f):new URL(f),A=il(x.pathname,o);x.origin===v.origin&&A!=null?f=A+x.search+x.hash:m=!0}catch{Ct(!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 At=E.createContext(null);At.displayName="Navigation";var wn=E.createContext(null);wn.displayName="Location";var Yt=E.createContext({outlet:null,matches:[],isDataRoute:!1});Yt.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(At),{hash:m,pathname:v,search:x}=qn(i,{relative:o}),A=v;return f!=="/"&&(A=v==="/"?f:qt([f,v])),r.createHref({pathname:A,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(At).static||E.useLayoutEffect(i)}function np(){let{isDataRoute:i}=E.useContext(Yt);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(At),{matches:r}=E.useContext(Yt),{pathname:m}=cl(),v=JSON.stringify(_m(r)),x=E.useRef(!1);return Hm(()=>{x.current=!0}),E.useCallback((S,h={})=>{if(Ct(x.current,Um),!x.current)return;if(typeof S=="number"){f.go(S);return}let R=Zs(S,JSON.parse(v),m,h.relative==="path");i==null&&o!=="/"&&(R.pathname=R.pathname==="/"?o:qt([o,R.pathname])),(h.replace?f.replace:f.push)(R,h.state,h)},[o,f,v,m,i])}E.createContext(null);function oi(){let{matches:i}=E.useContext(Yt),o=i[i.length-1];return o?o.params:{}}function qn(i,{relative:o}={}){let{matches:f}=E.useContext(Yt),{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(At),{matches:m}=E.useContext(Yt),v=m[m.length-1],x=v?v.params:{},A=v?v.pathname:"/",S=v?v.pathnameBase:"/",h=v&&v.route;{let U=h&&h.path||"";Lm(A,!h||U.endsWith("*")||U.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${A}" (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 R=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=R;let B=p.pathname||"/",Q=B;if(S!=="/"){let U=S.replace(/^\//,"").split("/");Q="/"+B.replace(/^\//,"").split("/").slice(U.length).join("/")}let Y=Tm(i,{pathname:Q});Ct(h||Y!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),Ct(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(Yt.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(At);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=Mm(r.location,f);if(Rm&&!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(Yt.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 R=m.findIndex(p=>p.route.id&&(v==null?void 0:v[p.route.id])!==void 0);_e(R>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(v).join(",")}`),m=m.slice(0,Math.min(m.length,R+1))}let x=!1,A=-1;if(f&&r){x=r.renderFallback;for(let R=0;R<m.length;R++){let p=m[R];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(A=R),p.route.id){let{loaderData:B,errors:Q}=r,Y=p.route.loader&&!B.hasOwnProperty(p.route.id)&&(!Q||Q[p.route.id]===void 0);if(p.route.lazy||Y){f.isStatic&&(x=!0),A>=0?m=m.slice(0,A+1):m=[m[0]];break}}}}let S=f==null?void 0:f.onError,h=r&&S?(R,p)=>{var B,Q;S(R,{location:r.location,params:((Q=(B=r.matches)==null?void 0:B[0])==null?void 0:Q.params)??{},unstable_pattern:Jy(r.matches),errorInfo:p})}:void 0;return m.reduceRight((R,p,B)=>{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&&(A<0&&B===0?(Lm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Y=!0,G=null):A===B&&(Y=!0,G=p.route.hydrateFallbackElement||null)));let U=o.concat(m.slice(0,B+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=R,E.createElement(op,{match:p,routeContext:{outlet:R,matches:U,isDataRoute:r!=null},children:Z})};return r&&(p.route.ErrorBoundary||p.route.errorElement||B===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(Yt);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={})=>{Ct(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,Ct(!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 A=i.replace(/^\/*/,"/"),S=E.useMemo(()=>({basename:A,navigator:m,static:v,unstable_useTransitions:x,future:{}}),[A,m,v,x]);typeof f=="string"&&(f=Pl(f));let{pathname:h="/",search:R="",hash:p="",state:B=null,key:Q="default",unstable_mask:Y}=f,X=E.useMemo(()=>{let G=il(h,A);return G==null?null:{location:{pathname:G,search:R,hash:p,state:B,key:Q,unstable_mask:Y},navigationType:r}},[A,h,R,p,B,Q,r,Y]);return Ct(X!=null,`<Router basename="${A}"> is not able to match the URL "${h}${R}${p}" because it does not start with the basename, so the <Router> won't render anything.`),X==null?null:E.createElement(At.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 zp(){if(ni===null)try{new FormData(document.createElement("form"),0),ni=!1}catch{ni=!0}return ni}var Ap=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ls(i){return i!=null&&!Ap.has(i)?(Ct(!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 A=i.getAttribute("action");r=A?il(A,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 A=i.form;if(A==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let S=i.getAttribute("formaction")||A.getAttribute("action");if(r=S?il(S,o):null,f=i.getAttribute("formmethod")||A.getAttribute("method")||ii,m=Ls(i.getAttribute("formenctype"))||Ls(A.getAttribute("enctype"))||ci,v=new FormData(A,i),!zp()){let{name:h,type:R,value:p}=i;if(R==="image"){let B=h?`${h}.`:"";v.append(`${B}x`,"0"),v.append(`${B}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 Rp(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 Mp(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 Mp(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,A=(S,h)=>{var R;return f[h].pathname!==S.pathname||((R=f[h].route.path)==null?void 0:R.endsWith("*"))&&f[h].params["*"]!==S.params["*"]};return v==="assets"?o.filter((S,h)=>x(S,h)||A(S,h)):v==="data"?o.filter((S,h)=>{var p;let R=r.routes[S.route.id];if(!R||!R.hasLoader)return!1;if(x(S,h)||A(S,h))return!0;if(S.route.shouldRevalidate){let B=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 B=="boolean")return B}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 Ym(){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:A,onBlur:S,onMouseEnter:h,onMouseLeave:R,onTouchStart:p}=o,B=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 B.current&&G.observe(B.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,B,{}]:[v,B,{onFocus:Hn(A,Q),onBlur:Hn(S,Y),onMouseEnter:Hn(h,Q),onMouseLeave:Hn(R,Y),onTouchStart:Hn(p,Q)}]:[!1,B,{}]}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(kp,{page:i,matches:r,...o}):null}function Yp(i){let{manifest:o,routeModules:f}=Ym(),[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 kp({page:i,matches:o,...f}){let r=cl(),{future:m,manifest:v,routeModules:x}=Ym(),{basename:A}=qm(),{loaderData:S,matches:h}=wp(),R=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]),B=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||(!R.some(_=>_.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=Rp(i,A,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]},[A,m.unstable_trailingSlashAwareDataRequests,S,r,v,R,o,i,x]),Q=E.useMemo(()=>Dp(p,v),[p,v]),Y=Yp(p);return E.createElement(E.Fragment,null,B.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,A]=E.useState({action:v.action,location:v.location}),S=E.useCallback(h=>{f===!1?A(h):E.startTransition(()=>A(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 km=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ot=E.forwardRef(function({onClick:o,discover:f="render",prefetch:r="none",relative:m,reloadDocument:v,replace:x,unstable_mask:A,state:S,target:h,to:R,preventScrollReset:p,viewTransition:B,unstable_defaultShouldRevalidate:Q,...Y},X){let{basename:G,navigator:U,unstable_useTransitions:$}=E.useContext(At),Z=typeof R=="string"&&km.test(R),O=Mm(R,G);R=O.to;let _=ap(R,{relative:m}),w=cl(),k=null;if(A){let Ue=Zs(A,[],w.unstable_mask?w.unstable_mask.pathname:"/",!0);G!=="/"&&(Ue.pathname=Ue.pathname==="/"?G:qt([G,Ue.pathname])),k=U.createHref(Ue)}let[ee,Ne,Dt]=Lp(r,Y),vt=Jp(R,{replace:x,unstable_mask:A,state:S,target:h,preventScrollReset:p,relative:m,viewTransition:B,unstable_defaultShouldRevalidate:Q,unstable_useTransitions:$});function Ke(Ue){o&&o(Ue),Ue.defaultPrevented||vt(Ue)}let Ut=!(O.isExternal||v),yt=E.createElement("a",{...Y,...Dt,href:(Ut?k:void 0)||O.absoluteURL||_,onClick:Ut?Ke:o,ref:Gp(X,Ne),target:h,"data-discover":!Z&&f==="render"?"true":void 0});return ee&&!Z?E.createElement(E.Fragment,null,yt,E.createElement(qp,{page:_})):yt});Ot.displayName="Link";var Zp=E.forwardRef(function({"aria-current":o="page",caseSensitive:f=!1,className:r="",end:m=!1,style:v,to:x,viewTransition:A,children:S,...h},R){let p=qn(x,{relative:h.relative}),B=cl(),Q=E.useContext(ri),{navigator:Y,basename:X}=E.useContext(At),G=Q!=null&&Pp(p)&&A===!0,U=Y.encodeLocation?Y.encodeLocation(p).pathname:p.pathname,$=B.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 _=$===U||!m&&$.startsWith(U)&&$.charAt(O)==="/",w=Z!=null&&(Z===U||!m&&Z.startsWith(U)&&Z.charAt(U.length)==="/"),k={isActive:_,isPending:w,isTransitioning:G},ee=_?o:void 0,Ne;typeof r=="function"?Ne=r(k):Ne=[r,_?"active":null,w?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let Dt=typeof v=="function"?v(k):v;return E.createElement(Ot,{...h,"aria-current":ee,className:Ne,ref:R,style:Dt,to:x,viewTransition:A},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:A,onSubmit:S,relative:h,preventScrollReset:R,viewTransition:p,unstable_defaultShouldRevalidate:B,...Q},Y)=>{let{unstable_useTransitions:X}=E.useContext(At),G=Fp(),U=Ip(A,{relative:h}),$=x.toLowerCase()==="get"?"get":"post",Z=typeof A=="string"&&km.test(A),O=_=>{if(S&&S(_),_.defaultPrevented)return;_.preventDefault();let w=_.nativeEvent.submitter,k=(w==null?void 0:w.getAttribute("formmethod"))||x,ee=()=>G(w||_.currentTarget,{fetcherKey:o,method:k,navigate:f,replace:m,state:v,relative:h,preventScrollReset:R,viewTransition:p,unstable_defaultShouldRevalidate:B});X&&f!==!1?E.startTransition(()=>ee()):ee()};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:A,unstable_defaultShouldRevalidate:S,unstable_useTransitions:h}={}){let R=np(),p=cl(),B=qn(i,{relative:x});return E.useCallback(Q=>{if(Tp(Q,o)){Q.preventDefault();let Y=f!==void 0?f:Bn(p)===Bn(B),X=()=>R(i,{replace:Y,unstable_mask:r,state:m,preventScrollReset:v,relative:x,viewTransition:A,unstable_defaultShouldRevalidate:S});h?E.startTransition(()=>X()):X()}},[p,R,B,f,r,m,o,i,v,x,A,S,h])}var $p=0,Wp=()=>`__${String(++$p)}__`;function Fp(){let{router:i}=Gm("useSubmit"),{basename:o}=E.useContext(At),f=vp(),r=i.fetch,m=i.navigate;return E.useCallback(async(v,x={})=>{let{action:A,method:S,encType:h,formData:R,body:p}=_p(v,o);if(x.navigate===!1){let B=x.fetcherKey||Wp();await r(B,f,x.action||A,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:R,body:p,formMethod:x.method||S,formEncType:x.encType||h,flushSync:x.flushSync})}else await m(x.action||A,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:R,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(At),r=E.useContext(Yt);_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 A=new URLSearchParams(v.search),S=A.getAll("index");if(S.some(R=>R==="")){A.delete("index"),S.filter(p=>p).forEach(p=>A.append("index",p));let R=A.toString();v.search=R?`?${R}`:""}}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 nt={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(()=>{nt.getSkills().then(o).catch(A=>v(A.message)).finally(()=>r(!1))},[]);const x=i.reduce((A,S)=>{var h;return(A[h=S.plugin]||(A[h]=[])).push(S),A},{});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(([A,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:A}),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 R=xm[h.benchmarkStatus]||xm.missing;return c.jsxs(Ot,{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:R.bg,color:R.text},children:[c.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:R.dot}}),R.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}`)})})]},A))}),!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,A]=E.useState(null),[S,h]=E.useState(!1),[R,p]=E.useState(null),[B,Q]=E.useState(!1);E.useEffect(()=>{!i||!o||nt.getEvals(i,o).then(r).catch(_=>A(_.message)).finally(()=>v(!1))},[i,o]);async function Y(_){if(!(!i||!o)){h(!0);try{const w=await nt.saveEvals(i,o,_);r(w),A(null)}catch(w){A(w.message)}finally{h(!1)}}}function X(_){f&&(Y({...f,evals:[...f.evals,_]}),Q(!1))}function G(_){f&&(Y({...f,evals:f.evals.map(w=>w.id===_.id?_:w)}),p(null))}function U(_){!f||!confirm("Delete this eval case?")||Y({...f,evals:f.evals.filter(w=>w.id!==_)})}function $(_){if(!f)return;const w=f.evals.find(k=>k.id===_);w&&G({...w,assertions:[...w.assertions,{id:`assert-${Date.now()}`,text:"New assertion",type:"boolean"}]})}function Z(_,w,k){if(!f)return;const ee=f.evals.find(Ne=>Ne.id===_);ee&&G({...ee,assertions:ee.assertions.map(Ne=>Ne.id===w?{...Ne,text:k}:Ne)})}function O(_,w){if(!f)return;const k=f.evals.find(ee=>ee.id===_);k&&G({...k,assertions:k.assertions.filter(ee=>ee.id!==w)})}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(Ot,{to:"/",className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:_=>{_.currentTarget.style.color="var(--text-primary)"},onMouseLeave:_=>{_.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(Ot,{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(Ot,{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(Ot,{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(_=>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:["#",_.id]}),c.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:_.name})]}),c.jsx("p",{className:"text-[12px] mt-1.5 line-clamp-2",style:{color:"var(--text-tertiary)"},children:_.prompt})]}),c.jsxs("div",{className:"flex gap-1 ml-3",children:[c.jsx("button",{onClick:()=>{p(_),Q(!0)},className:"btn btn-ghost text-[12px]",children:"Edit"}),c.jsx("button",{onClick:()=>U(_.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:_.assertions.length})]}),c.jsx("div",{className:"space-y-1.5",children:_.assertions.map(w=>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:w.id}),c.jsx("input",{className:"input-field flex-1 text-[12px] py-1.5",style:{background:"transparent",border:"1px solid transparent",borderRadius:"6px"},value:w.text,onChange:k=>Z(_.id,w.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(_.id,w.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"})]})})]},w.id))}),c.jsxs("button",{onClick:()=>$(_.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"]})]})]},_.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:_=>{_.currentTarget.style.borderColor="var(--accent)",_.currentTarget.style.color="var(--accent)",_.currentTarget.style.background="var(--accent-muted)"},onMouseLeave:_=>{_.currentTarget.style.borderColor="var(--border-default)",_.currentTarget.style.color="var(--text-tertiary)",_.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"})]}),B&&c.jsx(a1,{evalCase:R,skillName:(f==null?void 0:f.skill_name)||o||"",existingIds:(f==null?void 0:f.evals.map(_=>_.id))||[],onSave:_=>R?G(_):X(_),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)||""),[A,S]=E.useState((i==null?void 0:i.prompt)||""),[h,R]=E.useState((i==null?void 0:i.expected_output)||""),[p,B]=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:A,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:A,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=>R(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},B(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},B(U)},placeholder:"Assertion text"}),c.jsx("button",{type:"button",onClick:()=>B(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:()=>B([...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,A]=E.useState(null),S=E.useRef(null),h=E.useCallback(async(p,B)=>{o([]),r(!0),v(!1),A(null);const Q=new AbortController;S.current=Q;try{const Y=await fetch(p,{method:"POST",headers:{"Content-Type":"application/json"},body:B?JSON.stringify(B):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 _=U.split(`
|
|
61
|
+
`);U=_.pop()||"";for(const w of _)if(w.startsWith("event: "))$=w.slice(7).trim();else if(w.startsWith("data: ")){try{const k=JSON.parse(w.slice(6)),ee={event:$,data:k};$==="done"?(v(!0),o(Ne=>[...Ne,ee])):o(Ne=>[...Ne,ee])}catch{}$=""}}}catch(Y){Y.name!=="AbortError"&&A(Y.message)}finally{r(!1),S.current=null}},[]),R=E.useCallback(()=>{var p;(p=S.current)==null||p.abort()},[]);return{events:i,running:f,done:m,error:x,start:h,stop:R}}function n1(){const{plugin:i,skill:o}=oi(),{events:f,running:r,done:m,error:v,start:x}=Fs(),[A,S]=E.useState(new Set),[h,R]=E.useState(null),[p,B]=E.useState(null),[Q,Y]=E.useState(null);E.useEffect(()=>{nt.getConfig().then(_=>R(_.model)).catch(()=>{}),i&&o&&nt.getEvals(i,o).then(B).catch(()=>{})},[i,o]);function X(_){nt.getConfig().then(k=>R(k.model)).catch(()=>{}),S(new Set),Y((_==null?void 0:_.length)===1?_[0]:"all");const w=_?{eval_ids:_}:void 0;x(`/api/skills/${i}/${o}/benchmark`,w)}function G(_){S(w=>{const k=new Set(w);return k.has(_)?k.delete(_):k.add(_),k})}const U=new Map;for(const _ of f){if(_.event==="case_start"){const w=_.data;U.has(w.eval_id)||U.set(w.eval_id,{name:w.eval_name,assertions:[]})}if(_.event==="output_ready"){const w=_.data,k=U.get(w.eval_id)||{assertions:[]};k.output=w.output,U.set(w.eval_id,k)}if(_.event==="assertion_result"){const w=_.data,k=U.get(w.eval_id)||{assertions:[]};k.assertions.find(ee=>ee.assertion_id===w.assertion_id)||(k.assertions.push(w),U.set(w.eval_id,k))}if(_.event==="case_complete"){const w=_.data,k=U.get(w.eval_id)||{assertions:[]};k.status=w.status,k.passRate=w.pass_rate,k.errorMessage=w.error_message||void 0,U.set(w.eval_id,k)}}const $=f.find(_=>_.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(Ot,{to:`/skills/${i}/${o}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:_=>{_.currentTarget.style.color="var(--text-primary)"},onMouseLeave:_=>{_.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(_=>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:["#",_.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:_.name}),c.jsxs("div",{className:"text-[11px] truncate mt-0.5",style:{color:"var(--text-tertiary)"},children:[_.assertions.length," assertion",_.assertions.length!==1?"s":""]})]}),c.jsxs("button",{onClick:()=>X([_.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"]})]},_.id))]}),U.size>0&&c.jsxs("div",{className:"space-y-3 stagger-children",children:[Array.from(U.entries()).map(([_,w])=>{const k=A.has(_);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:["#",_]}),c.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:w.name||"Eval Case"})]}),w.status?c.jsxs("span",{className:"pill",style:{background:w.status==="pass"?"var(--green-muted)":w.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:w.status==="pass"?"var(--green)":w.status==="error"?"var(--yellow)":"var(--red)"},children:[c.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:w.status==="pass"?"var(--green)":w.status==="error"?"var(--yellow)":"var(--red)"}}),w.status," ",w.passRate!==void 0?`${Math.round(w.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..."]})]}),w.errorMessage&&c.jsx("div",{className:"mb-3 p-3 rounded-lg text-[12px]",style:{background:"var(--red-muted)",color:"var(--red)"},children:w.errorMessage}),c.jsx("div",{className:"space-y-2",children:w.assertions.map(ee=>c.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg animate-fade-in",style:{background:ee.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:ee.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:ee.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:ee.text||ee.assertion_id}),c.jsx("div",{className:"text-[12px] mt-0.5",style:{color:"var(--text-secondary)"},children:ee.reasoning})]})]},ee.assertion_id))})]}),w.output&&c.jsxs(c.Fragment,{children:[c.jsxs("button",{onClick:()=>G(_),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:ee=>{ee.currentTarget.style.background="var(--surface-3)"},onMouseLeave:ee=>{ee.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:w.output})]})]})]},_)}),m&&O!==null&&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"}),h&&c.jsx("div",{className:"text-[11px] mt-1 font-mono",style:{color:"var(--text-tertiary)"},children:h})]})]}),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(),[A,S]=E.useState(new Set),[h,R]=E.useState(null);E.useEffect(()=>{nt.getConfig().then(O=>R(O.model)).catch(()=>{})},[]);function p(){S(new Set),x(`/api/skills/${i}/${o}/compare`)}function B(O){S(_=>{const w=new Set(_);return w.has(O)?w.delete(O):w.add(O),w})}const Q=[],Y=[],X=[];for(const O of f)if(O.event==="outputs_ready"){const _=O.data;Q.find(w=>w.eval_id===_.eval_id)||Q.push(_)}else if(O.event==="case_error"){const _=O.data;Y.find(w=>w.eval_id===_.eval_id)||Y.push(_)}else if(O.event==="case_start"){const _=O.data;X.find(w=>w.eval_id===_.eval_id)||X.push(_)}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(Ot,{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),w=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:w})]}),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:()=>B(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:ee=>{ee.currentTarget.style.background="var(--surface-3)"},onMouseLeave:ee=>{ee.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:_?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:c.jsx("polyline",{points:"6 9 12 15 18 9"})}),_?"Hide LLM Outputs":"Show Actual LLM Outputs"]}),_&&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(Ys,{label:"Skill Avg",value:Z.comparison.skillRubricAvg.toFixed(1)}),c.jsx(Ys,{label:"Baseline Avg",value:Z.comparison.baselineRubricAvg.toFixed(1)}),c.jsx(Ys,{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 Ys({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,A]=E.useState(null),[S,h]=E.useState(null);E.useEffect(()=>{!i||!o||nt.getHistory(i,o).then(r).catch(()=>{}).finally(()=>v(!1))},[i,o]);async function R(p){if(!(!i||!o)){h(p);try{const B=await nt.getHistoryEntry(i,o,p);A(B)}catch{A(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(Ot,{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 B=S===p.timestamp,Q=p.passRate>=.8?"var(--green)":p.passRate>=.5?"var(--yellow)":"var(--red)";return c.jsxs("button",{onClick:()=>R(p.timestamp),className:"w-full text-left p-3.5 rounded-xl transition-all duration-150",style:{background:B?"var(--accent-muted)":"var(--surface-1)",border:B?"1px solid var(--border-active)":"1px solid var(--border-subtle)"},onMouseEnter:Y=>{B||(Y.currentTarget.style.borderColor="var(--border-hover)")},onMouseLeave:Y=>{B||(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(B=>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:B.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:B.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:B.text}),c.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-tertiary)"},children:B.reasoning})]})]},B.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,A]=E.useState(""),[S,h]=E.useState(!1),{events:R,running:p,error:B,start:Q}=Fs();E.useEffect(()=>{nt.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 _=x.trim().split(`
|
|
62
|
+
`).filter(Boolean).map(w=>{const k=w.startsWith("!");return{prompt:k?w.slice(1).trim():w.trim(),expected:k?"should_not_activate":"should_activate"}});Q(`/api/skills/${f.plugin}/${f.skill}/activation-test`,{prompts:_})}function X(O){const _=x.trim(),w=_?`${_}
|
|
63
|
+
${O.join(`
|
|
64
|
+
`)}`:O.join(`
|
|
65
|
+
`);A(w)}const G=[];let U=null;for(const O of R)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[_,w]=O.target.value.split("/");r(_&&w?{plugin:_,skill:w}: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:_=>{_.currentTarget.style.color="var(--text-primary)",_.currentTarget.style.background="var(--surface-3)"},onMouseLeave:_=>{_.currentTarget.style.color="var(--text-tertiary)",_.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=>A(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"]})}),B&&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:B}),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,_)=>c.jsx(Nm,{result:O},`incorrect-${_}`))})]}),$.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,_)=>c.jsx(Nm,{result:O},`correct-${_}`))})]})]}),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(ks,{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(ks,{label:"Recall",value:U.recall,description:"Of expected activations, how many fired?",detail:`${U.tp} activated / ${U.tp+U.fn} expected`}),c.jsx(ks,{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 ks({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(()=>{nt.getConfig().then(o).catch(()=>{})},[]),E.useEffect(()=>{function h(R){x.current&&!x.current.contains(R.target)&&r(!1)}return f&&document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[f]);async function A(h,R){v(!0);try{const p=await nt.setConfig(h.id,R.id);o(p),r(!1)}catch{const p=await nt.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(R=>{const p=Xm(i,h.id,R.id),B=!h.available||m;return c.jsxs("button",{onClick:()=>!B&&A(h,R),disabled:B,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:B?"var(--text-tertiary)":"var(--text-primary)",opacity:B?.4:1,cursor:B?"not-allowed":"pointer"},onMouseEnter:Q=>{!B&&!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:R.label})]},`${h.id}-${R.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(()=>{nt.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(Ot,{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,{})})}));
|