vskill 0.2.57 → 0.2.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))r(m);new MutationObserver(m=>{for(const h of m)if(h.type==="childList")for(const x of h.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&r(x)}).observe(document,{childList:!0,subtree:!0});function d(m){const h={};return m.integrity&&(h.integrity=m.integrity),m.referrerPolicy&&(h.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?h.credentials="include":m.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(m){if(m.ep)return;m.ep=!0;const h=d(m);fetch(m.href,h)}})();var Ms={exports:{}},Dn={};/**
1
+ (function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))r(m);new MutationObserver(m=>{for(const h of m)if(h.type==="childList")for(const g of h.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&r(g)}).observe(document,{childList:!0,subtree:!0});function d(m){const h={};return m.integrity&&(h.integrity=m.integrity),m.referrerPolicy&&(h.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?h.credentials="include":m.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(m){if(m.ep)return;m.ep=!0;const h=d(m);fetch(m.href,h)}})();var Ms={exports:{}},Dn={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var tm;function dy(){if(tm)return Dn;tm=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function d(r,m,h){var x=null;if(h!==void 0&&(x=""+h),m.key!==void 0&&(x=""+m.key),"key"in m){h={};for(var A in m)A!=="key"&&(h[A]=m[A])}else h=m;return m=h.ref,{$$typeof:i,type:r,key:x,ref:m!==void 0?m:null,props:h}}return Dn.Fragment=f,Dn.jsx=d,Dn.jsxs=d,Dn}var lm;function my(){return lm||(lm=1,Ms.exports=dy()),Ms.exports}var s=my(),Os={exports:{}},te={};/**
9
+ */var tm;function dy(){if(tm)return Dn;tm=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function d(r,m,h){var g=null;if(h!==void 0&&(g=""+h),m.key!==void 0&&(g=""+m.key),"key"in m){h={};for(var A in m)A!=="key"&&(h[A]=m[A])}else h=m;return m=h.ref,{$$typeof:i,type:r,key:g,ref:m!==void 0?m:null,props:h}}return Dn.Fragment=f,Dn.jsx=d,Dn.jsxs=d,Dn}var lm;function my(){return lm||(lm=1,Ms.exports=dy()),Ms.exports}var s=my(),Os={exports:{}},te={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var am;function hy(){if(am)return te;am=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),x=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),w=Symbol.iterator;function G(b){return b===null||typeof b!="object"?null:(b=w&&b[w]||b["@@iterator"],typeof b=="function"?b:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,M={};function C(b,q,X){this.props=b,this.context=q,this.refs=M,this.updater=X||O}C.prototype.isReactComponent={},C.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")},C.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function Z(){}Z.prototype=C.prototype;function F(b,q,X){this.props=b,this.context=q,this.refs=M,this.updater=X||O}var Q=F.prototype=new Z;Q.constructor=F,L(Q,C.prototype),Q.isPureReactComponent=!0;var Y=Array.isArray;function J(){}var V={H:null,A:null,T:null,S:null},oe=Object.prototype.hasOwnProperty;function Ne(b,q,X){var $=X.ref;return{$$typeof:i,type:b,key:q,ref:$!==void 0?$:null,props:X}}function Ct(b,q){return Ne(b.type,q,b.props)}function ht(b){return typeof b=="object"&&b!==null&&b.$$typeof===i}function Ke(b){var q={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(X){return q[X]})}var Dt=/\/+/g;function vt(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(J,J):(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 U(b,q,X,$,le){var ue=typeof b;(ue==="undefined"||ue==="boolean")&&(b=null);var ve=!1;if(b===null)ve=!0;else switch(ue){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(b.$$typeof){case i:case f:ve=!0;break;case R:return ve=b._init,U(ve(b._payload),q,X,$,le)}}if(ve)return le=le(b),ve=$===""?"."+vt(b,0):$,Y(le)?(X="",ve!=null&&(X=ve.replace(Dt,"$&/")+"/"),U(le,q,X,"",function(qa){return qa})):le!=null&&(ht(le)&&(le=Ct(le,X+(le.key==null||b&&b.key===le.key?"":(""+le.key).replace(Dt,"$&/")+"/")+ve)),q.push(le)),1;ve=0;var $e=$===""?".":$+":";if(Y(b))for(var Oe=0;Oe<b.length;Oe++)$=b[Oe],ue=$e+vt($,Oe),ve+=U($,q,X,ue,le);else if(Oe=G(b),typeof Oe=="function")for(b=Oe.call(b),Oe=0;!($=b.next()).done;)$=$.value,ue=$e+vt($,Oe++),ve+=U($,q,X,ue,le);else if(ue==="object"){if(typeof b.then=="function")return U(Ue(b),q,X,$,le);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 k(b,q,X){if(b==null)return b;var $=[],le=0;return U(b,$,"","",function(ue){return q.call(X,ue,le++)}),$}function ee(b){if(b._status===-1){var q=b._result;q=q(),q.then(function(X){(b._status===0||b._status===-1)&&(b._status=1,b._result=X)},function(X){(b._status===0||b._status===-1)&&(b._status=2,b._result=X)}),b._status===-1&&(b._status=0,b._result=q)}if(b._status===1)return b._result.default;throw b._result}var ge=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},je={map:k,forEach:function(b,q,X){k(b,function(){q.apply(this,arguments)},X)},count:function(b){var q=0;return k(b,function(){q++}),q},toArray:function(b){return k(b,function(q){return q})||[]},only:function(b){if(!ht(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return te.Activity=p,te.Children=je,te.Component=C,te.Fragment=d,te.Profiler=m,te.PureComponent=F,te.StrictMode=r,te.Suspense=S,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,te.__COMPILER_RUNTIME={__proto__:null,c:function(b){return V.H.useMemoCache(b)}},te.cache=function(b){return function(){return b.apply(null,arguments)}},te.cacheSignal=function(){return null},te.cloneElement=function(b,q,X){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var $=L({},b.props),le=b.key;if(q!=null)for(ue in q.key!==void 0&&(le=""+q.key),q)!oe.call(q,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&q.ref===void 0||($[ue]=q[ue]);var ue=arguments.length-2;if(ue===1)$.children=X;else if(1<ue){for(var ve=Array(ue),$e=0;$e<ue;$e++)ve[$e]=arguments[$e+2];$.children=ve}return Ne(b.type,le,$)},te.createContext=function(b){return b={$$typeof:x,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:h,_context:b},b},te.createElement=function(b,q,X){var $,le={},ue=null;if(q!=null)for($ in q.key!==void 0&&(ue=""+q.key),q)oe.call(q,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(le[$]=q[$]);var ve=arguments.length-2;if(ve===1)le.children=X;else if(1<ve){for(var $e=Array(ve),Oe=0;Oe<ve;Oe++)$e[Oe]=arguments[Oe+2];le.children=$e}if(b&&b.defaultProps)for($ in ve=b.defaultProps,ve)le[$]===void 0&&(le[$]=ve[$]);return Ne(b,ue,le)},te.createRef=function(){return{current:null}},te.forwardRef=function(b){return{$$typeof:A,render:b}},te.isValidElement=ht,te.lazy=function(b){return{$$typeof:R,_payload:{_status:-1,_result:b},_init:ee}},te.memo=function(b,q){return{$$typeof:y,type:b,compare:q===void 0?null:q}},te.startTransition=function(b){var q=V.T,X={};V.T=X;try{var $=b(),le=V.S;le!==null&&le(X,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(J,ge)}catch(ue){ge(ue)}finally{q!==null&&X.types!==null&&(q.types=X.types),V.T=q}},te.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},te.use=function(b){return V.H.use(b)},te.useActionState=function(b,q,X){return V.H.useActionState(b,q,X)},te.useCallback=function(b,q){return V.H.useCallback(b,q)},te.useContext=function(b){return V.H.useContext(b)},te.useDebugValue=function(){},te.useDeferredValue=function(b,q){return V.H.useDeferredValue(b,q)},te.useEffect=function(b,q){return V.H.useEffect(b,q)},te.useEffectEvent=function(b){return V.H.useEffectEvent(b)},te.useId=function(){return V.H.useId()},te.useImperativeHandle=function(b,q,X){return V.H.useImperativeHandle(b,q,X)},te.useInsertionEffect=function(b,q){return V.H.useInsertionEffect(b,q)},te.useLayoutEffect=function(b,q){return V.H.useLayoutEffect(b,q)},te.useMemo=function(b,q){return V.H.useMemo(b,q)},te.useOptimistic=function(b,q){return V.H.useOptimistic(b,q)},te.useReducer=function(b,q,X){return V.H.useReducer(b,q,X)},te.useRef=function(b){return V.H.useRef(b)},te.useState=function(b){return V.H.useState(b)},te.useSyncExternalStore=function(b,q,X){return V.H.useSyncExternalStore(b,q,X)},te.useTransition=function(){return V.H.useTransition()},te.version="19.2.4",te}var nm;function Qs(){return nm||(nm=1,Os.exports=hy()),Os.exports}var T=Qs(),Cs={exports:{}},Un={},Ds={exports:{}},Us={};/**
17
+ */var am;function hy(){if(am)return te;am=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),g=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),w=Symbol.iterator;function X(b){return b===null||typeof b!="object"?null:(b=w&&b[w]||b["@@iterator"],typeof b=="function"?b:null)}var G={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,O={};function R(b,B,V){this.props=b,this.context=B,this.refs=O,this.updater=V||G}R.prototype.isReactComponent={},R.prototype.setState=function(b,B){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,B,"setState")},R.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function L(){}L.prototype=R.prototype;function Q(b,B,V){this.props=b,this.context=B,this.refs=O,this.updater=V||G}var k=Q.prototype=new L;k.constructor=Q,q(k,R.prototype),k.isPureReactComponent=!0;var Y=Array.isArray;function $(){}var K={H:null,A:null,T:null,S:null},oe=Object.prototype.hasOwnProperty;function Ne(b,B,V){var W=V.ref;return{$$typeof:i,type:b,key:B,ref:W!==void 0?W:null,props:V}}function Ct(b,B){return Ne(b.type,B,b.props)}function ht(b){return typeof b=="object"&&b!==null&&b.$$typeof===i}function Ke(b){var B={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(V){return B[V]})}var Dt=/\/+/g;function vt(b,B){return typeof b=="object"&&b!==null&&b.key!=null?Ke(""+b.key):B.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($,$):(b.status="pending",b.then(function(B){b.status==="pending"&&(b.status="fulfilled",b.value=B)},function(B){b.status==="pending"&&(b.status="rejected",b.reason=B)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function D(b,B,V,W,le){var ue=typeof b;(ue==="undefined"||ue==="boolean")&&(b=null);var ve=!1;if(b===null)ve=!0;else switch(ue){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(b.$$typeof){case i:case f:ve=!0;break;case M:return ve=b._init,D(ve(b._payload),B,V,W,le)}}if(ve)return le=le(b),ve=W===""?"."+vt(b,0):W,Y(le)?(V="",ve!=null&&(V=ve.replace(Dt,"$&/")+"/"),D(le,B,V,"",function(qa){return qa})):le!=null&&(ht(le)&&(le=Ct(le,V+(le.key==null||b&&b.key===le.key?"":(""+le.key).replace(Dt,"$&/")+"/")+ve)),B.push(le)),1;ve=0;var $e=W===""?".":W+":";if(Y(b))for(var Oe=0;Oe<b.length;Oe++)W=b[Oe],ue=$e+vt(W,Oe),ve+=D(W,B,V,ue,le);else if(Oe=X(b),typeof Oe=="function")for(b=Oe.call(b),Oe=0;!(W=b.next()).done;)W=W.value,ue=$e+vt(W,Oe++),ve+=D(W,B,V,ue,le);else if(ue==="object"){if(typeof b.then=="function")return D(Ue(b),B,V,W,le);throw B=String(b),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return ve}function Z(b,B,V){if(b==null)return b;var W=[],le=0;return D(b,W,"","",function(ue){return B.call(V,ue,le++)}),W}function ee(b){if(b._status===-1){var B=b._result;B=B(),B.then(function(V){(b._status===0||b._status===-1)&&(b._status=1,b._result=V)},function(V){(b._status===0||b._status===-1)&&(b._status=2,b._result=V)}),b._status===-1&&(b._status=0,b._result=B)}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 B=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(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},je={map:Z,forEach:function(b,B,V){Z(b,function(){B.apply(this,arguments)},V)},count:function(b){var B=0;return Z(b,function(){B++}),B},toArray:function(b){return Z(b,function(B){return B})||[]},only:function(b){if(!ht(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return te.Activity=x,te.Children=je,te.Component=R,te.Fragment=d,te.Profiler=m,te.PureComponent=Q,te.StrictMode=r,te.Suspense=S,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,te.__COMPILER_RUNTIME={__proto__:null,c:function(b){return K.H.useMemoCache(b)}},te.cache=function(b){return function(){return b.apply(null,arguments)}},te.cacheSignal=function(){return null},te.cloneElement=function(b,B,V){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var W=q({},b.props),le=b.key;if(B!=null)for(ue in B.key!==void 0&&(le=""+B.key),B)!oe.call(B,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&B.ref===void 0||(W[ue]=B[ue]);var ue=arguments.length-2;if(ue===1)W.children=V;else if(1<ue){for(var ve=Array(ue),$e=0;$e<ue;$e++)ve[$e]=arguments[$e+2];W.children=ve}return Ne(b.type,le,W)},te.createContext=function(b){return b={$$typeof:g,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:h,_context:b},b},te.createElement=function(b,B,V){var W,le={},ue=null;if(B!=null)for(W in B.key!==void 0&&(ue=""+B.key),B)oe.call(B,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(le[W]=B[W]);var ve=arguments.length-2;if(ve===1)le.children=V;else if(1<ve){for(var $e=Array(ve),Oe=0;Oe<ve;Oe++)$e[Oe]=arguments[Oe+2];le.children=$e}if(b&&b.defaultProps)for(W in ve=b.defaultProps,ve)le[W]===void 0&&(le[W]=ve[W]);return Ne(b,ue,le)},te.createRef=function(){return{current:null}},te.forwardRef=function(b){return{$$typeof:A,render:b}},te.isValidElement=ht,te.lazy=function(b){return{$$typeof:M,_payload:{_status:-1,_result:b},_init:ee}},te.memo=function(b,B){return{$$typeof:v,type:b,compare:B===void 0?null:B}},te.startTransition=function(b){var B=K.T,V={};K.T=V;try{var W=b(),le=K.S;le!==null&&le(V,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then($,xe)}catch(ue){xe(ue)}finally{B!==null&&V.types!==null&&(B.types=V.types),K.T=B}},te.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},te.use=function(b){return K.H.use(b)},te.useActionState=function(b,B,V){return K.H.useActionState(b,B,V)},te.useCallback=function(b,B){return K.H.useCallback(b,B)},te.useContext=function(b){return K.H.useContext(b)},te.useDebugValue=function(){},te.useDeferredValue=function(b,B){return K.H.useDeferredValue(b,B)},te.useEffect=function(b,B){return K.H.useEffect(b,B)},te.useEffectEvent=function(b){return K.H.useEffectEvent(b)},te.useId=function(){return K.H.useId()},te.useImperativeHandle=function(b,B,V){return K.H.useImperativeHandle(b,B,V)},te.useInsertionEffect=function(b,B){return K.H.useInsertionEffect(b,B)},te.useLayoutEffect=function(b,B){return K.H.useLayoutEffect(b,B)},te.useMemo=function(b,B){return K.H.useMemo(b,B)},te.useOptimistic=function(b,B){return K.H.useOptimistic(b,B)},te.useReducer=function(b,B,V){return K.H.useReducer(b,B,V)},te.useRef=function(b){return K.H.useRef(b)},te.useState=function(b){return K.H.useState(b)},te.useSyncExternalStore=function(b,B,V){return K.H.useSyncExternalStore(b,B,V)},te.useTransition=function(){return K.H.useTransition()},te.version="19.2.4",te}var nm;function Qs(){return nm||(nm=1,Os.exports=hy()),Os.exports}var T=Qs(),Cs={exports:{}},Un={},Ds={exports:{}},Us={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var um;function vy(){return um||(um=1,(function(i){function f(U,k){var ee=U.length;U.push(k);e:for(;0<ee;){var ge=ee-1>>>1,je=U[ge];if(0<m(je,k))U[ge]=k,U[ee]=je,ee=ge;else break e}}function d(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var k=U[0],ee=U.pop();if(ee!==k){U[0]=ee;e:for(var ge=0,je=U.length,b=je>>>1;ge<b;){var q=2*(ge+1)-1,X=U[q],$=q+1,le=U[$];if(0>m(X,ee))$<je&&0>m(le,X)?(U[ge]=le,U[$]=ee,ge=$):(U[ge]=X,U[q]=ee,ge=q);else if($<je&&0>m(le,ee))U[ge]=le,U[$]=ee,ge=$;else break e}}return k}function m(U,k){var ee=U.sortIndex-k.sortIndex;return ee!==0?ee:U.id-k.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var x=Date,A=x.now();i.unstable_now=function(){return x.now()-A}}var S=[],y=[],R=1,p=null,w=3,G=!1,O=!1,L=!1,M=!1,C=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function Q(U){for(var k=d(y);k!==null;){if(k.callback===null)r(y);else if(k.startTime<=U)r(y),k.sortIndex=k.expirationTime,f(S,k);else break;k=d(y)}}function Y(U){if(L=!1,Q(U),!O)if(d(S)!==null)O=!0,J||(J=!0,Ke());else{var k=d(y);k!==null&&Ue(Y,k.startTime-U)}}var J=!1,V=-1,oe=5,Ne=-1;function Ct(){return M?!0:!(i.unstable_now()-Ne<oe)}function ht(){if(M=!1,J){var U=i.unstable_now();Ne=U;var k=!0;try{e:{O=!1,L&&(L=!1,Z(V),V=-1),G=!0;var ee=w;try{t:{for(Q(U),p=d(S);p!==null&&!(p.expirationTime>U&&Ct());){var ge=p.callback;if(typeof ge=="function"){p.callback=null,w=p.priorityLevel;var je=ge(p.expirationTime<=U);if(U=i.unstable_now(),typeof je=="function"){p.callback=je,Q(U),k=!0;break t}p===d(S)&&r(S),Q(U)}else r(S);p=d(S)}if(p!==null)k=!0;else{var b=d(y);b!==null&&Ue(Y,b.startTime-U),k=!1}}break e}finally{p=null,w=ee,G=!1}k=void 0}}finally{k?Ke():J=!1}}}var Ke;if(typeof F=="function")Ke=function(){F(ht)};else if(typeof MessageChannel<"u"){var Dt=new MessageChannel,vt=Dt.port2;Dt.port1.onmessage=ht,Ke=function(){vt.postMessage(null)}}else Ke=function(){C(ht,0)};function Ue(U,k){V=C(function(){U(i.unstable_now())},k)}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(U){U.callback=null},i.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):oe=0<U?Math.floor(1e3/U):5},i.unstable_getCurrentPriorityLevel=function(){return w},i.unstable_next=function(U){switch(w){case 1:case 2:case 3:var k=3;break;default:k=w}var ee=w;w=k;try{return U()}finally{w=ee}},i.unstable_requestPaint=function(){M=!0},i.unstable_runWithPriority=function(U,k){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ee=w;w=U;try{return k()}finally{w=ee}},i.unstable_scheduleCallback=function(U,k,ee){var ge=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ge+ee:ge):ee=ge,U){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=ee+je,U={id:R++,callback:k,priorityLevel:U,startTime:ee,expirationTime:je,sortIndex:-1},ee>ge?(U.sortIndex=ee,f(y,U),d(S)===null&&U===d(y)&&(L?(Z(V),V=-1):L=!0,Ue(Y,ee-ge))):(U.sortIndex=je,f(S,U),O||G||(O=!0,J||(J=!0,Ke()))),U},i.unstable_shouldYield=Ct,i.unstable_wrapCallback=function(U){var k=w;return function(){var ee=w;w=k;try{return U.apply(this,arguments)}finally{w=ee}}}})(Us)),Us}var im;function yy(){return im||(im=1,Ds.exports=vy()),Ds.exports}var Hs={exports:{}},Je={};/**
25
+ */var um;function vy(){return um||(um=1,(function(i){function f(D,Z){var ee=D.length;D.push(Z);e:for(;0<ee;){var xe=ee-1>>>1,je=D[xe];if(0<m(je,Z))D[xe]=Z,D[ee]=je,ee=xe;else break e}}function d(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var Z=D[0],ee=D.pop();if(ee!==Z){D[0]=ee;e:for(var xe=0,je=D.length,b=je>>>1;xe<b;){var B=2*(xe+1)-1,V=D[B],W=B+1,le=D[W];if(0>m(V,ee))W<je&&0>m(le,V)?(D[xe]=le,D[W]=ee,xe=W):(D[xe]=V,D[B]=ee,xe=B);else if(W<je&&0>m(le,ee))D[xe]=le,D[W]=ee,xe=W;else break e}}return Z}function m(D,Z){var ee=D.sortIndex-Z.sortIndex;return ee!==0?ee:D.id-Z.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var g=Date,A=g.now();i.unstable_now=function(){return g.now()-A}}var S=[],v=[],M=1,x=null,w=3,X=!1,G=!1,q=!1,O=!1,R=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function k(D){for(var Z=d(v);Z!==null;){if(Z.callback===null)r(v);else if(Z.startTime<=D)r(v),Z.sortIndex=Z.expirationTime,f(S,Z);else break;Z=d(v)}}function Y(D){if(q=!1,k(D),!G)if(d(S)!==null)G=!0,$||($=!0,Ke());else{var Z=d(v);Z!==null&&Ue(Y,Z.startTime-D)}}var $=!1,K=-1,oe=5,Ne=-1;function Ct(){return O?!0:!(i.unstable_now()-Ne<oe)}function ht(){if(O=!1,$){var D=i.unstable_now();Ne=D;var Z=!0;try{e:{G=!1,q&&(q=!1,L(K),K=-1),X=!0;var ee=w;try{t:{for(k(D),x=d(S);x!==null&&!(x.expirationTime>D&&Ct());){var xe=x.callback;if(typeof xe=="function"){x.callback=null,w=x.priorityLevel;var je=xe(x.expirationTime<=D);if(D=i.unstable_now(),typeof je=="function"){x.callback=je,k(D),Z=!0;break t}x===d(S)&&r(S),k(D)}else r(S);x=d(S)}if(x!==null)Z=!0;else{var b=d(v);b!==null&&Ue(Y,b.startTime-D),Z=!1}}break e}finally{x=null,w=ee,X=!1}Z=void 0}}finally{Z?Ke():$=!1}}}var Ke;if(typeof Q=="function")Ke=function(){Q(ht)};else if(typeof MessageChannel<"u"){var Dt=new MessageChannel,vt=Dt.port2;Dt.port1.onmessage=ht,Ke=function(){vt.postMessage(null)}}else Ke=function(){R(ht,0)};function Ue(D,Z){K=R(function(){D(i.unstable_now())},Z)}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"):oe=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return w},i.unstable_next=function(D){switch(w){case 1:case 2:case 3:var Z=3;break;default:Z=w}var ee=w;w=Z;try{return D()}finally{w=ee}},i.unstable_requestPaint=function(){O=!0},i.unstable_runWithPriority=function(D,Z){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var ee=w;w=D;try{return Z()}finally{w=ee}},i.unstable_scheduleCallback=function(D,Z,ee){var xe=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?xe+ee:xe):ee=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=ee+je,D={id:M++,callback:Z,priorityLevel:D,startTime:ee,expirationTime:je,sortIndex:-1},ee>xe?(D.sortIndex=ee,f(v,D),d(S)===null&&D===d(v)&&(q?(L(K),K=-1):q=!0,Ue(Y,ee-xe))):(D.sortIndex=je,f(S,D),G||X||(G=!0,$||($=!0,Ke()))),D},i.unstable_shouldYield=Ct,i.unstable_wrapCallback=function(D){var Z=w;return function(){var ee=w;w=Z;try{return D.apply(this,arguments)}finally{w=ee}}}})(Us)),Us}var im;function yy(){return im||(im=1,Ds.exports=vy()),Ds.exports}var Hs={exports:{}},Je={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var cm;function py(){if(cm)return Je;cm=1;var i=Qs();function f(S){var y="https://react.dev/errors/"+S;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var R=2;R<arguments.length;R++)y+="&args[]="+encodeURIComponent(arguments[R])}return"Minified React error #"+S+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var r={d:{f:d,r:function(){throw Error(f(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},m=Symbol.for("react.portal");function h(S,y,R){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:p==null?null:""+p,children:S,containerInfo:y,implementation:R}}var x=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function A(S,y){if(S==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Je.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Je.createPortal=function(S,y){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(f(299));return h(S,y,null,R)},Je.flushSync=function(S){var y=x.T,R=r.p;try{if(x.T=null,r.p=2,S)return S()}finally{x.T=y,r.p=R,r.d.f()}},Je.preconnect=function(S,y){typeof S=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(S,y))},Je.prefetchDNS=function(S){typeof S=="string"&&r.d.D(S)},Je.preinit=function(S,y){if(typeof S=="string"&&y&&typeof y.as=="string"){var R=y.as,p=A(R,y.crossOrigin),w=typeof y.integrity=="string"?y.integrity:void 0,G=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;R==="style"?r.d.S(S,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:p,integrity:w,fetchPriority:G}):R==="script"&&r.d.X(S,{crossOrigin:p,integrity:w,fetchPriority:G,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Je.preinitModule=function(S,y){if(typeof S=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var R=A(y.as,y.crossOrigin);r.d.M(S,{crossOrigin:R,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(S)},Je.preload=function(S,y){if(typeof S=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var R=y.as,p=A(R,y.crossOrigin);r.d.L(S,R,{crossOrigin:p,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Je.preloadModule=function(S,y){if(typeof S=="string")if(y){var R=A(y.as,y.crossOrigin);r.d.m(S,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:R,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(S)},Je.requestFormReset=function(S){r.d.r(S)},Je.unstable_batchedUpdates=function(S,y){return S(y)},Je.useFormState=function(S,y,R){return x.H.useFormState(S,y,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(f){console.error(f)}}return i(),Hs.exports=py(),Hs.exports}/**
33
+ */var cm;function py(){if(cm)return Je;cm=1;var i=Qs();function f(S){var v="https://react.dev/errors/"+S;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var M=2;M<arguments.length;M++)v+="&args[]="+encodeURIComponent(arguments[M])}return"Minified React error #"+S+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var r={d:{f:d,r:function(){throw Error(f(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},m=Symbol.for("react.portal");function h(S,v,M){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:x==null?null:""+x,children:S,containerInfo:v,implementation:M}}var g=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function A(S,v){if(S==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return Je.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Je.createPortal=function(S,v){var M=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(f(299));return h(S,v,null,M)},Je.flushSync=function(S){var v=g.T,M=r.p;try{if(g.T=null,r.p=2,S)return S()}finally{g.T=v,r.p=M,r.d.f()}},Je.preconnect=function(S,v){typeof S=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,r.d.C(S,v))},Je.prefetchDNS=function(S){typeof S=="string"&&r.d.D(S)},Je.preinit=function(S,v){if(typeof S=="string"&&v&&typeof v.as=="string"){var M=v.as,x=A(M,v.crossOrigin),w=typeof v.integrity=="string"?v.integrity:void 0,X=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;M==="style"?r.d.S(S,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:x,integrity:w,fetchPriority:X}):M==="script"&&r.d.X(S,{crossOrigin:x,integrity:w,fetchPriority:X,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},Je.preinitModule=function(S,v){if(typeof S=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var M=A(v.as,v.crossOrigin);r.d.M(S,{crossOrigin:M,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&r.d.M(S)},Je.preload=function(S,v){if(typeof S=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var M=v.as,x=A(M,v.crossOrigin);r.d.L(S,M,{crossOrigin:x,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},Je.preloadModule=function(S,v){if(typeof S=="string")if(v){var M=A(v.as,v.crossOrigin);r.d.m(S,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:M,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else r.d.m(S)},Je.requestFormReset=function(S){r.d.r(S)},Je.unstable_batchedUpdates=function(S,v){return S(v)},Je.useFormState=function(S,v,M){return g.H.useFormState(S,v,M)},Je.useFormStatus=function(){return g.H.useHostTransitionStatus()},Je.version="19.2.4",Je}var sm;function xy(){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(f){console.error(f)}}return i(),Hs.exports=py(),Hs.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,15 +38,15 @@
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var rm;function xy(){if(rm)return Un;rm=1;var i=yy(),f=Qs(),d=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 h(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(h(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=h(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 c=!1,o=n.child;o;){if(o===l){c=!0,l=n,a=u;break}if(o===a){c=!0,a=n,l=u;break}o=o.sibling}if(!c){for(o=u.child;o;){if(o===l){c=!0,l=u,a=n;break}if(o===a){c=!0,a=u,l=n;break}o=o.sibling}if(!c)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,w=Symbol.for("react.element"),G=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),F=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),Ne=Symbol.for("react.activity"),Ct=Symbol.for("react.memo_cache_sentinel"),ht=Symbol.iterator;function Ke(e){return e===null||typeof e!="object"?null:(e=ht&&e[ht]||e["@@iterator"],typeof e=="function"?e:null)}var Dt=Symbol.for("react.client.reference");function vt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Dt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case L:return"Fragment";case C:return"Profiler";case M:return"StrictMode";case Y:return"Suspense";case J:return"SuspenseList";case Ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case O:return"Portal";case F:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:vt(e.type)||"Memo";case oe:t=e._payload,e=e._init;try{return vt(e(t))}catch{}}return null}var Ue=Array.isArray,U=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ge=[],je=-1;function b(e){return{current:e}}function q(e){0>je||(e.current=ge[je],ge[je]=null,je--)}function X(e,t){je++,ge[je]=e.current,e.current=t}var $=b(null),le=b(null),ue=b(null),ve=b(null);function $e(e,t){switch(X(ue,t),X(le,e),X($,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($),X($,e)}function Oe(){q($),q(le),q(ue)}function qa(e){e.memoizedState!==null&&X(ve,e);var t=$.current,l=Td(t,e.type);t!==l&&(X(le,e),X($,l))}function Yn(e){le.current===e&&(q($),q(le)),ve.current===e&&(q(ve),Rn._currentValue=ee)}var di,Is;function Ol(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(`
41
+ */var rm;function gy(){if(rm)return Un;rm=1;var i=yy(),f=Qs(),d=xy();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 h(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 g(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(h(e)!==e)throw Error(r(188))}function v(e){var t=e.alternate;if(!t){if(t=h(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 c=!1,o=n.child;o;){if(o===l){c=!0,l=n,a=u;break}if(o===a){c=!0,a=n,l=u;break}o=o.sibling}if(!c){for(o=u.child;o;){if(o===l){c=!0,l=u,a=n;break}if(o===a){c=!0,a=u,l=n;break}o=o.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function M(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=M(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,w=Symbol.for("react.element"),X=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),Ne=Symbol.for("react.activity"),Ct=Symbol.for("react.memo_cache_sentinel"),ht=Symbol.iterator;function Ke(e){return e===null||typeof e!="object"?null:(e=ht&&e[ht]||e["@@iterator"],typeof e=="function"?e:null)}var Dt=Symbol.for("react.client.reference");function vt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Dt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case q:return"Fragment";case R:return"Profiler";case O:return"StrictMode";case Y:return"Suspense";case $:return"SuspenseList";case Ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case G:return"Portal";case Q:return e.displayName||"Context";case L:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:vt(e.type)||"Memo";case oe:t=e._payload,e=e._init;try{return vt(e(t))}catch{}}return null}var Ue=Array.isArray,D=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},xe=[],je=-1;function b(e){return{current:e}}function B(e){0>je||(e.current=xe[je],xe[je]=null,je--)}function V(e,t){je++,xe[je]=e.current,e.current=t}var W=b(null),le=b(null),ue=b(null),ve=b(null);function $e(e,t){switch(V(ue,t),V(le,e),V(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}}B(W),V(W,e)}function Oe(){B(W),B(le),B(ue)}function qa(e){e.memoizedState!==null&&V(ve,e);var t=W.current,l=Td(t,e.type);t!==l&&(V(le,e),V(W,l))}function Yn(e){le.current===e&&(B(W),B(le)),ve.current===e&&(B(ve),Rn._currentValue=ee)}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
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 B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(_){var z=_}Reflect.construct(e,[],B)}else{try{B.call()}catch(_){z=_}e.call(B.prototype)}}else{try{throw Error()}catch(_){z=_}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(_){if(_&&z&&typeof _.stack=="string")return[_.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(),c=u[0],o=u[1];if(c&&o){var v=c.split(`
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 H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(_){var z=_}Reflect.construct(e,[],H)}else{try{H.call()}catch(_){z=_}e.call(H.prototype)}}else{try{throw Error()}catch(_){z=_}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(_){if(_&&z&&typeof _.stack=="string")return[_.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(),c=u[0],o=u[1];if(c&&o){var y=c.split(`
44
44
  `),N=o.split(`
45
- `);for(n=a=0;a<v.length&&!v[a].includes("DetermineComponentFrameRoot");)a++;for(;n<N.length&&!N[n].includes("DetermineComponentFrameRoot");)n++;if(a===v.length||n===N.length)for(a=v.length-1,n=N.length-1;1<=a&&0<=n&&v[a]!==N[n];)n--;for(;1<=a&&0<=n;a--,n--)if(v[a]!==N[n]){if(a!==1||n!==1)do if(a--,n--,0>n||v[a]!==N[n]){var D=`
46
- `+v[a].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=a&&0<=n);break}}}finally{mi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ol(l):""}function Xm(e,t){switch(e.tag){case 26:case 27:case 5:return Ol(e.type);case 16:return Ol("Lazy");case 13:return e.child!==t&&t!==null?Ol("Suspense Fallback"):Ol("Suspense");case 19:return Ol("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 Ol("Activity");default:return""}}function Ps(e){try{var t="",l=null;do t+=Xm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
45
+ `);for(n=a=0;a<y.length&&!y[a].includes("DetermineComponentFrameRoot");)a++;for(;n<N.length&&!N[n].includes("DetermineComponentFrameRoot");)n++;if(a===y.length||n===N.length)for(a=y.length-1,n=N.length-1;1<=a&&0<=n&&y[a]!==N[n];)n--;for(;1<=a&&0<=n;a--,n--)if(y[a]!==N[n]){if(a!==1||n!==1)do if(a--,n--,0>n||y[a]!==N[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 Xm(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+=Xm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
47
  Error generating stack: `+a.message+`
48
- `+a.stack}}var vi=Object.prototype.hasOwnProperty,yi=i.unstable_scheduleCallback,pi=i.unstable_cancelCallback,Qm=i.unstable_shouldYield,Zm=i.unstable_requestPaint,nt=i.unstable_now,Vm=i.unstable_getCurrentPriorityLevel,er=i.unstable_ImmediatePriority,tr=i.unstable_UserBlockingPriority,Gn=i.unstable_NormalPriority,Km=i.unstable_LowPriority,lr=i.unstable_IdlePriority,Jm=i.log,$m=i.unstable_setDisableYieldValue,Ya=null,ut=null;function il(e){if(typeof Jm=="function"&&$m(e),ut&&typeof ut.setStrictMode=="function")try{ut.setStrictMode(Ya,e)}catch{}}var it=Math.clz32?Math.clz32:Im,Wm=Math.log,Fm=Math.LN2;function Im(e){return e>>>=0,e===0?32:31-(Wm(e)/Fm|0)|0}var kn=256,Xn=262144,Qn=4194304;function Cl(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,c=e.pingedLanes;e=e.warmLanes;var o=a&134217727;return o!==0?(a=o&~u,a!==0?n=Cl(a):(c&=o,c!==0?n=Cl(c):l||(l=o&~e,l!==0&&(n=Cl(l))))):(o=a&~u,o!==0?n=Cl(o):c!==0?n=Cl(c):l||(l=a&~e,l!==0&&(n=Cl(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 Ga(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Pm(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 gi(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function ka(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function eh(e,t,l,a,n,u){var c=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 o=e.entanglements,v=e.expirationTimes,N=e.hiddenUpdates;for(l=c&~l;0<l;){var D=31-it(l),B=1<<D;o[D]=0,v[D]=-1;var z=N[D];if(z!==null)for(N[D]=null,D=0;D<z.length;D++){var _=z[D];_!==null&&(_.lane&=-536870913)}l&=~B}a!==0&&nr(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function nr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-it(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-it(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:xi(l),(l&(e.suspendedLanes|t))!==0?0:l}function xi(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=k.p;return e!==0?e:(e=window.event,e===void 0?32:Jd(e.type))}function sr(e,t){var l=k.p;try{return k.p=e,t()}finally{k.p=l}}var cl=Math.random().toString(36).slice(2),ke="__reactFiber$"+cl,Fe="__reactProps$"+cl,Pl="__reactContainer$"+cl,Si="__reactEvents$"+cl,th="__reactListeners$"+cl,lh="__reactHandles$"+cl,rr="__reactResources$"+cl,Xa="__reactMarker$"+cl;function ji(e){delete e[ke],delete e[Fe],delete e[Si],delete e[th],delete e[lh]}function ea(e){var t=e[ke];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Pl]||l[ke]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Cd(e);e!==null;){if(l=e[ke])return l;e=Cd(e)}return t}e=l,l=e.parentNode}return null}function ta(e){if(e=e[ke]||e[Pl]){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 la(e){var t=e[rr];return t||(t=e[rr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ye(e){e[Xa]=!0}var fr=new Set,or={};function Dl(e,t){aa(e,t),aa(e+"Capture",t)}function aa(e,t){for(or[e]=t,e=0;e<t.length;e++)fr.add(t[e])}var ah=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 nh(e){return vi.call(mr,e)?!0:vi.call(dr,e)?!1:ah.test(e)?mr[e]=!0:(dr[e]=!0,!1)}function Vn(e,t,l){if(nh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Kn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Yt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function yt(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 uh(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(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ei(e){if(!e._valueTracker){var t=hr(e)?"checked":"value";e._valueTracker=uh(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 ih=/[\n"\\]/g;function pt(e){return e.replace(ih,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ni(e,t,l,a,n,u,c,o){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+yt(t)):e.value!==""+yt(t)&&(e.value=""+yt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Ti(e,c,yt(t)):l!=null?Ti(e,c,yt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+yt(o):e.removeAttribute("name")}function yr(e,t,l,a,n,u,c,o){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?""+yt(l):"",t=t!=null?""+yt(t):l,o||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=o?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Ei(e)}function Ti(e,t,l){t==="number"&&Jn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function na(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=""+yt(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=""+yt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+yt(l):""}function gr(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=yt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Ei(e)}function ua(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var ch=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 xr(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||ch.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&&xr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&xr(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 sh=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"]]),rh=/^[\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 rh.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 ia=null,ca=null;function Sr(e){var t=ta(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="'+pt(""+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&&na(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,(ia!==null||ca!==null)&&(Bu(),ia&&(t=ia,e=ca,ca=ia=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 kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mi=!1;if(kt)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 sl=null,Oi=null,Wn=null;function Er(){if(Wn)return Wn;var e,t=Oi,l=t.length,a,n="value"in sl?sl.value:sl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&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,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(l=e[o],this[o]=l?l(u):u[o]);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 Ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pn=Ie(Ul),Ka=p({},Ul,{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),oh=p({},eu,{dataTransfer:0}),dh=Ie(oh),mh=p({},Ka,{relatedTarget:0}),Ui=Ie(mh),hh=p({},Ul,{animationName:0,elapsedTime:0,pseudoElement:0}),vh=Ie(hh),yh=p({},Ul,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ph=Ie(yh),gh=p({},Ul,{data:0}),zr=Ie(gh),xh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bh={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"},Sh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Sh[e])?!!t[e]:!1}function Hi(){return jh}var Eh=p({},Ka,{key:function(e){if(e.key){var t=xh[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"?bh[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}}),Nh=Ie(Eh),Th=p({},eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ar=Ie(Th),zh=p({},Ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hi}),Ah=Ie(zh),_h=p({},Ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rh=Ie(_h),Mh=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}),Oh=Ie(Mh),Ch=p({},Ul,{newState:0,oldState:0}),Dh=Ie(Ch),Uh=[9,13,27,32],Bi=kt&&"CompositionEvent"in window,$a=null;kt&&"documentMode"in document&&($a=document.documentMode);var Hh=kt&&"TextEvent"in window&&!$a,_r=kt&&(!Bi||$a&&8<$a&&11>=$a),Rr=" ",Mr=!1;function Or(e,t){switch(e){case"keyup":return Uh.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 sa=!1;function Bh(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 wh(e,t){if(sa)return e==="compositionend"||!Bi&&Or(e,t)?(e=Er(),Wn=Oi=sl=null,sa=!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 Lh={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"?!!Lh[e.type]:t==="textarea"}function Ur(e,t,l,a){ia?ca?ca.push(a):ca=[a]:ia=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 qh(e){gd(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(kt){var wi;if(kt){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(qh,t)}}function Yh(e,t,l){e==="focusin"?(Lr(),Wa=t,Fa=l,Wa.attachEvent("onpropertychange",qr)):e==="focusout"&&Lr()}function Gh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tu(Fa)}function kh(e,t){if(e==="click")return tu(t)}function Xh(e,t){if(e==="input"||e==="change")return tu(t)}function Qh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ct=typeof Object.is=="function"?Object.is:Qh;function Ia(e,t){if(ct(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)||!ct(e[n],t[n]))return!1}return!0}function Yr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gr(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 kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kr(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 Zh=kt&&"documentMode"in document&&11>=document.documentMode,ra=null,Yi=null,Pa=null,Gi=!1;function Qr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Gi||ra==null||ra!==Jn(a)||(a=ra,"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=ra)))}function Hl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var fa={animationend:Hl("Animation","AnimationEnd"),animationiteration:Hl("Animation","AnimationIteration"),animationstart:Hl("Animation","AnimationStart"),transitionrun:Hl("Transition","TransitionRun"),transitionstart:Hl("Transition","TransitionStart"),transitioncancel:Hl("Transition","TransitionCancel"),transitionend:Hl("Transition","TransitionEnd")},ki={},Zr={};kt&&(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 Bl(e){if(ki[e])return ki[e];if(!fa[e])return e;var t=fa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Zr)return ki[e]=t[l];return e}var Vr=Bl("animationend"),Kr=Bl("animationiteration"),Jr=Bl("animationstart"),Vh=Bl("transitionrun"),Kh=Bl("transitionstart"),Jh=Bl("transitioncancel"),$r=Bl("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 At(e,t){Wr.set(e,t),Dl(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=[],oa=0,Qi=0;function au(){for(var e=oa,t=Qi=oa=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 c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&Fr(l,n,u)}}function nu(e,t,l,a){gt[oa++]=e,gt[oa++]=t,gt[oa++]=l,gt[oa++]=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 wl(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-it(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 da={};function $h(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 st(e,t,l,a){return new $h(e,t,l,a)}function Vi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xt(e,t){var l=e.alternate;return l===null?(l=st(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 c=0;if(a=e,typeof e=="function")Vi(e)&&(c=1);else if(typeof e=="string")c=ey(e,l,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ne:return e=st(31,l,t,n),e.elementType=Ne,e.lanes=u,e;case L:return Ll(l.children,n,u,t);case M:c=8,n|=24;break;case C:return e=st(12,l,t,n|2),e.elementType=C,e.lanes=u,e;case Y:return e=st(13,l,t,n),e.elementType=Y,e.lanes=u,e;case J:return e=st(19,l,t,n),e.elementType=J,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:c=10;break e;case Z:c=9;break e;case Q:c=11;break e;case V:c=14;break e;case oe:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=st(c,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Ll(e,t,l,a){return e=st(7,e,a,t),e.lanes=l,e}function Ki(e,t,l){return e=st(6,e,null,t),e.lanes=l,e}function Pr(e){var t=st(18,null,null,0);return t.stateNode=e,t}function Ji(e,t,l){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ef=new WeakMap;function xt(e,t){if(typeof e=="object"&&e!==null){var l=ef.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ps(t)},ef.set(e,t),t)}return{value:e,source:t,stack:Ps(t)}}var ma=[],ha=0,cu=null,en=0,bt=[],St=0,rl=null,Ut=1,Ht="";function Qt(e,t){ma[ha++]=en,ma[ha++]=cu,cu=e,en=t}function tf(e,t,l){bt[St++]=Ut,bt[St++]=Ht,bt[St++]=rl,rl=e;var a=Ut;e=Ht;var n=32-it(a)-1;a&=~(1<<n),l+=1;var u=32-it(t)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Ut=1<<32-it(t)+n|l<<n|a,Ht=u+e}else Ut=1<<u|l<<n|a,Ht=e}function $i(e){e.return!==null&&(Qt(e,1),tf(e,1,0))}function Wi(e){for(;e===cu;)cu=ma[--ha],ma[ha]=null,en=ma[--ha],ma[ha]=null;for(;e===rl;)rl=bt[--St],bt[St]=null,Ht=bt[--St],bt[St]=null,Ut=bt[--St],bt[St]=null}function lf(e,t){bt[St++]=Ut,bt[St++]=Ht,bt[St++]=rl,Ut=t.id,Ht=t.overflow,rl=e}var Xe=null,Te=null,fe=!1,fl=null,jt=!1,Fi=Error(r(519));function ol(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw tn(xt(t,e)),Fi}function af(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[ke]=e,t[Fe]=a,l){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(l=0;l<Nn.length;l++)ce(Nn[l],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),yr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),gr(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&&(ce("beforetoggle",t),ce("toggle",t)),a.onScroll!=null&&ce("scroll",t),a.onScrollEnd!=null&&ce("scrollend",t),a.onClick!=null&&(t.onclick=Gt),t=!0):t=!1,t||ol(e,!0)}function nf(e){for(Xe=e.return;Xe;)switch(Xe.tag){case 5:case 31:case 13:jt=!1;return;case 27:case 3:jt=!0;return;default:Xe=Xe.return}}function va(e){if(e!==Xe)return!1;if(!fe)return nf(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&&ol(e),nf(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,Tl(e.type)?(e=bs,bs=null,Te=e):Te=t):Te=Xe?Nt(e.stateNode.nextSibling):null;return!0}function ql(){Te=Xe=null,fe=!1}function Ii(){var e=fl;return e!==null&&(lt===null?lt=e:lt.push.apply(lt,e),fl=null),e}function tn(e){fl===null?fl=[e]:fl.push(e)}var Pi=b(null),Yl=null,Zt=null;function dl(e,t,l){X(Pi,t._currentValue),t._currentValue=l}function Vt(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 c=n.child;u=u.firstContext;e:for(;u!==null;){var o=u;u=n;for(var v=0;v<t.length;v++)if(o.context===t[v]){u.lanes|=l,o=u.alternate,o!==null&&(o.lanes|=l),ec(u.return,l,e),a||(c=null);break e}u=o.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(r(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),ec(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function ya(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 c=n.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var o=n.type;ct(n.pendingProps.value,c.value)||(e!==null?e.push(o):e=[o])}}else if(n===ve.current){if(c=n.alternate,c===null)throw Error(r(387));c.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(!ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Gl(e){Yl=e,Zt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qe(e){return uf(Yl,e)}function ru(e,t){return Yl===null&&Gl(e),uf(e,t)}function uf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Zt===null){if(e===null)throw Error(r(308));Zt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Zt=Zt.next=t;return l}var Wh=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()})}},Fh=i.unstable_scheduleCallback,Ih=i.unstable_NormalPriority,He={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lc(){return{controller:new Wh,data:new Map,refCount:0}}function ln(e){e.refCount--,e.refCount===0&&Fh(Ih,function(){e.controller.abort()})}var an=null,ac=0,pa=0,ga=null;function Ph(e,t){if(an===null){var l=an=[];ac=0,pa=is(),ga={status:"pending",value:void 0,then:function(a){l.push(a)}}}return ac++,t.then(cf,cf),t}function cf(){if(--ac===0&&an!==null){ga!==null&&(ga.status="fulfilled");var e=an;an=null,pa=0,ga=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ev(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 sf=U.S;U.S=function(e,t){Vo=nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ph(e,t),sf!==null&&sf(e,t)};var kl=b(null);function nc(){var e=kl.current;return e!==null?e:Ee.pooledCache}function fu(e,t){t===null?X(kl,kl.current):X(kl,t.pool)}function rf(){var e=nc();return e===null?null:{parent:He._currentValue,pool:e}}var xa=Error(r(460)),uc=Error(r(474)),ou=Error(r(542)),du={then:function(){}};function ff(e){return e=e.status,e==="fulfilled"||e==="rejected"}function of(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,mf(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,mf(e),e}throw Ql=t,xa}}function Xl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ql=l,xa):l}}var Ql=null;function df(){if(Ql===null)throw Error(r(459));var e=Ql;return Ql=null,e}function mf(e){if(e===xa||e===ou)throw Error(r(483))}var ba=null,nn=0;function mu(e){var t=nn;return nn+=1,ba===null&&(ba=[]),of(ba,e,t)}function un(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function hu(e,t){throw t.$$typeof===w?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function hf(e){function t(j,g){if(e){var E=j.deletions;E===null?(j.deletions=[g],j.flags|=16):E.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=Xt(j,g),j.index=0,j.sibling=null,j}function u(j,g,E){return j.index=E,e?(E=j.alternate,E!==null?(E=E.index,E<g?(j.flags|=67108866,g):E):(j.flags|=67108866,g)):(j.flags|=1048576,g)}function c(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function o(j,g,E,H){return g===null||g.tag!==6?(g=Ki(E,j.mode,H),g.return=j,g):(g=n(g,E),g.return=j,g)}function v(j,g,E,H){var I=E.type;return I===L?D(j,g,E.props.children,H,E.key):g!==null&&(g.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===oe&&Xl(I)===g.type)?(g=n(g,E.props),un(g,E),g.return=j,g):(g=iu(E.type,E.key,E.props,null,j.mode,H),un(g,E),g.return=j,g)}function N(j,g,E,H){return g===null||g.tag!==4||g.stateNode.containerInfo!==E.containerInfo||g.stateNode.implementation!==E.implementation?(g=Ji(E,j.mode,H),g.return=j,g):(g=n(g,E.children||[]),g.return=j,g)}function D(j,g,E,H,I){return g===null||g.tag!==7?(g=Ll(E,j.mode,H,I),g.return=j,g):(g=n(g,E),g.return=j,g)}function B(j,g,E){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Ki(""+g,j.mode,E),g.return=j,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case G:return E=iu(g.type,g.key,g.props,null,j.mode,E),un(E,g),E.return=j,E;case O:return g=Ji(g,j.mode,E),g.return=j,g;case oe:return g=Xl(g),B(j,g,E)}if(Ue(g)||Ke(g))return g=Ll(g,j.mode,E,null),g.return=j,g;if(typeof g.then=="function")return B(j,mu(g),E);if(g.$$typeof===F)return B(j,ru(j,g),E);hu(j,g)}return null}function z(j,g,E,H){var I=g!==null?g.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return I!==null?null:o(j,g,""+E,H);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case G:return E.key===I?v(j,g,E,H):null;case O:return E.key===I?N(j,g,E,H):null;case oe:return E=Xl(E),z(j,g,E,H)}if(Ue(E)||Ke(E))return I!==null?null:D(j,g,E,H,null);if(typeof E.then=="function")return z(j,g,mu(E),H);if(E.$$typeof===F)return z(j,g,ru(j,E),H);hu(j,E)}return null}function _(j,g,E,H,I){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return j=j.get(E)||null,o(g,j,""+H,I);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case G:return j=j.get(H.key===null?E:H.key)||null,v(g,j,H,I);case O:return j=j.get(H.key===null?E:H.key)||null,N(g,j,H,I);case oe:return H=Xl(H),_(j,g,E,H,I)}if(Ue(H)||Ke(H))return j=j.get(E)||null,D(g,j,H,I,null);if(typeof H.then=="function")return _(j,g,E,mu(H),I);if(H.$$typeof===F)return _(j,g,E,ru(g,H),I);hu(g,H)}return null}function K(j,g,E,H){for(var I=null,de=null,W=g,ne=g=0,re=null;W!==null&&ne<E.length;ne++){W.index>ne?(re=W,W=null):re=W.sibling;var me=z(j,W,E[ne],H);if(me===null){W===null&&(W=re);break}e&&W&&me.alternate===null&&t(j,W),g=u(me,g,ne),de===null?I=me:de.sibling=me,de=me,W=re}if(ne===E.length)return l(j,W),fe&&Qt(j,ne),I;if(W===null){for(;ne<E.length;ne++)W=B(j,E[ne],H),W!==null&&(g=u(W,g,ne),de===null?I=W:de.sibling=W,de=W);return fe&&Qt(j,ne),I}for(W=a(W);ne<E.length;ne++)re=_(W,j,ne,E[ne],H),re!==null&&(e&&re.alternate!==null&&W.delete(re.key===null?ne:re.key),g=u(re,g,ne),de===null?I=re:de.sibling=re,de=re);return e&&W.forEach(function(Ml){return t(j,Ml)}),fe&&Qt(j,ne),I}function P(j,g,E,H){if(E==null)throw Error(r(151));for(var I=null,de=null,W=g,ne=g=0,re=null,me=E.next();W!==null&&!me.done;ne++,me=E.next()){W.index>ne?(re=W,W=null):re=W.sibling;var Ml=z(j,W,me.value,H);if(Ml===null){W===null&&(W=re);break}e&&W&&Ml.alternate===null&&t(j,W),g=u(Ml,g,ne),de===null?I=Ml:de.sibling=Ml,de=Ml,W=re}if(me.done)return l(j,W),fe&&Qt(j,ne),I;if(W===null){for(;!me.done;ne++,me=E.next())me=B(j,me.value,H),me!==null&&(g=u(me,g,ne),de===null?I=me:de.sibling=me,de=me);return fe&&Qt(j,ne),I}for(W=a(W);!me.done;ne++,me=E.next())me=_(W,j,ne,me.value,H),me!==null&&(e&&me.alternate!==null&&W.delete(me.key===null?ne:me.key),g=u(me,g,ne),de===null?I=me:de.sibling=me,de=me);return e&&W.forEach(function(oy){return t(j,oy)}),fe&&Qt(j,ne),I}function Se(j,g,E,H){if(typeof E=="object"&&E!==null&&E.type===L&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case G:e:{for(var I=E.key;g!==null;){if(g.key===I){if(I=E.type,I===L){if(g.tag===7){l(j,g.sibling),H=n(g,E.props.children),H.return=j,j=H;break e}}else if(g.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===oe&&Xl(I)===g.type){l(j,g.sibling),H=n(g,E.props),un(H,E),H.return=j,j=H;break e}l(j,g);break}else t(j,g);g=g.sibling}E.type===L?(H=Ll(E.props.children,j.mode,H,E.key),H.return=j,j=H):(H=iu(E.type,E.key,E.props,null,j.mode,H),un(H,E),H.return=j,j=H)}return c(j);case O:e:{for(I=E.key;g!==null;){if(g.key===I)if(g.tag===4&&g.stateNode.containerInfo===E.containerInfo&&g.stateNode.implementation===E.implementation){l(j,g.sibling),H=n(g,E.children||[]),H.return=j,j=H;break e}else{l(j,g);break}else t(j,g);g=g.sibling}H=Ji(E,j.mode,H),H.return=j,j=H}return c(j);case oe:return E=Xl(E),Se(j,g,E,H)}if(Ue(E))return K(j,g,E,H);if(Ke(E)){if(I=Ke(E),typeof I!="function")throw Error(r(150));return E=I.call(E),P(j,g,E,H)}if(typeof E.then=="function")return Se(j,g,mu(E),H);if(E.$$typeof===F)return Se(j,g,ru(j,E),H);hu(j,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,g!==null&&g.tag===6?(l(j,g.sibling),H=n(g,E),H.return=j,j=H):(l(j,g),H=Ki(E,j.mode,H),H.return=j,j=H),c(j)):l(j,g)}return function(j,g,E,H){try{nn=0;var I=Se(j,g,E,H);return ba=null,I}catch(W){if(W===xa||W===ou)throw W;var de=st(29,W,null,j.mode);return de.lanes=H,de.return=j,de}finally{}}}var Zl=hf(!0),vf=hf(!1),ml=!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 hl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function vl(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 c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,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;ml=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var v=o,N=v.next;v.next=null,c===null?u=N:c.next=N,c=v;var D=e.alternate;D!==null&&(D=D.updateQueue,o=D.lastBaseUpdate,o!==c&&(o===null?D.firstBaseUpdate=N:o.next=N,D.lastBaseUpdate=v))}if(u!==null){var B=n.baseState;c=0,D=N=v=null,o=u;do{var z=o.lane&-536870913,_=z!==o.lane;if(_?(se&z)===z:(a&z)===z){z!==0&&z===pa&&(rc=!0),D!==null&&(D=D.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var K=e,P=o;z=t;var Se=l;switch(P.tag){case 1:if(K=P.payload,typeof K=="function"){B=K.call(Se,B,z);break e}B=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=P.payload,z=typeof K=="function"?K.call(Se,B,z):K,z==null)break e;B=p({},B,z);break e;case 2:ml=!0}}z=o.callback,z!==null&&(e.flags|=64,_&&(e.flags|=8192),_=n.callbacks,_===null?n.callbacks=[z]:_.push(z))}else _={lane:z,tag:o.tag,payload:o.payload,callback:o.callback,next:null},D===null?(N=D=_,v=B):D=D.next=_,c|=z;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;_=o,o=_.next,_.next=null,n.lastBaseUpdate=_,n.shared.pending=null}}while(!0);D===null&&(v=B),n.baseState=v,n.firstBaseUpdate=N,n.lastBaseUpdate=D,u===null&&(n.shared.lanes=0),bl|=c,e.lanes=c,e.memoizedState=B}}function yf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function pf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)yf(l[e],t)}var Sa=b(null),vu=b(0);function gf(e,t){e=tl,X(vu,e),X(Sa,t),tl=e|t.baseLanes}function fc(){X(vu,tl),X(Sa,Sa.current)}function oc(){tl=vu.current,q(Sa),q(vu)}var rt=b(null),Et=null;function yl(e){var t=e.alternate;X(Ce,Ce.current&1),X(rt,e),Et===null&&(t===null||Sa.current!==null||t.memoizedState!==null)&&(Et=e)}function dc(e){X(Ce,Ce.current),X(rt,e),Et===null&&(Et=e)}function xf(e){e.tag===22?(X(Ce,Ce.current),X(rt,e),Et===null&&(Et=e)):pl()}function pl(){X(Ce,Ce.current),X(rt,rt.current)}function ft(e){q(rt),Et===e&&(Et=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||gs(l)||xs(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 Kt=0,ae=null,xe=null,Be=null,pu=!1,ja=!1,Vl=!1,gu=0,fn=0,Ea=null,tv=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(!ct(e[l],t[l]))return!1;return!0}function hc(e,t,l,a,n,u){return Kt=u,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?lo:Rc,Vl=!1,u=l(a,n),Vl=!1,ja&&(u=Sf(t,l,a,n)),bf(e),u}function bf(e){U.H=mn;var t=xe!==null&&xe.next!==null;if(Kt=0,Be=xe=ae=null,pu=!1,fn=0,Ea=null,t)throw Error(r(300));e===null||we||(e=e.dependencies,e!==null&&su(e)&&(we=!0))}function Sf(e,t,l,a){ae=e;var n=0;do{if(ja&&(Ea=null),fn=0,ja=!1,25<=n)throw Error(r(301));if(n+=1,Be=xe=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}U.H=ao,u=t(l,a)}while(ja);return u}function lv(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?on(t):t,e=e.useState()[0],(xe!==null?xe.memoizedState:null)!==e&&(ae.flags|=1024),t}function vc(){var e=gu!==0;return gu=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}Kt=0,Be=xe=ae=null,ja=!1,fn=gu=0,Ea=null}function We(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?ae.memoizedState=Be=e:Be=Be.next=e,Be}function De(){if(xe===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var t=Be===null?ae.memoizedState:Be.next;if(t!==null)Be=t,xe=e;else{if(e===null)throw ae.alternate===null?Error(r(467)):Error(r(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},Be===null?ae.memoizedState=Be=e:Be=Be.next=e}return Be}function xu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function on(e){var t=fn;return fn+=1,Ea===null&&(Ea=[]),e=of(Ea,e,t),t=ae,(Be===null?t.memoizedState:Be.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?lo:Rc),e}function bu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return on(e);if(e.$$typeof===F)return Qe(e)}throw Error(r(438,String(e)))}function gc(e){var t=null,l=ae.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ae.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=xu(),ae.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]=Ct;return t.index++,l}function Jt(e,t){return typeof t=="function"?t(e):t}function Su(e){var t=De();return xc(t,xe,e)}function xc(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 c=n.next;n.next=u.next,u.next=c}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var o=c=null,v=null,N=t,D=!1;do{var B=N.lane&-536870913;if(B!==N.lane?(se&B)===B:(Kt&B)===B){var z=N.revertLane;if(z===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),B===pa&&(D=!0);else if((Kt&z)===z){N=N.next,z===pa&&(D=!0);continue}else B={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},v===null?(o=v=B,c=u):v=v.next=B,ae.lanes|=z,bl|=z;B=N.action,Vl&&l(u,B),u=N.hasEagerState?N.eagerState:l(u,B)}else z={lane:B,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},v===null?(o=v=z,c=u):v=v.next=z,ae.lanes|=B,bl|=B;N=N.next}while(N!==null&&N!==t);if(v===null?c=u:v.next=o,!ct(u,e.memoizedState)&&(we=!0,D&&(l=ga,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=v,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 c=n=n.next;do u=e(u,c.action),c=c.next;while(c!==n);ct(u,t.memoizedState)||(we=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function jf(e,t,l){var a=ae,n=De(),u=fe;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!ct((xe||n).memoizedState,l);if(c&&(n.memoizedState=l,we=!0),n=n.queue,Ec(Tf.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Be!==null&&Be.memoizedState.tag&1){if(a.flags|=2048,Na(9,{destroy:void 0},Nf.bind(null,a,n,l,t),null),Ee===null)throw Error(r(349));u||(Kt&127)!==0||Ef(a,t,l)}return l}function Ef(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ae.updateQueue,t===null?(t=xu(),ae.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Nf(e,t,l,a){t.value=l,t.getSnapshot=a,zf(t)&&Af(e)}function Tf(e,t,l){return l(function(){zf(t)&&Af(e)})}function zf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ct(e,l)}catch{return!0}}function Af(e){var t=wl(e,2);t!==null&&at(t,e,2)}function Sc(e){var t=We();if(typeof e=="function"){var l=e;if(e=l(),Vl){il(!0);try{l()}finally{il(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:e},t}function _f(e,t,l,a){return e.baseState=l,xc(e,xe,typeof a=="function"?a:Jt)}function av(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(c){u.listeners.push(c)}};U.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Rf(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Rf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=U.T,c={};U.T=c;try{var o=l(n,a),v=U.S;v!==null&&v(c,o),Mf(e,t,o)}catch(N){jc(e,t,N)}finally{u!==null&&c.types!==null&&(u.types=c.types),U.T=u}}else try{u=l(n,a),Mf(e,t,u)}catch(N){jc(e,t,N)}}function Mf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Of(e,t,a)},function(a){return jc(e,t,a)}):Of(e,t,l)}function Of(e,t,l){t.status="fulfilled",t.value=l,Cf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Rf(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,Cf(t),t=t.next;while(t!==a)}e.action=null}function Cf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Df(e,t){return t}function Uf(e,t){if(fe){var l=Ee.formState;if(l!==null){e:{var a=ae;if(fe){if(Te){t:{for(var n=Te,u=jt;n.nodeType!==8;){if(!u){n=null;break t}if(n=Nt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Te=Nt(n.nextSibling),a=n.data==="F!";break e}}ol(a)}a=!1}a&&(t=l[0])}}return l=We(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Df,lastRenderedState:t},l.queue=a,l=Pf.bind(null,ae,a),a.dispatch=l,a=Sc(!1),u=_c.bind(null,ae,!1,a.queue),a=We(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=av.bind(null,ae,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Hf(e){var t=De();return Bf(t,xe,e)}function Bf(e,t,l){if(t=xc(e,t,Df)[0],e=Su(Jt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=on(t)}catch(c){throw c===xa?ou:c}else a=t;t=De();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ae.flags|=2048,Na(9,{destroy:void 0},nv.bind(null,n,l),null)),[a,u,e]}function nv(e,t){e.action=t}function wf(e){var t=De(),l=xe;if(l!==null)return Bf(t,l,e);De(),t=t.memoizedState,l=De();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Na(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ae.updateQueue,t===null&&(t=xu(),ae.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 Lf(){return De().memoizedState}function ju(e,t,l,a){var n=We();ae.flags|=e,n.memoizedState=Na(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;xe!==null&&a!==null&&mc(a,xe.memoizedState.deps)?n.memoizedState=Na(t,u,l,a):(ae.flags|=e,n.memoizedState=Na(1|t,u,l,a))}function qf(e,t){ju(8390656,8,e,t)}function Ec(e,t){Eu(2048,8,e,t)}function uv(e){ae.flags|=4;var t=ae.updateQueue;if(t===null)t=xu(),ae.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Yf(e){var t=De().memoizedState;return uv({ref:t,nextImpl:e}),function(){if((he&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Gf(e,t){return Eu(4,2,e,t)}function kf(e,t){return Eu(4,4,e,t)}function Xf(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 Qf(e,t,l){l=l!=null?l.concat([e]):null,Eu(4,4,Xf.bind(null,t,e),l)}function Nc(){}function Zf(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 Vf(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(),Vl){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a}function Tc(e,t,l){return l===void 0||(Kt&1073741824)!==0&&(se&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Jo(),ae.lanes|=e,bl|=e,l)}function Kf(e,t,l,a){return ct(l,t)?l:Sa.current!==null?(e=Tc(e,l,a),ct(e,t)||(we=!0),e):(Kt&42)===0||(Kt&1073741824)!==0&&(se&261930)===0?(we=!0,e.memoizedState=l):(e=Jo(),ae.lanes|=e,bl|=e,t)}function Jf(e,t,l,a,n){var u=k.p;k.p=u!==0&&8>u?u:8;var c=U.T,o={};U.T=o,_c(e,!1,t,l);try{var v=n(),N=U.S;if(N!==null&&N(o,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var D=ev(v,a);dn(e,t,D,mt(e))}else dn(e,t,a,mt(e))}catch(B){dn(e,t,{then:function(){},status:"rejected",reason:B},mt())}finally{k.p=u,c!==null&&o.types!==null&&(c.types=o.types),U.T=c}}function iv(){}function zc(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=$f(e).queue;Jf(e,n,t,ee,l===null?iv:function(){return Wf(e),l(a)})}function $f(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:ee},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wf(e){var t=$f(e);t.next===null&&(t=e.alternate.memoizedState),dn(e,t.next.queue,{},mt())}function Ac(){return Qe(Rn)}function Ff(){return De().memoizedState}function If(){return De().memoizedState}function cv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=mt();e=hl(l);var a=vl(t,e,l);a!==null&&(at(a,t,l),cn(a,t,l)),t={cache:lc()},e.payload=t;return}t=t.return}}function sv(e,t,l){var a=mt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Nu(e)?eo(t,l):(l=Zi(e,t,l,a),l!==null&&(at(l,e,a),to(l,t,a)))}function Pf(e,t,l){var a=mt();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))eo(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,o=u(c,l);if(n.hasEagerState=!0,n.eagerState=o,ct(o,c))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),to(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===ae||t!==null&&t===ae}function eo(e,t){ja=pu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function to(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 lo={readContext:Qe,use:bu,useCallback:function(e,t){return We().memoizedState=[e,t===void 0?null:t],e},useContext:Qe,useEffect:qf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ju(4194308,4,Xf.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(Vl){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=We();if(l!==void 0){var n=l(t);if(Vl){il(!0);try{l(t)}finally{il(!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=sv.bind(null,ae,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=Pf.bind(null,ae,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=Jf.bind(null,ae,e.queue,!0,!1),We().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ae,n=We();if(fe){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ee===null)throw Error(r(349));(se&127)!==0||Ef(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,qf(Tf.bind(null,a,u,e),[e]),a.flags|=2048,Na(9,{destroy:void 0},Nf.bind(null,a,u,l,t),null),l},useId:function(){var e=We(),t=Ee.identifierPrefix;if(fe){var l=Ht,a=Ut;l=(a&~(1<<32-it(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=gu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=tv++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ac,useFormState:Uf,useActionState:Uf,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,ae,!0,l),l.dispatch=t,[e,t]},useMemoCache:gc,useCacheRefresh:function(){return We().memoizedState=cv.bind(null,ae)},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:Zf,useContext:Qe,useEffect:Ec,useImperativeHandle:Qf,useInsertionEffect:Gf,useLayoutEffect:kf,useMemo:Vf,useReducer:Su,useRef:Lf,useState:function(){return Su(Jt)},useDebugValue:Nc,useDeferredValue:function(e,t){var l=De();return Kf(l,xe.memoizedState,e,t)},useTransition:function(){var e=Su(Jt)[0],t=De().memoizedState;return[typeof e=="boolean"?e:on(e),t]},useSyncExternalStore:jf,useId:Ff,useHostTransitionStatus:Ac,useFormState:Hf,useActionState:Hf,useOptimistic:function(e,t){var l=De();return _f(l,xe,e,t)},useMemoCache:gc,useCacheRefresh:If};Rc.useEffectEvent=Yf;var ao={readContext:Qe,use:bu,useCallback:Zf,useContext:Qe,useEffect:Ec,useImperativeHandle:Qf,useInsertionEffect:Gf,useLayoutEffect:kf,useMemo:Vf,useReducer:bc,useRef:Lf,useState:function(){return bc(Jt)},useDebugValue:Nc,useDeferredValue:function(e,t){var l=De();return xe===null?Tc(l,e,t):Kf(l,xe.memoizedState,e,t)},useTransition:function(){var e=bc(Jt)[0],t=De().memoizedState;return[typeof e=="boolean"?e:on(e),t]},useSyncExternalStore:jf,useId:Ff,useHostTransitionStatus:Ac,useFormState:wf,useActionState:wf,useOptimistic:function(e,t){var l=De();return xe!==null?_f(l,xe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:gc,useCacheRefresh:If};ao.useEffectEvent=Yf;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=mt(),n=hl(a);n.payload=t,l!=null&&(n.callback=l),t=vl(e,n,a),t!==null&&(at(t,e,a),cn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=mt(),n=hl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=vl(e,n,a),t!==null&&(at(t,e,a),cn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=mt(),a=hl(l);a.tag=2,t!=null&&(a.callback=t),t=vl(e,a,l),t!==null&&(at(t,e,l),cn(t,e,l))}};function no(e,t,l,a,n,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!Ia(l,a)||!Ia(n,u):!0}function uo(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 Kl(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 io(e){lu(e)}function co(e){console.error(e)}function so(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 ro(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=hl(l),l.tag=3,l.payload={element:null},l.callback=function(){Tu(e,t)},l}function fo(e){return e=hl(e),e.tag=3,e}function oo(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(){ro(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){ro(t,l,a),typeof n!="function"&&(Sl===null?Sl=new Set([this]):Sl.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function rv(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&ya(t,l,n,!0),l=rt.current,l!==null){switch(l.tag){case 31:case 13:return Et===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=rt.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(xt(e,l)))):(a!==Fi&&(t=Error(r(423),{cause:a}),tn(xt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=xt(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=xt(u,l),Sn===null?Sn=[u]:Sn.push(u),Me!==4&&(Me=2),t===null)return!0;a=xt(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"&&(Sl===null||!Sl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=fo(n),oo(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?vf(t,null,l,a):Zl(t,e.child,l,a)}function mo(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var o in a)o!=="ref"&&(c[o]=a[o])}else c=a;return Gl(t),a=hc(e,t,l,c,u,n),o=vc(),e!==null&&!we?(yc(e,t,n),$t(e,t,n)):(fe&&o&&$i(t),t.flags|=1,Ze(e,t,a,n),t.child)}function ho(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,vo(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,!Gc(e,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:Ia,l(c,a)&&e.ref===t.ref)return $t(e,t,n)}return t.flags|=1,e=Xt(u,a),e.ref=t.ref,e.return=t,t.child=e}function vo(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,Gc(e,n))(e.flags&131072)!==0&&(we=!0);else return t.lanes=e.lanes,$t(e,t,n)}return Uc(e,t,l,a,n)}function yo(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 po(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fu(t,u!==null?u.cachePool:null),u!==null?gf(t,u):fc(),xf(t);else return a=t.lanes=536870912,po(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(fu(t,u.cachePool),gf(t,u),pl(),t.memoizedState=null):(e!==null&&fu(t,null),fc(),pl());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 po(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&&fu(t,null),fc(),xf(t),e!==null&&ya(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 go(e,t,l){return Zl(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,jt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:rl!==null?{id:Ut,overflow:Ht}:null,retryLane:536870912,hydrationErrors:null},l=Pr(e),l.return=t,t.child=l,Xe=t,Te=null)):e=null,e===null)throw ol(t);return t.lanes=536870912,null}return zu(t,a)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(dc(t),n)if(t.flags&256)t.flags&=-257,t=go(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||ya(e,t,l,!1),n=(l&e.childLanes)!==0,we||n){if(a=Ee,a!==null&&(c=ir(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,wl(e,c),at(a,e,c),Dc;wu(),t=go(e,t,l)}else e=u.treeContext,Te=Nt(c.nextSibling),Xe=t,fe=!0,fl=null,jt=!1,e!==null&&lf(t,e),t=zu(t,a),t.flags|=4096;return t}return e=Xt(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 Gl(t),l=hc(e,t,l,a,void 0,n),a=vc(),e!==null&&!we?(yc(e,t,n),$t(e,t,n)):(fe&&a&&$i(t),t.flags|=1,Ze(e,t,l,n),t.child)}function xo(e,t,l,a,n,u){return Gl(t),t.updateQueue=null,l=Sf(t,a,l,n),bf(e),a=vc(),e!==null&&!we?(yc(e,t,u),$t(e,t,u)):(fe&&a&&$i(t),t.flags|=1,Ze(e,t,l,u),t.child)}function bo(e,t,l,a,n){if(Gl(t),t.stateNode===null){var u=da,c=l.contextType;typeof c=="object"&&c!==null&&(u=Qe(c)),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),c=l.contextType,u.context=typeof c=="object"&&c!==null?Qe(c):da,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Mc(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==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 o=t.memoizedProps,v=Kl(l,o);u.props=v;var N=u.context,D=l.contextType;c=da,typeof D=="object"&&D!==null&&(c=Qe(D));var B=l.getDerivedStateFromProps;D=typeof B=="function"||typeof u.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,D||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o||N!==c)&&uo(t,u,a,c),ml=!1;var z=t.memoizedState;u.state=z,rn(t,a,u,n),sn(),N=t.memoizedState,o||z!==N||ml?(typeof B=="function"&&(Mc(t,l,B,a),N=t.memoizedState),(v=ml||no(t,l,v,a,z,N,c))?(D||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=N),u.props=a,u.state=N,u.context=c,a=v):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,cc(e,t),c=t.memoizedProps,D=Kl(l,c),u.props=D,B=t.pendingProps,z=u.context,N=l.contextType,v=da,typeof N=="object"&&N!==null&&(v=Qe(N)),o=l.getDerivedStateFromProps,(N=typeof o=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==B||z!==v)&&uo(t,u,a,v),ml=!1,z=t.memoizedState,u.state=z,rn(t,a,u,n),sn();var _=t.memoizedState;c!==B||z!==_||ml||e!==null&&e.dependencies!==null&&su(e.dependencies)?(typeof o=="function"&&(Mc(t,l,o,a),_=t.memoizedState),(D=ml||no(t,l,D,a,z,_,v)||e!==null&&e.dependencies!==null&&su(e.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,_,v),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,_,v)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=_),u.props=a,u.state=_,u.context=v,a=D):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===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=Zl(t,e.child,null,n),t.child=Zl(t,null,l,n)):Ze(e,t,l,n),t.memoizedState=u.state,e=t.child):e=$t(e,t,n),e}function So(e,t,l,a){return ql(),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:rf()}}function wc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=dt),e}function jo(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(Ce.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(fe){if(n?yl(t):pl(),(e=Te)?(e=Md(e,jt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:rl!==null?{id:Ut,overflow:Ht}:null,retryLane:536870912,hydrationErrors:null},l=Pr(e),l.return=t,t.child=l,Xe=t,Te=null)):e=null,e===null)throw ol(t);return xs(e)?t.lanes=32:t.lanes=536870912,null}var o=a.children;return a=a.fallback,n?(pl(),n=t.mode,o=_u({mode:"hidden",children:o},n),a=Ll(a,n,l,null),o.return=t,a.return=t,o.sibling=a,t.child=o,a=t.child,a.memoizedState=Bc(l),a.childLanes=wc(e,c,l),t.memoizedState=Hc,hn(null,a)):(yl(t),Lc(t,o))}var v=e.memoizedState;if(v!==null&&(o=v.dehydrated,o!==null)){if(u)t.flags&256?(yl(t),t.flags&=-257,t=qc(e,t,l)):t.memoizedState!==null?(pl(),t.child=e.child,t.flags|=128,t=null):(pl(),o=a.fallback,n=t.mode,a=_u({mode:"visible",children:a.children},n),o=Ll(o,n,l,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,Zl(t,e.child,null,l),a=t.child,a.memoizedState=Bc(l),a.childLanes=wc(e,c,l),t.memoizedState=Hc,t=hn(null,a));else if(yl(t),xs(o)){if(c=o.nextSibling&&o.nextSibling.dataset,c)var N=c.dgst;c=N,a=Error(r(419)),a.stack="",a.digest=c,tn({value:a,source:null,stack:null}),t=qc(e,t,l)}else if(we||ya(e,t,l,!1),c=(l&e.childLanes)!==0,we||c){if(c=Ee,c!==null&&(a=ir(c,l),a!==0&&a!==v.retryLane))throw v.retryLane=a,wl(e,a),at(c,e,a),Dc;gs(o)||wu(),t=qc(e,t,l)}else gs(o)?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,Te=Nt(o.nextSibling),Xe=t,fe=!0,fl=null,jt=!1,e!==null&&lf(t,e),t=Lc(t,a.children),t.flags|=4096);return t}return n?(pl(),o=a.fallback,n=t.mode,v=e.child,N=v.sibling,a=Xt(v,{mode:"hidden",children:a.children}),a.subtreeFlags=v.subtreeFlags&65011712,N!==null?o=Xt(N,o):(o=Ll(o,n,l,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,hn(null,a),a=t.child,o=e.child.memoizedState,o===null?o=Bc(l):(n=o.cachePool,n!==null?(v=He._currentValue,n=n.parent!==v?{parent:v,pool:v}:n):n=rf(),o={baseLanes:o.baseLanes|l,cachePool:n}),a.memoizedState=o,a.childLanes=wc(e,c,l),t.memoizedState=Hc,hn(e.child,a)):(yl(t),l=e.child,e=l.sibling,l=Xt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.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=st(22,e,null,t),e.lanes=0,e}function qc(e,t,l){return Zl(t,e.child,null,l),e=Lc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Eo(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 c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=u)}function No(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=Ce.current,o=(c&2)!==0;if(o?(c=c&1|2,t.flags|=128):c&=1,X(Ce,c),Ze(e,t,a,l),a=fe?en:0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Eo(e,l,t);else if(e.tag===19)Eo(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 $t(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),bl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ya(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=Xt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Xt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Gc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&su(e)))}function ov(e,t,l){switch(t.tag){case 3:$e(t,t.stateNode.containerInfo),dl(t,He,e.memoizedState.cache),ql();break;case 27:case 5:qa(t);break;case 4:$e(t,t.stateNode.containerInfo);break;case 10:dl(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?(yl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?jo(e,t,l):(yl(t),e=$t(e,t,l),e!==null?e.sibling:null);yl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(ya(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return No(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),X(Ce,Ce.current),a)break;return null;case 22:return t.lanes=0,yo(e,t,l,t.pendingProps);case 24:dl(t,He,e.memoizedState.cache)}return $t(e,t,l)}function To(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)we=!0;else{if(!Gc(e,l)&&(t.flags&128)===0)return we=!1,ov(e,t,l);we=(e.flags&131072)!==0}else we=!1,fe&&(t.flags&1048576)!==0&&tf(t,en,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Xl(t.elementType),t.type=e,typeof e=="function")Vi(e)?(a=Kl(e,a),t.tag=1,t=bo(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===Q){t.tag=11,t=mo(null,t,e,a,l);break e}else if(n===V){t.tag=14,t=ho(null,t,e,a,l);break e}}throw t=vt(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=Kl(a,t.pendingProps),bo(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 c=t.memoizedState;if(a=c.cache,dl(t,He,a),a!==u.cache&&tc(t,[He],l,!0),sn(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=So(e,t,a,l);break e}else if(a!==n){n=xt(Error(r(424)),t),tn(n),t=So(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=Nt(e.firstChild),Xe=t,fe=!0,fl=null,jt=!0,l=vf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ql(),a===n){t=$t(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(ue.current).createElement(l),a[ke]=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,ue.current),Xe=t,jt=!0,n=Te,Tl(t.type)?(bs=n,Te=Nt(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,jt),a!==null?(t.stateNode=a,Xe=t,Te=Nt(a.firstChild),jt=!1,n=!0):n=!1),n||ol(t)),qa(t),n=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,vs(n,u)?a=null:c!==null&&vs(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=hc(e,t,lv,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=kv(l,t.pendingProps,jt),l!==null?(t.stateNode=l,Xe=t,Te=null,e=!0):e=!1),e||ol(t)),null;case 13:return jo(e,t,l);case 4:return $e(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Zl(t,null,a,l):Ze(e,t,a,l),t.child;case 11:return mo(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,dl(t,t.type,a.value),Ze(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Gl(t),n=Qe(n),a=a(n),t.flags|=1,Ze(e,t,a,l),t.child;case 14:return ho(e,t,t.type,t.pendingProps,l);case 15:return vo(e,t,t.type,t.pendingProps,l);case 19:return No(e,t,l);case 31:return fv(e,t,l);case 22:return yo(e,t,l,t.pendingProps);case 24:return Gl(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),dl(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),dl(t,He,a)):(a=u.cache,dl(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 Wt(e){e.flags|=4}function kc(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(Io())e.flags|=8192;else throw Ql=du,uc}else e.flags&=-16777217}function zo(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Gd(t))if(Io())e.flags|=8192;else throw Ql=du,uc}function Ru(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ar():536870912,e.lanes|=t,_a|=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 dv(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),Vt(He),Oe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(va(t)?Wt(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?(Wt(t),u!==null?(ze(t),zo(t,u)):(ze(t),kc(t,n,null,a,l))):u?u!==e.memoizedState?(Wt(t),ze(t),zo(t,u)):(ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Wt(t),ze(t),kc(t,n,e,a,l)),null;case 27:if(Yn(t),l=ue.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Wt(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return ze(t),null}e=$.current,va(t)?af(t):(e=Dd(n,a,l),t.stateNode=e,Wt(t))}return ze(t),null;case 5:if(Yn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Wt(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return ze(t),null}if(u=$.current,va(t))af(t);else{var c=Qu(ue.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[ke]=t,u[Fe]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.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&&Wt(t)}}return ze(t),kc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Wt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,va(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[ke]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||jd(e.nodeValue,l)),e||ol(t,!0)}else e=Qu(e).createTextNode(a),e[ke]=t,t.stateNode=e}return ze(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=va(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[ke]=t}else ql(),(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=va(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[ke]=t}else ql(),(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&&fs(t.stateNode.containerInfo),ze(t),null;case 10:return Vt(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 X(Ce,Ce.current&1|2),fe&&Qt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&nt()>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*nt()-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=nt(),e.sibling=null,l=Ce.current,X(Ce,n?l&1|2:l&1),fe&&Qt(t,a.treeForkCount),e):(ze(t),null);case 22:case 23:return ft(t),oc(),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(kl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Vt(He),ze(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function mv(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 Vt(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));ql()}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));ql()}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 Vt(t.type),null;case 22:case 23:return ft(t),oc(),e!==null&&q(kl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vt(He),null;case 25:return null;default:return null}}function Ao(e,t){switch(Wi(t),t.tag){case 3:Vt(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:Vt(t.type);break;case 22:case 23:ft(t),oc(),e!==null&&q(kl);break;case 24:Vt(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,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(o){pe(t,t.return,o)}}function gl(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 c=a.inst,o=c.destroy;if(o!==void 0){c.destroy=void 0,n=t;var v=l,N=o;try{N()}catch(D){pe(n,v,D)}}}a=a.next}while(a!==u)}}catch(D){pe(t,t.return,D)}}function _o(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{pf(t,l)}catch(a){pe(e,e.return,a)}}}function Ro(e,t,l){l.props=Kl(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 Bt(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 Mo(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;Hv(a,e.type,l,t),a[Fe]=t}catch(n){pe(e,e.return,n)}}function Oo(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tl(e.type)||e.tag===4}function Qc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oo(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&&Tl(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&&Tl(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&&Tl(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 Co(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[ke]=e,t[Fe]=l}catch(u){pe(e,e.return,u)}}var Ft=!1,Le=!1,Vc=!1,Do=typeof WeakSet=="function"?WeakSet:Set,Ge=null;function hv(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 c=0,o=-1,v=-1,N=0,D=0,B=e,z=null;t:for(;;){for(var _;B!==l||n!==0&&B.nodeType!==3||(o=c+n),B!==u||a!==0&&B.nodeType!==3||(v=c+a),B.nodeType===3&&(c+=B.nodeValue.length),(_=B.firstChild)!==null;)z=B,B=_;for(;;){if(B===e)break t;if(z===l&&++N===n&&(o=c),z===u&&++D===a&&(v=c),(_=B.nextSibling)!==null)break;B=z,z=B.parentNode}B=_}l=o===-1||v===-1?null:{start:o,end:v}}else l=null}l=l||{start:0,end:0}}else l=null;for(hs={focusedElem:e,selectionRange:l},Fu=!1,Ge=t;Ge!==null;)if(t=Ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ge=e;else for(;Ge!==null;){switch(t=Ge,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 K=Kl(l.type,n);e=a.getSnapshotBeforeUpdate(K,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,Ge=e;break}Ge=t.return}}function Uo(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Pt(e,l),a&4&&yn(5,l);break;case 1:if(Pt(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){pe(l,l.return,c)}else{var n=Kl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){pe(l,l.return,c)}}a&64&&_o(l),a&512&&pn(l,l.return);break;case 3:if(Pt(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{pf(e,t)}catch(c){pe(l,l.return,c)}}break;case 27:t===null&&a&4&&Co(l);case 26:case 5:Pt(e,l),t===null&&a&4&&Mo(l),a&512&&pn(l,l.return);break;case 12:Pt(e,l);break;case 31:Pt(e,l),a&4&&wo(e,l);break;case 13:Pt(e,l),a&4&&Lo(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Ev.bind(null,l),Xv(e,l))));break;case 22:if(a=l.memoizedState!==null||Ft,!a){t=t!==null&&t.memoizedState!==null||Le,n=Ft;var u=Le;Ft=a,(Le=t)&&!u?el(e,l,(l.subtreeFlags&8772)!==0):Pt(e,l),Ft=n,Le=u}break;case 30:break;default:Pt(e,l)}}function Ho(e){var t=e.alternate;t!==null&&(e.alternate=null,Ho(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 It(e,t,l){for(l=l.child;l!==null;)Bo(e,t,l),l=l.sibling}function Bo(e,t,l){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(Ya,l)}catch{}switch(l.tag){case 26:Le||Bt(l,t),It(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Le||Bt(l,t);var a=Ae,n=Pe;Tl(l.type)&&(Ae=l.stateNode,Pe=!1),It(e,t,l),zn(l.stateNode),Ae=a,Pe=n;break;case 5:Le||Bt(l,t);case 6:if(a=Ae,n=Pe,Ae=null,It(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),Ba(e)):_d(Ae,l.stateNode));break;case 4:a=Ae,n=Pe,Ae=l.stateNode.containerInfo,Pe=!0,It(e,t,l),Ae=a,Pe=n;break;case 0:case 11:case 14:case 15:gl(2,l,t),Le||gl(4,l,t),It(e,t,l);break;case 1:Le||(Bt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Ro(l,t,a)),It(e,t,l);break;case 21:It(e,t,l);break;case 22:Le=(a=Le)||l.memoizedState!==null,It(e,t,l),Le=a;break;default:It(e,t,l)}}function wo(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ba(e)}catch(l){pe(t,t.return,l)}}}function Lo(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ba(e)}catch(l){pe(t,t.return,l)}}function vv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Do),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Do),t;default:throw Error(r(435,e.tag))}}function Ou(e,t){var l=vv(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Nv.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,c=t,o=c;e:for(;o!==null;){switch(o.tag){case 27:if(Tl(o.type)){Ae=o.stateNode,Pe=!1;break e}break;case 5:Ae=o.stateNode,Pe=!1;break e;case 3:case 4:Ae=o.stateNode.containerInfo,Pe=!0;break e}o=o.return}if(Ae===null)throw Error(r(160));Bo(u,c,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;)qo(t,e),t=t.sibling}var _t=null;function qo(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&&(gl(3,e,e.return),yn(3,e),gl(5,e,e.return));break;case 1:et(t,e),tt(e),a&512&&(Le||l===null||Bt(l,l.return)),a&64&&Ft&&(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=_t;if(et(t,e),tt(e),a&512&&(Le||l===null||Bt(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[ke]||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[ke]=e,Ye(u),a=u;break e;case"link":var c=qd("link","href",n).get(a+(l.href||""));if(c){for(var o=0;o<c.length;o++)if(u=c[o],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)){c.splice(o,1);break t}}u=n.createElement(a),Ve(u,a,l),n.head.appendChild(u);break;case"meta":if(c=qd("meta","content",n).get(a+(l.content||""))){for(o=0;o<c.length;o++)if(u=c[o],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)){c.splice(o,1);break t}}u=n.createElement(a),Ve(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[ke]=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||Bt(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||Bt(l,l.return)),e.flags&32){n=e.stateNode;try{ua(n,"")}catch(K){pe(e,e.return,K)}}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(K){pe(e,e.return,K)}}break;case 3:if(Ku=null,n=_t,_t=Zu(t.containerInfo),et(t,e),_t=n,tt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ba(t.containerInfo)}catch(K){pe(e,e.return,K)}Vc&&(Vc=!1,Yo(e));break;case 4:a=_t,_t=Zu(e.stateNode.containerInfo),et(t,e),tt(e),_t=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=nt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ou(e,a)));break;case 22:n=e.memoizedState!==null;var v=l!==null&&l.memoizedState!==null,N=Ft,D=Le;if(Ft=N||n,Le=D||v,et(t,e),Le=D,Ft=N,tt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||v||Ft||Le||Jl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){v=l=t;try{if(u=v.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{o=v.stateNode;var B=v.memoizedProps.style,z=B!=null&&B.hasOwnProperty("display")?B.display:null;o.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(K){pe(v,v.return,K)}}}else if(t.tag===6){if(l===null){v=t;try{v.stateNode.nodeValue=n?"":v.memoizedProps}catch(K){pe(v,v.return,K)}}}else if(t.tag===18){if(l===null){v=t;try{var _=v.stateNode;n?Rd(_,!0):Rd(v.stateNode,!1)}catch(K){pe(v,v.return,K)}}}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(Oo(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 c=l.stateNode;l.flags&32&&(ua(c,""),l.flags&=-33);var o=Qc(e);Mu(e,o,c);break;case 3:case 4:var v=l.stateNode.containerInfo,N=Qc(e);Zc(e,N,v);break;default:throw Error(r(161))}}catch(D){pe(e,e.return,D)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yo(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Yo(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Pt(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Uo(e,t.alternate,t),t=t.sibling}function Jl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:gl(4,t,t.return),Jl(t);break;case 1:Bt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Ro(t,t.return,l),Jl(t);break;case 27:zn(t.stateNode);case 26:case 5:Bt(t,t.return),Jl(t);break;case 22:t.memoizedState===null&&Jl(t);break;case 30:Jl(t);break;default:Jl(t)}e=e.sibling}}function el(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:el(n,u,l),yn(4,u);break;case 1:if(el(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(N){pe(a,a.return,N)}if(a=u,n=a.updateQueue,n!==null){var o=a.stateNode;try{var v=n.shared.hiddenCallbacks;if(v!==null)for(n.shared.hiddenCallbacks=null,n=0;n<v.length;n++)yf(v[n],o)}catch(N){pe(a,a.return,N)}}l&&c&64&&_o(u),pn(u,u.return);break;case 27:Co(u);case 26:case 5:el(n,u,l),l&&a===null&&c&4&&Mo(u),pn(u,u.return);break;case 12:el(n,u,l);break;case 31:el(n,u,l),l&&c&4&&wo(n,u);break;case 13:el(n,u,l),l&&c&4&&Lo(n,u);break;case 22:u.memoizedState===null&&el(n,u,l),pn(u,u.return);break;case 30:break;default:el(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 Rt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Go(e,t,l,a),t=t.sibling}function Go(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Rt(e,t,l,a),n&2048&&yn(9,t);break;case 1:Rt(e,t,l,a);break;case 3:Rt(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){Rt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,o=u.onPostCommit;typeof o=="function"&&o(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(v){pe(t,t.return,v)}}else Rt(e,t,l,a);break;case 31:Rt(e,t,l,a);break;case 13:Rt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?Rt(e,t,l,a):gn(e,t):u._visibility&2?Rt(e,t,l,a):(u._visibility|=2,Ta(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Kc(c,t);break;case 24:Rt(e,t,l,a),n&2048&&Jc(t.alternate,t);break;default:Rt(e,t,l,a)}}function Ta(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,o=l,v=a,N=c.flags;switch(c.tag){case 0:case 11:case 15:Ta(u,c,o,v,n),yn(8,c);break;case 23:break;case 22:var D=c.stateNode;c.memoizedState!==null?D._visibility&2?Ta(u,c,o,v,n):gn(u,c):(D._visibility|=2,Ta(u,c,o,v,n)),n&&N&2048&&Kc(c.alternate,c);break;case 24:Ta(u,c,o,v,n),n&&N&2048&&Jc(c.alternate,c);break;default:Ta(u,c,o,v,n)}t=t.sibling}}function gn(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:gn(l,a),n&2048&&Kc(a.alternate,a);break;case 24:gn(l,a),n&2048&&Jc(a.alternate,a);break;default:gn(l,a)}t=t.sibling}}var xn=8192;function za(e,t,l){if(e.subtreeFlags&xn)for(e=e.child;e!==null;)ko(e,t,l),e=e.sibling}function ko(e,t,l){switch(e.tag){case 26:za(e,t,l),e.flags&xn&&e.memoizedState!==null&&ty(l,_t,e.memoizedState,e.memoizedProps);break;case 5:za(e,t,l);break;case 3:case 4:var a=_t;_t=Zu(e.stateNode.containerInfo),za(e,t,l),_t=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=xn,xn=16777216,za(e,t,l),xn=a):za(e,t,l));break;default:za(e,t,l)}}function Xo(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];Ge=a,Zo(a,e)}Xo(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Qo(e),e=e.sibling}function Qo(e){switch(e.tag){case 0:case 11:case 15:bn(e),e.flags&2048&&gl(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];Ge=a,Zo(a,e)}Xo(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:gl(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 Zo(e,t){for(;Ge!==null;){var l=Ge;switch(l.tag){case 0:case 11:case 15:gl(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,Ge=a;else e:for(l=e;Ge!==null;){a=Ge;var n=a.sibling,u=a.return;if(Ho(a),a===l){Ge=null;break e}if(n!==null){n.return=u,Ge=n;break e}Ge=u}}}var yv={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}},pv=typeof WeakMap=="function"?WeakMap:Map,he=0,Ee=null,ie=null,se=0,ye=0,ot=null,xl=!1,Aa=!1,$c=!1,tl=0,Me=0,bl=0,$l=0,Wc=0,dt=0,_a=0,Sn=null,lt=null,Fc=!1,Du=0,Vo=0,Uu=1/0,Hu=null,Sl=null,qe=0,jl=null,Ra=null,ll=0,Ic=0,Pc=null,Ko=null,jn=0,es=null;function mt(){return(he&2)!==0&&se!==0?se&-se:U.T!==null?is():cr()}function Jo(){if(dt===0)if((se&536870912)===0||fe){var e=Xn;Xn<<=1,(Xn&3932160)===0&&(Xn=262144),dt=e}else dt=536870912;return e=rt.current,e!==null&&(e.flags|=32),dt}function at(e,t,l){(e===Ee&&(ye===2||ye===9)||e.cancelPendingCommit!==null)&&(Ma(e,0),El(e,se,dt,!1)),ka(e,l),((he&2)===0||e!==Ee)&&(e===Ee&&((he&2)===0&&($l|=l),Me===4&&El(e,se,dt,!1)),wt(e))}function $o(e,t,l){if((he&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ga(e,t),n=a?bv(e,t):ls(e,t,!0),u=a;do{if(n===0){Aa&&!a&&El(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 c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var o=e;n=Sn;var v=o.current.memoizedState.isDehydrated;if(v&&(Ma(o,c).flags|=256),c=ls(o,c,!1),c!==2){if($c&&!v){o.errorRecoveryDisabledLanes|=u,$l|=u,n=4;break e}u=lt,lt=n,u!==null&&(lt===null?lt=u:lt.push.apply(lt,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){Ma(e,0),El(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:El(a,t,dt,!xl);break e;case 2:lt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Du+300-nt(),10<n)){if(El(a,t,dt,!xl),Zn(a,0,!0)!==0)break e;ll=t,a.timeoutHandle=zd(Wo.bind(null,a,l,lt,Hu,Fc,t,dt,$l,_a,xl,u,"Throttled",-0,0),n);break e}Wo(a,l,lt,Hu,Fc,t,dt,$l,_a,xl,u,null,-0,0)}}break}while(!0);wt(e)}function Wo(e,t,l,a,n,u,c,o,v,N,D,B,z,_){if(e.timeoutHandle=-1,B=t.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gt},ko(t,u,B);var K=(u&62914560)===u?Du-nt():(u&4194048)===u?Vo-nt():0;if(K=ly(B,K),K!==null){ll=u,e.cancelPendingCommit=K(nd.bind(null,e,t,u,l,a,n,c,o,v,D,B,null,z,_)),El(e,u,c,!N);return}}nd(e,t,u,l,a,n,c,o,v)}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(!ct(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 El(e,t,l,a){t&=~Wc,t&=~$l,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-it(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&nr(e,l,t)}function Bu(){return(he&6)===0?(En(0),!1):!0}function ts(){if(ie!==null){if(ye===0)var e=ie.return;else e=ie,Zt=Yl=null,pc(e),ba=null,nn=0,e=ie;for(;e!==null;)Ao(e.alternate,e),e=e.return;ie=null}}function Ma(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Lv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),ll=0,ts(),Ee=e,ie=l=Xt(e.current,null),se=t,ye=0,ot=null,xl=!1,Aa=Ga(e,t),$c=!1,_a=dt=Wc=$l=bl=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-it(a),u=1<<n;t|=e[n],a&=~u}return tl=t,au(),l}function Fo(e,t){ae=null,U.H=mn,t===xa||t===ou?(t=df(),ye=3):t===uc?(t=df(),ye=4):ye=t===Dc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ot=t,ie===null&&(Me=1,Tu(e,xt(t,e.current)))}function Io(){var e=rt.current;return e===null?!0:(se&4194048)===se?Et===null:(se&62914560)===se||(se&536870912)!==0?e===Et:!1}function Po(){var e=U.H;return U.H=mn,e===null?mn:e}function ed(){var e=U.A;return U.A=yv,e}function wu(){Me=4,xl||(se&4194048)!==se&&rt.current!==null||(Aa=!0),(bl&134217727)===0&&($l&134217727)===0||Ee===null||El(Ee,se,dt,!1)}function ls(e,t,l){var a=he;he|=2;var n=Po(),u=ed();(Ee!==e||se!==t)&&(Hu=null,Ma(e,t)),t=!1;var c=Me;e:do try{if(ye!==0&&ie!==null){var o=ie,v=ot;switch(ye){case 8:ts(),c=6;break e;case 3:case 2:case 9:case 6:rt.current===null&&(t=!0);var N=ye;if(ye=0,ot=null,Oa(e,o,v,N),l&&Aa){c=0;break e}break;default:N=ye,ye=0,ot=null,Oa(e,o,v,N)}}xv(),c=Me;break}catch(D){Fo(e,D)}while(!0);return t&&e.shellSuspendCounter++,Zt=Yl=null,he=a,U.H=n,U.A=u,ie===null&&(Ee=null,se=0,au()),c}function xv(){for(;ie!==null;)td(ie)}function bv(e,t){var l=he;he|=2;var a=Po(),n=ed();Ee!==e||se!==t?(Hu=null,Uu=nt()+500,Ma(e,t)):Aa=Ga(e,t);e:do try{if(ye!==0&&ie!==null){t=ie;var u=ot;t:switch(ye){case 1:ye=0,ot=null,Oa(e,t,u,1);break;case 2:case 9:if(ff(u)){ye=0,ot=null,ld(t);break}t=function(){ye!==2&&ye!==9||Ee!==e||(ye=7),wt(e)},u.then(t,t);break e;case 3:ye=7;break e;case 4:ye=5;break e;case 7:ff(u)?(ye=0,ot=null,ld(t)):(ye=0,ot=null,Oa(e,t,u,7));break;case 5:var c=null;switch(ie.tag){case 26:c=ie.memoizedState;case 5:case 27:var o=ie;if(c?Gd(c):o.stateNode.complete){ye=0,ot=null;var v=o.sibling;if(v!==null)ie=v;else{var N=o.return;N!==null?(ie=N,Lu(N)):ie=null}break t}}ye=0,ot=null,Oa(e,t,u,5);break;case 6:ye=0,ot=null,Oa(e,t,u,6);break;case 8:ts(),Me=6;break e;default:throw Error(r(462))}}Sv();break}catch(D){Fo(e,D)}while(!0);return Zt=Yl=null,U.H=a,U.A=n,he=l,ie!==null?0:(Ee=null,se=0,au(),Me)}function Sv(){for(;ie!==null&&!Qm();)td(ie)}function td(e){var t=To(e.alternate,e,tl);e.memoizedProps=e.pendingProps,t===null?Lu(e):ie=t}function ld(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=xo(l,t,t.pendingProps,t.type,void 0,se);break;case 11:t=xo(l,t,t.pendingProps,t.type.render,t.ref,se);break;case 5:pc(t);default:Ao(l,t),t=ie=Ir(t,tl),t=To(l,t,tl)}e.memoizedProps=e.pendingProps,t===null?Lu(e):ie=t}function Oa(e,t,l,a){Zt=Yl=null,pc(t),ba=null,nn=0;var n=t.return;try{if(rv(e,n,t,l,se)){Me=1,Tu(e,xt(l,e.current)),ie=null;return}}catch(u){if(n!==null)throw ie=n,u;Me=1,Tu(e,xt(l,e.current)),ie=null;return}t.flags&32768?(fe||a===1?e=!0:Aa||(se&536870912)!==0?e=!1:(xl=e=!0,(a===2||a===9||a===3||a===6)&&(a=rt.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,xl);return}e=t.return;var l=dv(t.alternate,t,tl);if(l!==null){ie=l;return}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);Me===0&&(Me=5)}function ad(e,t){do{var l=mv(e.alternate,e);if(l!==null){l.flags&=32767,ie=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ie=e;return}ie=e=l}while(e!==null);Me=6,ie=null}function nd(e,t,l,a,n,u,c,o,v){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,eh(e,l,u,c,o,v),e===Ee&&(ie=Ee=null,se=0),Ra=t,jl=e,ll=l,Ic=u,Pc=n,Ko=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Tv(Gn,function(){return rd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=U.T,U.T=null,n=k.p,k.p=2,c=he,he|=4;try{hv(e,t,l)}finally{he=c,k.p=n,U.T=a}}qe=1,ud(),id(),cd()}}function ud(){if(qe===1){qe=0;var e=jl,t=Ra,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var a=k.p;k.p=2;var n=he;he|=4;try{qo(t,e);var u=hs,c=Xr(e.containerInfo),o=u.focusedElem,v=u.selectionRange;if(c!==o&&o&&o.ownerDocument&&kr(o.ownerDocument.documentElement,o)){if(v!==null&&qi(o)){var N=v.start,D=v.end;if(D===void 0&&(D=N),"selectionStart"in o)o.selectionStart=N,o.selectionEnd=Math.min(D,o.value.length);else{var B=o.ownerDocument||document,z=B&&B.defaultView||window;if(z.getSelection){var _=z.getSelection(),K=o.textContent.length,P=Math.min(v.start,K),Se=v.end===void 0?P:Math.min(v.end,K);!_.extend&&P>Se&&(c=Se,Se=P,P=c);var j=Gr(o,P),g=Gr(o,Se);if(j&&g&&(_.rangeCount!==1||_.anchorNode!==j.node||_.anchorOffset!==j.offset||_.focusNode!==g.node||_.focusOffset!==g.offset)){var E=B.createRange();E.setStart(j.node,j.offset),_.removeAllRanges(),P>Se?(_.addRange(E),_.extend(g.node,g.offset)):(E.setEnd(g.node,g.offset),_.addRange(E))}}}}for(B=[],_=o;_=_.parentNode;)_.nodeType===1&&B.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<B.length;o++){var H=B[o];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Fu=!!ms,hs=ms=null}finally{he=n,k.p=a,U.T=l}}e.current=t,qe=2}}function id(){if(qe===2){qe=0;var e=jl,t=Ra,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var a=k.p;k.p=2;var n=he;he|=4;try{Uo(e,t.alternate,t)}finally{he=n,k.p=a,U.T=l}}qe=3}}function cd(){if(qe===4||qe===3){qe=0,Zm();var e=jl,t=Ra,l=ll,a=Ko;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?qe=5:(qe=0,Ra=jl=null,sd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Sl=null),bi(l),t=t.stateNode,ut&&typeof ut.onCommitFiberRoot=="function")try{ut.onCommitFiberRoot(Ya,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=U.T,n=k.p,k.p=2,U.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var o=a[c];u(o.value,{componentStack:o.stack})}}finally{U.T=t,k.p=n}}(ll&3)!==0&&qu(),wt(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=jl,t=Ic;Ic=0;var l=bi(ll),a=U.T,n=k.p;try{k.p=32>l?32:l,U.T=null,l=Pc,Pc=null;var u=jl,c=ll;if(qe=0,Ra=jl=null,ll=0,(he&6)!==0)throw Error(r(331));var o=he;if(he|=4,Qo(u.current),Go(u,u.current,c,l),he=o,En(0,!1),ut&&typeof ut.onPostCommitFiberRoot=="function")try{ut.onPostCommitFiberRoot(Ya,u)}catch{}return!0}finally{k.p=n,U.T=a,sd(e,t)}}function fd(e,t,l){t=xt(l,t),t=Cc(e.stateNode,t,2),e=vl(e,t,2),e!==null&&(ka(e,2),wt(e))}function pe(e,t,l){if(e.tag===3)fd(e,e,l);else for(;t!==null;){if(t.tag===3){fd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Sl===null||!Sl.has(a))){e=xt(l,e),l=fo(2),a=vl(t,l,2),a!==null&&(oo(l,a,t,e),ka(a,2),wt(a));break}}t=t.return}}function as(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new pv;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=jv.bind(null,e,t,l),t.then(e,e))}function jv(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ee===e&&(se&l)===l&&(Me===4||Me===3&&(se&62914560)===se&&300>nt()-Du?(he&2)===0&&Ma(e,0):Wc|=l,_a===se&&(_a=0)),wt(e)}function od(e,t){t===0&&(t=ar()),e=wl(e,t),e!==null&&(ka(e,t),wt(e))}function Ev(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),od(e,l)}function Nv(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),od(e,l)}function Tv(e,t){return yi(e,t)}var Yu=null,Ca=null,ns=!1,Gu=!1,us=!1,Nl=0;function wt(e){e!==Ca&&e.next===null&&(Ca===null?Yu=Ca=e:Ca=Ca.next=e),Gu=!0,ns||(ns=!0,Av())}function En(e,t){if(!us&&Gu){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 c=a.suspendedLanes,o=a.pingedLanes;u=(1<<31-it(42|e)+1)-1,u&=n&~(c&~o),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,vd(a,u))}else u=se,u=Zn(a,a===Ee?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ga(a,u)||(l=!0,vd(a,u));a=a.next}while(l);us=!1}}function zv(){dd()}function dd(){Gu=ns=!1;var e=0;Nl!==0&&wv()&&(e=Nl);for(var t=nt(),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&&(Ca=l)):(l=a,(e!==0||(u&3)!==0)&&(Gu=!0)),a=n}qe!==0&&qe!==5||En(e),Nl!==0&&(Nl=0)}function md(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-it(u),o=1<<c,v=n[c];v===-1?((o&l)===0||(o&a)!==0)&&(n[c]=Pm(o,t)):v<=t&&(e.expiredLanes|=o),u&=~o}if(t=Ee,l=se,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||Ga(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=Gn;break;case 268435456:l=lr;break;default:l=Gn}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=se;return a=Zn(e,e===Ee?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:($o(e,a,t),md(e,nt()),e.callbackNode!=null&&e.callbackNode===l?hd.bind(null,e):null)}function vd(e,t){if(qu())return null;$o(e,t,!0)}function Av(){qv(function(){(he&6)!==0?yi(er,zv):dd()})}function is(){if(Nl===0){var e=pa;e===0&&(e=kn,kn<<=1,(kn&261888)===0&&(kn=256)),Nl=e}return Nl}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 _v(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=yd((n[Fe]||null).action),c=a.submitter;c&&(t=(t=c[Fe]||null)?yd(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var o=new Pn("action","action",null,a,n);e.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Nl!==0){var v=c?pd(n,c):new FormData(n);zc(l,{pending:!0,data:v,method:n.method,action:u},null,v)}}else typeof u=="function"&&(o.preventDefault(),v=c?pd(n,c):new FormData(n),zc(l,{pending:!0,data:v,method:n.method,action:u},u,v))},currentTarget:n}]})}}for(var cs=0;cs<Xi.length;cs++){var ss=Xi[cs],Rv=ss.toLowerCase(),Mv=ss[0].toUpperCase()+ss.slice(1);At(Rv,"on"+Mv)}At(Vr,"onAnimationEnd"),At(Kr,"onAnimationIteration"),At(Jr,"onAnimationStart"),At("dblclick","onDoubleClick"),At("focusin","onFocus"),At("focusout","onBlur"),At(Vh,"onTransitionRun"),At(Kh,"onTransitionStart"),At(Jh,"onTransitionCancel"),At($r,"onTransitionEnd"),aa("onMouseEnter",["mouseout","mouseover"]),aa("onMouseLeave",["mouseout","mouseover"]),aa("onPointerEnter",["pointerout","pointerover"]),aa("onPointerLeave",["pointerout","pointerover"]),Dl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Dl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Dl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Dl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Dl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Dl("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(" "),Ov=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nn));function gd(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 c=a.length-1;0<=c;c--){var o=a[c],v=o.instance,N=o.currentTarget;if(o=o.listener,v!==u&&n.isPropagationStopped())break e;u=o,n.currentTarget=N;try{u(n)}catch(D){lu(D)}n.currentTarget=null,u=v}else for(c=0;c<a.length;c++){if(o=a[c],v=o.instance,N=o.currentTarget,o=o.listener,v!==u&&n.isPropagationStopped())break e;u=o,n.currentTarget=N;try{u(n)}catch(D){lu(D)}n.currentTarget=null,u=v}}}}function ce(e,t){var l=t[Si];l===void 0&&(l=t[Si]=new Set);var a=e+"__bubble";l.has(a)||(xd(t,e,2,!1),l.add(a))}function rs(e,t,l){var a=0;t&&(a|=4),xd(l,e,a,t)}var ku="_reactListening"+Math.random().toString(36).slice(2);function fs(e){if(!e[ku]){e[ku]=!0,fr.forEach(function(l){l!=="selectionchange"&&(Ov.has(l)||rs(l,!1,e),rs(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ku]||(t[ku]=!0,rs("selectionchange",!1,t))}}function xd(e,t,l,a){switch(Jd(t)){case 2:var n=uy;break;case 8:n=iy;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 os(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var o=a.stateNode.containerInfo;if(o===n)break;if(c===4)for(c=a.return;c!==null;){var v=c.tag;if((v===3||v===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;o!==null;){if(c=ea(o),c===null)return;if(v=c.tag,v===5||v===6||v===26||v===27){a=u=c;continue e}o=o.parentNode}}a=a.return}jr(function(){var N=u,D=_i(l),B=[];e:{var z=Wr.get(e);if(z!==void 0){var _=Pn,K=e;switch(e){case"keypress":if(Fn(l)===0)break e;case"keydown":case"keyup":_=Nh;break;case"focusin":K="focus",_=Ui;break;case"focusout":K="blur",_=Ui;break;case"beforeblur":case"afterblur":_=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":_=Tr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=dh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=Ah;break;case Vr:case Kr:case Jr:_=vh;break;case $r:_=Rh;break;case"scroll":case"scrollend":_=fh;break;case"wheel":_=Oh;break;case"copy":case"cut":case"paste":_=ph;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Ar;break;case"toggle":case"beforetoggle":_=Dh}var P=(t&4)!==0,Se=!P&&(e==="scroll"||e==="scrollend"),j=P?z!==null?z+"Capture":null:z;P=[];for(var g=N,E;g!==null;){var H=g;if(E=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||E===null||j===null||(H=Za(g,j),H!=null&&P.push(Tn(g,H,E))),Se)break;g=g.return}0<P.length&&(z=new _(z,K,null,l,D),B.push({event:z,listeners:P}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",z&&l!==Ai&&(K=l.relatedTarget||l.fromElement)&&(ea(K)||K[Pl]))break e;if((_||z)&&(z=D.window===D?D:(z=D.ownerDocument)?z.defaultView||z.parentWindow:window,_?(K=l.relatedTarget||l.toElement,_=N,K=K?ea(K):null,K!==null&&(Se=h(K),P=K.tag,K!==Se||P!==5&&P!==27&&P!==6)&&(K=null)):(_=null,K=N),_!==K)){if(P=Tr,H="onMouseLeave",j="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(P=Ar,H="onPointerLeave",j="onPointerEnter",g="pointer"),Se=_==null?z:Qa(_),E=K==null?z:Qa(K),z=new P(H,g+"leave",_,l,D),z.target=Se,z.relatedTarget=E,H=null,ea(D)===N&&(P=new P(j,g+"enter",K,l,D),P.target=E,P.relatedTarget=Se,H=P),Se=H,_&&K)t:{for(P=Cv,j=_,g=K,E=0,H=j;H;H=P(H))E++;H=0;for(var I=g;I;I=P(I))H++;for(;0<E-H;)j=P(j),E--;for(;0<H-E;)g=P(g),H--;for(;E--;){if(j===g||g!==null&&j===g.alternate){P=j;break t}j=P(j),g=P(g)}P=null}else P=null;_!==null&&bd(B,z,_,P,!1),K!==null&&Se!==null&&bd(B,Se,K,P,!0)}}e:{if(z=N?Qa(N):window,_=z.nodeName&&z.nodeName.toLowerCase(),_==="select"||_==="input"&&z.type==="file")var de=Hr;else if(Dr(z))if(Br)de=Xh;else{de=Gh;var W=Yh}else _=z.nodeName,!_||_.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?N&&zi(N.elementType)&&(de=Hr):de=kh;if(de&&(de=de(e,N))){Ur(B,de,l,D);break e}W&&W(e,z,N),e==="focusout"&&N&&z.type==="number"&&N.memoizedProps.value!=null&&Ti(z,"number",z.value)}switch(W=N?Qa(N):window,e){case"focusin":(Dr(W)||W.contentEditable==="true")&&(ra=W,Yi=N,Pa=null);break;case"focusout":Pa=Yi=ra=null;break;case"mousedown":Gi=!0;break;case"contextmenu":case"mouseup":case"dragend":Gi=!1,Qr(B,l,D);break;case"selectionchange":if(Zh)break;case"keydown":case"keyup":Qr(B,l,D)}var ne;if(Bi)e:{switch(e){case"compositionstart":var re="onCompositionStart";break e;case"compositionend":re="onCompositionEnd";break e;case"compositionupdate":re="onCompositionUpdate";break e}re=void 0}else sa?Or(e,l)&&(re="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(re="onCompositionStart");re&&(_r&&l.locale!=="ko"&&(sa||re!=="onCompositionStart"?re==="onCompositionEnd"&&sa&&(ne=Er()):(sl=D,Oi="value"in sl?sl.value:sl.textContent,sa=!0)),W=Xu(N,re),0<W.length&&(re=new zr(re,e,null,l,D),B.push({event:re,listeners:W}),ne?re.data=ne:(ne=Cr(l),ne!==null&&(re.data=ne)))),(ne=Hh?Bh(e,l):wh(e,l))&&(re=Xu(N,"onBeforeInput"),0<re.length&&(W=new zr("onBeforeInput","beforeinput",null,l,D),B.push({event:W,listeners:re}),W.data=ne)),_v(B,e,N,l,D)}gd(B,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 Cv(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,c=[];l!==null&&l!==a;){var o=l,v=o.alternate,N=o.stateNode;if(o=o.tag,v!==null&&v===a)break;o!==5&&o!==26&&o!==27||N===null||(v=N,n?(N=Za(l,u),N!=null&&c.unshift(Tn(l,N,v))):n||(N=Za(l,u),N!=null&&c.push(Tn(l,N,v)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var Dv=/\r\n?/g,Uv=/\u0000|\uFFFD/g;function Sd(e){return(typeof e=="string"?e:""+e).replace(Dv,`
49
- `).replace(Uv,"")}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===""||ua(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ua(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&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("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":ce("beforetoggle",e),ce("toggle",e),Vn(e,"popover",a);break;case"xlinkActuate":Yt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Yt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Yt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Yt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Yt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Yt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Vn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=sh.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"?ua(e,a):(typeof a=="number"||typeof a=="bigint")&&ua(e,""+a);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("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(!or.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":ce("error",e),ce("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=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,c,l,null)}}n&&be(e,t,"srcSet",l.srcSet,l,null),a&&be(e,t,"src",l.src,l,null);return;case"input":ce("invalid",e);var o=u=c=n=null,v=null,N=null;for(a in l)if(l.hasOwnProperty(a)){var D=l[a];if(D!=null)switch(a){case"name":n=D;break;case"type":c=D;break;case"checked":v=D;break;case"defaultChecked":N=D;break;case"value":u=D;break;case"defaultValue":o=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,t));break;default:be(e,t,a,D,l,null)}}yr(e,u,o,v,N,c,n,!1);return;case"select":ce("invalid",e),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(o=l[n],o!=null))switch(n){case"value":u=o;break;case"defaultValue":c=o;break;case"multiple":a=o;default:be(e,t,n,o,l,null)}t=u,l=c,e.multiple=!!a,t!=null?na(e,!!a,t,!1):l!=null&&na(e,!!a,l,!0);return;case"textarea":ce("invalid",e),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(o=l[c],o!=null))switch(c){case"value":a=o;break;case"defaultValue":n=o;break;case"children":u=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:be(e,t,c,o,l,null)}gr(e,a,n,u);return;case"option":for(v in l)if(l.hasOwnProperty(v)&&(a=l[v],a!=null))switch(v){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:be(e,t,v,a,l,null)}return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(a=0;a<Nn.length;a++)ce(Nn[a],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in l)if(l.hasOwnProperty(N)&&(a=l[N],a!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:be(e,t,N,a,l,null)}return;default:if(zi(t)){for(D in l)l.hasOwnProperty(D)&&(a=l[D],a!==void 0&&ds(e,t,D,a,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(a=l[o],a!=null&&be(e,t,o,a,l,null))}function Hv(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,c=null,o=null,v=null,N=null,D=null;for(_ in l){var B=l[_];if(l.hasOwnProperty(_)&&B!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":v=B;default:a.hasOwnProperty(_)||be(e,t,_,null,a,B)}}for(var z in a){var _=a[z];if(B=l[z],a.hasOwnProperty(z)&&(_!=null||B!=null))switch(z){case"type":u=_;break;case"name":n=_;break;case"checked":N=_;break;case"defaultChecked":D=_;break;case"value":c=_;break;case"defaultValue":o=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:_!==B&&be(e,t,z,_,a,B)}}Ni(e,c,o,v,N,D,u,n);return;case"select":_=c=o=z=null;for(u in l)if(v=l[u],l.hasOwnProperty(u)&&v!=null)switch(u){case"value":break;case"multiple":_=v;default:a.hasOwnProperty(u)||be(e,t,u,null,a,v)}for(n in a)if(u=a[n],v=l[n],a.hasOwnProperty(n)&&(u!=null||v!=null))switch(n){case"value":z=u;break;case"defaultValue":o=u;break;case"multiple":c=u;default:u!==v&&be(e,t,n,u,a,v)}t=o,l=c,a=_,z!=null?na(e,!!l,z,!1):!!a!=!!l&&(t!=null?na(e,!!l,t,!0):na(e,!!l,l?[]:"",!1));return;case"textarea":_=z=null;for(o in l)if(n=l[o],l.hasOwnProperty(o)&&n!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:be(e,t,o,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":z=n;break;case"defaultValue":_=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&be(e,t,c,n,a,u)}pr(e,z,_);return;case"option":for(var K in l)if(z=l[K],l.hasOwnProperty(K)&&z!=null&&!a.hasOwnProperty(K))switch(K){case"selected":e.selected=!1;break;default:be(e,t,K,null,a,z)}for(v in a)if(z=a[v],_=l[v],a.hasOwnProperty(v)&&z!==_&&(z!=null||_!=null))switch(v){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:be(e,t,v,z,a,_)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var P in l)z=l[P],l.hasOwnProperty(P)&&z!=null&&!a.hasOwnProperty(P)&&be(e,t,P,null,a,z);for(N in a)if(z=a[N],_=l[N],a.hasOwnProperty(N)&&z!==_&&(z!=null||_!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:be(e,t,N,z,a,_)}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(D in a)z=a[D],_=l[D],!a.hasOwnProperty(D)||z===_||z===void 0&&_===void 0||ds(e,t,D,z,a,_);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(B in a)z=a[B],_=l[B],!a.hasOwnProperty(B)||z===_||z==null&&_==null||be(e,t,B,z,a,_)}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 Bv(){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,c=n.initiatorType,o=n.duration;if(u&&o&&Ed(c)){for(c=0,o=n.responseEnd,a+=1;a<l.length;a++){var v=l[a],N=v.startTime;if(N>o)break;var D=v.transferSize,B=v.initiatorType;D&&Ed(B)&&(v=v.responseEnd,c+=D*(v<o?1:(o-N)/(v-N)))}if(--a,t+=8*(u+c)/(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 wv(){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,Lv=typeof clearTimeout=="function"?clearTimeout:void 0,Ad=typeof Promise=="function"?Promise:void 0,qv=typeof queueMicrotask=="function"?queueMicrotask:typeof Ad<"u"?function(e){return Ad.resolve(null).then(e).catch(Yv)}:zd;function Yv(e){setTimeout(function(){throw e})}function Tl(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),Ba(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 c=u.nextSibling,o=u.nodeName;u[Xa]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&zn(e.ownerDocument.body);l=n}while(l);Ba(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=Nt(e.nextSibling),e===null)break}return null}function kv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Nt(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=Nt(e.nextSibling),e===null))return null;return e}function gs(e){return e.data==="$?"||e.data==="$~"}function xs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Xv(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 Nt(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 Nt(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 Tt=new Map,Ud=new Set;function Zu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var al=k.d;k.d={f:Qv,r:Zv,D:Vv,C:Kv,L:Jv,m:$v,X:Fv,S:Wv,M:Iv};function Qv(){var e=al.f(),t=Bu();return e||t}function Zv(e){var t=ta(e);t!==null&&t.tag===5&&t.type==="form"?Wf(t):al.r(e)}var Da=typeof document>"u"?null:document;function Hd(e,t,l){var a=Da;if(a&&typeof t=="string"&&t){var n=pt(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 Vv(e){al.D(e),Hd("dns-prefetch",e,null)}function Kv(e,t){al.C(e,t),Hd("preconnect",e,t)}function Jv(e,t,l){al.L(e,t,l);var a=Da;if(a&&e&&t){var n='link[rel="preload"][as="'+pt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+pt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+pt(l.imageSizes)+'"]')):n+='[href="'+pt(e)+'"]';var u=n;switch(t){case"style":u=Ua(e);break;case"script":u=Ha(e)}Tt.has(u)||(e=p({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Tt.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 $v(e,t){al.m(e,t);var l=Da;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+pt(a)+'"][href="'+pt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ha(e)}if(!Tt.has(u)&&(e=p({rel:"modulepreload",href:e},t),Tt.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 Wv(e,t,l){al.S(e,t,l);var a=Da;if(a&&e){var n=la(a).hoistableStyles,u=Ua(e);t=t||"default";var c=n.get(u);if(!c){var o={loading:0,preload:null};if(c=a.querySelector(An(u)))o.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Tt.get(u))&&Ss(e,l);var v=c=a.createElement("link");Ye(v),Ve(v,"link",e),v._p=new Promise(function(N,D){v.onload=N,v.onerror=D}),v.addEventListener("load",function(){o.loading|=1}),v.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Vu(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:o},n.set(u,c)}}}function Fv(e,t){al.X(e,t);var l=Da;if(l&&e){var a=la(l).hoistableScripts,n=Ha(e),u=a.get(n);u||(u=l.querySelector(_n(n)),u||(e=p({src:e,async:!0},t),(t=Tt.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 Iv(e,t){al.M(e,t);var l=Da;if(l&&e){var a=la(l).hoistableScripts,n=Ha(e),u=a.get(n);u||(u=l.querySelector(_n(n)),u||(e=p({src:e,async:!0,type:"module"},t),(t=Tt.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=ue.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=Ua(l.href),l=la(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=Ua(l.href);var u=la(n).hoistableStyles,c=u.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=n.querySelector(An(e)))&&!u._p&&(c.instance=u,c.state.loading=5),Tt.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},Tt.set(e,l),u||Pv(n,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}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=Ha(l),l=la(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 Ua(e){return'href="'+pt(e)+'"'}function An(e){return'link[rel="stylesheet"]['+e+"]"}function wd(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Pv(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 Ha(e){return'[src="'+pt(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~="'+pt(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=Ua(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=Tt.get(n))&&Ss(a,n),u=(e.ownerDocument||e).createElement("link"),Ye(u);var c=u;return c._p=new Promise(function(o,v){c.onload=o,c.onerror=v}),Ve(u,"link",a),t.state.loading|=4,Vu(u,l.precedence,e),t.instance=u;case"script":return u=Ha(l.src),(n=e.querySelector(_n(u)))?(t.instance=n,Ye(n),n):(a=l,(n=Tt.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,c=0;c<a.length;c++){var o=a[c];if(o.dataset.precedence===t)u=o;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[ke]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var o=a.get(c);o?o.push(u):a.set(c,[u])}}return a}function Yd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function ey(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 Gd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ty(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=Ua(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=Tt.get(n))&&Ss(a,n),u=u.createElement("link"),Ye(u);var c=u;c._p=new Promise(function(o,v){c.onload=o,c.onerror=v}),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 ly(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*Bv());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(ay,e),$u=null,Ju.call(e))}function ay(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 c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,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:F,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function ny(e,t,l,a,n,u,c,o,v){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=gi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gi(0),this.hiddenUpdates=gi(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function kd(e,t,l,a,n,u,c,o,v,N,D,B){return e=new ny(e,t,l,c,v,N,D,B,o),t=1,u===!0&&(t|=24),u=st(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=da,e):da}function Qd(e,t,l,a,n,u){n=Xd(n),a.context===null?a.context=n:a.pendingContext=n,a=hl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=vl(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=wl(e,67108864);t!==null&&at(t,e,67108864),Ns(e,67108864)}}function Kd(e){if(e.tag===13||e.tag===31){var t=mt();t=xi(t);var l=wl(e,t);l!==null&&at(l,e,t),Ns(e,t)}}var Fu=!0;function uy(e,t,l,a){var n=U.T;U.T=null;var u=k.p;try{k.p=2,Ts(e,t,l,a)}finally{k.p=u,U.T=n}}function iy(e,t,l,a){var n=U.T;U.T=null;var u=k.p;try{k.p=8,Ts(e,t,l,a)}finally{k.p=u,U.T=n}}function Ts(e,t,l,a){if(Fu){var n=zs(a);if(n===null)os(e,t,a,Iu,l),$d(e,a);else if(sy(n,e,t,l,a))a.stopPropagation();else if($d(e,a),t&4&&-1<cy.indexOf(e)){for(;n!==null;){var u=ta(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Cl(u.pendingLanes);if(c!==0){var o=u;for(o.pendingLanes|=2,o.entangledLanes|=2;c;){var v=1<<31-it(c);o.entanglements[1]|=v,c&=~v}wt(u),(he&6)===0&&(Uu=nt()+500,En(0))}}break;case 31:case 13:o=wl(u,2),o!==null&&at(o,u,2),Bu(),Ns(u,2)}if(u=zs(a),u===null&&os(e,t,a,Iu,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else os(e,t,a,null,l)}}function zs(e){return e=_i(e),As(e)}var Iu=null;function As(e){if(Iu=null,e=ea(e),e!==null){var t=h(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(Vm()){case er:return 2;case tr:return 8;case Gn:case Km:return 32;case lr:return 268435456;default:return 32}default:return 32}}var _s=!1,zl=null,Al=null,_l=null,Mn=new Map,On=new Map,Rl=[],cy="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":zl=null;break;case"dragenter":case"dragleave":Al=null;break;case"mouseover":case"mouseout":_l=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=ta(t),t!==null&&Vd(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function sy(e,t,l,a,n){switch(t){case"focusin":return zl=Cn(zl,e,t,l,a,n),!0;case"dragenter":return Al=Cn(Al,e,t,l,a,n),!0;case"mouseover":return _l=Cn(_l,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=ea(e.target);if(t!==null){var l=h(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=ta(l),t!==null&&Vd(t),e.blockedOn=l,!1;t.shift()}return!0}function Fd(e,t,l){Pu(e)&&l.delete(t)}function ry(){_s=!1,zl!==null&&Pu(zl)&&(zl=null),Al!==null&&Pu(Al)&&(Al=null),_l!==null&&Pu(_l)&&(_l=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,ry)))}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=ta(l);u!==null&&(e.splice(t,3),t-=3,zc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ba(e){function t(v){return ei(v,e)}zl!==null&&ei(zl,e),Al!==null&&ei(Al,e),_l!==null&&ei(_l,e),Mn.forEach(t),On.forEach(t);for(var l=0;l<Rl.length;l++){var a=Rl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Rl.length&&(l=Rl[0],l.blockedOn===null);)Wd(l),l.blockedOn===null&&Rl.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],c=n[Fe]||null;if(typeof u=="function")c||Id(l);else if(c){var o=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[Fe]||null)o=c.formAction;else if(As(n)!==null)continue}else o=c.action;typeof o=="function"?l[a+1]=o:(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(c){return n=c})},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=mt();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[Pl]=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<Rl.length&&t!==0&&t<Rl[l].priority;l++);Rl.splice(l,0,e),l===0&&Wd(e)}};var em=f.version;if(em!=="19.2.4")throw Error(r(527,em,"19.2.4"));k.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=y(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:U,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),ut=ai}catch{}}return Un.createRoot=function(e,t){if(!m(e))throw Error(r(299));var l=!1,a="",n=io,u=co,c=so;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&&(c=t.onRecoverableError)),t=kd(e,1,!1,null,null,l,a,null,n,u,c,Pd),e[Pl]=t.current,fs(e),new Rs(t)},Un.hydrateRoot=function(e,t,l){if(!m(e))throw Error(r(299));var a=!1,n="",u=io,c=co,o=so,v=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&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.formState!==void 0&&(v=l.formState)),t=kd(e,1,!0,t,l??null,a,n,v,u,c,o,Pd),t.context=Xd(null),l=t.current,a=mt(),a=xi(a),n=hl(a),n.callback=null,vl(l,n,a),l=a,t.current.lanes=l,ka(t,l),wt(t),e[Pl]=t.current,fs(e),new li(t)},Un.version="19.2.4",Un}var fm;function by(){if(fm)return Cs.exports;fm=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(f){console.error(f)}}return i(),Cs.exports=xy(),Cs.exports}var Sy=by();/**
48
+ `+a.stack}}var vi=Object.prototype.hasOwnProperty,yi=i.unstable_scheduleCallback,pi=i.unstable_cancelCallback,Qm=i.unstable_shouldYield,Zm=i.unstable_requestPaint,nt=i.unstable_now,Vm=i.unstable_getCurrentPriorityLevel,er=i.unstable_ImmediatePriority,tr=i.unstable_UserBlockingPriority,Gn=i.unstable_NormalPriority,Km=i.unstable_LowPriority,lr=i.unstable_IdlePriority,Jm=i.log,$m=i.unstable_setDisableYieldValue,Ya=null,ut=null;function il(e){if(typeof Jm=="function"&&$m(e),ut&&typeof ut.setStrictMode=="function")try{ut.setStrictMode(Ya,e)}catch{}}var it=Math.clz32?Math.clz32:Im,Wm=Math.log,Fm=Math.LN2;function Im(e){return e>>>=0,e===0?32:31-(Wm(e)/Fm|0)|0}var kn=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,c=e.pingedLanes;e=e.warmLanes;var o=a&134217727;return o!==0?(a=o&~u,a!==0?n=Ul(a):(c&=o,c!==0?n=Ul(c):l||(l=o&~e,l!==0&&(n=Ul(l))))):(o=a&~u,o!==0?n=Ul(o):c!==0?n=Ul(c):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 Ga(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Pm(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 ka(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function eh(e,t,l,a,n,u){var c=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 o=e.entanglements,y=e.expirationTimes,N=e.hiddenUpdates;for(l=c&~l;0<l;){var C=31-it(l),H=1<<C;o[C]=0,y[C]=-1;var z=N[C];if(z!==null)for(N[C]=null,C=0;C<z.length;C++){var _=z[C];_!==null&&(_.lane&=-536870913)}l&=~H}a!==0&&nr(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function nr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-it(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-it(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=Z.p;return e!==0?e:(e=window.event,e===void 0?32:Jd(e.type))}function sr(e,t){var l=Z.p;try{return Z.p=e,t()}finally{Z.p=l}}var cl=Math.random().toString(36).slice(2),ke="__reactFiber$"+cl,Fe="__reactProps$"+cl,ea="__reactContainer$"+cl,Si="__reactEvents$"+cl,th="__reactListeners$"+cl,lh="__reactHandles$"+cl,rr="__reactResources$"+cl,Xa="__reactMarker$"+cl;function ji(e){delete e[ke],delete e[Fe],delete e[Si],delete e[th],delete e[lh]}function ta(e){var t=e[ke];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ea]||l[ke]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Cd(e);e!==null;){if(l=e[ke])return l;e=Cd(e)}return t}e=l,l=e.parentNode}return null}function la(e){if(e=e[ke]||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 fr=new Set,or={};function Hl(e,t){na(e,t),na(e+"Capture",t)}function na(e,t){for(or[e]=t,e=0;e<t.length;e++)fr.add(t[e])}var ah=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 nh(e){return vi.call(mr,e)?!0:vi.call(dr,e)?!1:ah.test(e)?mr[e]=!0:(dr[e]=!0,!1)}function Vn(e,t,l){if(nh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Kn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Yt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function yt(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 uh(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(c){l=""+c,u.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ei(e){if(!e._valueTracker){var t=hr(e)?"checked":"value";e._valueTracker=uh(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 ih=/[\n"\\]/g;function pt(e){return e.replace(ih,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ni(e,t,l,a,n,u,c,o){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+yt(t)):e.value!==""+yt(t)&&(e.value=""+yt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Ti(e,c,yt(t)):l!=null?Ti(e,c,yt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+yt(o):e.removeAttribute("name")}function yr(e,t,l,a,n,u,c,o){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?""+yt(l):"",t=t!=null?""+yt(t):l,o||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=o?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),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=""+yt(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=""+yt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+yt(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=yt(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 ch=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||ch.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 sh=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"]]),rh=/^[\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 rh.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="'+pt(""+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 kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mi=!1;if(kt)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 sl=null,Oi=null,Wn=null;function Er(){if(Wn)return Wn;var e,t=Oi,l=t.length,a,n="value"in sl?sl.value:sl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&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,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(l=e[o],this[o]=l?l(u):u[o]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?In:Nr,this.isPropagationStopped=Nr,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=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=x({},Bl,{view:0,detail:0}),fh=Ie(Ka),Ci,Di,Ja,eu=x({},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),oh=x({},eu,{dataTransfer:0}),dh=Ie(oh),mh=x({},Ka,{relatedTarget:0}),Ui=Ie(mh),hh=x({},Bl,{animationName:0,elapsedTime:0,pseudoElement:0}),vh=Ie(hh),yh=x({},Bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ph=Ie(yh),xh=x({},Bl,{data:0}),zr=Ie(xh),gh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bh={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"},Sh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Sh[e])?!!t[e]:!1}function Hi(){return jh}var Eh=x({},Ka,{key:function(e){if(e.key){var t=gh[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"?bh[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}}),Nh=Ie(Eh),Th=x({},eu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ar=Ie(Th),zh=x({},Ka,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hi}),Ah=Ie(zh),_h=x({},Bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rh=Ie(_h),Mh=x({},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}),Oh=Ie(Mh),Ch=x({},Bl,{newState:0,oldState:0}),Dh=Ie(Ch),Uh=[9,13,27,32],Bi=kt&&"CompositionEvent"in window,$a=null;kt&&"documentMode"in document&&($a=document.documentMode);var Hh=kt&&"TextEvent"in window&&!$a,_r=kt&&(!Bi||$a&&8<$a&&11>=$a),Rr=" ",Mr=!1;function Or(e,t){switch(e){case"keyup":return Uh.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 Bh(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 wh(e,t){if(ra)return e==="compositionend"||!Bi&&Or(e,t)?(e=Er(),Wn=Oi=sl=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 Lh={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"?!!Lh[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 qh(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(kt){var wi;if(kt){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(qh,t)}}function Yh(e,t,l){e==="focusin"?(Lr(),Wa=t,Fa=l,Wa.attachEvent("onpropertychange",qr)):e==="focusout"&&Lr()}function Gh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tu(Fa)}function kh(e,t){if(e==="click")return tu(t)}function Xh(e,t){if(e==="input"||e==="change")return tu(t)}function Qh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ct=typeof Object.is=="function"?Object.is:Qh;function Ia(e,t){if(ct(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)||!ct(e[n],t[n]))return!1}return!0}function Yr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gr(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 kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kr(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 Zh=kt&&"documentMode"in document&&11>=document.documentMode,fa=null,Yi=null,Pa=null,Gi=!1;function Qr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Gi||fa==null||fa!==Jn(a)||(a=fa,"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=fa)))}function wl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var oa={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")},ki={},Zr={};kt&&(Zr=document.createElement("div").style,"AnimationEvent"in window||(delete oa.animationend.animation,delete oa.animationiteration.animation,delete oa.animationstart.animation),"TransitionEvent"in window||delete oa.transitionend.transition);function Ll(e){if(ki[e])return ki[e];if(!oa[e])return e;var t=oa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Zr)return ki[e]=t[l];return e}var Vr=Ll("animationend"),Kr=Ll("animationiteration"),Jr=Ll("animationstart"),Vh=Ll("transitionrun"),Kh=Ll("transitionstart"),Jh=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 At(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)},xt=[],da=0,Qi=0;function au(){for(var e=da,t=Qi=da=0;t<e;){var l=xt[t];xt[t++]=null;var a=xt[t];xt[t++]=null;var n=xt[t];xt[t++]=null;var u=xt[t];if(xt[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}u!==0&&Fr(l,n,u)}}function nu(e,t,l,a){xt[da++]=e,xt[da++]=t,xt[da++]=l,xt[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-it(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 $h(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 st(e,t,l,a){return new $h(e,t,l,a)}function Vi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xt(e,t){var l=e.alternate;return l===null?(l=st(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 c=0;if(a=e,typeof e=="function")Vi(e)&&(c=1);else if(typeof e=="string")c=ey(e,l,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ne:return e=st(31,l,t,n),e.elementType=Ne,e.lanes=u,e;case q:return Yl(l.children,n,u,t);case O:c=8,n|=24;break;case R:return e=st(12,l,t,n|2),e.elementType=R,e.lanes=u,e;case Y:return e=st(13,l,t,n),e.elementType=Y,e.lanes=u,e;case $:return e=st(19,l,t,n),e.elementType=$,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q:c=10;break e;case L:c=9;break e;case k:c=11;break e;case K:c=14;break e;case oe:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=st(c,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Yl(e,t,l,a){return e=st(7,e,a,t),e.lanes=l,e}function Ki(e,t,l){return e=st(6,e,null,t),e.lanes=l,e}function Pr(e){var t=st(18,null,null,0);return t.stateNode=e,t}function Ji(e,t,l){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ef=new WeakMap;function gt(e,t){if(typeof e=="object"&&e!==null){var l=ef.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Ps(t)},ef.set(e,t),t)}return{value:e,source:t,stack:Ps(t)}}var ha=[],va=0,cu=null,en=0,bt=[],St=0,rl=null,Ut=1,Ht="";function Qt(e,t){ha[va++]=en,ha[va++]=cu,cu=e,en=t}function tf(e,t,l){bt[St++]=Ut,bt[St++]=Ht,bt[St++]=rl,rl=e;var a=Ut;e=Ht;var n=32-it(a)-1;a&=~(1<<n),l+=1;var u=32-it(t)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Ut=1<<32-it(t)+n|l<<n|a,Ht=u+e}else Ut=1<<u|l<<n|a,Ht=e}function $i(e){e.return!==null&&(Qt(e,1),tf(e,1,0))}function Wi(e){for(;e===cu;)cu=ha[--va],ha[va]=null,en=ha[--va],ha[va]=null;for(;e===rl;)rl=bt[--St],bt[St]=null,Ht=bt[--St],bt[St]=null,Ut=bt[--St],bt[St]=null}function lf(e,t){bt[St++]=Ut,bt[St++]=Ht,bt[St++]=rl,Ut=t.id,Ht=t.overflow,rl=e}var Xe=null,Te=null,fe=!1,fl=null,jt=!1,Fi=Error(r(519));function ol(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw tn(gt(t,e)),Fi}function af(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[ke]=e,t[Fe]=a,l){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(l=0;l<Nn.length;l++)ce(Nn[l],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),yr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),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&&(ce("beforetoggle",t),ce("toggle",t)),a.onScroll!=null&&ce("scroll",t),a.onScrollEnd!=null&&ce("scrollend",t),a.onClick!=null&&(t.onclick=Gt),t=!0):t=!1,t||ol(e,!0)}function nf(e){for(Xe=e.return;Xe;)switch(Xe.tag){case 5:case 31:case 13:jt=!1;return;case 27:case 3:jt=!0;return;default:Xe=Xe.return}}function ya(e){if(e!==Xe)return!1;if(!fe)return nf(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&&ol(e),nf(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,Tl(e.type)?(e=bs,bs=null,Te=e):Te=t):Te=Xe?Nt(e.stateNode.nextSibling):null;return!0}function Gl(){Te=Xe=null,fe=!1}function Ii(){var e=fl;return e!==null&&(lt===null?lt=e:lt.push.apply(lt,e),fl=null),e}function tn(e){fl===null?fl=[e]:fl.push(e)}var Pi=b(null),kl=null,Zt=null;function dl(e,t,l){V(Pi,t._currentValue),t._currentValue=l}function Vt(e){e._currentValue=Pi.current,B(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 c=n.child;u=u.firstContext;e:for(;u!==null;){var o=u;u=n;for(var y=0;y<t.length;y++)if(o.context===t[y]){u.lanes|=l,o=u.alternate,o!==null&&(o.lanes|=l),ec(u.return,l,e),a||(c=null);break e}u=o.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(r(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),ec(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}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 c=n.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var o=n.type;ct(n.pendingProps.value,c.value)||(e!==null?e.push(o):e=[o])}}else if(n===ve.current){if(c=n.alternate,c===null)throw Error(r(387));c.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(!ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xl(e){kl=e,Zt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qe(e){return uf(kl,e)}function ru(e,t){return kl===null&&Xl(e),uf(e,t)}function uf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Zt===null){if(e===null)throw Error(r(308));Zt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Zt=Zt.next=t;return l}var Wh=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()})}},Fh=i.unstable_scheduleCallback,Ih=i.unstable_NormalPriority,He={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lc(){return{controller:new Wh,data:new Map,refCount:0}}function ln(e){e.refCount--,e.refCount===0&&Fh(Ih,function(){e.controller.abort()})}var an=null,ac=0,xa=0,ga=null;function Ph(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(cf,cf),t}function cf(){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 ev(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 sf=D.S;D.S=function(e,t){Vo=nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ph(e,t),sf!==null&&sf(e,t)};var Ql=b(null);function nc(){var e=Ql.current;return e!==null?e:Ee.pooledCache}function fu(e,t){t===null?V(Ql,Ql.current):V(Ql,t.pool)}function rf(){var e=nc();return e===null?null:{parent:He._currentValue,pool:e}}var ba=Error(r(460)),uc=Error(r(474)),ou=Error(r(542)),du={then:function(){}};function ff(e){return e=e.status,e==="fulfilled"||e==="rejected"}function of(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,mf(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,mf(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 df(){if(Vl===null)throw Error(r(459));var e=Vl;return Vl=null,e}function mf(e){if(e===ba||e===ou)throw Error(r(483))}var Sa=null,nn=0;function mu(e){var t=nn;return nn+=1,Sa===null&&(Sa=[]),of(Sa,e,t)}function un(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function hu(e,t){throw t.$$typeof===w?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function hf(e){function t(j,p){if(e){var E=j.deletions;E===null?(j.deletions=[p],j.flags|=16):E.push(p)}}function l(j,p){if(!e)return null;for(;p!==null;)t(j,p),p=p.sibling;return null}function a(j){for(var p=new Map;j!==null;)j.key!==null?p.set(j.key,j):p.set(j.index,j),j=j.sibling;return p}function n(j,p){return j=Xt(j,p),j.index=0,j.sibling=null,j}function u(j,p,E){return j.index=E,e?(E=j.alternate,E!==null?(E=E.index,E<p?(j.flags|=67108866,p):E):(j.flags|=67108866,p)):(j.flags|=1048576,p)}function c(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function o(j,p,E,U){return p===null||p.tag!==6?(p=Ki(E,j.mode,U),p.return=j,p):(p=n(p,E),p.return=j,p)}function y(j,p,E,U){var I=E.type;return I===q?C(j,p,E.props.children,U,E.key):p!==null&&(p.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===oe&&Zl(I)===p.type)?(p=n(p,E.props),un(p,E),p.return=j,p):(p=iu(E.type,E.key,E.props,null,j.mode,U),un(p,E),p.return=j,p)}function N(j,p,E,U){return p===null||p.tag!==4||p.stateNode.containerInfo!==E.containerInfo||p.stateNode.implementation!==E.implementation?(p=Ji(E,j.mode,U),p.return=j,p):(p=n(p,E.children||[]),p.return=j,p)}function C(j,p,E,U,I){return p===null||p.tag!==7?(p=Yl(E,j.mode,U,I),p.return=j,p):(p=n(p,E),p.return=j,p)}function H(j,p,E){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=Ki(""+p,j.mode,E),p.return=j,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case X:return E=iu(p.type,p.key,p.props,null,j.mode,E),un(E,p),E.return=j,E;case G:return p=Ji(p,j.mode,E),p.return=j,p;case oe:return p=Zl(p),H(j,p,E)}if(Ue(p)||Ke(p))return p=Yl(p,j.mode,E,null),p.return=j,p;if(typeof p.then=="function")return H(j,mu(p),E);if(p.$$typeof===Q)return H(j,ru(j,p),E);hu(j,p)}return null}function z(j,p,E,U){var I=p!==null?p.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return I!==null?null:o(j,p,""+E,U);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case X:return E.key===I?y(j,p,E,U):null;case G:return E.key===I?N(j,p,E,U):null;case oe:return E=Zl(E),z(j,p,E,U)}if(Ue(E)||Ke(E))return I!==null?null:C(j,p,E,U,null);if(typeof E.then=="function")return z(j,p,mu(E),U);if(E.$$typeof===Q)return z(j,p,ru(j,E),U);hu(j,E)}return null}function _(j,p,E,U,I){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return j=j.get(E)||null,o(p,j,""+U,I);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case X:return j=j.get(U.key===null?E:U.key)||null,y(p,j,U,I);case G:return j=j.get(U.key===null?E:U.key)||null,N(p,j,U,I);case oe:return U=Zl(U),_(j,p,E,U,I)}if(Ue(U)||Ke(U))return j=j.get(E)||null,C(p,j,U,I,null);if(typeof U.then=="function")return _(j,p,E,mu(U),I);if(U.$$typeof===Q)return _(j,p,E,ru(p,U),I);hu(p,U)}return null}function J(j,p,E,U){for(var I=null,de=null,F=p,ne=p=0,re=null;F!==null&&ne<E.length;ne++){F.index>ne?(re=F,F=null):re=F.sibling;var me=z(j,F,E[ne],U);if(me===null){F===null&&(F=re);break}e&&F&&me.alternate===null&&t(j,F),p=u(me,p,ne),de===null?I=me:de.sibling=me,de=me,F=re}if(ne===E.length)return l(j,F),fe&&Qt(j,ne),I;if(F===null){for(;ne<E.length;ne++)F=H(j,E[ne],U),F!==null&&(p=u(F,p,ne),de===null?I=F:de.sibling=F,de=F);return fe&&Qt(j,ne),I}for(F=a(F);ne<E.length;ne++)re=_(F,j,ne,E[ne],U),re!==null&&(e&&re.alternate!==null&&F.delete(re.key===null?ne:re.key),p=u(re,p,ne),de===null?I=re:de.sibling=re,de=re);return e&&F.forEach(function(Ml){return t(j,Ml)}),fe&&Qt(j,ne),I}function P(j,p,E,U){if(E==null)throw Error(r(151));for(var I=null,de=null,F=p,ne=p=0,re=null,me=E.next();F!==null&&!me.done;ne++,me=E.next()){F.index>ne?(re=F,F=null):re=F.sibling;var Ml=z(j,F,me.value,U);if(Ml===null){F===null&&(F=re);break}e&&F&&Ml.alternate===null&&t(j,F),p=u(Ml,p,ne),de===null?I=Ml:de.sibling=Ml,de=Ml,F=re}if(me.done)return l(j,F),fe&&Qt(j,ne),I;if(F===null){for(;!me.done;ne++,me=E.next())me=H(j,me.value,U),me!==null&&(p=u(me,p,ne),de===null?I=me:de.sibling=me,de=me);return fe&&Qt(j,ne),I}for(F=a(F);!me.done;ne++,me=E.next())me=_(F,j,ne,me.value,U),me!==null&&(e&&me.alternate!==null&&F.delete(me.key===null?ne:me.key),p=u(me,p,ne),de===null?I=me:de.sibling=me,de=me);return e&&F.forEach(function(oy){return t(j,oy)}),fe&&Qt(j,ne),I}function Se(j,p,E,U){if(typeof E=="object"&&E!==null&&E.type===q&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case X:e:{for(var I=E.key;p!==null;){if(p.key===I){if(I=E.type,I===q){if(p.tag===7){l(j,p.sibling),U=n(p,E.props.children),U.return=j,j=U;break e}}else if(p.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===oe&&Zl(I)===p.type){l(j,p.sibling),U=n(p,E.props),un(U,E),U.return=j,j=U;break e}l(j,p);break}else t(j,p);p=p.sibling}E.type===q?(U=Yl(E.props.children,j.mode,U,E.key),U.return=j,j=U):(U=iu(E.type,E.key,E.props,null,j.mode,U),un(U,E),U.return=j,j=U)}return c(j);case G:e:{for(I=E.key;p!==null;){if(p.key===I)if(p.tag===4&&p.stateNode.containerInfo===E.containerInfo&&p.stateNode.implementation===E.implementation){l(j,p.sibling),U=n(p,E.children||[]),U.return=j,j=U;break e}else{l(j,p);break}else t(j,p);p=p.sibling}U=Ji(E,j.mode,U),U.return=j,j=U}return c(j);case oe:return E=Zl(E),Se(j,p,E,U)}if(Ue(E))return J(j,p,E,U);if(Ke(E)){if(I=Ke(E),typeof I!="function")throw Error(r(150));return E=I.call(E),P(j,p,E,U)}if(typeof E.then=="function")return Se(j,p,mu(E),U);if(E.$$typeof===Q)return Se(j,p,ru(j,E),U);hu(j,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,p!==null&&p.tag===6?(l(j,p.sibling),U=n(p,E),U.return=j,j=U):(l(j,p),U=Ki(E,j.mode,U),U.return=j,j=U),c(j)):l(j,p)}return function(j,p,E,U){try{nn=0;var I=Se(j,p,E,U);return Sa=null,I}catch(F){if(F===ba||F===ou)throw F;var de=st(29,F,null,j.mode);return de.lanes=U,de.return=j,de}finally{}}}var Kl=hf(!0),vf=hf(!1),ml=!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 hl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function vl(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 c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,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;ml=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var y=o,N=y.next;y.next=null,c===null?u=N:c.next=N,c=y;var C=e.alternate;C!==null&&(C=C.updateQueue,o=C.lastBaseUpdate,o!==c&&(o===null?C.firstBaseUpdate=N:o.next=N,C.lastBaseUpdate=y))}if(u!==null){var H=n.baseState;c=0,C=N=y=null,o=u;do{var z=o.lane&-536870913,_=z!==o.lane;if(_?(se&z)===z:(a&z)===z){z!==0&&z===xa&&(rc=!0),C!==null&&(C=C.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var J=e,P=o;z=t;var Se=l;switch(P.tag){case 1:if(J=P.payload,typeof J=="function"){H=J.call(Se,H,z);break e}H=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=P.payload,z=typeof J=="function"?J.call(Se,H,z):J,z==null)break e;H=x({},H,z);break e;case 2:ml=!0}}z=o.callback,z!==null&&(e.flags|=64,_&&(e.flags|=8192),_=n.callbacks,_===null?n.callbacks=[z]:_.push(z))}else _={lane:z,tag:o.tag,payload:o.payload,callback:o.callback,next:null},C===null?(N=C=_,y=H):C=C.next=_,c|=z;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;_=o,o=_.next,_.next=null,n.lastBaseUpdate=_,n.shared.pending=null}}while(!0);C===null&&(y=H),n.baseState=y,n.firstBaseUpdate=N,n.lastBaseUpdate=C,u===null&&(n.shared.lanes=0),bl|=c,e.lanes=c,e.memoizedState=H}}function yf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function pf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)yf(l[e],t)}var ja=b(null),vu=b(0);function xf(e,t){e=tl,V(vu,e),V(ja,t),tl=e|t.baseLanes}function fc(){V(vu,tl),V(ja,ja.current)}function oc(){tl=vu.current,B(ja),B(vu)}var rt=b(null),Et=null;function yl(e){var t=e.alternate;V(Ce,Ce.current&1),V(rt,e),Et===null&&(t===null||ja.current!==null||t.memoizedState!==null)&&(Et=e)}function dc(e){V(Ce,Ce.current),V(rt,e),Et===null&&(Et=e)}function gf(e){e.tag===22?(V(Ce,Ce.current),V(rt,e),Et===null&&(Et=e)):pl()}function pl(){V(Ce,Ce.current),V(rt,rt.current)}function ft(e){B(rt),Et===e&&(Et=null),B(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 Kt=0,ae=null,ge=null,Be=null,pu=!1,Ea=!1,Jl=!1,xu=0,fn=0,Na=null,tv=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(!ct(e[l],t[l]))return!1;return!0}function hc(e,t,l,a,n,u){return Kt=u,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?lo:Rc,Jl=!1,u=l(a,n),Jl=!1,Ea&&(u=Sf(t,l,a,n)),bf(e),u}function bf(e){D.H=mn;var t=ge!==null&&ge.next!==null;if(Kt=0,Be=ge=ae=null,pu=!1,fn=0,Na=null,t)throw Error(r(300));e===null||we||(e=e.dependencies,e!==null&&su(e)&&(we=!0))}function Sf(e,t,l,a){ae=e;var n=0;do{if(Ea&&(Na=null),fn=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=ao,u=t(l,a)}while(Ea);return u}function lv(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?on(t):t,e=e.useState()[0],(ge!==null?ge.memoizedState:null)!==e&&(ae.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}Kt=0,Be=ge=ae=null,Ea=!1,fn=xu=0,Na=null}function We(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?ae.memoizedState=Be=e:Be=Be.next=e,Be}function De(){if(ge===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=ge.next;var t=Be===null?ae.memoizedState:Be.next;if(t!==null)Be=t,ge=e;else{if(e===null)throw ae.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?ae.memoizedState=Be=e:Be=Be.next=e}return Be}function gu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function on(e){var t=fn;return fn+=1,Na===null&&(Na=[]),e=of(Na,e,t),t=ae,(Be===null?t.memoizedState:Be.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?lo:Rc),e}function bu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return on(e);if(e.$$typeof===Q)return Qe(e)}throw Error(r(438,String(e)))}function xc(e){var t=null,l=ae.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ae.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(),ae.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]=Ct;return t.index++,l}function Jt(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 c=n.next;n.next=u.next,u.next=c}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var o=c=null,y=null,N=t,C=!1;do{var H=N.lane&-536870913;if(H!==N.lane?(se&H)===H:(Kt&H)===H){var z=N.revertLane;if(z===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),H===xa&&(C=!0);else if((Kt&z)===z){N=N.next,z===xa&&(C=!0);continue}else H={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},y===null?(o=y=H,c=u):y=y.next=H,ae.lanes|=z,bl|=z;H=N.action,Jl&&l(u,H),u=N.hasEagerState?N.eagerState:l(u,H)}else z={lane:H,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},y===null?(o=y=z,c=u):y=y.next=z,ae.lanes|=H,bl|=H;N=N.next}while(N!==null&&N!==t);if(y===null?c=u:y.next=o,!ct(u,e.memoizedState)&&(we=!0,C&&(l=ga,l!==null)))throw l;e.memoizedState=u,e.baseState=c,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 c=n=n.next;do u=e(u,c.action),c=c.next;while(c!==n);ct(u,t.memoizedState)||(we=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function jf(e,t,l){var a=ae,n=De(),u=fe;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!ct((ge||n).memoizedState,l);if(c&&(n.memoizedState=l,we=!0),n=n.queue,Ec(Tf.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Be!==null&&Be.memoizedState.tag&1){if(a.flags|=2048,Ta(9,{destroy:void 0},Nf.bind(null,a,n,l,t),null),Ee===null)throw Error(r(349));u||(Kt&127)!==0||Ef(a,t,l)}return l}function Ef(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ae.updateQueue,t===null?(t=gu(),ae.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Nf(e,t,l,a){t.value=l,t.getSnapshot=a,zf(t)&&Af(e)}function Tf(e,t,l){return l(function(){zf(t)&&Af(e)})}function zf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ct(e,l)}catch{return!0}}function Af(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){il(!0);try{l()}finally{il(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:e},t}function _f(e,t,l,a){return e.baseState=l,gc(e,ge,typeof a=="function"?a:Jt)}function av(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(c){u.listeners.push(c)}};D.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Rf(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Rf(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=D.T,c={};D.T=c;try{var o=l(n,a),y=D.S;y!==null&&y(c,o),Mf(e,t,o)}catch(N){jc(e,t,N)}finally{u!==null&&c.types!==null&&(u.types=c.types),D.T=u}}else try{u=l(n,a),Mf(e,t,u)}catch(N){jc(e,t,N)}}function Mf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Of(e,t,a)},function(a){return jc(e,t,a)}):Of(e,t,l)}function Of(e,t,l){t.status="fulfilled",t.value=l,Cf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Rf(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,Cf(t),t=t.next;while(t!==a)}e.action=null}function Cf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Df(e,t){return t}function Uf(e,t){if(fe){var l=Ee.formState;if(l!==null){e:{var a=ae;if(fe){if(Te){t:{for(var n=Te,u=jt;n.nodeType!==8;){if(!u){n=null;break t}if(n=Nt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Te=Nt(n.nextSibling),a=n.data==="F!";break e}}ol(a)}a=!1}a&&(t=l[0])}}return l=We(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Df,lastRenderedState:t},l.queue=a,l=Pf.bind(null,ae,a),a.dispatch=l,a=Sc(!1),u=_c.bind(null,ae,!1,a.queue),a=We(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=av.bind(null,ae,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Hf(e){var t=De();return Bf(t,ge,e)}function Bf(e,t,l){if(t=gc(e,t,Df)[0],e=Su(Jt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=on(t)}catch(c){throw c===ba?ou:c}else a=t;t=De();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ae.flags|=2048,Ta(9,{destroy:void 0},nv.bind(null,n,l),null)),[a,u,e]}function nv(e,t){e.action=t}function wf(e){var t=De(),l=ge;if(l!==null)return Bf(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=ae.updateQueue,t===null&&(t=gu(),ae.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 Lf(){return De().memoizedState}function ju(e,t,l,a){var n=We();ae.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):(ae.flags|=e,n.memoizedState=Ta(1|t,u,l,a))}function qf(e,t){ju(8390656,8,e,t)}function Ec(e,t){Eu(2048,8,e,t)}function uv(e){ae.flags|=4;var t=ae.updateQueue;if(t===null)t=gu(),ae.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Yf(e){var t=De().memoizedState;return uv({ref:t,nextImpl:e}),function(){if((he&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Gf(e,t){return Eu(4,2,e,t)}function kf(e,t){return Eu(4,4,e,t)}function Xf(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 Qf(e,t,l){l=l!=null?l.concat([e]):null,Eu(4,4,Xf.bind(null,t,e),l)}function Nc(){}function Zf(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 Vf(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){il(!0);try{e()}finally{il(!1)}}return l.memoizedState=[a,t],a}function Tc(e,t,l){return l===void 0||(Kt&1073741824)!==0&&(se&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Jo(),ae.lanes|=e,bl|=e,l)}function Kf(e,t,l,a){return ct(l,t)?l:ja.current!==null?(e=Tc(e,l,a),ct(e,t)||(we=!0),e):(Kt&42)===0||(Kt&1073741824)!==0&&(se&261930)===0?(we=!0,e.memoizedState=l):(e=Jo(),ae.lanes|=e,bl|=e,t)}function Jf(e,t,l,a,n){var u=Z.p;Z.p=u!==0&&8>u?u:8;var c=D.T,o={};D.T=o,_c(e,!1,t,l);try{var y=n(),N=D.S;if(N!==null&&N(o,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var C=ev(y,a);dn(e,t,C,mt(e))}else dn(e,t,a,mt(e))}catch(H){dn(e,t,{then:function(){},status:"rejected",reason:H},mt())}finally{Z.p=u,c!==null&&o.types!==null&&(c.types=o.types),D.T=c}}function iv(){}function zc(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=$f(e).queue;Jf(e,n,t,ee,l===null?iv:function(){return Wf(e),l(a)})}function $f(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:ee},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wf(e){var t=$f(e);t.next===null&&(t=e.alternate.memoizedState),dn(e,t.next.queue,{},mt())}function Ac(){return Qe(Rn)}function Ff(){return De().memoizedState}function If(){return De().memoizedState}function cv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=mt();e=hl(l);var a=vl(t,e,l);a!==null&&(at(a,t,l),cn(a,t,l)),t={cache:lc()},e.payload=t;return}t=t.return}}function sv(e,t,l){var a=mt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Nu(e)?eo(t,l):(l=Zi(e,t,l,a),l!==null&&(at(l,e,a),to(l,t,a)))}function Pf(e,t,l){var a=mt();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))eo(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,o=u(c,l);if(n.hasEagerState=!0,n.eagerState=o,ct(o,c))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),to(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===ae||t!==null&&t===ae}function eo(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 to(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 lo={readContext:Qe,use:bu,useCallback:function(e,t){return We().memoizedState=[e,t===void 0?null:t],e},useContext:Qe,useEffect:qf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ju(4194308,4,Xf.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){il(!0);try{e()}finally{il(!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){il(!0);try{l(t)}finally{il(!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=sv.bind(null,ae,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=Pf.bind(null,ae,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=Jf.bind(null,ae,e.queue,!0,!1),We().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ae,n=We();if(fe){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ee===null)throw Error(r(349));(se&127)!==0||Ef(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,qf(Tf.bind(null,a,u,e),[e]),a.flags|=2048,Ta(9,{destroy:void 0},Nf.bind(null,a,u,l,t),null),l},useId:function(){var e=We(),t=Ee.identifierPrefix;if(fe){var l=Ht,a=Ut;l=(a&~(1<<32-it(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=xu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=tv++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ac,useFormState:Uf,useActionState:Uf,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,ae,!0,l),l.dispatch=t,[e,t]},useMemoCache:xc,useCacheRefresh:function(){return We().memoizedState=cv.bind(null,ae)},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:Zf,useContext:Qe,useEffect:Ec,useImperativeHandle:Qf,useInsertionEffect:Gf,useLayoutEffect:kf,useMemo:Vf,useReducer:Su,useRef:Lf,useState:function(){return Su(Jt)},useDebugValue:Nc,useDeferredValue:function(e,t){var l=De();return Kf(l,ge.memoizedState,e,t)},useTransition:function(){var e=Su(Jt)[0],t=De().memoizedState;return[typeof e=="boolean"?e:on(e),t]},useSyncExternalStore:jf,useId:Ff,useHostTransitionStatus:Ac,useFormState:Hf,useActionState:Hf,useOptimistic:function(e,t){var l=De();return _f(l,ge,e,t)},useMemoCache:xc,useCacheRefresh:If};Rc.useEffectEvent=Yf;var ao={readContext:Qe,use:bu,useCallback:Zf,useContext:Qe,useEffect:Ec,useImperativeHandle:Qf,useInsertionEffect:Gf,useLayoutEffect:kf,useMemo:Vf,useReducer:bc,useRef:Lf,useState:function(){return bc(Jt)},useDebugValue:Nc,useDeferredValue:function(e,t){var l=De();return ge===null?Tc(l,e,t):Kf(l,ge.memoizedState,e,t)},useTransition:function(){var e=bc(Jt)[0],t=De().memoizedState;return[typeof e=="boolean"?e:on(e),t]},useSyncExternalStore:jf,useId:Ff,useHostTransitionStatus:Ac,useFormState:wf,useActionState:wf,useOptimistic:function(e,t){var l=De();return ge!==null?_f(l,ge,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:xc,useCacheRefresh:If};ao.useEffectEvent=Yf;function Mc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:x({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Oc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=mt(),n=hl(a);n.payload=t,l!=null&&(n.callback=l),t=vl(e,n,a),t!==null&&(at(t,e,a),cn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=mt(),n=hl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=vl(e,n,a),t!==null&&(at(t,e,a),cn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=mt(),a=hl(l);a.tag=2,t!=null&&(a.callback=t),t=vl(e,a,l),t!==null&&(at(t,e,l),cn(t,e,l))}};function no(e,t,l,a,n,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!Ia(l,a)||!Ia(n,u):!0}function uo(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=x({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function io(e){lu(e)}function co(e){console.error(e)}function so(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 ro(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=hl(l),l.tag=3,l.payload={element:null},l.callback=function(){Tu(e,t)},l}function fo(e){return e=hl(e),e.tag=3,e}function oo(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(){ro(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){ro(t,l,a),typeof n!="function"&&(Sl===null?Sl=new Set([this]):Sl.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function rv(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=rt.current,l!==null){switch(l.tag){case 31:case 13:return Et===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=rt.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(gt(e,l)))):(a!==Fi&&(t=Error(r(423),{cause:a}),tn(gt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=gt(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=gt(u,l),Sn===null?Sn=[u]:Sn.push(u),Me!==4&&(Me=2),t===null)return!0;a=gt(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"&&(Sl===null||!Sl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=fo(n),oo(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?vf(t,null,l,a):Kl(t,e.child,l,a)}function mo(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var o in a)o!=="ref"&&(c[o]=a[o])}else c=a;return Xl(t),a=hc(e,t,l,c,u,n),o=vc(),e!==null&&!we?(yc(e,t,n),$t(e,t,n)):(fe&&o&&$i(t),t.flags|=1,Ze(e,t,a,n),t.child)}function ho(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,vo(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,!Gc(e,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:Ia,l(c,a)&&e.ref===t.ref)return $t(e,t,n)}return t.flags|=1,e=Xt(u,a),e.ref=t.ref,e.return=t,t.child=e}function vo(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,Gc(e,n))(e.flags&131072)!==0&&(we=!0);else return t.lanes=e.lanes,$t(e,t,n)}return Uc(e,t,l,a,n)}function yo(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 po(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fu(t,u!==null?u.cachePool:null),u!==null?xf(t,u):fc(),gf(t);else return a=t.lanes=536870912,po(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(fu(t,u.cachePool),xf(t,u),pl(),t.memoizedState=null):(e!==null&&fu(t,null),fc(),pl());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 po(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&&fu(t,null),fc(),gf(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 xo(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,jt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:rl!==null?{id:Ut,overflow:Ht}:null,retryLane:536870912,hydrationErrors:null},l=Pr(e),l.return=t,t.child=l,Xe=t,Te=null)):e=null,e===null)throw ol(t);return t.lanes=536870912,null}return zu(t,a)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(dc(t),n)if(t.flags&256)t.flags&=-257,t=xo(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&&(c=ir(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,ql(e,c),at(a,e,c),Dc;wu(),t=xo(e,t,l)}else e=u.treeContext,Te=Nt(c.nextSibling),Xe=t,fe=!0,fl=null,jt=!1,e!==null&&lf(t,e),t=zu(t,a),t.flags|=4096;return t}return e=Xt(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),$t(e,t,n)):(fe&&a&&$i(t),t.flags|=1,Ze(e,t,l,n),t.child)}function go(e,t,l,a,n,u){return Xl(t),t.updateQueue=null,l=Sf(t,a,l,n),bf(e),a=vc(),e!==null&&!we?(yc(e,t,u),$t(e,t,u)):(fe&&a&&$i(t),t.flags|=1,Ze(e,t,l,u),t.child)}function bo(e,t,l,a,n){if(Xl(t),t.stateNode===null){var u=ma,c=l.contextType;typeof c=="object"&&c!==null&&(u=Qe(c)),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),c=l.contextType,u.context=typeof c=="object"&&c!==null?Qe(c):ma,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Mc(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==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 o=t.memoizedProps,y=$l(l,o);u.props=y;var N=u.context,C=l.contextType;c=ma,typeof C=="object"&&C!==null&&(c=Qe(C));var H=l.getDerivedStateFromProps;C=typeof H=="function"||typeof u.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,C||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o||N!==c)&&uo(t,u,a,c),ml=!1;var z=t.memoizedState;u.state=z,rn(t,a,u,n),sn(),N=t.memoizedState,o||z!==N||ml?(typeof H=="function"&&(Mc(t,l,H,a),N=t.memoizedState),(y=ml||no(t,l,y,a,z,N,c))?(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=N),u.props=a,u.state=N,u.context=c,a=y):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,cc(e,t),c=t.memoizedProps,C=$l(l,c),u.props=C,H=t.pendingProps,z=u.context,N=l.contextType,y=ma,typeof N=="object"&&N!==null&&(y=Qe(N)),o=l.getDerivedStateFromProps,(N=typeof o=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==H||z!==y)&&uo(t,u,a,y),ml=!1,z=t.memoizedState,u.state=z,rn(t,a,u,n),sn();var _=t.memoizedState;c!==H||z!==_||ml||e!==null&&e.dependencies!==null&&su(e.dependencies)?(typeof o=="function"&&(Mc(t,l,o,a),_=t.memoizedState),(C=ml||no(t,l,C,a,z,_,y)||e!==null&&e.dependencies!==null&&su(e.dependencies))?(N||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,_,y),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,_,y)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=_),u.props=a,u.state=_,u.context=y,a=C):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===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=$t(e,t,n),e}function So(e,t,l,a){return Gl(),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:rf()}}function wc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=dt),e}function jo(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(Ce.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(fe){if(n?yl(t):pl(),(e=Te)?(e=Md(e,jt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:rl!==null?{id:Ut,overflow:Ht}:null,retryLane:536870912,hydrationErrors:null},l=Pr(e),l.return=t,t.child=l,Xe=t,Te=null)):e=null,e===null)throw ol(t);return gs(e)?t.lanes=32:t.lanes=536870912,null}var o=a.children;return a=a.fallback,n?(pl(),n=t.mode,o=_u({mode:"hidden",children:o},n),a=Yl(a,n,l,null),o.return=t,a.return=t,o.sibling=a,t.child=o,a=t.child,a.memoizedState=Bc(l),a.childLanes=wc(e,c,l),t.memoizedState=Hc,hn(null,a)):(yl(t),Lc(t,o))}var y=e.memoizedState;if(y!==null&&(o=y.dehydrated,o!==null)){if(u)t.flags&256?(yl(t),t.flags&=-257,t=qc(e,t,l)):t.memoizedState!==null?(pl(),t.child=e.child,t.flags|=128,t=null):(pl(),o=a.fallback,n=t.mode,a=_u({mode:"visible",children:a.children},n),o=Yl(o,n,l,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,Kl(t,e.child,null,l),a=t.child,a.memoizedState=Bc(l),a.childLanes=wc(e,c,l),t.memoizedState=Hc,t=hn(null,a));else if(yl(t),gs(o)){if(c=o.nextSibling&&o.nextSibling.dataset,c)var N=c.dgst;c=N,a=Error(r(419)),a.stack="",a.digest=c,tn({value:a,source:null,stack:null}),t=qc(e,t,l)}else if(we||pa(e,t,l,!1),c=(l&e.childLanes)!==0,we||c){if(c=Ee,c!==null&&(a=ir(c,l),a!==0&&a!==y.retryLane))throw y.retryLane=a,ql(e,a),at(c,e,a),Dc;xs(o)||wu(),t=qc(e,t,l)}else xs(o)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,Te=Nt(o.nextSibling),Xe=t,fe=!0,fl=null,jt=!1,e!==null&&lf(t,e),t=Lc(t,a.children),t.flags|=4096);return t}return n?(pl(),o=a.fallback,n=t.mode,y=e.child,N=y.sibling,a=Xt(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&65011712,N!==null?o=Xt(N,o):(o=Yl(o,n,l,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,hn(null,a),a=t.child,o=e.child.memoizedState,o===null?o=Bc(l):(n=o.cachePool,n!==null?(y=He._currentValue,n=n.parent!==y?{parent:y,pool:y}:n):n=rf(),o={baseLanes:o.baseLanes|l,cachePool:n}),a.memoizedState=o,a.childLanes=wc(e,c,l),t.memoizedState=Hc,hn(e.child,a)):(yl(t),l=e.child,e=l.sibling,l=Xt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.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=st(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 Eo(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 c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=u)}function No(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=Ce.current,o=(c&2)!==0;if(o?(c=c&1|2,t.flags|=128):c&=1,V(Ce,c),Ze(e,t,a,l),a=fe?en:0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Eo(e,l,t);else if(e.tag===19)Eo(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 $t(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),bl|=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=Xt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Xt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Gc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&su(e)))}function ov(e,t,l){switch(t.tag){case 3:$e(t,t.stateNode.containerInfo),dl(t,He,e.memoizedState.cache),Gl();break;case 27:case 5:qa(t);break;case 4:$e(t,t.stateNode.containerInfo);break;case 10:dl(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?(yl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?jo(e,t,l):(yl(t),e=$t(e,t,l),e!==null?e.sibling:null);yl(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 No(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),V(Ce,Ce.current),a)break;return null;case 22:return t.lanes=0,yo(e,t,l,t.pendingProps);case 24:dl(t,He,e.memoizedState.cache)}return $t(e,t,l)}function To(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)we=!0;else{if(!Gc(e,l)&&(t.flags&128)===0)return we=!1,ov(e,t,l);we=(e.flags&131072)!==0}else we=!1,fe&&(t.flags&1048576)!==0&&tf(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=bo(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===k){t.tag=11,t=mo(null,t,e,a,l);break e}else if(n===K){t.tag=14,t=ho(null,t,e,a,l);break e}}throw t=vt(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),bo(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 c=t.memoizedState;if(a=c.cache,dl(t,He,a),a!==u.cache&&tc(t,[He],l,!0),sn(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=So(e,t,a,l);break e}else if(a!==n){n=gt(Error(r(424)),t),tn(n),t=So(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=Nt(e.firstChild),Xe=t,fe=!0,fl=null,jt=!0,l=vf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Gl(),a===n){t=$t(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(ue.current).createElement(l),a[ke]=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,ue.current),Xe=t,jt=!0,n=Te,Tl(t.type)?(bs=n,Te=Nt(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,jt),a!==null?(t.stateNode=a,Xe=t,Te=Nt(a.firstChild),jt=!1,n=!0):n=!1),n||ol(t)),qa(t),n=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,vs(n,u)?a=null:c!==null&&vs(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=hc(e,t,lv,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=kv(l,t.pendingProps,jt),l!==null?(t.stateNode=l,Xe=t,Te=null,e=!0):e=!1),e||ol(t)),null;case 13:return jo(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 mo(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,dl(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 ho(e,t,t.type,t.pendingProps,l);case 15:return vo(e,t,t.type,t.pendingProps,l);case 19:return No(e,t,l);case 31:return fv(e,t,l);case 22:return yo(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),dl(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),dl(t,He,a)):(a=u.cache,dl(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 Wt(e){e.flags|=4}function kc(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(Io())e.flags|=8192;else throw Vl=du,uc}else e.flags&=-16777217}function zo(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Gd(t))if(Io())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 dv(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),Vt(He),Oe(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ya(t)?Wt(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?(Wt(t),u!==null?(ze(t),zo(t,u)):(ze(t),kc(t,n,null,a,l))):u?u!==e.memoizedState?(Wt(t),ze(t),zo(t,u)):(ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Wt(t),ze(t),kc(t,n,e,a,l)),null;case 27:if(Yn(t),l=ue.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Wt(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return ze(t),null}e=W.current,ya(t)?af(t):(e=Dd(n,a,l),t.stateNode=e,Wt(t))}return ze(t),null;case 5:if(Yn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Wt(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return ze(t),null}if(u=W.current,ya(t))af(t);else{var c=Qu(ue.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[ke]=t,u[Fe]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)u.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.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&&Wt(t)}}return ze(t),kc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Wt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.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[ke]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||jd(e.nodeValue,l)),e||ol(t,!0)}else e=Qu(e).createTextNode(a),e[ke]=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[ke]=t}else Gl(),(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[ke]=t}else Gl(),(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&&fs(t.stateNode.containerInfo),ze(t),null;case 10:return Vt(t.type),ze(t),null;case 19:if(B(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 V(Ce,Ce.current&1|2),fe&&Qt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&nt()>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*nt()-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=nt(),e.sibling=null,l=Ce.current,V(Ce,n?l&1|2:l&1),fe&&Qt(t,a.treeForkCount),e):(ze(t),null);case 22:case 23:return ft(t),oc(),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&&B(Ql),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Vt(He),ze(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function mv(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 Vt(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));Gl()}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));Gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Ce),null;case 4:return Oe(),null;case 10:return Vt(t.type),null;case 22:case 23:return ft(t),oc(),e!==null&&B(Ql),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vt(He),null;case 25:return null;default:return null}}function Ao(e,t){switch(Wi(t),t.tag){case 3:Vt(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:B(Ce);break;case 10:Vt(t.type);break;case 22:case 23:ft(t),oc(),e!==null&&B(Ql);break;case 24:Vt(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,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(o){pe(t,t.return,o)}}function xl(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 c=a.inst,o=c.destroy;if(o!==void 0){c.destroy=void 0,n=t;var y=l,N=o;try{N()}catch(C){pe(n,y,C)}}}a=a.next}while(a!==u)}}catch(C){pe(t,t.return,C)}}function _o(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{pf(t,l)}catch(a){pe(e,e.return,a)}}}function Ro(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 Bt(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 Mo(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;Hv(a,e.type,l,t),a[Fe]=t}catch(n){pe(e,e.return,n)}}function Oo(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tl(e.type)||e.tag===4}function Qc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oo(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&&Tl(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&&Tl(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&&Tl(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 Co(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[ke]=e,t[Fe]=l}catch(u){pe(e,e.return,u)}}var Ft=!1,Le=!1,Vc=!1,Do=typeof WeakSet=="function"?WeakSet:Set,Ge=null;function hv(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 c=0,o=-1,y=-1,N=0,C=0,H=e,z=null;t:for(;;){for(var _;H!==l||n!==0&&H.nodeType!==3||(o=c+n),H!==u||a!==0&&H.nodeType!==3||(y=c+a),H.nodeType===3&&(c+=H.nodeValue.length),(_=H.firstChild)!==null;)z=H,H=_;for(;;){if(H===e)break t;if(z===l&&++N===n&&(o=c),z===u&&++C===a&&(y=c),(_=H.nextSibling)!==null)break;H=z,z=H.parentNode}H=_}l=o===-1||y===-1?null:{start:o,end:y}}else l=null}l=l||{start:0,end:0}}else l=null;for(hs={focusedElem:e,selectionRange:l},Fu=!1,Ge=t;Ge!==null;)if(t=Ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ge=e;else for(;Ge!==null;){switch(t=Ge,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,Ge=e;break}Ge=t.return}}function Uo(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Pt(e,l),a&4&&yn(5,l);break;case 1:if(Pt(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){pe(l,l.return,c)}else{var n=$l(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){pe(l,l.return,c)}}a&64&&_o(l),a&512&&pn(l,l.return);break;case 3:if(Pt(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{pf(e,t)}catch(c){pe(l,l.return,c)}}break;case 27:t===null&&a&4&&Co(l);case 26:case 5:Pt(e,l),t===null&&a&4&&Mo(l),a&512&&pn(l,l.return);break;case 12:Pt(e,l);break;case 31:Pt(e,l),a&4&&wo(e,l);break;case 13:Pt(e,l),a&4&&Lo(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Ev.bind(null,l),Xv(e,l))));break;case 22:if(a=l.memoizedState!==null||Ft,!a){t=t!==null&&t.memoizedState!==null||Le,n=Ft;var u=Le;Ft=a,(Le=t)&&!u?el(e,l,(l.subtreeFlags&8772)!==0):Pt(e,l),Ft=n,Le=u}break;case 30:break;default:Pt(e,l)}}function Ho(e){var t=e.alternate;t!==null&&(e.alternate=null,Ho(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 It(e,t,l){for(l=l.child;l!==null;)Bo(e,t,l),l=l.sibling}function Bo(e,t,l){if(ut&&typeof ut.onCommitFiberUnmount=="function")try{ut.onCommitFiberUnmount(Ya,l)}catch{}switch(l.tag){case 26:Le||Bt(l,t),It(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Le||Bt(l,t);var a=Ae,n=Pe;Tl(l.type)&&(Ae=l.stateNode,Pe=!1),It(e,t,l),zn(l.stateNode),Ae=a,Pe=n;break;case 5:Le||Bt(l,t);case 6:if(a=Ae,n=Pe,Ae=null,It(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,It(e,t,l),Ae=a,Pe=n;break;case 0:case 11:case 14:case 15:xl(2,l,t),Le||xl(4,l,t),It(e,t,l);break;case 1:Le||(Bt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Ro(l,t,a)),It(e,t,l);break;case 21:It(e,t,l);break;case 22:Le=(a=Le)||l.memoizedState!==null,It(e,t,l),Le=a;break;default:It(e,t,l)}}function wo(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 Lo(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 vv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Do),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Do),t;default:throw Error(r(435,e.tag))}}function Ou(e,t){var l=vv(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Nv.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,c=t,o=c;e:for(;o!==null;){switch(o.tag){case 27:if(Tl(o.type)){Ae=o.stateNode,Pe=!1;break e}break;case 5:Ae=o.stateNode,Pe=!1;break e;case 3:case 4:Ae=o.stateNode.containerInfo,Pe=!0;break e}o=o.return}if(Ae===null)throw Error(r(160));Bo(u,c,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;)qo(t,e),t=t.sibling}var _t=null;function qo(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&&(xl(3,e,e.return),yn(3,e),xl(5,e,e.return));break;case 1:et(t,e),tt(e),a&512&&(Le||l===null||Bt(l,l.return)),a&64&&Ft&&(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=_t;if(et(t,e),tt(e),a&512&&(Le||l===null||Bt(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[ke]||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[ke]=e,Ye(u),a=u;break e;case"link":var c=qd("link","href",n).get(a+(l.href||""));if(c){for(var o=0;o<c.length;o++)if(u=c[o],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)){c.splice(o,1);break t}}u=n.createElement(a),Ve(u,a,l),n.head.appendChild(u);break;case"meta":if(c=qd("meta","content",n).get(a+(l.content||""))){for(o=0;o<c.length;o++)if(u=c[o],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)){c.splice(o,1);break t}}u=n.createElement(a),Ve(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[ke]=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||Bt(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||Bt(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=_t,_t=Zu(t.containerInfo),et(t,e),_t=n,tt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{wa(t.containerInfo)}catch(J){pe(e,e.return,J)}Vc&&(Vc=!1,Yo(e));break;case 4:a=_t,_t=Zu(e.stateNode.containerInfo),et(t,e),tt(e),_t=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=nt()),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,N=Ft,C=Le;if(Ft=N||n,Le=C||y,et(t,e),Le=C,Ft=N,tt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||y||Ft||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)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{o=y.stateNode;var H=y.memoizedProps.style,z=H!=null&&H.hasOwnProperty("display")?H.display:null;o.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 _=y.stateNode;n?Rd(_,!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(Oo(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 c=l.stateNode;l.flags&32&&(ia(c,""),l.flags&=-33);var o=Qc(e);Mu(e,o,c);break;case 3:case 4:var y=l.stateNode.containerInfo,N=Qc(e);Zc(e,N,y);break;default:throw Error(r(161))}}catch(C){pe(e,e.return,C)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yo(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Yo(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Pt(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Uo(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:xl(4,t,t.return),Wl(t);break;case 1:Bt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Ro(t,t.return,l),Wl(t);break;case 27:zn(t.stateNode);case 26:case 5:Bt(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 el(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:el(n,u,l),yn(4,u);break;case 1:if(el(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(N){pe(a,a.return,N)}if(a=u,n=a.updateQueue,n!==null){var o=a.stateNode;try{var y=n.shared.hiddenCallbacks;if(y!==null)for(n.shared.hiddenCallbacks=null,n=0;n<y.length;n++)yf(y[n],o)}catch(N){pe(a,a.return,N)}}l&&c&64&&_o(u),pn(u,u.return);break;case 27:Co(u);case 26:case 5:el(n,u,l),l&&a===null&&c&4&&Mo(u),pn(u,u.return);break;case 12:el(n,u,l);break;case 31:el(n,u,l),l&&c&4&&wo(n,u);break;case 13:el(n,u,l),l&&c&4&&Lo(n,u);break;case 22:u.memoizedState===null&&el(n,u,l),pn(u,u.return);break;case 30:break;default:el(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 Rt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Go(e,t,l,a),t=t.sibling}function Go(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Rt(e,t,l,a),n&2048&&yn(9,t);break;case 1:Rt(e,t,l,a);break;case 3:Rt(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){Rt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,o=u.onPostCommit;typeof o=="function"&&o(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(y){pe(t,t.return,y)}}else Rt(e,t,l,a);break;case 31:Rt(e,t,l,a);break;case 13:Rt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?Rt(e,t,l,a):xn(e,t):u._visibility&2?Rt(e,t,l,a):(u._visibility|=2,za(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Kc(c,t);break;case 24:Rt(e,t,l,a),n&2048&&Jc(t.alternate,t);break;default:Rt(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,c=t,o=l,y=a,N=c.flags;switch(c.tag){case 0:case 11:case 15:za(u,c,o,y,n),yn(8,c);break;case 23:break;case 22:var C=c.stateNode;c.memoizedState!==null?C._visibility&2?za(u,c,o,y,n):xn(u,c):(C._visibility|=2,za(u,c,o,y,n)),n&&N&2048&&Kc(c.alternate,c);break;case 24:za(u,c,o,y,n),n&&N&2048&&Jc(c.alternate,c);break;default:za(u,c,o,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;)ko(e,t,l),e=e.sibling}function ko(e,t,l){switch(e.tag){case 26:Aa(e,t,l),e.flags&gn&&e.memoizedState!==null&&ty(l,_t,e.memoizedState,e.memoizedProps);break;case 5:Aa(e,t,l);break;case 3:case 4:var a=_t;_t=Zu(e.stateNode.containerInfo),Aa(e,t,l),_t=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 Xo(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];Ge=a,Zo(a,e)}Xo(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Qo(e),e=e.sibling}function Qo(e){switch(e.tag){case 0:case 11:case 15:bn(e),e.flags&2048&&xl(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];Ge=a,Zo(a,e)}Xo(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xl(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 Zo(e,t){for(;Ge!==null;){var l=Ge;switch(l.tag){case 0:case 11:case 15:xl(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,Ge=a;else e:for(l=e;Ge!==null;){a=Ge;var n=a.sibling,u=a.return;if(Ho(a),a===l){Ge=null;break e}if(n!==null){n.return=u,Ge=n;break e}Ge=u}}}var yv={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}},pv=typeof WeakMap=="function"?WeakMap:Map,he=0,Ee=null,ie=null,se=0,ye=0,ot=null,gl=!1,_a=!1,$c=!1,tl=0,Me=0,bl=0,Fl=0,Wc=0,dt=0,Ra=0,Sn=null,lt=null,Fc=!1,Du=0,Vo=0,Uu=1/0,Hu=null,Sl=null,qe=0,jl=null,Ma=null,ll=0,Ic=0,Pc=null,Ko=null,jn=0,es=null;function mt(){return(he&2)!==0&&se!==0?se&-se:D.T!==null?is():cr()}function Jo(){if(dt===0)if((se&536870912)===0||fe){var e=Xn;Xn<<=1,(Xn&3932160)===0&&(Xn=262144),dt=e}else dt=536870912;return e=rt.current,e!==null&&(e.flags|=32),dt}function at(e,t,l){(e===Ee&&(ye===2||ye===9)||e.cancelPendingCommit!==null)&&(Oa(e,0),El(e,se,dt,!1)),ka(e,l),((he&2)===0||e!==Ee)&&(e===Ee&&((he&2)===0&&(Fl|=l),Me===4&&El(e,se,dt,!1)),wt(e))}function $o(e,t,l){if((he&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ga(e,t),n=a?bv(e,t):ls(e,t,!0),u=a;do{if(n===0){_a&&!a&&El(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!xv(l)){n=ls(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var o=e;n=Sn;var y=o.current.memoizedState.isDehydrated;if(y&&(Oa(o,c).flags|=256),c=ls(o,c,!1),c!==2){if($c&&!y){o.errorRecoveryDisabledLanes|=u,Fl|=u,n=4;break e}u=lt,lt=n,u!==null&&(lt===null?lt=u:lt.push.apply(lt,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){Oa(e,0),El(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:El(a,t,dt,!gl);break e;case 2:lt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Du+300-nt(),10<n)){if(El(a,t,dt,!gl),Zn(a,0,!0)!==0)break e;ll=t,a.timeoutHandle=zd(Wo.bind(null,a,l,lt,Hu,Fc,t,dt,Fl,Ra,gl,u,"Throttled",-0,0),n);break e}Wo(a,l,lt,Hu,Fc,t,dt,Fl,Ra,gl,u,null,-0,0)}}break}while(!0);wt(e)}function Wo(e,t,l,a,n,u,c,o,y,N,C,H,z,_){if(e.timeoutHandle=-1,H=t.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Gt},ko(t,u,H);var J=(u&62914560)===u?Du-nt():(u&4194048)===u?Vo-nt():0;if(J=ly(H,J),J!==null){ll=u,e.cancelPendingCommit=J(nd.bind(null,e,t,u,l,a,n,c,o,y,C,H,null,z,_)),El(e,u,c,!N);return}}nd(e,t,u,l,a,n,c,o,y)}function xv(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(!ct(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 El(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-it(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&nr(e,l,t)}function Bu(){return(he&6)===0?(En(0),!1):!0}function ts(){if(ie!==null){if(ye===0)var e=ie.return;else e=ie,Zt=kl=null,pc(e),Sa=null,nn=0,e=ie;for(;e!==null;)Ao(e.alternate,e),e=e.return;ie=null}}function Oa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Lv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),ll=0,ts(),Ee=e,ie=l=Xt(e.current,null),se=t,ye=0,ot=null,gl=!1,_a=Ga(e,t),$c=!1,Ra=dt=Wc=Fl=bl=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-it(a),u=1<<n;t|=e[n],a&=~u}return tl=t,au(),l}function Fo(e,t){ae=null,D.H=mn,t===ba||t===ou?(t=df(),ye=3):t===uc?(t=df(),ye=4):ye=t===Dc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ot=t,ie===null&&(Me=1,Tu(e,gt(t,e.current)))}function Io(){var e=rt.current;return e===null?!0:(se&4194048)===se?Et===null:(se&62914560)===se||(se&536870912)!==0?e===Et:!1}function Po(){var e=D.H;return D.H=mn,e===null?mn:e}function ed(){var e=D.A;return D.A=yv,e}function wu(){Me=4,gl||(se&4194048)!==se&&rt.current!==null||(_a=!0),(bl&134217727)===0&&(Fl&134217727)===0||Ee===null||El(Ee,se,dt,!1)}function ls(e,t,l){var a=he;he|=2;var n=Po(),u=ed();(Ee!==e||se!==t)&&(Hu=null,Oa(e,t)),t=!1;var c=Me;e:do try{if(ye!==0&&ie!==null){var o=ie,y=ot;switch(ye){case 8:ts(),c=6;break e;case 3:case 2:case 9:case 6:rt.current===null&&(t=!0);var N=ye;if(ye=0,ot=null,Ca(e,o,y,N),l&&_a){c=0;break e}break;default:N=ye,ye=0,ot=null,Ca(e,o,y,N)}}gv(),c=Me;break}catch(C){Fo(e,C)}while(!0);return t&&e.shellSuspendCounter++,Zt=kl=null,he=a,D.H=n,D.A=u,ie===null&&(Ee=null,se=0,au()),c}function gv(){for(;ie!==null;)td(ie)}function bv(e,t){var l=he;he|=2;var a=Po(),n=ed();Ee!==e||se!==t?(Hu=null,Uu=nt()+500,Oa(e,t)):_a=Ga(e,t);e:do try{if(ye!==0&&ie!==null){t=ie;var u=ot;t:switch(ye){case 1:ye=0,ot=null,Ca(e,t,u,1);break;case 2:case 9:if(ff(u)){ye=0,ot=null,ld(t);break}t=function(){ye!==2&&ye!==9||Ee!==e||(ye=7),wt(e)},u.then(t,t);break e;case 3:ye=7;break e;case 4:ye=5;break e;case 7:ff(u)?(ye=0,ot=null,ld(t)):(ye=0,ot=null,Ca(e,t,u,7));break;case 5:var c=null;switch(ie.tag){case 26:c=ie.memoizedState;case 5:case 27:var o=ie;if(c?Gd(c):o.stateNode.complete){ye=0,ot=null;var y=o.sibling;if(y!==null)ie=y;else{var N=o.return;N!==null?(ie=N,Lu(N)):ie=null}break t}}ye=0,ot=null,Ca(e,t,u,5);break;case 6:ye=0,ot=null,Ca(e,t,u,6);break;case 8:ts(),Me=6;break e;default:throw Error(r(462))}}Sv();break}catch(C){Fo(e,C)}while(!0);return Zt=kl=null,D.H=a,D.A=n,he=l,ie!==null?0:(Ee=null,se=0,au(),Me)}function Sv(){for(;ie!==null&&!Qm();)td(ie)}function td(e){var t=To(e.alternate,e,tl);e.memoizedProps=e.pendingProps,t===null?Lu(e):ie=t}function ld(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=go(l,t,t.pendingProps,t.type,void 0,se);break;case 11:t=go(l,t,t.pendingProps,t.type.render,t.ref,se);break;case 5:pc(t);default:Ao(l,t),t=ie=Ir(t,tl),t=To(l,t,tl)}e.memoizedProps=e.pendingProps,t===null?Lu(e):ie=t}function Ca(e,t,l,a){Zt=kl=null,pc(t),Sa=null,nn=0;var n=t.return;try{if(rv(e,n,t,l,se)){Me=1,Tu(e,gt(l,e.current)),ie=null;return}}catch(u){if(n!==null)throw ie=n,u;Me=1,Tu(e,gt(l,e.current)),ie=null;return}t.flags&32768?(fe||a===1?e=!0:_a||(se&536870912)!==0?e=!1:(gl=e=!0,(a===2||a===9||a===3||a===6)&&(a=rt.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,gl);return}e=t.return;var l=dv(t.alternate,t,tl);if(l!==null){ie=l;return}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);Me===0&&(Me=5)}function ad(e,t){do{var l=mv(e.alternate,e);if(l!==null){l.flags&=32767,ie=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ie=e;return}ie=e=l}while(e!==null);Me=6,ie=null}function nd(e,t,l,a,n,u,c,o,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,eh(e,l,u,c,o,y),e===Ee&&(ie=Ee=null,se=0),Ma=t,jl=e,ll=l,Ic=u,Pc=n,Ko=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Tv(Gn,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=Z.p,Z.p=2,c=he,he|=4;try{hv(e,t,l)}finally{he=c,Z.p=n,D.T=a}}qe=1,ud(),id(),cd()}}function ud(){if(qe===1){qe=0;var e=jl,t=Ma,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var a=Z.p;Z.p=2;var n=he;he|=4;try{qo(t,e);var u=hs,c=Xr(e.containerInfo),o=u.focusedElem,y=u.selectionRange;if(c!==o&&o&&o.ownerDocument&&kr(o.ownerDocument.documentElement,o)){if(y!==null&&qi(o)){var N=y.start,C=y.end;if(C===void 0&&(C=N),"selectionStart"in o)o.selectionStart=N,o.selectionEnd=Math.min(C,o.value.length);else{var H=o.ownerDocument||document,z=H&&H.defaultView||window;if(z.getSelection){var _=z.getSelection(),J=o.textContent.length,P=Math.min(y.start,J),Se=y.end===void 0?P:Math.min(y.end,J);!_.extend&&P>Se&&(c=Se,Se=P,P=c);var j=Gr(o,P),p=Gr(o,Se);if(j&&p&&(_.rangeCount!==1||_.anchorNode!==j.node||_.anchorOffset!==j.offset||_.focusNode!==p.node||_.focusOffset!==p.offset)){var E=H.createRange();E.setStart(j.node,j.offset),_.removeAllRanges(),P>Se?(_.addRange(E),_.extend(p.node,p.offset)):(E.setEnd(p.node,p.offset),_.addRange(E))}}}}for(H=[],_=o;_=_.parentNode;)_.nodeType===1&&H.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<H.length;o++){var U=H[o];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Fu=!!ms,hs=ms=null}finally{he=n,Z.p=a,D.T=l}}e.current=t,qe=2}}function id(){if(qe===2){qe=0;var e=jl,t=Ma,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var a=Z.p;Z.p=2;var n=he;he|=4;try{Uo(e,t.alternate,t)}finally{he=n,Z.p=a,D.T=l}}qe=3}}function cd(){if(qe===4||qe===3){qe=0,Zm();var e=jl,t=Ma,l=ll,a=Ko;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?qe=5:(qe=0,Ma=jl=null,sd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Sl=null),bi(l),t=t.stateNode,ut&&typeof ut.onCommitFiberRoot=="function")try{ut.onCommitFiberRoot(Ya,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,n=Z.p,Z.p=2,D.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var o=a[c];u(o.value,{componentStack:o.stack})}}finally{D.T=t,Z.p=n}}(ll&3)!==0&&qu(),wt(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=jl,t=Ic;Ic=0;var l=bi(ll),a=D.T,n=Z.p;try{Z.p=32>l?32:l,D.T=null,l=Pc,Pc=null;var u=jl,c=ll;if(qe=0,Ma=jl=null,ll=0,(he&6)!==0)throw Error(r(331));var o=he;if(he|=4,Qo(u.current),Go(u,u.current,c,l),he=o,En(0,!1),ut&&typeof ut.onPostCommitFiberRoot=="function")try{ut.onPostCommitFiberRoot(Ya,u)}catch{}return!0}finally{Z.p=n,D.T=a,sd(e,t)}}function fd(e,t,l){t=gt(l,t),t=Cc(e.stateNode,t,2),e=vl(e,t,2),e!==null&&(ka(e,2),wt(e))}function pe(e,t,l){if(e.tag===3)fd(e,e,l);else for(;t!==null;){if(t.tag===3){fd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Sl===null||!Sl.has(a))){e=gt(l,e),l=fo(2),a=vl(t,l,2),a!==null&&(oo(l,a,t,e),ka(a,2),wt(a));break}}t=t.return}}function as(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new pv;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=jv.bind(null,e,t,l),t.then(e,e))}function jv(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ee===e&&(se&l)===l&&(Me===4||Me===3&&(se&62914560)===se&&300>nt()-Du?(he&2)===0&&Oa(e,0):Wc|=l,Ra===se&&(Ra=0)),wt(e)}function od(e,t){t===0&&(t=ar()),e=ql(e,t),e!==null&&(ka(e,t),wt(e))}function Ev(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),od(e,l)}function Nv(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),od(e,l)}function Tv(e,t){return yi(e,t)}var Yu=null,Da=null,ns=!1,Gu=!1,us=!1,Nl=0;function wt(e){e!==Da&&e.next===null&&(Da===null?Yu=Da=e:Da=Da.next=e),Gu=!0,ns||(ns=!0,Av())}function En(e,t){if(!us&&Gu){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 c=a.suspendedLanes,o=a.pingedLanes;u=(1<<31-it(42|e)+1)-1,u&=n&~(c&~o),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,vd(a,u))}else u=se,u=Zn(a,a===Ee?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ga(a,u)||(l=!0,vd(a,u));a=a.next}while(l);us=!1}}function zv(){dd()}function dd(){Gu=ns=!1;var e=0;Nl!==0&&wv()&&(e=Nl);for(var t=nt(),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)&&(Gu=!0)),a=n}qe!==0&&qe!==5||En(e),Nl!==0&&(Nl=0)}function md(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-it(u),o=1<<c,y=n[c];y===-1?((o&l)===0||(o&a)!==0)&&(n[c]=Pm(o,t)):y<=t&&(e.expiredLanes|=o),u&=~o}if(t=Ee,l=se,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||Ga(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=Gn;break;case 268435456:l=lr;break;default:l=Gn}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=se;return a=Zn(e,e===Ee?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:($o(e,a,t),md(e,nt()),e.callbackNode!=null&&e.callbackNode===l?hd.bind(null,e):null)}function vd(e,t){if(qu())return null;$o(e,t,!0)}function Av(){qv(function(){(he&6)!==0?yi(er,zv):dd()})}function is(){if(Nl===0){var e=xa;e===0&&(e=kn,kn<<=1,(kn&261888)===0&&(kn=256)),Nl=e}return Nl}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 _v(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=yd((n[Fe]||null).action),c=a.submitter;c&&(t=(t=c[Fe]||null)?yd(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var o=new Pn("action","action",null,a,n);e.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Nl!==0){var y=c?pd(n,c):new FormData(n);zc(l,{pending:!0,data:y,method:n.method,action:u},null,y)}}else typeof u=="function"&&(o.preventDefault(),y=c?pd(n,c):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],Rv=ss.toLowerCase(),Mv=ss[0].toUpperCase()+ss.slice(1);At(Rv,"on"+Mv)}At(Vr,"onAnimationEnd"),At(Kr,"onAnimationIteration"),At(Jr,"onAnimationStart"),At("dblclick","onDoubleClick"),At("focusin","onFocus"),At("focusout","onBlur"),At(Vh,"onTransitionRun"),At(Kh,"onTransitionStart"),At(Jh,"onTransitionCancel"),At($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(" "),Ov=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 c=a.length-1;0<=c;c--){var o=a[c],y=o.instance,N=o.currentTarget;if(o=o.listener,y!==u&&n.isPropagationStopped())break e;u=o,n.currentTarget=N;try{u(n)}catch(C){lu(C)}n.currentTarget=null,u=y}else for(c=0;c<a.length;c++){if(o=a[c],y=o.instance,N=o.currentTarget,o=o.listener,y!==u&&n.isPropagationStopped())break e;u=o,n.currentTarget=N;try{u(n)}catch(C){lu(C)}n.currentTarget=null,u=y}}}}function ce(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 ku="_reactListening"+Math.random().toString(36).slice(2);function fs(e){if(!e[ku]){e[ku]=!0,fr.forEach(function(l){l!=="selectionchange"&&(Ov.has(l)||rs(l,!1,e),rs(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ku]||(t[ku]=!0,rs("selectionchange",!1,t))}}function gd(e,t,l,a){switch(Jd(t)){case 2:var n=uy;break;case 8:n=iy;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 os(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var o=a.stateNode.containerInfo;if(o===n)break;if(c===4)for(c=a.return;c!==null;){var y=c.tag;if((y===3||y===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;o!==null;){if(c=ta(o),c===null)return;if(y=c.tag,y===5||y===6||y===26||y===27){a=u=c;continue e}o=o.parentNode}}a=a.return}jr(function(){var N=u,C=_i(l),H=[];e:{var z=Wr.get(e);if(z!==void 0){var _=Pn,J=e;switch(e){case"keypress":if(Fn(l)===0)break e;case"keydown":case"keyup":_=Nh;break;case"focusin":J="focus",_=Ui;break;case"focusout":J="blur",_=Ui;break;case"beforeblur":case"afterblur":_=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":_=Tr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=dh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=Ah;break;case Vr:case Kr:case Jr:_=vh;break;case $r:_=Rh;break;case"scroll":case"scrollend":_=fh;break;case"wheel":_=Oh;break;case"copy":case"cut":case"paste":_=ph;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Ar;break;case"toggle":case"beforetoggle":_=Dh}var P=(t&4)!==0,Se=!P&&(e==="scroll"||e==="scrollend"),j=P?z!==null?z+"Capture":null:z;P=[];for(var p=N,E;p!==null;){var U=p;if(E=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||E===null||j===null||(U=Za(p,j),U!=null&&P.push(Tn(p,U,E))),Se)break;p=p.return}0<P.length&&(z=new _(z,J,null,l,C),H.push({event:z,listeners:P}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",z&&l!==Ai&&(J=l.relatedTarget||l.fromElement)&&(ta(J)||J[ea]))break e;if((_||z)&&(z=C.window===C?C:(z=C.ownerDocument)?z.defaultView||z.parentWindow:window,_?(J=l.relatedTarget||l.toElement,_=N,J=J?ta(J):null,J!==null&&(Se=h(J),P=J.tag,J!==Se||P!==5&&P!==27&&P!==6)&&(J=null)):(_=null,J=N),_!==J)){if(P=Tr,U="onMouseLeave",j="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(P=Ar,U="onPointerLeave",j="onPointerEnter",p="pointer"),Se=_==null?z:Qa(_),E=J==null?z:Qa(J),z=new P(U,p+"leave",_,l,C),z.target=Se,z.relatedTarget=E,U=null,ta(C)===N&&(P=new P(j,p+"enter",J,l,C),P.target=E,P.relatedTarget=Se,U=P),Se=U,_&&J)t:{for(P=Cv,j=_,p=J,E=0,U=j;U;U=P(U))E++;U=0;for(var I=p;I;I=P(I))U++;for(;0<E-U;)j=P(j),E--;for(;0<U-E;)p=P(p),U--;for(;E--;){if(j===p||p!==null&&j===p.alternate){P=j;break t}j=P(j),p=P(p)}P=null}else P=null;_!==null&&bd(H,z,_,P,!1),J!==null&&Se!==null&&bd(H,Se,J,P,!0)}}e:{if(z=N?Qa(N):window,_=z.nodeName&&z.nodeName.toLowerCase(),_==="select"||_==="input"&&z.type==="file")var de=Hr;else if(Dr(z))if(Br)de=Xh;else{de=Gh;var F=Yh}else _=z.nodeName,!_||_.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?N&&zi(N.elementType)&&(de=Hr):de=kh;if(de&&(de=de(e,N))){Ur(H,de,l,C);break e}F&&F(e,z,N),e==="focusout"&&N&&z.type==="number"&&N.memoizedProps.value!=null&&Ti(z,"number",z.value)}switch(F=N?Qa(N):window,e){case"focusin":(Dr(F)||F.contentEditable==="true")&&(fa=F,Yi=N,Pa=null);break;case"focusout":Pa=Yi=fa=null;break;case"mousedown":Gi=!0;break;case"contextmenu":case"mouseup":case"dragend":Gi=!1,Qr(H,l,C);break;case"selectionchange":if(Zh)break;case"keydown":case"keyup":Qr(H,l,C)}var ne;if(Bi)e:{switch(e){case"compositionstart":var re="onCompositionStart";break e;case"compositionend":re="onCompositionEnd";break e;case"compositionupdate":re="onCompositionUpdate";break e}re=void 0}else ra?Or(e,l)&&(re="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(re="onCompositionStart");re&&(_r&&l.locale!=="ko"&&(ra||re!=="onCompositionStart"?re==="onCompositionEnd"&&ra&&(ne=Er()):(sl=C,Oi="value"in sl?sl.value:sl.textContent,ra=!0)),F=Xu(N,re),0<F.length&&(re=new zr(re,e,null,l,C),H.push({event:re,listeners:F}),ne?re.data=ne:(ne=Cr(l),ne!==null&&(re.data=ne)))),(ne=Hh?Bh(e,l):wh(e,l))&&(re=Xu(N,"onBeforeInput"),0<re.length&&(F=new zr("onBeforeInput","beforeinput",null,l,C),H.push({event:F,listeners:re}),F.data=ne)),_v(H,e,N,l,C)}xd(H,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 Cv(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,c=[];l!==null&&l!==a;){var o=l,y=o.alternate,N=o.stateNode;if(o=o.tag,y!==null&&y===a)break;o!==5&&o!==26&&o!==27||N===null||(y=N,n?(N=Za(l,u),N!=null&&c.unshift(Tn(l,N,y))):n||(N=Za(l,u),N!=null&&c.push(Tn(l,N,y)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var Dv=/\r\n?/g,Uv=/\u0000|\uFFFD/g;function Sd(e){return(typeof e=="string"?e:""+e).replace(Dv,`
49
+ `).replace(Uv,"")}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&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("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":ce("beforetoggle",e),ce("toggle",e),Vn(e,"popover",a);break;case"xlinkActuate":Yt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Yt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Yt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Yt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Yt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Yt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Yt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Vn(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=sh.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&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("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(!or.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":ce("error",e),ce("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=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,c,l,null)}}n&&be(e,t,"srcSet",l.srcSet,l,null),a&&be(e,t,"src",l.src,l,null);return;case"input":ce("invalid",e);var o=u=c=n=null,y=null,N=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":c=C;break;case"checked":y=C;break;case"defaultChecked":N=C;break;case"value":u=C;break;case"defaultValue":o=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,o,y,N,c,n,!1);return;case"select":ce("invalid",e),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(o=l[n],o!=null))switch(n){case"value":u=o;break;case"defaultValue":c=o;break;case"multiple":a=o;default:be(e,t,n,o,l,null)}t=u,l=c,e.multiple=!!a,t!=null?ua(e,!!a,t,!1):l!=null&&ua(e,!!a,l,!0);return;case"textarea":ce("invalid",e),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(o=l[c],o!=null))switch(c){case"value":a=o;break;case"defaultValue":n=o;break;case"children":u=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:be(e,t,c,o,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":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(a=0;a<Nn.length;a++)ce(Nn[a],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in l)if(l.hasOwnProperty(N)&&(a=l[N],a!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:be(e,t,N,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(o in l)l.hasOwnProperty(o)&&(a=l[o],a!=null&&be(e,t,o,a,l,null))}function Hv(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,c=null,o=null,y=null,N=null,C=null;for(_ in l){var H=l[_];if(l.hasOwnProperty(_)&&H!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":y=H;default:a.hasOwnProperty(_)||be(e,t,_,null,a,H)}}for(var z in a){var _=a[z];if(H=l[z],a.hasOwnProperty(z)&&(_!=null||H!=null))switch(z){case"type":u=_;break;case"name":n=_;break;case"checked":N=_;break;case"defaultChecked":C=_;break;case"value":c=_;break;case"defaultValue":o=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:_!==H&&be(e,t,z,_,a,H)}}Ni(e,c,o,y,N,C,u,n);return;case"select":_=c=o=z=null;for(u in l)if(y=l[u],l.hasOwnProperty(u)&&y!=null)switch(u){case"value":break;case"multiple":_=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":o=u;break;case"multiple":c=u;default:u!==y&&be(e,t,n,u,a,y)}t=o,l=c,a=_,z!=null?ua(e,!!l,z,!1):!!a!=!!l&&(t!=null?ua(e,!!l,t,!0):ua(e,!!l,l?[]:"",!1));return;case"textarea":_=z=null;for(o in l)if(n=l[o],l.hasOwnProperty(o)&&n!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:be(e,t,o,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":z=n;break;case"defaultValue":_=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&be(e,t,c,n,a,u)}pr(e,z,_);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],_=l[y],a.hasOwnProperty(y)&&z!==_&&(z!=null||_!=null))switch(y){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:be(e,t,y,z,a,_)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var P in l)z=l[P],l.hasOwnProperty(P)&&z!=null&&!a.hasOwnProperty(P)&&be(e,t,P,null,a,z);for(N in a)if(z=a[N],_=l[N],a.hasOwnProperty(N)&&z!==_&&(z!=null||_!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:be(e,t,N,z,a,_)}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],_=l[C],!a.hasOwnProperty(C)||z===_||z===void 0&&_===void 0||ds(e,t,C,z,a,_);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(H in a)z=a[H],_=l[H],!a.hasOwnProperty(H)||z===_||z==null&&_==null||be(e,t,H,z,a,_)}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 Bv(){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,c=n.initiatorType,o=n.duration;if(u&&o&&Ed(c)){for(c=0,o=n.responseEnd,a+=1;a<l.length;a++){var y=l[a],N=y.startTime;if(N>o)break;var C=y.transferSize,H=y.initiatorType;C&&Ed(H)&&(y=y.responseEnd,c+=C*(y<o?1:(o-N)/(y-N)))}if(--a,t+=8*(u+c)/(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 wv(){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,Lv=typeof clearTimeout=="function"?clearTimeout:void 0,Ad=typeof Promise=="function"?Promise:void 0,qv=typeof queueMicrotask=="function"?queueMicrotask:typeof Ad<"u"?function(e){return Ad.resolve(null).then(e).catch(Yv)}:zd;function Yv(e){setTimeout(function(){throw e})}function Tl(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 c=u.nextSibling,o=u.nodeName;u[Xa]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}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=Nt(e.nextSibling),e===null)break}return null}function kv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Nt(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=Nt(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 Xv(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 Nt(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 Nt(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 Tt=new Map,Ud=new Set;function Zu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var al=Z.d;Z.d={f:Qv,r:Zv,D:Vv,C:Kv,L:Jv,m:$v,X:Fv,S:Wv,M:Iv};function Qv(){var e=al.f(),t=Bu();return e||t}function Zv(e){var t=la(e);t!==null&&t.tag===5&&t.type==="form"?Wf(t):al.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=pt(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 Vv(e){al.D(e),Hd("dns-prefetch",e,null)}function Kv(e,t){al.C(e,t),Hd("preconnect",e,t)}function Jv(e,t,l){al.L(e,t,l);var a=Ua;if(a&&e&&t){var n='link[rel="preload"][as="'+pt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+pt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+pt(l.imageSizes)+'"]')):n+='[href="'+pt(e)+'"]';var u=n;switch(t){case"style":u=Ha(e);break;case"script":u=Ba(e)}Tt.has(u)||(e=x({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Tt.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 $v(e,t){al.m(e,t);var l=Ua;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+pt(a)+'"][href="'+pt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ba(e)}if(!Tt.has(u)&&(e=x({rel:"modulepreload",href:e},t),Tt.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 Wv(e,t,l){al.S(e,t,l);var a=Ua;if(a&&e){var n=aa(a).hoistableStyles,u=Ha(e);t=t||"default";var c=n.get(u);if(!c){var o={loading:0,preload:null};if(c=a.querySelector(An(u)))o.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Tt.get(u))&&Ss(e,l);var y=c=a.createElement("link");Ye(y),Ve(y,"link",e),y._p=new Promise(function(N,C){y.onload=N,y.onerror=C}),y.addEventListener("load",function(){o.loading|=1}),y.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Vu(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:o},n.set(u,c)}}}function Fv(e,t){al.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=x({src:e,async:!0},t),(t=Tt.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 Iv(e,t){al.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=x({src:e,async:!0,type:"module"},t),(t=Tt.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=ue.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,c=u.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=n.querySelector(An(e)))&&!u._p&&(c.instance=u,c.state.loading=5),Tt.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},Tt.set(e,l),u||Pv(n,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}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="'+pt(e)+'"'}function An(e){return'link[rel="stylesheet"]['+e+"]"}function wd(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function Pv(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="'+pt(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~="'+pt(l.href)+'"]');if(a)return t.instance=a,Ye(a),a;var n=x({},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=Tt.get(n))&&Ss(a,n),u=(e.ownerDocument||e).createElement("link"),Ye(u);var c=u;return c._p=new Promise(function(o,y){c.onload=o,c.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=Tt.get(u))&&(a=x({},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,c=0;c<a.length;c++){var o=a[c];if(o.dataset.precedence===t)u=o;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[ke]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var o=a.get(c);o?o.push(u):a.set(c,[u])}}return a}function Yd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function ey(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 Gd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ty(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=Tt.get(n))&&Ss(a,n),u=u.createElement("link"),Ye(u);var c=u;c._p=new Promise(function(o,y){c.onload=o,c.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 ly(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*Bv());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(ay,e),$u=null,Ju.call(e))}function ay(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 c=n[u];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,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:Q,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function ny(e,t,l,a,n,u,c,o,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=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function kd(e,t,l,a,n,u,c,o,y,N,C,H){return e=new ny(e,t,l,c,y,N,C,H,o),t=1,u===!0&&(t|=24),u=st(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=hl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=vl(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=mt();t=gi(t);var l=ql(e,t);l!==null&&at(l,e,t),Ns(e,t)}}var Fu=!0;function uy(e,t,l,a){var n=D.T;D.T=null;var u=Z.p;try{Z.p=2,Ts(e,t,l,a)}finally{Z.p=u,D.T=n}}function iy(e,t,l,a){var n=D.T;D.T=null;var u=Z.p;try{Z.p=8,Ts(e,t,l,a)}finally{Z.p=u,D.T=n}}function Ts(e,t,l,a){if(Fu){var n=zs(a);if(n===null)os(e,t,a,Iu,l),$d(e,a);else if(sy(n,e,t,l,a))a.stopPropagation();else if($d(e,a),t&4&&-1<cy.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 c=Ul(u.pendingLanes);if(c!==0){var o=u;for(o.pendingLanes|=2,o.entangledLanes|=2;c;){var y=1<<31-it(c);o.entanglements[1]|=y,c&=~y}wt(u),(he&6)===0&&(Uu=nt()+500,En(0))}}break;case 31:case 13:o=ql(u,2),o!==null&&at(o,u,2),Bu(),Ns(u,2)}if(u=zs(a),u===null&&os(e,t,a,Iu,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else os(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=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=g(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(Vm()){case er:return 2;case tr:return 8;case Gn:case Km:return 32;case lr:return 268435456;default:return 32}default:return 32}}var _s=!1,zl=null,Al=null,_l=null,Mn=new Map,On=new Map,Rl=[],cy="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":zl=null;break;case"dragenter":case"dragleave":Al=null;break;case"mouseover":case"mouseout":_l=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 sy(e,t,l,a,n){switch(t){case"focusin":return zl=Cn(zl,e,t,l,a,n),!0;case"dragenter":return Al=Cn(Al,e,t,l,a,n),!0;case"mouseover":return _l=Cn(_l,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=h(t);if(l!==null){if(t=l.tag,t===13){if(t=g(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 ry(){_s=!1,zl!==null&&Pu(zl)&&(zl=null),Al!==null&&Pu(Al)&&(Al=null),_l!==null&&Pu(_l)&&(_l=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,ry)))}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)}zl!==null&&ei(zl,e),Al!==null&&ei(Al,e),_l!==null&&ei(_l,e),Mn.forEach(t),On.forEach(t);for(var l=0;l<Rl.length;l++){var a=Rl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Rl.length&&(l=Rl[0],l.blockedOn===null);)Wd(l),l.blockedOn===null&&Rl.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],c=n[Fe]||null;if(typeof u=="function")c||Id(l);else if(c){var o=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[Fe]||null)o=c.formAction;else if(As(n)!==null)continue}else o=c.action;typeof o=="function"?l[a+1]=o:(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(c){return n=c})},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=mt();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<Rl.length&&t!==0&&t<Rl[l].priority;l++);Rl.splice(l,0,e),l===0&&Wd(e)}};var em=f.version;if(em!=="19.2.4")throw Error(r(527,em,"19.2.4"));Z.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=v(t),e=e!==null?M(e):null,e=e===null?null:e.stateNode,e};var fy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef: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),ut=ai}catch{}}return Un.createRoot=function(e,t){if(!m(e))throw Error(r(299));var l=!1,a="",n=io,u=co,c=so;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&&(c=t.onRecoverableError)),t=kd(e,1,!1,null,null,l,a,null,n,u,c,Pd),e[ea]=t.current,fs(e),new Rs(t)},Un.hydrateRoot=function(e,t,l){if(!m(e))throw Error(r(299));var a=!1,n="",u=io,c=co,o=so,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&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.formState!==void 0&&(y=l.formState)),t=kd(e,1,!0,t,l??null,a,n,y,u,c,o,Pd),t.context=Xd(null),l=t.current,a=mt(),a=gi(a),n=hl(a),n.callback=null,vl(l,n,a),l=a,t.current.lanes=l,ka(t,l),wt(t),e[ea]=t.current,fs(e),new li(t)},Un.version="19.2.4",Un}var fm;function by(){if(fm)return Cs.exports;fm=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(f){console.error(f)}}return i(),Cs.exports=gy(),Cs.exports}var Sy=by();/**
50
50
  * react-router v7.13.1
51
51
  *
52
52
  * Copyright (c) Remix Software Inc.
@@ -55,16 +55,16 @@ Error generating stack: `+a.message+`
55
55
  * LICENSE.md file in the root directory of this source tree.
56
56
  *
57
57
  * @license MIT
58
- */var om="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 jy(i={}){function f(m,h){let{pathname:x="/",search:A="",hash:S=""}=Il(m.location.hash.substring(1));return!x.startsWith("/")&&!x.startsWith(".")&&(x="/"+x),ks("",{pathname:x,search:A,hash:S},h.state&&h.state.usr||null,h.state&&h.state.key||"default")}function d(m,h){let x=m.document.querySelector("base"),A="";if(x&&x.getAttribute("href")){let S=m.location.href,y=S.indexOf("#");A=y===-1?S:S.slice(0,y)}return A+"#"+(typeof h=="string"?h:Bn(h))}function r(m,h){Ot(m.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(h)})`)}return Ny(f,d,r,i)}function _e(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function Ot(i,f){if(!i){typeof console<"u"&&console.warn(f);try{throw new Error(f)}catch{}}}function Ey(){return Math.random().toString(36).substring(2,10)}function mm(i,f){return{usr:i.state,key:i.key,idx:f,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function ks(i,f,d=null,r,m){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof f=="string"?Il(f):f,state:d,key:f&&f.key||r||Ey(),unstable_mask:m}}function Bn({pathname:i="/",search:f="",hash:d=""}){return f&&f!=="?"&&(i+=f.charAt(0)==="?"?f:"?"+f),d&&d!=="#"&&(i+=d.charAt(0)==="#"?d:"#"+d),i}function Il(i){let f={};if(i){let d=i.indexOf("#");d>=0&&(f.hash=i.substring(d),i=i.substring(0,d));let r=i.indexOf("?");r>=0&&(f.search=i.substring(r),i=i.substring(0,r)),i&&(f.pathname=i)}return f}function Ny(i,f,d,r={}){let{window:m=document.defaultView,v5Compat:h=!1}=r,x=m.history,A="POP",S=null,y=R();y==null&&(y=0,x.replaceState({...x.state,idx:y},""));function R(){return(x.state||{idx:null}).idx}function p(){A="POP";let M=R(),C=M==null?null:M-y;y=M,S&&S({action:A,location:L.location,delta:C})}function w(M,C){A="PUSH";let Z=dm(M)?M:ks(L.location,M,C);d&&d(Z,M),y=R()+1;let F=mm(Z,y),Q=L.createHref(Z.unstable_mask||Z);try{x.pushState(F,"",Q)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;m.location.assign(Q)}h&&S&&S({action:A,location:L.location,delta:1})}function G(M,C){A="REPLACE";let Z=dm(M)?M:ks(L.location,M,C);d&&d(Z,M),y=R();let F=mm(Z,y),Q=L.createHref(Z.unstable_mask||Z);x.replaceState(F,"",Q),h&&S&&S({action:A,location:L.location,delta:0})}function O(M){return Ty(M)}let L={get action(){return A},get location(){return i(m,x)},listen(M){if(S)throw new Error("A history only accepts one active listener");return m.addEventListener(om,p),S=M,()=>{m.removeEventListener(om,p),S=null}},createHref(M){return f(m,M)},createURL:O,encodeLocation(M){let C=O(M);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:w,replace:G,go(M){return x.go(M)}};return L}function Ty(i,f=!1){let d="http://localhost";typeof window<"u"&&(d=window.location.origin!=="null"?window.location.origin:window.location.href),_e(d,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:Bn(i);return r=r.replace(/ $/,"%20"),!f&&r.startsWith("//")&&(r=d+r),new URL(r,d)}function Tm(i,f,d="/"){return zy(i,f,d,!1)}function zy(i,f,d,r){let m=typeof f=="string"?Il(f):f,h=nl(m.pathname||"/",d);if(h==null)return null;let x=zm(i);Ay(x);let A=null;for(let S=0;A==null&&S<x.length;++S){let y=Ly(h);A=By(x[S],y,r)}return A}function zm(i,f=[],d=[],r="",m=!1){let h=(x,A,S=m,y)=>{let R={relativePath:y===void 0?x.path||"":y,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=Lt([r,R.relativePath]),w=d.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,f,w,p,S)),!(x.path==null&&!x.index)&&f.push({path:p,score:Uy(p,x.index),routesMeta:w})};return i.forEach((x,A)=>{var S;if(x.path===""||!((S=x.path)!=null&&S.includes("?")))h(x,A);else for(let y of Am(x.path))h(x,A,!0,y)}),f}function Am(i){let f=i.split("/");if(f.length===0)return[];let[d,...r]=f,m=d.endsWith("?"),h=d.replace(/\?$/,"");if(r.length===0)return m?[h,""]:[h];let x=Am(r.join("/")),A=[];return A.push(...x.map(S=>S===""?h:[h,S].join("/"))),m&&A.push(...x),A.map(S=>i.startsWith("/")&&S===""?"/":S)}function Ay(i){i.sort((f,d)=>f.score!==d.score?d.score-f.score:Hy(f.routesMeta.map(r=>r.childrenIndex),d.routesMeta.map(r=>r.childrenIndex)))}var _y=/^:[\w-]+$/,Ry=3,My=2,Oy=1,Cy=10,Dy=-2,hm=i=>i==="*";function Uy(i,f){let d=i.split("/"),r=d.length;return d.some(hm)&&(r+=Dy),f&&(r+=My),d.filter(m=>!hm(m)).reduce((m,h)=>m+(_y.test(h)?Ry:h===""?Oy:Cy),r)}function Hy(i,f){return i.length===f.length&&i.slice(0,-1).every((r,m)=>r===f[m])?i[i.length-1]-f[f.length-1]:0}function By(i,f,d=!1){let{routesMeta:r}=i,m={},h="/",x=[];for(let A=0;A<r.length;++A){let S=r[A],y=A===r.length-1,R=h==="/"?f:f.slice(h.length)||"/",p=si({path:S.relativePath,caseSensitive:S.caseSensitive,end:y},R),w=S.route;if(!p&&y&&d&&!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:Lt([h,p.pathname]),pathnameBase:ky(Lt([h,p.pathnameBase])),route:w}),p.pathnameBase!=="/"&&(h=Lt([h,p.pathnameBase]))}return x}function si(i,f){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[d,r]=wy(i.path,i.caseSensitive,i.end),m=f.match(d);if(!m)return null;let h=m[0],x=h.replace(/(.)\/+$/,"$1"),A=m.slice(1);return{params:r.reduce((y,{paramName:R,isOptional:p},w)=>{if(R==="*"){let O=A[w]||"";x=h.slice(0,h.length-O.length).replace(/(.)\/+$/,"$1")}const G=A[w];return p&&!G?y[R]=void 0:y[R]=(G||"").replace(/%2F/g,"/"),y},{}),pathname:h,pathnameBase:x,pattern:i}}function wy(i,f=!1,d=!0){Ot(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,y,R)=>{if(r.push({paramName:A,isOptional:S!=null}),S){let p=R.charAt(y+x.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(r.push({paramName:"*"}),m+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):d?m+="\\/*$":i!==""&&i!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,f?void 0:"i"),r]}function Ly(i){try{return i.split("/").map(f=>decodeURIComponent(f).replace(/\//g,"%2F")).join("/")}catch(f){return Ot(!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 (${f}).`),i}}function nl(i,f){if(f==="/")return i;if(!i.toLowerCase().startsWith(f.toLowerCase()))return null;let d=f.endsWith("/")?f.length-1:f.length,r=i.charAt(d);return r&&r!=="/"?null:i.slice(d)||"/"}var qy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Yy(i,f="/"){let{pathname:d,search:r="",hash:m=""}=typeof i=="string"?Il(i):i,h;return d?(d=d.replace(/\/\/+/g,"/"),d.startsWith("/")?h=vm(d.substring(1),"/"):h=vm(d,f)):h=f,{pathname:h,search:Xy(r),hash:Qy(m)}}function vm(i,f){let d=f.replace(/\/+$/,"").split("/");return i.split("/").forEach(m=>{m===".."?d.length>1&&d.pop():m!=="."&&d.push(m)}),d.length>1?d.join("/"):"/"}function Bs(i,f,d,r){return`Cannot include a '${i}' character in a manually specified \`to.${f}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${d}\` 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((f,d)=>d===0||f.route.path&&f.route.path.length>0)}function _m(i){let f=Gy(i);return f.map((d,r)=>r===f.length-1?d.pathname:d.pathnameBase)}function Zs(i,f,d,r=!1){let m;typeof i=="string"?m=Il(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 h=i===""||m.pathname==="",x=h?"/":m.pathname,A;if(x==null)A=d;else{let p=f.length-1;if(!r&&x.startsWith("..")){let w=x.split("/");for(;w[0]==="..";)w.shift(),p-=1;m.pathname=w.join("/")}A=p>=0?f[p]:"/"}let S=Yy(m,A),y=x&&x!=="/"&&x.endsWith("/"),R=(h||x===".")&&d.endsWith("/");return!S.pathname.endsWith("/")&&(y||R)&&(S.pathname+="/"),S}var Lt=i=>i.join("/").replace(/\/\/+/g,"/"),ky=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Xy=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Qy=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Zy=class{constructor(i,f,d,r=!1){this.status=i,this.statusText=f||"",this.internal=r,d instanceof Error?(this.data=d.toString(),this.error=d):this.data=d}};function Vy(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function Ky(i){return i.map(f=>f.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Rm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Mm(i,f){let d=i;if(typeof d!="string"||!qy.test(d))return{absoluteURL:void 0,isExternal:!1,to:d};let r=d,m=!1;if(Rm)try{let h=new URL(window.location.href),x=d.startsWith("//")?new URL(h.protocol+d):new URL(d),A=nl(x.pathname,f);x.origin===h.origin&&A!=null?d=A+x.search+x.hash:m=!0}catch{Ot(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:m,to:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Om=["POST","PUT","PATCH","DELETE"];new Set(Om);var Jy=["GET",...Om];new Set(Jy);var La=T.createContext(null);La.displayName="DataRouter";var ri=T.createContext(null);ri.displayName="DataRouterState";var $y=T.createContext(!1),Cm=T.createContext({isTransitioning:!1});Cm.displayName="ViewTransition";var Wy=T.createContext(new Map);Wy.displayName="Fetchers";var Fy=T.createContext(null);Fy.displayName="Await";var zt=T.createContext(null);zt.displayName="Navigation";var wn=T.createContext(null);wn.displayName="Location";var qt=T.createContext({outlet:null,matches:[],isDataRoute:!1});qt.displayName="Route";var Vs=T.createContext(null);Vs.displayName="RouteError";var Dm="REACT_ROUTER_ERROR",Iy="REDIRECT",Py="ROUTE_ERROR_RESPONSE";function ep(i){if(i.startsWith(`${Dm}:${Iy}:{`))try{let f=JSON.parse(i.slice(28));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string"&&typeof f.location=="string"&&typeof f.reloadDocument=="boolean"&&typeof f.replace=="boolean")return f}catch{}}function tp(i){if(i.startsWith(`${Dm}:${Py}:{`))try{let f=JSON.parse(i.slice(40));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string")return new Zy(f.status,f.statusText,f.data)}catch{}}function lp(i,{relative:f}={}){_e(Ln(),"useHref() may be used only in the context of a <Router> component.");let{basename:d,navigator:r}=T.useContext(zt),{hash:m,pathname:h,search:x}=qn(i,{relative:f}),A=h;return d!=="/"&&(A=h==="/"?d:Lt([d,h])),r.createHref({pathname:A,search:x,hash:m})}function Ln(){return T.useContext(wn)!=null}function ul(){return _e(Ln(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(wn).location}var Um="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Hm(i){T.useContext(zt).static||T.useLayoutEffect(i)}function ap(){let{isDataRoute:i}=T.useContext(qt);return i?yp():np()}function np(){_e(Ln(),"useNavigate() may be used only in the context of a <Router> component.");let i=T.useContext(La),{basename:f,navigator:d}=T.useContext(zt),{matches:r}=T.useContext(qt),{pathname:m}=ul(),h=JSON.stringify(_m(r)),x=T.useRef(!1);return Hm(()=>{x.current=!0}),T.useCallback((S,y={})=>{if(Ot(x.current,Um),!x.current)return;if(typeof S=="number"){d.go(S);return}let R=Zs(S,JSON.parse(h),m,y.relative==="path");i==null&&f!=="/"&&(R.pathname=R.pathname==="/"?f:Lt([f,R.pathname])),(y.replace?d.replace:d.push)(R,y.state,y)},[f,d,h,m,i])}T.createContext(null);function fi(){let{matches:i}=T.useContext(qt),f=i[i.length-1];return f?f.params:{}}function qn(i,{relative:f}={}){let{matches:d}=T.useContext(qt),{pathname:r}=ul(),m=JSON.stringify(_m(d));return T.useMemo(()=>Zs(i,JSON.parse(m),r,f==="path"),[i,m,r,f])}function up(i,f){return Bm(i,f)}function Bm(i,f,d){var M;_e(Ln(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=T.useContext(zt),{matches:m}=T.useContext(qt),h=m[m.length-1],x=h?h.params:{},A=h?h.pathname:"/",S=h?h.pathnameBase:"/",y=h&&h.route;{let C=y&&y.path||"";Lm(A,!y||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${A}" (under <Route path="${C}">) 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.
58
+ */var om="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 jy(i={}){function f(m,h){let{pathname:g="/",search:A="",hash:S=""}=Pl(m.location.hash.substring(1));return!g.startsWith("/")&&!g.startsWith(".")&&(g="/"+g),ks("",{pathname:g,search:A,hash:S},h.state&&h.state.usr||null,h.state&&h.state.key||"default")}function d(m,h){let g=m.document.querySelector("base"),A="";if(g&&g.getAttribute("href")){let S=m.location.href,v=S.indexOf("#");A=v===-1?S:S.slice(0,v)}return A+"#"+(typeof h=="string"?h:Bn(h))}function r(m,h){Ot(m.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(h)})`)}return Ny(f,d,r,i)}function _e(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function Ot(i,f){if(!i){typeof console<"u"&&console.warn(f);try{throw new Error(f)}catch{}}}function Ey(){return Math.random().toString(36).substring(2,10)}function mm(i,f){return{usr:i.state,key:i.key,idx:f,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function ks(i,f,d=null,r,m){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof f=="string"?Pl(f):f,state:d,key:f&&f.key||r||Ey(),unstable_mask:m}}function Bn({pathname:i="/",search:f="",hash:d=""}){return f&&f!=="?"&&(i+=f.charAt(0)==="?"?f:"?"+f),d&&d!=="#"&&(i+=d.charAt(0)==="#"?d:"#"+d),i}function Pl(i){let f={};if(i){let d=i.indexOf("#");d>=0&&(f.hash=i.substring(d),i=i.substring(0,d));let r=i.indexOf("?");r>=0&&(f.search=i.substring(r),i=i.substring(0,r)),i&&(f.pathname=i)}return f}function Ny(i,f,d,r={}){let{window:m=document.defaultView,v5Compat:h=!1}=r,g=m.history,A="POP",S=null,v=M();v==null&&(v=0,g.replaceState({...g.state,idx:v},""));function M(){return(g.state||{idx:null}).idx}function x(){A="POP";let O=M(),R=O==null?null:O-v;v=O,S&&S({action:A,location:q.location,delta:R})}function w(O,R){A="PUSH";let L=dm(O)?O:ks(q.location,O,R);d&&d(L,O),v=M()+1;let Q=mm(L,v),k=q.createHref(L.unstable_mask||L);try{g.pushState(Q,"",k)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;m.location.assign(k)}h&&S&&S({action:A,location:q.location,delta:1})}function X(O,R){A="REPLACE";let L=dm(O)?O:ks(q.location,O,R);d&&d(L,O),v=M();let Q=mm(L,v),k=q.createHref(L.unstable_mask||L);g.replaceState(Q,"",k),h&&S&&S({action:A,location:q.location,delta:0})}function G(O){return Ty(O)}let q={get action(){return A},get location(){return i(m,g)},listen(O){if(S)throw new Error("A history only accepts one active listener");return m.addEventListener(om,x),S=O,()=>{m.removeEventListener(om,x),S=null}},createHref(O){return f(m,O)},createURL:G,encodeLocation(O){let R=G(O);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:w,replace:X,go(O){return g.go(O)}};return q}function Ty(i,f=!1){let d="http://localhost";typeof window<"u"&&(d=window.location.origin!=="null"?window.location.origin:window.location.href),_e(d,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:Bn(i);return r=r.replace(/ $/,"%20"),!f&&r.startsWith("//")&&(r=d+r),new URL(r,d)}function Tm(i,f,d="/"){return zy(i,f,d,!1)}function zy(i,f,d,r){let m=typeof f=="string"?Pl(f):f,h=nl(m.pathname||"/",d);if(h==null)return null;let g=zm(i);Ay(g);let A=null;for(let S=0;A==null&&S<g.length;++S){let v=Ly(h);A=By(g[S],v,r)}return A}function zm(i,f=[],d=[],r="",m=!1){let h=(g,A,S=m,v)=>{let M={relativePath:v===void 0?g.path||"":v,caseSensitive:g.caseSensitive===!0,childrenIndex:A,route:g};if(M.relativePath.startsWith("/")){if(!M.relativePath.startsWith(r)&&S)return;_e(M.relativePath.startsWith(r),`Absolute route path "${M.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),M.relativePath=M.relativePath.slice(r.length)}let x=Lt([r,M.relativePath]),w=d.concat(M);g.children&&g.children.length>0&&(_e(g.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),zm(g.children,f,w,x,S)),!(g.path==null&&!g.index)&&f.push({path:x,score:Uy(x,g.index),routesMeta:w})};return i.forEach((g,A)=>{var S;if(g.path===""||!((S=g.path)!=null&&S.includes("?")))h(g,A);else for(let v of Am(g.path))h(g,A,!0,v)}),f}function Am(i){let f=i.split("/");if(f.length===0)return[];let[d,...r]=f,m=d.endsWith("?"),h=d.replace(/\?$/,"");if(r.length===0)return m?[h,""]:[h];let g=Am(r.join("/")),A=[];return A.push(...g.map(S=>S===""?h:[h,S].join("/"))),m&&A.push(...g),A.map(S=>i.startsWith("/")&&S===""?"/":S)}function Ay(i){i.sort((f,d)=>f.score!==d.score?d.score-f.score:Hy(f.routesMeta.map(r=>r.childrenIndex),d.routesMeta.map(r=>r.childrenIndex)))}var _y=/^:[\w-]+$/,Ry=3,My=2,Oy=1,Cy=10,Dy=-2,hm=i=>i==="*";function Uy(i,f){let d=i.split("/"),r=d.length;return d.some(hm)&&(r+=Dy),f&&(r+=My),d.filter(m=>!hm(m)).reduce((m,h)=>m+(_y.test(h)?Ry:h===""?Oy:Cy),r)}function Hy(i,f){return i.length===f.length&&i.slice(0,-1).every((r,m)=>r===f[m])?i[i.length-1]-f[f.length-1]:0}function By(i,f,d=!1){let{routesMeta:r}=i,m={},h="/",g=[];for(let A=0;A<r.length;++A){let S=r[A],v=A===r.length-1,M=h==="/"?f:f.slice(h.length)||"/",x=si({path:S.relativePath,caseSensitive:S.caseSensitive,end:v},M),w=S.route;if(!x&&v&&d&&!r[r.length-1].route.index&&(x=si({path:S.relativePath,caseSensitive:S.caseSensitive,end:!1},M)),!x)return null;Object.assign(m,x.params),g.push({params:m,pathname:Lt([h,x.pathname]),pathnameBase:ky(Lt([h,x.pathnameBase])),route:w}),x.pathnameBase!=="/"&&(h=Lt([h,x.pathnameBase]))}return g}function si(i,f){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[d,r]=wy(i.path,i.caseSensitive,i.end),m=f.match(d);if(!m)return null;let h=m[0],g=h.replace(/(.)\/+$/,"$1"),A=m.slice(1);return{params:r.reduce((v,{paramName:M,isOptional:x},w)=>{if(M==="*"){let G=A[w]||"";g=h.slice(0,h.length-G.length).replace(/(.)\/+$/,"$1")}const X=A[w];return x&&!X?v[M]=void 0:v[M]=(X||"").replace(/%2F/g,"/"),v},{}),pathname:h,pathnameBase:g,pattern:i}}function wy(i,f=!1,d=!0){Ot(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,(g,A,S,v,M)=>{if(r.push({paramName:A,isOptional:S!=null}),S){let x=M.charAt(v+g.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(r.push({paramName:"*"}),m+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):d?m+="\\/*$":i!==""&&i!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,f?void 0:"i"),r]}function Ly(i){try{return i.split("/").map(f=>decodeURIComponent(f).replace(/\//g,"%2F")).join("/")}catch(f){return Ot(!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 (${f}).`),i}}function nl(i,f){if(f==="/")return i;if(!i.toLowerCase().startsWith(f.toLowerCase()))return null;let d=f.endsWith("/")?f.length-1:f.length,r=i.charAt(d);return r&&r!=="/"?null:i.slice(d)||"/"}var qy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Yy(i,f="/"){let{pathname:d,search:r="",hash:m=""}=typeof i=="string"?Pl(i):i,h;return d?(d=d.replace(/\/\/+/g,"/"),d.startsWith("/")?h=vm(d.substring(1),"/"):h=vm(d,f)):h=f,{pathname:h,search:Xy(r),hash:Qy(m)}}function vm(i,f){let d=f.replace(/\/+$/,"").split("/");return i.split("/").forEach(m=>{m===".."?d.length>1&&d.pop():m!=="."&&d.push(m)}),d.length>1?d.join("/"):"/"}function Bs(i,f,d,r){return`Cannot include a '${i}' character in a manually specified \`to.${f}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${d}\` 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((f,d)=>d===0||f.route.path&&f.route.path.length>0)}function _m(i){let f=Gy(i);return f.map((d,r)=>r===f.length-1?d.pathname:d.pathnameBase)}function Zs(i,f,d,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 h=i===""||m.pathname==="",g=h?"/":m.pathname,A;if(g==null)A=d;else{let x=f.length-1;if(!r&&g.startsWith("..")){let w=g.split("/");for(;w[0]==="..";)w.shift(),x-=1;m.pathname=w.join("/")}A=x>=0?f[x]:"/"}let S=Yy(m,A),v=g&&g!=="/"&&g.endsWith("/"),M=(h||g===".")&&d.endsWith("/");return!S.pathname.endsWith("/")&&(v||M)&&(S.pathname+="/"),S}var Lt=i=>i.join("/").replace(/\/\/+/g,"/"),ky=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Xy=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Qy=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Zy=class{constructor(i,f,d,r=!1){this.status=i,this.statusText=f||"",this.internal=r,d instanceof Error?(this.data=d.toString(),this.error=d):this.data=d}};function Vy(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function Ky(i){return i.map(f=>f.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Rm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Mm(i,f){let d=i;if(typeof d!="string"||!qy.test(d))return{absoluteURL:void 0,isExternal:!1,to:d};let r=d,m=!1;if(Rm)try{let h=new URL(window.location.href),g=d.startsWith("//")?new URL(h.protocol+d):new URL(d),A=nl(g.pathname,f);g.origin===h.origin&&A!=null?d=A+g.search+g.hash:m=!0}catch{Ot(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:m,to:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Om=["POST","PUT","PATCH","DELETE"];new Set(Om);var Jy=["GET",...Om];new Set(Jy);var La=T.createContext(null);La.displayName="DataRouter";var ri=T.createContext(null);ri.displayName="DataRouterState";var $y=T.createContext(!1),Cm=T.createContext({isTransitioning:!1});Cm.displayName="ViewTransition";var Wy=T.createContext(new Map);Wy.displayName="Fetchers";var Fy=T.createContext(null);Fy.displayName="Await";var zt=T.createContext(null);zt.displayName="Navigation";var wn=T.createContext(null);wn.displayName="Location";var qt=T.createContext({outlet:null,matches:[],isDataRoute:!1});qt.displayName="Route";var Vs=T.createContext(null);Vs.displayName="RouteError";var Dm="REACT_ROUTER_ERROR",Iy="REDIRECT",Py="ROUTE_ERROR_RESPONSE";function ep(i){if(i.startsWith(`${Dm}:${Iy}:{`))try{let f=JSON.parse(i.slice(28));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string"&&typeof f.location=="string"&&typeof f.reloadDocument=="boolean"&&typeof f.replace=="boolean")return f}catch{}}function tp(i){if(i.startsWith(`${Dm}:${Py}:{`))try{let f=JSON.parse(i.slice(40));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string")return new Zy(f.status,f.statusText,f.data)}catch{}}function lp(i,{relative:f}={}){_e(Ln(),"useHref() may be used only in the context of a <Router> component.");let{basename:d,navigator:r}=T.useContext(zt),{hash:m,pathname:h,search:g}=qn(i,{relative:f}),A=h;return d!=="/"&&(A=h==="/"?d:Lt([d,h])),r.createHref({pathname:A,search:g,hash:m})}function Ln(){return T.useContext(wn)!=null}function ul(){return _e(Ln(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(wn).location}var Um="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Hm(i){T.useContext(zt).static||T.useLayoutEffect(i)}function ap(){let{isDataRoute:i}=T.useContext(qt);return i?yp():np()}function np(){_e(Ln(),"useNavigate() may be used only in the context of a <Router> component.");let i=T.useContext(La),{basename:f,navigator:d}=T.useContext(zt),{matches:r}=T.useContext(qt),{pathname:m}=ul(),h=JSON.stringify(_m(r)),g=T.useRef(!1);return Hm(()=>{g.current=!0}),T.useCallback((S,v={})=>{if(Ot(g.current,Um),!g.current)return;if(typeof S=="number"){d.go(S);return}let M=Zs(S,JSON.parse(h),m,v.relative==="path");i==null&&f!=="/"&&(M.pathname=M.pathname==="/"?f:Lt([f,M.pathname])),(v.replace?d.replace:d.push)(M,v.state,v)},[f,d,h,m,i])}T.createContext(null);function fi(){let{matches:i}=T.useContext(qt),f=i[i.length-1];return f?f.params:{}}function qn(i,{relative:f}={}){let{matches:d}=T.useContext(qt),{pathname:r}=ul(),m=JSON.stringify(_m(d));return T.useMemo(()=>Zs(i,JSON.parse(m),r,f==="path"),[i,m,r,f])}function up(i,f){return Bm(i,f)}function Bm(i,f,d){var O;_e(Ln(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=T.useContext(zt),{matches:m}=T.useContext(qt),h=m[m.length-1],g=h?h.params:{},A=h?h.pathname:"/",S=h?h.pathnameBase:"/",v=h&&h.route;{let R=v&&v.path||"";Lm(A,!v||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${A}" (under <Route path="${R}">) 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
59
 
60
- Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let R=ul(),p;if(f){let C=typeof f=="string"?Il(f):f;_e(S==="/"||((M=C.pathname)==null?void 0:M.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 "${C.pathname}" was given in the \`location\` prop.`),p=C}else p=R;let w=p.pathname||"/",G=w;if(S!=="/"){let C=S.replace(/^\//,"").split("/");G="/"+w.replace(/^\//,"").split("/").slice(C.length).join("/")}let O=Tm(i,{pathname:G});Ot(y||O!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),Ot(O==null||O[O.length-1].route.element!==void 0||O[O.length-1].route.Component!==void 0||O[O.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let L=fp(O&&O.map(C=>Object.assign({},C,{params:Object.assign({},x,C.params),pathname:Lt([S,r.encodeLocation?r.encodeLocation(C.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?S:Lt([S,r.encodeLocation?r.encodeLocation(C.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),m,d);return f&&L?T.createElement(wn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},L):L}function ip(){let i=vp(),f=Vy(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),d=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:r},h={padding:"2px 4px",backgroundColor:r},x=null;return console.error("Error handled by React Router default ErrorBoundary:",i),x=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:h},"ErrorBoundary")," or"," ",T.createElement("code",{style:h},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},f),d?T.createElement("pre",{style:m},d):null,x)}var cp=T.createElement(ip,null),wm=class extends T.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,f){return f.location!==i.location||f.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:f.error,location:f.location,revalidation:i.revalidation||f.revalidation}}componentDidCatch(i,f){this.props.onError?this.props.onError(i,f):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 d=tp(i.digest);d&&(i=d)}let f=i!==void 0?T.createElement(qt.Provider,{value:this.props.routeContext},T.createElement(Vs.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?T.createElement(sp,{error:i},f):f}};wm.contextType=$y;var ws=new WeakMap;function sp({children:i,error:f}){let{basename:d}=T.useContext(zt);if(typeof f=="object"&&f&&"digest"in f&&typeof f.digest=="string"){let r=ep(f.digest);if(r){let m=ws.get(f);if(m)throw m;let h=Mm(r.location,d);if(Rm&&!ws.get(f))if(h.isExternal||r.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const x=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:r.replace}));throw ws.set(f,x),x}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return i}function rp({routeContext:i,match:f,children:d}){let r=T.useContext(La);return r&&r.static&&r.staticContext&&(f.route.errorElement||f.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=f.route.id),T.createElement(qt.Provider,{value:i},d)}function fp(i,f=[],d){let r=d==null?void 0:d.state;if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(f.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let m=i,h=r==null?void 0:r.errors;if(h!=null){let R=m.findIndex(p=>p.route.id&&(h==null?void 0:h[p.route.id])!==void 0);_e(R>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),m=m.slice(0,Math.min(m.length,R+1))}let x=!1,A=-1;if(d&&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:w,errors:G}=r,O=p.route.loader&&!w.hasOwnProperty(p.route.id)&&(!G||G[p.route.id]===void 0);if(p.route.lazy||O){d.isStatic&&(x=!0),A>=0?m=m.slice(0,A+1):m=[m[0]];break}}}}let S=d==null?void 0:d.onError,y=r&&S?(R,p)=>{var w,G;S(R,{location:r.location,params:((G=(w=r.matches)==null?void 0:w[0])==null?void 0:G.params)??{},unstable_pattern:Ky(r.matches),errorInfo:p})}:void 0;return m.reduceRight((R,p,w)=>{let G,O=!1,L=null,M=null;r&&(G=h&&p.route.id?h[p.route.id]:void 0,L=p.route.errorElement||cp,x&&(A<0&&w===0?(Lm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),O=!0,M=null):A===w&&(O=!0,M=p.route.hydrateFallbackElement||null)));let C=f.concat(m.slice(0,w+1)),Z=()=>{let F;return G?F=L:O?F=M:p.route.Component?F=T.createElement(p.route.Component,null):p.route.element?F=p.route.element:F=R,T.createElement(rp,{match:p,routeContext:{outlet:R,matches:C,isDataRoute:r!=null},children:F})};return r&&(p.route.ErrorBoundary||p.route.errorElement||w===0)?T.createElement(wm,{location:r.location,revalidation:r.revalidation,component:L,error:G,children:Z(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:y}):Z()},null)}function Ks(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function op(i){let f=T.useContext(La);return _e(f,Ks(i)),f}function dp(i){let f=T.useContext(ri);return _e(f,Ks(i)),f}function mp(i){let f=T.useContext(qt);return _e(f,Ks(i)),f}function Js(i){let f=mp(i),d=f.matches[f.matches.length-1];return _e(d.route.id,`${i} can only be used on routes that contain a unique "id"`),d.route.id}function hp(){return Js("useRouteId")}function vp(){var r;let i=T.useContext(Vs),f=dp("useRouteError"),d=Js("useRouteError");return i!==void 0?i:(r=f.errors)==null?void 0:r[d]}function yp(){let{router:i}=op("useNavigate"),f=Js("useNavigate"),d=T.useRef(!1);return Hm(()=>{d.current=!0}),T.useCallback(async(m,h={})=>{Ot(d.current,Um),d.current&&(typeof m=="number"?await i.navigate(m):await i.navigate(m,{fromRouteId:f,...h}))},[i,f])}var ym={};function Lm(i,f,d){!f&&!ym[i]&&(ym[i]=!0,Ot(!1,d))}T.memo(pp);function pp({routes:i,future:f,state:d,isStatic:r,onError:m}){return Bm(i,void 0,{state:d,isStatic:r,onError:m})}function Fl(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:f=null,location:d,navigationType:r="POP",navigator:m,static:h=!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=T.useMemo(()=>({basename:A,navigator:m,static:h,unstable_useTransitions:x,future:{}}),[A,m,h,x]);typeof d=="string"&&(d=Il(d));let{pathname:y="/",search:R="",hash:p="",state:w=null,key:G="default",unstable_mask:O}=d,L=T.useMemo(()=>{let M=nl(y,A);return M==null?null:{location:{pathname:M,search:R,hash:p,state:w,key:G,unstable_mask:O},navigationType:r}},[A,y,R,p,w,G,r,O]);return Ot(L!=null,`<Router basename="${A}"> is not able to match the URL "${y}${R}${p}" because it does not start with the basename, so the <Router> won't render anything.`),L==null?null:T.createElement(zt.Provider,{value:S},T.createElement(wn.Provider,{children:f,value:L}))}function xp({children:i,location:f}){return up(Xs(i),f)}function Xs(i,f=[]){let d=[];return T.Children.forEach(i,(r,m)=>{if(!T.isValidElement(r))return;let h=[...f,m];if(r.type===T.Fragment){d.push.apply(d,Xs(r.props.children,h));return}_e(r.type===Fl,`[${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||h.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,h)),d.push(x)}),d}var ii="get",ci="application/x-www-form-urlencoded";function oi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function bp(i){return oi(i)&&i.tagName.toLowerCase()==="button"}function Sp(i){return oi(i)&&i.tagName.toLowerCase()==="form"}function jp(i){return oi(i)&&i.tagName.toLowerCase()==="input"}function Ep(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Np(i,f){return i.button===0&&(!f||f==="_self")&&!Ep(i)}var ni=null;function Tp(){if(ni===null)try{new FormData(document.createElement("form"),0),ni=!1}catch{ni=!0}return ni}var zp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ls(i){return i!=null&&!zp.has(i)?(Ot(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ci}"`),null):i}function Ap(i,f){let d,r,m,h,x;if(Sp(i)){let A=i.getAttribute("action");r=A?nl(A,f):null,d=i.getAttribute("method")||ii,m=Ls(i.getAttribute("enctype"))||ci,h=new FormData(i)}else if(bp(i)||jp(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?nl(S,f):null,d=i.getAttribute("formmethod")||A.getAttribute("method")||ii,m=Ls(i.getAttribute("formenctype"))||Ls(A.getAttribute("enctype"))||ci,h=new FormData(A,i),!Tp()){let{name:y,type:R,value:p}=i;if(R==="image"){let w=y?`${y}.`:"";h.append(`${w}x`,"0"),h.append(`${w}y`,"0")}else y&&h.append(y,p)}}else{if(oi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');d=ii,r=null,m=ci,x=i}return h&&m==="text/plain"&&(x=h,h=void 0),{action:r,method:d.toLowerCase(),encType:m,formData:h,body:x}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function $s(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function _p(i,f,d,r){let m=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return d?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${r}`:m.pathname=`${m.pathname}.${r}`:m.pathname==="/"?m.pathname=`_root.${r}`:f&&nl(m.pathname,f)==="/"?m.pathname=`${f.replace(/\/$/,"")}/_root.${r}`:m.pathname=`${m.pathname.replace(/\/$/,"")}.${r}`,m}async function Rp(i,f){if(i.id in f)return f[i.id];try{let d=await import(i.module);return f[i.id]=d,d}catch(d){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(d),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Mp(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 Op(i,f,d){let r=await Promise.all(i.map(async m=>{let h=f.routes[m.route.id];if(h){let x=await Rp(h,d);return x.links?x.links():[]}return[]}));return Hp(r.flat(1).filter(Mp).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function pm(i,f,d,r,m,h){let x=(S,y)=>d[y]?S.route.id!==d[y].route.id:!0,A=(S,y)=>{var R;return d[y].pathname!==S.pathname||((R=d[y].route.path)==null?void 0:R.endsWith("*"))&&d[y].params["*"]!==S.params["*"]};return h==="assets"?f.filter((S,y)=>x(S,y)||A(S,y)):h==="data"?f.filter((S,y)=>{var p;let R=r.routes[S.route.id];if(!R||!R.hasLoader)return!1;if(x(S,y)||A(S,y))return!0;if(S.route.shouldRevalidate){let w=S.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:((p=d[0])==null?void 0:p.params)||{},nextUrl:new URL(i,window.origin),nextParams:S.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function Cp(i,f,{includeHydrateFallback:d}={}){return Dp(i.map(r=>{let m=f.routes[r.route.id];if(!m)return[];let h=[m.module];return m.clientActionModule&&(h=h.concat(m.clientActionModule)),m.clientLoaderModule&&(h=h.concat(m.clientLoaderModule)),d&&m.hydrateFallbackModule&&(h=h.concat(m.hydrateFallbackModule)),m.imports&&(h=h.concat(m.imports)),h}).flat(1))}function Dp(i){return[...new Set(i)]}function Up(i){let f={},d=Object.keys(i).sort();for(let r of d)f[r]=i[r];return f}function Hp(i,f){let d=new Set;return new Set(f),i.reduce((r,m)=>{let h=JSON.stringify(Up(m));return d.has(h)||(d.add(h),r.push({key:h,link:m})),r},[])}function qm(){let i=T.useContext(La);return $s(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function Bp(){let i=T.useContext(ri);return $s(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Ws=T.createContext(void 0);Ws.displayName="FrameworkContext";function Ym(){let i=T.useContext(Ws);return $s(i,"You must render this element inside a <HydratedRouter> element"),i}function wp(i,f){let d=T.useContext(Ws),[r,m]=T.useState(!1),[h,x]=T.useState(!1),{onFocus:A,onBlur:S,onMouseEnter:y,onMouseLeave:R,onTouchStart:p}=f,w=T.useRef(null);T.useEffect(()=>{if(i==="render"&&x(!0),i==="viewport"){let L=C=>{C.forEach(Z=>{x(Z.isIntersecting)})},M=new IntersectionObserver(L,{threshold:.5});return w.current&&M.observe(w.current),()=>{M.disconnect()}}},[i]),T.useEffect(()=>{if(r){let L=setTimeout(()=>{x(!0)},100);return()=>{clearTimeout(L)}}},[r]);let G=()=>{m(!0)},O=()=>{m(!1),x(!1)};return d?i!=="intent"?[h,w,{}]:[h,w,{onFocus:Hn(A,G),onBlur:Hn(S,O),onMouseEnter:Hn(y,G),onMouseLeave:Hn(R,O),onTouchStart:Hn(p,G)}]:[!1,w,{}]}function Hn(i,f){return d=>{i&&i(d),d.defaultPrevented||f(d)}}function Lp({page:i,...f}){let{router:d}=qm(),r=T.useMemo(()=>Tm(d.routes,i,d.basename),[d.routes,i,d.basename]);return r?T.createElement(Yp,{page:i,matches:r,...f}):null}function qp(i){let{manifest:f,routeModules:d}=Ym(),[r,m]=T.useState([]);return T.useEffect(()=>{let h=!1;return Op(i,f,d).then(x=>{h||m(x)}),()=>{h=!0}},[i,f,d]),r}function Yp({page:i,matches:f,...d}){let r=ul(),{future:m,manifest:h,routeModules:x}=Ym(),{basename:A}=qm(),{loaderData:S,matches:y}=Bp(),R=T.useMemo(()=>pm(i,f,y,h,r,"data"),[i,f,y,h,r]),p=T.useMemo(()=>pm(i,f,y,h,r,"assets"),[i,f,y,h,r]),w=T.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let L=new Set,M=!1;if(f.forEach(Z=>{var Q;let F=h.routes[Z.route.id];!F||!F.hasLoader||(!R.some(Y=>Y.route.id===Z.route.id)&&Z.route.id in S&&((Q=x[Z.route.id])!=null&&Q.shouldRevalidate)||F.hasClientLoader?M=!0:L.add(Z.route.id))}),L.size===0)return[];let C=_p(i,A,m.unstable_trailingSlashAwareDataRequests,"data");return M&&L.size>0&&C.searchParams.set("_routes",f.filter(Z=>L.has(Z.route.id)).map(Z=>Z.route.id).join(",")),[C.pathname+C.search]},[A,m.unstable_trailingSlashAwareDataRequests,S,r,h,R,f,i,x]),G=T.useMemo(()=>Cp(p,h),[p,h]),O=qp(p);return T.createElement(T.Fragment,null,w.map(L=>T.createElement("link",{key:L,rel:"prefetch",as:"fetch",href:L,...d})),G.map(L=>T.createElement("link",{key:L,rel:"modulepreload",href:L,...d})),O.map(({key:L,link:M})=>T.createElement("link",{key:L,nonce:d.nonce,...M,crossOrigin:M.crossOrigin??d.crossOrigin})))}function Gp(...i){return f=>{i.forEach(d=>{typeof d=="function"?d(f):d!=null&&(d.current=f)})}}var kp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{kp&&(window.__reactRouterVersion="7.13.1")}catch{}function Xp({basename:i,children:f,unstable_useTransitions:d,window:r}){let m=T.useRef();m.current==null&&(m.current=jy({window:r,v5Compat:!0}));let h=m.current,[x,A]=T.useState({action:h.action,location:h.location}),S=T.useCallback(y=>{d===!1?A(y):T.startTransition(()=>A(y))},[d]);return T.useLayoutEffect(()=>h.listen(S),[h,S]),T.createElement(gp,{basename:i,children:f,location:x.location,navigationType:x.action,navigator:h,unstable_useTransitions:d})}var Gm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mt=T.forwardRef(function({onClick:f,discover:d="render",prefetch:r="none",relative:m,reloadDocument:h,replace:x,unstable_mask:A,state:S,target:y,to:R,preventScrollReset:p,viewTransition:w,unstable_defaultShouldRevalidate:G,...O},L){let{basename:M,navigator:C,unstable_useTransitions:Z}=T.useContext(zt),F=typeof R=="string"&&Gm.test(R),Q=Mm(R,M);R=Q.to;let Y=lp(R,{relative:m}),J=ul(),V=null;if(A){let Ue=Zs(A,[],J.unstable_mask?J.unstable_mask.pathname:"/",!0);M!=="/"&&(Ue.pathname=Ue.pathname==="/"?M:Lt([M,Ue.pathname])),V=C.createHref(Ue)}let[oe,Ne,Ct]=wp(r,O),ht=Kp(R,{replace:x,unstable_mask:A,state:S,target:y,preventScrollReset:p,relative:m,viewTransition:w,unstable_defaultShouldRevalidate:G,unstable_useTransitions:Z});function Ke(Ue){f&&f(Ue),Ue.defaultPrevented||ht(Ue)}let Dt=!(Q.isExternal||h),vt=T.createElement("a",{...O,...Ct,href:(Dt?V:void 0)||Q.absoluteURL||Y,onClick:Dt?Ke:f,ref:Gp(L,Ne),target:y,"data-discover":!F&&d==="render"?"true":void 0});return oe&&!F?T.createElement(T.Fragment,null,vt,T.createElement(Lp,{page:Y})):vt});Mt.displayName="Link";var Qp=T.forwardRef(function({"aria-current":f="page",caseSensitive:d=!1,className:r="",end:m=!1,style:h,to:x,viewTransition:A,children:S,...y},R){let p=qn(x,{relative:y.relative}),w=ul(),G=T.useContext(ri),{navigator:O,basename:L}=T.useContext(zt),M=G!=null&&Ip(p)&&A===!0,C=O.encodeLocation?O.encodeLocation(p).pathname:p.pathname,Z=w.pathname,F=G&&G.navigation&&G.navigation.location?G.navigation.location.pathname:null;d||(Z=Z.toLowerCase(),F=F?F.toLowerCase():null,C=C.toLowerCase()),F&&L&&(F=nl(F,L)||F);const Q=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let Y=Z===C||!m&&Z.startsWith(C)&&Z.charAt(Q)==="/",J=F!=null&&(F===C||!m&&F.startsWith(C)&&F.charAt(C.length)==="/"),V={isActive:Y,isPending:J,isTransitioning:M},oe=Y?f:void 0,Ne;typeof r=="function"?Ne=r(V):Ne=[r,Y?"active":null,J?"pending":null,M?"transitioning":null].filter(Boolean).join(" ");let Ct=typeof h=="function"?h(V):h;return T.createElement(Mt,{...y,"aria-current":oe,className:Ne,ref:R,style:Ct,to:x,viewTransition:A},typeof S=="function"?S(V):S)});Qp.displayName="NavLink";var Zp=T.forwardRef(({discover:i="render",fetcherKey:f,navigate:d,reloadDocument:r,replace:m,state:h,method:x=ii,action:A,onSubmit:S,relative:y,preventScrollReset:R,viewTransition:p,unstable_defaultShouldRevalidate:w,...G},O)=>{let{unstable_useTransitions:L}=T.useContext(zt),M=Wp(),C=Fp(A,{relative:y}),Z=x.toLowerCase()==="get"?"get":"post",F=typeof A=="string"&&Gm.test(A),Q=Y=>{if(S&&S(Y),Y.defaultPrevented)return;Y.preventDefault();let J=Y.nativeEvent.submitter,V=(J==null?void 0:J.getAttribute("formmethod"))||x,oe=()=>M(J||Y.currentTarget,{fetcherKey:f,method:V,navigate:d,replace:m,state:h,relative:y,preventScrollReset:R,viewTransition:p,unstable_defaultShouldRevalidate:w});L&&d!==!1?T.startTransition(()=>oe()):oe()};return T.createElement("form",{ref:O,method:Z,action:C,onSubmit:r?S:Q,...G,"data-discover":!F&&i==="render"?"true":void 0})});Zp.displayName="Form";function Vp(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function km(i){let f=T.useContext(La);return _e(f,Vp(i)),f}function Kp(i,{target:f,replace:d,unstable_mask:r,state:m,preventScrollReset:h,relative:x,viewTransition:A,unstable_defaultShouldRevalidate:S,unstable_useTransitions:y}={}){let R=ap(),p=ul(),w=qn(i,{relative:x});return T.useCallback(G=>{if(Np(G,f)){G.preventDefault();let O=d!==void 0?d:Bn(p)===Bn(w),L=()=>R(i,{replace:O,unstable_mask:r,state:m,preventScrollReset:h,relative:x,viewTransition:A,unstable_defaultShouldRevalidate:S});y?T.startTransition(()=>L()):L()}},[p,R,w,d,r,m,f,i,h,x,A,S,y])}var Jp=0,$p=()=>`__${String(++Jp)}__`;function Wp(){let{router:i}=km("useSubmit"),{basename:f}=T.useContext(zt),d=hp(),r=i.fetch,m=i.navigate;return T.useCallback(async(h,x={})=>{let{action:A,method:S,encType:y,formData:R,body:p}=Ap(h,f);if(x.navigate===!1){let w=x.fetcherKey||$p();await r(w,d,x.action||A,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:R,body:p,formMethod:x.method||S,formEncType:x.encType||y,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||y,replace:x.replace,state:x.state,fromRouteId:d,flushSync:x.flushSync,viewTransition:x.viewTransition})},[r,m,f,d])}function Fp(i,{relative:f}={}){let{basename:d}=T.useContext(zt),r=T.useContext(qt);_e(r,"useFormAction must be used inside a RouteContext");let[m]=r.matches.slice(-1),h={...qn(i||".",{relative:f})},x=ul();if(i==null){h.search=x.search;let A=new URLSearchParams(h.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();h.search=R?`?${R}`:""}}return(!i||i===".")&&m.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),d!=="/"&&(h.pathname=h.pathname==="/"?d:Lt([d,h.pathname])),Bn(h)}function Ip(i,{relative:f}={}){let d=T.useContext(Cm);_e(d!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=km("useViewTransitionState"),m=qn(i,{relative:f});if(!d.isTransitioning)return!1;let h=nl(d.currentLocation.pathname,r)||d.currentLocation.pathname,x=nl(d.nextLocation.pathname,r)||d.nextLocation.pathname;return si(m.pathname,x)!=null||si(m.pathname,h)!=null}const Pp="";async function Wl(i,f){const d=await fetch(`${Pp}${i}`,f);if(!d.ok){const r=await d.json().catch(()=>({error:d.statusText}));throw new Error(r.error||`HTTP ${d.status}`)}return d.json()}const wa={getSkills(){return Wl("/api/skills")},getSkillDetail(i,f){return Wl(`/api/skills/${i}/${f}`)},getEvals(i,f){return Wl(`/api/skills/${i}/${f}/evals`)},saveEvals(i,f,d){return Wl(`/api/skills/${i}/${f}/evals`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)})},getLatestBenchmark(i,f){return Wl(`/api/skills/${i}/${f}/benchmark/latest`)},getHistory(i,f){return Wl(`/api/skills/${i}/${f}/history`)},getHistoryEntry(i,f,d){return Wl(`/api/skills/${i}/${f}/history/${encodeURIComponent(d)}`)}},gm={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 s.jsx("div",{className:"glass-card p-5",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex-1",children:[s.jsx("div",{className:"skeleton h-5 w-36 mb-2"}),s.jsx("div",{className:"skeleton h-3.5 w-48"})]}),s.jsx("div",{className:"skeleton h-6 w-20 rounded-full"})]})})}function e1(){const[i,f]=T.useState([]),[d,r]=T.useState(!0),[m,h]=T.useState(null);T.useEffect(()=>{wa.getSkills().then(f).catch(A=>h(A.message)).finally(()=>r(!1))},[]);const x=i.reduce((A,S)=>{var y;return(A[y=S.plugin]||(A[y]=[])).push(S),A},{});return s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"mb-8",children:[s.jsx("h2",{className:"text-[22px] font-semibold tracking-tight",style:{color:"var(--text-primary)"},children:"Skills"}),s.jsx("p",{className:"text-[13px] mt-1",style:{color:"var(--text-tertiary)"},children:d?"Scanning plugins...":`${i.length} skill${i.length!==1?"s":""} across ${Object.keys(x).length} plugin${Object.keys(x).length!==1?"s":""}`})]}),m&&s.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}),d&&s.jsxs("div",{className:"space-y-3",children:[s.jsx(qs,{}),s.jsx(qs,{}),s.jsx(qs,{})]}),!d&&s.jsx("div",{className:"space-y-8 stagger-children",children:Object.entries(x).map(([A,S])=>s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3 px-1",children:[s.jsx("div",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--accent)"}}),s.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:A}),s.jsx("div",{className:"flex-1 h-px",style:{background:"var(--border-subtle)"}})]}),s.jsx("div",{className:"grid gap-2",children:S.map(y=>{const R=gm[y.benchmarkStatus]||gm.missing;return s.jsxs(Mt,{to:`/skills/${y.plugin}/${y.skill}`,className:"glass-card glass-card-interactive p-5 flex items-center justify-between group",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"flex items-center gap-2",children:s.jsx("span",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:y.skill})}),s.jsxs("div",{className:"flex items-center gap-3 mt-1.5",children:[s.jsxs("span",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:[y.evalCount," eval",y.evalCount!==1?"s":""]}),s.jsxs("span",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:[y.assertionCount," assertion",y.assertionCount!==1?"s":""]}),y.lastBenchmark&&s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:new Date(y.lastBenchmark).toLocaleDateString()})]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("span",{className:"pill",style:{background:R.bg,color:R.text},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:R.dot}}),R.label]}),s.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:s.jsx("polyline",{points:"9 18 15 12 9 6"})})]})]},`${y.plugin}/${y.skill}`)})})]},A))}),!d&&i.length===0&&!m&&s.jsxs("div",{className:"text-center py-16 animate-fade-in-scale",children:[s.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:s.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:s.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"})})}),s.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"No skills found"}),s.jsxs("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:["Check your ",s.jsx("code",{className:"px-1.5 py-0.5 rounded text-[11px]",style:{background:"var(--surface-2)"},children:"--root"})," directory"]})]})]})}function t1(){const{plugin:i,skill:f}=fi(),[d,r]=T.useState(null),[m,h]=T.useState(!0),[x,A]=T.useState(null),[S,y]=T.useState(!1),[R,p]=T.useState(null),[w,G]=T.useState(!1);T.useEffect(()=>{!i||!f||wa.getEvals(i,f).then(r).catch(Y=>A(Y.message)).finally(()=>h(!1))},[i,f]);async function O(Y){if(!(!i||!f)){y(!0);try{const J=await wa.saveEvals(i,f,Y);r(J),A(null)}catch(J){A(J.message)}finally{y(!1)}}}function L(Y){d&&(O({...d,evals:[...d.evals,Y]}),G(!1))}function M(Y){d&&(O({...d,evals:d.evals.map(J=>J.id===Y.id?Y:J)}),p(null))}function C(Y){!d||!confirm("Delete this eval case?")||O({...d,evals:d.evals.filter(J=>J.id!==Y)})}function Z(Y){if(!d)return;const J=d.evals.find(V=>V.id===Y);J&&M({...J,assertions:[...J.assertions,{id:`assert-${Date.now()}`,text:"New assertion",type:"boolean"}]})}function F(Y,J,V){if(!d)return;const oe=d.evals.find(Ne=>Ne.id===Y);oe&&M({...oe,assertions:oe.assertions.map(Ne=>Ne.id===J?{...Ne,text:V}:Ne)})}function Q(Y,J){if(!d)return;const V=d.evals.find(oe=>oe.id===Y);V&&M({...V,assertions:V.assertions.filter(oe=>oe.id!==J)})}return m?s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsx("div",{className:"skeleton h-5 w-48 mb-6"}),s.jsxs("div",{className:"flex gap-2 mb-6",children:[s.jsx("div",{className:"skeleton h-9 w-32 rounded-lg"}),s.jsx("div",{className:"skeleton h-9 w-32 rounded-lg"})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"skeleton h-32 rounded-xl"}),s.jsx("div",{className:"skeleton h-32 rounded-xl"})]})]}):s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1 text-[13px]",children:[s.jsx(Mt,{to:"/",className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:Y=>{Y.currentTarget.style.color="var(--text-primary)"},onMouseLeave:Y=>{Y.currentTarget.style.color="var(--text-tertiary)"},children:"Skills"}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:i}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:f})]}),s.jsxs("div",{className:"flex items-center gap-2 mt-4 mb-7",children:[s.jsxs(Mt,{to:`/skills/${i}/${f}/benchmark`,className:"btn btn-primary",children:[s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})}),"Run Benchmark"]}),s.jsxs(Mt,{to:`/skills/${i}/${f}/compare`,className:"btn btn-purple",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M16 3h5v5"}),s.jsx("path",{d:"M8 21H3v-5"}),s.jsx("path",{d:"M21 3l-7 7"}),s.jsx("path",{d:"M3 21l7-7"})]}),"Compare A/B"]}),s.jsxs(Mt,{to:`/skills/${i}/${f}/history`,className:"btn btn-secondary",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"12 6 12 12 16 14"})]}),"History"]})]}),x&&s.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}),d?s.jsxs("div",{className:"space-y-3 stagger-children",children:[d.evals.map(Y=>s.jsxs("div",{className:"glass-card p-5",children:[s.jsxs("div",{className:"flex items-start justify-between mb-3",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",Y.id]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:Y.name})]}),s.jsx("p",{className:"text-[12px] mt-1.5 line-clamp-2",style:{color:"var(--text-tertiary)"},children:Y.prompt})]}),s.jsxs("div",{className:"flex gap-1 ml-3",children:[s.jsx("button",{onClick:()=>{p(Y),G(!0)},className:"btn btn-ghost text-[12px]",children:"Edit"}),s.jsx("button",{onClick:()=>C(Y.id),className:"btn btn-danger text-[12px]",children:"Delete"})]})]}),s.jsxs("div",{className:"mt-3 pt-3",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Assertions"}),s.jsx("span",{className:"pill",style:{background:"var(--surface-3)",color:"var(--text-tertiary)",fontSize:"10px",padding:"1px 7px"},children:Y.assertions.length})]}),s.jsx("div",{className:"space-y-1.5",children:Y.assertions.map(J=>s.jsxs("div",{className:"flex items-center gap-2 group",children:[s.jsx("span",{className:"text-[11px] font-mono w-28 truncate flex-shrink-0",style:{color:"var(--text-tertiary)"},children:J.id}),s.jsx("input",{className:"input-field flex-1 text-[12px] py-1.5",style:{background:"transparent",border:"1px solid transparent",borderRadius:"6px"},value:J.text,onChange:V=>F(Y.id,J.id,V.target.value),onFocus:V=>{V.currentTarget.style.borderColor="var(--border-default)",V.currentTarget.style.background="var(--surface-2)"},onBlur:V=>{V.currentTarget.style.borderColor="transparent",V.currentTarget.style.background="transparent"}}),s.jsx("button",{onClick:()=>Q(Y.id,J.id),className:"opacity-0 group-hover:opacity-100 transition-opacity duration-150 p-1 rounded",style:{color:"var(--red)"},children:s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},J.id))}),s.jsxs("button",{onClick:()=>Z(Y.id),className:"btn btn-ghost text-[12px] mt-2",style:{color:"var(--accent)"},children:[s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"Add assertion"]})]})]},Y.id)),s.jsx("button",{onClick:()=>{p(null),G(!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:Y=>{Y.currentTarget.style.borderColor="var(--accent)",Y.currentTarget.style.color="var(--accent)",Y.currentTarget.style.background="var(--accent-muted)"},onMouseLeave:Y=>{Y.currentTarget.style.borderColor="var(--border-default)",Y.currentTarget.style.color="var(--text-tertiary)",Y.currentTarget.style.background="transparent"},children:"+ Add Eval Case"})]}):s.jsxs("div",{className:"text-center py-16 animate-fade-in-scale",children:[s.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:s.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",children:[s.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),s.jsx("polyline",{points:"14 2 14 8 20 8"})]})}),s.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"No evals.json found"}),s.jsx("button",{onClick:()=>G(!0),className:"btn btn-primary mt-3",children:"Create evals.json"})]}),w&&s.jsx(l1,{evalCase:R,skillName:(d==null?void 0:d.skill_name)||f||"",existingIds:(d==null?void 0:d.evals.map(Y=>Y.id))||[],onSave:Y=>R?M(Y):L(Y),onCancel:()=>{G(!1),p(null)}}),S&&s.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:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)"}}),"Saving..."]})]})}function l1({evalCase:i,skillName:f,existingIds:d,onSave:r,onCancel:m}){const[h,x]=T.useState((i==null?void 0:i.name)||""),[A,S]=T.useState((i==null?void 0:i.prompt)||""),[y,R]=T.useState((i==null?void 0:i.expected_output)||""),[p,w]=T.useState((i==null?void 0:i.assertions)||[{id:"assert-1",text:"",type:"boolean"}]);function G(O){O.preventDefault();const L=(i==null?void 0:i.id)??(d.length>0?Math.max(...d)+1:1);r({id:L,name:h,prompt:A,expected_output:y,files:(i==null?void 0:i.files)||[],assertions:p.filter(M=>M.text.trim())})}return s.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:s.jsxs("form",{onSubmit:G,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:[s.jsx("h3",{className:"text-[16px] font-semibold mb-5",style:{color:"var(--text-primary)"},children:i?"Edit Eval Case":"New Eval Case"}),s.jsxs("label",{className:"block mb-4",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Name"}),s.jsx("input",{className:"input-field",value:h,onChange:O=>x(O.target.value),required:!0,placeholder:"e.g. basic-test-question"})]}),s.jsxs("label",{className:"block mb-4",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Prompt"}),s.jsx("textarea",{className:"input-field h-24 resize-y",value:A,onChange:O=>S(O.target.value),required:!0,placeholder:"The user prompt to test against..."})]}),s.jsxs("label",{className:"block mb-4",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Expected Output"}),s.jsx("textarea",{className:"input-field h-20 resize-y",value:y,onChange:O=>R(O.target.value),placeholder:"What a good answer should include..."})]}),s.jsxs("div",{className:"mb-5",children:[s.jsx("span",{className:"text-[12px] font-medium mb-2 block",style:{color:"var(--text-secondary)"},children:"Assertions"}),p.map((O,L)=>s.jsxs("div",{className:"flex gap-2 mt-1.5",children:[s.jsx("input",{className:"input-field w-32 text-[12px] font-mono",value:O.id,onChange:M=>{const C=[...p];C[L]={...C[L],id:M.target.value},w(C)},placeholder:"ID"}),s.jsx("input",{className:"input-field flex-1 text-[12px]",value:O.text,onChange:M=>{const C=[...p];C[L]={...C[L],text:M.target.value},w(C)},placeholder:"Assertion text"}),s.jsx("button",{type:"button",onClick:()=>w(p.filter((M,C)=>C!==L)),className:"btn btn-ghost p-1.5",style:{color:"var(--red)"},children:s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},L)),s.jsx("button",{type:"button",onClick:()=>w([...p,{id:`assert-${p.length+1}`,text:"",type:"boolean"}]),className:"btn btn-ghost text-[12px] mt-2",style:{color:"var(--accent)"},children:"+ Add assertion"})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-4",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("button",{type:"button",onClick:m,className:"btn btn-secondary",children:"Cancel"}),s.jsx("button",{type:"submit",className:"btn btn-primary",children:"Save"})]})]})})}function Fs(){const[i,f]=T.useState([]),[d,r]=T.useState(!1),[m,h]=T.useState(!1),[x,A]=T.useState(null),S=T.useRef(null),y=T.useCallback(async(p,w)=>{f([]),r(!0),h(!1),A(null);const G=new AbortController;S.current=G;try{const O=await fetch(p,{method:"POST",headers:{"Content-Type":"application/json"},body:w?JSON.stringify(w):void 0,signal:G.signal});if(!O.ok||!O.body)throw new Error(`HTTP ${O.status}`);const L=O.body.getReader(),M=new TextDecoder;let C="";for(;;){const{done:Z,value:F}=await L.read();if(Z)break;C+=M.decode(F,{stream:!0});const Q=C.split(`
61
- `);C=Q.pop()||"";let Y="";for(const J of Q)if(J.startsWith("event: "))Y=J.slice(7).trim();else if(J.startsWith("data: ")){try{const V=JSON.parse(J.slice(6)),oe={event:Y,data:V};Y==="done"?(h(!0),f(Ne=>[...Ne,oe])):f(Ne=>[...Ne,oe])}catch{}Y=""}}}catch(O){O.name!=="AbortError"&&A(O.message)}finally{r(!1),S.current=null}},[]),R=T.useCallback(()=>{var p;(p=S.current)==null||p.abort()},[]);return{events:i,running:d,done:m,error:x,start:y,stop:R}}function a1(){const{plugin:i,skill:f}=fi(),{events:d,running:r,done:m,error:h,start:x}=Fs(),[A,S]=T.useState(new Set);function y(){S(new Set),x(`/api/skills/${i}/${f}/benchmark`)}function R(L){S(M=>{const C=new Set(M);return C.has(L)?C.delete(L):C.add(L),C})}const p=new Map;for(const L of d){if(L.event==="case_start"){const M=L.data;p.has(M.eval_id)||p.set(M.eval_id,{name:M.eval_name,assertions:[]})}if(L.event==="output_ready"){const M=L.data,C=p.get(M.eval_id)||{assertions:[]};C.output=M.output,p.set(M.eval_id,C)}if(L.event==="assertion_result"){const M=L.data,C=p.get(M.eval_id)||{assertions:[]};C.assertions.find(Z=>Z.assertion_id===M.assertion_id)||(C.assertions.push(M),p.set(M.eval_id,C))}if(L.event==="case_complete"){const M=L.data,C=p.get(M.eval_id)||{assertions:[]};C.status=M.status,C.passRate=M.pass_rate,C.errorMessage=M.error_message||void 0,p.set(M.eval_id,C)}}const w=d.find(L=>L.event==="done"),G=w==null?void 0:w.data,O=(G==null?void 0:G.overall_pass_rate)!==void 0?Math.round(G.overall_pass_rate*100):null;return s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Mt,{to:`/skills/${i}/${f}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:L=>{L.currentTarget.style.color="var(--text-primary)"},onMouseLeave:L=>{L.currentTarget.style.color="var(--text-tertiary)"},children:f}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"Benchmark"})]}),s.jsx("div",{className:"mb-3",children:s.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."})}),s.jsx("button",{onClick:y,disabled:r,className:"btn btn-primary mb-7",children:r?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Running..."]}):s.jsxs(s.Fragment,{children:[s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})})," Run Benchmark"]})}),h&&s.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:h}),p.size>0&&s.jsxs("div",{className:"space-y-3 stagger-children",children:[Array.from(p.entries()).map(([L,M])=>{const C=A.has(L);return s.jsxs("div",{className:"glass-card overflow-hidden",children:[s.jsxs("div",{className:"p-5",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",L]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:M.name||"Eval Case"})]}),M.status?s.jsxs("span",{className:"pill",style:{background:M.status==="pass"?"var(--green-muted)":M.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:M.status==="pass"?"var(--green)":M.status==="error"?"var(--yellow)":"var(--red)"},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:M.status==="pass"?"var(--green)":M.status==="error"?"var(--yellow)":"var(--red)"}}),M.status," ",M.passRate!==void 0?`${Math.round(M.passRate*100)}%`:""]}):s.jsxs("div",{className:"flex items-center gap-2 text-[12px]",style:{color:"var(--accent)"},children:[s.jsx("div",{className:"spinner",style:{width:12,height:12}}),"Evaluating..."]})]}),M.errorMessage&&s.jsx("div",{className:"mb-3 p-3 rounded-lg text-[12px]",style:{background:"var(--red-muted)",color:"var(--red)"},children:M.errorMessage}),s.jsx("div",{className:"space-y-2",children:M.assertions.map(Z=>s.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg animate-fade-in",style:{background:Z.pass?"var(--green-muted)":"var(--red-muted)"},children:[s.jsx("div",{className:"w-5 h-5 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:Z.pass?"var(--green)":"var(--red)"},children:s.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:Z.pass?s.jsx("polyline",{points:"20 6 9 17 4 12"}):s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:Z.text||Z.assertion_id}),s.jsx("div",{className:"text-[12px] mt-0.5",style:{color:"var(--text-secondary)"},children:Z.reasoning})]})]},Z.assertion_id))})]}),M.output&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:()=>R(L),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:Z=>{Z.currentTarget.style.background="var(--surface-3)"},onMouseLeave:Z=>{Z.currentTarget.style.background="var(--surface-2)"},children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:C?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),C?"Hide LLM Output":"Show Actual LLM Output"]}),C&&s.jsxs("div",{className:"p-4 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"LLM Output"}),s.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:M.output})]})]})]},L)}),m&&O!==null&&s.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:[s.jsxs("div",{className:"text-[36px] font-bold tracking-tight",style:{color:O>=80?"var(--green)":O>=50?"var(--yellow)":"var(--red)"},children:[O,"%"]}),s.jsx("div",{className:"text-[13px] mt-1",style:{color:"var(--text-tertiary)"},children:"Overall Pass Rate"})]})]}),r&&p.size===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Generating outputs and evaluating assertions..."})]})]})}const xm={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 n1(){const{plugin:i,skill:f}=fi(),{events:d,running:r,done:m,error:h,start:x}=Fs(),[A,S]=T.useState(new Set);function y(){S(new Set),x(`/api/skills/${i}/${f}/compare`)}function R(O){S(L=>{const M=new Set(L);return M.has(O)?M.delete(O):M.add(O),M})}const p=[];for(const O of d)if(O.event==="outputs_ready"){const L=O.data;p.find(M=>M.eval_id===L.eval_id)||p.push(L)}const w=d.find(O=>O.event==="done"),G=w==null?void 0:w.data;return s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Mt,{to:`/skills/${i}/${f}`,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:f}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"A/B Comparison"})]}),s.jsx("div",{className:"mb-3",children:s.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)."})}),s.jsx("button",{onClick:y,disabled:r,className:"btn btn-purple mb-7",children:r?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Comparing..."]}):s.jsxs(s.Fragment,{children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M16 3h5v5"}),s.jsx("path",{d:"M8 21H3v-5"}),s.jsx("path",{d:"M21 3l-7 7"}),s.jsx("path",{d:"M3 21l7-7"})]})," Run Comparison"]})}),h&&s.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:h}),p.length>0&&s.jsxs("div",{className:"space-y-4 stagger-children",children:[p.map(O=>{const L=A.has(O.eval_id),M=O.winner==="skill"?"Skill Wins":O.winner==="baseline"?"Baseline Wins":"Tie",C=O.winner==="skill"?"var(--green)":O.winner==="baseline"?"var(--red)":"var(--text-tertiary)";return s.jsxs("div",{className:"glass-card overflow-hidden",children:[s.jsxs("div",{className:"p-5 pb-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.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]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:O.eval_name||"Eval Case"})]}),s.jsx("span",{className:"pill",style:{background:O.winner==="skill"?"var(--green-muted)":O.winner==="baseline"?"var(--red-muted)":"var(--surface-3)",color:C,fontWeight:700},children:M})]}),s.jsxs("div",{className:"mb-4 p-3 rounded-lg",style:{background:"var(--surface-2)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-1.5",style:{color:"var(--text-tertiary)"},children:"Prompt"}),s.jsx("div",{className:"text-[12px] leading-relaxed",style:{color:"var(--text-secondary)"},children:O.prompt})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsx(bm,{label:"WITH Skill",contentScore:O.skillContentScore,structureScore:O.skillStructureScore,isWinner:O.winner==="skill"}),s.jsx(bm,{label:"WITHOUT Skill",contentScore:O.baselineContentScore,structureScore:O.baselineStructureScore,isWinner:O.winner==="baseline"})]})]}),s.jsxs("button",{onClick:()=>R(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:Z=>{Z.currentTarget.style.background="var(--surface-3)"},onMouseLeave:Z=>{Z.currentTarget.style.background="var(--surface-2)"},children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:L?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),L?"Hide LLM Outputs":"Show Actual LLM Outputs"]}),L&&s.jsxs("div",{className:"grid grid-cols-2 gap-0 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx(jm,{label:"WITH Skill",output:O.skillOutput,accentColor:O.winner==="skill"?"var(--green)":void 0}),s.jsx(jm,{label:"WITHOUT Skill",output:O.baselineOutput,accentColor:O.winner==="baseline"?"var(--red)":void 0,hasBorderLeft:!0})]})]},O.eval_id)}),m&&(G==null?void 0:G.verdict)&&(()=>{const O=xm[G.verdict]||xm.INEFFECTIVE;return s.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:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"Verdict"}),s.jsx("div",{className:"text-[32px] font-bold tracking-tight",style:{color:O.text},children:G.verdict}),G.comparison&&s.jsxs("div",{className:"flex justify-center gap-8 mt-5",children:[s.jsx(Ys,{label:"Skill Avg",value:G.comparison.skillRubricAvg.toFixed(1)}),s.jsx(Ys,{label:"Baseline Avg",value:G.comparison.baselineRubricAvg.toFixed(1)}),s.jsx(Ys,{label:"Delta",value:`${G.comparison.delta>0?"+":""}${G.comparison.delta.toFixed(1)}`,color:G.comparison.delta>0?"var(--green)":G.comparison.delta<0?"var(--red)":"var(--text-secondary)"})]}),G.overall_pass_rate!==void 0&&s.jsxs("div",{className:"text-[12px] mt-3",style:{color:"var(--text-tertiary)"},children:["Assertion pass rate: ",Math.round(G.overall_pass_rate*100),"%"]})]})})()]}),r&&p.length===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Generating WITH and WITHOUT outputs..."}),s.jsx("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:"Then blind-scoring both responses"})]})]})}function bm({label:i,contentScore:f,structureScore:d,isWinner:r}){const m=((f+d)/2).toFixed(1),h=parseFloat(m),x=h>=4?"var(--green)":h>=3?"var(--yellow)":"var(--red)";return s.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:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:"var(--text-tertiary)"},children:i}),s.jsx("div",{className:"text-[16px] font-bold",style:{color:x},children:m})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Sm,{label:"Content",score:f}),s.jsx(Sm,{label:"Structure",score:d})]})]})}function Sm({label:i,score:f}){const d=f/5*100,r=f>=4?"var(--green)":f>=3?"var(--yellow)":"var(--red)";return s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"text-[11px] w-16",style:{color:"var(--text-tertiary)"},children:i}),s.jsx("div",{className:"flex-1 h-1.5 rounded-full",style:{background:"var(--surface-3)"},children:s.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${d}%`,background:r}})}),s.jsx("div",{className:"text-[12px] font-semibold w-5 text-right",style:{color:r},children:f})]})}function jm({label:i,output:f,accentColor:d,hasBorderLeft:r}){return s.jsxs("div",{className:"p-4",style:{borderLeft:r?"1px solid var(--border-subtle)":void 0},children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[d&&s.jsx("div",{className:"w-2 h-2 rounded-full",style:{background:d}}),s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:d||"var(--text-tertiary)"},children:i})]}),s.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:f||"(empty output)"})]})}function Ys({label:i,value:f,color:d}){return s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-[18px] font-bold",style:{color:d||"var(--text-primary)"},children:f}),s.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:i})]})}function u1(){const{plugin:i,skill:f}=fi(),[d,r]=T.useState([]),[m,h]=T.useState(!0),[x,A]=T.useState(null),[S,y]=T.useState(null);T.useEffect(()=>{!i||!f||wa.getHistory(i,f).then(r).catch(()=>{}).finally(()=>h(!1))},[i,f]);async function R(p){if(!(!i||!f)){y(p);try{const w=await wa.getHistoryEntry(i,f,p);A(w)}catch{A(null)}}}return m?s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsx("div",{className:"skeleton h-5 w-48 mb-6"}),s.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"skeleton h-20 rounded-xl"}),s.jsx("div",{className:"skeleton h-20 rounded-xl"})]}),s.jsx("div",{className:"col-span-2",children:s.jsx("div",{className:"skeleton h-48 rounded-xl"})})]})]}):s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Mt,{to:`/skills/${i}/${f}`,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:f}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"History"})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[s.jsxs("div",{className:"col-span-1",children:[s.jsxs("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-3 px-1",style:{color:"var(--text-tertiary)"},children:["Past Runs (",d.length,")"]}),d.length===0&&s.jsxs("div",{className:"text-center py-8",children:[s.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center mx-auto mb-3",style:{background:"var(--surface-2)"},children:s.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"12 6 12 12 16 14"})]})}),s.jsx("p",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"No benchmark runs yet"})]}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:d.map(p=>{const w=S===p.timestamp,G=p.passRate>=.8?"var(--green)":p.passRate>=.5?"var(--yellow)":"var(--red)";return s.jsxs("button",{onClick:()=>R(p.timestamp),className:"w-full text-left p-3.5 rounded-xl transition-all duration-150",style:{background:w?"var(--accent-muted)":"var(--surface-1)",border:w?"1px solid var(--border-active)":"1px solid var(--border-subtle)"},onMouseEnter:O=>{w||(O.currentTarget.style.borderColor="var(--border-hover)")},onMouseLeave:O=>{w||(O.currentTarget.style.borderColor="var(--border-subtle)")},children:[s.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"})}),s.jsxs("div",{className:"flex items-center gap-2 mt-1.5",children:[s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:p.model}),s.jsxs("span",{className:"text-[11px] font-semibold",style:{color:G},children:[Math.round(p.passRate*100),"%"]}),p.type==="comparison"&&s.jsx("span",{className:"pill",style:{background:"var(--purple-muted)",color:"var(--purple)",fontSize:"9px",padding:"1px 6px"},children:"A/B"})]})]},p.timestamp)})})]}),s.jsx("div",{className:"col-span-2",children:x?s.jsxs("div",{className:"space-y-3 animate-slide-in-right",children:[s.jsx("div",{className:"glass-card p-4",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:new Date(x.timestamp).toLocaleString()}),s.jsx("div",{className:"text-[12px] mt-0.5",style:{color:"var(--text-tertiary)"},children:x.model})]}),x.verdict&&s.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=>s.jsxs("div",{className:"glass-card p-5",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.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]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:p.eval_name})]}),s.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&&s.jsx("div",{className:"text-[12px] mb-3 p-2 rounded",style:{background:"var(--red-muted)",color:"var(--red)"},children:p.error_message}),s.jsx("div",{className:"space-y-1.5",children:p.assertions.map(w=>s.jsxs("div",{className:"flex items-start gap-2.5 py-1.5",children:[s.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:w.pass?"var(--green)":"var(--red)"},children:s.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:w.pass?s.jsx("polyline",{points:"20 6 9 17 4 12"}):s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-primary)"},children:w.text}),s.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-tertiary)"},children:w.reasoning})]})]},w.id))})]},p.eval_id))]}):s.jsxs("div",{className:"text-center py-20",children:[s.jsx("div",{className:"w-14 h-14 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:s.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:s.jsx("polyline",{points:"15 18 9 12 15 6"})})}),s.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"}},i1=[{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 c1(){const[i,f]=T.useState([]),[d,r]=T.useState(null),[m,h]=T.useState(null),[x,A]=T.useState(""),[S,y]=T.useState(!1),{events:R,running:p,error:w,start:G}=Fs();T.useEffect(()=>{wa.getSkills().then(f).catch(()=>{})},[]),T.useEffect(()=>{if(!d){h(null);return}fetch(`/api/skills/${d.plugin}/${d.skill}/description`).then(Q=>Q.json()).then(Q=>h(Q.description)).catch(()=>h(null))},[d]);function O(){if(!d)return;const Y=x.trim().split(`
62
- `).filter(Boolean).map(J=>{const V=J.startsWith("!");return{prompt:V?J.slice(1).trim():J.trim(),expected:V?"should_not_activate":"should_activate"}});G(`/api/skills/${d.plugin}/${d.skill}/activation-test`,{prompts:Y})}function L(Q){const Y=x.trim(),J=Y?`${Y}
63
- ${Q.join(`
64
- `)}`:Q.join(`
65
- `);A(J)}const M=[];let C=null;for(const Q of R)Q.event==="prompt_result"&&M.push(Q.data),Q.event==="done"&&(C=Q.data);const Z=M.filter(Q=>Q.classification==="TP"||Q.classification==="TN"),F=M.filter(Q=>Q.classification==="FP"||Q.classification==="FN");return s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-[22px] font-semibold tracking-tight",style:{color:"var(--text-primary)"},children:"Description Activation Test"}),s.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 ",s.jsx("strong",{children:"auto-activation quality"})," of your skill description."]})]}),s.jsxs("div",{className:"grid grid-cols-5 gap-5 mb-6",children:[s.jsxs("div",{className:"col-span-3 space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Skill"}),s.jsxs("select",{className:"input-field",value:d?`${d.plugin}/${d.skill}`:"",onChange:Q=>{const[Y,J]=Q.target.value.split("/");r(Y&&J?{plugin:Y,skill:J}:null)},children:[s.jsx("option",{value:"",children:"Select a skill..."}),i.map(Q=>s.jsxs("option",{value:`${Q.plugin}/${Q.skill}`,children:[Q.plugin," / ",Q.skill]},`${Q.plugin}/${Q.skill}`))]})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[s.jsx("label",{className:"text-[12px] font-medium",style:{color:"var(--text-secondary)"},children:"Test Prompts"}),s.jsx("div",{className:"flex gap-1.5",children:i1.map(Q=>s.jsxs("button",{onClick:()=>L(Q.prompts),className:"text-[10px] px-2 py-1 rounded-md transition-colors duration-150",style:{background:"var(--surface-2)",color:"var(--text-tertiary)"},onMouseEnter:Y=>{Y.currentTarget.style.color="var(--text-primary)",Y.currentTarget.style.background="var(--surface-3)"},onMouseLeave:Y=>{Y.currentTarget.style.color="var(--text-tertiary)",Y.currentTarget.style.background="var(--surface-2)"},children:["+ ",Q.label]},Q.label))})]}),s.jsx("textarea",{className:"input-field h-32 resize-y font-mono text-[12px]",value:x,onChange:Q=>A(Q.target.value),placeholder:`How do I write a unit test?
60
+ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let M=ul(),x;if(f){let R=typeof f=="string"?Pl(f):f;_e(S==="/"||((O=R.pathname)==null?void 0:O.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 "${R.pathname}" was given in the \`location\` prop.`),x=R}else x=M;let w=x.pathname||"/",X=w;if(S!=="/"){let R=S.replace(/^\//,"").split("/");X="/"+w.replace(/^\//,"").split("/").slice(R.length).join("/")}let G=Tm(i,{pathname:X});Ot(v||G!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Ot(G==null||G[G.length-1].route.element!==void 0||G[G.length-1].route.Component!==void 0||G[G.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 q=fp(G&&G.map(R=>Object.assign({},R,{params:Object.assign({},g,R.params),pathname:Lt([S,r.encodeLocation?r.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?S:Lt([S,r.encodeLocation?r.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),m,d);return f&&q?T.createElement(wn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...x},navigationType:"POP"}},q):q}function ip(){let i=vp(),f=Vy(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),d=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:r},h={padding:"2px 4px",backgroundColor:r},g=null;return console.error("Error handled by React Router default ErrorBoundary:",i),g=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:h},"ErrorBoundary")," or"," ",T.createElement("code",{style:h},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},f),d?T.createElement("pre",{style:m},d):null,g)}var cp=T.createElement(ip,null),wm=class extends T.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,f){return f.location!==i.location||f.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:f.error,location:f.location,revalidation:i.revalidation||f.revalidation}}componentDidCatch(i,f){this.props.onError?this.props.onError(i,f):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 d=tp(i.digest);d&&(i=d)}let f=i!==void 0?T.createElement(qt.Provider,{value:this.props.routeContext},T.createElement(Vs.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?T.createElement(sp,{error:i},f):f}};wm.contextType=$y;var ws=new WeakMap;function sp({children:i,error:f}){let{basename:d}=T.useContext(zt);if(typeof f=="object"&&f&&"digest"in f&&typeof f.digest=="string"){let r=ep(f.digest);if(r){let m=ws.get(f);if(m)throw m;let h=Mm(r.location,d);if(Rm&&!ws.get(f))if(h.isExternal||r.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const g=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:r.replace}));throw ws.set(f,g),g}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return i}function rp({routeContext:i,match:f,children:d}){let r=T.useContext(La);return r&&r.static&&r.staticContext&&(f.route.errorElement||f.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=f.route.id),T.createElement(qt.Provider,{value:i},d)}function fp(i,f=[],d){let r=d==null?void 0:d.state;if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(f.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let m=i,h=r==null?void 0:r.errors;if(h!=null){let M=m.findIndex(x=>x.route.id&&(h==null?void 0:h[x.route.id])!==void 0);_e(M>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),m=m.slice(0,Math.min(m.length,M+1))}let g=!1,A=-1;if(d&&r){g=r.renderFallback;for(let M=0;M<m.length;M++){let x=m[M];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(A=M),x.route.id){let{loaderData:w,errors:X}=r,G=x.route.loader&&!w.hasOwnProperty(x.route.id)&&(!X||X[x.route.id]===void 0);if(x.route.lazy||G){d.isStatic&&(g=!0),A>=0?m=m.slice(0,A+1):m=[m[0]];break}}}}let S=d==null?void 0:d.onError,v=r&&S?(M,x)=>{var w,X;S(M,{location:r.location,params:((X=(w=r.matches)==null?void 0:w[0])==null?void 0:X.params)??{},unstable_pattern:Ky(r.matches),errorInfo:x})}:void 0;return m.reduceRight((M,x,w)=>{let X,G=!1,q=null,O=null;r&&(X=h&&x.route.id?h[x.route.id]:void 0,q=x.route.errorElement||cp,g&&(A<0&&w===0?(Lm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),G=!0,O=null):A===w&&(G=!0,O=x.route.hydrateFallbackElement||null)));let R=f.concat(m.slice(0,w+1)),L=()=>{let Q;return X?Q=q:G?Q=O:x.route.Component?Q=T.createElement(x.route.Component,null):x.route.element?Q=x.route.element:Q=M,T.createElement(rp,{match:x,routeContext:{outlet:M,matches:R,isDataRoute:r!=null},children:Q})};return r&&(x.route.ErrorBoundary||x.route.errorElement||w===0)?T.createElement(wm,{location:r.location,revalidation:r.revalidation,component:q,error:X,children:L(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:v}):L()},null)}function Ks(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function op(i){let f=T.useContext(La);return _e(f,Ks(i)),f}function dp(i){let f=T.useContext(ri);return _e(f,Ks(i)),f}function mp(i){let f=T.useContext(qt);return _e(f,Ks(i)),f}function Js(i){let f=mp(i),d=f.matches[f.matches.length-1];return _e(d.route.id,`${i} can only be used on routes that contain a unique "id"`),d.route.id}function hp(){return Js("useRouteId")}function vp(){var r;let i=T.useContext(Vs),f=dp("useRouteError"),d=Js("useRouteError");return i!==void 0?i:(r=f.errors)==null?void 0:r[d]}function yp(){let{router:i}=op("useNavigate"),f=Js("useNavigate"),d=T.useRef(!1);return Hm(()=>{d.current=!0}),T.useCallback(async(m,h={})=>{Ot(d.current,Um),d.current&&(typeof m=="number"?await i.navigate(m):await i.navigate(m,{fromRouteId:f,...h}))},[i,f])}var ym={};function Lm(i,f,d){!f&&!ym[i]&&(ym[i]=!0,Ot(!1,d))}T.memo(pp);function pp({routes:i,future:f,state:d,isStatic:r,onError:m}){return Bm(i,void 0,{state:d,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 xp({basename:i="/",children:f=null,location:d,navigationType:r="POP",navigator:m,static:h=!1,unstable_useTransitions:g}){_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=T.useMemo(()=>({basename:A,navigator:m,static:h,unstable_useTransitions:g,future:{}}),[A,m,h,g]);typeof d=="string"&&(d=Pl(d));let{pathname:v="/",search:M="",hash:x="",state:w=null,key:X="default",unstable_mask:G}=d,q=T.useMemo(()=>{let O=nl(v,A);return O==null?null:{location:{pathname:O,search:M,hash:x,state:w,key:X,unstable_mask:G},navigationType:r}},[A,v,M,x,w,X,r,G]);return Ot(q!=null,`<Router basename="${A}"> is not able to match the URL "${v}${M}${x}" because it does not start with the basename, so the <Router> won't render anything.`),q==null?null:T.createElement(zt.Provider,{value:S},T.createElement(wn.Provider,{children:f,value:q}))}function gp({children:i,location:f}){return up(Xs(i),f)}function Xs(i,f=[]){let d=[];return T.Children.forEach(i,(r,m)=>{if(!T.isValidElement(r))return;let h=[...f,m];if(r.type===T.Fragment){d.push.apply(d,Xs(r.props.children,h));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 g={id:r.props.id||h.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&&(g.children=Xs(r.props.children,h)),d.push(g)}),d}var ii="get",ci="application/x-www-form-urlencoded";function oi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function bp(i){return oi(i)&&i.tagName.toLowerCase()==="button"}function Sp(i){return oi(i)&&i.tagName.toLowerCase()==="form"}function jp(i){return oi(i)&&i.tagName.toLowerCase()==="input"}function Ep(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Np(i,f){return i.button===0&&(!f||f==="_self")&&!Ep(i)}var ni=null;function Tp(){if(ni===null)try{new FormData(document.createElement("form"),0),ni=!1}catch{ni=!0}return ni}var zp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ls(i){return i!=null&&!zp.has(i)?(Ot(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ci}"`),null):i}function Ap(i,f){let d,r,m,h,g;if(Sp(i)){let A=i.getAttribute("action");r=A?nl(A,f):null,d=i.getAttribute("method")||ii,m=Ls(i.getAttribute("enctype"))||ci,h=new FormData(i)}else if(bp(i)||jp(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?nl(S,f):null,d=i.getAttribute("formmethod")||A.getAttribute("method")||ii,m=Ls(i.getAttribute("formenctype"))||Ls(A.getAttribute("enctype"))||ci,h=new FormData(A,i),!Tp()){let{name:v,type:M,value:x}=i;if(M==="image"){let w=v?`${v}.`:"";h.append(`${w}x`,"0"),h.append(`${w}y`,"0")}else v&&h.append(v,x)}}else{if(oi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');d=ii,r=null,m=ci,g=i}return h&&m==="text/plain"&&(g=h,h=void 0),{action:r,method:d.toLowerCase(),encType:m,formData:h,body:g}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function $s(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function _p(i,f,d,r){let m=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return d?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${r}`:m.pathname=`${m.pathname}.${r}`:m.pathname==="/"?m.pathname=`_root.${r}`:f&&nl(m.pathname,f)==="/"?m.pathname=`${f.replace(/\/$/,"")}/_root.${r}`:m.pathname=`${m.pathname.replace(/\/$/,"")}.${r}`,m}async function Rp(i,f){if(i.id in f)return f[i.id];try{let d=await import(i.module);return f[i.id]=d,d}catch(d){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(d),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Mp(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 Op(i,f,d){let r=await Promise.all(i.map(async m=>{let h=f.routes[m.route.id];if(h){let g=await Rp(h,d);return g.links?g.links():[]}return[]}));return Hp(r.flat(1).filter(Mp).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function pm(i,f,d,r,m,h){let g=(S,v)=>d[v]?S.route.id!==d[v].route.id:!0,A=(S,v)=>{var M;return d[v].pathname!==S.pathname||((M=d[v].route.path)==null?void 0:M.endsWith("*"))&&d[v].params["*"]!==S.params["*"]};return h==="assets"?f.filter((S,v)=>g(S,v)||A(S,v)):h==="data"?f.filter((S,v)=>{var x;let M=r.routes[S.route.id];if(!M||!M.hasLoader)return!1;if(g(S,v)||A(S,v))return!0;if(S.route.shouldRevalidate){let w=S.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:((x=d[0])==null?void 0:x.params)||{},nextUrl:new URL(i,window.origin),nextParams:S.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function Cp(i,f,{includeHydrateFallback:d}={}){return Dp(i.map(r=>{let m=f.routes[r.route.id];if(!m)return[];let h=[m.module];return m.clientActionModule&&(h=h.concat(m.clientActionModule)),m.clientLoaderModule&&(h=h.concat(m.clientLoaderModule)),d&&m.hydrateFallbackModule&&(h=h.concat(m.hydrateFallbackModule)),m.imports&&(h=h.concat(m.imports)),h}).flat(1))}function Dp(i){return[...new Set(i)]}function Up(i){let f={},d=Object.keys(i).sort();for(let r of d)f[r]=i[r];return f}function Hp(i,f){let d=new Set;return new Set(f),i.reduce((r,m)=>{let h=JSON.stringify(Up(m));return d.has(h)||(d.add(h),r.push({key:h,link:m})),r},[])}function qm(){let i=T.useContext(La);return $s(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function Bp(){let i=T.useContext(ri);return $s(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Ws=T.createContext(void 0);Ws.displayName="FrameworkContext";function Ym(){let i=T.useContext(Ws);return $s(i,"You must render this element inside a <HydratedRouter> element"),i}function wp(i,f){let d=T.useContext(Ws),[r,m]=T.useState(!1),[h,g]=T.useState(!1),{onFocus:A,onBlur:S,onMouseEnter:v,onMouseLeave:M,onTouchStart:x}=f,w=T.useRef(null);T.useEffect(()=>{if(i==="render"&&g(!0),i==="viewport"){let q=R=>{R.forEach(L=>{g(L.isIntersecting)})},O=new IntersectionObserver(q,{threshold:.5});return w.current&&O.observe(w.current),()=>{O.disconnect()}}},[i]),T.useEffect(()=>{if(r){let q=setTimeout(()=>{g(!0)},100);return()=>{clearTimeout(q)}}},[r]);let X=()=>{m(!0)},G=()=>{m(!1),g(!1)};return d?i!=="intent"?[h,w,{}]:[h,w,{onFocus:Hn(A,X),onBlur:Hn(S,G),onMouseEnter:Hn(v,X),onMouseLeave:Hn(M,G),onTouchStart:Hn(x,X)}]:[!1,w,{}]}function Hn(i,f){return d=>{i&&i(d),d.defaultPrevented||f(d)}}function Lp({page:i,...f}){let{router:d}=qm(),r=T.useMemo(()=>Tm(d.routes,i,d.basename),[d.routes,i,d.basename]);return r?T.createElement(Yp,{page:i,matches:r,...f}):null}function qp(i){let{manifest:f,routeModules:d}=Ym(),[r,m]=T.useState([]);return T.useEffect(()=>{let h=!1;return Op(i,f,d).then(g=>{h||m(g)}),()=>{h=!0}},[i,f,d]),r}function Yp({page:i,matches:f,...d}){let r=ul(),{future:m,manifest:h,routeModules:g}=Ym(),{basename:A}=qm(),{loaderData:S,matches:v}=Bp(),M=T.useMemo(()=>pm(i,f,v,h,r,"data"),[i,f,v,h,r]),x=T.useMemo(()=>pm(i,f,v,h,r,"assets"),[i,f,v,h,r]),w=T.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let q=new Set,O=!1;if(f.forEach(L=>{var k;let Q=h.routes[L.route.id];!Q||!Q.hasLoader||(!M.some(Y=>Y.route.id===L.route.id)&&L.route.id in S&&((k=g[L.route.id])!=null&&k.shouldRevalidate)||Q.hasClientLoader?O=!0:q.add(L.route.id))}),q.size===0)return[];let R=_p(i,A,m.unstable_trailingSlashAwareDataRequests,"data");return O&&q.size>0&&R.searchParams.set("_routes",f.filter(L=>q.has(L.route.id)).map(L=>L.route.id).join(",")),[R.pathname+R.search]},[A,m.unstable_trailingSlashAwareDataRequests,S,r,h,M,f,i,g]),X=T.useMemo(()=>Cp(x,h),[x,h]),G=qp(x);return T.createElement(T.Fragment,null,w.map(q=>T.createElement("link",{key:q,rel:"prefetch",as:"fetch",href:q,...d})),X.map(q=>T.createElement("link",{key:q,rel:"modulepreload",href:q,...d})),G.map(({key:q,link:O})=>T.createElement("link",{key:q,nonce:d.nonce,...O,crossOrigin:O.crossOrigin??d.crossOrigin})))}function Gp(...i){return f=>{i.forEach(d=>{typeof d=="function"?d(f):d!=null&&(d.current=f)})}}var kp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{kp&&(window.__reactRouterVersion="7.13.1")}catch{}function Xp({basename:i,children:f,unstable_useTransitions:d,window:r}){let m=T.useRef();m.current==null&&(m.current=jy({window:r,v5Compat:!0}));let h=m.current,[g,A]=T.useState({action:h.action,location:h.location}),S=T.useCallback(v=>{d===!1?A(v):T.startTransition(()=>A(v))},[d]);return T.useLayoutEffect(()=>h.listen(S),[h,S]),T.createElement(xp,{basename:i,children:f,location:g.location,navigationType:g.action,navigator:h,unstable_useTransitions:d})}var Gm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mt=T.forwardRef(function({onClick:f,discover:d="render",prefetch:r="none",relative:m,reloadDocument:h,replace:g,unstable_mask:A,state:S,target:v,to:M,preventScrollReset:x,viewTransition:w,unstable_defaultShouldRevalidate:X,...G},q){let{basename:O,navigator:R,unstable_useTransitions:L}=T.useContext(zt),Q=typeof M=="string"&&Gm.test(M),k=Mm(M,O);M=k.to;let Y=lp(M,{relative:m}),$=ul(),K=null;if(A){let Ue=Zs(A,[],$.unstable_mask?$.unstable_mask.pathname:"/",!0);O!=="/"&&(Ue.pathname=Ue.pathname==="/"?O:Lt([O,Ue.pathname])),K=R.createHref(Ue)}let[oe,Ne,Ct]=wp(r,G),ht=Kp(M,{replace:g,unstable_mask:A,state:S,target:v,preventScrollReset:x,relative:m,viewTransition:w,unstable_defaultShouldRevalidate:X,unstable_useTransitions:L});function Ke(Ue){f&&f(Ue),Ue.defaultPrevented||ht(Ue)}let Dt=!(k.isExternal||h),vt=T.createElement("a",{...G,...Ct,href:(Dt?K:void 0)||k.absoluteURL||Y,onClick:Dt?Ke:f,ref:Gp(q,Ne),target:v,"data-discover":!Q&&d==="render"?"true":void 0});return oe&&!Q?T.createElement(T.Fragment,null,vt,T.createElement(Lp,{page:Y})):vt});Mt.displayName="Link";var Qp=T.forwardRef(function({"aria-current":f="page",caseSensitive:d=!1,className:r="",end:m=!1,style:h,to:g,viewTransition:A,children:S,...v},M){let x=qn(g,{relative:v.relative}),w=ul(),X=T.useContext(ri),{navigator:G,basename:q}=T.useContext(zt),O=X!=null&&Ip(x)&&A===!0,R=G.encodeLocation?G.encodeLocation(x).pathname:x.pathname,L=w.pathname,Q=X&&X.navigation&&X.navigation.location?X.navigation.location.pathname:null;d||(L=L.toLowerCase(),Q=Q?Q.toLowerCase():null,R=R.toLowerCase()),Q&&q&&(Q=nl(Q,q)||Q);const k=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let Y=L===R||!m&&L.startsWith(R)&&L.charAt(k)==="/",$=Q!=null&&(Q===R||!m&&Q.startsWith(R)&&Q.charAt(R.length)==="/"),K={isActive:Y,isPending:$,isTransitioning:O},oe=Y?f:void 0,Ne;typeof r=="function"?Ne=r(K):Ne=[r,Y?"active":null,$?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let Ct=typeof h=="function"?h(K):h;return T.createElement(Mt,{...v,"aria-current":oe,className:Ne,ref:M,style:Ct,to:g,viewTransition:A},typeof S=="function"?S(K):S)});Qp.displayName="NavLink";var Zp=T.forwardRef(({discover:i="render",fetcherKey:f,navigate:d,reloadDocument:r,replace:m,state:h,method:g=ii,action:A,onSubmit:S,relative:v,preventScrollReset:M,viewTransition:x,unstable_defaultShouldRevalidate:w,...X},G)=>{let{unstable_useTransitions:q}=T.useContext(zt),O=Wp(),R=Fp(A,{relative:v}),L=g.toLowerCase()==="get"?"get":"post",Q=typeof A=="string"&&Gm.test(A),k=Y=>{if(S&&S(Y),Y.defaultPrevented)return;Y.preventDefault();let $=Y.nativeEvent.submitter,K=($==null?void 0:$.getAttribute("formmethod"))||g,oe=()=>O($||Y.currentTarget,{fetcherKey:f,method:K,navigate:d,replace:m,state:h,relative:v,preventScrollReset:M,viewTransition:x,unstable_defaultShouldRevalidate:w});q&&d!==!1?T.startTransition(()=>oe()):oe()};return T.createElement("form",{ref:G,method:L,action:R,onSubmit:r?S:k,...X,"data-discover":!Q&&i==="render"?"true":void 0})});Zp.displayName="Form";function Vp(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function km(i){let f=T.useContext(La);return _e(f,Vp(i)),f}function Kp(i,{target:f,replace:d,unstable_mask:r,state:m,preventScrollReset:h,relative:g,viewTransition:A,unstable_defaultShouldRevalidate:S,unstable_useTransitions:v}={}){let M=ap(),x=ul(),w=qn(i,{relative:g});return T.useCallback(X=>{if(Np(X,f)){X.preventDefault();let G=d!==void 0?d:Bn(x)===Bn(w),q=()=>M(i,{replace:G,unstable_mask:r,state:m,preventScrollReset:h,relative:g,viewTransition:A,unstable_defaultShouldRevalidate:S});v?T.startTransition(()=>q()):q()}},[x,M,w,d,r,m,f,i,h,g,A,S,v])}var Jp=0,$p=()=>`__${String(++Jp)}__`;function Wp(){let{router:i}=km("useSubmit"),{basename:f}=T.useContext(zt),d=hp(),r=i.fetch,m=i.navigate;return T.useCallback(async(h,g={})=>{let{action:A,method:S,encType:v,formData:M,body:x}=Ap(h,f);if(g.navigate===!1){let w=g.fetcherKey||$p();await r(w,d,g.action||A,{unstable_defaultShouldRevalidate:g.unstable_defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:M,body:x,formMethod:g.method||S,formEncType:g.encType||v,flushSync:g.flushSync})}else await m(g.action||A,{unstable_defaultShouldRevalidate:g.unstable_defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:M,body:x,formMethod:g.method||S,formEncType:g.encType||v,replace:g.replace,state:g.state,fromRouteId:d,flushSync:g.flushSync,viewTransition:g.viewTransition})},[r,m,f,d])}function Fp(i,{relative:f}={}){let{basename:d}=T.useContext(zt),r=T.useContext(qt);_e(r,"useFormAction must be used inside a RouteContext");let[m]=r.matches.slice(-1),h={...qn(i||".",{relative:f})},g=ul();if(i==null){h.search=g.search;let A=new URLSearchParams(h.search),S=A.getAll("index");if(S.some(M=>M==="")){A.delete("index"),S.filter(x=>x).forEach(x=>A.append("index",x));let M=A.toString();h.search=M?`?${M}`:""}}return(!i||i===".")&&m.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),d!=="/"&&(h.pathname=h.pathname==="/"?d:Lt([d,h.pathname])),Bn(h)}function Ip(i,{relative:f}={}){let d=T.useContext(Cm);_e(d!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=km("useViewTransitionState"),m=qn(i,{relative:f});if(!d.isTransitioning)return!1;let h=nl(d.currentLocation.pathname,r)||d.currentLocation.pathname,g=nl(d.nextLocation.pathname,r)||d.nextLocation.pathname;return si(m.pathname,g)!=null||si(m.pathname,h)!=null}const Pp="";async function Ol(i,f){const d=await fetch(`${Pp}${i}`,f);if(!d.ok){const r=await d.json().catch(()=>({error:d.statusText}));throw new Error(r.error||`HTTP ${d.status}`)}return d.json()}const Cl={getConfig(){return Ol("/api/config")},getSkills(){return Ol("/api/skills")},getSkillDetail(i,f){return Ol(`/api/skills/${i}/${f}`)},getEvals(i,f){return Ol(`/api/skills/${i}/${f}/evals`)},saveEvals(i,f,d){return Ol(`/api/skills/${i}/${f}/evals`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)})},getLatestBenchmark(i,f){return Ol(`/api/skills/${i}/${f}/benchmark/latest`)},getHistory(i,f){return Ol(`/api/skills/${i}/${f}/history`)},getHistoryEntry(i,f,d){return Ol(`/api/skills/${i}/${f}/history/${encodeURIComponent(d)}`)}},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 s.jsx("div",{className:"glass-card p-5",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex-1",children:[s.jsx("div",{className:"skeleton h-5 w-36 mb-2"}),s.jsx("div",{className:"skeleton h-3.5 w-48"})]}),s.jsx("div",{className:"skeleton h-6 w-20 rounded-full"})]})})}function e1(){const[i,f]=T.useState([]),[d,r]=T.useState(!0),[m,h]=T.useState(null);T.useEffect(()=>{Cl.getSkills().then(f).catch(A=>h(A.message)).finally(()=>r(!1))},[]);const g=i.reduce((A,S)=>{var v;return(A[v=S.plugin]||(A[v]=[])).push(S),A},{});return s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"mb-8",children:[s.jsx("h2",{className:"text-[22px] font-semibold tracking-tight",style:{color:"var(--text-primary)"},children:"Skills"}),s.jsx("p",{className:"text-[13px] mt-1",style:{color:"var(--text-tertiary)"},children:d?"Scanning plugins...":`${i.length} skill${i.length!==1?"s":""} across ${Object.keys(g).length} plugin${Object.keys(g).length!==1?"s":""}`})]}),m&&s.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}),d&&s.jsxs("div",{className:"space-y-3",children:[s.jsx(qs,{}),s.jsx(qs,{}),s.jsx(qs,{})]}),!d&&s.jsx("div",{className:"space-y-8 stagger-children",children:Object.entries(g).map(([A,S])=>s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3 px-1",children:[s.jsx("div",{className:"w-1.5 h-1.5 rounded-full",style:{background:"var(--accent)"}}),s.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:A}),s.jsx("div",{className:"flex-1 h-px",style:{background:"var(--border-subtle)"}})]}),s.jsx("div",{className:"grid gap-2",children:S.map(v=>{const M=xm[v.benchmarkStatus]||xm.missing;return s.jsxs(Mt,{to:`/skills/${v.plugin}/${v.skill}`,className:"glass-card glass-card-interactive p-5 flex items-center justify-between group",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"flex items-center gap-2",children:s.jsx("span",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:v.skill})}),s.jsxs("div",{className:"flex items-center gap-3 mt-1.5",children:[s.jsxs("span",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:[v.evalCount," eval",v.evalCount!==1?"s":""]}),s.jsxs("span",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:[v.assertionCount," assertion",v.assertionCount!==1?"s":""]}),v.lastBenchmark&&s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:new Date(v.lastBenchmark).toLocaleDateString()})]})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("span",{className:"pill",style:{background:M.bg,color:M.text},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:M.dot}}),M.label]}),s.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:s.jsx("polyline",{points:"9 18 15 12 9 6"})})]})]},`${v.plugin}/${v.skill}`)})})]},A))}),!d&&i.length===0&&!m&&s.jsxs("div",{className:"text-center py-16 animate-fade-in-scale",children:[s.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:s.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:s.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"})})}),s.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"No skills found"}),s.jsxs("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:["Check your ",s.jsx("code",{className:"px-1.5 py-0.5 rounded text-[11px]",style:{background:"var(--surface-2)"},children:"--root"})," directory"]})]})]})}function t1(){const{plugin:i,skill:f}=fi(),[d,r]=T.useState(null),[m,h]=T.useState(!0),[g,A]=T.useState(null),[S,v]=T.useState(!1),[M,x]=T.useState(null),[w,X]=T.useState(!1);T.useEffect(()=>{!i||!f||Cl.getEvals(i,f).then(r).catch(Y=>A(Y.message)).finally(()=>h(!1))},[i,f]);async function G(Y){if(!(!i||!f)){v(!0);try{const $=await Cl.saveEvals(i,f,Y);r($),A(null)}catch($){A($.message)}finally{v(!1)}}}function q(Y){d&&(G({...d,evals:[...d.evals,Y]}),X(!1))}function O(Y){d&&(G({...d,evals:d.evals.map($=>$.id===Y.id?Y:$)}),x(null))}function R(Y){!d||!confirm("Delete this eval case?")||G({...d,evals:d.evals.filter($=>$.id!==Y)})}function L(Y){if(!d)return;const $=d.evals.find(K=>K.id===Y);$&&O({...$,assertions:[...$.assertions,{id:`assert-${Date.now()}`,text:"New assertion",type:"boolean"}]})}function Q(Y,$,K){if(!d)return;const oe=d.evals.find(Ne=>Ne.id===Y);oe&&O({...oe,assertions:oe.assertions.map(Ne=>Ne.id===$?{...Ne,text:K}:Ne)})}function k(Y,$){if(!d)return;const K=d.evals.find(oe=>oe.id===Y);K&&O({...K,assertions:K.assertions.filter(oe=>oe.id!==$)})}return m?s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsx("div",{className:"skeleton h-5 w-48 mb-6"}),s.jsxs("div",{className:"flex gap-2 mb-6",children:[s.jsx("div",{className:"skeleton h-9 w-32 rounded-lg"}),s.jsx("div",{className:"skeleton h-9 w-32 rounded-lg"})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"skeleton h-32 rounded-xl"}),s.jsx("div",{className:"skeleton h-32 rounded-xl"})]})]}):s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1 text-[13px]",children:[s.jsx(Mt,{to:"/",className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:Y=>{Y.currentTarget.style.color="var(--text-primary)"},onMouseLeave:Y=>{Y.currentTarget.style.color="var(--text-tertiary)"},children:"Skills"}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:i}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:f})]}),s.jsxs("div",{className:"flex items-center gap-2 mt-4 mb-7",children:[s.jsxs(Mt,{to:`/skills/${i}/${f}/benchmark`,className:"btn btn-primary",children:[s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})}),"Run Benchmark"]}),s.jsxs(Mt,{to:`/skills/${i}/${f}/compare`,className:"btn btn-purple",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M16 3h5v5"}),s.jsx("path",{d:"M8 21H3v-5"}),s.jsx("path",{d:"M21 3l-7 7"}),s.jsx("path",{d:"M3 21l7-7"})]}),"Compare A/B"]}),s.jsxs(Mt,{to:`/skills/${i}/${f}/history`,className:"btn btn-secondary",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"12 6 12 12 16 14"})]}),"History"]})]}),g&&s.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:g}),d?s.jsxs("div",{className:"space-y-3 stagger-children",children:[d.evals.map(Y=>s.jsxs("div",{className:"glass-card p-5",children:[s.jsxs("div",{className:"flex items-start justify-between mb-3",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",Y.id]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:Y.name})]}),s.jsx("p",{className:"text-[12px] mt-1.5 line-clamp-2",style:{color:"var(--text-tertiary)"},children:Y.prompt})]}),s.jsxs("div",{className:"flex gap-1 ml-3",children:[s.jsx("button",{onClick:()=>{x(Y),X(!0)},className:"btn btn-ghost text-[12px]",children:"Edit"}),s.jsx("button",{onClick:()=>R(Y.id),className:"btn btn-danger text-[12px]",children:"Delete"})]})]}),s.jsxs("div",{className:"mt-3 pt-3",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Assertions"}),s.jsx("span",{className:"pill",style:{background:"var(--surface-3)",color:"var(--text-tertiary)",fontSize:"10px",padding:"1px 7px"},children:Y.assertions.length})]}),s.jsx("div",{className:"space-y-1.5",children:Y.assertions.map($=>s.jsxs("div",{className:"flex items-center gap-2 group",children:[s.jsx("span",{className:"text-[11px] font-mono w-28 truncate flex-shrink-0",style:{color:"var(--text-tertiary)"},children:$.id}),s.jsx("input",{className:"input-field flex-1 text-[12px] py-1.5",style:{background:"transparent",border:"1px solid transparent",borderRadius:"6px"},value:$.text,onChange:K=>Q(Y.id,$.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"}}),s.jsx("button",{onClick:()=>k(Y.id,$.id),className:"opacity-0 group-hover:opacity-100 transition-opacity duration-150 p-1 rounded",style:{color:"var(--red)"},children:s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},$.id))}),s.jsxs("button",{onClick:()=>L(Y.id),className:"btn btn-ghost text-[12px] mt-2",style:{color:"var(--accent)"},children:[s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:[s.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),s.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"Add assertion"]})]})]},Y.id)),s.jsx("button",{onClick:()=>{x(null),X(!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:Y=>{Y.currentTarget.style.borderColor="var(--accent)",Y.currentTarget.style.color="var(--accent)",Y.currentTarget.style.background="var(--accent-muted)"},onMouseLeave:Y=>{Y.currentTarget.style.borderColor="var(--border-default)",Y.currentTarget.style.color="var(--text-tertiary)",Y.currentTarget.style.background="transparent"},children:"+ Add Eval Case"})]}):s.jsxs("div",{className:"text-center py-16 animate-fade-in-scale",children:[s.jsx("div",{className:"w-16 h-16 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:s.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",children:[s.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),s.jsx("polyline",{points:"14 2 14 8 20 8"})]})}),s.jsx("p",{className:"text-[14px] font-medium",style:{color:"var(--text-secondary)"},children:"No evals.json found"}),s.jsx("button",{onClick:()=>X(!0),className:"btn btn-primary mt-3",children:"Create evals.json"})]}),w&&s.jsx(l1,{evalCase:M,skillName:(d==null?void 0:d.skill_name)||f||"",existingIds:(d==null?void 0:d.evals.map(Y=>Y.id))||[],onSave:Y=>M?O(Y):q(Y),onCancel:()=>{X(!1),x(null)}}),S&&s.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:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)"}}),"Saving..."]})]})}function l1({evalCase:i,skillName:f,existingIds:d,onSave:r,onCancel:m}){const[h,g]=T.useState((i==null?void 0:i.name)||""),[A,S]=T.useState((i==null?void 0:i.prompt)||""),[v,M]=T.useState((i==null?void 0:i.expected_output)||""),[x,w]=T.useState((i==null?void 0:i.assertions)||[{id:"assert-1",text:"",type:"boolean"}]);function X(G){G.preventDefault();const q=(i==null?void 0:i.id)??(d.length>0?Math.max(...d)+1:1);r({id:q,name:h,prompt:A,expected_output:v,files:(i==null?void 0:i.files)||[],assertions:x.filter(O=>O.text.trim())})}return s.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:s.jsxs("form",{onSubmit:X,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:[s.jsx("h3",{className:"text-[16px] font-semibold mb-5",style:{color:"var(--text-primary)"},children:i?"Edit Eval Case":"New Eval Case"}),s.jsxs("label",{className:"block mb-4",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Name"}),s.jsx("input",{className:"input-field",value:h,onChange:G=>g(G.target.value),required:!0,placeholder:"e.g. basic-test-question"})]}),s.jsxs("label",{className:"block mb-4",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Prompt"}),s.jsx("textarea",{className:"input-field h-24 resize-y",value:A,onChange:G=>S(G.target.value),required:!0,placeholder:"The user prompt to test against..."})]}),s.jsxs("label",{className:"block mb-4",children:[s.jsx("span",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Expected Output"}),s.jsx("textarea",{className:"input-field h-20 resize-y",value:v,onChange:G=>M(G.target.value),placeholder:"What a good answer should include..."})]}),s.jsxs("div",{className:"mb-5",children:[s.jsx("span",{className:"text-[12px] font-medium mb-2 block",style:{color:"var(--text-secondary)"},children:"Assertions"}),x.map((G,q)=>s.jsxs("div",{className:"flex gap-2 mt-1.5",children:[s.jsx("input",{className:"input-field w-32 text-[12px] font-mono",value:G.id,onChange:O=>{const R=[...x];R[q]={...R[q],id:O.target.value},w(R)},placeholder:"ID"}),s.jsx("input",{className:"input-field flex-1 text-[12px]",value:G.text,onChange:O=>{const R=[...x];R[q]={...R[q],text:O.target.value},w(R)},placeholder:"Assertion text"}),s.jsx("button",{type:"button",onClick:()=>w(x.filter((O,R)=>R!==q)),className:"btn btn-ghost p-1.5",style:{color:"var(--red)"},children:s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]},q)),s.jsx("button",{type:"button",onClick:()=>w([...x,{id:`assert-${x.length+1}`,text:"",type:"boolean"}]),className:"btn btn-ghost text-[12px] mt-2",style:{color:"var(--accent)"},children:"+ Add assertion"})]}),s.jsxs("div",{className:"flex justify-end gap-2 pt-4",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("button",{type:"button",onClick:m,className:"btn btn-secondary",children:"Cancel"}),s.jsx("button",{type:"submit",className:"btn btn-primary",children:"Save"})]})]})})}function Fs(){const[i,f]=T.useState([]),[d,r]=T.useState(!1),[m,h]=T.useState(!1),[g,A]=T.useState(null),S=T.useRef(null),v=T.useCallback(async(x,w)=>{f([]),r(!0),h(!1),A(null);const X=new AbortController;S.current=X;try{const G=await fetch(x,{method:"POST",headers:{"Content-Type":"application/json"},body:w?JSON.stringify(w):void 0,signal:X.signal});if(!G.ok||!G.body)throw new Error(`HTTP ${G.status}`);const q=G.body.getReader(),O=new TextDecoder;let R="";for(;;){const{done:L,value:Q}=await q.read();if(L)break;R+=O.decode(Q,{stream:!0});const k=R.split(`
61
+ `);R=k.pop()||"";let Y="";for(const $ of k)if($.startsWith("event: "))Y=$.slice(7).trim();else if($.startsWith("data: ")){try{const K=JSON.parse($.slice(6)),oe={event:Y,data:K};Y==="done"?(h(!0),f(Ne=>[...Ne,oe])):f(Ne=>[...Ne,oe])}catch{}Y=""}}}catch(G){G.name!=="AbortError"&&A(G.message)}finally{r(!1),S.current=null}},[]),M=T.useCallback(()=>{var x;(x=S.current)==null||x.abort()},[]);return{events:i,running:d,done:m,error:g,start:v,stop:M}}function a1(){const{plugin:i,skill:f}=fi(),{events:d,running:r,done:m,error:h,start:g}=Fs(),[A,S]=T.useState(new Set),[v,M]=T.useState(null);T.useEffect(()=>{Cl.getConfig().then(R=>M(R.model)).catch(()=>{})},[]);function x(){S(new Set),g(`/api/skills/${i}/${f}/benchmark`)}function w(R){S(L=>{const Q=new Set(L);return Q.has(R)?Q.delete(R):Q.add(R),Q})}const X=new Map;for(const R of d){if(R.event==="case_start"){const L=R.data;X.has(L.eval_id)||X.set(L.eval_id,{name:L.eval_name,assertions:[]})}if(R.event==="output_ready"){const L=R.data,Q=X.get(L.eval_id)||{assertions:[]};Q.output=L.output,X.set(L.eval_id,Q)}if(R.event==="assertion_result"){const L=R.data,Q=X.get(L.eval_id)||{assertions:[]};Q.assertions.find(k=>k.assertion_id===L.assertion_id)||(Q.assertions.push(L),X.set(L.eval_id,Q))}if(R.event==="case_complete"){const L=R.data,Q=X.get(L.eval_id)||{assertions:[]};Q.status=L.status,Q.passRate=L.pass_rate,Q.errorMessage=L.error_message||void 0,X.set(L.eval_id,Q)}}const G=d.find(R=>R.event==="done"),q=G==null?void 0:G.data,O=(q==null?void 0:q.overall_pass_rate)!==void 0?Math.round(q.overall_pass_rate*100):null;return s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Mt,{to:`/skills/${i}/${f}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:R=>{R.currentTarget.style.color="var(--text-primary)"},onMouseLeave:R=>{R.currentTarget.style.color="var(--text-tertiary)"},children:f}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"Benchmark"})]}),s.jsxs("div",{className:"mb-3",children:[s.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."}),v&&s.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5",children:[s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"Model:"}),s.jsx("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--accent)"},children:v})]})]}),s.jsx("button",{onClick:x,disabled:r,className:"btn btn-primary mb-7",children:r?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Running..."]}):s.jsxs(s.Fragment,{children:[s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polygon",{points:"5 3 19 12 5 21 5 3"})})," Run Benchmark"]})}),h&&s.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:h}),X.size>0&&s.jsxs("div",{className:"space-y-3 stagger-children",children:[Array.from(X.entries()).map(([R,L])=>{const Q=A.has(R);return s.jsxs("div",{className:"glass-card overflow-hidden",children:[s.jsxs("div",{className:"p-5",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",R]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:L.name||"Eval Case"})]}),L.status?s.jsxs("span",{className:"pill",style:{background:L.status==="pass"?"var(--green-muted)":L.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:L.status==="pass"?"var(--green)":L.status==="error"?"var(--yellow)":"var(--red)"},children:[s.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{background:L.status==="pass"?"var(--green)":L.status==="error"?"var(--yellow)":"var(--red)"}}),L.status," ",L.passRate!==void 0?`${Math.round(L.passRate*100)}%`:""]}):s.jsxs("div",{className:"flex items-center gap-2 text-[12px]",style:{color:"var(--accent)"},children:[s.jsx("div",{className:"spinner",style:{width:12,height:12}}),"Evaluating..."]})]}),L.errorMessage&&s.jsx("div",{className:"mb-3 p-3 rounded-lg text-[12px]",style:{background:"var(--red-muted)",color:"var(--red)"},children:L.errorMessage}),s.jsx("div",{className:"space-y-2",children:L.assertions.map(k=>s.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg animate-fade-in",style:{background:k.pass?"var(--green-muted)":"var(--red-muted)"},children:[s.jsx("div",{className:"w-5 h-5 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:k.pass?"var(--green)":"var(--red)"},children:s.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:k.pass?s.jsx("polyline",{points:"20 6 9 17 4 12"}):s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:k.text||k.assertion_id}),s.jsx("div",{className:"text-[12px] mt-0.5",style:{color:"var(--text-secondary)"},children:k.reasoning})]})]},k.assertion_id))})]}),L.output&&s.jsxs(s.Fragment,{children:[s.jsxs("button",{onClick:()=>w(R),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:k=>{k.currentTarget.style.background="var(--surface-3)"},onMouseLeave:k=>{k.currentTarget.style.background="var(--surface-2)"},children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:Q?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),Q?"Hide LLM Output":"Show Actual LLM Output"]}),Q&&s.jsxs("div",{className:"p-4 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"LLM Output"}),s.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:L.output})]})]})]},R)}),m&&O!==null&&s.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:[s.jsxs("div",{className:"text-[36px] font-bold tracking-tight",style:{color:O>=80?"var(--green)":O>=50?"var(--yellow)":"var(--red)"},children:[O,"%"]}),s.jsx("div",{className:"text-[13px] mt-1",style:{color:"var(--text-tertiary)"},children:"Overall Pass Rate"}),v&&s.jsx("div",{className:"text-[11px] mt-1 font-mono",style:{color:"var(--text-tertiary)"},children:v})]})]}),r&&X.size===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.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 n1(){const{plugin:i,skill:f}=fi(),{events:d,running:r,done:m,error:h,start:g}=Fs(),[A,S]=T.useState(new Set),[v,M]=T.useState(null);T.useEffect(()=>{Cl.getConfig().then(O=>M(O.model)).catch(()=>{})},[]);function x(){S(new Set),g(`/api/skills/${i}/${f}/compare`)}function w(O){S(R=>{const L=new Set(R);return L.has(O)?L.delete(O):L.add(O),L})}const X=[];for(const O of d)if(O.event==="outputs_ready"){const R=O.data;X.find(L=>L.eval_id===R.eval_id)||X.push(R)}const G=d.find(O=>O.event==="done"),q=G==null?void 0:G.data;return s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Mt,{to:`/skills/${i}/${f}`,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:f}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"A/B Comparison"})]}),s.jsxs("div",{className:"mb-3",children:[s.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)."}),v&&s.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5",children:[s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"Model:"}),s.jsx("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--accent)"},children:v})]})]}),s.jsx("button",{onClick:x,disabled:r,className:"btn btn-purple mb-7",children:r?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Comparing..."]}):s.jsxs(s.Fragment,{children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("path",{d:"M16 3h5v5"}),s.jsx("path",{d:"M8 21H3v-5"}),s.jsx("path",{d:"M21 3l-7 7"}),s.jsx("path",{d:"M3 21l7-7"})]})," Run Comparison"]})}),h&&s.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:h}),X.length>0&&s.jsxs("div",{className:"space-y-4 stagger-children",children:[X.map(O=>{const R=A.has(O.eval_id),L=O.winner==="skill"?"Skill Wins":O.winner==="baseline"?"Baseline Wins":"Tie",Q=O.winner==="skill"?"var(--green)":O.winner==="baseline"?"var(--red)":"var(--text-tertiary)";return s.jsxs("div",{className:"glass-card overflow-hidden",children:[s.jsxs("div",{className:"p-5 pb-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.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]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:O.eval_name||"Eval Case"})]}),s.jsx("span",{className:"pill",style:{background:O.winner==="skill"?"var(--green-muted)":O.winner==="baseline"?"var(--red-muted)":"var(--surface-3)",color:Q,fontWeight:700},children:L})]}),s.jsxs("div",{className:"mb-4 p-3 rounded-lg",style:{background:"var(--surface-2)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-1.5",style:{color:"var(--text-tertiary)"},children:"Prompt"}),s.jsx("div",{className:"text-[12px] leading-relaxed",style:{color:"var(--text-secondary)"},children:O.prompt})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsx(bm,{label:"WITH Skill",contentScore:O.skillContentScore,structureScore:O.skillStructureScore,isWinner:O.winner==="skill"}),s.jsx(bm,{label:"WITHOUT Skill",contentScore:O.baselineContentScore,structureScore:O.baselineStructureScore,isWinner:O.winner==="baseline"})]})]}),s.jsxs("button",{onClick:()=>w(O.eval_id),className:"w-full px-5 py-3 flex items-center justify-center gap-2 text-[12px] font-medium transition-all duration-150",style:{background:"var(--surface-2)",color:"var(--text-secondary)",borderTop:"1px solid var(--border-subtle)"},onMouseEnter:k=>{k.currentTarget.style.background="var(--surface-3)"},onMouseLeave:k=>{k.currentTarget.style.background="var(--surface-2)"},children:[s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",style:{transform:R?"rotate(180deg)":"rotate(0)",transition:"transform 0.2s ease"},children:s.jsx("polyline",{points:"6 9 12 15 18 9"})}),R?"Hide LLM Outputs":"Show Actual LLM Outputs"]}),R&&s.jsxs("div",{className:"grid grid-cols-2 gap-0 animate-fade-in",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx(jm,{label:"WITH Skill",output:O.skillOutput,accentColor:O.winner==="skill"?"var(--green)":void 0}),s.jsx(jm,{label:"WITHOUT Skill",output:O.baselineOutput,accentColor:O.winner==="baseline"?"var(--red)":void 0,hasBorderLeft:!0})]})]},O.eval_id)}),m&&(q==null?void 0:q.verdict)&&(()=>{const O=gm[q.verdict]||gm.INEFFECTIVE;return s.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:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-widest mb-2",style:{color:"var(--text-tertiary)"},children:"Verdict"}),s.jsx("div",{className:"text-[32px] font-bold tracking-tight",style:{color:O.text},children:q.verdict}),q.comparison&&s.jsxs("div",{className:"flex justify-center gap-8 mt-5",children:[s.jsx(Ys,{label:"Skill Avg",value:q.comparison.skillRubricAvg.toFixed(1)}),s.jsx(Ys,{label:"Baseline Avg",value:q.comparison.baselineRubricAvg.toFixed(1)}),s.jsx(Ys,{label:"Delta",value:`${q.comparison.delta>0?"+":""}${q.comparison.delta.toFixed(1)}`,color:q.comparison.delta>0?"var(--green)":q.comparison.delta<0?"var(--red)":"var(--text-secondary)"})]}),q.overall_pass_rate!==void 0&&s.jsxs("div",{className:"text-[12px] mt-3",style:{color:"var(--text-tertiary)"},children:["Assertion pass rate: ",Math.round(q.overall_pass_rate*100),"%"]})]})})()]}),r&&X.length===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Generating WITH and WITHOUT outputs..."}),s.jsx("p",{className:"text-[12px] mt-1",style:{color:"var(--text-tertiary)"},children:"Then blind-scoring both responses"})]})]})}function bm({label:i,contentScore:f,structureScore:d,isWinner:r}){const m=((f+d)/2).toFixed(1),h=parseFloat(m),g=h>=4?"var(--green)":h>=3?"var(--yellow)":"var(--red)";return s.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:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:"var(--text-tertiary)"},children:i}),s.jsx("div",{className:"text-[16px] font-bold",style:{color:g},children:m})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(Sm,{label:"Content",score:f}),s.jsx(Sm,{label:"Structure",score:d})]})]})}function Sm({label:i,score:f}){const d=f/5*100,r=f>=4?"var(--green)":f>=3?"var(--yellow)":"var(--red)";return s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"text-[11px] w-16",style:{color:"var(--text-tertiary)"},children:i}),s.jsx("div",{className:"flex-1 h-1.5 rounded-full",style:{background:"var(--surface-3)"},children:s.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${d}%`,background:r}})}),s.jsx("div",{className:"text-[12px] font-semibold w-5 text-right",style:{color:r},children:f})]})}function jm({label:i,output:f,accentColor:d,hasBorderLeft:r}){return s.jsxs("div",{className:"p-4",style:{borderLeft:r?"1px solid var(--border-subtle)":void 0},children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[d&&s.jsx("div",{className:"w-2 h-2 rounded-full",style:{background:d}}),s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest",style:{color:d||"var(--text-tertiary)"},children:i})]}),s.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:f||"(empty output)"})]})}function Ys({label:i,value:f,color:d}){return s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-[18px] font-bold",style:{color:d||"var(--text-primary)"},children:f}),s.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:i})]})}function u1(){const{plugin:i,skill:f}=fi(),[d,r]=T.useState([]),[m,h]=T.useState(!0),[g,A]=T.useState(null),[S,v]=T.useState(null);T.useEffect(()=>{!i||!f||Cl.getHistory(i,f).then(r).catch(()=>{}).finally(()=>h(!1))},[i,f]);async function M(x){if(!(!i||!f)){v(x);try{const w=await Cl.getHistoryEntry(i,f,x);A(w)}catch{A(null)}}}return m?s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsx("div",{className:"skeleton h-5 w-48 mb-6"}),s.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx("div",{className:"skeleton h-20 rounded-xl"}),s.jsx("div",{className:"skeleton h-20 rounded-xl"})]}),s.jsx("div",{className:"col-span-2",children:s.jsx("div",{className:"skeleton h-48 rounded-xl"})})]})]}):s.jsxs("div",{className:"px-10 py-8 max-w-6xl",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-5 text-[13px]",children:[s.jsx(Mt,{to:`/skills/${i}/${f}`,className:"transition-colors duration-150",style:{color:"var(--text-tertiary)"},onMouseEnter:x=>{x.currentTarget.style.color="var(--text-primary)"},onMouseLeave:x=>{x.currentTarget.style.color="var(--text-tertiary)"},children:f}),s.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"2",children:s.jsx("polyline",{points:"9 18 15 12 9 6"})}),s.jsx("span",{className:"font-medium",style:{color:"var(--text-primary)"},children:"History"})]}),s.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[s.jsxs("div",{className:"col-span-1",children:[s.jsxs("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-3 px-1",style:{color:"var(--text-tertiary)"},children:["Past Runs (",d.length,")"]}),d.length===0&&s.jsxs("div",{className:"text-center py-8",children:[s.jsx("div",{className:"w-12 h-12 rounded-xl flex items-center justify-center mx-auto mb-3",style:{background:"var(--surface-2)"},children:s.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"var(--text-tertiary)",strokeWidth:"1.5",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"12 6 12 12 16 14"})]})}),s.jsx("p",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"No benchmark runs yet"})]}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:d.map(x=>{const w=S===x.timestamp,X=x.passRate>=.8?"var(--green)":x.passRate>=.5?"var(--yellow)":"var(--red)";return s.jsxs("button",{onClick:()=>M(x.timestamp),className:"w-full text-left p-3.5 rounded-xl transition-all duration-150",style:{background:w?"var(--accent-muted)":"var(--surface-1)",border:w?"1px solid var(--border-active)":"1px solid var(--border-subtle)"},onMouseEnter:G=>{w||(G.currentTarget.style.borderColor="var(--border-hover)")},onMouseLeave:G=>{w||(G.currentTarget.style.borderColor="var(--border-subtle)")},children:[s.jsx("div",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:new Date(x.timestamp).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}),s.jsxs("div",{className:"flex items-center gap-2 mt-1.5",children:[s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:x.model}),s.jsxs("span",{className:"text-[11px] font-semibold",style:{color:X},children:[Math.round(x.passRate*100),"%"]}),x.type==="comparison"&&s.jsx("span",{className:"pill",style:{background:"var(--purple-muted)",color:"var(--purple)",fontSize:"9px",padding:"1px 6px"},children:"A/B"})]})]},x.timestamp)})})]}),s.jsx("div",{className:"col-span-2",children:g?s.jsxs("div",{className:"space-y-3 animate-slide-in-right",children:[s.jsx("div",{className:"glass-card p-4",children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:new Date(g.timestamp).toLocaleString()}),s.jsx("div",{className:"text-[12px] mt-0.5",style:{color:"var(--text-tertiary)"},children:g.model})]}),g.verdict&&s.jsx("span",{className:"text-[14px] font-bold",style:{color:g.verdict==="EFFECTIVE"?"var(--green)":g.verdict==="MARGINAL"?"var(--yellow)":g.verdict==="DEGRADING"?"var(--red)":"var(--orange)"},children:g.verdict})]})}),g.cases.map(x=>s.jsxs("div",{className:"glass-card p-5",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("span",{className:"text-[11px] font-mono px-1.5 py-0.5 rounded",style:{background:"var(--surface-3)",color:"var(--text-tertiary)"},children:["#",x.eval_id]}),s.jsx("h4",{className:"text-[14px] font-medium",style:{color:"var(--text-primary)"},children:x.eval_name})]}),s.jsxs("span",{className:"pill",style:{background:x.status==="pass"?"var(--green-muted)":x.status==="error"?"var(--yellow-muted)":"var(--red-muted)",color:x.status==="pass"?"var(--green)":x.status==="error"?"var(--yellow)":"var(--red)"},children:[x.status," (",Math.round(x.pass_rate*100),"%)"]})]}),x.error_message&&s.jsx("div",{className:"text-[12px] mb-3 p-2 rounded",style:{background:"var(--red-muted)",color:"var(--red)"},children:x.error_message}),s.jsx("div",{className:"space-y-1.5",children:x.assertions.map(w=>s.jsxs("div",{className:"flex items-start gap-2.5 py-1.5",children:[s.jsx("div",{className:"w-4 h-4 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:w.pass?"var(--green)":"var(--red)"},children:s.jsx("svg",{width:"8",height:"8",viewBox:"0 0 24 24",fill:"none",stroke:"#fff",strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round",children:w.pass?s.jsx("polyline",{points:"20 6 9 17 4 12"}):s.jsxs(s.Fragment,{children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-primary)"},children:w.text}),s.jsx("div",{className:"text-[11px] mt-0.5",style:{color:"var(--text-tertiary)"},children:w.reasoning})]})]},w.id))})]},x.eval_id))]}):s.jsxs("div",{className:"text-center py-20",children:[s.jsx("div",{className:"w-14 h-14 rounded-2xl flex items-center justify-center mx-auto mb-4",style:{background:"var(--surface-2)"},children:s.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:s.jsx("polyline",{points:"15 18 9 12 15 6"})})}),s.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"}},i1=[{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 c1(){const[i,f]=T.useState([]),[d,r]=T.useState(null),[m,h]=T.useState(null),[g,A]=T.useState(""),[S,v]=T.useState(!1),{events:M,running:x,error:w,start:X}=Fs();T.useEffect(()=>{Cl.getSkills().then(f).catch(()=>{})},[]),T.useEffect(()=>{if(!d){h(null);return}fetch(`/api/skills/${d.plugin}/${d.skill}/description`).then(k=>k.json()).then(k=>h(k.description)).catch(()=>h(null))},[d]);function G(){if(!d)return;const Y=g.trim().split(`
62
+ `).filter(Boolean).map($=>{const K=$.startsWith("!");return{prompt:K?$.slice(1).trim():$.trim(),expected:K?"should_not_activate":"should_activate"}});X(`/api/skills/${d.plugin}/${d.skill}/activation-test`,{prompts:Y})}function q(k){const Y=g.trim(),$=Y?`${Y}
63
+ ${k.join(`
64
+ `)}`:k.join(`
65
+ `);A($)}const O=[];let R=null;for(const k of M)k.event==="prompt_result"&&O.push(k.data),k.event==="done"&&(R=k.data);const L=O.filter(k=>k.classification==="TP"||k.classification==="TN"),Q=O.filter(k=>k.classification==="FP"||k.classification==="FN");return s.jsxs("div",{className:"px-10 py-8 max-w-5xl",children:[s.jsxs("div",{className:"mb-6",children:[s.jsx("h2",{className:"text-[22px] font-semibold tracking-tight",style:{color:"var(--text-primary)"},children:"Description Activation Test"}),s.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 ",s.jsx("strong",{children:"auto-activation quality"})," of your skill description."]})]}),s.jsxs("div",{className:"grid grid-cols-5 gap-5 mb-6",children:[s.jsxs("div",{className:"col-span-3 space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-[12px] font-medium mb-1.5 block",style:{color:"var(--text-secondary)"},children:"Skill"}),s.jsxs("select",{className:"input-field",value:d?`${d.plugin}/${d.skill}`:"",onChange:k=>{const[Y,$]=k.target.value.split("/");r(Y&&$?{plugin:Y,skill:$}:null)},children:[s.jsx("option",{value:"",children:"Select a skill..."}),i.map(k=>s.jsxs("option",{value:`${k.plugin}/${k.skill}`,children:[k.plugin," / ",k.skill]},`${k.plugin}/${k.skill}`))]})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[s.jsx("label",{className:"text-[12px] font-medium",style:{color:"var(--text-secondary)"},children:"Test Prompts"}),s.jsx("div",{className:"flex gap-1.5",children:i1.map(k=>s.jsxs("button",{onClick:()=>q(k.prompts),className:"text-[10px] px-2 py-1 rounded-md transition-colors duration-150",style:{background:"var(--surface-2)",color:"var(--text-tertiary)"},onMouseEnter:Y=>{Y.currentTarget.style.color="var(--text-primary)",Y.currentTarget.style.background="var(--surface-3)"},onMouseLeave:Y=>{Y.currentTarget.style.color="var(--text-tertiary)",Y.currentTarget.style.background="var(--surface-2)"},children:["+ ",k.label]},k.label))})]}),s.jsx("textarea",{className:"input-field h-32 resize-y font-mono text-[12px]",value:g,onChange:k=>A(k.target.value),placeholder:`How do I write a unit test?
66
66
  What edge cases should I test?
67
67
  !What's the weather like today?
68
- !Write me a poem about flowers`}),s.jsxs("div",{className:"flex items-center gap-4 mt-1.5 text-[11px]",style:{color:"var(--text-tertiary)"},children:[s.jsx("span",{children:"One prompt per line"}),s.jsxs("span",{className:"flex items-center gap-1",children:[s.jsx("code",{className:"px-1 rounded",style:{background:"var(--surface-2)"},children:"!"})," prefix = should NOT activate"]}),s.jsxs("span",{children:[x.trim().split(`
69
- `).filter(Boolean).length," prompt",x.trim().split(`
70
- `).filter(Boolean).length!==1?"s":""]})]})]})]}),s.jsx("div",{className:"col-span-2",children:s.jsxs("div",{className:"glass-card h-full",children:[s.jsxs("button",{onClick:()=>y(!S),className:"w-full p-3 flex items-center justify-between text-left",style:{borderBottom:S?"1px solid var(--border-subtle)":void 0},children:[s.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Skill Description"}),s.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:s.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),S&&s.jsx("div",{className:"p-3 animate-fade-in",children:m?s.jsx("div",{className:"text-[12px] leading-relaxed whitespace-pre-wrap",style:{color:"var(--text-secondary)"},children:m}):d?s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"Loading description..."}):s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"Select a skill to see its description"})}),!S&&m&&s.jsx("div",{className:"px-3 pb-3 pt-1",children:s.jsxs("div",{className:"text-[11px] truncate",style:{color:"var(--text-tertiary)"},children:[m.slice(0,100),m.length>100?"...":""]})})]})})]}),s.jsx("button",{onClick:O,disabled:p||!d||!x.trim(),className:"btn btn-primary mb-7",children:p?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Testing..."]}):s.jsxs(s.Fragment,{children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("circle",{cx:"12",cy:"12",r:"6"}),s.jsx("circle",{cx:"12",cy:"12",r:"2"})]})," Run Activation Test"]})}),w&&s.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:w}),M.length>0&&s.jsxs("div",{className:"space-y-5 mb-6",children:[F.length>0&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--red)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),s.jsx("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]}),s.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--red)"},children:["Incorrect (",F.length,")"]}),s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"— These need attention"})]}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:F.map((Q,Y)=>s.jsx(Nm,{result:Q},`incorrect-${Y}`))})]}),Z.length>0&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--green)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"16 10 11 15 8 12"})]}),s.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--green)"},children:["Correct (",Z.length,")"]})]}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:Z.map((Q,Y)=>s.jsx(Nm,{result:Q},`correct-${Y}`))})]})]}),C&&s.jsxs("div",{className:"glass-card p-6 animate-fade-in-scale",style:{borderColor:"var(--border-active)",borderWidth:2},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-4",style:{color:"var(--text-tertiary)"},children:"Summary"}),s.jsxs("div",{className:"grid grid-cols-3 gap-6 mb-5",children:[s.jsx(Gs,{label:"Precision",value:C.precision,description:"Of all activations, how many were correct?",detail:`${C.tp} true / ${C.tp+C.fp} total activations`}),s.jsx(Gs,{label:"Recall",value:C.recall,description:"Of expected activations, how many fired?",detail:`${C.tp} activated / ${C.tp+C.fn} expected`}),s.jsx(Gs,{label:"Reliability",value:C.reliability,description:"Overall correct classification rate",detail:`${C.tp+C.tn} correct / ${C.total} total`})]}),s.jsxs("div",{className:"pt-4",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-3 text-center",style:{color:"var(--text-tertiary)"},children:"Confusion Matrix"}),s.jsxs("div",{className:"grid grid-cols-2 gap-2 max-w-xs mx-auto",children:[s.jsx(ui,{label:"True Positive",abbr:"TP",count:C.tp,bg:"var(--green-muted)",color:"var(--green)",description:"Correctly activated"}),s.jsx(ui,{label:"False Positive",abbr:"FP",count:C.fp,bg:"var(--red-muted)",color:"var(--red)",description:"Wrongly activated"}),s.jsx(ui,{label:"False Negative",abbr:"FN",count:C.fn,bg:"rgba(248,113,113,0.06)",color:"rgba(248,113,113,0.6)",description:"Missed activation"}),s.jsx(ui,{label:"True Negative",abbr:"TN",count:C.tn,bg:"rgba(52,211,153,0.06)",color:"rgba(52,211,153,0.6)",description:"Correctly silent"})]})]})]}),p&&M.length===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Testing activation against skill description..."})]})]})}function Nm({result:i}){const f=Em[i.classification]||Em.FN,d=i.classification==="TP"||i.classification==="TN";return s.jsxs("div",{className:"flex items-start gap-3 p-4 rounded-xl transition-all duration-200",style:{background:f.bg,border:"1px solid transparent"},children:[s.jsx("div",{className:"flex-shrink-0 mt-0.5",children:s.jsx("div",{className:"w-7 h-7 rounded-lg flex items-center justify-center",style:{background:`color-mix(in srgb, ${f.text} 20%, transparent)`},children:d?s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:f.text,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})}):s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:f.text,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"flex items-center gap-2 mb-1",children:s.jsx("span",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:i.prompt})}),s.jsxs("div",{className:"flex items-center gap-3 text-[12px]",children:[s.jsx("span",{className:"pill",style:{background:"rgba(0,0,0,0.1)",color:f.text,fontWeight:700,fontSize:"10px",padding:"1px 6px"},children:i.classification}),s.jsx("span",{style:{color:i.activate?"var(--green)":"var(--text-tertiary)"},children:i.activate?"Activated":"Silent"}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:"·"}),s.jsxs("span",{style:{color:"var(--text-tertiary)"},children:["Expected: ",i.expected==="should_activate"?"activate":"stay silent"]}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:"·"}),s.jsxs("span",{style:{color:"var(--text-tertiary)"},children:[i.confidence," confidence"]})]}),i.reasoning&&s.jsx("div",{className:"text-[11px] mt-1.5",style:{color:"var(--text-tertiary)"},children:i.reasoning})]})]})}function Gs({label:i,value:f,description:d,detail:r}){const m=Math.round(f*100),h=m>=80?"var(--green)":m>=60?"var(--yellow)":"var(--red)";return s.jsxs("div",{className:"text-center",children:[s.jsxs("div",{className:"text-[28px] font-bold tracking-tight",style:{color:h},children:[m,"%"]}),s.jsx("div",{className:"text-[12px] font-medium mt-0.5",style:{color:"var(--text-secondary)"},children:i}),s.jsx("div",{className:"text-[10px] mt-1",style:{color:"var(--text-tertiary)"},children:d}),s.jsx("div",{className:"text-[10px] mt-0.5 font-mono",style:{color:"var(--text-tertiary)"},children:r})]})}function ui({label:i,abbr:f,count:d,bg:r,color:m,description:h}){return s.jsxs("div",{className:"text-center p-3 rounded-lg",style:{background:r},children:[s.jsx("div",{className:"text-[20px] font-bold",style:{color:m},children:d}),s.jsx("div",{className:"text-[11px] font-semibold",style:{color:m},children:f}),s.jsx("div",{className:"text-[9px] mt-0.5",style:{color:"var(--text-tertiary)"},children:h})]})}function s1({active:i}){return s.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:[s.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"}),s.jsx("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),s.jsx("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})}function r1({active:i}){return s.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:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("circle",{cx:"12",cy:"12",r:"6"}),s.jsx("circle",{cx:"12",cy:"12",r:"2"})]})}const f1=[{path:"/",label:"Skills",Icon:s1},{path:"/activation",label:"Activation Test",Icon:r1}];function o1(){const i=ul();return s.jsxs("div",{className:"flex h-screen",children:[s.jsxs("nav",{className:"w-[220px] flex flex-col flex-shrink-0",style:{background:"var(--surface-1)",borderRight:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"px-5 py-5",style:{borderBottom:"1px solid var(--border-subtle)"},children:s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center",style:{background:"var(--accent-muted)"},children:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-[14px] font-semibold",style:{color:"var(--text-primary)",letterSpacing:"-0.01em"},children:"Skill Eval"}),s.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"vskill"})]})]})}),s.jsxs("div",{className:"flex-1 px-3 py-3",children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-2",style:{color:"var(--text-tertiary)"},children:"Navigation"}),f1.map(f=>{const d=i.pathname===f.path;return s.jsxs(Mt,{to:f.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:d?"var(--accent)":"transparent",color:d?"#fff":"var(--text-secondary)"},onMouseEnter:r=>{d||(r.currentTarget.style.background="var(--surface-3)",r.currentTarget.style.color="var(--text-primary)")},onMouseLeave:r=>{d||(r.currentTarget.style.background="transparent",r.currentTarget.style.color="var(--text-secondary)")},children:[s.jsx(f.Icon,{active:d}),f.label]},f.path)})]}),s.jsx("div",{className:"px-5 py-4",style:{borderTop:"1px solid var(--border-subtle)"},children:s.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"localhost:3077"})})]}),s.jsx("main",{className:"flex-1 overflow-auto",style:{background:"var(--surface-0)"},children:s.jsx("div",{className:"animate-fade-in",children:s.jsxs(xp,{children:[s.jsx(Fl,{path:"/",element:s.jsx(e1,{})}),s.jsx(Fl,{path:"/skills/:plugin/:skill",element:s.jsx(t1,{})}),s.jsx(Fl,{path:"/skills/:plugin/:skill/benchmark",element:s.jsx(a1,{})}),s.jsx(Fl,{path:"/skills/:plugin/:skill/compare",element:s.jsx(n1,{})}),s.jsx(Fl,{path:"/skills/:plugin/:skill/history",element:s.jsx(u1,{})}),s.jsx(Fl,{path:"/activation",element:s.jsx(c1,{})})]})},i.pathname)})]})}Sy.createRoot(document.getElementById("root")).render(s.jsx(T.StrictMode,{children:s.jsx(Xp,{children:s.jsx(o1,{})})}));
68
+ !Write me a poem about flowers`}),s.jsxs("div",{className:"flex items-center gap-4 mt-1.5 text-[11px]",style:{color:"var(--text-tertiary)"},children:[s.jsx("span",{children:"One prompt per line"}),s.jsxs("span",{className:"flex items-center gap-1",children:[s.jsx("code",{className:"px-1 rounded",style:{background:"var(--surface-2)"},children:"!"})," prefix = should NOT activate"]}),s.jsxs("span",{children:[g.trim().split(`
69
+ `).filter(Boolean).length," prompt",g.trim().split(`
70
+ `).filter(Boolean).length!==1?"s":""]})]})]})]}),s.jsx("div",{className:"col-span-2",children:s.jsxs("div",{className:"glass-card h-full",children:[s.jsxs("button",{onClick:()=>v(!S),className:"w-full p-3 flex items-center justify-between text-left",style:{borderBottom:S?"1px solid var(--border-subtle)":void 0},children:[s.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-widest",style:{color:"var(--text-tertiary)"},children:"Skill Description"}),s.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:s.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),S&&s.jsx("div",{className:"p-3 animate-fade-in",children:m?s.jsx("div",{className:"text-[12px] leading-relaxed whitespace-pre-wrap",style:{color:"var(--text-secondary)"},children:m}):d?s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"Loading description..."}):s.jsx("div",{className:"text-[12px]",style:{color:"var(--text-tertiary)"},children:"Select a skill to see its description"})}),!S&&m&&s.jsx("div",{className:"px-3 pb-3 pt-1",children:s.jsxs("div",{className:"text-[11px] truncate",style:{color:"var(--text-tertiary)"},children:[m.slice(0,100),m.length>100?"...":""]})})]})})]}),s.jsx("button",{onClick:G,disabled:x||!d||!g.trim(),className:"btn btn-primary mb-7",children:x?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"spinner",style:{borderTopColor:"#fff",borderColor:"rgba(255,255,255,0.2)",width:14,height:14}})," Testing..."]}):s.jsxs(s.Fragment,{children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("circle",{cx:"12",cy:"12",r:"6"}),s.jsx("circle",{cx:"12",cy:"12",r:"2"})]})," Run Activation Test"]})}),w&&s.jsx("div",{className:"mb-5 px-4 py-3 rounded-lg text-[13px]",style:{background:"var(--red-muted)",color:"var(--red)",border:"1px solid rgba(248,113,113,0.2)"},children:w}),O.length>0&&s.jsxs("div",{className:"space-y-5 mb-6",children:[Q.length>0&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--red)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),s.jsx("line",{x1:"9",y1:"9",x2:"15",y2:"15"})]}),s.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--red)"},children:["Incorrect (",Q.length,")"]}),s.jsx("span",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"— These need attention"})]}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:Q.map((k,Y)=>s.jsx(Nm,{result:k},`incorrect-${Y}`))})]}),L.length>0&&s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"var(--green)",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("polyline",{points:"16 10 11 15 8 12"})]}),s.jsxs("span",{className:"text-[12px] font-semibold",style:{color:"var(--green)"},children:["Correct (",L.length,")"]})]}),s.jsx("div",{className:"space-y-1.5 stagger-children",children:L.map((k,Y)=>s.jsx(Nm,{result:k},`correct-${Y}`))})]})]}),R&&s.jsxs("div",{className:"glass-card p-6 animate-fade-in-scale",style:{borderColor:"var(--border-active)",borderWidth:2},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-4",style:{color:"var(--text-tertiary)"},children:"Summary"}),s.jsxs("div",{className:"grid grid-cols-3 gap-6 mb-5",children:[s.jsx(Gs,{label:"Precision",value:R.precision,description:"Of all activations, how many were correct?",detail:`${R.tp} true / ${R.tp+R.fp} total activations`}),s.jsx(Gs,{label:"Recall",value:R.recall,description:"Of expected activations, how many fired?",detail:`${R.tp} activated / ${R.tp+R.fn} expected`}),s.jsx(Gs,{label:"Reliability",value:R.reliability,description:"Overall correct classification rate",detail:`${R.tp+R.tn} correct / ${R.total} total`})]}),s.jsxs("div",{className:"pt-4",style:{borderTop:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest mb-3 text-center",style:{color:"var(--text-tertiary)"},children:"Confusion Matrix"}),s.jsxs("div",{className:"grid grid-cols-2 gap-2 max-w-xs mx-auto",children:[s.jsx(ui,{label:"True Positive",abbr:"TP",count:R.tp,bg:"var(--green-muted)",color:"var(--green)",description:"Correctly activated"}),s.jsx(ui,{label:"False Positive",abbr:"FP",count:R.fp,bg:"var(--red-muted)",color:"var(--red)",description:"Wrongly activated"}),s.jsx(ui,{label:"False Negative",abbr:"FN",count:R.fn,bg:"rgba(248,113,113,0.06)",color:"rgba(248,113,113,0.6)",description:"Missed activation"}),s.jsx(ui,{label:"True Negative",abbr:"TN",count:R.tn,bg:"rgba(52,211,153,0.06)",color:"rgba(52,211,153,0.6)",description:"Correctly silent"})]})]})]}),x&&O.length===0&&s.jsxs("div",{className:"text-center py-16 animate-fade-in",children:[s.jsx("div",{className:"spinner-lg mx-auto mb-4"}),s.jsx("p",{className:"text-[14px]",style:{color:"var(--text-secondary)"},children:"Testing activation against skill description..."})]})]})}function Nm({result:i}){const f=Em[i.classification]||Em.FN,d=i.classification==="TP"||i.classification==="TN";return s.jsxs("div",{className:"flex items-start gap-3 p-4 rounded-xl transition-all duration-200",style:{background:f.bg,border:"1px solid transparent"},children:[s.jsx("div",{className:"flex-shrink-0 mt-0.5",children:s.jsx("div",{className:"w-7 h-7 rounded-lg flex items-center justify-center",style:{background:`color-mix(in srgb, ${f.text} 20%, transparent)`},children:d?s.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:f.text,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})}):s.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:f.text,strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:[s.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),s.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("div",{className:"flex items-center gap-2 mb-1",children:s.jsx("span",{className:"text-[13px] font-medium",style:{color:"var(--text-primary)"},children:i.prompt})}),s.jsxs("div",{className:"flex items-center gap-3 text-[12px]",children:[s.jsx("span",{className:"pill",style:{background:"rgba(0,0,0,0.1)",color:f.text,fontWeight:700,fontSize:"10px",padding:"1px 6px"},children:i.classification}),s.jsx("span",{style:{color:i.activate?"var(--green)":"var(--text-tertiary)"},children:i.activate?"Activated":"Silent"}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:"·"}),s.jsxs("span",{style:{color:"var(--text-tertiary)"},children:["Expected: ",i.expected==="should_activate"?"activate":"stay silent"]}),s.jsx("span",{style:{color:"var(--text-tertiary)"},children:"·"}),s.jsxs("span",{style:{color:"var(--text-tertiary)"},children:[i.confidence," confidence"]})]}),i.reasoning&&s.jsx("div",{className:"text-[11px] mt-1.5",style:{color:"var(--text-tertiary)"},children:i.reasoning})]})]})}function Gs({label:i,value:f,description:d,detail:r}){const m=Math.round(f*100),h=m>=80?"var(--green)":m>=60?"var(--yellow)":"var(--red)";return s.jsxs("div",{className:"text-center",children:[s.jsxs("div",{className:"text-[28px] font-bold tracking-tight",style:{color:h},children:[m,"%"]}),s.jsx("div",{className:"text-[12px] font-medium mt-0.5",style:{color:"var(--text-secondary)"},children:i}),s.jsx("div",{className:"text-[10px] mt-1",style:{color:"var(--text-tertiary)"},children:d}),s.jsx("div",{className:"text-[10px] mt-0.5 font-mono",style:{color:"var(--text-tertiary)"},children:r})]})}function ui({label:i,abbr:f,count:d,bg:r,color:m,description:h}){return s.jsxs("div",{className:"text-center p-3 rounded-lg",style:{background:r},children:[s.jsx("div",{className:"text-[20px] font-bold",style:{color:m},children:d}),s.jsx("div",{className:"text-[11px] font-semibold",style:{color:m},children:f}),s.jsx("div",{className:"text-[9px] mt-0.5",style:{color:"var(--text-tertiary)"},children:h})]})}function s1({active:i}){return s.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:[s.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"}),s.jsx("polyline",{points:"3.27 6.96 12 12.01 20.73 6.96"}),s.jsx("line",{x1:"12",y1:"22.08",x2:"12",y2:"12"})]})}function r1({active:i}){return s.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:[s.jsx("circle",{cx:"12",cy:"12",r:"10"}),s.jsx("circle",{cx:"12",cy:"12",r:"6"}),s.jsx("circle",{cx:"12",cy:"12",r:"2"})]})}const f1=[{path:"/",label:"Skills",Icon:s1},{path:"/activation",label:"Activation Test",Icon:r1}];function o1(){const i=ul();return s.jsxs("div",{className:"flex h-screen",children:[s.jsxs("nav",{className:"w-[220px] flex flex-col flex-shrink-0",style:{background:"var(--surface-1)",borderRight:"1px solid var(--border-subtle)"},children:[s.jsx("div",{className:"px-5 py-5",style:{borderBottom:"1px solid var(--border-subtle)"},children:s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center",style:{background:"var(--accent-muted)"},children:s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12"})})}),s.jsxs("div",{children:[s.jsx("div",{className:"text-[14px] font-semibold",style:{color:"var(--text-primary)",letterSpacing:"-0.01em"},children:"Skill Eval"}),s.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"vskill"})]})]})}),s.jsxs("div",{className:"flex-1 px-3 py-3",children:[s.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-widest px-2 mb-2",style:{color:"var(--text-tertiary)"},children:"Navigation"}),f1.map(f=>{const d=i.pathname===f.path;return s.jsxs(Mt,{to:f.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:d?"var(--accent)":"transparent",color:d?"#fff":"var(--text-secondary)"},onMouseEnter:r=>{d||(r.currentTarget.style.background="var(--surface-3)",r.currentTarget.style.color="var(--text-primary)")},onMouseLeave:r=>{d||(r.currentTarget.style.background="transparent",r.currentTarget.style.color="var(--text-secondary)")},children:[s.jsx(f.Icon,{active:d}),f.label]},f.path)})]}),s.jsx("div",{className:"px-5 py-4",style:{borderTop:"1px solid var(--border-subtle)"},children:s.jsx("div",{className:"text-[11px]",style:{color:"var(--text-tertiary)"},children:"localhost:3077"})})]}),s.jsx("main",{className:"flex-1 overflow-auto",style:{background:"var(--surface-0)"},children:s.jsx("div",{className:"animate-fade-in",children:s.jsxs(gp,{children:[s.jsx(Il,{path:"/",element:s.jsx(e1,{})}),s.jsx(Il,{path:"/skills/:plugin/:skill",element:s.jsx(t1,{})}),s.jsx(Il,{path:"/skills/:plugin/:skill/benchmark",element:s.jsx(a1,{})}),s.jsx(Il,{path:"/skills/:plugin/:skill/compare",element:s.jsx(n1,{})}),s.jsx(Il,{path:"/skills/:plugin/:skill/history",element:s.jsx(u1,{})}),s.jsx(Il,{path:"/activation",element:s.jsx(c1,{})})]})},i.pathname)})]})}Sy.createRoot(document.getElementById("root")).render(s.jsx(T.StrictMode,{children:s.jsx(Xp,{children:s.jsx(o1,{})})}));