@futurx/openclaw-operator-ui 0.1.7 โ 0.1.9
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.
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
var mp=Object.defineProperty;var hp=(u,c,f)=>c in u?mp(u,c,{enumerable:!0,configurable:!0,writable:!0,value:f}):u[c]=f;var Ut=(u,c,f)=>hp(u,typeof c!="symbol"?c+"":c,f);(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))r(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const v of m.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&r(v)}).observe(document,{childList:!0,subtree:!0});function f(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function r(d){if(d.ep)return;d.ep=!0;const m=f(d);fetch(d.href,m)}})();var sr={exports:{}},Jn={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Om;function xp(){if(Om)return Jn;Om=1;var u=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function f(r,d,m){var v=null;if(m!==void 0&&(v=""+m),d.key!==void 0&&(v=""+d.key),"key"in d){m={};for(var g in d)g!=="key"&&(m[g]=d[g])}else m=d;return d=m.ref,{$$typeof:u,type:r,key:v,ref:d!==void 0?d:null,props:m}}return Jn.Fragment=c,Jn.jsx=f,Jn.jsxs=f,Jn}var _m;function pp(){return _m||(_m=1,sr.exports=xp()),sr.exports}var s=pp(),ir={exports:{}},ie={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Rm;function yp(){if(Rm)return ie;Rm=1;var u=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),A=Symbol.iterator;function R(w){return w===null||typeof w!="object"?null:(w=A&&w[A]||w["@@iterator"],typeof w=="function"?w:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,C={};function y(w,Q,F){this.props=w,this.context=Q,this.refs=C,this.updater=F||E}y.prototype.isReactComponent={},y.prototype.setState=function(w,Q){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,Q,"setState")},y.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function _(){}_.prototype=y.prototype;function M(w,Q,F){this.props=w,this.context=Q,this.refs=C,this.updater=F||E}var L=M.prototype=new _;L.constructor=M,z(L,y.prototype),L.isPureReactComponent=!0;var J=Array.isArray;function Z(){}var V={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function K(w,Q,F){var P=F.ref;return{$$typeof:u,type:w,key:Q,ref:P!==void 0?P:null,props:F}}function W(w,Q){return K(w.type,Q,w.props)}function te(w){return typeof w=="object"&&w!==null&&w.$$typeof===u}function Re(w){var Q={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(F){return Q[F]})}var Ve=/\/+/g;function We(w,Q){return typeof w=="object"&&w!==null&&w.key!=null?Re(""+w.key):Q.toString(36)}function De(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(Z,Z):(w.status="pending",w.then(function(Q){w.status==="pending"&&(w.status="fulfilled",w.value=Q)},function(Q){w.status==="pending"&&(w.status="rejected",w.reason=Q)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function Y(w,Q,F,P,ue){var oe=typeof w;(oe==="undefined"||oe==="boolean")&&(w=null);var ve=!1;if(w===null)ve=!0;else switch(oe){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(w.$$typeof){case u:case c:ve=!0;break;case S:return ve=w._init,Y(ve(w._payload),Q,F,P,ue)}}if(ve)return ue=ue(w),ve=P===""?"."+We(w,0):P,J(ue)?(F="",ve!=null&&(F=ve.replace(Ve,"$&/")+"/"),Y(ue,Q,F,"",function(en){return en})):ue!=null&&(te(ue)&&(ue=W(ue,F+(ue.key==null||w&&w.key===ue.key?"":(""+ue.key).replace(Ve,"$&/")+"/")+ve)),Q.push(ue)),1;ve=0;var nt=P===""?".":P+":";if(J(w))for(var qe=0;qe<w.length;qe++)P=w[qe],oe=nt+We(P,qe),ve+=Y(P,Q,F,oe,ue);else if(qe=R(w),typeof qe=="function")for(w=qe.call(w),qe=0;!(P=w.next()).done;)P=P.value,oe=nt+We(P,qe++),ve+=Y(P,Q,F,oe,ue);else if(oe==="object"){if(typeof w.then=="function")return Y(De(w),Q,F,P,ue);throw Q=String(w),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return ve}function $(w,Q,F){if(w==null)return w;var P=[],ue=0;return Y(w,P,"","",function(oe){return Q.call(F,oe,ue++)}),P}function se(w){if(w._status===-1){var Q=w._result;Q=Q(),Q.then(function(F){(w._status===0||w._status===-1)&&(w._status=1,w._result=F)},function(F){(w._status===0||w._status===-1)&&(w._status=2,w._result=F)}),w._status===-1&&(w._status=0,w._result=Q)}if(w._status===1)return w._result.default;throw w._result}var Ne=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},Ce={map:$,forEach:function(w,Q,F){$(w,function(){Q.apply(this,arguments)},F)},count:function(w){var Q=0;return $(w,function(){Q++}),Q},toArray:function(w){return $(w,function(Q){return Q})||[]},only:function(w){if(!te(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return ie.Activity=j,ie.Children=Ce,ie.Component=y,ie.Fragment=f,ie.Profiler=d,ie.PureComponent=M,ie.StrictMode=r,ie.Suspense=h,ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,ie.__COMPILER_RUNTIME={__proto__:null,c:function(w){return V.H.useMemoCache(w)}},ie.cache=function(w){return function(){return w.apply(null,arguments)}},ie.cacheSignal=function(){return null},ie.cloneElement=function(w,Q,F){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var P=z({},w.props),ue=w.key;if(Q!=null)for(oe in Q.key!==void 0&&(ue=""+Q.key),Q)!B.call(Q,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&Q.ref===void 0||(P[oe]=Q[oe]);var oe=arguments.length-2;if(oe===1)P.children=F;else if(1<oe){for(var ve=Array(oe),nt=0;nt<oe;nt++)ve[nt]=arguments[nt+2];P.children=ve}return K(w.type,ue,P)},ie.createContext=function(w){return w={$$typeof:v,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:m,_context:w},w},ie.createElement=function(w,Q,F){var P,ue={},oe=null;if(Q!=null)for(P in Q.key!==void 0&&(oe=""+Q.key),Q)B.call(Q,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(ue[P]=Q[P]);var ve=arguments.length-2;if(ve===1)ue.children=F;else if(1<ve){for(var nt=Array(ve),qe=0;qe<ve;qe++)nt[qe]=arguments[qe+2];ue.children=nt}if(w&&w.defaultProps)for(P in ve=w.defaultProps,ve)ue[P]===void 0&&(ue[P]=ve[P]);return K(w,oe,ue)},ie.createRef=function(){return{current:null}},ie.forwardRef=function(w){return{$$typeof:g,render:w}},ie.isValidElement=te,ie.lazy=function(w){return{$$typeof:S,_payload:{_status:-1,_result:w},_init:se}},ie.memo=function(w,Q){return{$$typeof:x,type:w,compare:Q===void 0?null:Q}},ie.startTransition=function(w){var Q=V.T,F={};V.T=F;try{var P=w(),ue=V.S;ue!==null&&ue(F,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(Z,Ne)}catch(oe){Ne(oe)}finally{Q!==null&&F.types!==null&&(Q.types=F.types),V.T=Q}},ie.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},ie.use=function(w){return V.H.use(w)},ie.useActionState=function(w,Q,F){return V.H.useActionState(w,Q,F)},ie.useCallback=function(w,Q){return V.H.useCallback(w,Q)},ie.useContext=function(w){return V.H.useContext(w)},ie.useDebugValue=function(){},ie.useDeferredValue=function(w,Q){return V.H.useDeferredValue(w,Q)},ie.useEffect=function(w,Q){return V.H.useEffect(w,Q)},ie.useEffectEvent=function(w){return V.H.useEffectEvent(w)},ie.useId=function(){return V.H.useId()},ie.useImperativeHandle=function(w,Q,F){return V.H.useImperativeHandle(w,Q,F)},ie.useInsertionEffect=function(w,Q){return V.H.useInsertionEffect(w,Q)},ie.useLayoutEffect=function(w,Q){return V.H.useLayoutEffect(w,Q)},ie.useMemo=function(w,Q){return V.H.useMemo(w,Q)},ie.useOptimistic=function(w,Q){return V.H.useOptimistic(w,Q)},ie.useReducer=function(w,Q,F){return V.H.useReducer(w,Q,F)},ie.useRef=function(w){return V.H.useRef(w)},ie.useState=function(w){return V.H.useState(w)},ie.useSyncExternalStore=function(w,Q,F){return V.H.useSyncExternalStore(w,Q,F)},ie.useTransition=function(){return V.H.useTransition()},ie.version="19.2.4",ie}var Dm;function vr(){return Dm||(Dm=1,ir.exports=yp()),ir.exports}var b=vr(),ur={exports:{}},$n={},cr={exports:{}},rr={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Um;function gp(){return Um||(Um=1,(function(u){function c(Y,$){var se=Y.length;Y.push($);e:for(;0<se;){var Ne=se-1>>>1,Ce=Y[Ne];if(0<d(Ce,$))Y[Ne]=$,Y[se]=Ce,se=Ne;else break e}}function f(Y){return Y.length===0?null:Y[0]}function r(Y){if(Y.length===0)return null;var $=Y[0],se=Y.pop();if(se!==$){Y[0]=se;e:for(var Ne=0,Ce=Y.length,w=Ce>>>1;Ne<w;){var Q=2*(Ne+1)-1,F=Y[Q],P=Q+1,ue=Y[P];if(0>d(F,se))P<Ce&&0>d(ue,F)?(Y[Ne]=ue,Y[P]=se,Ne=P):(Y[Ne]=F,Y[Q]=se,Ne=Q);else if(P<Ce&&0>d(ue,se))Y[Ne]=ue,Y[P]=se,Ne=P;else break e}}return $}function d(Y,$){var se=Y.sortIndex-$.sortIndex;return se!==0?se:Y.id-$.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;u.unstable_now=function(){return m.now()}}else{var v=Date,g=v.now();u.unstable_now=function(){return v.now()-g}}var h=[],x=[],S=1,j=null,A=3,R=!1,E=!1,z=!1,C=!1,y=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function L(Y){for(var $=f(x);$!==null;){if($.callback===null)r(x);else if($.startTime<=Y)r(x),$.sortIndex=$.expirationTime,c(h,$);else break;$=f(x)}}function J(Y){if(z=!1,L(Y),!E)if(f(h)!==null)E=!0,Z||(Z=!0,Re());else{var $=f(x);$!==null&&De(J,$.startTime-Y)}}var Z=!1,V=-1,B=5,K=-1;function W(){return C?!0:!(u.unstable_now()-K<B)}function te(){if(C=!1,Z){var Y=u.unstable_now();K=Y;var $=!0;try{e:{E=!1,z&&(z=!1,_(V),V=-1),R=!0;var se=A;try{t:{for(L(Y),j=f(h);j!==null&&!(j.expirationTime>Y&&W());){var Ne=j.callback;if(typeof Ne=="function"){j.callback=null,A=j.priorityLevel;var Ce=Ne(j.expirationTime<=Y);if(Y=u.unstable_now(),typeof Ce=="function"){j.callback=Ce,L(Y),$=!0;break t}j===f(h)&&r(h),L(Y)}else r(h);j=f(h)}if(j!==null)$=!0;else{var w=f(x);w!==null&&De(J,w.startTime-Y),$=!1}}break e}finally{j=null,A=se,R=!1}$=void 0}}finally{$?Re():Z=!1}}}var Re;if(typeof M=="function")Re=function(){M(te)};else if(typeof MessageChannel<"u"){var Ve=new MessageChannel,We=Ve.port2;Ve.port1.onmessage=te,Re=function(){We.postMessage(null)}}else Re=function(){y(te,0)};function De(Y,$){V=y(function(){Y(u.unstable_now())},$)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(Y){Y.callback=null},u.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<Y?Math.floor(1e3/Y):5},u.unstable_getCurrentPriorityLevel=function(){return A},u.unstable_next=function(Y){switch(A){case 1:case 2:case 3:var $=3;break;default:$=A}var se=A;A=$;try{return Y()}finally{A=se}},u.unstable_requestPaint=function(){C=!0},u.unstable_runWithPriority=function(Y,$){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var se=A;A=Y;try{return $()}finally{A=se}},u.unstable_scheduleCallback=function(Y,$,se){var Ne=u.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?Ne+se:Ne):se=Ne,Y){case 1:var Ce=-1;break;case 2:Ce=250;break;case 5:Ce=1073741823;break;case 4:Ce=1e4;break;default:Ce=5e3}return Ce=se+Ce,Y={id:S++,callback:$,priorityLevel:Y,startTime:se,expirationTime:Ce,sortIndex:-1},se>Ne?(Y.sortIndex=se,c(x,Y),f(h)===null&&Y===f(x)&&(z?(_(V),V=-1):z=!0,De(J,se-Ne))):(Y.sortIndex=Ce,c(h,Y),E||R||(E=!0,Z||(Z=!0,Re()))),Y},u.unstable_shouldYield=W,u.unstable_wrapCallback=function(Y){var $=A;return function(){var se=A;A=$;try{return Y.apply(this,arguments)}finally{A=se}}}})(rr)),rr}var Hm;function vp(){return Hm||(Hm=1,cr.exports=gp()),cr.exports}var or={exports:{}},at={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var qm;function bp(){if(qm)return at;qm=1;var u=vr();function c(h){var x="https://react.dev/errors/"+h;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)x+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+h+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var r={d:{f,r:function(){throw Error(c(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(h,x,S){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:j==null?null:""+j,children:h,containerInfo:x,implementation:S}}var v=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(h,x){if(h==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return at.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,at.createPortal=function(h,x){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(c(299));return m(h,x,null,S)},at.flushSync=function(h){var x=v.T,S=r.p;try{if(v.T=null,r.p=2,h)return h()}finally{v.T=x,r.p=S,r.d.f()}},at.preconnect=function(h,x){typeof h=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,r.d.C(h,x))},at.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},at.preinit=function(h,x){if(typeof h=="string"&&x&&typeof x.as=="string"){var S=x.as,j=g(S,x.crossOrigin),A=typeof x.integrity=="string"?x.integrity:void 0,R=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;S==="style"?r.d.S(h,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:j,integrity:A,fetchPriority:R}):S==="script"&&r.d.X(h,{crossOrigin:j,integrity:A,fetchPriority:R,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},at.preinitModule=function(h,x){if(typeof h=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var S=g(x.as,x.crossOrigin);r.d.M(h,{crossOrigin:S,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&r.d.M(h)},at.preload=function(h,x){if(typeof h=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var S=x.as,j=g(S,x.crossOrigin);r.d.L(h,S,{crossOrigin:j,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},at.preloadModule=function(h,x){if(typeof h=="string")if(x){var S=g(x.as,x.crossOrigin);r.d.m(h,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:S,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else r.d.m(h)},at.requestFormReset=function(h){r.d.r(h)},at.unstable_batchedUpdates=function(h,x){return h(x)},at.useFormState=function(h,x,S){return v.H.useFormState(h,x,S)},at.useFormStatus=function(){return v.H.useHostTransitionStatus()},at.version="19.2.4",at}var Lm;function jp(){if(Lm)return or.exports;Lm=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(c){console.error(c)}}return u(),or.exports=bp(),or.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Bm;function Np(){if(Bm)return $n;Bm=1;var u=vp(),c=vr(),f=jp();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function v(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(m(e)!==e)throw Error(r(188))}function x(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(r(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var i=n.alternate;if(i===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===a)return h(n),e;if(i===l)return h(n),t;i=i.sibling}throw Error(r(188))}if(a.return!==l.return)a=n,l=i;else{for(var o=!1,p=n.child;p;){if(p===a){o=!0,a=n,l=i;break}if(p===l){o=!0,l=n,a=i;break}p=p.sibling}if(!o){for(p=i.child;p;){if(p===a){o=!0,a=i,l=n;break}if(p===l){o=!0,l=i,a=n;break}p=p.sibling}if(!o)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var j=Object.assign,A=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),M=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function Re(e){return e===null||typeof e!="object"?null:(e=te&&e[te]||e["@@iterator"],typeof e=="function"?e:null)}var Ve=Symbol.for("react.client.reference");function We(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case y:return"Profiler";case C:return"StrictMode";case J:return"Suspense";case Z:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case M:return e.displayName||"Context";case _:return(e._context.displayName||"Context")+".Consumer";case L: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:We(e.type)||"Memo";case B:t=e._payload,e=e._init;try{return We(e(t))}catch{}}return null}var De=Array.isArray,Y=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},Ne=[],Ce=-1;function w(e){return{current:e}}function Q(e){0>Ce||(e.current=Ne[Ce],Ne[Ce]=null,Ce--)}function F(e,t){Ce++,Ne[Ce]=e.current,e.current=t}var P=w(null),ue=w(null),oe=w(null),ve=w(null);function nt(e,t){switch(F(oe,t),F(ue,e),F(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?em(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=em(t),e=tm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(P),F(P,e)}function qe(){Q(P),Q(ue),Q(oe)}function en(e){e.memoizedState!==null&&F(ve,e);var t=P.current,a=tm(t,e.type);t!==a&&(F(ue,e),F(P,a))}function rs(e){ue.current===e&&(Q(P),Q(ue)),ve.current===e&&(Q(ve),Qn._currentValue=se)}var Yi,wr;function Xa(e){if(Yi===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Yi=t&&t[1]||"",wr=-1<a.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Yi+e+wr}var Gi=!1;function Xi(e,t){if(!e||Gi)return"";Gi=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(q){var H=q}Reflect.construct(e,[],X)}else{try{X.call()}catch(q){H=q}e.call(X.prototype)}}else{try{throw Error()}catch(q){H=q}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(q){if(q&&H&&typeof q.stack=="string")return[q.stack,H.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),o=i[0],p=i[1];if(o&&p){var N=o.split(`
|
|
44
|
+
`),U=p.split(`
|
|
45
|
+
`);for(n=l=0;l<N.length&&!N[l].includes("DetermineComponentFrameRoot");)l++;for(;n<U.length&&!U[n].includes("DetermineComponentFrameRoot");)n++;if(l===N.length||n===U.length)for(l=N.length-1,n=U.length-1;1<=l&&0<=n&&N[l]!==U[n];)n--;for(;1<=l&&0<=n;l--,n--)if(N[l]!==U[n]){if(l!==1||n!==1)do if(l--,n--,0>n||N[l]!==U[n]){var k=`
|
|
46
|
+
`+N[l].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=l&&0<=n);break}}}finally{Gi=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Xa(a):""}function Qh(e,t){switch(e.tag){case 26:case 27:case 5:return Xa(e.type);case 16:return Xa("Lazy");case 13:return e.child!==t&&t!==null?Xa("Suspense Fallback"):Xa("Suspense");case 19:return Xa("SuspenseList");case 0:case 15:return Xi(e.type,!1);case 11:return Xi(e.type.render,!1);case 1:return Xi(e.type,!0);case 31:return Xa("Activity");default:return""}}function Mr(e){try{var t="",a=null;do t+=Qh(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var Qi=Object.prototype.hasOwnProperty,Vi=u.unstable_scheduleCallback,Zi=u.unstable_cancelCallback,Vh=u.unstable_shouldYield,Zh=u.unstable_requestPaint,ht=u.unstable_now,Kh=u.unstable_getCurrentPriorityLevel,zr=u.unstable_ImmediatePriority,Or=u.unstable_UserBlockingPriority,os=u.unstable_NormalPriority,Jh=u.unstable_LowPriority,_r=u.unstable_IdlePriority,$h=u.log,Wh=u.unstable_setDisableYieldValue,tn=null,xt=null;function pa(e){if(typeof $h=="function"&&Wh(e),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(tn,e)}catch{}}var pt=Math.clz32?Math.clz32:Ph,Fh=Math.log,Ih=Math.LN2;function Ph(e){return e>>>=0,e===0?32:31-(Fh(e)/Ih|0)|0}var fs=256,ds=262144,ms=4194304;function Qa(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 hs(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var p=l&134217727;return p!==0?(l=p&~i,l!==0?n=Qa(l):(o&=p,o!==0?n=Qa(o):a||(a=p&~e,a!==0&&(n=Qa(a))))):(p=l&~i,p!==0?n=Qa(p):o!==0?n=Qa(o):a||(a=l&~e,a!==0&&(n=Qa(a)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:n}function an(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function e0(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 Rr(){var e=ms;return ms<<=1,(ms&62914560)===0&&(ms=4194304),e}function Ki(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ln(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function t0(e,t,a,l,n,i){var o=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var p=e.entanglements,N=e.expirationTimes,U=e.hiddenUpdates;for(a=o&~a;0<a;){var k=31-pt(a),X=1<<k;p[k]=0,N[k]=-1;var H=U[k];if(H!==null)for(U[k]=null,k=0;k<H.length;k++){var q=H[k];q!==null&&(q.lane&=-536870913)}a&=~X}l!==0&&Dr(e,l,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function Dr(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-pt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Ur(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-pt(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function Hr(e,t){var a=t&-t;return a=(a&42)!==0?1:Ji(a),(a&(e.suspendedLanes|t))!==0?0:a}function Ji(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 $i(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qr(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:Em(e.type))}function Lr(e,t){var a=$.p;try{return $.p=e,t()}finally{$.p=a}}var ya=Math.random().toString(36).slice(2),Fe="__reactFiber$"+ya,ut="__reactProps$"+ya,ol="__reactContainer$"+ya,Wi="__reactEvents$"+ya,a0="__reactListeners$"+ya,l0="__reactHandles$"+ya,Br="__reactResources$"+ya,nn="__reactMarker$"+ya;function Fi(e){delete e[Fe],delete e[ut],delete e[Wi],delete e[a0],delete e[l0]}function fl(e){var t=e[Fe];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ol]||a[Fe]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=cm(e);e!==null;){if(a=e[Fe])return a;e=cm(e)}return t}e=a,a=e.parentNode}return null}function dl(e){if(e=e[Fe]||e[ol]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function sn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function ml(e){var t=e[Br];return t||(t=e[Br]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[nn]=!0}var kr=new Set,Yr={};function Va(e,t){hl(e,t),hl(e+"Capture",t)}function hl(e,t){for(Yr[e]=t,e=0;e<t.length;e++)kr.add(t[e])}var n0=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]*$"),Gr={},Xr={};function s0(e){return Qi.call(Xr,e)?!0:Qi.call(Gr,e)?!1:n0.test(e)?Xr[e]=!0:(Gr[e]=!0,!1)}function xs(e,t,a){if(s0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ps(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Wt(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function At(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function i0(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(o){a=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ii(e){if(!e._valueTracker){var t=Qr(e)?"checked":"value";e._valueTracker=i0(e,t,""+e[t])}}function Vr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Qr(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function ys(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 u0=/[\n"\\]/g;function Ct(e){return e.replace(u0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Pi(e,t,a,l,n,i,o,p){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+At(t)):e.value!==""+At(t)&&(e.value=""+At(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?eu(e,o,At(t)):a!=null?eu(e,o,At(a)):l!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+At(p):e.removeAttribute("name")}function Zr(e,t,a,l,n,i,o,p){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Ii(e);return}a=a!=null?""+At(a):"",t=t!=null?""+At(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=p?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Ii(e)}function eu(e,t,a){t==="number"&&ys(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function xl(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+At(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Kr(e,t,a){if(t!=null&&(t=""+At(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+At(a):""}function Jr(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(r(92));if(De(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=At(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Ii(e)}function pl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var c0=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 $r(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||c0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Wr(e,t,a){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&$r(e,n,l)}else for(var i in t)t.hasOwnProperty(i)&&$r(e,i,t[i])}function tu(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 r0=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"]]),o0=/^[\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 gs(e){return o0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ft(){}var au=null;function lu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yl=null,gl=null;function Fr(e){var t=dl(e);if(t&&(e=t.stateNode)){var a=e[ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(Pi(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ct(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[ut]||null;if(!n)throw Error(r(90));Pi(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Vr(l)}break e;case"textarea":Kr(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&xl(e,!!a.multiple,t,!1)}}}var nu=!1;function Ir(e,t,a){if(nu)return e(t,a);nu=!0;try{var l=e(t);return l}finally{if(nu=!1,(yl!==null||gl!==null)&&(si(),yl&&(t=yl,e=gl,gl=yl=null,Fr(t),e)))for(t=0;t<e.length;t++)Fr(e[t])}}function un(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ut]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,t,typeof a));return a}var It=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),su=!1;if(It)try{var cn={};Object.defineProperty(cn,"passive",{get:function(){su=!0}}),window.addEventListener("test",cn,cn),window.removeEventListener("test",cn,cn)}catch{su=!1}var ga=null,iu=null,vs=null;function Pr(){if(vs)return vs;var e,t=iu,a=t.length,l,n="value"in ga?ga.value:ga.textContent,i=n.length;for(e=0;e<a&&t[e]===n[e];e++);var o=a-e;for(l=1;l<=o&&t[a-l]===n[i-l];l++);return vs=n.slice(e,1<l?1-l:void 0)}function bs(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 js(){return!0}function eo(){return!1}function ct(e){function t(a,l,n,i,o){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(i):i[p]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?js:eo,this.isPropagationStopped=eo,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=js)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=js)},persist:function(){},isPersistent:js}),t}var Za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ns=ct(Za),rn=j({},Za,{view:0,detail:0}),f0=ct(rn),uu,cu,on,Ss=j({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ou,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!==on&&(on&&e.type==="mousemove"?(uu=e.screenX-on.screenX,cu=e.screenY-on.screenY):cu=uu=0,on=e),uu)},movementY:function(e){return"movementY"in e?e.movementY:cu}}),to=ct(Ss),d0=j({},Ss,{dataTransfer:0}),m0=ct(d0),h0=j({},rn,{relatedTarget:0}),ru=ct(h0),x0=j({},Za,{animationName:0,elapsedTime:0,pseudoElement:0}),p0=ct(x0),y0=j({},Za,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),g0=ct(y0),v0=j({},Za,{data:0}),ao=ct(v0),b0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},j0={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"},N0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function S0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=N0[e])?!!t[e]:!1}function ou(){return S0}var E0=j({},rn,{key:function(e){if(e.key){var t=b0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?j0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ou,charCode:function(e){return e.type==="keypress"?bs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),A0=ct(E0),C0=j({},Ss,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lo=ct(C0),T0=j({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ou}),w0=ct(T0),M0=j({},Za,{propertyName:0,elapsedTime:0,pseudoElement:0}),z0=ct(M0),O0=j({},Ss,{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}),_0=ct(O0),R0=j({},Za,{newState:0,oldState:0}),D0=ct(R0),U0=[9,13,27,32],fu=It&&"CompositionEvent"in window,fn=null;It&&"documentMode"in document&&(fn=document.documentMode);var H0=It&&"TextEvent"in window&&!fn,no=It&&(!fu||fn&&8<fn&&11>=fn),so=" ",io=!1;function uo(e,t){switch(e){case"keyup":return U0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function co(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vl=!1;function q0(e,t){switch(e){case"compositionend":return co(t);case"keypress":return t.which!==32?null:(io=!0,so);case"textInput":return e=t.data,e===so&&io?null:e;default:return null}}function L0(e,t){if(vl)return e==="compositionend"||!fu&&uo(e,t)?(e=Pr(),vs=iu=ga=null,vl=!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 no&&t.locale!=="ko"?null:t.data;default:return null}}var B0={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 ro(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!B0[e.type]:t==="textarea"}function oo(e,t,a,l){yl?gl?gl.push(l):gl=[l]:yl=l,t=di(t,"onChange"),0<t.length&&(a=new Ns("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var dn=null,mn=null;function k0(e){Jd(e,0)}function Es(e){var t=sn(e);if(Vr(t))return e}function fo(e,t){if(e==="change")return t}var mo=!1;if(It){var du;if(It){var mu="oninput"in document;if(!mu){var ho=document.createElement("div");ho.setAttribute("oninput","return;"),mu=typeof ho.oninput=="function"}du=mu}else du=!1;mo=du&&(!document.documentMode||9<document.documentMode)}function xo(){dn&&(dn.detachEvent("onpropertychange",po),mn=dn=null)}function po(e){if(e.propertyName==="value"&&Es(mn)){var t=[];oo(t,mn,e,lu(e)),Ir(k0,t)}}function Y0(e,t,a){e==="focusin"?(xo(),dn=t,mn=a,dn.attachEvent("onpropertychange",po)):e==="focusout"&&xo()}function G0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Es(mn)}function X0(e,t){if(e==="click")return Es(t)}function Q0(e,t){if(e==="input"||e==="change")return Es(t)}function V0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yt=typeof Object.is=="function"?Object.is:V0;function hn(e,t){if(yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!Qi.call(t,n)||!yt(e[n],t[n]))return!1}return!0}function yo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function go(e,t){var a=yo(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=yo(a)}}function vo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ys(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ys(e.document)}return t}function hu(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 Z0=It&&"documentMode"in document&&11>=document.documentMode,bl=null,xu=null,xn=null,pu=!1;function jo(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;pu||bl==null||bl!==ys(l)||(l=bl,"selectionStart"in l&&hu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),xn&&hn(xn,l)||(xn=l,l=di(xu,"onSelect"),0<l.length&&(t=new Ns("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=bl)))}function Ka(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var jl={animationend:Ka("Animation","AnimationEnd"),animationiteration:Ka("Animation","AnimationIteration"),animationstart:Ka("Animation","AnimationStart"),transitionrun:Ka("Transition","TransitionRun"),transitionstart:Ka("Transition","TransitionStart"),transitioncancel:Ka("Transition","TransitionCancel"),transitionend:Ka("Transition","TransitionEnd")},yu={},No={};It&&(No=document.createElement("div").style,"AnimationEvent"in window||(delete jl.animationend.animation,delete jl.animationiteration.animation,delete jl.animationstart.animation),"TransitionEvent"in window||delete jl.transitionend.transition);function Ja(e){if(yu[e])return yu[e];if(!jl[e])return e;var t=jl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in No)return yu[e]=t[a];return e}var So=Ja("animationend"),Eo=Ja("animationiteration"),Ao=Ja("animationstart"),K0=Ja("transitionrun"),J0=Ja("transitionstart"),$0=Ja("transitioncancel"),Co=Ja("transitionend"),To=new Map,gu="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(" ");gu.push("scrollEnd");function qt(e,t){To.set(e,t),Va(t,[e])}var As=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)},Tt=[],Nl=0,vu=0;function Cs(){for(var e=Nl,t=vu=Nl=0;t<e;){var a=Tt[t];Tt[t++]=null;var l=Tt[t];Tt[t++]=null;var n=Tt[t];Tt[t++]=null;var i=Tt[t];if(Tt[t++]=null,l!==null&&n!==null){var o=l.pending;o===null?n.next=n:(n.next=o.next,o.next=n),l.pending=n}i!==0&&wo(a,n,i)}}function Ts(e,t,a,l){Tt[Nl++]=e,Tt[Nl++]=t,Tt[Nl++]=a,Tt[Nl++]=l,vu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function bu(e,t,a,l){return Ts(e,t,a,l),ws(e)}function $a(e,t){return Ts(e,null,null,t),ws(e)}function wo(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,i=e.return;i!==null;)i.childLanes|=a,l=i.alternate,l!==null&&(l.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-pt(a),e=i.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),i):null}function ws(e){if(50<qn)throw qn=0,Mc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Sl={};function W0(e,t,a,l){this.tag=e,this.key=a,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gt(e,t,a,l){return new W0(e,t,a,l)}function ju(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pt(e,t){var a=e.alternate;return a===null?(a=gt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Mo(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ms(e,t,a,l,n,i){var o=0;if(l=e,typeof e=="function")ju(e)&&(o=1);else if(typeof e=="string")o=tp(e,a,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case K:return e=gt(31,a,t,n),e.elementType=K,e.lanes=i,e;case z:return Wa(a.children,n,i,t);case C:o=8,n|=24;break;case y:return e=gt(12,a,t,n|2),e.elementType=y,e.lanes=i,e;case J:return e=gt(13,a,t,n),e.elementType=J,e.lanes=i,e;case Z:return e=gt(19,a,t,n),e.elementType=Z,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:o=10;break e;case _:o=9;break e;case L:o=11;break e;case V:o=14;break e;case B:o=16,l=null;break e}o=29,a=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=gt(o,a,t,n),t.elementType=e,t.type=l,t.lanes=i,t}function Wa(e,t,a,l){return e=gt(7,e,l,t),e.lanes=a,e}function Nu(e,t,a){return e=gt(6,e,null,t),e.lanes=a,e}function zo(e){var t=gt(18,null,null,0);return t.stateNode=e,t}function Su(e,t,a){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Oo=new WeakMap;function wt(e,t){if(typeof e=="object"&&e!==null){var a=Oo.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Mr(t)},Oo.set(e,t),t)}return{value:e,source:t,stack:Mr(t)}}var El=[],Al=0,zs=null,pn=0,Mt=[],zt=0,va=null,Yt=1,Gt="";function ea(e,t){El[Al++]=pn,El[Al++]=zs,zs=e,pn=t}function _o(e,t,a){Mt[zt++]=Yt,Mt[zt++]=Gt,Mt[zt++]=va,va=e;var l=Yt;e=Gt;var n=32-pt(l)-1;l&=~(1<<n),a+=1;var i=32-pt(t)+n;if(30<i){var o=n-n%5;i=(l&(1<<o)-1).toString(32),l>>=o,n-=o,Yt=1<<32-pt(t)+n|a<<n|l,Gt=i+e}else Yt=1<<i|a<<n|l,Gt=e}function Eu(e){e.return!==null&&(ea(e,1),_o(e,1,0))}function Au(e){for(;e===zs;)zs=El[--Al],El[Al]=null,pn=El[--Al],El[Al]=null;for(;e===va;)va=Mt[--zt],Mt[zt]=null,Gt=Mt[--zt],Mt[zt]=null,Yt=Mt[--zt],Mt[zt]=null}function Ro(e,t){Mt[zt++]=Yt,Mt[zt++]=Gt,Mt[zt++]=va,Yt=t.id,Gt=t.overflow,va=e}var Ie=null,Me=null,xe=!1,ba=null,Ot=!1,Cu=Error(r(519));function ja(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw yn(wt(t,e)),Cu}function Do(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[Fe]=e,t[ut]=l,a){case"dialog":de("cancel",t),de("close",t);break;case"iframe":case"object":case"embed":de("load",t);break;case"video":case"audio":for(a=0;a<Bn.length;a++)de(Bn[a],t);break;case"source":de("error",t);break;case"img":case"image":case"link":de("error",t),de("load",t);break;case"details":de("toggle",t);break;case"input":de("invalid",t),Zr(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":de("invalid",t);break;case"textarea":de("invalid",t),Jr(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Id(t.textContent,a)?(l.popover!=null&&(de("beforetoggle",t),de("toggle",t)),l.onScroll!=null&&de("scroll",t),l.onScrollEnd!=null&&de("scrollend",t),l.onClick!=null&&(t.onclick=Ft),t=!0):t=!1,t||ja(e,!0)}function Uo(e){for(Ie=e.return;Ie;)switch(Ie.tag){case 5:case 31:case 13:Ot=!1;return;case 27:case 3:Ot=!0;return;default:Ie=Ie.return}}function Cl(e){if(e!==Ie)return!1;if(!xe)return Uo(e),xe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Qc(e.type,e.memoizedProps)),a=!a),a&&Me&&ja(e),Uo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Me=um(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Me=um(e)}else t===27?(t=Me,Ua(e.type)?(e=$c,$c=null,Me=e):Me=t):Me=Ie?Rt(e.stateNode.nextSibling):null;return!0}function Fa(){Me=Ie=null,xe=!1}function Tu(){var e=ba;return e!==null&&(dt===null?dt=e:dt.push.apply(dt,e),ba=null),e}function yn(e){ba===null?ba=[e]:ba.push(e)}var wu=w(null),Ia=null,ta=null;function Na(e,t,a){F(wu,t._currentValue),t._currentValue=a}function aa(e){e._currentValue=wu.current,Q(wu)}function Mu(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function zu(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var o=n.child;i=i.firstContext;e:for(;i!==null;){var p=i;i=n;for(var N=0;N<t.length;N++)if(p.context===t[N]){i.lanes|=a,p=i.alternate,p!==null&&(p.lanes|=a),Mu(i.return,a,e),l||(o=null);break e}i=p.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(r(341));o.lanes|=a,i=o.alternate,i!==null&&(i.lanes|=a),Mu(o,a,e),o=null}else o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===e){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function Tl(e,t,a,l){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var o=n.alternate;if(o===null)throw Error(r(387));if(o=o.memoizedProps,o!==null){var p=n.type;yt(n.pendingProps.value,o.value)||(e!==null?e.push(p):e=[p])}}else if(n===ve.current){if(o=n.alternate,o===null)throw Error(r(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Qn):e=[Qn])}n=n.return}e!==null&&zu(t,e,a,l),t.flags|=262144}function Os(e){for(e=e.firstContext;e!==null;){if(!yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Pa(e){Ia=e,ta=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Pe(e){return Ho(Ia,e)}function _s(e,t){return Ia===null&&Pa(e),Ho(e,t)}function Ho(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ta===null){if(e===null)throw Error(r(308));ta=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ta=ta.next=t;return a}var F0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},I0=u.unstable_scheduleCallback,P0=u.unstable_NormalPriority,ke={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ou(){return{controller:new F0,data:new Map,refCount:0}}function gn(e){e.refCount--,e.refCount===0&&I0(P0,function(){e.controller.abort()})}var vn=null,_u=0,wl=0,Ml=null;function ex(e,t){if(vn===null){var a=vn=[];_u=0,wl=Uc(),Ml={status:"pending",value:void 0,then:function(l){a.push(l)}}}return _u++,t.then(qo,qo),t}function qo(){if(--_u===0&&vn!==null){Ml!==null&&(Ml.status="fulfilled");var e=vn;vn=null,wl=0,Ml=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function tx(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var Lo=Y.S;Y.S=function(e,t){Nd=ht(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ex(e,t),Lo!==null&&Lo(e,t)};var el=w(null);function Ru(){var e=el.current;return e!==null?e:Te.pooledCache}function Rs(e,t){t===null?F(el,el.current):F(el,t.pool)}function Bo(){var e=Ru();return e===null?null:{parent:ke._currentValue,pool:e}}var zl=Error(r(460)),Du=Error(r(474)),Ds=Error(r(542)),Us={then:function(){}};function ko(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yo(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ft,Ft),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xo(e),e;default:if(typeof t.status=="string")t.then(Ft,Ft);else{if(e=Te,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xo(e),e}throw al=t,zl}}function tl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(al=a,zl):a}}var al=null;function Go(){if(al===null)throw Error(r(459));var e=al;return al=null,e}function Xo(e){if(e===zl||e===Ds)throw Error(r(483))}var Ol=null,bn=0;function Hs(e){var t=bn;return bn+=1,Ol===null&&(Ol=[]),Yo(Ol,e,t)}function jn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qs(e,t){throw t.$$typeof===A?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Qo(e){function t(O,T){if(e){var D=O.deletions;D===null?(O.deletions=[T],O.flags|=16):D.push(T)}}function a(O,T){if(!e)return null;for(;T!==null;)t(O,T),T=T.sibling;return null}function l(O){for(var T=new Map;O!==null;)O.key!==null?T.set(O.key,O):T.set(O.index,O),O=O.sibling;return T}function n(O,T){return O=Pt(O,T),O.index=0,O.sibling=null,O}function i(O,T,D){return O.index=D,e?(D=O.alternate,D!==null?(D=D.index,D<T?(O.flags|=67108866,T):D):(O.flags|=67108866,T)):(O.flags|=1048576,T)}function o(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function p(O,T,D,G){return T===null||T.tag!==6?(T=Nu(D,O.mode,G),T.return=O,T):(T=n(T,D),T.return=O,T)}function N(O,T,D,G){var ae=D.type;return ae===z?k(O,T,D.props.children,G,D.key):T!==null&&(T.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===B&&tl(ae)===T.type)?(T=n(T,D.props),jn(T,D),T.return=O,T):(T=Ms(D.type,D.key,D.props,null,O.mode,G),jn(T,D),T.return=O,T)}function U(O,T,D,G){return T===null||T.tag!==4||T.stateNode.containerInfo!==D.containerInfo||T.stateNode.implementation!==D.implementation?(T=Su(D,O.mode,G),T.return=O,T):(T=n(T,D.children||[]),T.return=O,T)}function k(O,T,D,G,ae){return T===null||T.tag!==7?(T=Wa(D,O.mode,G,ae),T.return=O,T):(T=n(T,D),T.return=O,T)}function X(O,T,D){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Nu(""+T,O.mode,D),T.return=O,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case R:return D=Ms(T.type,T.key,T.props,null,O.mode,D),jn(D,T),D.return=O,D;case E:return T=Su(T,O.mode,D),T.return=O,T;case B:return T=tl(T),X(O,T,D)}if(De(T)||Re(T))return T=Wa(T,O.mode,D,null),T.return=O,T;if(typeof T.then=="function")return X(O,Hs(T),D);if(T.$$typeof===M)return X(O,_s(O,T),D);qs(O,T)}return null}function H(O,T,D,G){var ae=T!==null?T.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ae!==null?null:p(O,T,""+D,G);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case R:return D.key===ae?N(O,T,D,G):null;case E:return D.key===ae?U(O,T,D,G):null;case B:return D=tl(D),H(O,T,D,G)}if(De(D)||Re(D))return ae!==null?null:k(O,T,D,G,null);if(typeof D.then=="function")return H(O,T,Hs(D),G);if(D.$$typeof===M)return H(O,T,_s(O,D),G);qs(O,D)}return null}function q(O,T,D,G,ae){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return O=O.get(D)||null,p(T,O,""+G,ae);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case R:return O=O.get(G.key===null?D:G.key)||null,N(T,O,G,ae);case E:return O=O.get(G.key===null?D:G.key)||null,U(T,O,G,ae);case B:return G=tl(G),q(O,T,D,G,ae)}if(De(G)||Re(G))return O=O.get(D)||null,k(T,O,G,ae,null);if(typeof G.then=="function")return q(O,T,D,Hs(G),ae);if(G.$$typeof===M)return q(O,T,D,_s(T,G),ae);qs(T,G)}return null}function I(O,T,D,G){for(var ae=null,pe=null,ee=T,re=T=0,he=null;ee!==null&&re<D.length;re++){ee.index>re?(he=ee,ee=null):he=ee.sibling;var ye=H(O,ee,D[re],G);if(ye===null){ee===null&&(ee=he);break}e&&ee&&ye.alternate===null&&t(O,ee),T=i(ye,T,re),pe===null?ae=ye:pe.sibling=ye,pe=ye,ee=he}if(re===D.length)return a(O,ee),xe&&ea(O,re),ae;if(ee===null){for(;re<D.length;re++)ee=X(O,D[re],G),ee!==null&&(T=i(ee,T,re),pe===null?ae=ee:pe.sibling=ee,pe=ee);return xe&&ea(O,re),ae}for(ee=l(ee);re<D.length;re++)he=q(ee,O,re,D[re],G),he!==null&&(e&&he.alternate!==null&&ee.delete(he.key===null?re:he.key),T=i(he,T,re),pe===null?ae=he:pe.sibling=he,pe=he);return e&&ee.forEach(function(ka){return t(O,ka)}),xe&&ea(O,re),ae}function ne(O,T,D,G){if(D==null)throw Error(r(151));for(var ae=null,pe=null,ee=T,re=T=0,he=null,ye=D.next();ee!==null&&!ye.done;re++,ye=D.next()){ee.index>re?(he=ee,ee=null):he=ee.sibling;var ka=H(O,ee,ye.value,G);if(ka===null){ee===null&&(ee=he);break}e&&ee&&ka.alternate===null&&t(O,ee),T=i(ka,T,re),pe===null?ae=ka:pe.sibling=ka,pe=ka,ee=he}if(ye.done)return a(O,ee),xe&&ea(O,re),ae;if(ee===null){for(;!ye.done;re++,ye=D.next())ye=X(O,ye.value,G),ye!==null&&(T=i(ye,T,re),pe===null?ae=ye:pe.sibling=ye,pe=ye);return xe&&ea(O,re),ae}for(ee=l(ee);!ye.done;re++,ye=D.next())ye=q(ee,O,re,ye.value,G),ye!==null&&(e&&ye.alternate!==null&&ee.delete(ye.key===null?re:ye.key),T=i(ye,T,re),pe===null?ae=ye:pe.sibling=ye,pe=ye);return e&&ee.forEach(function(dp){return t(O,dp)}),xe&&ea(O,re),ae}function Ae(O,T,D,G){if(typeof D=="object"&&D!==null&&D.type===z&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case R:e:{for(var ae=D.key;T!==null;){if(T.key===ae){if(ae=D.type,ae===z){if(T.tag===7){a(O,T.sibling),G=n(T,D.props.children),G.return=O,O=G;break e}}else if(T.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===B&&tl(ae)===T.type){a(O,T.sibling),G=n(T,D.props),jn(G,D),G.return=O,O=G;break e}a(O,T);break}else t(O,T);T=T.sibling}D.type===z?(G=Wa(D.props.children,O.mode,G,D.key),G.return=O,O=G):(G=Ms(D.type,D.key,D.props,null,O.mode,G),jn(G,D),G.return=O,O=G)}return o(O);case E:e:{for(ae=D.key;T!==null;){if(T.key===ae)if(T.tag===4&&T.stateNode.containerInfo===D.containerInfo&&T.stateNode.implementation===D.implementation){a(O,T.sibling),G=n(T,D.children||[]),G.return=O,O=G;break e}else{a(O,T);break}else t(O,T);T=T.sibling}G=Su(D,O.mode,G),G.return=O,O=G}return o(O);case B:return D=tl(D),Ae(O,T,D,G)}if(De(D))return I(O,T,D,G);if(Re(D)){if(ae=Re(D),typeof ae!="function")throw Error(r(150));return D=ae.call(D),ne(O,T,D,G)}if(typeof D.then=="function")return Ae(O,T,Hs(D),G);if(D.$$typeof===M)return Ae(O,T,_s(O,D),G);qs(O,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,T!==null&&T.tag===6?(a(O,T.sibling),G=n(T,D),G.return=O,O=G):(a(O,T),G=Nu(D,O.mode,G),G.return=O,O=G),o(O)):a(O,T)}return function(O,T,D,G){try{bn=0;var ae=Ae(O,T,D,G);return Ol=null,ae}catch(ee){if(ee===zl||ee===Ds)throw ee;var pe=gt(29,ee,null,O.mode);return pe.lanes=G,pe.return=O,pe}finally{}}}var ll=Qo(!0),Vo=Qo(!1),Sa=!1;function Uu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hu(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 Ea(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Aa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(ge&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=ws(e),wo(e,null,a),t}return Ts(e,l,t,a),ws(e)}function Nn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Ur(e,a)}}function qu(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?n=i=o:i=i.next=o,a=a.next}while(a!==null);i===null?n=i=t:i=i.next=t}else n=i=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Lu=!1;function Sn(){if(Lu){var e=Ml;if(e!==null)throw e}}function En(e,t,a,l){Lu=!1;var n=e.updateQueue;Sa=!1;var i=n.firstBaseUpdate,o=n.lastBaseUpdate,p=n.shared.pending;if(p!==null){n.shared.pending=null;var N=p,U=N.next;N.next=null,o===null?i=U:o.next=U,o=N;var k=e.alternate;k!==null&&(k=k.updateQueue,p=k.lastBaseUpdate,p!==o&&(p===null?k.firstBaseUpdate=U:p.next=U,k.lastBaseUpdate=N))}if(i!==null){var X=n.baseState;o=0,k=U=N=null,p=i;do{var H=p.lane&-536870913,q=H!==p.lane;if(q?(me&H)===H:(l&H)===H){H!==0&&H===wl&&(Lu=!0),k!==null&&(k=k.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var I=e,ne=p;H=t;var Ae=a;switch(ne.tag){case 1:if(I=ne.payload,typeof I=="function"){X=I.call(Ae,X,H);break e}X=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ne.payload,H=typeof I=="function"?I.call(Ae,X,H):I,H==null)break e;X=j({},X,H);break e;case 2:Sa=!0}}H=p.callback,H!==null&&(e.flags|=64,q&&(e.flags|=8192),q=n.callbacks,q===null?n.callbacks=[H]:q.push(H))}else q={lane:H,tag:p.tag,payload:p.payload,callback:p.callback,next:null},k===null?(U=k=q,N=X):k=k.next=q,o|=H;if(p=p.next,p===null){if(p=n.shared.pending,p===null)break;q=p,p=q.next,q.next=null,n.lastBaseUpdate=q,n.shared.pending=null}}while(!0);k===null&&(N=X),n.baseState=N,n.firstBaseUpdate=U,n.lastBaseUpdate=k,i===null&&(n.shared.lanes=0),za|=o,e.lanes=o,e.memoizedState=X}}function Zo(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Ko(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Zo(a[e],t)}var _l=w(null),Ls=w(0);function Jo(e,t){e=fa,F(Ls,e),F(_l,t),fa=e|t.baseLanes}function Bu(){F(Ls,fa),F(_l,_l.current)}function ku(){fa=Ls.current,Q(_l),Q(Ls)}var vt=w(null),_t=null;function Ca(e){var t=e.alternate;F(Le,Le.current&1),F(vt,e),_t===null&&(t===null||_l.current!==null||t.memoizedState!==null)&&(_t=e)}function Yu(e){F(Le,Le.current),F(vt,e),_t===null&&(_t=e)}function $o(e){e.tag===22?(F(Le,Le.current),F(vt,e),_t===null&&(_t=e)):Ta()}function Ta(){F(Le,Le.current),F(vt,vt.current)}function bt(e){Q(vt),_t===e&&(_t=null),Q(Le)}var Le=w(0);function Bs(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Kc(a)||Jc(a)))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 la=0,ce=null,Se=null,Ye=null,ks=!1,Rl=!1,nl=!1,Ys=0,An=0,Dl=null,ax=0;function Ue(){throw Error(r(321))}function Gu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!yt(e[a],t[a]))return!1;return!0}function Xu(e,t,a,l,n,i){return la=i,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Y.H=e===null||e.memoizedState===null?Rf:nc,nl=!1,i=a(l,n),nl=!1,Rl&&(i=Fo(t,a,l,n)),Wo(e),i}function Wo(e){Y.H=wn;var t=Se!==null&&Se.next!==null;if(la=0,Ye=Se=ce=null,ks=!1,An=0,Dl=null,t)throw Error(r(300));e===null||Ge||(e=e.dependencies,e!==null&&Os(e)&&(Ge=!0))}function Fo(e,t,a,l){ce=e;var n=0;do{if(Rl&&(Dl=null),An=0,Rl=!1,25<=n)throw Error(r(301));if(n+=1,Ye=Se=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}Y.H=Df,i=t(a,l)}while(Rl);return i}function lx(){var e=Y.H,t=e.useState()[0];return t=typeof t.then=="function"?Cn(t):t,e=e.useState()[0],(Se!==null?Se.memoizedState:null)!==e&&(ce.flags|=1024),t}function Qu(){var e=Ys!==0;return Ys=0,e}function Vu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Zu(e){if(ks){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ks=!1}la=0,Ye=Se=ce=null,Rl=!1,An=Ys=0,Dl=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?ce.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Be(){if(Se===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=Se.next;var t=Ye===null?ce.memoizedState:Ye.next;if(t!==null)Ye=t,Se=e;else{if(e===null)throw ce.alternate===null?Error(r(467)):Error(r(310));Se=e,e={memoizedState:Se.memoizedState,baseState:Se.baseState,baseQueue:Se.baseQueue,queue:Se.queue,next:null},Ye===null?ce.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function Gs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Cn(e){var t=An;return An+=1,Dl===null&&(Dl=[]),e=Yo(Dl,e,t),t=ce,(Ye===null?t.memoizedState:Ye.next)===null&&(t=t.alternate,Y.H=t===null||t.memoizedState===null?Rf:nc),e}function Xs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Cn(e);if(e.$$typeof===M)return Pe(e)}throw Error(r(438,String(e)))}function Ku(e){var t=null,a=ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ce.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Gs(),ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=W;return t.index++,a}function na(e,t){return typeof t=="function"?t(e):t}function Qs(e){var t=Be();return Ju(t,Se,e)}function Ju(e,t,a){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var n=e.baseQueue,i=l.pending;if(i!==null){if(n!==null){var o=n.next;n.next=i.next,i.next=o}t.baseQueue=n=i,l.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var p=o=null,N=null,U=t,k=!1;do{var X=U.lane&-536870913;if(X!==U.lane?(me&X)===X:(la&X)===X){var H=U.revertLane;if(H===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),X===wl&&(k=!0);else if((la&H)===H){U=U.next,H===wl&&(k=!0);continue}else X={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},N===null?(p=N=X,o=i):N=N.next=X,ce.lanes|=H,za|=H;X=U.action,nl&&a(i,X),i=U.hasEagerState?U.eagerState:a(i,X)}else H={lane:X,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},N===null?(p=N=H,o=i):N=N.next=H,ce.lanes|=X,za|=X;U=U.next}while(U!==null&&U!==t);if(N===null?o=i:N.next=p,!yt(i,e.memoizedState)&&(Ge=!0,k&&(a=Ml,a!==null)))throw a;e.memoizedState=i,e.baseState=o,e.baseQueue=N,l.lastRenderedState=i}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function $u(e){var t=Be(),a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,i=t.memoizedState;if(n!==null){a.pending=null;var o=n=n.next;do i=e(i,o.action),o=o.next;while(o!==n);yt(i,t.memoizedState)||(Ge=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,l]}function Io(e,t,a){var l=ce,n=Be(),i=xe;if(i){if(a===void 0)throw Error(r(407));a=a()}else a=t();var o=!yt((Se||n).memoizedState,a);if(o&&(n.memoizedState=a,Ge=!0),n=n.queue,Iu(tf.bind(null,l,n,e),[e]),n.getSnapshot!==t||o||Ye!==null&&Ye.memoizedState.tag&1){if(l.flags|=2048,Ul(9,{destroy:void 0},ef.bind(null,l,n,a,t),null),Te===null)throw Error(r(349));i||(la&127)!==0||Po(l,t,a)}return a}function Po(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ce.updateQueue,t===null?(t=Gs(),ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function ef(e,t,a,l){t.value=a,t.getSnapshot=l,af(t)&&lf(e)}function tf(e,t,a){return a(function(){af(t)&&lf(e)})}function af(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!yt(e,a)}catch{return!0}}function lf(e){var t=$a(e,2);t!==null&&mt(t,e,2)}function Wu(e){var t=st();if(typeof e=="function"){var a=e;if(e=a(),nl){pa(!0);try{a()}finally{pa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:na,lastRenderedState:e},t}function nf(e,t,a,l){return e.baseState=a,Ju(e,Se,typeof l=="function"?l:na)}function nx(e,t,a,l,n){if(Ks(e))throw Error(r(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};Y.T!==null?a(!0):i.isTransition=!1,l(i),a=t.pending,a===null?(i.next=t.pending=i,sf(t,i)):(i.next=a.next,t.pending=a.next=i)}}function sf(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var i=Y.T,o={};Y.T=o;try{var p=a(n,l),N=Y.S;N!==null&&N(o,p),uf(e,t,p)}catch(U){Fu(e,t,U)}finally{i!==null&&o.types!==null&&(i.types=o.types),Y.T=i}}else try{i=a(n,l),uf(e,t,i)}catch(U){Fu(e,t,U)}}function uf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){cf(e,t,l)},function(l){return Fu(e,t,l)}):cf(e,t,a)}function cf(e,t,a){t.status="fulfilled",t.value=a,rf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,sf(e,a)))}function Fu(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,rf(t),t=t.next;while(t!==l)}e.action=null}function rf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function of(e,t){return t}function ff(e,t){if(xe){var a=Te.formState;if(a!==null){e:{var l=ce;if(xe){if(Me){t:{for(var n=Me,i=Ot;n.nodeType!==8;){if(!i){n=null;break t}if(n=Rt(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Me=Rt(n.nextSibling),l=n.data==="F!";break e}}ja(l)}l=!1}l&&(t=a[0])}}return a=st(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:of,lastRenderedState:t},a.queue=l,a=zf.bind(null,ce,l),l.dispatch=a,l=Wu(!1),i=lc.bind(null,ce,!1,l.queue),l=st(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=nx.bind(null,ce,n,i,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function df(e){var t=Be();return mf(t,Se,e)}function mf(e,t,a){if(t=Ju(e,t,of)[0],e=Qs(na)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Cn(t)}catch(o){throw o===zl?Ds:o}else l=t;t=Be();var n=t.queue,i=n.dispatch;return a!==t.memoizedState&&(ce.flags|=2048,Ul(9,{destroy:void 0},sx.bind(null,n,a),null)),[l,i,e]}function sx(e,t){e.action=t}function hf(e){var t=Be(),a=Se;if(a!==null)return mf(t,a,e);Be(),t=t.memoizedState,a=Be();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Ul(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ce.updateQueue,t===null&&(t=Gs(),ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function xf(){return Be().memoizedState}function Vs(e,t,a,l){var n=st();ce.flags|=e,n.memoizedState=Ul(1|t,{destroy:void 0},a,l===void 0?null:l)}function Zs(e,t,a,l){var n=Be();l=l===void 0?null:l;var i=n.memoizedState.inst;Se!==null&&l!==null&&Gu(l,Se.memoizedState.deps)?n.memoizedState=Ul(t,i,a,l):(ce.flags|=e,n.memoizedState=Ul(1|t,i,a,l))}function pf(e,t){Vs(8390656,8,e,t)}function Iu(e,t){Zs(2048,8,e,t)}function ix(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=Gs(),ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function yf(e){var t=Be().memoizedState;return ix({ref:t,nextImpl:e}),function(){if((ge&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function gf(e,t){return Zs(4,2,e,t)}function vf(e,t){return Zs(4,4,e,t)}function bf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function jf(e,t,a){a=a!=null?a.concat([e]):null,Zs(4,4,bf.bind(null,t,e),a)}function Pu(){}function Nf(e,t){var a=Be();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Gu(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Sf(e,t){var a=Be();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Gu(t,l[1]))return l[0];if(l=e(),nl){pa(!0);try{e()}finally{pa(!1)}}return a.memoizedState=[l,t],l}function ec(e,t,a){return a===void 0||(la&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Ed(),ce.lanes|=e,za|=e,a)}function Ef(e,t,a,l){return yt(a,t)?a:_l.current!==null?(e=ec(e,a,l),yt(e,t)||(Ge=!0),e):(la&42)===0||(la&1073741824)!==0&&(me&261930)===0?(Ge=!0,e.memoizedState=a):(e=Ed(),ce.lanes|=e,za|=e,t)}function Af(e,t,a,l,n){var i=$.p;$.p=i!==0&&8>i?i:8;var o=Y.T,p={};Y.T=p,lc(e,!1,t,a);try{var N=n(),U=Y.S;if(U!==null&&U(p,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var k=tx(N,l);Tn(e,t,k,St(e))}else Tn(e,t,l,St(e))}catch(X){Tn(e,t,{then:function(){},status:"rejected",reason:X},St())}finally{$.p=i,o!==null&&p.types!==null&&(o.types=p.types),Y.T=o}}function ux(){}function tc(e,t,a,l){if(e.tag!==5)throw Error(r(476));var n=Cf(e).queue;Af(e,n,t,se,a===null?ux:function(){return Tf(e),a(l)})}function Cf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:na,lastRenderedState:se},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:na,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Tf(e){var t=Cf(e);t.next===null&&(t=e.alternate.memoizedState),Tn(e,t.next.queue,{},St())}function ac(){return Pe(Qn)}function wf(){return Be().memoizedState}function Mf(){return Be().memoizedState}function cx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=St();e=Ea(a);var l=Aa(t,e,a);l!==null&&(mt(l,t,a),Nn(l,t,a)),t={cache:Ou()},e.payload=t;return}t=t.return}}function rx(e,t,a){var l=St();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ks(e)?Of(t,a):(a=bu(e,t,a,l),a!==null&&(mt(a,e,l),_f(a,t,l)))}function zf(e,t,a){var l=St();Tn(e,t,a,l)}function Tn(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ks(e))Of(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,p=i(o,a);if(n.hasEagerState=!0,n.eagerState=p,yt(p,o))return Ts(e,t,n,0),Te===null&&Cs(),!1}catch{}finally{}if(a=bu(e,t,n,l),a!==null)return mt(a,e,l),_f(a,t,l),!0}return!1}function lc(e,t,a,l){if(l={lane:2,revertLane:Uc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ks(e)){if(t)throw Error(r(479))}else t=bu(e,a,l,2),t!==null&&mt(t,e,2)}function Ks(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Of(e,t){Rl=ks=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function _f(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Ur(e,a)}}var wn={readContext:Pe,use:Xs,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useLayoutEffect:Ue,useInsertionEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useSyncExternalStore:Ue,useId:Ue,useHostTransitionStatus:Ue,useFormState:Ue,useActionState:Ue,useOptimistic:Ue,useMemoCache:Ue,useCacheRefresh:Ue};wn.useEffectEvent=Ue;var Rf={readContext:Pe,use:Xs,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:Pe,useEffect:pf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Vs(4194308,4,bf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){Vs(4,2,e,t)},useMemo:function(e,t){var a=st();t=t===void 0?null:t;var l=e();if(nl){pa(!0);try{e()}finally{pa(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=st();if(a!==void 0){var n=a(t);if(nl){pa(!0);try{a(t)}finally{pa(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=rx.bind(null,ce,e),[l.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=Wu(e);var t=e.queue,a=zf.bind(null,ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Pu,useDeferredValue:function(e,t){var a=st();return ec(a,e,t)},useTransition:function(){var e=Wu(!1);return e=Af.bind(null,ce,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ce,n=st();if(xe){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),Te===null)throw Error(r(349));(me&127)!==0||Po(l,t,a)}n.memoizedState=a;var i={value:a,getSnapshot:t};return n.queue=i,pf(tf.bind(null,l,i,e),[e]),l.flags|=2048,Ul(9,{destroy:void 0},ef.bind(null,l,i,a,t),null),a},useId:function(){var e=st(),t=Te.identifierPrefix;if(xe){var a=Gt,l=Yt;a=(l&~(1<<32-pt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ys++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=ax++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ac,useFormState:ff,useActionState:ff,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=lc.bind(null,ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:Ku,useCacheRefresh:function(){return st().memoizedState=cx.bind(null,ce)},useEffectEvent:function(e){var t=st(),a={impl:e};return t.memoizedState=a,function(){if((ge&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},nc={readContext:Pe,use:Xs,useCallback:Nf,useContext:Pe,useEffect:Iu,useImperativeHandle:jf,useInsertionEffect:gf,useLayoutEffect:vf,useMemo:Sf,useReducer:Qs,useRef:xf,useState:function(){return Qs(na)},useDebugValue:Pu,useDeferredValue:function(e,t){var a=Be();return Ef(a,Se.memoizedState,e,t)},useTransition:function(){var e=Qs(na)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:Cn(e),t]},useSyncExternalStore:Io,useId:wf,useHostTransitionStatus:ac,useFormState:df,useActionState:df,useOptimistic:function(e,t){var a=Be();return nf(a,Se,e,t)},useMemoCache:Ku,useCacheRefresh:Mf};nc.useEffectEvent=yf;var Df={readContext:Pe,use:Xs,useCallback:Nf,useContext:Pe,useEffect:Iu,useImperativeHandle:jf,useInsertionEffect:gf,useLayoutEffect:vf,useMemo:Sf,useReducer:$u,useRef:xf,useState:function(){return $u(na)},useDebugValue:Pu,useDeferredValue:function(e,t){var a=Be();return Se===null?ec(a,e,t):Ef(a,Se.memoizedState,e,t)},useTransition:function(){var e=$u(na)[0],t=Be().memoizedState;return[typeof e=="boolean"?e:Cn(e),t]},useSyncExternalStore:Io,useId:wf,useHostTransitionStatus:ac,useFormState:hf,useActionState:hf,useOptimistic:function(e,t){var a=Be();return Se!==null?nf(a,Se,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Ku,useCacheRefresh:Mf};Df.useEffectEvent=yf;function sc(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:j({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var ic={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=St(),n=Ea(l);n.payload=t,a!=null&&(n.callback=a),t=Aa(e,n,l),t!==null&&(mt(t,e,l),Nn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=St(),n=Ea(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Aa(e,n,l),t!==null&&(mt(t,e,l),Nn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=St(),l=Ea(a);l.tag=2,t!=null&&(l.callback=t),t=Aa(e,l,a),t!==null&&(mt(t,e,a),Nn(t,e,a))}};function Uf(e,t,a,l,n,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,o):t.prototype&&t.prototype.isPureReactComponent?!hn(a,l)||!hn(n,i):!0}function Hf(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&ic.enqueueReplaceState(t,t.state,null)}function sl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=j({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function qf(e){As(e)}function Lf(e){console.error(e)}function Bf(e){As(e)}function Js(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function kf(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function uc(e,t,a){return a=Ea(a),a.tag=3,a.payload={element:null},a.callback=function(){Js(e,t)},a}function Yf(e){return e=Ea(e),e.tag=3,e}function Gf(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var i=l.value;e.payload=function(){return n(i)},e.callback=function(){kf(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){kf(t,a,l),typeof n!="function"&&(Oa===null?Oa=new Set([this]):Oa.add(this));var p=l.stack;this.componentDidCatch(l.value,{componentStack:p!==null?p:""})})}function ox(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Tl(t,a,n,!0),a=vt.current,a!==null){switch(a.tag){case 31:case 13:return _t===null?ii():a.alternate===null&&He===0&&(He=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===Us?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),_c(e,l,n)),!1;case 22:return a.flags|=65536,l===Us?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),_c(e,l,n)),!1}throw Error(r(435,a.tag))}return _c(e,l,n),ii(),!1}if(xe)return t=vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==Cu&&(e=Error(r(422),{cause:l}),yn(wt(e,a)))):(l!==Cu&&(t=Error(r(423),{cause:l}),yn(wt(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=wt(l,a),n=uc(e.stateNode,l,n),qu(e,n),He!==4&&(He=2)),!1;var i=Error(r(520),{cause:l});if(i=wt(i,a),Hn===null?Hn=[i]:Hn.push(i),He!==4&&(He=2),t===null)return!0;l=wt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=uc(a.stateNode,l,e),qu(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Oa===null||!Oa.has(i))))return a.flags|=65536,n&=-n,a.lanes|=n,n=Yf(n),Gf(n,e,a,l),qu(a,n),!1}a=a.return}while(a!==null);return!1}var cc=Error(r(461)),Ge=!1;function et(e,t,a,l){t.child=e===null?Vo(t,null,a,l):ll(t,e.child,a,l)}function Xf(e,t,a,l,n){a=a.render;var i=t.ref;if("ref"in l){var o={};for(var p in l)p!=="ref"&&(o[p]=l[p])}else o=l;return Pa(t),l=Xu(e,t,a,o,i,n),p=Qu(),e!==null&&!Ge?(Vu(e,t,n),sa(e,t,n)):(xe&&p&&Eu(t),t.flags|=1,et(e,t,l,n),t.child)}function Qf(e,t,a,l,n){if(e===null){var i=a.type;return typeof i=="function"&&!ju(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,Vf(e,t,i,l,n)):(e=Ms(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!pc(e,n)){var o=i.memoizedProps;if(a=a.compare,a=a!==null?a:hn,a(o,l)&&e.ref===t.ref)return sa(e,t,n)}return t.flags|=1,e=Pt(i,l),e.ref=t.ref,e.return=t,t.child=e}function Vf(e,t,a,l,n){if(e!==null){var i=e.memoizedProps;if(hn(i,l)&&e.ref===t.ref)if(Ge=!1,t.pendingProps=l=i,pc(e,n))(e.flags&131072)!==0&&(Ge=!0);else return t.lanes=e.lanes,sa(e,t,n)}return rc(e,t,a,l,n)}function Zf(e,t,a,l){var n=l.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~i}else l=0,t.child=null;return Kf(e,t,i,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Rs(t,i!==null?i.cachePool:null),i!==null?Jo(t,i):Bu(),$o(t);else return l=t.lanes=536870912,Kf(e,t,i!==null?i.baseLanes|a:a,a,l)}else i!==null?(Rs(t,i.cachePool),Jo(t,i),Ta(),t.memoizedState=null):(e!==null&&Rs(t,null),Bu(),Ta());return et(e,t,n,a),t.child}function Mn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Kf(e,t,a,l,n){var i=Ru();return i=i===null?null:{parent:ke._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&Rs(t,null),Bu(),$o(t),e!==null&&Tl(e,t,l,!0),t.childLanes=n,null}function $s(e,t){return t=Fs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Jf(e,t,a){return ll(t,e.child,null,a),e=$s(t,t.pendingProps),e.flags|=2,bt(t),t.memoizedState=null,e}function fx(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(xe){if(l.mode==="hidden")return e=$s(t,l),t.lanes=536870912,Mn(null,e);if(Yu(t),(e=Me)?(e=im(e,Ot),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:va!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},a=zo(e),a.return=t,t.child=a,Ie=t,Me=null)):e=null,e===null)throw ja(t);return t.lanes=536870912,null}return $s(t,l)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(Yu(t),n)if(t.flags&256)t.flags&=-257,t=Jf(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ge||Tl(e,t,a,!1),n=(a&e.childLanes)!==0,Ge||n){if(l=Te,l!==null&&(o=Hr(l,a),o!==0&&o!==i.retryLane))throw i.retryLane=o,$a(e,o),mt(l,e,o),cc;ii(),t=Jf(e,t,a)}else e=i.treeContext,Me=Rt(o.nextSibling),Ie=t,xe=!0,ba=null,Ot=!1,e!==null&&Ro(t,e),t=$s(t,l),t.flags|=4096;return t}return e=Pt(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ws(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function rc(e,t,a,l,n){return Pa(t),a=Xu(e,t,a,l,void 0,n),l=Qu(),e!==null&&!Ge?(Vu(e,t,n),sa(e,t,n)):(xe&&l&&Eu(t),t.flags|=1,et(e,t,a,n),t.child)}function $f(e,t,a,l,n,i){return Pa(t),t.updateQueue=null,a=Fo(t,l,a,n),Wo(e),l=Qu(),e!==null&&!Ge?(Vu(e,t,i),sa(e,t,i)):(xe&&l&&Eu(t),t.flags|=1,et(e,t,a,i),t.child)}function Wf(e,t,a,l,n){if(Pa(t),t.stateNode===null){var i=Sl,o=a.contextType;typeof o=="object"&&o!==null&&(i=Pe(o)),i=new a(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=ic,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},Uu(t),o=a.contextType,i.context=typeof o=="object"&&o!==null?Pe(o):Sl,i.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(sc(t,a,o,l),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&ic.enqueueReplaceState(i,i.state,null),En(t,l,i,n),Sn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var p=t.memoizedProps,N=sl(a,p);i.props=N;var U=i.context,k=a.contextType;o=Sl,typeof k=="object"&&k!==null&&(o=Pe(k));var X=a.getDerivedStateFromProps;k=typeof X=="function"||typeof i.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,k||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(p||U!==o)&&Hf(t,i,l,o),Sa=!1;var H=t.memoizedState;i.state=H,En(t,l,i,n),Sn(),U=t.memoizedState,p||H!==U||Sa?(typeof X=="function"&&(sc(t,a,X,l),U=t.memoizedState),(N=Sa||Uf(t,a,N,l,H,U,o))?(k||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=U),i.props=l,i.state=U,i.context=o,l=N):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,Hu(e,t),o=t.memoizedProps,k=sl(a,o),i.props=k,X=t.pendingProps,H=i.context,U=a.contextType,N=Sl,typeof U=="object"&&U!==null&&(N=Pe(U)),p=a.getDerivedStateFromProps,(U=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==X||H!==N)&&Hf(t,i,l,N),Sa=!1,H=t.memoizedState,i.state=H,En(t,l,i,n),Sn();var q=t.memoizedState;o!==X||H!==q||Sa||e!==null&&e.dependencies!==null&&Os(e.dependencies)?(typeof p=="function"&&(sc(t,a,p,l),q=t.memoizedState),(k=Sa||Uf(t,a,k,l,H,q,N)||e!==null&&e.dependencies!==null&&Os(e.dependencies))?(U||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,q,N),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,q,N)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=q),i.props=l,i.state=q,i.context=N,l=k):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,Ws(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=ll(t,e.child,null,n),t.child=ll(t,null,a,n)):et(e,t,a,n),t.memoizedState=i.state,e=t.child):e=sa(e,t,n),e}function Ff(e,t,a,l){return Fa(),t.flags|=256,et(e,t,a,l),t.child}var oc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fc(e){return{baseLanes:e,cachePool:Bo()}}function dc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Nt),e}function If(e,t,a){var l=t.pendingProps,n=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(Le.current&2)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(xe){if(n?Ca(t):Ta(),(e=Me)?(e=im(e,Ot),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:va!==null?{id:Yt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},a=zo(e),a.return=t,t.child=a,Ie=t,Me=null)):e=null,e===null)throw ja(t);return Jc(e)?t.lanes=32:t.lanes=536870912,null}var p=l.children;return l=l.fallback,n?(Ta(),n=t.mode,p=Fs({mode:"hidden",children:p},n),l=Wa(l,n,a,null),p.return=t,l.return=t,p.sibling=l,t.child=p,l=t.child,l.memoizedState=fc(a),l.childLanes=dc(e,o,a),t.memoizedState=oc,Mn(null,l)):(Ca(t),mc(t,p))}var N=e.memoizedState;if(N!==null&&(p=N.dehydrated,p!==null)){if(i)t.flags&256?(Ca(t),t.flags&=-257,t=hc(e,t,a)):t.memoizedState!==null?(Ta(),t.child=e.child,t.flags|=128,t=null):(Ta(),p=l.fallback,n=t.mode,l=Fs({mode:"visible",children:l.children},n),p=Wa(p,n,a,null),p.flags|=2,l.return=t,p.return=t,l.sibling=p,t.child=l,ll(t,e.child,null,a),l=t.child,l.memoizedState=fc(a),l.childLanes=dc(e,o,a),t.memoizedState=oc,t=Mn(null,l));else if(Ca(t),Jc(p)){if(o=p.nextSibling&&p.nextSibling.dataset,o)var U=o.dgst;o=U,l=Error(r(419)),l.stack="",l.digest=o,yn({value:l,source:null,stack:null}),t=hc(e,t,a)}else if(Ge||Tl(e,t,a,!1),o=(a&e.childLanes)!==0,Ge||o){if(o=Te,o!==null&&(l=Hr(o,a),l!==0&&l!==N.retryLane))throw N.retryLane=l,$a(e,l),mt(o,e,l),cc;Kc(p)||ii(),t=hc(e,t,a)}else Kc(p)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Me=Rt(p.nextSibling),Ie=t,xe=!0,ba=null,Ot=!1,e!==null&&Ro(t,e),t=mc(t,l.children),t.flags|=4096);return t}return n?(Ta(),p=l.fallback,n=t.mode,N=e.child,U=N.sibling,l=Pt(N,{mode:"hidden",children:l.children}),l.subtreeFlags=N.subtreeFlags&65011712,U!==null?p=Pt(U,p):(p=Wa(p,n,a,null),p.flags|=2),p.return=t,l.return=t,l.sibling=p,t.child=l,Mn(null,l),l=t.child,p=e.child.memoizedState,p===null?p=fc(a):(n=p.cachePool,n!==null?(N=ke._currentValue,n=n.parent!==N?{parent:N,pool:N}:n):n=Bo(),p={baseLanes:p.baseLanes|a,cachePool:n}),l.memoizedState=p,l.childLanes=dc(e,o,a),t.memoizedState=oc,Mn(e.child,l)):(Ca(t),a=e.child,e=a.sibling,a=Pt(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function mc(e,t){return t=Fs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fs(e,t){return e=gt(22,e,null,t),e.lanes=0,e}function hc(e,t,a){return ll(t,e.child,null,a),e=mc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Pf(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Mu(e.return,t,a)}function xc(e,t,a,l,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=a,o.tailMode=n,o.treeForkCount=i)}function ed(e,t,a){var l=t.pendingProps,n=l.revealOrder,i=l.tail;l=l.children;var o=Le.current,p=(o&2)!==0;if(p?(o=o&1|2,t.flags|=128):o&=1,F(Le,o),et(e,t,l,a),l=xe?pn:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Pf(e,a,t);else if(e.tag===19)Pf(e,a,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(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&Bs(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),xc(t,!1,n,a,i,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Bs(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}xc(t,!0,a,null,i,l);break;case"together":xc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function sa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),za|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Tl(e,t,a,!1),(a&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,a=Pt(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Pt(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function pc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Os(e)))}function dx(e,t,a){switch(t.tag){case 3:nt(t,t.stateNode.containerInfo),Na(t,ke,e.memoizedState.cache),Fa();break;case 27:case 5:en(t);break;case 4:nt(t,t.stateNode.containerInfo);break;case 10:Na(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Yu(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ca(t),t.flags|=128,null):(a&t.child.childLanes)!==0?If(e,t,a):(Ca(t),e=sa(e,t,a),e!==null?e.sibling:null);Ca(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Tl(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return ed(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),F(Le,Le.current),l)break;return null;case 22:return t.lanes=0,Zf(e,t,a,t.pendingProps);case 24:Na(t,ke,e.memoizedState.cache)}return sa(e,t,a)}function td(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ge=!0;else{if(!pc(e,a)&&(t.flags&128)===0)return Ge=!1,dx(e,t,a);Ge=(e.flags&131072)!==0}else Ge=!1,xe&&(t.flags&1048576)!==0&&_o(t,pn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=tl(t.elementType),t.type=e,typeof e=="function")ju(e)?(l=sl(e,l),t.tag=1,t=Wf(null,t,e,l,a)):(t.tag=0,t=rc(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===L){t.tag=11,t=Xf(null,t,e,l,a);break e}else if(n===V){t.tag=14,t=Qf(null,t,e,l,a);break e}}throw t=We(e)||e,Error(r(306,t,""))}}return t;case 0:return rc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=sl(l,t.pendingProps),Wf(e,t,l,n,a);case 3:e:{if(nt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var i=t.memoizedState;n=i.element,Hu(e,t),En(t,l,null,a);var o=t.memoizedState;if(l=o.cache,Na(t,ke,l),l!==i.cache&&zu(t,[ke],a,!0),Sn(),l=o.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Ff(e,t,l,a);break e}else if(l!==n){n=wt(Error(r(424)),t),yn(n),t=Ff(e,t,l,a);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(Me=Rt(e.firstChild),Ie=t,xe=!0,ba=null,Ot=!0,a=Vo(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Fa(),l===n){t=sa(e,t,a);break e}et(e,t,l,a)}t=t.child}return t;case 26:return Ws(e,t),e===null?(a=dm(t.type,null,t.pendingProps,null))?t.memoizedState=a:xe||(a=t.type,e=t.pendingProps,l=mi(oe.current).createElement(a),l[Fe]=t,l[ut]=e,tt(l,a,e),Je(l),t.stateNode=l):t.memoizedState=dm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return en(t),e===null&&xe&&(l=t.stateNode=rm(t.type,t.pendingProps,oe.current),Ie=t,Ot=!0,n=Me,Ua(t.type)?($c=n,Me=Rt(l.firstChild)):Me=n),et(e,t,t.pendingProps.children,a),Ws(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&xe&&((n=l=Me)&&(l=Gx(l,t.type,t.pendingProps,Ot),l!==null?(t.stateNode=l,Ie=t,Me=Rt(l.firstChild),Ot=!1,n=!0):n=!1),n||ja(t)),en(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,Qc(n,i)?l=null:o!==null&&Qc(n,o)&&(t.flags|=32),t.memoizedState!==null&&(n=Xu(e,t,lx,null,null,a),Qn._currentValue=n),Ws(e,t),et(e,t,l,a),t.child;case 6:return e===null&&xe&&((e=a=Me)&&(a=Xx(a,t.pendingProps,Ot),a!==null?(t.stateNode=a,Ie=t,Me=null,e=!0):e=!1),e||ja(t)),null;case 13:return If(e,t,a);case 4:return nt(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=ll(t,null,l,a):et(e,t,l,a),t.child;case 11:return Xf(e,t,t.type,t.pendingProps,a);case 7:return et(e,t,t.pendingProps,a),t.child;case 8:return et(e,t,t.pendingProps.children,a),t.child;case 12:return et(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Na(t,t.type,l.value),et(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,Pa(t),n=Pe(n),l=l(n),t.flags|=1,et(e,t,l,a),t.child;case 14:return Qf(e,t,t.type,t.pendingProps,a);case 15:return Vf(e,t,t.type,t.pendingProps,a);case 19:return ed(e,t,a);case 31:return fx(e,t,a);case 22:return Zf(e,t,a,t.pendingProps);case 24:return Pa(t),l=Pe(ke),e===null?(n=Ru(),n===null&&(n=Te,i=Ou(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=a),n=i),t.memoizedState={parent:l,cache:n},Uu(t),Na(t,ke,n)):((e.lanes&a)!==0&&(Hu(e,t),En(t,null,null,a),Sn()),n=e.memoizedState,i=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Na(t,ke,l)):(l=i.cache,Na(t,ke,l),l!==n.cache&&zu(t,[ke],a,!0))),et(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function ia(e){e.flags|=4}function yc(e,t,a,l,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(wd())e.flags|=8192;else throw al=Us,Du}else e.flags&=-16777217}function ad(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ym(t))if(wd())e.flags|=8192;else throw al=Us,Du}function Is(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Rr():536870912,e.lanes|=t,Bl|=t)}function zn(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function mx(e,t,a){var l=t.pendingProps;switch(Au(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 a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),aa(ke),qe(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Cl(t)?ia(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Tu())),ze(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(ia(t),i!==null?(ze(t),ad(t,i)):(ze(t),yc(t,n,null,l,a))):i?i!==e.memoizedState?(ia(t),ze(t),ad(t,i)):(ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ia(t),ze(t),yc(t,n,e,l,a)),null;case 27:if(rs(t),a=oe.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ia(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return ze(t),null}e=P.current,Cl(t)?Do(t):(e=rm(n,l,a),t.stateNode=e,ia(t))}return ze(t),null;case 5:if(rs(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ia(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return ze(t),null}if(i=P.current,Cl(t))Do(t);else{var o=mi(oe.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?o.createElement(n,{is:l.is}):o.createElement(n)}}i[Fe]=t,i[ut]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;e:switch(tt(i,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ia(t)}}return ze(t),yc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ia(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=oe.current,Cl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=Ie,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[Fe]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Id(e.nodeValue,a)),e||ja(t,!0)}else e=mi(e).createTextNode(l),e[Fe]=t,t.stateNode=e}return ze(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Cl(t),a!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Fe]=t}else Fa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),e=!1}else a=Tu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(bt(t),t):(bt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return ze(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Cl(t),l!==null&&l.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[Fe]=t}else Fa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),n=!1}else n=Tu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(bt(t),t):(bt(t),null)}return bt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Is(t,t.updateQueue),ze(t),null);case 4:return qe(),e===null&&Bc(t.stateNode.containerInfo),ze(t),null;case 10:return aa(t.type),ze(t),null;case 19:if(Q(Le),l=t.memoizedState,l===null)return ze(t),null;if(n=(t.flags&128)!==0,i=l.rendering,i===null)if(n)zn(l,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Bs(e),i!==null){for(t.flags|=128,zn(l,!1),e=i.updateQueue,t.updateQueue=e,Is(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Mo(a,e),a=a.sibling;return F(Le,Le.current&1|2),xe&&ea(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ht()>li&&(t.flags|=128,n=!0,zn(l,!1),t.lanes=4194304)}else{if(!n)if(e=Bs(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Is(t,e),zn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!xe)return ze(t),null}else 2*ht()-l.renderingStartTime>li&&a!==536870912&&(t.flags|=128,n=!0,zn(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ht(),e.sibling=null,a=Le.current,F(Le,n?a&1|2:a&1),xe&&ea(t,l.treeForkCount),e):(ze(t),null);case 22:case 23:return bt(t),ku(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),a=t.updateQueue,a!==null&&Is(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&Q(el),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),aa(ke),ze(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function hx(e,t){switch(Au(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return aa(ke),qe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return rs(t),null;case 31:if(t.memoizedState!==null){if(bt(t),t.alternate===null)throw Error(r(340));Fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(bt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(Le),null;case 4:return qe(),null;case 10:return aa(t.type),null;case 22:case 23:return bt(t),ku(),e!==null&&Q(el),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return aa(ke),null;case 25:return null;default:return null}}function ld(e,t){switch(Au(t),t.tag){case 3:aa(ke),qe();break;case 26:case 27:case 5:rs(t);break;case 4:qe();break;case 31:t.memoizedState!==null&&bt(t);break;case 13:bt(t);break;case 19:Q(Le);break;case 10:aa(t.type);break;case 22:case 23:bt(t),ku(),e!==null&&Q(el);break;case 24:aa(ke)}}function On(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var i=a.create,o=a.inst;l=i(),o.destroy=l}a=a.next}while(a!==n)}}catch(p){je(t,t.return,p)}}function wa(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var i=n.next;l=i;do{if((l.tag&e)===e){var o=l.inst,p=o.destroy;if(p!==void 0){o.destroy=void 0,n=t;var N=a,U=p;try{U()}catch(k){je(n,N,k)}}}l=l.next}while(l!==i)}}catch(k){je(t,t.return,k)}}function nd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Ko(t,a)}catch(l){je(e,e.return,l)}}}function sd(e,t,a){a.props=sl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){je(e,t,l)}}function _n(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){je(e,t,n)}}function Xt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){je(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){je(e,t,n)}else a.current=null}function id(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){je(e,e.return,n)}}function gc(e,t,a){try{var l=e.stateNode;Hx(l,e.type,a,t),l[ut]=t}catch(n){je(e,e.return,n)}}function ud(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ua(e.type)||e.tag===4}function vc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ud(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&&Ua(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 bc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Ft));else if(l!==4&&(l===27&&Ua(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(bc(e,t,a),e=e.sibling;e!==null;)bc(e,t,a),e=e.sibling}function Ps(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ua(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Ps(e,t,a),e=e.sibling;e!==null;)Ps(e,t,a),e=e.sibling}function cd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);tt(t,l,a),t[Fe]=e,t[ut]=a}catch(i){je(e,e.return,i)}}var ua=!1,Xe=!1,jc=!1,rd=typeof WeakSet=="function"?WeakSet:Set,$e=null;function xx(e,t){if(e=e.containerInfo,Gc=bi,e=bo(e),hu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var o=0,p=-1,N=-1,U=0,k=0,X=e,H=null;t:for(;;){for(var q;X!==a||n!==0&&X.nodeType!==3||(p=o+n),X!==i||l!==0&&X.nodeType!==3||(N=o+l),X.nodeType===3&&(o+=X.nodeValue.length),(q=X.firstChild)!==null;)H=X,X=q;for(;;){if(X===e)break t;if(H===a&&++U===n&&(p=o),H===i&&++k===l&&(N=o),(q=X.nextSibling)!==null)break;X=H,H=X.parentNode}X=q}a=p===-1||N===-1?null:{start:p,end:N}}else a=null}a=a||{start:0,end:0}}else a=null;for(Xc={focusedElem:e,selectionRange:a},bi=!1,$e=t;$e!==null;)if(t=$e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$e=e;else for(;$e!==null;){switch(t=$e,i=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(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,a=t,n=i.memoizedProps,i=i.memoizedState,l=a.stateNode;try{var I=sl(a.type,n);e=l.getSnapshotBeforeUpdate(I,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(ne){je(a,a.return,ne)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Zc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Zc(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,$e=e;break}$e=t.return}}function od(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ra(e,a),l&4&&On(5,a);break;case 1:if(ra(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){je(a,a.return,o)}else{var n=sl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){je(a,a.return,o)}}l&64&&nd(a),l&512&&_n(a,a.return);break;case 3:if(ra(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Ko(e,t)}catch(o){je(a,a.return,o)}}break;case 27:t===null&&l&4&&cd(a);case 26:case 5:ra(e,a),t===null&&l&4&&id(a),l&512&&_n(a,a.return);break;case 12:ra(e,a);break;case 31:ra(e,a),l&4&&md(e,a);break;case 13:ra(e,a),l&4&&hd(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Ex.bind(null,a),Qx(e,a))));break;case 22:if(l=a.memoizedState!==null||ua,!l){t=t!==null&&t.memoizedState!==null||Xe,n=ua;var i=Xe;ua=l,(Xe=t)&&!i?oa(e,a,(a.subtreeFlags&8772)!==0):ra(e,a),ua=n,Xe=i}break;case 30:break;default:ra(e,a)}}function fd(e){var t=e.alternate;t!==null&&(e.alternate=null,fd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Fi(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 Oe=null,rt=!1;function ca(e,t,a){for(a=a.child;a!==null;)dd(e,t,a),a=a.sibling}function dd(e,t,a){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(tn,a)}catch{}switch(a.tag){case 26:Xe||Xt(a,t),ca(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Xe||Xt(a,t);var l=Oe,n=rt;Ua(a.type)&&(Oe=a.stateNode,rt=!1),ca(e,t,a),Yn(a.stateNode),Oe=l,rt=n;break;case 5:Xe||Xt(a,t);case 6:if(l=Oe,n=rt,Oe=null,ca(e,t,a),Oe=l,rt=n,Oe!==null)if(rt)try{(Oe.nodeType===9?Oe.body:Oe.nodeName==="HTML"?Oe.ownerDocument.body:Oe).removeChild(a.stateNode)}catch(i){je(a,t,i)}else try{Oe.removeChild(a.stateNode)}catch(i){je(a,t,i)}break;case 18:Oe!==null&&(rt?(e=Oe,nm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Kl(e)):nm(Oe,a.stateNode));break;case 4:l=Oe,n=rt,Oe=a.stateNode.containerInfo,rt=!0,ca(e,t,a),Oe=l,rt=n;break;case 0:case 11:case 14:case 15:wa(2,a,t),Xe||wa(4,a,t),ca(e,t,a);break;case 1:Xe||(Xt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&sd(a,t,l)),ca(e,t,a);break;case 21:ca(e,t,a);break;case 22:Xe=(l=Xe)||a.memoizedState!==null,ca(e,t,a),Xe=l;break;default:ca(e,t,a)}}function md(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Kl(e)}catch(a){je(t,t.return,a)}}}function hd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Kl(e)}catch(a){je(t,t.return,a)}}function px(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new rd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new rd),t;default:throw Error(r(435,e.tag))}}function ei(e,t){var a=px(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=Ax.bind(null,e,l);l.then(n,n)}})}function ot(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],i=e,o=t,p=o;e:for(;p!==null;){switch(p.tag){case 27:if(Ua(p.type)){Oe=p.stateNode,rt=!1;break e}break;case 5:Oe=p.stateNode,rt=!1;break e;case 3:case 4:Oe=p.stateNode.containerInfo,rt=!0;break e}p=p.return}if(Oe===null)throw Error(r(160));dd(i,o,n),Oe=null,rt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xd(t,e),t=t.sibling}var Lt=null;function xd(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ot(t,e),ft(e),l&4&&(wa(3,e,e.return),On(3,e),wa(5,e,e.return));break;case 1:ot(t,e),ft(e),l&512&&(Xe||a===null||Xt(a,a.return)),l&64&&ua&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=Lt;if(ot(t,e),ft(e),l&512&&(Xe||a===null||Xt(a,a.return)),l&4){var i=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":i=n.getElementsByTagName("title")[0],(!i||i[nn]||i[Fe]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(l),n.head.insertBefore(i,n.querySelector("head > title"))),tt(i,l,a),i[Fe]=e,Je(i),l=i;break e;case"link":var o=xm("link","href",n).get(l+(a.href||""));if(o){for(var p=0;p<o.length;p++)if(i=o[p],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(p,1);break t}}i=n.createElement(l),tt(i,l,a),n.head.appendChild(i);break;case"meta":if(o=xm("meta","content",n).get(l+(a.content||""))){for(p=0;p<o.length;p++)if(i=o[p],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(p,1);break t}}i=n.createElement(l),tt(i,l,a),n.head.appendChild(i);break;default:throw Error(r(468,l))}i[Fe]=e,Je(i),l=i}e.stateNode=l}else pm(n,e.type,e.stateNode);else e.stateNode=hm(n,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?pm(n,e.type,e.stateNode):hm(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&gc(e,e.memoizedProps,a.memoizedProps)}break;case 27:ot(t,e),ft(e),l&512&&(Xe||a===null||Xt(a,a.return)),a!==null&&l&4&&gc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ot(t,e),ft(e),l&512&&(Xe||a===null||Xt(a,a.return)),e.flags&32){n=e.stateNode;try{pl(n,"")}catch(I){je(e,e.return,I)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,gc(e,n,a!==null?a.memoizedProps:n)),l&1024&&(jc=!0);break;case 6:if(ot(t,e),ft(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(I){je(e,e.return,I)}}break;case 3:if(pi=null,n=Lt,Lt=hi(t.containerInfo),ot(t,e),Lt=n,ft(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Kl(t.containerInfo)}catch(I){je(e,e.return,I)}jc&&(jc=!1,pd(e));break;case 4:l=Lt,Lt=hi(e.stateNode.containerInfo),ot(t,e),ft(e),Lt=l;break;case 12:ot(t,e),ft(e);break;case 31:ot(t,e),ft(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ei(e,l)));break;case 13:ot(t,e),ft(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ai=ht()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ei(e,l)));break;case 22:n=e.memoizedState!==null;var N=a!==null&&a.memoizedState!==null,U=ua,k=Xe;if(ua=U||n,Xe=k||N,ot(t,e),Xe=k,ua=U,ft(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||N||ua||Xe||il(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){N=a=t;try{if(i=N.stateNode,n)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{p=N.stateNode;var X=N.memoizedProps.style,H=X!=null&&X.hasOwnProperty("display")?X.display:null;p.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(I){je(N,N.return,I)}}}else if(t.tag===6){if(a===null){N=t;try{N.stateNode.nodeValue=n?"":N.memoizedProps}catch(I){je(N,N.return,I)}}}else if(t.tag===18){if(a===null){N=t;try{var q=N.stateNode;n?sm(q,!0):sm(N.stateNode,!1)}catch(I){je(N,N.return,I)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,ei(e,a))));break;case 19:ot(t,e),ft(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,ei(e,l)));break;case 30:break;case 21:break;default:ot(t,e),ft(e)}}function ft(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(ud(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var n=a.stateNode,i=vc(e);Ps(e,i,n);break;case 5:var o=a.stateNode;a.flags&32&&(pl(o,""),a.flags&=-33);var p=vc(e);Ps(e,p,o);break;case 3:case 4:var N=a.stateNode.containerInfo,U=vc(e);bc(e,U,N);break;default:throw Error(r(161))}}catch(k){je(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function pd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;pd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ra(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)od(e,t.alternate,t),t=t.sibling}function il(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:wa(4,t,t.return),il(t);break;case 1:Xt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&sd(t,t.return,a),il(t);break;case 27:Yn(t.stateNode);case 26:case 5:Xt(t,t.return),il(t);break;case 22:t.memoizedState===null&&il(t);break;case 30:il(t);break;default:il(t)}e=e.sibling}}function oa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,i=t,o=i.flags;switch(i.tag){case 0:case 11:case 15:oa(n,i,a),On(4,i);break;case 1:if(oa(n,i,a),l=i,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(U){je(l,l.return,U)}if(l=i,n=l.updateQueue,n!==null){var p=l.stateNode;try{var N=n.shared.hiddenCallbacks;if(N!==null)for(n.shared.hiddenCallbacks=null,n=0;n<N.length;n++)Zo(N[n],p)}catch(U){je(l,l.return,U)}}a&&o&64&&nd(i),_n(i,i.return);break;case 27:cd(i);case 26:case 5:oa(n,i,a),a&&l===null&&o&4&&id(i),_n(i,i.return);break;case 12:oa(n,i,a);break;case 31:oa(n,i,a),a&&o&4&&md(n,i);break;case 13:oa(n,i,a),a&&o&4&&hd(n,i);break;case 22:i.memoizedState===null&&oa(n,i,a),_n(i,i.return);break;case 30:break;default:oa(n,i,a)}t=t.sibling}}function Nc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&gn(a))}function Sc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gn(e))}function Bt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)yd(e,t,a,l),t=t.sibling}function yd(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Bt(e,t,a,l),n&2048&&On(9,t);break;case 1:Bt(e,t,a,l);break;case 3:Bt(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&gn(e)));break;case 12:if(n&2048){Bt(e,t,a,l),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,p=i.onPostCommit;typeof p=="function"&&p(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){je(t,t.return,N)}}else Bt(e,t,a,l);break;case 31:Bt(e,t,a,l);break;case 13:Bt(e,t,a,l);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?Bt(e,t,a,l):Rn(e,t):i._visibility&2?Bt(e,t,a,l):(i._visibility|=2,Hl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Nc(o,t);break;case 24:Bt(e,t,a,l),n&2048&&Sc(t.alternate,t);break;default:Bt(e,t,a,l)}}function Hl(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,o=t,p=a,N=l,U=o.flags;switch(o.tag){case 0:case 11:case 15:Hl(i,o,p,N,n),On(8,o);break;case 23:break;case 22:var k=o.stateNode;o.memoizedState!==null?k._visibility&2?Hl(i,o,p,N,n):Rn(i,o):(k._visibility|=2,Hl(i,o,p,N,n)),n&&U&2048&&Nc(o.alternate,o);break;case 24:Hl(i,o,p,N,n),n&&U&2048&&Sc(o.alternate,o);break;default:Hl(i,o,p,N,n)}t=t.sibling}}function Rn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:Rn(a,l),n&2048&&Nc(l.alternate,l);break;case 24:Rn(a,l),n&2048&&Sc(l.alternate,l);break;default:Rn(a,l)}t=t.sibling}}var Dn=8192;function ql(e,t,a){if(e.subtreeFlags&Dn)for(e=e.child;e!==null;)gd(e,t,a),e=e.sibling}function gd(e,t,a){switch(e.tag){case 26:ql(e,t,a),e.flags&Dn&&e.memoizedState!==null&&ap(a,Lt,e.memoizedState,e.memoizedProps);break;case 5:ql(e,t,a);break;case 3:case 4:var l=Lt;Lt=hi(e.stateNode.containerInfo),ql(e,t,a),Lt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Dn,Dn=16777216,ql(e,t,a),Dn=l):ql(e,t,a));break;default:ql(e,t,a)}}function vd(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 Un(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];$e=l,jd(l,e)}vd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bd(e),e=e.sibling}function bd(e){switch(e.tag){case 0:case 11:case 15:Un(e),e.flags&2048&&wa(9,e,e.return);break;case 3:Un(e);break;case 12:Un(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ti(e)):Un(e);break;default:Un(e)}}function ti(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];$e=l,jd(l,e)}vd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:wa(8,t,t.return),ti(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,ti(t));break;default:ti(t)}e=e.sibling}}function jd(e,t){for(;$e!==null;){var a=$e;switch(a.tag){case 0:case 11:case 15:wa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:gn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,$e=l;else e:for(a=e;$e!==null;){l=$e;var n=l.sibling,i=l.return;if(fd(l),l===a){$e=null;break e}if(n!==null){n.return=i,$e=n;break e}$e=i}}}var yx={getCacheForType:function(e){var t=Pe(ke),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Pe(ke).controller.signal}},gx=typeof WeakMap=="function"?WeakMap:Map,ge=0,Te=null,fe=null,me=0,be=0,jt=null,Ma=!1,Ll=!1,Ec=!1,fa=0,He=0,za=0,ul=0,Ac=0,Nt=0,Bl=0,Hn=null,dt=null,Cc=!1,ai=0,Nd=0,li=1/0,ni=null,Oa=null,Ze=0,_a=null,kl=null,da=0,Tc=0,wc=null,Sd=null,qn=0,Mc=null;function St(){return(ge&2)!==0&&me!==0?me&-me:Y.T!==null?Uc():qr()}function Ed(){if(Nt===0)if((me&536870912)===0||xe){var e=ds;ds<<=1,(ds&3932160)===0&&(ds=262144),Nt=e}else Nt=536870912;return e=vt.current,e!==null&&(e.flags|=32),Nt}function mt(e,t,a){(e===Te&&(be===2||be===9)||e.cancelPendingCommit!==null)&&(Yl(e,0),Ra(e,me,Nt,!1)),ln(e,a),((ge&2)===0||e!==Te)&&(e===Te&&((ge&2)===0&&(ul|=a),He===4&&Ra(e,me,Nt,!1)),Qt(e))}function Ad(e,t,a){if((ge&6)!==0)throw Error(r(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||an(e,t),n=l?jx(e,t):Oc(e,t,!0),i=l;do{if(n===0){Ll&&!l&&Ra(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!vx(a)){n=Oc(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var p=e;n=Hn;var N=p.current.memoizedState.isDehydrated;if(N&&(Yl(p,o).flags|=256),o=Oc(p,o,!1),o!==2){if(Ec&&!N){p.errorRecoveryDisabledLanes|=i,ul|=i,n=4;break e}i=dt,dt=n,i!==null&&(dt===null?dt=i:dt.push.apply(dt,i))}n=o}if(i=!1,n!==2)continue}}if(n===1){Yl(e,0),Ra(e,t,0,!0);break}e:{switch(l=e,i=n,i){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Ra(l,t,Nt,!Ma);break e;case 2:dt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=ai+300-ht(),10<n)){if(Ra(l,t,Nt,!Ma),hs(l,0,!0)!==0)break e;da=t,l.timeoutHandle=am(Cd.bind(null,l,a,dt,ni,Cc,t,Nt,ul,Bl,Ma,i,"Throttled",-0,0),n);break e}Cd(l,a,dt,ni,Cc,t,Nt,ul,Bl,Ma,i,null,-0,0)}}break}while(!0);Qt(e)}function Cd(e,t,a,l,n,i,o,p,N,U,k,X,H,q){if(e.timeoutHandle=-1,X=t.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ft},gd(t,i,X);var I=(i&62914560)===i?ai-ht():(i&4194048)===i?Nd-ht():0;if(I=lp(X,I),I!==null){da=i,e.cancelPendingCommit=I(Dd.bind(null,e,t,i,a,l,n,o,p,N,k,X,null,H,q)),Ra(e,i,o,!U);return}}Dd(e,t,i,a,l,n,o,p,N)}function vx(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var n=a[l],i=n.getSnapshot;n=n.value;try{if(!yt(i(),n))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Ra(e,t,a,l){t&=~Ac,t&=~ul,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var i=31-pt(n),o=1<<i;l[i]=-1,n&=~o}a!==0&&Dr(e,a,t)}function si(){return(ge&6)===0?(Ln(0),!1):!0}function zc(){if(fe!==null){if(be===0)var e=fe.return;else e=fe,ta=Ia=null,Zu(e),Ol=null,bn=0,e=fe;for(;e!==null;)ld(e.alternate,e),e=e.return;fe=null}}function Yl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Bx(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),da=0,zc(),Te=e,fe=a=Pt(e.current,null),me=t,be=0,jt=null,Ma=!1,Ll=an(e,t),Ec=!1,Bl=Nt=Ac=ul=za=He=0,dt=Hn=null,Cc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-pt(l),i=1<<n;t|=e[n],l&=~i}return fa=t,Cs(),a}function Td(e,t){ce=null,Y.H=wn,t===zl||t===Ds?(t=Go(),be=3):t===Du?(t=Go(),be=4):be=t===cc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,fe===null&&(He=1,Js(e,wt(t,e.current)))}function wd(){var e=vt.current;return e===null?!0:(me&4194048)===me?_t===null:(me&62914560)===me||(me&536870912)!==0?e===_t:!1}function Md(){var e=Y.H;return Y.H=wn,e===null?wn:e}function zd(){var e=Y.A;return Y.A=yx,e}function ii(){He=4,Ma||(me&4194048)!==me&&vt.current!==null||(Ll=!0),(za&134217727)===0&&(ul&134217727)===0||Te===null||Ra(Te,me,Nt,!1)}function Oc(e,t,a){var l=ge;ge|=2;var n=Md(),i=zd();(Te!==e||me!==t)&&(ni=null,Yl(e,t)),t=!1;var o=He;e:do try{if(be!==0&&fe!==null){var p=fe,N=jt;switch(be){case 8:zc(),o=6;break e;case 3:case 2:case 9:case 6:vt.current===null&&(t=!0);var U=be;if(be=0,jt=null,Gl(e,p,N,U),a&&Ll){o=0;break e}break;default:U=be,be=0,jt=null,Gl(e,p,N,U)}}bx(),o=He;break}catch(k){Td(e,k)}while(!0);return t&&e.shellSuspendCounter++,ta=Ia=null,ge=l,Y.H=n,Y.A=i,fe===null&&(Te=null,me=0,Cs()),o}function bx(){for(;fe!==null;)Od(fe)}function jx(e,t){var a=ge;ge|=2;var l=Md(),n=zd();Te!==e||me!==t?(ni=null,li=ht()+500,Yl(e,t)):Ll=an(e,t);e:do try{if(be!==0&&fe!==null){t=fe;var i=jt;t:switch(be){case 1:be=0,jt=null,Gl(e,t,i,1);break;case 2:case 9:if(ko(i)){be=0,jt=null,_d(t);break}t=function(){be!==2&&be!==9||Te!==e||(be=7),Qt(e)},i.then(t,t);break e;case 3:be=7;break e;case 4:be=5;break e;case 7:ko(i)?(be=0,jt=null,_d(t)):(be=0,jt=null,Gl(e,t,i,7));break;case 5:var o=null;switch(fe.tag){case 26:o=fe.memoizedState;case 5:case 27:var p=fe;if(o?ym(o):p.stateNode.complete){be=0,jt=null;var N=p.sibling;if(N!==null)fe=N;else{var U=p.return;U!==null?(fe=U,ui(U)):fe=null}break t}}be=0,jt=null,Gl(e,t,i,5);break;case 6:be=0,jt=null,Gl(e,t,i,6);break;case 8:zc(),He=6;break e;default:throw Error(r(462))}}Nx();break}catch(k){Td(e,k)}while(!0);return ta=Ia=null,Y.H=l,Y.A=n,ge=a,fe!==null?0:(Te=null,me=0,Cs(),He)}function Nx(){for(;fe!==null&&!Vh();)Od(fe)}function Od(e){var t=td(e.alternate,e,fa);e.memoizedProps=e.pendingProps,t===null?ui(e):fe=t}function _d(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=$f(a,t,t.pendingProps,t.type,void 0,me);break;case 11:t=$f(a,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Zu(t);default:ld(a,t),t=fe=Mo(t,fa),t=td(a,t,fa)}e.memoizedProps=e.pendingProps,t===null?ui(e):fe=t}function Gl(e,t,a,l){ta=Ia=null,Zu(t),Ol=null,bn=0;var n=t.return;try{if(ox(e,n,t,a,me)){He=1,Js(e,wt(a,e.current)),fe=null;return}}catch(i){if(n!==null)throw fe=n,i;He=1,Js(e,wt(a,e.current)),fe=null;return}t.flags&32768?(xe||l===1?e=!0:Ll||(me&536870912)!==0?e=!1:(Ma=e=!0,(l===2||l===9||l===3||l===6)&&(l=vt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Rd(t,e)):ui(t)}function ui(e){var t=e;do{if((t.flags&32768)!==0){Rd(t,Ma);return}e=t.return;var a=mx(t.alternate,t,fa);if(a!==null){fe=a;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);He===0&&(He=5)}function Rd(e,t){do{var a=hx(e.alternate,e);if(a!==null){a.flags&=32767,fe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=a}while(e!==null);He=6,fe=null}function Dd(e,t,a,l,n,i,o,p,N){e.cancelPendingCommit=null;do ci();while(Ze!==0);if((ge&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,i|=vu,t0(e,a,i,o,p,N),e===Te&&(fe=Te=null,me=0),kl=t,_a=e,da=a,Tc=i,wc=n,Sd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Cx(os,function(){return Bd(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=Y.T,Y.T=null,n=$.p,$.p=2,o=ge,ge|=4;try{xx(e,t,a)}finally{ge=o,$.p=n,Y.T=l}}Ze=1,Ud(),Hd(),qd()}}function Ud(){if(Ze===1){Ze=0;var e=_a,t=kl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=Y.T,Y.T=null;var l=$.p;$.p=2;var n=ge;ge|=4;try{xd(t,e);var i=Xc,o=bo(e.containerInfo),p=i.focusedElem,N=i.selectionRange;if(o!==p&&p&&p.ownerDocument&&vo(p.ownerDocument.documentElement,p)){if(N!==null&&hu(p)){var U=N.start,k=N.end;if(k===void 0&&(k=U),"selectionStart"in p)p.selectionStart=U,p.selectionEnd=Math.min(k,p.value.length);else{var X=p.ownerDocument||document,H=X&&X.defaultView||window;if(H.getSelection){var q=H.getSelection(),I=p.textContent.length,ne=Math.min(N.start,I),Ae=N.end===void 0?ne:Math.min(N.end,I);!q.extend&&ne>Ae&&(o=Ae,Ae=ne,ne=o);var O=go(p,ne),T=go(p,Ae);if(O&&T&&(q.rangeCount!==1||q.anchorNode!==O.node||q.anchorOffset!==O.offset||q.focusNode!==T.node||q.focusOffset!==T.offset)){var D=X.createRange();D.setStart(O.node,O.offset),q.removeAllRanges(),ne>Ae?(q.addRange(D),q.extend(T.node,T.offset)):(D.setEnd(T.node,T.offset),q.addRange(D))}}}}for(X=[],q=p;q=q.parentNode;)q.nodeType===1&&X.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<X.length;p++){var G=X[p];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}bi=!!Gc,Xc=Gc=null}finally{ge=n,$.p=l,Y.T=a}}e.current=t,Ze=2}}function Hd(){if(Ze===2){Ze=0;var e=_a,t=kl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=Y.T,Y.T=null;var l=$.p;$.p=2;var n=ge;ge|=4;try{od(e,t.alternate,t)}finally{ge=n,$.p=l,Y.T=a}}Ze=3}}function qd(){if(Ze===4||Ze===3){Ze=0,Zh();var e=_a,t=kl,a=da,l=Sd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ze=5:(Ze=0,kl=_a=null,Ld(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Oa=null),$i(a),t=t.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(tn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=Y.T,n=$.p,$.p=2,Y.T=null;try{for(var i=e.onRecoverableError,o=0;o<l.length;o++){var p=l[o];i(p.value,{componentStack:p.stack})}}finally{Y.T=t,$.p=n}}(da&3)!==0&&ci(),Qt(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===Mc?qn++:(qn=0,Mc=e):qn=0,Ln(0)}}function Ld(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,gn(t)))}function ci(){return Ud(),Hd(),qd(),Bd()}function Bd(){if(Ze!==5)return!1;var e=_a,t=Tc;Tc=0;var a=$i(da),l=Y.T,n=$.p;try{$.p=32>a?32:a,Y.T=null,a=wc,wc=null;var i=_a,o=da;if(Ze=0,kl=_a=null,da=0,(ge&6)!==0)throw Error(r(331));var p=ge;if(ge|=4,bd(i.current),yd(i,i.current,o,a),ge=p,Ln(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(tn,i)}catch{}return!0}finally{$.p=n,Y.T=l,Ld(e,t)}}function kd(e,t,a){t=wt(a,t),t=uc(e.stateNode,t,2),e=Aa(e,t,2),e!==null&&(ln(e,2),Qt(e))}function je(e,t,a){if(e.tag===3)kd(e,e,a);else for(;t!==null;){if(t.tag===3){kd(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Oa===null||!Oa.has(l))){e=wt(a,e),a=Yf(2),l=Aa(t,a,2),l!==null&&(Gf(a,l,t,e),ln(l,2),Qt(l));break}}t=t.return}}function _c(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new gx;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(Ec=!0,n.add(a),e=Sx.bind(null,e,t,a),t.then(e,e))}function Sx(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Te===e&&(me&a)===a&&(He===4||He===3&&(me&62914560)===me&&300>ht()-ai?(ge&2)===0&&Yl(e,0):Ac|=a,Bl===me&&(Bl=0)),Qt(e)}function Yd(e,t){t===0&&(t=Rr()),e=$a(e,t),e!==null&&(ln(e,t),Qt(e))}function Ex(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Yd(e,a)}function Ax(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),Yd(e,a)}function Cx(e,t){return Vi(e,t)}var ri=null,Xl=null,Rc=!1,oi=!1,Dc=!1,Da=0;function Qt(e){e!==Xl&&e.next===null&&(Xl===null?ri=Xl=e:Xl=Xl.next=e),oi=!0,Rc||(Rc=!0,wx())}function Ln(e,t){if(!Dc&&oi){Dc=!0;do for(var a=!1,l=ri;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var i=0;else{var o=l.suspendedLanes,p=l.pingedLanes;i=(1<<31-pt(42|e)+1)-1,i&=n&~(o&~p),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,Vd(l,i))}else i=me,i=hs(l,l===Te?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||an(l,i)||(a=!0,Vd(l,i));l=l.next}while(a);Dc=!1}}function Tx(){Gd()}function Gd(){oi=Rc=!1;var e=0;Da!==0&&Lx()&&(e=Da);for(var t=ht(),a=null,l=ri;l!==null;){var n=l.next,i=Xd(l,t);i===0?(l.next=null,a===null?ri=n:a.next=n,n===null&&(Xl=a)):(a=l,(e!==0||(i&3)!==0)&&(oi=!0)),l=n}Ze!==0&&Ze!==5||Ln(e),Da!==0&&(Da=0)}function Xd(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-pt(i),p=1<<o,N=n[o];N===-1?((p&a)===0||(p&l)!==0)&&(n[o]=e0(p,t)):N<=t&&(e.expiredLanes|=p),i&=~p}if(t=Te,a=me,a=hs(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(be===2||be===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Zi(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||an(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Zi(l),$i(a)){case 2:case 8:a=Or;break;case 32:a=os;break;case 268435456:a=_r;break;default:a=os}return l=Qd.bind(null,e),a=Vi(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Zi(l),e.callbackPriority=2,e.callbackNode=null,2}function Qd(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ci()&&e.callbackNode!==a)return null;var l=me;return l=hs(e,e===Te?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Ad(e,l,t),Xd(e,ht()),e.callbackNode!=null&&e.callbackNode===a?Qd.bind(null,e):null)}function Vd(e,t){if(ci())return null;Ad(e,t,!0)}function wx(){kx(function(){(ge&6)!==0?Vi(zr,Tx):Gd()})}function Uc(){if(Da===0){var e=wl;e===0&&(e=fs,fs<<=1,(fs&261888)===0&&(fs=256)),Da=e}return Da}function Zd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:gs(""+e)}function Kd(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Mx(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var i=Zd((n[ut]||null).action),o=l.submitter;o&&(t=(t=o[ut]||null)?Zd(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var p=new Ns("action","action",null,l,n);e.push({event:p,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Da!==0){var N=o?Kd(n,o):new FormData(n);tc(a,{pending:!0,data:N,method:n.method,action:i},null,N)}}else typeof i=="function"&&(p.preventDefault(),N=o?Kd(n,o):new FormData(n),tc(a,{pending:!0,data:N,method:n.method,action:i},i,N))},currentTarget:n}]})}}for(var Hc=0;Hc<gu.length;Hc++){var qc=gu[Hc],zx=qc.toLowerCase(),Ox=qc[0].toUpperCase()+qc.slice(1);qt(zx,"on"+Ox)}qt(So,"onAnimationEnd"),qt(Eo,"onAnimationIteration"),qt(Ao,"onAnimationStart"),qt("dblclick","onDoubleClick"),qt("focusin","onFocus"),qt("focusout","onBlur"),qt(K0,"onTransitionRun"),qt(J0,"onTransitionStart"),qt($0,"onTransitionCancel"),qt(Co,"onTransitionEnd"),hl("onMouseEnter",["mouseout","mouseover"]),hl("onMouseLeave",["mouseout","mouseover"]),hl("onPointerEnter",["pointerout","pointerover"]),hl("onPointerLeave",["pointerout","pointerover"]),Va("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Va("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Va("onBeforeInput",["compositionend","keypress","textInput","paste"]),Va("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Va("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Va("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bn="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(" "),_x=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bn));function Jd(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var o=l.length-1;0<=o;o--){var p=l[o],N=p.instance,U=p.currentTarget;if(p=p.listener,N!==i&&n.isPropagationStopped())break e;i=p,n.currentTarget=U;try{i(n)}catch(k){As(k)}n.currentTarget=null,i=N}else for(o=0;o<l.length;o++){if(p=l[o],N=p.instance,U=p.currentTarget,p=p.listener,N!==i&&n.isPropagationStopped())break e;i=p,n.currentTarget=U;try{i(n)}catch(k){As(k)}n.currentTarget=null,i=N}}}}function de(e,t){var a=t[Wi];a===void 0&&(a=t[Wi]=new Set);var l=e+"__bubble";a.has(l)||($d(t,e,2,!1),a.add(l))}function Lc(e,t,a){var l=0;t&&(l|=4),$d(a,e,l,t)}var fi="_reactListening"+Math.random().toString(36).slice(2);function Bc(e){if(!e[fi]){e[fi]=!0,kr.forEach(function(a){a!=="selectionchange"&&(_x.has(a)||Lc(a,!1,e),Lc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fi]||(t[fi]=!0,Lc("selectionchange",!1,t))}}function $d(e,t,a,l){switch(Em(t)){case 2:var n=ip;break;case 8:n=up;break;default:n=er}a=n.bind(null,t,a,e),n=void 0,!su||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function kc(e,t,a,l,n){var i=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var p=l.stateNode.containerInfo;if(p===n)break;if(o===4)for(o=l.return;o!==null;){var N=o.tag;if((N===3||N===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;p!==null;){if(o=fl(p),o===null)return;if(N=o.tag,N===5||N===6||N===26||N===27){l=i=o;continue e}p=p.parentNode}}l=l.return}Ir(function(){var U=i,k=lu(a),X=[];e:{var H=To.get(e);if(H!==void 0){var q=Ns,I=e;switch(e){case"keypress":if(bs(a)===0)break e;case"keydown":case"keyup":q=A0;break;case"focusin":I="focus",q=ru;break;case"focusout":I="blur",q=ru;break;case"beforeblur":case"afterblur":q=ru;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=to;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=m0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=w0;break;case So:case Eo:case Ao:q=p0;break;case Co:q=z0;break;case"scroll":case"scrollend":q=f0;break;case"wheel":q=_0;break;case"copy":case"cut":case"paste":q=g0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=lo;break;case"toggle":case"beforetoggle":q=D0}var ne=(t&4)!==0,Ae=!ne&&(e==="scroll"||e==="scrollend"),O=ne?H!==null?H+"Capture":null:H;ne=[];for(var T=U,D;T!==null;){var G=T;if(D=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||D===null||O===null||(G=un(T,O),G!=null&&ne.push(kn(T,G,D))),Ae)break;T=T.return}0<ne.length&&(H=new q(H,I,null,a,k),X.push({event:H,listeners:ne}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",H&&a!==au&&(I=a.relatedTarget||a.fromElement)&&(fl(I)||I[ol]))break e;if((q||H)&&(H=k.window===k?k:(H=k.ownerDocument)?H.defaultView||H.parentWindow:window,q?(I=a.relatedTarget||a.toElement,q=U,I=I?fl(I):null,I!==null&&(Ae=m(I),ne=I.tag,I!==Ae||ne!==5&&ne!==27&&ne!==6)&&(I=null)):(q=null,I=U),q!==I)){if(ne=to,G="onMouseLeave",O="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ne=lo,G="onPointerLeave",O="onPointerEnter",T="pointer"),Ae=q==null?H:sn(q),D=I==null?H:sn(I),H=new ne(G,T+"leave",q,a,k),H.target=Ae,H.relatedTarget=D,G=null,fl(k)===U&&(ne=new ne(O,T+"enter",I,a,k),ne.target=D,ne.relatedTarget=Ae,G=ne),Ae=G,q&&I)t:{for(ne=Rx,O=q,T=I,D=0,G=O;G;G=ne(G))D++;G=0;for(var ae=T;ae;ae=ne(ae))G++;for(;0<D-G;)O=ne(O),D--;for(;0<G-D;)T=ne(T),G--;for(;D--;){if(O===T||T!==null&&O===T.alternate){ne=O;break t}O=ne(O),T=ne(T)}ne=null}else ne=null;q!==null&&Wd(X,H,q,ne,!1),I!==null&&Ae!==null&&Wd(X,Ae,I,ne,!0)}}e:{if(H=U?sn(U):window,q=H.nodeName&&H.nodeName.toLowerCase(),q==="select"||q==="input"&&H.type==="file")var pe=fo;else if(ro(H))if(mo)pe=Q0;else{pe=G0;var ee=Y0}else q=H.nodeName,!q||q.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?U&&tu(U.elementType)&&(pe=fo):pe=X0;if(pe&&(pe=pe(e,U))){oo(X,pe,a,k);break e}ee&&ee(e,H,U),e==="focusout"&&U&&H.type==="number"&&U.memoizedProps.value!=null&&eu(H,"number",H.value)}switch(ee=U?sn(U):window,e){case"focusin":(ro(ee)||ee.contentEditable==="true")&&(bl=ee,xu=U,xn=null);break;case"focusout":xn=xu=bl=null;break;case"mousedown":pu=!0;break;case"contextmenu":case"mouseup":case"dragend":pu=!1,jo(X,a,k);break;case"selectionchange":if(Z0)break;case"keydown":case"keyup":jo(X,a,k)}var re;if(fu)e:{switch(e){case"compositionstart":var he="onCompositionStart";break e;case"compositionend":he="onCompositionEnd";break e;case"compositionupdate":he="onCompositionUpdate";break e}he=void 0}else vl?uo(e,a)&&(he="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(he="onCompositionStart");he&&(no&&a.locale!=="ko"&&(vl||he!=="onCompositionStart"?he==="onCompositionEnd"&&vl&&(re=Pr()):(ga=k,iu="value"in ga?ga.value:ga.textContent,vl=!0)),ee=di(U,he),0<ee.length&&(he=new ao(he,e,null,a,k),X.push({event:he,listeners:ee}),re?he.data=re:(re=co(a),re!==null&&(he.data=re)))),(re=H0?q0(e,a):L0(e,a))&&(he=di(U,"onBeforeInput"),0<he.length&&(ee=new ao("onBeforeInput","beforeinput",null,a,k),X.push({event:ee,listeners:he}),ee.data=re)),Mx(X,e,U,a,k)}Jd(X,t)})}function kn(e,t,a){return{instance:e,listener:t,currentTarget:a}}function di(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=un(e,a),n!=null&&l.unshift(kn(e,n,i)),n=un(e,t),n!=null&&l.push(kn(e,n,i))),e.tag===3)return l;e=e.return}return[]}function Rx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Wd(e,t,a,l,n){for(var i=t._reactName,o=[];a!==null&&a!==l;){var p=a,N=p.alternate,U=p.stateNode;if(p=p.tag,N!==null&&N===l)break;p!==5&&p!==26&&p!==27||U===null||(N=U,n?(U=un(a,i),U!=null&&o.unshift(kn(a,U,N))):n||(U=un(a,i),U!=null&&o.push(kn(a,U,N)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var Dx=/\r\n?/g,Ux=/\u0000|\uFFFD/g;function Fd(e){return(typeof e=="string"?e:""+e).replace(Dx,`
|
|
49
|
+
`).replace(Ux,"")}function Id(e,t){return t=Fd(t),Fd(e)===t}function Ee(e,t,a,l,n,i){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||pl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&pl(e,""+l);break;case"className":ps(e,"class",l);break;case"tabIndex":ps(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ps(e,a,l);break;case"style":Wr(e,l,i);break;case"data":if(t!=="object"){ps(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=gs(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"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 i=="function"&&(a==="formAction"?(t!=="input"&&Ee(e,t,"name",n.name,n,null),Ee(e,t,"formEncType",n.formEncType,n,null),Ee(e,t,"formMethod",n.formMethod,n,null),Ee(e,t,"formTarget",n.formTarget,n,null)):(Ee(e,t,"encType",n.encType,n,null),Ee(e,t,"method",n.method,n,null),Ee(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=gs(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Ft);break;case"onScroll":l!=null&&de("scroll",e);break;case"onScrollEnd":l!=null&&de("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=gs(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":de("beforetoggle",e),de("toggle",e),xs(e,"popover",l);break;case"xlinkActuate":Wt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Wt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Wt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Wt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Wt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Wt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":xs(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=r0.get(a)||a,xs(e,a,l))}}function Yc(e,t,a,l,n,i){switch(a){case"style":Wr(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof l=="string"?pl(e,l):(typeof l=="number"||typeof l=="bigint")&&pl(e,""+l);break;case"onScroll":l!=null&&de("scroll",e);break;case"onScrollEnd":l!=null&&de("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Ft);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yr.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),i=e[ut]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof l=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):xs(e,a,l)}}}function tt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":de("error",e),de("load",e);var l=!1,n=!1,i;for(i in a)if(a.hasOwnProperty(i)){var o=a[i];if(o!=null)switch(i){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ee(e,t,i,o,a,null)}}n&&Ee(e,t,"srcSet",a.srcSet,a,null),l&&Ee(e,t,"src",a.src,a,null);return;case"input":de("invalid",e);var p=i=o=n=null,N=null,U=null;for(l in a)if(a.hasOwnProperty(l)){var k=a[l];if(k!=null)switch(l){case"name":n=k;break;case"type":o=k;break;case"checked":N=k;break;case"defaultChecked":U=k;break;case"value":i=k;break;case"defaultValue":p=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(137,t));break;default:Ee(e,t,l,k,a,null)}}Zr(e,i,p,N,U,o,n,!1);return;case"select":de("invalid",e),l=o=i=null;for(n in a)if(a.hasOwnProperty(n)&&(p=a[n],p!=null))switch(n){case"value":i=p;break;case"defaultValue":o=p;break;case"multiple":l=p;default:Ee(e,t,n,p,a,null)}t=i,a=o,e.multiple=!!l,t!=null?xl(e,!!l,t,!1):a!=null&&xl(e,!!l,a,!0);return;case"textarea":de("invalid",e),i=n=l=null;for(o in a)if(a.hasOwnProperty(o)&&(p=a[o],p!=null))switch(o){case"value":l=p;break;case"defaultValue":n=p;break;case"children":i=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:Ee(e,t,o,p,a,null)}Jr(e,l,n,i);return;case"option":for(N in a)if(a.hasOwnProperty(N)&&(l=a[N],l!=null))switch(N){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ee(e,t,N,l,a,null)}return;case"dialog":de("beforetoggle",e),de("toggle",e),de("cancel",e),de("close",e);break;case"iframe":case"object":de("load",e);break;case"video":case"audio":for(l=0;l<Bn.length;l++)de(Bn[l],e);break;case"image":de("error",e),de("load",e);break;case"details":de("toggle",e);break;case"embed":case"source":case"link":de("error",e),de("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(U in a)if(a.hasOwnProperty(U)&&(l=a[U],l!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ee(e,t,U,l,a,null)}return;default:if(tu(t)){for(k in a)a.hasOwnProperty(k)&&(l=a[k],l!==void 0&&Yc(e,t,k,l,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(l=a[p],l!=null&&Ee(e,t,p,l,a,null))}function Hx(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,o=null,p=null,N=null,U=null,k=null;for(q in a){var X=a[q];if(a.hasOwnProperty(q)&&X!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":N=X;default:l.hasOwnProperty(q)||Ee(e,t,q,null,l,X)}}for(var H in l){var q=l[H];if(X=a[H],l.hasOwnProperty(H)&&(q!=null||X!=null))switch(H){case"type":i=q;break;case"name":n=q;break;case"checked":U=q;break;case"defaultChecked":k=q;break;case"value":o=q;break;case"defaultValue":p=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,t));break;default:q!==X&&Ee(e,t,H,q,l,X)}}Pi(e,o,p,N,U,k,i,n);return;case"select":q=o=p=H=null;for(i in a)if(N=a[i],a.hasOwnProperty(i)&&N!=null)switch(i){case"value":break;case"multiple":q=N;default:l.hasOwnProperty(i)||Ee(e,t,i,null,l,N)}for(n in l)if(i=l[n],N=a[n],l.hasOwnProperty(n)&&(i!=null||N!=null))switch(n){case"value":H=i;break;case"defaultValue":p=i;break;case"multiple":o=i;default:i!==N&&Ee(e,t,n,i,l,N)}t=p,a=o,l=q,H!=null?xl(e,!!a,H,!1):!!l!=!!a&&(t!=null?xl(e,!!a,t,!0):xl(e,!!a,a?[]:"",!1));return;case"textarea":q=H=null;for(p in a)if(n=a[p],a.hasOwnProperty(p)&&n!=null&&!l.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Ee(e,t,p,null,l,n)}for(o in l)if(n=l[o],i=a[o],l.hasOwnProperty(o)&&(n!=null||i!=null))switch(o){case"value":H=n;break;case"defaultValue":q=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==i&&Ee(e,t,o,n,l,i)}Kr(e,H,q);return;case"option":for(var I in a)if(H=a[I],a.hasOwnProperty(I)&&H!=null&&!l.hasOwnProperty(I))switch(I){case"selected":e.selected=!1;break;default:Ee(e,t,I,null,l,H)}for(N in l)if(H=l[N],q=a[N],l.hasOwnProperty(N)&&H!==q&&(H!=null||q!=null))switch(N){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Ee(e,t,N,H,l,q)}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 ne in a)H=a[ne],a.hasOwnProperty(ne)&&H!=null&&!l.hasOwnProperty(ne)&&Ee(e,t,ne,null,l,H);for(U in l)if(H=l[U],q=a[U],l.hasOwnProperty(U)&&H!==q&&(H!=null||q!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:Ee(e,t,U,H,l,q)}return;default:if(tu(t)){for(var Ae in a)H=a[Ae],a.hasOwnProperty(Ae)&&H!==void 0&&!l.hasOwnProperty(Ae)&&Yc(e,t,Ae,void 0,l,H);for(k in l)H=l[k],q=a[k],!l.hasOwnProperty(k)||H===q||H===void 0&&q===void 0||Yc(e,t,k,H,l,q);return}}for(var O in a)H=a[O],a.hasOwnProperty(O)&&H!=null&&!l.hasOwnProperty(O)&&Ee(e,t,O,null,l,H);for(X in l)H=l[X],q=a[X],!l.hasOwnProperty(X)||H===q||H==null&&q==null||Ee(e,t,X,H,l,q)}function Pd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],i=n.transferSize,o=n.initiatorType,p=n.duration;if(i&&p&&Pd(o)){for(o=0,p=n.responseEnd,l+=1;l<a.length;l++){var N=a[l],U=N.startTime;if(U>p)break;var k=N.transferSize,X=N.initiatorType;k&&Pd(X)&&(N=N.responseEnd,o+=k*(N<p?1:(p-U)/(N-U)))}if(--l,t+=8*(i+o)/(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 Gc=null,Xc=null;function mi(e){return e.nodeType===9?e:e.ownerDocument}function em(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 tm(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 Qc(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 Vc=null;function Lx(){var e=window.event;return e&&e.type==="popstate"?e===Vc?!1:(Vc=e,!0):(Vc=null,!1)}var am=typeof setTimeout=="function"?setTimeout:void 0,Bx=typeof clearTimeout=="function"?clearTimeout:void 0,lm=typeof Promise=="function"?Promise:void 0,kx=typeof queueMicrotask=="function"?queueMicrotask:typeof lm<"u"?function(e){return lm.resolve(null).then(e).catch(Yx)}:am;function Yx(e){setTimeout(function(){throw e})}function Ua(e){return e==="head"}function nm(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),Kl(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Yn(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Yn(a);for(var i=a.firstChild;i;){var o=i.nextSibling,p=i.nodeName;i[nn]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=o}}else a==="body"&&Yn(e.ownerDocument.body);a=n}while(a);Kl(t)}function sm(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Zc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Zc(a),Fi(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Gx(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[nn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==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(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Rt(e.nextSibling),e===null)break}return null}function Xx(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Rt(e.nextSibling),e===null))return null;return e}function im(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Rt(e.nextSibling),e===null))return null;return e}function Kc(e){return e.data==="$?"||e.data==="$~"}function Jc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Qx(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Rt(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 $c=null;function um(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Rt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function cm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function rm(e,t,a){switch(t=mi(a),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 Yn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Fi(e)}var Dt=new Map,om=new Set;function hi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ma=$.d;$.d={f:Vx,r:Zx,D:Kx,C:Jx,L:$x,m:Wx,X:Ix,S:Fx,M:Px};function Vx(){var e=ma.f(),t=si();return e||t}function Zx(e){var t=dl(e);t!==null&&t.tag===5&&t.type==="form"?Tf(t):ma.r(e)}var Ql=typeof document>"u"?null:document;function fm(e,t,a){var l=Ql;if(l&&typeof t=="string"&&t){var n=Ct(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),om.has(n)||(om.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),tt(t,"link",e),Je(t),l.head.appendChild(t)))}}function Kx(e){ma.D(e),fm("dns-prefetch",e,null)}function Jx(e,t){ma.C(e,t),fm("preconnect",e,t)}function $x(e,t,a){ma.L(e,t,a);var l=Ql;if(l&&e&&t){var n='link[rel="preload"][as="'+Ct(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+Ct(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+Ct(a.imageSizes)+'"]')):n+='[href="'+Ct(e)+'"]';var i=n;switch(t){case"style":i=Vl(e);break;case"script":i=Zl(e)}Dt.has(i)||(e=j({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Dt.set(i,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(Gn(i))||t==="script"&&l.querySelector(Xn(i))||(t=l.createElement("link"),tt(t,"link",e),Je(t),l.head.appendChild(t)))}}function Wx(e,t){ma.m(e,t);var a=Ql;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Ct(l)+'"][href="'+Ct(e)+'"]',i=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Zl(e)}if(!Dt.has(i)&&(e=j({rel:"modulepreload",href:e},t),Dt.set(i,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Xn(i)))return}l=a.createElement("link"),tt(l,"link",e),Je(l),a.head.appendChild(l)}}}function Fx(e,t,a){ma.S(e,t,a);var l=Ql;if(l&&e){var n=ml(l).hoistableStyles,i=Vl(e);t=t||"default";var o=n.get(i);if(!o){var p={loading:0,preload:null};if(o=l.querySelector(Gn(i)))p.loading=5;else{e=j({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Dt.get(i))&&Wc(e,a);var N=o=l.createElement("link");Je(N),tt(N,"link",e),N._p=new Promise(function(U,k){N.onload=U,N.onerror=k}),N.addEventListener("load",function(){p.loading|=1}),N.addEventListener("error",function(){p.loading|=2}),p.loading|=4,xi(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:p},n.set(i,o)}}}function Ix(e,t){ma.X(e,t);var a=Ql;if(a&&e){var l=ml(a).hoistableScripts,n=Zl(e),i=l.get(n);i||(i=a.querySelector(Xn(n)),i||(e=j({src:e,async:!0},t),(t=Dt.get(n))&&Fc(e,t),i=a.createElement("script"),Je(i),tt(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function Px(e,t){ma.M(e,t);var a=Ql;if(a&&e){var l=ml(a).hoistableScripts,n=Zl(e),i=l.get(n);i||(i=a.querySelector(Xn(n)),i||(e=j({src:e,async:!0,type:"module"},t),(t=Dt.get(n))&&Fc(e,t),i=a.createElement("script"),Je(i),tt(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function dm(e,t,a,l){var n=(n=oe.current)?hi(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Vl(a.href),a=ml(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Vl(a.href);var i=ml(n).hoistableStyles,o=i.get(e);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=n.querySelector(Gn(e)))&&!i._p&&(o.instance=i,o.state.loading=5),Dt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Dt.set(e,a),i||ep(n,e,a,o.state))),t&&l===null)throw Error(r(528,""));return o}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Zl(a),a=ml(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Vl(e){return'href="'+Ct(e)+'"'}function Gn(e){return'link[rel="stylesheet"]['+e+"]"}function mm(e){return j({},e,{"data-precedence":e.precedence,precedence:null})}function ep(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),tt(t,"link",a),Je(t),e.head.appendChild(t))}function Zl(e){return'[src="'+Ct(e)+'"]'}function Xn(e){return"script[async]"+e}function hm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ct(a.href)+'"]');if(l)return t.instance=l,Je(l),l;var n=j({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Je(l),tt(l,"style",n),xi(l,a.precedence,e),t.instance=l;case"stylesheet":n=Vl(a.href);var i=e.querySelector(Gn(n));if(i)return t.state.loading|=4,t.instance=i,Je(i),i;l=mm(a),(n=Dt.get(n))&&Wc(l,n),i=(e.ownerDocument||e).createElement("link"),Je(i);var o=i;return o._p=new Promise(function(p,N){o.onload=p,o.onerror=N}),tt(i,"link",l),t.state.loading|=4,xi(i,a.precedence,e),t.instance=i;case"script":return i=Zl(a.src),(n=e.querySelector(Xn(i)))?(t.instance=n,Je(n),n):(l=a,(n=Dt.get(i))&&(l=j({},a),Fc(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),Je(n),tt(n,"link",l),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&&(l=t.instance,t.state.loading|=4,xi(l,a.precedence,e));return t.instance}function xi(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,i=n,o=0;o<l.length;o++){var p=l[o];if(p.dataset.precedence===t)i=p;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Wc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Fc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var pi=null;function xm(e,t,a){if(pi===null){var l=new Map,n=pi=new Map;n.set(a,l)}else n=pi,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var i=a[n];if(!(i[nn]||i[Fe]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var p=l.get(o);p?p.push(i):l.set(o,[i])}}return l}function pm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function tp(e,t,a){if(a===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 ym(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ap(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=Vl(l.href),i=t.querySelector(Gn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=yi.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,Je(i);return}i=t.ownerDocument||t,l=mm(l),(n=Dt.get(n))&&Wc(l,n),i=i.createElement("link"),Je(i);var o=i;o._p=new Promise(function(p,N){o.onload=p,o.onerror=N}),tt(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=yi.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Ic=0;function lp(e,t){return e.stylesheets&&e.count===0&&vi(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&vi(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Ic===0&&(Ic=62500*qx());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&vi(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Ic?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function yi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)vi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var gi=null;function vi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,gi=new Map,t.forEach(np,e),gi=null,yi.call(e))}function np(e,t){if(!(t.state.loading&4)){var a=gi.get(e);if(a)var l=a.get(null);else{a=new Map,gi.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var o=n[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),l=o)}l&&a.set(null,l)}n=t.instance,o=n.getAttribute("data-precedence"),i=a.get(o)||l,i===l&&a.set(null,n),a.set(o,n),this.count++,l=yi.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Qn={$$typeof:M,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function sp(e,t,a,l,n,i,o,p,N){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=Ki(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ki(0),this.hiddenUpdates=Ki(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function gm(e,t,a,l,n,i,o,p,N,U,k,X){return e=new sp(e,t,a,o,N,U,k,X,p),t=1,i===!0&&(t|=24),i=gt(3,null,null,t),e.current=i,i.stateNode=e,t=Ou(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},Uu(i),e}function vm(e){return e?(e=Sl,e):Sl}function bm(e,t,a,l,n,i){n=vm(n),l.context===null?l.context=n:l.pendingContext=n,l=Ea(t),l.payload={element:a},i=i===void 0?null:i,i!==null&&(l.callback=i),a=Aa(e,l,t),a!==null&&(mt(a,e,t),Nn(a,e,t))}function jm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Pc(e,t){jm(e,t),(e=e.alternate)&&jm(e,t)}function Nm(e){if(e.tag===13||e.tag===31){var t=$a(e,67108864);t!==null&&mt(t,e,67108864),Pc(e,67108864)}}function Sm(e){if(e.tag===13||e.tag===31){var t=St();t=Ji(t);var a=$a(e,t);a!==null&&mt(a,e,t),Pc(e,t)}}var bi=!0;function ip(e,t,a,l){var n=Y.T;Y.T=null;var i=$.p;try{$.p=2,er(e,t,a,l)}finally{$.p=i,Y.T=n}}function up(e,t,a,l){var n=Y.T;Y.T=null;var i=$.p;try{$.p=8,er(e,t,a,l)}finally{$.p=i,Y.T=n}}function er(e,t,a,l){if(bi){var n=tr(l);if(n===null)kc(e,t,l,ji,a),Am(e,l);else if(rp(n,e,t,a,l))l.stopPropagation();else if(Am(e,l),t&4&&-1<cp.indexOf(e)){for(;n!==null;){var i=dl(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=Qa(i.pendingLanes);if(o!==0){var p=i;for(p.pendingLanes|=2,p.entangledLanes|=2;o;){var N=1<<31-pt(o);p.entanglements[1]|=N,o&=~N}Qt(i),(ge&6)===0&&(li=ht()+500,Ln(0))}}break;case 31:case 13:p=$a(i,2),p!==null&&mt(p,i,2),si(),Pc(i,2)}if(i=tr(l),i===null&&kc(e,t,l,ji,a),i===n)break;n=i}n!==null&&l.stopPropagation()}else kc(e,t,l,null,a)}}function tr(e){return e=lu(e),ar(e)}var ji=null;function ar(e){if(ji=null,e=fl(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=v(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ji=e,null}function Em(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(Kh()){case zr:return 2;case Or:return 8;case os:case Jh:return 32;case _r:return 268435456;default:return 32}default:return 32}}var lr=!1,Ha=null,qa=null,La=null,Vn=new Map,Zn=new Map,Ba=[],cp="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 Am(e,t){switch(e){case"focusin":case"focusout":Ha=null;break;case"dragenter":case"dragleave":qa=null;break;case"mouseover":case"mouseout":La=null;break;case"pointerover":case"pointerout":Vn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zn.delete(t.pointerId)}}function Kn(e,t,a,l,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:i,targetContainers:[n]},t!==null&&(t=dl(t),t!==null&&Nm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function rp(e,t,a,l,n){switch(t){case"focusin":return Ha=Kn(Ha,e,t,a,l,n),!0;case"dragenter":return qa=Kn(qa,e,t,a,l,n),!0;case"mouseover":return La=Kn(La,e,t,a,l,n),!0;case"pointerover":var i=n.pointerId;return Vn.set(i,Kn(Vn.get(i)||null,e,t,a,l,n)),!0;case"gotpointercapture":return i=n.pointerId,Zn.set(i,Kn(Zn.get(i)||null,e,t,a,l,n)),!0}return!1}function Cm(e){var t=fl(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=v(a),t!==null){e.blockedOn=t,Lr(e.priority,function(){Sm(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Lr(e.priority,function(){Sm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ni(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=tr(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);au=l,a.target.dispatchEvent(l),au=null}else return t=dl(a),t!==null&&Nm(t),e.blockedOn=a,!1;t.shift()}return!0}function Tm(e,t,a){Ni(e)&&a.delete(t)}function op(){lr=!1,Ha!==null&&Ni(Ha)&&(Ha=null),qa!==null&&Ni(qa)&&(qa=null),La!==null&&Ni(La)&&(La=null),Vn.forEach(Tm),Zn.forEach(Tm)}function Si(e,t){e.blockedOn===t&&(e.blockedOn=null,lr||(lr=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,op)))}var Ei=null;function wm(e){Ei!==e&&(Ei=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Ei===e&&(Ei=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if(ar(l||a)===null)continue;break}var i=dl(a);i!==null&&(e.splice(t,3),t-=3,tc(i,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function Kl(e){function t(N){return Si(N,e)}Ha!==null&&Si(Ha,e),qa!==null&&Si(qa,e),La!==null&&Si(La,e),Vn.forEach(t),Zn.forEach(t);for(var a=0;a<Ba.length;a++){var l=Ba[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ba.length&&(a=Ba[0],a.blockedOn===null);)Cm(a),a.blockedOn===null&&Ba.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],i=a[l+1],o=n[ut]||null;if(typeof i=="function")o||wm(a);else if(o){var p=null;if(i&&i.hasAttribute("formAction")){if(n=i,o=i[ut]||null)p=o.formAction;else if(ar(n)!==null)continue}else p=o.action;typeof p=="function"?a[l+1]=p:(a.splice(l,3),l-=3),wm(a)}}}function Mm(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return n=o})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function nr(e){this._internalRoot=e}Ai.prototype.render=nr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var a=t.current,l=St();bm(a,l,e,t,null,null)},Ai.prototype.unmount=nr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bm(e.current,2,null,e,null,null),si(),t[ol]=null}};function Ai(e){this._internalRoot=e}Ai.prototype.unstable_scheduleHydration=function(e){if(e){var t=qr();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ba.length&&t!==0&&t<Ba[a].priority;a++);Ba.splice(a,0,e),a===0&&Cm(e)}};var zm=c.version;if(zm!=="19.2.4")throw Error(r(527,zm,"19.2.4"));$.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=x(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var fp={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Y,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ci=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ci.isDisabled&&Ci.supportsFiber)try{tn=Ci.inject(fp),xt=Ci}catch{}}return $n.createRoot=function(e,t){if(!d(e))throw Error(r(299));var a=!1,l="",n=qf,i=Lf,o=Bf;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=gm(e,1,!1,null,null,a,l,null,n,i,o,Mm),e[ol]=t.current,Bc(e),new nr(t)},$n.hydrateRoot=function(e,t,a){if(!d(e))throw Error(r(299));var l=!1,n="",i=qf,o=Lf,p=Bf,N=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(N=a.formState)),t=gm(e,1,!0,t,a??null,l,n,N,i,o,p,Mm),t.context=vm(null),a=t.current,l=St(),l=Ji(l),n=Ea(l),n.callback=null,Aa(a,n,l),a=l,t.current.lanes=a,ln(t,a),Qt(t),e[ol]=t.current,Bc(e),new Ai(t)},$n.version="19.2.4",$n}var km;function Sp(){if(km)return ur.exports;km=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(c){console.error(c)}}return u(),ur.exports=Np(),ur.exports}var Ep=Sp();/**
|
|
50
|
+
* react-router v7.13.1
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/var Ym="popstate";function Gm(u){return typeof u=="object"&&u!=null&&"pathname"in u&&"search"in u&&"hash"in u&&"state"in u&&"key"in u}function Ap(u={}){function c(r,d){var x;let m=(x=d.state)==null?void 0:x.masked,{pathname:v,search:g,hash:h}=m||r.location;return xr("",{pathname:v,search:g,hash:h},d.state&&d.state.usr||null,d.state&&d.state.key||"default",m?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function f(r,d){return typeof d=="string"?d:es(d)}return Tp(c,f,null,u)}function _e(u,c){if(u===!1||u===null||typeof u>"u")throw new Error(c)}function kt(u,c){if(!u){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function Cp(){return Math.random().toString(36).substring(2,10)}function Xm(u,c){return{usr:u.state,key:u.key,idx:c,masked:u.unstable_mask?{pathname:u.pathname,search:u.search,hash:u.hash}:void 0}}function xr(u,c,f=null,r,d){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof c=="string"?Wl(c):c,state:f,key:c&&c.key||r||Cp(),unstable_mask:d}}function es({pathname:u="/",search:c="",hash:f=""}){return c&&c!=="?"&&(u+=c.charAt(0)==="?"?c:"?"+c),f&&f!=="#"&&(u+=f.charAt(0)==="#"?f:"#"+f),u}function Wl(u){let c={};if(u){let f=u.indexOf("#");f>=0&&(c.hash=u.substring(f),u=u.substring(0,f));let r=u.indexOf("?");r>=0&&(c.search=u.substring(r),u=u.substring(0,r)),u&&(c.pathname=u)}return c}function Tp(u,c,f,r={}){let{window:d=document.defaultView,v5Compat:m=!1}=r,v=d.history,g="POP",h=null,x=S();x==null&&(x=0,v.replaceState({...v.state,idx:x},""));function S(){return(v.state||{idx:null}).idx}function j(){g="POP";let C=S(),y=C==null?null:C-x;x=C,h&&h({action:g,location:z.location,delta:y})}function A(C,y){g="PUSH";let _=Gm(C)?C:xr(z.location,C,y);x=S()+1;let M=Xm(_,x),L=z.createHref(_.unstable_mask||_);try{v.pushState(M,"",L)}catch(J){if(J instanceof DOMException&&J.name==="DataCloneError")throw J;d.location.assign(L)}m&&h&&h({action:g,location:z.location,delta:1})}function R(C,y){g="REPLACE";let _=Gm(C)?C:xr(z.location,C,y);x=S();let M=Xm(_,x),L=z.createHref(_.unstable_mask||_);v.replaceState(M,"",L),m&&h&&h({action:g,location:z.location,delta:0})}function E(C){return wp(C)}let z={get action(){return g},get location(){return u(d,v)},listen(C){if(h)throw new Error("A history only accepts one active listener");return d.addEventListener(Ym,j),h=C,()=>{d.removeEventListener(Ym,j),h=null}},createHref(C){return c(d,C)},createURL:E,encodeLocation(C){let y=E(C);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:A,replace:R,go(C){return v.go(C)}};return z}function wp(u,c=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),_e(f,"No window.location.(origin|href) available to create URL");let r=typeof u=="string"?u:es(u);return r=r.replace(/ $/,"%20"),!c&&r.startsWith("//")&&(r=f+r),new URL(r,f)}function ih(u,c,f="/"){return Mp(u,c,f,!1)}function Mp(u,c,f,r){let d=typeof c=="string"?Wl(c):c,m=ha(d.pathname||"/",f);if(m==null)return null;let v=uh(u);zp(v);let g=null;for(let h=0;g==null&&h<v.length;++h){let x=Yp(m);g=Bp(v[h],x,r)}return g}function uh(u,c=[],f=[],r="",d=!1){let m=(v,g,h=d,x)=>{let S={relativePath:x===void 0?v.path||"":x,caseSensitive:v.caseSensitive===!0,childrenIndex:g,route:v};if(S.relativePath.startsWith("/")){if(!S.relativePath.startsWith(r)&&h)return;_e(S.relativePath.startsWith(r),`Absolute route path "${S.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),S.relativePath=S.relativePath.slice(r.length)}let j=Zt([r,S.relativePath]),A=f.concat(S);v.children&&v.children.length>0&&(_e(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${j}".`),uh(v.children,c,A,j,h)),!(v.path==null&&!v.index)&&c.push({path:j,score:qp(j,v.index),routesMeta:A})};return u.forEach((v,g)=>{var h;if(v.path===""||!((h=v.path)!=null&&h.includes("?")))m(v,g);else for(let x of ch(v.path))m(v,g,!0,x)}),c}function ch(u){let c=u.split("/");if(c.length===0)return[];let[f,...r]=c,d=f.endsWith("?"),m=f.replace(/\?$/,"");if(r.length===0)return d?[m,""]:[m];let v=ch(r.join("/")),g=[];return g.push(...v.map(h=>h===""?m:[m,h].join("/"))),d&&g.push(...v),g.map(h=>u.startsWith("/")&&h===""?"/":h)}function zp(u){u.sort((c,f)=>c.score!==f.score?f.score-c.score:Lp(c.routesMeta.map(r=>r.childrenIndex),f.routesMeta.map(r=>r.childrenIndex)))}var Op=/^:[\w-]+$/,_p=3,Rp=2,Dp=1,Up=10,Hp=-2,Qm=u=>u==="*";function qp(u,c){let f=u.split("/"),r=f.length;return f.some(Qm)&&(r+=Hp),c&&(r+=Rp),f.filter(d=>!Qm(d)).reduce((d,m)=>d+(Op.test(m)?_p:m===""?Dp:Up),r)}function Lp(u,c){return u.length===c.length&&u.slice(0,-1).every((r,d)=>r===c[d])?u[u.length-1]-c[c.length-1]:0}function Bp(u,c,f=!1){let{routesMeta:r}=u,d={},m="/",v=[];for(let g=0;g<r.length;++g){let h=r[g],x=g===r.length-1,S=m==="/"?c:c.slice(m.length)||"/",j=_i({path:h.relativePath,caseSensitive:h.caseSensitive,end:x},S),A=h.route;if(!j&&x&&f&&!r[r.length-1].route.index&&(j=_i({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},S)),!j)return null;Object.assign(d,j.params),v.push({params:d,pathname:Zt([m,j.pathname]),pathnameBase:Vp(Zt([m,j.pathnameBase])),route:A}),j.pathnameBase!=="/"&&(m=Zt([m,j.pathnameBase]))}return v}function _i(u,c){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[f,r]=kp(u.path,u.caseSensitive,u.end),d=c.match(f);if(!d)return null;let m=d[0],v=m.replace(/(.)\/+$/,"$1"),g=d.slice(1);return{params:r.reduce((x,{paramName:S,isOptional:j},A)=>{if(S==="*"){let E=g[A]||"";v=m.slice(0,m.length-E.length).replace(/(.)\/+$/,"$1")}const R=g[A];return j&&!R?x[S]=void 0:x[S]=(R||"").replace(/%2F/g,"/"),x},{}),pathname:m,pathnameBase:v,pattern:u}}function kp(u,c=!1,f=!0){kt(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let r=[],d="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(v,g,h,x,S)=>{if(r.push({paramName:g,isOptional:h!=null}),h){let j=S.charAt(x+v.length);return j&&j!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(r.push({paramName:"*"}),d+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?d+="\\/*$":u!==""&&u!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,c?void 0:"i"),r]}function Yp(u){try{return u.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return kt(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${c}).`),u}}function ha(u,c){if(c==="/")return u;if(!u.toLowerCase().startsWith(c.toLowerCase()))return null;let f=c.endsWith("/")?c.length-1:c.length,r=u.charAt(f);return r&&r!=="/"?null:u.slice(f)||"/"}var Gp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Xp(u,c="/"){let{pathname:f,search:r="",hash:d=""}=typeof u=="string"?Wl(u):u,m;return f?(f=f.replace(/\/\/+/g,"/"),f.startsWith("/")?m=Vm(f.substring(1),"/"):m=Vm(f,c)):m=c,{pathname:m,search:Zp(r),hash:Kp(d)}}function Vm(u,c){let f=c.replace(/\/+$/,"").split("/");return u.split("/").forEach(d=>{d===".."?f.length>1&&f.pop():d!=="."&&f.push(d)}),f.length>1?f.join("/"):"/"}function fr(u,c,f,r){return`Cannot include a '${u}' character in a manually specified \`to.${c}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${f}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Qp(u){return u.filter((c,f)=>f===0||c.route.path&&c.route.path.length>0)}function br(u){let c=Qp(u);return c.map((f,r)=>r===c.length-1?f.pathname:f.pathnameBase)}function Ui(u,c,f,r=!1){let d;typeof u=="string"?d=Wl(u):(d={...u},_e(!d.pathname||!d.pathname.includes("?"),fr("?","pathname","search",d)),_e(!d.pathname||!d.pathname.includes("#"),fr("#","pathname","hash",d)),_e(!d.search||!d.search.includes("#"),fr("#","search","hash",d)));let m=u===""||d.pathname==="",v=m?"/":d.pathname,g;if(v==null)g=f;else{let j=c.length-1;if(!r&&v.startsWith("..")){let A=v.split("/");for(;A[0]==="..";)A.shift(),j-=1;d.pathname=A.join("/")}g=j>=0?c[j]:"/"}let h=Xp(d,g),x=v&&v!=="/"&&v.endsWith("/"),S=(m||v===".")&&f.endsWith("/");return!h.pathname.endsWith("/")&&(x||S)&&(h.pathname+="/"),h}var Zt=u=>u.join("/").replace(/\/\/+/g,"/"),Vp=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),Zp=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,Kp=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,Jp=class{constructor(u,c,f,r=!1){this.status=u,this.statusText=c||"",this.internal=r,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function $p(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function Wp(u){return u.map(c=>c.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var rh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function oh(u,c){let f=u;if(typeof f!="string"||!Gp.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let r=f,d=!1;if(rh)try{let m=new URL(window.location.href),v=f.startsWith("//")?new URL(m.protocol+f):new URL(f),g=ha(v.pathname,c);v.origin===m.origin&&g!=null?f=g+v.search+v.hash:d=!0}catch{kt(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:d,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var fh=["POST","PUT","PATCH","DELETE"];new Set(fh);var Fp=["GET",...fh];new Set(Fp);var Fl=b.createContext(null);Fl.displayName="DataRouter";var Hi=b.createContext(null);Hi.displayName="DataRouterState";var Ip=b.createContext(!1),dh=b.createContext({isTransitioning:!1});dh.displayName="ViewTransition";var Pp=b.createContext(new Map);Pp.displayName="Fetchers";var ey=b.createContext(null);ey.displayName="Await";var Et=b.createContext(null);Et.displayName="Navigation";var ns=b.createContext(null);ns.displayName="Location";var Ht=b.createContext({outlet:null,matches:[],isDataRoute:!1});Ht.displayName="Route";var jr=b.createContext(null);jr.displayName="RouteError";var mh="REACT_ROUTER_ERROR",ty="REDIRECT",ay="ROUTE_ERROR_RESPONSE";function ly(u){if(u.startsWith(`${mh}:${ty}:{`))try{let c=JSON.parse(u.slice(28));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.location=="string"&&typeof c.reloadDocument=="boolean"&&typeof c.replace=="boolean")return c}catch{}}function ny(u){if(u.startsWith(`${mh}:${ay}:{`))try{let c=JSON.parse(u.slice(40));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string")return new Jp(c.status,c.statusText,c.data)}catch{}}function sy(u,{relative:c}={}){_e(Il(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:r}=b.useContext(Et),{hash:d,pathname:m,search:v}=ss(u,{relative:c}),g=m;return f!=="/"&&(g=m==="/"?f:Zt([f,m])),r.createHref({pathname:g,search:v,hash:d})}function Il(){return b.useContext(ns)!=null}function Jt(){return _e(Il(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(ns).location}var hh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xh(u){b.useContext(Et).static||b.useLayoutEffect(u)}function qi(){let{isDataRoute:u}=b.useContext(Ht);return u?jy():iy()}function iy(){_e(Il(),"useNavigate() may be used only in the context of a <Router> component.");let u=b.useContext(Fl),{basename:c,navigator:f}=b.useContext(Et),{matches:r}=b.useContext(Ht),{pathname:d}=Jt(),m=JSON.stringify(br(r)),v=b.useRef(!1);return xh(()=>{v.current=!0}),b.useCallback((h,x={})=>{if(kt(v.current,hh),!v.current)return;if(typeof h=="number"){f.go(h);return}let S=Ui(h,JSON.parse(m),d,x.relative==="path");u==null&&c!=="/"&&(S.pathname=S.pathname==="/"?c:Zt([c,S.pathname])),(x.replace?f.replace:f.push)(S,x.state,x)},[c,f,m,d,u])}var uy=b.createContext(null);function cy(u){let c=b.useContext(Ht).outlet;return b.useMemo(()=>c&&b.createElement(uy.Provider,{value:u},c),[c,u])}function ry(){let{matches:u}=b.useContext(Ht),c=u[u.length-1];return c?c.params:{}}function ss(u,{relative:c}={}){let{matches:f}=b.useContext(Ht),{pathname:r}=Jt(),d=JSON.stringify(br(f));return b.useMemo(()=>Ui(u,JSON.parse(d),r,c==="path"),[u,d,r,c])}function oy(u,c){return ph(u,c)}function ph(u,c,f){var C;_e(Il(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=b.useContext(Et),{matches:d}=b.useContext(Ht),m=d[d.length-1],v=m?m.params:{},g=m?m.pathname:"/",h=m?m.pathnameBase:"/",x=m&&m.route;{let y=x&&x.path||"";gh(g,!x||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
+
|
|
60
|
+
Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let S=Jt(),j;if(c){let y=typeof c=="string"?Wl(c):c;_e(h==="/"||((C=y.pathname)==null?void 0:C.startsWith(h)),`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 "${h}" but pathname "${y.pathname}" was given in the \`location\` prop.`),j=y}else j=S;let A=j.pathname||"/",R=A;if(h!=="/"){let y=h.replace(/^\//,"").split("/");R="/"+A.replace(/^\//,"").split("/").slice(y.length).join("/")}let E=ih(u,{pathname:R});kt(x||E!=null,`No routes matched location "${j.pathname}${j.search}${j.hash}" `),kt(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${j.pathname}${j.search}${j.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 z=xy(E&&E.map(y=>Object.assign({},y,{params:Object.assign({},v,y.params),pathname:Zt([h,r.encodeLocation?r.encodeLocation(y.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?h:Zt([h,r.encodeLocation?r.encodeLocation(y.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),d,f);return c&&z?b.createElement(ns.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...j},navigationType:"POP"}},z):z}function fy(){let u=by(),c=$p(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),f=u instanceof Error?u.stack:null,r="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:r},m={padding:"2px 4px",backgroundColor:r},v=null;return console.error("Error handled by React Router default ErrorBoundary:",u),v=b.createElement(b.Fragment,null,b.createElement("p",null,"๐ฟ Hey developer ๐"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:m},"ErrorBoundary")," or"," ",b.createElement("code",{style:m},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},c),f?b.createElement("pre",{style:d},f):null,v)}var dy=b.createElement(fy,null),yh=class extends b.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,c){return c.location!==u.location||c.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:c.error,location:c.location,revalidation:u.revalidation||c.revalidation}}componentDidCatch(u,c){this.props.onError?this.props.onError(u,c):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const f=ny(u.digest);f&&(u=f)}let c=u!==void 0?b.createElement(Ht.Provider,{value:this.props.routeContext},b.createElement(jr.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?b.createElement(my,{error:u},c):c}};yh.contextType=Ip;var dr=new WeakMap;function my({children:u,error:c}){let{basename:f}=b.useContext(Et);if(typeof c=="object"&&c&&"digest"in c&&typeof c.digest=="string"){let r=ly(c.digest);if(r){let d=dr.get(c);if(d)throw d;let m=oh(r.location,f);if(rh&&!dr.get(c))if(m.isExternal||r.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const v=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:r.replace}));throw dr.set(c,v),v}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return u}function hy({routeContext:u,match:c,children:f}){let r=b.useContext(Fl);return r&&r.static&&r.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=c.route.id),b.createElement(Ht.Provider,{value:u},f)}function xy(u,c=[],f){let r=f==null?void 0:f.state;if(u==null){if(!r)return null;if(r.errors)u=r.matches;else if(c.length===0&&!r.initialized&&r.matches.length>0)u=r.matches;else return null}let d=u,m=r==null?void 0:r.errors;if(m!=null){let S=d.findIndex(j=>j.route.id&&(m==null?void 0:m[j.route.id])!==void 0);_e(S>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),d=d.slice(0,Math.min(d.length,S+1))}let v=!1,g=-1;if(f&&r){v=r.renderFallback;for(let S=0;S<d.length;S++){let j=d[S];if((j.route.HydrateFallback||j.route.hydrateFallbackElement)&&(g=S),j.route.id){let{loaderData:A,errors:R}=r,E=j.route.loader&&!A.hasOwnProperty(j.route.id)&&(!R||R[j.route.id]===void 0);if(j.route.lazy||E){f.isStatic&&(v=!0),g>=0?d=d.slice(0,g+1):d=[d[0]];break}}}}let h=f==null?void 0:f.onError,x=r&&h?(S,j)=>{var A,R;h(S,{location:r.location,params:((R=(A=r.matches)==null?void 0:A[0])==null?void 0:R.params)??{},unstable_pattern:Wp(r.matches),errorInfo:j})}:void 0;return d.reduceRight((S,j,A)=>{let R,E=!1,z=null,C=null;r&&(R=m&&j.route.id?m[j.route.id]:void 0,z=j.route.errorElement||dy,v&&(g<0&&A===0?(gh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,C=null):g===A&&(E=!0,C=j.route.hydrateFallbackElement||null)));let y=c.concat(d.slice(0,A+1)),_=()=>{let M;return R?M=z:E?M=C:j.route.Component?M=b.createElement(j.route.Component,null):j.route.element?M=j.route.element:M=S,b.createElement(hy,{match:j,routeContext:{outlet:S,matches:y,isDataRoute:r!=null},children:M})};return r&&(j.route.ErrorBoundary||j.route.errorElement||A===0)?b.createElement(yh,{location:r.location,revalidation:r.revalidation,component:z,error:R,children:_(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:x}):_()},null)}function Nr(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function py(u){let c=b.useContext(Fl);return _e(c,Nr(u)),c}function yy(u){let c=b.useContext(Hi);return _e(c,Nr(u)),c}function gy(u){let c=b.useContext(Ht);return _e(c,Nr(u)),c}function Sr(u){let c=gy(u),f=c.matches[c.matches.length-1];return _e(f.route.id,`${u} can only be used on routes that contain a unique "id"`),f.route.id}function vy(){return Sr("useRouteId")}function by(){var r;let u=b.useContext(jr),c=yy("useRouteError"),f=Sr("useRouteError");return u!==void 0?u:(r=c.errors)==null?void 0:r[f]}function jy(){let{router:u}=py("useNavigate"),c=Sr("useNavigate"),f=b.useRef(!1);return xh(()=>{f.current=!0}),b.useCallback(async(d,m={})=>{kt(f.current,hh),f.current&&(typeof d=="number"?await u.navigate(d):await u.navigate(d,{fromRouteId:c,...m}))},[u,c])}var Zm={};function gh(u,c,f){!c&&!Zm[u]&&(Zm[u]=!0,kt(!1,f))}b.memo(Ny);function Ny({routes:u,future:c,state:f,isStatic:r,onError:d}){return ph(u,void 0,{state:f,isStatic:r,onError:d})}function Sy({to:u,replace:c,state:f,relative:r}){_e(Il(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=b.useContext(Et);kt(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:m}=b.useContext(Ht),{pathname:v}=Jt(),g=qi(),h=Ui(u,br(m),v,r==="path"),x=JSON.stringify(h);return b.useEffect(()=>{g(JSON.parse(x),{replace:c,state:f,relative:r})},[g,x,r,c,f]),null}function Ey(u){return cy(u.context)}function it(u){_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 Ay({basename:u="/",children:c=null,location:f,navigationType:r="POP",navigator:d,static:m=!1,unstable_useTransitions:v}){_e(!Il(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=u.replace(/^\/*/,"/"),h=b.useMemo(()=>({basename:g,navigator:d,static:m,unstable_useTransitions:v,future:{}}),[g,d,m,v]);typeof f=="string"&&(f=Wl(f));let{pathname:x="/",search:S="",hash:j="",state:A=null,key:R="default",unstable_mask:E}=f,z=b.useMemo(()=>{let C=ha(x,g);return C==null?null:{location:{pathname:C,search:S,hash:j,state:A,key:R,unstable_mask:E},navigationType:r}},[g,x,S,j,A,R,r,E]);return kt(z!=null,`<Router basename="${g}"> is not able to match the URL "${x}${S}${j}" because it does not start with the basename, so the <Router> won't render anything.`),z==null?null:b.createElement(Et.Provider,{value:h},b.createElement(ns.Provider,{children:c,value:z}))}function Cy({children:u,location:c}){return oy(pr(u),c)}function pr(u,c=[]){let f=[];return b.Children.forEach(u,(r,d)=>{if(!b.isValidElement(r))return;let m=[...c,d];if(r.type===b.Fragment){f.push.apply(f,pr(r.props.children,m));return}_e(r.type===it,`[${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 v={id:r.props.id||m.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&&(v.children=pr(r.props.children,m)),f.push(v)}),f}var zi="get",Oi="application/x-www-form-urlencoded";function Li(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function Ty(u){return Li(u)&&u.tagName.toLowerCase()==="button"}function wy(u){return Li(u)&&u.tagName.toLowerCase()==="form"}function My(u){return Li(u)&&u.tagName.toLowerCase()==="input"}function zy(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function Oy(u,c){return u.button===0&&(!c||c==="_self")&&!zy(u)}var Ti=null;function _y(){if(Ti===null)try{new FormData(document.createElement("form"),0),Ti=!1}catch{Ti=!0}return Ti}var Ry=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function mr(u){return u!=null&&!Ry.has(u)?(kt(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Oi}"`),null):u}function Dy(u,c){let f,r,d,m,v;if(wy(u)){let g=u.getAttribute("action");r=g?ha(g,c):null,f=u.getAttribute("method")||zi,d=mr(u.getAttribute("enctype"))||Oi,m=new FormData(u)}else if(Ty(u)||My(u)&&(u.type==="submit"||u.type==="image")){let g=u.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=u.getAttribute("formaction")||g.getAttribute("action");if(r=h?ha(h,c):null,f=u.getAttribute("formmethod")||g.getAttribute("method")||zi,d=mr(u.getAttribute("formenctype"))||mr(g.getAttribute("enctype"))||Oi,m=new FormData(g,u),!_y()){let{name:x,type:S,value:j}=u;if(S==="image"){let A=x?`${x}.`:"";m.append(`${A}x`,"0"),m.append(`${A}y`,"0")}else x&&m.append(x,j)}}else{if(Li(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=zi,r=null,d=Oi,v=u}return m&&d==="text/plain"&&(v=m,m=void 0),{action:r,method:f.toLowerCase(),encType:d,formData:m,body:v}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Er(u,c){if(u===!1||u===null||typeof u>"u")throw new Error(c)}function Uy(u,c,f,r){let d=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return f?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${r}`:d.pathname=`${d.pathname}.${r}`:d.pathname==="/"?d.pathname=`_root.${r}`:c&&ha(d.pathname,c)==="/"?d.pathname=`${c.replace(/\/$/,"")}/_root.${r}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${r}`,d}async function Hy(u,c){if(u.id in c)return c[u.id];try{let f=await import(u.module);return c[u.id]=f,f}catch(f){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(f),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function qy(u){return u==null?!1:u.href==null?u.rel==="preload"&&typeof u.imageSrcSet=="string"&&typeof u.imageSizes=="string":typeof u.rel=="string"&&typeof u.href=="string"}async function Ly(u,c,f){let r=await Promise.all(u.map(async d=>{let m=c.routes[d.route.id];if(m){let v=await Hy(m,f);return v.links?v.links():[]}return[]}));return Gy(r.flat(1).filter(qy).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Km(u,c,f,r,d,m){let v=(h,x)=>f[x]?h.route.id!==f[x].route.id:!0,g=(h,x)=>{var S;return f[x].pathname!==h.pathname||((S=f[x].route.path)==null?void 0:S.endsWith("*"))&&f[x].params["*"]!==h.params["*"]};return m==="assets"?c.filter((h,x)=>v(h,x)||g(h,x)):m==="data"?c.filter((h,x)=>{var j;let S=r.routes[h.route.id];if(!S||!S.hasLoader)return!1;if(v(h,x)||g(h,x))return!0;if(h.route.shouldRevalidate){let A=h.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((j=f[0])==null?void 0:j.params)||{},nextUrl:new URL(u,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof A=="boolean")return A}return!0}):[]}function By(u,c,{includeHydrateFallback:f}={}){return ky(u.map(r=>{let d=c.routes[r.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),f&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function ky(u){return[...new Set(u)]}function Yy(u){let c={},f=Object.keys(u).sort();for(let r of f)c[r]=u[r];return c}function Gy(u,c){let f=new Set;return new Set(c),u.reduce((r,d)=>{let m=JSON.stringify(Yy(d));return f.has(m)||(f.add(m),r.push({key:m,link:d})),r},[])}function vh(){let u=b.useContext(Fl);return Er(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function Xy(){let u=b.useContext(Hi);return Er(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var Ar=b.createContext(void 0);Ar.displayName="FrameworkContext";function bh(){let u=b.useContext(Ar);return Er(u,"You must render this element inside a <HydratedRouter> element"),u}function Qy(u,c){let f=b.useContext(Ar),[r,d]=b.useState(!1),[m,v]=b.useState(!1),{onFocus:g,onBlur:h,onMouseEnter:x,onMouseLeave:S,onTouchStart:j}=c,A=b.useRef(null);b.useEffect(()=>{if(u==="render"&&v(!0),u==="viewport"){let z=y=>{y.forEach(_=>{v(_.isIntersecting)})},C=new IntersectionObserver(z,{threshold:.5});return A.current&&C.observe(A.current),()=>{C.disconnect()}}},[u]),b.useEffect(()=>{if(r){let z=setTimeout(()=>{v(!0)},100);return()=>{clearTimeout(z)}}},[r]);let R=()=>{d(!0)},E=()=>{d(!1),v(!1)};return f?u!=="intent"?[m,A,{}]:[m,A,{onFocus:Wn(g,R),onBlur:Wn(h,E),onMouseEnter:Wn(x,R),onMouseLeave:Wn(S,E),onTouchStart:Wn(j,R)}]:[!1,A,{}]}function Wn(u,c){return f=>{u&&u(f),f.defaultPrevented||c(f)}}function Vy({page:u,...c}){let{router:f}=vh(),r=b.useMemo(()=>ih(f.routes,u,f.basename),[f.routes,u,f.basename]);return r?b.createElement(Ky,{page:u,matches:r,...c}):null}function Zy(u){let{manifest:c,routeModules:f}=bh(),[r,d]=b.useState([]);return b.useEffect(()=>{let m=!1;return Ly(u,c,f).then(v=>{m||d(v)}),()=>{m=!0}},[u,c,f]),r}function Ky({page:u,matches:c,...f}){let r=Jt(),{future:d,manifest:m,routeModules:v}=bh(),{basename:g}=vh(),{loaderData:h,matches:x}=Xy(),S=b.useMemo(()=>Km(u,c,x,m,r,"data"),[u,c,x,m,r]),j=b.useMemo(()=>Km(u,c,x,m,r,"assets"),[u,c,x,m,r]),A=b.useMemo(()=>{if(u===r.pathname+r.search+r.hash)return[];let z=new Set,C=!1;if(c.forEach(_=>{var L;let M=m.routes[_.route.id];!M||!M.hasLoader||(!S.some(J=>J.route.id===_.route.id)&&_.route.id in h&&((L=v[_.route.id])!=null&&L.shouldRevalidate)||M.hasClientLoader?C=!0:z.add(_.route.id))}),z.size===0)return[];let y=Uy(u,g,d.unstable_trailingSlashAwareDataRequests,"data");return C&&z.size>0&&y.searchParams.set("_routes",c.filter(_=>z.has(_.route.id)).map(_=>_.route.id).join(",")),[y.pathname+y.search]},[g,d.unstable_trailingSlashAwareDataRequests,h,r,m,S,c,u,v]),R=b.useMemo(()=>By(j,m),[j,m]),E=Zy(j);return b.createElement(b.Fragment,null,A.map(z=>b.createElement("link",{key:z,rel:"prefetch",as:"fetch",href:z,...f})),R.map(z=>b.createElement("link",{key:z,rel:"modulepreload",href:z,...f})),E.map(({key:z,link:C})=>b.createElement("link",{key:z,nonce:f.nonce,...C,crossOrigin:C.crossOrigin??f.crossOrigin})))}function Jy(...u){return c=>{u.forEach(f=>{typeof f=="function"?f(c):f!=null&&(f.current=c)})}}var $y=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{$y&&(window.__reactRouterVersion="7.13.1")}catch{}function Wy({basename:u,children:c,unstable_useTransitions:f,window:r}){let d=b.useRef();d.current==null&&(d.current=Ap({window:r,v5Compat:!0}));let m=d.current,[v,g]=b.useState({action:m.action,location:m.location}),h=b.useCallback(x=>{f===!1?g(x):b.startTransition(()=>g(x))},[f]);return b.useLayoutEffect(()=>m.listen(h),[m,h]),b.createElement(Ay,{basename:u,children:c,location:v.location,navigationType:v.action,navigator:m,unstable_useTransitions:f})}var jh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Vt=b.forwardRef(function({onClick:c,discover:f="render",prefetch:r="none",relative:d,reloadDocument:m,replace:v,unstable_mask:g,state:h,target:x,to:S,preventScrollReset:j,viewTransition:A,unstable_defaultShouldRevalidate:R,...E},z){let{basename:C,navigator:y,unstable_useTransitions:_}=b.useContext(Et),M=typeof S=="string"&&jh.test(S),L=oh(S,C);S=L.to;let J=sy(S,{relative:d}),Z=Jt(),V=null;if(g){let De=Ui(g,[],Z.unstable_mask?Z.unstable_mask.pathname:"/",!0);C!=="/"&&(De.pathname=De.pathname==="/"?C:Zt([C,De.pathname])),V=y.createHref(De)}let[B,K,W]=Qy(r,E),te=Py(S,{replace:v,unstable_mask:g,state:h,target:x,preventScrollReset:j,relative:d,viewTransition:A,unstable_defaultShouldRevalidate:R,unstable_useTransitions:_});function Re(De){c&&c(De),De.defaultPrevented||te(De)}let Ve=!(L.isExternal||m),We=b.createElement("a",{...E,...W,href:(Ve?V:void 0)||L.absoluteURL||J,onClick:Ve?Re:c,ref:Jy(z,K),target:x,"data-discover":!M&&f==="render"?"true":void 0});return B&&!M?b.createElement(b.Fragment,null,We,b.createElement(Vy,{page:J})):We});Vt.displayName="Link";var Nh=b.forwardRef(function({"aria-current":c="page",caseSensitive:f=!1,className:r="",end:d=!1,style:m,to:v,viewTransition:g,children:h,...x},S){let j=ss(v,{relative:x.relative}),A=Jt(),R=b.useContext(Hi),{navigator:E,basename:z}=b.useContext(Et),C=R!=null&&ng(j)&&g===!0,y=E.encodeLocation?E.encodeLocation(j).pathname:j.pathname,_=A.pathname,M=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;f||(_=_.toLowerCase(),M=M?M.toLowerCase():null,y=y.toLowerCase()),M&&z&&(M=ha(M,z)||M);const L=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let J=_===y||!d&&_.startsWith(y)&&_.charAt(L)==="/",Z=M!=null&&(M===y||!d&&M.startsWith(y)&&M.charAt(y.length)==="/"),V={isActive:J,isPending:Z,isTransitioning:C},B=J?c:void 0,K;typeof r=="function"?K=r(V):K=[r,J?"active":null,Z?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let W=typeof m=="function"?m(V):m;return b.createElement(Vt,{...x,"aria-current":B,className:K,ref:S,style:W,to:v,viewTransition:g},typeof h=="function"?h(V):h)});Nh.displayName="NavLink";var Fy=b.forwardRef(({discover:u="render",fetcherKey:c,navigate:f,reloadDocument:r,replace:d,state:m,method:v=zi,action:g,onSubmit:h,relative:x,preventScrollReset:S,viewTransition:j,unstable_defaultShouldRevalidate:A,...R},E)=>{let{unstable_useTransitions:z}=b.useContext(Et),C=ag(),y=lg(g,{relative:x}),_=v.toLowerCase()==="get"?"get":"post",M=typeof g=="string"&&jh.test(g),L=J=>{if(h&&h(J),J.defaultPrevented)return;J.preventDefault();let Z=J.nativeEvent.submitter,V=(Z==null?void 0:Z.getAttribute("formmethod"))||v,B=()=>C(Z||J.currentTarget,{fetcherKey:c,method:V,navigate:f,replace:d,state:m,relative:x,preventScrollReset:S,viewTransition:j,unstable_defaultShouldRevalidate:A});z&&f!==!1?b.startTransition(()=>B()):B()};return b.createElement("form",{ref:E,method:_,action:y,onSubmit:r?h:L,...R,"data-discover":!M&&u==="render"?"true":void 0})});Fy.displayName="Form";function Iy(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Sh(u){let c=b.useContext(Fl);return _e(c,Iy(u)),c}function Py(u,{target:c,replace:f,unstable_mask:r,state:d,preventScrollReset:m,relative:v,viewTransition:g,unstable_defaultShouldRevalidate:h,unstable_useTransitions:x}={}){let S=qi(),j=Jt(),A=ss(u,{relative:v});return b.useCallback(R=>{if(Oy(R,c)){R.preventDefault();let E=f!==void 0?f:es(j)===es(A),z=()=>S(u,{replace:E,unstable_mask:r,state:d,preventScrollReset:m,relative:v,viewTransition:g,unstable_defaultShouldRevalidate:h});x?b.startTransition(()=>z()):z()}},[j,S,A,f,r,d,c,u,m,v,g,h,x])}var eg=0,tg=()=>`__${String(++eg)}__`;function ag(){let{router:u}=Sh("useSubmit"),{basename:c}=b.useContext(Et),f=vy(),r=u.fetch,d=u.navigate;return b.useCallback(async(m,v={})=>{let{action:g,method:h,encType:x,formData:S,body:j}=Dy(m,c);if(v.navigate===!1){let A=v.fetcherKey||tg();await r(A,f,v.action||g,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:S,body:j,formMethod:v.method||h,formEncType:v.encType||x,flushSync:v.flushSync})}else await d(v.action||g,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:S,body:j,formMethod:v.method||h,formEncType:v.encType||x,replace:v.replace,state:v.state,fromRouteId:f,flushSync:v.flushSync,viewTransition:v.viewTransition})},[r,d,c,f])}function lg(u,{relative:c}={}){let{basename:f}=b.useContext(Et),r=b.useContext(Ht);_e(r,"useFormAction must be used inside a RouteContext");let[d]=r.matches.slice(-1),m={...ss(u||".",{relative:c})},v=Jt();if(u==null){m.search=v.search;let g=new URLSearchParams(m.search),h=g.getAll("index");if(h.some(S=>S==="")){g.delete("index"),h.filter(j=>j).forEach(j=>g.append("index",j));let S=g.toString();m.search=S?`?${S}`:""}}return(!u||u===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(m.pathname=m.pathname==="/"?f:Zt([f,m.pathname])),es(m)}function ng(u,{relative:c}={}){let f=b.useContext(dh);_e(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Sh("useViewTransitionState"),d=ss(u,{relative:c});if(!f.isTransitioning)return!1;let m=ha(f.currentLocation.pathname,r)||f.currentLocation.pathname,v=ha(f.nextLocation.pathname,r)||f.nextLocation.pathname;return _i(d.pathname,v)!=null||_i(d.pathname,m)!=null}/**
|
|
61
|
+
* @license lucide-react v0.468.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const sg=u=>u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Eh=(...u)=>u.filter((c,f,r)=>!!c&&c.trim()!==""&&r.indexOf(c)===f).join(" ").trim();/**
|
|
66
|
+
* @license lucide-react v0.468.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/var ig={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
71
|
+
* @license lucide-react v0.468.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const ug=b.forwardRef(({color:u="currentColor",size:c=24,strokeWidth:f=2,absoluteStrokeWidth:r,className:d="",children:m,iconNode:v,...g},h)=>b.createElement("svg",{ref:h,...ig,width:c,height:c,stroke:u,strokeWidth:r?Number(f)*24/Number(c):f,className:Eh("lucide",d),...g},[...v.map(([x,S])=>b.createElement(x,S)),...Array.isArray(m)?m:[m]]));/**
|
|
76
|
+
* @license lucide-react v0.468.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const le=(u,c)=>{const f=b.forwardRef(({className:r,...d},m)=>b.createElement(ug,{ref:m,iconNode:c,className:Eh(`lucide-${sg(u)}`,r),...d}));return f.displayName=`${u}`,f};/**
|
|
81
|
+
* @license lucide-react v0.468.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const cg=le("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
86
|
+
* @license lucide-react v0.468.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const rg=le("ArrowDownLeft",[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]]);/**
|
|
91
|
+
* @license lucide-react v0.468.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const og=le("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
96
|
+
* @license lucide-react v0.468.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const fg=le("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
|
|
101
|
+
* @license lucide-react v0.468.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const dg=le("AtSign",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]]);/**
|
|
106
|
+
* @license lucide-react v0.468.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const rl=le("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
111
|
+
* @license lucide-react v0.468.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const Ah=le("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
|
|
116
|
+
* @license lucide-react v0.468.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const is=le("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
121
|
+
* @license lucide-react v0.468.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const xa=le("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
126
|
+
* @license lucide-react v0.468.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const us=le("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
131
|
+
* @license lucide-react v0.468.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const Ri=le("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
136
|
+
* @license lucide-react v0.468.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const Jm=le("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
141
|
+
* @license lucide-react v0.468.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const yr=le("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
146
|
+
* @license lucide-react v0.468.0 - ISC
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the ISC license.
|
|
149
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/const ts=le("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
|
|
151
|
+
* @license lucide-react v0.468.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const $m=le("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
156
|
+
* @license lucide-react v0.468.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const mg=le("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
161
|
+
* @license lucide-react v0.468.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const Ch=le("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
166
|
+
* @license lucide-react v0.468.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const Th=le("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
171
|
+
* @license lucide-react v0.468.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const hg=le("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
|
|
176
|
+
* @license lucide-react v0.468.0 - ISC
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the ISC license.
|
|
179
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
+
*/const xg=le("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
|
|
181
|
+
* @license lucide-react v0.468.0 - ISC
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the ISC license.
|
|
184
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/const wh=le("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
|
|
186
|
+
* @license lucide-react v0.468.0 - ISC
|
|
187
|
+
*
|
|
188
|
+
* This source code is licensed under the ISC license.
|
|
189
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
+
*/const pg=le("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
|
|
191
|
+
* @license lucide-react v0.468.0 - ISC
|
|
192
|
+
*
|
|
193
|
+
* This source code is licensed under the ISC license.
|
|
194
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
+
*/const yg=le("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|
196
|
+
* @license lucide-react v0.468.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*/const gg=le("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
|
|
201
|
+
* @license lucide-react v0.468.0 - ISC
|
|
202
|
+
*
|
|
203
|
+
* This source code is licensed under the ISC license.
|
|
204
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
+
*/const Qe=le("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
206
|
+
* @license lucide-react v0.468.0 - ISC
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the ISC license.
|
|
209
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/const Mh=le("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
|
|
211
|
+
* @license lucide-react v0.468.0 - ISC
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the ISC license.
|
|
214
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/const vg=le("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
|
|
216
|
+
* @license lucide-react v0.468.0 - ISC
|
|
217
|
+
*
|
|
218
|
+
* This source code is licensed under the ISC license.
|
|
219
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
+
*/const bg=le("MessageSquareMore",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M16 10h.01",key:"1m94wz"}]]);/**
|
|
221
|
+
* @license lucide-react v0.468.0 - ISC
|
|
222
|
+
*
|
|
223
|
+
* This source code is licensed under the ISC license.
|
|
224
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
+
*/const cs=le("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
226
|
+
* @license lucide-react v0.468.0 - ISC
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the ISC license.
|
|
229
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
+
*/const jg=le("MessagesSquare",[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]]);/**
|
|
231
|
+
* @license lucide-react v0.468.0 - ISC
|
|
232
|
+
*
|
|
233
|
+
* This source code is licensed under the ISC license.
|
|
234
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
+
*/const Ng=le("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
|
|
236
|
+
* @license lucide-react v0.468.0 - ISC
|
|
237
|
+
*
|
|
238
|
+
* This source code is licensed under the ISC license.
|
|
239
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
+
*/const Wm=le("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
241
|
+
* @license lucide-react v0.468.0 - ISC
|
|
242
|
+
*
|
|
243
|
+
* This source code is licensed under the ISC license.
|
|
244
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
+
*/const Kt=le("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
246
|
+
* @license lucide-react v0.468.0 - ISC
|
|
247
|
+
*
|
|
248
|
+
* This source code is licensed under the ISC license.
|
|
249
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
+
*/const Bi=le("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/**
|
|
251
|
+
* @license lucide-react v0.468.0 - ISC
|
|
252
|
+
*
|
|
253
|
+
* This source code is licensed under the ISC license.
|
|
254
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
+
*/const as=le("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
|
256
|
+
* @license lucide-react v0.468.0 - ISC
|
|
257
|
+
*
|
|
258
|
+
* This source code is licensed under the ISC license.
|
|
259
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
+
*/const ki=le("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
261
|
+
* @license lucide-react v0.468.0 - ISC
|
|
262
|
+
*
|
|
263
|
+
* This source code is licensed under the ISC license.
|
|
264
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
+
*/const zh=le("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
266
|
+
* @license lucide-react v0.468.0 - ISC
|
|
267
|
+
*
|
|
268
|
+
* This source code is licensed under the ISC license.
|
|
269
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
270
|
+
*/const Pl=le("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
|
271
|
+
* @license lucide-react v0.468.0 - ISC
|
|
272
|
+
*
|
|
273
|
+
* This source code is licensed under the ISC license.
|
|
274
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
275
|
+
*/const Oh=le("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
276
|
+
* @license lucide-react v0.468.0 - ISC
|
|
277
|
+
*
|
|
278
|
+
* This source code is licensed under the ISC license.
|
|
279
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
280
|
+
*/const Di=le("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
|
281
|
+
* @license lucide-react v0.468.0 - ISC
|
|
282
|
+
*
|
|
283
|
+
* This source code is licensed under the ISC license.
|
|
284
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
285
|
+
*/const $l=le("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
286
|
+
* @license lucide-react v0.468.0 - ISC
|
|
287
|
+
*
|
|
288
|
+
* This source code is licensed under the ISC license.
|
|
289
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
290
|
+
*/const Sg=le("ShieldOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]]);/**
|
|
291
|
+
* @license lucide-react v0.468.0 - ISC
|
|
292
|
+
*
|
|
293
|
+
* This source code is licensed under the ISC license.
|
|
294
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
295
|
+
*/const Eg=le("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
|
|
296
|
+
* @license lucide-react v0.468.0 - ISC
|
|
297
|
+
*
|
|
298
|
+
* This source code is licensed under the ISC license.
|
|
299
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
300
|
+
*/const Ag=le("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]]);/**
|
|
301
|
+
* @license lucide-react v0.468.0 - ISC
|
|
302
|
+
*
|
|
303
|
+
* This source code is licensed under the ISC license.
|
|
304
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
305
|
+
*/const Cg=le("ToggleRight",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"16",cy:"12",r:"2",key:"4ma0v8"}]]);/**
|
|
306
|
+
* @license lucide-react v0.468.0 - ISC
|
|
307
|
+
*
|
|
308
|
+
* This source code is licensed under the ISC license.
|
|
309
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
310
|
+
*/const Ga=le("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
311
|
+
* @license lucide-react v0.468.0 - ISC
|
|
312
|
+
*
|
|
313
|
+
* This source code is licensed under the ISC license.
|
|
314
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
315
|
+
*/const Tg=le("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
316
|
+
* @license lucide-react v0.468.0 - ISC
|
|
317
|
+
*
|
|
318
|
+
* This source code is licensed under the ISC license.
|
|
319
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
320
|
+
*/const Cr=le("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
|
|
321
|
+
* @license lucide-react v0.468.0 - ISC
|
|
322
|
+
*
|
|
323
|
+
* This source code is licensed under the ISC license.
|
|
324
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
325
|
+
*/const _h=le("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
326
|
+
* @license lucide-react v0.468.0 - ISC
|
|
327
|
+
*
|
|
328
|
+
* This source code is licensed under the ISC license.
|
|
329
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
330
|
+
*/const Rh=le("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
|
331
|
+
* @license lucide-react v0.468.0 - ISC
|
|
332
|
+
*
|
|
333
|
+
* This source code is licensed under the ISC license.
|
|
334
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
335
|
+
*/const wg=le("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
|
|
336
|
+
* @license lucide-react v0.468.0 - ISC
|
|
337
|
+
*
|
|
338
|
+
* This source code is licensed under the ISC license.
|
|
339
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
340
|
+
*/const Dh=le("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);let Mg=0;function Fm(){return`op-${++Mg}-${Date.now().toString(36)}`}const zg="webchat-ui";class Og{constructor(c,f){Ut(this,"ws",null);Ut(this,"pending",new Map);Ut(this,"eventHandlers",new Map);Ut(this,"closed",!1);Ut(this,"connectSent",!1);Ut(this,"connectTimer",null);Ut(this,"_connected",!1);Ut(this,"_snapshot",null);Ut(this,"reconnectTimer",null);Ut(this,"onConnectedChange");Ut(this,"onConnectError");this.url=c,this.token=f}get connected(){return this._connected}get snapshot(){return this._snapshot}setCallbacks(c){this.onConnectedChange=c.onConnectedChange,this.onConnectError=c.onConnectError}start(){this.closed=!1,this.doConnect()}stop(){var c;this.closed=!0,this._connected=!1,this.reconnectTimer!==null&&(window.clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.connectTimer!==null&&(window.clearTimeout(this.connectTimer),this.connectTimer=null),(c=this.ws)==null||c.close(),this.ws=null;for(const[,f]of this.pending)f.reject(new Error("client stopped"));this.pending.clear()}on(c,f){let r=this.eventHandlers.get(c);return r||(r=new Set,this.eventHandlers.set(c,r)),r.add(f),()=>r.delete(f)}async request(c,f){if(!this.ws||this.ws.readyState!==WebSocket.OPEN||!this._connected)throw new Error("gateway not connected");const r=Fm(),d={type:"req",id:r,method:c,params:f};return new Promise((m,v)=>{this.pending.set(r,{resolve:g=>m(g),reject:v}),this.ws.send(JSON.stringify(d))})}doConnect(){if(this.closed)return;const c=new WebSocket(this.url);this.ws=c,this.connectSent=!1,c.addEventListener("open",()=>{this.ws===c&&this.scheduleConnect()}),c.addEventListener("message",f=>{this.ws===c&&this.handleMessage(String(f.data??""))}),c.addEventListener("close",f=>{var d;if(this.ws!==c)return;this.ws=null;const r=this._connected;this._connected=!1,r&&((d=this.onConnectedChange)==null||d.call(this,!1));for(const[,m]of this.pending)m.reject(new Error(`closed: ${f.code}`));this.pending.clear(),!this.closed&&r&&(this.reconnectTimer=window.setTimeout(()=>this.doConnect(),2e3))}),c.addEventListener("error",()=>{})}scheduleConnect(){this.connectTimer!==null&&window.clearTimeout(this.connectTimer),this.connectTimer=window.setTimeout(()=>{this.sendConnect()},100)}async sendConnect(){var f,r,d;if(this.connectSent||!this.ws||this.ws.readyState!==WebSocket.OPEN)return;this.connectSent=!0,this.connectTimer!==null&&(window.clearTimeout(this.connectTimer),this.connectTimer=null);const c={minProtocol:3,maxProtocol:3,client:{id:zg,version:"0.1.0",platform:navigator.platform??"web",mode:"ui"},role:"operator",scopes:["operator.admin","operator.approvals","operator.pairing"],caps:[],auth:{token:this.token},userAgent:navigator.userAgent,locale:navigator.language};try{const m=await this.request_internal("connect",c);this._connected=!0,this._snapshot=(m==null?void 0:m.snapshot)??null,(f=this.onConnectedChange)==null||f.call(this,!0)}catch(m){const v=m instanceof Error?m.message:"connect failed";(r=this.onConnectError)==null||r.call(this,v),(d=this.ws)==null||d.close(4008,"connect failed")}}async request_internal(c,f){if(!this.ws||this.ws.readyState!==WebSocket.OPEN)throw new Error("gateway not connected");const r=Fm(),d={type:"req",id:r,method:c,params:f};return new Promise((m,v)=>{this.pending.set(r,{resolve:g=>m(g),reject:v}),this.ws.send(JSON.stringify(d))})}handleMessage(c){var d;let f;try{f=JSON.parse(c)}catch{return}const r=f;if(r.type==="event"){const m=f;if(m.event==="connect.challenge"){const h=m.payload;h!=null&&h.nonce&&(this.connectSent=!1,this.sendConnect());return}const v=this.eventHandlers.get(m.event);if(v)for(const h of v)try{h(m.payload)}catch{}const g=this.eventHandlers.get("*");if(g)for(const h of g)try{h(m)}catch{}return}if(r.type==="res"){const m=f,v=this.pending.get(m.id);if(!v)return;this.pending.delete(m.id),m.ok?v.resolve(m.payload):v.reject(new Error(((d=m.error)==null?void 0:d.message)??"request failed"))}}}const Uh=b.createContext({authenticated:!1,connected:!1,connecting:!1,error:null,gateway:null,login:()=>{},logout:()=>{}});function we(){return b.useContext(Uh)}function _g(){return`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}`}const wi="operator-ui-auth";function Rg({children:u}){const[c,f]=b.useState(!1),[r,d]=b.useState(!1),[m,v]=b.useState(!1),[g,h]=b.useState(null),x=b.useRef(null),S=b.useRef(null);b.useEffect(()=>{const R=sessionStorage.getItem(wi);return R&&j(R),()=>{var E;(E=x.current)==null||E.stop()}},[]);const j=b.useCallback(R=>{var z;(z=x.current)==null||z.stop(),v(!0),h(null),S.current=R;const E=new Og(_g(),R);x.current=E,E.setCallbacks({onConnectedChange:C=>{v(!1),d(C),C&&(f(!0),h(null),sessionStorage.setItem(wi,R))},onConnectError:C=>{v(!1),d(!1),f(!1),sessionStorage.removeItem(wi),E.stop(),h(C)}}),E.start()},[]),A=b.useCallback(()=>{var R;(R=x.current)==null||R.stop(),x.current=null,S.current=null,f(!1),d(!1),h(null),sessionStorage.removeItem(wi)},[]);return s.jsx(Uh.Provider,{value:{authenticated:c,connected:r,connecting:m,error:g,gateway:x.current,login:j,logout:A},children:u})}function Hh(u){var c,f,r="";if(typeof u=="string"||typeof u=="number")r+=u;else if(typeof u=="object")if(Array.isArray(u)){var d=u.length;for(c=0;c<d;c++)u[c]&&(f=Hh(u[c]))&&(r&&(r+=" "),r+=f)}else for(f in u)u[f]&&(r&&(r+=" "),r+=f);return r}function Ke(){for(var u,c,f=0,r="",d=arguments.length;f<d;f++)(u=arguments[f])&&(c=Hh(u))&&(r&&(r+=" "),r+=c);return r}const Dg=[{to:"/",icon:yg,label:"Dashboard",end:!0},{to:"/agents",icon:rl,label:"Agents"},{to:"/channels",icon:as,label:"Channels"},{to:"/groups",icon:Cr,label:"Groups"},{to:"/models",icon:ts,label:"Models"},{to:"/skills",icon:Bi,label:"Skills"},{to:"/sessions",icon:cs,label:"Sessions"},{to:"/cron",icon:yr,label:"Cron"},{to:"/settings",icon:$l,label:"Settings"}];function Ug(){return s.jsxs("aside",{className:"flex w-60 shrink-0 flex-col border-r border-surface-200 bg-white",children:[s.jsxs("div",{className:"flex h-14 items-center gap-2.5 border-b border-surface-200 px-5",children:[s.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-primary-600",children:s.jsx("span",{className:"text-sm font-bold text-white",children:"O"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-semibold text-surface-900",children:"Operator"}),s.jsx("p",{className:"text-[10px] font-medium text-surface-400",children:"OpenClaw"})]})]}),s.jsx("nav",{className:"flex-1 space-y-0.5 p-3",children:Dg.map(({to:u,icon:c,label:f,...r})=>s.jsxs(Nh,{to:u,end:"end"in r,className:({isActive:d})=>Ke("flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors",d?"bg-primary-50 text-primary-700":"text-surface-600 hover:bg-surface-50 hover:text-surface-900"),children:[s.jsx(c,{className:"h-4 w-4"}),f]},u))}),s.jsx("div",{className:"border-t border-surface-200 p-3",children:s.jsx("p",{className:"px-3 text-[10px] text-surface-400",children:"v0.1.0 ยท OpenClaw Operator"})})]})}function Hg(){const{logout:u,connected:c}=we();return s.jsxs("div",{className:"flex h-screen overflow-hidden bg-surface-50",children:[s.jsx(Ug,{}),s.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[s.jsxs("header",{className:"flex h-14 shrink-0 items-center justify-end gap-3 border-b border-surface-200 bg-white px-6",children:[s.jsx("div",{className:"flex items-center gap-2 text-xs",children:c?s.jsxs("span",{className:"badge-green",children:[s.jsx(Rh,{className:"mr-1 h-3 w-3"}),"Connected"]}):s.jsxs("span",{className:"badge-red",children:[s.jsx(_h,{className:"mr-1 h-3 w-3"}),"Reconnectingโฆ"]})}),s.jsx("button",{onClick:u,className:"btn-ghost !px-2 !py-1.5 text-surface-500 hover:text-surface-700",children:s.jsx(Mh,{className:"h-4 w-4"})})]}),s.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:s.jsx(Ey,{})})]})]})}function $t({title:u,description:c,actions:f}){return s.jsxs("div",{className:"mb-6 flex items-start justify-between",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-semibold text-surface-900",children:u}),c&&s.jsx("p",{className:"mt-1 text-sm text-surface-500",children:c})]}),f&&s.jsx("div",{className:"flex items-center gap-2",children:f})]})}function qg(){const{gateway:u}=we(),c=qi(),[f,r]=b.useState(!1),[d,m]=b.useState(null),[v,g]=b.useState({name:"",identity:"",emoji:""});function h(S,j){g(A=>({...A,[S]:j}))}async function x(S){if(S.preventDefault(),!!u){if(!v.name.trim()){m("Agent name is required");return}r(!0),m(null);try{const j=await u.request("agents.create",{name:v.name.trim(),workspace:v.name.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),emoji:v.emoji.trim()||void 0}),A=j==null?void 0:j.agentId;A&&v.identity.trim()&&await u.request("agents.files.set",{agentId:A,name:"AGENTS.md",content:v.identity.trim()}),c(`/agents/${A??""}`)}catch(j){m(j instanceof Error?j.message:"Failed to create agent"),r(!1)}}}return s.jsxs("div",{className:"mx-auto max-w-2xl",children:[s.jsx($t,{title:"Create Agent",description:"Set up a new AI agent"}),s.jsxs("form",{onSubmit:x,className:"card space-y-5",children:[s.jsxs("div",{className:"grid gap-5 sm:grid-cols-2",children:[s.jsxs("div",{children:[s.jsx("label",{className:"label",children:"Agent Name *"}),s.jsx("input",{className:"input",placeholder:"e.g. Support Assistant",value:v.name,onChange:S=>h("name",S.target.value)}),s.jsx("p",{className:"mt-1 text-xs text-surface-400",children:"The display name for this agent"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"label",children:"Emoji"}),s.jsx("input",{className:"input",placeholder:"e.g. ๐ค",value:v.emoji,onChange:S=>h("emoji",S.target.value)}),s.jsx("p",{className:"mt-1 text-xs text-surface-400",children:"Optional icon for the agent"})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"label",children:"Identity / System Prompt"}),s.jsx("textarea",{className:"input min-h-[120px] resize-y",placeholder:"Describe the agent's personality, role, and behavior...",value:v.identity,onChange:S=>h("identity",S.target.value)}),s.jsx("p",{className:"mt-1 text-xs text-surface-400",children:"This will be saved as the agent's AGENTS.md file"})]}),d&&s.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-red-50 p-3 text-sm text-red-700",children:[s.jsx(us,{className:"mt-0.5 h-4 w-4 shrink-0"}),s.jsx("span",{children:d})]}),s.jsxs("div",{className:"flex justify-end gap-3 border-t border-surface-100 pt-5",children:[s.jsx("button",{type:"button",onClick:()=>c("/agents"),className:"btn-secondary",children:"Cancel"}),s.jsxs("button",{type:"submit",disabled:f,className:"btn-primary",children:[f?s.jsx(Qe,{className:"h-4 w-4 animate-spin"}):null,"Create Agent"]})]})]})]})}function lt({className:u}){return s.jsx("div",{className:Ke("flex items-center justify-center py-12",u),children:s.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-surface-200 border-t-primary-600"})})}const qh=["settings","channels","groups","tools","skills","sessions","usage","chat"],Lg={settings:{label:"Settings",icon:$l},channels:{label:"Channels",icon:as},groups:{label:"Groups",icon:Cr},tools:{label:"Tools",icon:wg},skills:{label:"Skills",icon:Bi},sessions:{label:"Sessions",icon:cs},usage:{label:"Usage",icon:Ah},chat:{label:"Test Chat",icon:vg}},Ya=[{name:"IDENTITY.md",label:"Identity",description:"Agent name, style, emoji and persona basics",core:!0},{name:"SOUL.md",label:"Soul / Personality",description:"Character boundaries, tone, voice and behavioral rules",core:!0},{name:"AGENTS.md",label:"Instructions",description:"Operating instructions, memory usage guidelines and core directives",core:!0},{name:"TOOLS.md",label:"Tool Guidelines",description:"Custom tool usage conventions and constraints"},{name:"USER.md",label:"User Profile",description:"User preferences, preferred name and context"},{name:"MEMORY.md",label:"Long-term Memory",description:"Curated persistent memory across sessions"},{name:"HEARTBEAT.md",label:"Heartbeat Checklist",description:"Optional checklist for periodic heartbeat runs"},{name:"BOOTSTRAP.md",label:"Bootstrap (One-time)",description:"First-run ceremony script, deleted after initial setup"}];function Bg({agentId:u,meta:c,initialContent:f,initialMissing:r}){const{gateway:d}=we(),[m,v]=b.useState(f),[g,h]=b.useState(!1),[x,S]=b.useState("idle"),[j,A]=b.useState(!1);async function R(){if(d){h(!0),S("idle");try{await d.request("agents.files.set",{agentId:u,name:c.name,content:m}),S("saved"),A(!1),setTimeout(()=>S("idle"),2500)}catch{S("error")}h(!1)}}return s.jsxs("div",{className:"card",children:[s.jsx("div",{className:"mb-3 flex items-center justify-between",children:s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:c.label}),s.jsx("code",{className:"rounded bg-surface-100 px-1.5 py-0.5 text-[10px] font-mono text-surface-500",children:c.name}),r&&!j&&s.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5 text-[10px] text-surface-400",children:"Not created"}),j&&s.jsx("span",{className:"rounded bg-amber-50 px-1.5 py-0.5 text-[10px] text-amber-600",children:"Unsaved"})]}),s.jsx("p",{className:"mt-0.5 text-xs text-surface-400",children:c.description})]})}),s.jsx("textarea",{className:"input min-h-[160px] resize-y font-mono text-xs leading-relaxed",value:m,onChange:E=>{v(E.target.value),A(!0),S("idle")},placeholder:`Write ${c.label.toLowerCase()} content here...`,spellCheck:!1}),s.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[s.jsxs("button",{onClick:R,disabled:g||!j,className:"btn-primary !py-1.5 !text-xs",children:[g?s.jsx(Qe,{className:"h-3.5 w-3.5 animate-spin"}):s.jsx(Pl,{className:"h-3.5 w-3.5"}),"Save"]}),x==="saved"&&s.jsx("span",{className:"text-xs text-emerald-600",children:"Saved"}),x==="error"&&s.jsx("span",{className:"text-xs text-red-600",children:"Save failed"})]})]})}function Im({value:u,onChange:c,catalog:f,placeholder:r}){const d=new Map;for(const m of f){const v=m.provider||"other";d.has(v)||d.set(v,[]),d.get(v).push(m)}return s.jsxs("select",{className:"input text-sm",value:u,onChange:m=>c(m.target.value),children:[s.jsx("option",{value:"",children:r??"Inherit default"}),[...d.entries()].map(([m,v])=>s.jsx("optgroup",{label:m,children:v.map(g=>s.jsxs("option",{value:`${g.provider}/${g.id}`,children:[g.name||g.id,g.reasoning?" (reasoning)":"",g.contextWindow?` ยท ${Math.round(g.contextWindow/1e3)}k ctx`:""]},`${g.provider}/${g.id}`))},m))]})}function kg({agentId:u}){const{gateway:c,connected:f}=we(),[r,d]=b.useState([]),[m,v]=b.useState(""),[g,h]=b.useState([]),[x,S]=b.useState(""),[j,A]=b.useState(!0),[R,E]=b.useState(!1),[z,C]=b.useState("idle");b.useEffect(()=>{!c||!f||Promise.all([c.request("models.list").then(Z=>Array.isArray(Z==null?void 0:Z.models)?Z.models:[]),c.request("config.get").then(Z=>{const B=((Z==null?void 0:Z.config)??{}).agents??{},K=B.defaults??{},te=(B.list??[]).find(Re=>String(Re.id??"").toLowerCase()===u.toLowerCase());return{defaults:K,agentEntry:te}})]).then(([Z,{defaults:V,agentEntry:B}])=>{d(Z);const K=V.model;typeof K=="string"?S(K):K&&typeof K=="object"&&S(K.primary??"");const W=B==null?void 0:B.model;typeof W=="string"?v(W):W&&typeof W=="object"&&(v(W.primary??""),h(W.fallbacks??[]))}).catch(()=>{}).finally(()=>A(!1))},[c,f,u]);async function y(){if(c){E(!0),C("idle");try{const Z=g.filter(Boolean);if(Z.length>0){const V={};m&&(V.primary=m),V.fallbacks=Z,await c.request("config.patch",{raw:JSON.stringify({agents:{list:[{id:u,model:V}]}})})}else m?await c.request("agents.update",{agentId:u,model:m}):await c.request("config.patch",{raw:JSON.stringify({agents:{list:[{id:u,model:null}]}})});C("saved"),setTimeout(()=>C("idle"),2500)}catch{C("error")}E(!1)}}function _(){h(Z=>[...Z,""])}function M(Z){h(V=>V.filter((B,K)=>K!==Z))}function L(Z,V){h(B=>{const K=[...B];return K[Z]=V,K})}function J(Z,V){h(B=>{const K=Z+V;if(K<0||K>=B.length)return B;const W=[...B],te=W[Z];return W[Z]=W[K],W[K]=te,W})}return j?s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[s.jsx(ts,{className:"h-4 w-4 text-primary-600"}),s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:"Model Configuration"})]}),s.jsx("div",{className:"py-4 text-center",children:s.jsx(Qe,{className:"mx-auto h-5 w-5 animate-spin text-surface-400"})})]}):s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx(ts,{className:"h-4 w-4 text-primary-600"}),s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:"Model Configuration"})]}),s.jsxs("p",{className:"text-xs text-surface-400 mb-4",children:["Override the default model for this agent.",x&&s.jsxs(s.Fragment,{children:[" ","Current default:"," ",s.jsx("code",{className:"rounded bg-surface-100 px-1 py-0.5 text-[10px]",children:x})]})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"label",children:"Primary Model"}),s.jsx(Im,{value:m,onChange:v,catalog:r,placeholder:x?`Inherit default (${x})`:"Inherit default"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"label",children:"Fallback Models"}),s.jsx("p",{className:"text-[11px] text-surface-400 mb-2",children:"When the primary model is unavailable, these models are tried in order."}),s.jsxs("div",{className:"space-y-2",children:[g.map((Z,V)=>s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsx("button",{onClick:()=>J(V,-1),className:"text-surface-400 hover:text-surface-600 disabled:opacity-30",disabled:V===0,children:s.jsx(xa,{className:"h-3 w-3 -rotate-90"})}),s.jsx("button",{onClick:()=>J(V,1),className:"text-surface-400 hover:text-surface-600 disabled:opacity-30",disabled:V===g.length-1,children:s.jsx(xa,{className:"h-3 w-3 rotate-90"})})]}),s.jsx("span",{className:"text-[10px] text-surface-400 font-mono w-4 text-center shrink-0",children:V+1}),s.jsx("div",{className:"flex-1",children:s.jsx(Im,{value:Z,onChange:B=>L(V,B),catalog:r,placeholder:"Select fallback model..."})}),s.jsx("button",{onClick:()=>M(V),className:"text-surface-400 hover:text-red-500 p-1",children:s.jsx(Dh,{className:"h-3.5 w-3.5"})})]},V)),s.jsxs("button",{onClick:_,className:"flex items-center gap-1.5 text-xs text-primary-600 hover:text-primary-700",children:[s.jsx(Kt,{className:"h-3 w-3"}),"Add fallback"]})]})]}),s.jsxs("div",{className:"flex items-center gap-3 border-t border-surface-100 pt-3",children:[s.jsxs("button",{onClick:y,disabled:R,className:"btn-primary !py-1.5 !text-xs",children:[R?s.jsx(Qe,{className:"h-3.5 w-3.5 animate-spin"}):s.jsx(Pl,{className:"h-3.5 w-3.5"}),"Save Model"]}),z==="saved"&&s.jsx("span",{className:"text-xs text-emerald-600",children:"Saved"}),z==="error"&&s.jsx("span",{className:"text-xs text-red-600",children:"Save failed"})]})]})]})}function Yg({agentId:u}){const{gateway:c,connected:f}=we(),[r,d]=b.useState(new Map),[m,v]=b.useState(!0),[g,h]=b.useState(!1);if(b.useEffect(()=>{if(!c||!f)return;const R=new Map;c.request("agents.files.list",{agentId:u}).then(async E=>{const z=Array.isArray(E==null?void 0:E.files)?E.files:[];for(const M of z)R.set(M.name,M);const y=Ya.map(M=>M.name).filter(M=>!R.has(M)||R.get(M).content===void 0),_=await Promise.allSettled(y.map(M=>c.request("agents.files.get",{agentId:u,name:M}).then(L=>({name:M,file:L==null?void 0:L.file}))));for(const M of _)M.status==="fulfilled"&&M.value.file&&R.set(M.value.name,M.value.file);for(const M of Ya)R.has(M.name)||R.set(M.name,{name:M.name,missing:!0,content:""});d(R)}).catch(()=>{}).finally(()=>v(!1))},[c,f,u]),m)return s.jsx(lt,{});const x=Ya.filter(R=>R.core),j=g?Ya:x,A={total:Ya.length,created:Ya.filter(R=>{const E=r.get(R.name);return E&&!E.missing}).length};return s.jsxs("div",{className:"space-y-4",children:[s.jsx(kg,{agentId:u}),s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("p",{className:"text-sm text-surface-500",children:g?"All workspace files":"Core configuration files"}),s.jsxs("span",{className:"text-xs text-surface-400",children:[A.created," / ",A.total," files active"]})]}),s.jsxs("button",{onClick:()=>h(!g),className:Ke("flex items-center gap-1.5 rounded-lg px-3 py-1.5 text-xs font-medium transition-colors",g?"bg-primary-50 text-primary-700 hover:bg-primary-100":"bg-surface-100 text-surface-600 hover:bg-surface-200"),children:[s.jsx($l,{className:"h-3.5 w-3.5"}),g?"Advanced Mode":"Basic Mode"]})]}),!g&&s.jsxs("div",{className:"rounded-lg bg-surface-50 border border-surface-200 p-3 text-xs text-surface-500",children:["Showing the 3 core files that define your agent's behavior. Switch to"," ",s.jsx("strong",{children:"Advanced Mode"})," to edit all ",Ya.length," workspace files including tools, memory, heartbeat, and bootstrap."]}),s.jsx("div",{className:"space-y-4",children:j.map(R=>{const E=r.get(R.name);return s.jsx(Bg,{agentId:u,meta:R,initialContent:(E==null?void 0:E.content)??"",initialMissing:(E==null?void 0:E.missing)??!0},R.name)})}),g&&s.jsxs("div",{className:"rounded-lg bg-surface-50 border border-surface-200 p-3",children:[s.jsx("h4",{className:"text-xs font-semibold text-surface-700 mb-2",children:"File Reference"}),s.jsx("div",{className:"grid gap-1.5 sm:grid-cols-2 text-[11px] text-surface-500",children:Ya.map(R=>{const E=r.get(R.name),z=E&&!E.missing;return s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:Ke("h-1.5 w-1.5 rounded-full",z?"bg-emerald-500":"bg-surface-300")}),s.jsx("span",{className:"font-mono",children:R.name}),z&&(E==null?void 0:E.size)!=null&&s.jsxs("span",{className:"text-surface-400",children:["(",E.size,"B)"]})]},R.name)})})]})]})}const Lh={whatsapp:"๐ฌ",telegram:"โ๏ธ",discord:"๐ฎ",slack:"๐ผ",signal:"๐",feishu:"๐ฆ",msteams:"๐ข",webchat:"๐"};function Fn(u,...c){if(!u||typeof u!="object")return;const f=u;for(const r of c){const d=f[r];if(typeof d=="string"&&d.trim())return d.trim()}}function gr(u){if(!u)return"";const c=Date.now()-u;return c<6e4?"just now":c<36e5?`${Math.floor(c/6e4)}m ago`:c<864e5?`${Math.floor(c/36e5)}h ago`:new Date(u).toLocaleDateString()}function Gg({agentId:u}){const{gateway:c,connected:f}=we(),[r,d]=b.useState([]),[m,v]=b.useState({}),[g,h]=b.useState({}),[x,S]=b.useState(!0);if(b.useEffect(()=>{!c||!f||Promise.all([c.request("config.get").then(R=>{var z;const E=(z=R==null?void 0:R.config)==null?void 0:z.bindings;return Array.isArray(E)?E:[]}),c.request("channels.status",{probe:!0}).then(R=>{const E=(R==null?void 0:R.channelAccounts)??{},z=(R==null?void 0:R.channelLabels)??{};return{accounts:E,labels:z}})]).then(([R,E])=>{d(R),v(E.accounts),h(E.labels),S(!1)}).catch(()=>S(!1))},[c,f]),x)return s.jsx(lt,{});const j=r.filter(R=>R.agentId===u),A=[...new Set(j.map(R=>R.match.channel))];return s.jsxs("div",{children:[s.jsxs("p",{className:"mb-4 text-sm text-surface-500",children:["Channels bound to this agent (",j.length," bindings)"]}),j.length===0?s.jsx("div",{className:"rounded-lg border-2 border-dashed border-surface-200 py-8 text-center text-sm text-surface-400",children:"No channel bindings for this agent. Configure bindings in Settings โ Config."}):s.jsx("div",{className:"space-y-3",children:A.map(R=>{const E=j.filter(W=>W.match.channel===R),z=m[R],y=(Array.isArray(z)?z:z&&typeof z=="object"?Object.entries(z).map(([W,te])=>({...te,accountId:W})):[])[0],_=y==null?void 0:y.probe,M=(y==null?void 0:y.name)??Fn(y==null?void 0:y.bot,"name","botName")??Fn(y==null?void 0:y.profile,"name","displayName")??Fn(_,"botName","bot_name"),L=y==null?void 0:y.appId,J=Fn(y==null?void 0:y.application,"name","appName","app_name")??(L?`App ${L}`:void 0),Z=Fn(y==null?void 0:y.application,"tenantName","tenant_name","companyName","company_name","orgName"),V=y==null?void 0:y.domain,B=(y==null?void 0:y.connected)??(y==null?void 0:y.running)??!1,K=Lh[R]??"๐ก";return s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"text-xl",children:K}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:g[R]??R}),s.jsx("div",{className:`h-2 w-2 rounded-full ${B?"bg-emerald-500":"bg-surface-300"}`})]}),s.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-0.5 mt-0.5 text-xs text-surface-500",children:[M&&s.jsx("span",{children:M}),J&&s.jsxs("span",{children:["App: ",J]}),Z&&s.jsxs("span",{children:["Org: ",Z]}),((y==null?void 0:y.mode)||V)&&s.jsx("span",{className:"rounded bg-surface-100 px-1 py-0.5 text-[10px]",children:(y==null?void 0:y.mode)??V})]})]})]}),s.jsx("span",{className:`text-xs font-medium ${B?"text-emerald-600":"text-surface-400"}`,children:B?"Online":"Offline"})]}),((y==null?void 0:y.lastInboundAt)||(y==null?void 0:y.lastOutboundAt))&&s.jsxs("div",{className:"mt-2 flex items-center gap-4 text-[11px] text-surface-400",children:[y.lastInboundAt&&s.jsxs("span",{children:["Last in: ",gr(y.lastInboundAt)]}),y.lastOutboundAt&&s.jsxs("span",{children:["Last out: ",gr(y.lastOutboundAt)]})]}),E.some(W=>W.match.peer)&&s.jsxs("div",{className:"mt-2 border-t border-surface-100 pt-2",children:[s.jsx("p",{className:"text-[11px] text-surface-400 mb-1",children:"Bindings:"}),s.jsx("div",{className:"flex flex-wrap gap-1.5",children:E.map((W,te)=>s.jsx("span",{className:"rounded bg-surface-100 px-2 py-0.5 text-[11px] text-surface-600",children:W.match.peer?`${W.match.peer.kind}: ${W.match.peer.id.length>20?W.match.peer.id.slice(0,10)+"โฆ":W.match.peer.id}`:"all"},te))})]})]},R)})})]})}function Xg({agentId:u}){const{gateway:c,connected:f}=we(),[r,d]=b.useState([]),[m,v]=b.useState([]),[g,h]=b.useState({}),[x,S]=b.useState(!0);if(b.useEffect(()=>{!c||!f||Promise.all([c.request("config.get").then(E=>{var C;const z=(C=E==null?void 0:E.config)==null?void 0:C.bindings;return Array.isArray(z)?z:[]}),c.request("sessions.list",{}).then(E=>Array.isArray(E==null?void 0:E.sessions)?E.sessions:[]),c.request("channels.status",{}).then(E=>(E==null?void 0:E.channelLabels)??{})]).then(([E,z,C])=>{d(E),v(z),h(C),S(!1)}).catch(()=>S(!1))},[c,f]),x)return s.jsx(lt,{});const j=r.filter(E=>{var z;return E.agentId===u&&(((z=E.match.peer)==null?void 0:z.kind)==="group"||E.match.guildId)}),A=m.filter(E=>E.kind==="group");function R(E,z){const C=A.find(y=>y.key.includes(E)||y.subject===E);return C?C.displayName||C.derivedTitle||C.label||E:E.length>24?E.slice(0,12)+"โฆ"+E.slice(-6):E}return s.jsxs("div",{children:[s.jsxs("p",{className:"mb-4 text-sm text-surface-500",children:["Groups routed to this agent (",j.length,")"]}),j.length===0?s.jsx("div",{className:"rounded-lg border-2 border-dashed border-surface-200 py-8 text-center text-sm text-surface-400",children:"No group bindings for this agent"}):s.jsx("div",{className:"space-y-2",children:j.map((E,z)=>{var J;const C=((J=E.match.peer)==null?void 0:J.id)??E.match.guildId??"unknown",y=E.match.channel,_=R(C),M=Lh[y]??"๐ก",L=A.find(Z=>Z.key.includes(C)||Z.subject===C);return s.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-surface-200 p-3.5",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-surface-100",children:s.jsx("span",{className:"text-lg",children:M})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:_}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-0.5 text-xs text-surface-400",children:[s.jsx("span",{children:g[y]??y}),E.comment&&s.jsxs("span",{children:["ยท ",E.comment]}),(L==null?void 0:L.updatedAt)&&s.jsxs("span",{children:["ยท Active ",gr(L.updatedAt)]})]}),C!==_&&s.jsx("p",{className:"mt-0.5 text-[10px] font-mono text-surface-300 truncate max-w-[300px]",children:C})]})]}),s.jsx("span",{className:"badge-primary",children:"Group"})]},z)})})]})}function Qg({agentId:u}){const{gateway:c,connected:f}=we(),[r,d]=b.useState([]),[m,v]=b.useState(!0);return b.useEffect(()=>{!c||!f||c.request("tools.catalog",{agentId:u}).then(g=>{const x=(Array.isArray(g==null?void 0:g.groups)?g.groups:[]).flatMap(S=>Array.isArray(S.tools)?S.tools:[]);d(x)}).catch(()=>{}).finally(()=>v(!1))},[c,f,u]),m?s.jsx(lt,{}):s.jsxs("div",{children:[s.jsxs("p",{className:"mb-4 text-sm text-surface-500",children:["Tools available to this agent (",r.length,")"]}),s.jsxs("div",{className:"grid gap-2 sm:grid-cols-2",children:[r.map(g=>s.jsxs("div",{className:"rounded-lg border border-surface-200 p-3",children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:g.label||g.id}),g.description&&s.jsx("p",{className:"mt-0.5 text-xs text-surface-400 line-clamp-2",children:g.description}),g.pluginId&&s.jsxs("p",{className:"mt-1 text-[10px] text-surface-400",children:["Plugin: ",g.pluginId]})]},g.id)),r.length===0&&s.jsx("p",{className:"col-span-2 py-8 text-center text-sm text-surface-400",children:"No tools data available"})]})]})}function Vg({agentId:u}){const{gateway:c,connected:f}=we(),[r,d]=b.useState([]),[m,v]=b.useState(!0);return b.useEffect(()=>{!c||!f||c.request("skills.status",{agentId:u}).then(g=>d(Array.isArray(g==null?void 0:g.skills)?g.skills:[])).catch(()=>{}).finally(()=>v(!1))},[c,f,u]),m?s.jsx(lt,{}):s.jsxs("div",{children:[s.jsxs("p",{className:"mb-4 text-sm text-surface-500",children:["Skills for this agent (",r.length,")"]}),s.jsxs("div",{className:"space-y-2",children:[r.map(g=>{const h=g.eligible&&!g.disabled&&!g.blockedByAllowlist;return s.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-surface-200 p-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[g.emoji?s.jsx("span",{className:"text-lg",children:g.emoji}):s.jsx(Bi,{className:"h-4 w-4 text-surface-500"}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium",children:g.name}),g.description&&s.jsx("p",{className:"text-xs text-surface-400 line-clamp-1",children:g.description}),s.jsxs("p",{className:"text-[10px] text-surface-400 font-mono",children:[g.skillKey," ยท ",g.source]})]})]}),h?s.jsx("span",{className:"badge-green",children:"Enabled"}):g.disabled?s.jsx("span",{className:"badge-gray",children:"Disabled"}):g.blockedByAllowlist?s.jsx("span",{className:"rounded bg-amber-50 px-2 py-0.5 text-xs text-amber-600",children:"Blocked"}):s.jsx("span",{className:"badge-gray",children:"Ineligible"})]},g.skillKey)}),r.length===0&&s.jsx("p",{className:"py-8 text-center text-sm text-surface-400",children:"No skills data available"})]})]})}function Zg(u){if(!u)return"";const c=Date.now()-u;return c<6e4?"just now":c<36e5?`${Math.floor(c/6e4)}m ago`:c<864e5?`${Math.floor(c/36e5)}h ago`:new Date(u).toLocaleDateString()}function Kg(u){return u.derivedTitle||u.displayName||u.label||u.subject||u.key}function Jg({sessionKey:u,onClose:c}){const{gateway:f,connected:r}=we(),[d,m]=b.useState([]),[v,g]=b.useState(!0),h=b.useRef(null);return b.useEffect(()=>{!f||!r||f.request("chat.history",{sessionKey:u,limit:100}).then(x=>{if(!Array.isArray(x==null?void 0:x.messages))return;const S=x.messages.map(j=>({role:String(j.role??"unknown"),text:Jl(j.content??j.text??j.message??"")})).filter(j=>j.text&&(j.role==="user"||j.role==="assistant"));m(S)}).catch(()=>{}).finally(()=>g(!1))},[f,r,u]),b.useEffect(()=>{var x;(x=h.current)==null||x.scrollTo({top:h.current.scrollHeight})},[d]),s.jsxs("div",{className:"mt-3 rounded-lg border border-surface-200 bg-surface-50",children:[s.jsxs("div",{className:"flex items-center justify-between border-b border-surface-200 px-4 py-2",children:[s.jsxs("p",{className:"text-xs font-medium text-surface-600",children:["Chat History (",d.length," messages)"]}),s.jsx("button",{onClick:c,className:"text-xs text-surface-400 hover:text-surface-600 transition-colors",children:"Close"})]}),s.jsx("div",{ref:h,className:"max-h-[400px] overflow-y-auto p-4 space-y-2.5",children:v?s.jsx("div",{className:"py-8 text-center",children:s.jsx(Qe,{className:"mx-auto h-5 w-5 animate-spin text-surface-400"})}):d.length===0?s.jsx("p",{className:"py-6 text-center text-xs text-surface-400",children:"No messages in this session"}):d.map((x,S)=>s.jsx("div",{className:Ke("max-w-[85%] rounded-lg px-3.5 py-2 text-sm whitespace-pre-wrap leading-relaxed",x.role==="user"?"ml-auto bg-primary-600 text-white":"bg-white text-surface-800 border border-surface-200"),children:x.text},S))})]})}function $g({agentId:u}){const{gateway:c,connected:f}=we(),[r,d]=b.useState([]),[m,v]=b.useState(!0),[g,h]=b.useState(null);return b.useEffect(()=>{!c||!f||c.request("sessions.list",{agentId:u}).then(x=>d(Array.isArray(x==null?void 0:x.sessions)?x.sessions:[])).catch(()=>{}).finally(()=>v(!1))},[c,f,u]),m?s.jsx(lt,{}):s.jsxs("div",{children:[s.jsxs("p",{className:"mb-4 text-sm text-surface-500",children:["Active sessions for this agent (",r.length,")"]}),s.jsxs("div",{className:"space-y-2",children:[r.map(x=>s.jsxs("div",{children:[s.jsx("button",{onClick:()=>h(g===x.key?null:x.key),className:Ke("w-full rounded-lg border p-3.5 text-left transition-colors",g===x.key?"border-primary-300 bg-primary-50/30":"border-surface-200 hover:border-surface-300 hover:bg-surface-50"),children:s.jsxs("div",{className:"flex items-start justify-between gap-3",children:[s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"text-sm font-medium text-surface-900 truncate",children:Kg(x)}),x.lastMessagePreview&&s.jsx("p",{className:"mt-1 text-xs text-surface-500 line-clamp-2",children:x.lastMessagePreview}),s.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-2 text-[11px] text-surface-400",children:[x.channel&&s.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5",children:x.channel}),x.kind&&x.kind!=="unknown"&&s.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5",children:x.kind}),x.updatedAt&&s.jsx("span",{children:Zg(x.updatedAt)})]})]}),s.jsx(cs,{className:Ke("mt-0.5 h-4 w-4 shrink-0 transition-colors",g===x.key?"text-primary-600":"text-surface-300")})]})}),g===x.key&&s.jsx(Jg,{sessionKey:x.key,onClose:()=>h(null)})]},x.key)),r.length===0&&s.jsx("p",{className:"py-8 text-center text-sm text-surface-400",children:"No active sessions"})]})]})}function Wg(){return s.jsxs("div",{className:"rounded-lg border-2 border-dashed border-surface-200 py-12 text-center",children:[s.jsx(Ah,{className:"mx-auto h-8 w-8 text-surface-300"}),s.jsx("p",{className:"mt-2 text-sm text-surface-500",children:"Usage statistics coming soon"})]})}function Jl(u){if(!u)return"";if(typeof u=="string")return u;if(Array.isArray(u))return u.map(f=>{if(typeof f=="string")return f;if(f&&typeof f=="object"){const r=f;if(typeof r.text=="string")return r.text;if(typeof r.content=="string")return r.content}return""}).filter(Boolean).join("");const c=u;return typeof c.text=="string"?c.text:typeof c.content=="string"?c.content:Array.isArray(c.content)?Jl(c.content):""}function Fg({agentId:u}){const{gateway:c,connected:f}=we(),[r,d]=b.useState(""),[m,v]=b.useState([]),[g,h]=b.useState(!1),[x,S]=b.useState(""),j=`agent:${u}:operator-ui-test`,A=b.useRef(null),R=b.useRef(null),E=b.useRef("");b.useEffect(()=>{!c||!f||c.request("chat.history",{sessionKey:j,limit:50}).then(y=>{if(!Array.isArray(y==null?void 0:y.messages))return;const _=[];for(const M of y.messages){const L=M,J=L.role==="user"?"user":L.role==="assistant"?"assistant":null;if(!J)continue;const Z=Jl(L.content??L.text??L.message??"");Z&&_.push({role:J,content:Z})}_.length>0&&v(_)}).catch(()=>{})},[c,f,u]),b.useEffect(()=>c?c.on("chat",_=>{const M=_;if(!(!M.runId||M.runId!==A.current))if(M.state==="delta"){const L=Jl(M.message);L&&(E.current+=L,S(E.current))}else if(M.state==="final"){const L=Jl(M.message)||E.current;A.current=null,E.current="",S(""),h(!1),L&&v(J=>[...J,{role:"assistant",content:L}])}else M.state==="error"?(A.current=null,E.current="",S(""),h(!1),v(L=>[...L,{role:"error",content:M.errorMessage??"Agent error"}])):M.state==="aborted"&&(A.current=null,E.current="",S(""),h(!1),v(L=>[...L,{role:"system",content:"Run was aborted"}]))}):void 0,[c]),b.useEffect(()=>{var y;(y=R.current)==null||y.scrollTo({top:R.current.scrollHeight,behavior:"smooth"})},[m,x]);async function z(){if(!r.trim()||g||!c)return;const y=r.trim();d(""),v(M=>[...M,{role:"user",content:y}]),h(!0),E.current="",S("");const _=`op-chat-${Date.now()}-${Math.random().toString(36).slice(2,8)}`;try{const M=await c.request("chat.send",{sessionKey:j,message:y,idempotencyKey:_});if((M==null?void 0:M.status)==="error"){h(!1),v(L=>[...L,{role:"error",content:M.summary??"Failed to start"}]);return}A.current=(M==null?void 0:M.runId)??_,setTimeout(()=>{A.current&&c.request("chat.history",{sessionKey:j,limit:5}).then(L=>{if(!A.current||!Array.isArray(L==null?void 0:L.messages))return;const J=L.messages[L.messages.length-1];if((J==null?void 0:J.role)==="assistant"){const Z=Jl(J.content??J.text??"");Z&&(A.current=null,E.current="",S(""),h(!1),v(V=>[...V,{role:"assistant",content:Z}]))}}).catch(()=>{})},15e3)}catch(M){h(!1),v(L=>[...L,{role:"error",content:M instanceof Error?M.message:"Failed"}])}}function C(){c&&(c.request("sessions.reset",{key:j}).catch(()=>{}),v([]),S(""))}return s.jsxs("div",{className:"flex h-[500px] flex-col rounded-xl border border-surface-200",children:[s.jsxs("div",{className:"flex items-center justify-between border-b border-surface-100 px-4 py-2",children:[s.jsx("p",{className:"text-xs text-surface-400 font-mono",children:j}),s.jsx("button",{onClick:C,className:"text-xs text-surface-400 hover:text-red-600 transition-colors",children:"Clear history"})]}),s.jsxs("div",{ref:R,className:"flex-1 overflow-y-auto p-4 space-y-3",children:[m.length===0&&!x&&s.jsx("p",{className:"py-12 text-center text-sm text-surface-400",children:"Send a message to test this agent"}),m.map((y,_)=>s.jsx("div",{className:Ke("max-w-[80%] rounded-lg px-4 py-2.5 text-sm whitespace-pre-wrap",y.role==="user"?"ml-auto bg-primary-600 text-white":y.role==="error"?"bg-red-50 text-red-700":y.role==="system"?"mx-auto bg-surface-50 text-surface-500 text-center text-xs":"bg-surface-100 text-surface-900"),children:y.content},_)),x&&s.jsxs("div",{className:"max-w-[80%] rounded-lg px-4 py-2.5 text-sm bg-surface-100 text-surface-900 whitespace-pre-wrap",children:[x,s.jsx("span",{className:"inline-block w-1.5 h-4 bg-primary-500 animate-pulse ml-0.5 align-text-bottom"})]}),g&&!x&&s.jsxs("div",{className:"max-w-[80%] rounded-lg px-4 py-2.5 text-sm bg-surface-100 text-surface-400 flex items-center gap-2",children:[s.jsx(Qe,{className:"h-3.5 w-3.5 animate-spin"}),"Thinking..."]})]}),s.jsxs("div",{className:"border-t border-surface-200 p-3 flex gap-2",children:[s.jsx("input",{className:"input flex-1",placeholder:"Type a message...",value:r,onChange:y=>d(y.target.value),onKeyDown:y=>y.key==="Enter"&&!y.shiftKey&&z(),disabled:g}),s.jsx("button",{onClick:z,disabled:g||!r.trim(),className:"btn-primary",children:g?s.jsx(Qe,{className:"h-4 w-4 animate-spin"}):"Send"})]})]})}function Ig(u,c){const f=`/agents/${c}`,r=u.startsWith(f)?u.slice(f.length).replace(/^\//,""):"";return r&&qh.includes(r)?r:"settings"}function Pg({tab:u,agentId:c}){switch(u){case"settings":return s.jsx(Yg,{agentId:c});case"channels":return s.jsx(Gg,{agentId:c});case"groups":return s.jsx(Xg,{agentId:c});case"tools":return s.jsx(Qg,{agentId:c});case"skills":return s.jsx(Vg,{agentId:c});case"sessions":return s.jsx($g,{agentId:c});case"usage":return s.jsx(Wg,{});case"chat":return s.jsx(Fg,{agentId:c})}}function Pm(){var z;const{agentId:u}=ry(),c=Jt(),f=qi(),{gateway:r,connected:d}=we(),[m,v]=b.useState(null),[g,h]=b.useState(!0),[x,S]=b.useState(!1),j=Ig(c.pathname,u??""),A=b.useCallback(()=>{!r||!d||r.request("agents.list",{}).then(C=>{const _=(Array.isArray(C==null?void 0:C.agents)?C.agents:[]).find(M=>M.id===u);v(_??null)}).catch(()=>{}).finally(()=>h(!1))},[r,d,u]);if(b.useEffect(()=>{A()},[A]),g)return s.jsx(lt,{});if(!m)return s.jsxs("div",{className:"flex flex-col items-center py-20",children:[s.jsx(us,{className:"h-8 w-8 text-surface-300"}),s.jsxs("p",{className:"mt-2 text-sm text-surface-500",children:['Agent "',u,'" not found']})]});async function R(){if(!(!r||!confirm(`Delete agent "${u}"? This cannot be undone.`))){S(!0);try{await r.request("agents.delete",{id:u}),f("/agents",{replace:!0})}catch{S(!1)}}}function E(C){const y=`/agents/${u}`;f(C==="settings"?y:`${y}/${C}`)}return s.jsxs("div",{children:[s.jsxs("div",{className:"mb-6 flex items-start justify-between",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-xl bg-primary-100",children:s.jsx(rl,{className:"h-6 w-6 text-primary-600"})}),s.jsxs("div",{children:[s.jsx("h1",{className:"text-xl font-semibold text-surface-900",children:((z=m.identity)==null?void 0:z.name)||m.name||m.id}),s.jsxs("p",{className:"text-sm text-surface-400",children:["ID: ",s.jsx("code",{className:"font-mono",children:m.id}),m.model&&s.jsxs(s.Fragment,{children:[" ยท Model: ",m.model]})]})]})]}),s.jsxs("button",{onClick:R,disabled:x,className:"btn-ghost text-red-600 hover:text-red-700 hover:bg-red-50",children:[s.jsx(Ga,{className:"h-4 w-4"}),"Delete"]})]}),s.jsx("div",{className:"mb-6 flex gap-1 overflow-x-auto border-b border-surface-200",children:qh.map(C=>{const{label:y,icon:_}=Lg[C],M=C===j;return s.jsxs("button",{onClick:()=>E(C),className:Ke("flex items-center gap-2 whitespace-nowrap border-b-2 px-4 py-2.5 text-sm font-medium transition-colors",M?"border-primary-600 text-primary-600":"border-transparent text-surface-500 hover:text-surface-700"),children:[s.jsx(_,{className:"h-4 w-4"}),y]},C)})}),s.jsx(Pg,{tab:j,agentId:u})]})}function Tr({icon:u,title:c,description:f,action:r}){return s.jsxs("div",{className:"flex flex-col items-center justify-center rounded-xl border-2 border-dashed border-surface-200 py-16",children:[s.jsx("div",{className:"mb-4 text-surface-300",children:u}),s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:c}),s.jsx("p",{className:"mt-1 text-sm text-surface-500",children:f}),r&&s.jsx("div",{className:"mt-4",children:r})]})}function e1(){const{gateway:u,connected:c}=we(),[f,r]=b.useState([]),[d,m]=b.useState(""),[v,g]=b.useState(!0);return b.useEffect(()=>{!u||!c||u.request("agents.list",{}).then(h=>{r(Array.isArray(h==null?void 0:h.agents)?h.agents:[]),m((h==null?void 0:h.defaultId)??"")}).catch(()=>{}).finally(()=>g(!1))},[u,c]),v?s.jsx(lt,{}):s.jsxs("div",{children:[s.jsx($t,{title:"Agents",description:"Create and manage your AI agents",actions:s.jsxs(Vt,{to:"/agents/new",className:"btn-primary",children:[s.jsx(Kt,{className:"h-4 w-4"}),"New Agent"]})}),f.length===0?s.jsx(Tr,{icon:s.jsx(rl,{className:"h-12 w-12"}),title:"No agents yet",description:"Create your first AI agent to get started",action:s.jsxs(Vt,{to:"/agents/new",className:"btn-primary",children:[s.jsx(Kt,{className:"h-4 w-4"}),"Create Agent"]})}):s.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:f.map(h=>{var x;return s.jsxs(Vt,{to:`/agents/${h.id}`,className:"card group flex flex-col transition-all hover:border-primary-200 hover:shadow-sm",children:[s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-primary-100",children:s.jsx(rl,{className:"h-5 w-5 text-primary-600"})}),s.jsx(xa,{className:"h-4 w-4 text-surface-300 transition-colors group-hover:text-primary-500"})]}),s.jsxs("div",{className:"mt-3 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:((x=h.identity)==null?void 0:x.name)||h.name||h.id}),h.id===d&&s.jsx(Eg,{className:"h-3.5 w-3.5 fill-amber-400 text-amber-400"})]}),s.jsxs("p",{className:"mt-0.5 text-xs text-surface-400",children:["ID: ",s.jsx("code",{className:"font-mono",children:h.id})]})]}),h.model&&s.jsx("div",{className:"mt-3 border-t border-surface-100 pt-3",children:s.jsxs("p",{className:"text-xs text-surface-500",children:["Model: ",s.jsx("span",{className:"font-medium text-surface-700",children:h.model})]})})]},h.id)})})]})}function Pn(u){if(u)return Array.isArray(u.type)?u.type.filter(f=>f!=="null")[0]??u.type[0]:u.type}function Bh(u){if(!u)return"";if(u.default!==void 0)return u.default;switch(Pn(u)){case"object":return{};case"array":return[];case"boolean":return!1;case"number":case"integer":return 0;case"string":return"";default:return""}}function t1(u){return u.filter(c=>typeof c=="string").join(".")}function eh(u,c){const f=t1(u),r=c[f];if(r)return r;const d=f.split(".");for(const[m,v]of Object.entries(c)){if(!m.includes("*"))continue;const g=m.split(".");if(g.length!==d.length)continue;let h=!0;for(let x=0;x<d.length;x++)if(g[x]!=="*"&&g[x]!==d[x]){h=!1;break}if(h)return v}}function a1(u){return u.replace(/_/g," ").replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/\s+/g," ").replace(/^./,c=>c.toUpperCase())}function l1(u){if(u.enum&&u.enum.length>0)return u.enum.map(f=>String(f??""));const c=u.anyOf??u.oneOf;if(c){const f=[];for(const r of c)r.const!==void 0?f.push(String(r.const)):r.enum&&r.enum.length===1&&f.push(String(r.enum[0]));if(f.length>0&&f.length===c.length)return f}return null}function cl({label:u,help:c,children:f,indent:r}){return s.jsxs("div",{className:Ke("mb-3",r&&"ml-4"),children:[s.jsx("label",{className:"block text-xs font-medium text-surface-700 mb-1",children:u}),f,c&&s.jsx("p",{className:"mt-0.5 text-[10px] text-surface-400",children:c})]})}function n1({value:u,onChange:c,placeholder:f}){const[r,d]=b.useState(!1);return s.jsxs("div",{className:"relative",children:[s.jsx("input",{className:"input text-sm font-mono !pr-10",type:r?"text":"password",value:u,onChange:m=>c(m.target.value),placeholder:f}),s.jsx("button",{type:"button",onClick:()=>d(!r),className:"absolute right-2 top-1/2 -translate-y-1/2 text-surface-400 hover:text-surface-600",children:r?s.jsx(Ch,{className:"h-4 w-4"}):s.jsx(Th,{className:"h-4 w-4"})})]})}function s1({value:u,onChange:c,itemPlaceholder:f}){function r(){c([...u,""])}function d(v){c(u.filter((g,h)=>h!==v))}function m(v,g){const h=[...u];h[v]=g,c(h)}return s.jsxs("div",{className:"space-y-1.5",children:[u.map((v,g)=>s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("input",{className:"input text-sm flex-1",value:v,onChange:h=>m(g,h.target.value),placeholder:f??`Item ${g+1}`}),s.jsx("button",{onClick:()=>d(g),className:"text-surface-400 hover:text-red-500 p-1",children:s.jsx(Ga,{className:"h-3.5 w-3.5"})})]},g)),s.jsxs("button",{onClick:r,className:"flex items-center gap-1 text-xs text-primary-600 hover:text-primary-700",children:[s.jsx(Kt,{className:"h-3 w-3"}),"Add"]})]})}function i1({value:u,valueSchema:c,path:f,hints:r,onChange:d}){const[m,v]=b.useState("");function g(){const j=m.trim();!j||j in u||(d({...u,[j]:Bh(c)}),v(""))}function h(j){const A={...u};delete A[j],d(A)}function x(j,A){d({...u,[j]:A})}const S=Pn(c);return s.jsxs("div",{className:"space-y-2",children:[Object.entries(u).map(([j,A])=>s.jsxs("div",{className:"rounded-lg bg-surface-50 border border-surface-100 p-3",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("span",{className:"text-xs font-mono font-medium text-surface-700",children:j}),s.jsx("button",{onClick:()=>h(j),className:"text-surface-400 hover:text-red-500 p-0.5",children:s.jsx(Ga,{className:"h-3.5 w-3.5"})})]}),S==="object"?s.jsx(ls,{schema:c,value:A,path:[...f,j],hints:r,showLabel:!1,onChange:R=>x(j,R)}):s.jsx(ls,{schema:c,value:A,path:[...f,j],hints:r,showLabel:!1,onChange:R=>x(j,R)})]},j)),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("input",{className:"input text-xs flex-1",value:m,onChange:j=>v(j.target.value),placeholder:"New key...",onKeyDown:j=>j.key==="Enter"&&g()}),s.jsxs("button",{onClick:g,disabled:!m.trim(),className:"flex items-center gap-1 text-xs text-primary-600 hover:text-primary-700 disabled:opacity-40",children:[s.jsx(Kt,{className:"h-3 w-3"}),"Add"]})]})]})}function u1({label:u,help:c,children:f,defaultOpen:r}){const[d,m]=b.useState(r??!1);return s.jsxs("div",{className:"rounded-lg border border-surface-200 mb-3",children:[s.jsxs("button",{onClick:()=>m(!d),className:"flex w-full items-center justify-between px-3 py-2.5 text-left",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-xs font-semibold text-surface-800",children:u}),c&&s.jsx("p",{className:"text-[10px] text-surface-400 mt-0.5",children:c})]}),d?s.jsx(is,{className:"h-4 w-4 text-surface-400"}):s.jsx(xa,{className:"h-4 w-4 text-surface-400"})]}),d&&s.jsx("div",{className:"border-t border-surface-100 px-3 py-3",children:f})]})}function ls({schema:u,value:c,path:f,hints:r,showLabel:d,onChange:m}){const v=eh(f,r),g=(v==null?void 0:v.label)??u.title??a1(String(f.at(-1)??"")),h=(v==null?void 0:v.help)??u.description,x=(v==null?void 0:v.sensitive)??!1,S=v==null?void 0:v.placeholder,j=Pn(u),A=l1(u);if(A){const z=c!=null?String(c):"",C=s.jsxs("select",{className:"input text-sm",value:z,onChange:y=>m(y.target.value||void 0),children:[s.jsx("option",{value:"",children:"โ"}),A.map(y=>s.jsx("option",{value:y,children:y},y))]});return d!==!1?s.jsx(cl,{label:g,help:h,children:C}):C}if(j==="string"){const z=c!=null?String(c):"",C=x?s.jsx(n1,{value:z,onChange:y=>m(y||void 0),placeholder:S}):s.jsx("input",{className:"input text-sm",value:z,onChange:y=>m(y.target.value||void 0),placeholder:S});return d!==!1?s.jsx(cl,{label:g,help:h,children:C}):C}if(j==="number"||j==="integer"){const z=c!=null?Number(c):"",C=s.jsx("input",{className:"input text-sm",type:"number",value:z,onChange:y=>{const _=y.target.value;m(_===""?void 0:Number(_))},min:u.minimum,max:u.maximum,placeholder:S});return d!==!1?s.jsx(cl,{label:g,help:h,children:C}):C}if(j==="boolean"){const z=!!c,C=s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("input",{type:"checkbox",checked:z,onChange:y=>m(y.target.checked),className:"rounded"}),d!==!1&&s.jsx("span",{className:"text-xs text-surface-700",children:g})]});return d!==!1?s.jsxs("div",{className:"mb-3",children:[C,h&&s.jsx("p",{className:"mt-0.5 ml-6 text-[10px] text-surface-400",children:h})]}):C}if(j==="array"){const z=Array.isArray(u.items)?u.items[0]:u.items,C=Array.isArray(c)?c:[],y=z?Pn(z):"string";if(y==="string"||y==="number"||y==="integer"){const M=s.jsx(s1,{value:C.map(L=>String(L??"")),onChange:L=>m(L.filter(Boolean)),itemPlaceholder:S});return d!==!1?s.jsx(cl,{label:g,help:h,children:M}):M}if(z&&y==="object"){const M=s.jsxs("div",{className:"space-y-2",children:[C.map((L,J)=>s.jsxs("div",{className:"rounded-lg bg-surface-50 border border-surface-100 p-3",children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsxs("span",{className:"text-xs font-mono text-surface-500",children:["#",J+1]}),s.jsx("button",{onClick:()=>m(C.filter((Z,V)=>V!==J)),className:"text-surface-400 hover:text-red-500 p-0.5",children:s.jsx(Ga,{className:"h-3.5 w-3.5"})})]}),s.jsx(ls,{schema:z,value:L,path:[...f,J],hints:r,showLabel:!0,onChange:Z=>{const V=[...C];V[J]=Z,m(V)}})]},J)),s.jsxs("button",{onClick:()=>m([...C,Bh(z)]),className:"flex items-center gap-1 text-xs text-primary-600 hover:text-primary-700",children:[s.jsx(Kt,{className:"h-3 w-3"}),"Add"]})]});return d!==!1?s.jsx(cl,{label:g,help:h,children:M}):M}const _=s.jsx("textarea",{className:"input text-xs font-mono min-h-[60px]",value:JSON.stringify(C,null,2),onChange:M=>{try{m(JSON.parse(M.target.value))}catch{}}});return d!==!1?s.jsx(cl,{label:g,help:h,children:_}):_}if(j==="object"){const z=c&&typeof c=="object"&&!Array.isArray(c)?c:{},C=u.properties??{},y=u.additionalProperties,_=Object.keys(C),M=f.length>2,L=s.jsxs(s.Fragment,{children:[_.map(J=>{const Z=C[J];Pn(Z);const V=eh([...f,J],r);return V!=null&&V.advanced?null:s.jsx(ls,{schema:Z,value:z[J],path:[...f,J],hints:r,showLabel:!0,onChange:B=>{const K={...z};B===void 0||B===""||B===null?delete K[J]:K[J]=B,m(K)}},J)}),y&&typeof y=="object"&&s.jsx(i1,{value:Object.fromEntries(Object.entries(z).filter(([J])=>!_.includes(J))),valueSchema:y,path:f,hints:r,onChange:J=>{const Z={};for(const V of _)z[V]!==void 0&&(Z[V]=z[V]);m({...Z,...J})}})]});return M&&d!==!1?s.jsx(u1,{label:g,help:h,defaultOpen:!1,children:L}):d!==!1&&f.length>1?s.jsxs("div",{className:"mb-3",children:[s.jsx("p",{className:"text-xs font-semibold text-surface-700 mb-2",children:g}),h&&s.jsx("p",{className:"text-[10px] text-surface-400 mb-2",children:h}),s.jsx("div",{className:"ml-1 border-l-2 border-surface-100 pl-3",children:L})]}):s.jsx(s.Fragment,{children:L})}const R=c!=null?JSON.stringify(c,null,2):"",E=s.jsx("textarea",{className:"input text-xs font-mono min-h-[60px]",value:R,onChange:z=>{try{m(JSON.parse(z.target.value))}catch{m(z.target.value||void 0)}},placeholder:S});return d!==!1?s.jsx(cl,{label:g,help:h,children:E}):E}function c1({schema:u,value:c,path:f,hints:r,onChange:d}){return s.jsx(ls,{schema:u,value:c,path:f,hints:r,showLabel:!1,onChange:m=>d(m??{})})}function r1(u,c){var d;if(!((d=u==null?void 0:u.schema)!=null&&d.properties))return null;const f=u.schema.properties.channels;if(!f||typeof f!="object")return null;const r=f.properties;return r?r[c]??null:null}function o1(u,c){const r=(u.channels??{})[c];return r&&typeof r=="object"&&!Array.isArray(r)?r:{}}function f1({channelId:u,onSaved:c}){const{gateway:f,connected:r}=we(),[d,m]=b.useState(null),[v,g]=b.useState({}),[h,x]=b.useState({}),[S,j]=b.useState({}),[A,R]=b.useState(void 0),[E,z]=b.useState(!0),[C,y]=b.useState(!1),[_,M]=b.useState("idle"),[L,J]=b.useState(""),Z=b.useCallback(()=>{!f||!r||(z(!0),Promise.all([f.request("config.schema",{}),f.request("config.get")]).then(([W,te])=>{const Re=r1(W,u);m(Re),g((W==null?void 0:W.uiHints)??{});const Ve=(te==null?void 0:te.config)??{},We=o1(Ve,u);x(We),j(We),R(te==null?void 0:te.hash)}).catch(()=>{}).finally(()=>z(!1)))},[f,r,u]);b.useEffect(()=>{Z()},[Z]);const V=JSON.stringify(h)!==JSON.stringify(S);async function B(){if(f){y(!0),M("idle"),J("");try{const W={channels:{[u]:h}},te={raw:JSON.stringify(W)};A&&(te.baseHash=A),await f.request("config.patch",te),j(h),M("saved"),setTimeout(()=>M("idle"),3e3),c==null||c()}catch(W){M("error"),J(W instanceof Error?W.message:"Save failed")}y(!1)}}function K(){x(S),M("idle")}return E?s.jsxs("div",{className:"py-6 text-center",children:[s.jsx(Qe,{className:"mx-auto h-5 w-5 animate-spin text-surface-400"}),s.jsx("p",{className:"mt-2 text-xs text-surface-400",children:"Loading configuration schema..."})]}):d?s.jsxs("div",{children:[s.jsx("div",{className:"max-h-[500px] overflow-y-auto pr-1",children:s.jsx(c1,{schema:d,value:h,path:["channels",u],hints:v,onChange:x})}),_==="saved"&&s.jsxs("div",{className:"mt-3 flex items-center gap-2 rounded-lg bg-emerald-50 p-2.5 text-xs text-emerald-700",children:[s.jsx(Ri,{className:"h-3.5 w-3.5 shrink-0"}),"Configuration saved. Gateway will restart to apply changes."]}),_==="error"&&s.jsxs("div",{className:"mt-3 flex items-center gap-2 rounded-lg bg-red-50 p-2.5 text-xs text-red-700",children:[s.jsx(us,{className:"h-3.5 w-3.5 shrink-0"}),L||"Failed to save configuration"]}),s.jsxs("div",{className:"mt-4 flex items-center gap-3 border-t border-surface-100 pt-3",children:[s.jsxs("button",{onClick:B,disabled:C||!V,className:"btn-primary !py-1.5 !text-xs",children:[C?s.jsx(Qe,{className:"h-3.5 w-3.5 animate-spin"}):s.jsx(Pl,{className:"h-3.5 w-3.5"}),"Save Configuration"]}),s.jsxs("button",{onClick:K,disabled:!V,className:"btn-secondary !py-1.5 !text-xs",children:[s.jsx(zh,{className:"h-3.5 w-3.5"}),"Reset"]}),V&&s.jsx("span",{className:"text-[10px] text-amber-600",children:"Unsaved changes"})]})]}):s.jsxs("div",{className:"py-4 text-center text-xs text-surface-400",children:[s.jsx($l,{className:"mx-auto h-5 w-5 text-surface-300 mb-2"}),"No configuration schema available for this channel.",s.jsx("br",{}),"You can edit the raw config in Settings."]})}const kh={whatsapp:"๐ฌ",telegram:"โ๏ธ",discord:"๐ฎ",slack:"๐ผ",signal:"๐",imessage:"๐ฌ",bluebubbles:"๐ฌ",googlechat:"๐ฌ",msteams:"๐ข",feishu:"๐ฆ",matrix:"๐",webchat:"๐",line:"๐",nostr:"๐",twitch:"๐ฎ",irc:"๐ป",mattermost:"๐ฌ"};function In(u,...c){if(!u||typeof u!="object")return;const f=u;for(const r of c){const d=f[r];if(typeof d=="string"&&d.trim())return d.trim()}}function th(u){if(!u)return"";const c=Date.now()-u;return c<6e4?"just now":c<36e5?`${Math.floor(c/6e4)}m ago`:c<864e5?`${Math.floor(c/36e5)}h ago`:new Date(u).toLocaleDateString()}function d1(u){var S,j;if(!u||typeof u!="object")return{views:[],allMeta:[]};const c=u,f=c.channels??{},r=c.channelAccounts??{},d=c.channelLabels??{},m=c.channelMeta??{},v=c.channelOrder??Object.keys(f),g={};if(Array.isArray(m))for(const A of m)A.id&&(g[A.id]=A);else Object.assign(g,m);const h=[];for(const A of v){const R=f[A];if(!R)continue;const E=r[A],C=(Array.isArray(E)?E:E&&typeof E=="object"?Object.entries(E).map(([y,_])=>({..._,accountId:y})):[]).map(y=>{const _=In(y.application,"name","appName","app_name")??(y.appId?`App ${y.appId}`:void 0),M=In(y.application,"tenantName","tenant_name","companyName","company_name","orgName","org_name"),L=y.probe,J=In(y.bot,"name","botName","bot_name")??In(y.profile,"name","displayName","display_name")??In(L,"botName","bot_name"),Z=y.domain;return{id:String(y.accountId??"default"),name:y.name??J??String(y.accountId??"default"),connected:y.connected??y.running??!1,enabled:y.enabled!==!1,configured:y.configured??!1,mode:y.mode??(Z?`${Z}`:void 0),lastInboundAt:y.lastInboundAt,lastOutboundAt:y.lastOutboundAt,appName:_,tenantName:M,botName:J,raw:y}});h.push({id:A,label:d[A]??((S=g[A])==null?void 0:S.label)??A,blurb:(j=g[A])==null?void 0:j.blurb,configured:(R==null?void 0:R.configured)??!1,accounts:C})}const x=Array.isArray(m)?m:Object.entries(m).map(([A,R])=>({...R,id:A}));return{views:h,allMeta:x}}function m1({ch:u,configOpen:c,onToggleConfig:f,onLogout:r,actionLoading:d,onConfigSaved:m}){const v=u.accounts.some(h=>h.connected),g=kh[u.id]??"๐ก";return s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("span",{className:"text-2xl",children:g}),s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:u.label}),u.blurb&&s.jsx("p",{className:"text-xs text-surface-400",children:u.blurb})]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("button",{onClick:f,className:"btn-ghost !px-2.5 !py-1.5 text-xs text-surface-500 hover:text-primary-600",title:"Configure",children:[s.jsx($l,{className:"h-3.5 w-3.5"}),"Configure",c?s.jsx(is,{className:"h-3 w-3 ml-0.5"}):s.jsx(xa,{className:"h-3 w-3 ml-0.5"})]}),v?s.jsxs("span",{className:"badge-green",children:[s.jsx(Rh,{className:"mr-1 h-3 w-3"}),"Online"]}):u.configured?s.jsxs("span",{className:"badge-gray",children:[s.jsx(_h,{className:"mr-1 h-3 w-3"}),"Offline"]}):s.jsx("span",{className:"badge-gray",children:"Not Configured"})]})]}),u.accounts.length>0&&s.jsx("div",{className:"mt-3 space-y-2 border-t border-surface-100 pt-3",children:u.accounts.map(h=>s.jsxs("div",{className:"rounded-lg bg-surface-50 px-4 py-3",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-2.5",children:[s.jsx("div",{className:`h-2.5 w-2.5 rounded-full shrink-0 ${h.connected?"bg-emerald-500":"bg-surface-300"}`}),s.jsxs("div",{children:[s.jsx("span",{className:"text-sm font-medium text-surface-800",children:h.name}),h.id!=="default"&&h.id!==h.name&&s.jsx("span",{className:"ml-2 text-[11px] text-surface-400 font-mono",children:h.id})]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:`text-xs font-medium ${h.connected?"text-emerald-600":"text-surface-400"}`,children:h.connected?"Connected":h.configured?"Disconnected":"Not configured"}),h.connected&&s.jsx("button",{onClick:()=>r(u.id,h.id),disabled:d===`${u.id}:${h.id}`,className:"btn-ghost !px-2 !py-1 text-xs text-surface-500 hover:text-red-600",title:"Logout",children:d===`${u.id}:${h.id}`?s.jsx(Qe,{className:"h-3.5 w-3.5 animate-spin"}):s.jsx(Mh,{className:"h-3.5 w-3.5"})})]})]}),s.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-x-4 gap-y-1 text-[11px] text-surface-500",children:[h.appName&&s.jsxs("span",{className:"flex items-center gap-1",children:[s.jsx(Di,{className:"h-3 w-3 text-surface-400"}),"App: ",h.appName]}),h.tenantName&&s.jsxs("span",{children:["Org: ",h.tenantName]}),h.botName&&h.botName!==h.name&&s.jsxs("span",{children:["Bot: ",h.botName]}),h.mode&&s.jsx("span",{className:"rounded bg-surface-200 px-1.5 py-0.5 text-[10px]",children:h.mode})]}),(h.lastInboundAt||h.lastOutboundAt)&&s.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-x-4 gap-y-1 text-[11px] text-surface-400",children:[h.lastInboundAt&&s.jsxs("span",{className:"flex items-center gap-1",title:"Last message received",children:[s.jsx(rg,{className:"h-3 w-3"}),"In: ",th(h.lastInboundAt)]}),h.lastOutboundAt&&s.jsxs("span",{className:"flex items-center gap-1",title:"Last message sent",children:[s.jsx(fg,{className:"h-3 w-3"}),"Out: ",th(h.lastOutboundAt)]})]})]},h.id))}),c&&s.jsxs("div",{className:"mt-4 border-t border-surface-200 pt-4",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx($l,{className:"h-4 w-4 text-primary-600"}),s.jsxs("h4",{className:"text-xs font-semibold text-surface-800",children:[u.label," Configuration"]})]}),s.jsx(f1,{channelId:u.id,onSaved:m})]})]})}function h1({existingIds:u,allMeta:c,onSelect:f,onClose:r}){const d=c.filter(m=>m.id&&!u.has(m.id));return d.length===0?s.jsxs("div",{className:"card mb-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:"Add Channel"}),s.jsx("button",{onClick:r,className:"text-xs text-surface-400 hover:text-surface-600",children:"Close"})]}),s.jsx("p",{className:"text-xs text-surface-500 text-center py-4",children:"All available channels are already configured. Install additional channel plugins to add more."})]}):s.jsxs("div",{className:"card mb-4",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:"Add Channel"}),s.jsx("button",{onClick:r,className:"text-xs text-surface-400 hover:text-surface-600",children:"Close"})]}),s.jsx("p",{className:"text-xs text-surface-400 mb-3",children:"Select a channel to configure. These channels are installed but not yet set up."}),s.jsx("div",{className:"grid gap-2 sm:grid-cols-2 lg:grid-cols-3",children:d.map(m=>{const v=kh[m.id]??"๐ก";return s.jsxs("button",{onClick:()=>f(m.id),className:"flex items-center gap-3 rounded-lg border border-surface-200 p-3 text-left transition-colors hover:border-primary-300 hover:bg-primary-50/30",children:[s.jsx("span",{className:"text-xl",children:v}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:m.label??m.id}),m.blurb&&s.jsx("p",{className:"text-[11px] text-surface-400 line-clamp-1",children:m.blurb})]})]},m.id)})})]})}function x1(){const{gateway:u,connected:c}=we(),[f,r]=b.useState([]),[d,m]=b.useState([]),[v,g]=b.useState(!0),[h,x]=b.useState(null),[S,j]=b.useState(null),[A,R]=b.useState(!1);function E(){!u||!c||(g(!0),u.request("channels.status",{probe:!0}).then(_=>{const{views:M,allMeta:L}=d1(_);r(M),m(L)}).catch(()=>{}).finally(()=>g(!1)))}b.useEffect(()=>{E()},[u,c]);async function z(_,M){if(!(!u||!confirm(`Logout from ${_}?`))){x(`${_}:${M}`);try{await u.request("channels.logout",{channel:_,accountId:M}),E()}catch{}x(null)}}function C(_){if(R(!1),j(_),!f.find(M=>M.id===_)){const M=d.find(L=>L.id===_);r(L=>[...L,{id:_,label:(M==null?void 0:M.label)??_,blurb:M==null?void 0:M.blurb,configured:!1,accounts:[]}])}}if(v)return s.jsx(lt,{});const y=new Set(f.map(_=>_.id));return s.jsxs("div",{children:[s.jsx($t,{title:"Channels",description:"Monitor and manage your messaging channels",actions:s.jsxs("div",{className:"flex gap-2",children:[s.jsxs("button",{onClick:E,className:"btn-secondary",children:[s.jsx(ki,{className:"h-4 w-4"}),"Refresh"]}),s.jsxs("button",{onClick:()=>R(!A),className:"btn-primary",children:[s.jsx(Kt,{className:"h-4 w-4"}),"Add Channel"]})]})}),A&&s.jsx(h1,{existingIds:y,allMeta:d,onSelect:C,onClose:()=>R(!1)}),s.jsxs("div",{className:"space-y-3",children:[f.map(_=>s.jsx(m1,{ch:_,configOpen:S===_.id,onToggleConfig:()=>j(S===_.id?null:_.id),onLogout:z,actionLoading:h,onConfigSaved:E},_.id)),f.length===0&&s.jsxs("div",{className:"card py-12 text-center",children:[s.jsx(as,{className:"mx-auto h-8 w-8 text-surface-300"}),s.jsx("p",{className:"mt-2 text-sm text-surface-500",children:"No channels installed. Install channel plugins to get started."})]})]})]})}function p1(){const{gateway:u,connected:c}=we(),[f,r]=b.useState([]),[d,m]=b.useState(!0),[v,g]=b.useState(null);function h(){!u||!c||u.request("cron.list",{}).then(A=>r(Array.isArray(A==null?void 0:A.jobs)?A.jobs:[])).catch(()=>r([])).finally(()=>m(!1))}b.useEffect(()=>{h()},[u,c]);async function x(A,R){if(u){g(A);try{await u.request("cron.update",{id:A,enabled:!R}),r(E=>E.map(z=>z.id===A?{...z,enabled:!R}:z))}catch{}g(null)}}async function S(A){if(u){g(A);try{await u.request("cron.run",{id:A})}catch{}g(null)}}async function j(A){if(!(!u||!confirm("Remove this cron job?"))){g(A);try{await u.request("cron.remove",{id:A}),r(R=>R.filter(E=>E.id!==A))}catch{}g(null)}}return d?s.jsx(lt,{}):s.jsxs("div",{children:[s.jsx($t,{title:"Cron Jobs",description:"Manage scheduled tasks"}),f.length===0?s.jsx(Tr,{icon:s.jsx(yr,{className:"h-12 w-12"}),title:"No cron jobs",description:"Scheduled tasks will appear here. Create them via the agent chat."}):s.jsx("div",{className:"space-y-2",children:f.map(A=>s.jsxs("div",{className:"card flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-amber-50",children:s.jsx(yr,{className:"h-4 w-4 text-amber-600"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:A.message||A.id}),s.jsxs("div",{className:"flex items-center gap-3 text-xs text-surface-400",children:[s.jsx("code",{className:"font-mono",children:A.schedule}),A.agentId&&s.jsxs("span",{children:["Agent: ",A.agentId]}),A.nextRunAt&&s.jsxs("span",{children:["Next: ",A.nextRunAt]})]})]})]}),s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("button",{onClick:()=>S(A.id),disabled:v===A.id,className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-emerald-600",title:"Run now",children:v===A.id?s.jsx(Qe,{className:"h-3.5 w-3.5 animate-spin"}):s.jsx(Wm,{className:"h-3.5 w-3.5"})}),s.jsx("button",{onClick:()=>x(A.id,A.enabled),className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-amber-600",title:A.enabled?"Pause":"Resume",children:A.enabled?s.jsx(Ng,{className:"h-3.5 w-3.5"}):s.jsx(Wm,{className:"h-3.5 w-3.5"})}),s.jsx("button",{onClick:()=>j(A.id),className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-red-600",title:"Remove",children:s.jsx(Ga,{className:"h-3.5 w-3.5"})})]})]},A.id))})]})}function y1(){const{gateway:u,connected:c}=we(),[f,r]=b.useState(!0),[d,m]=b.useState([]),[v,g]=b.useState(""),[h,x]=b.useState([]),[S,j]=b.useState(0);if(b.useEffect(()=>{if(!u||!c)return;let E=!1;return r(!0),Promise.all([u.request("agents.list",{}).catch(()=>null),u.request("channels.status",{}).catch(()=>null),u.request("sessions.list",{}).catch(()=>null)]).then(([z,C,y])=>{if(E)return;const _=Array.isArray(z==null?void 0:z.agents)?z.agents:[];m(_),g((z==null?void 0:z.defaultId)??"");const M=[];if(C!=null&&C.channels&&typeof C.channels=="object"){const L=C.channelAccounts??{};for(const[J,Z]of Object.entries(C.channels)){const V=L[J];let B=!1;V&&typeof V=="object"&&(B=Object.values(V).some(K=>K&&typeof K=="object"&&K.status==="online")),M.push({id:J,configured:(Z==null?void 0:Z.configured)??!1,online:B,label:J})}}x(M),j(typeof(y==null?void 0:y.count)=="number"?y.count:Array.isArray(y==null?void 0:y.sessions)?y.sessions.length:0),r(!1)}),()=>{E=!0}},[u,c]),f)return s.jsx(lt,{});const A=h.filter(E=>E.online),R=[{label:"Active Agents",value:d.length,icon:rl,color:"bg-primary-50 text-primary-600",to:"/agents"},{label:"Channels Online",value:`${A.length} / ${h.length}`,icon:as,color:"bg-emerald-50 text-emerald-600",to:"/channels"},{label:"Active Sessions",value:S,icon:cs,color:"bg-blue-50 text-blue-600",to:"/sessions"},{label:"System Health",value:"OK",icon:cg,color:"bg-amber-50 text-amber-600",to:"/settings"}];return s.jsxs("div",{children:[s.jsx($t,{title:"Dashboard",description:"Overview of your AI assistant system"}),s.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-4",children:R.map(E=>s.jsxs(Vt,{to:E.to,className:"card group hover:border-primary-200 transition-colors",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("div",{className:`flex h-10 w-10 items-center justify-center rounded-lg ${E.color}`,children:s.jsx(E.icon,{className:"h-5 w-5"})}),s.jsx(og,{className:"h-4 w-4 text-surface-300 transition-colors group-hover:text-primary-500"})]}),s.jsx("p",{className:"mt-3 text-2xl font-semibold text-surface-900",children:E.value}),s.jsx("p",{className:"text-sm text-surface-500",children:E.label})]},E.label))}),s.jsxs("div",{className:"mt-8 grid gap-6 lg:grid-cols-2",children:[s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[s.jsx("h2",{className:"text-sm font-semibold text-surface-900",children:"Agents"}),s.jsx(Vt,{to:"/agents",className:"text-xs font-medium text-primary-600 hover:text-primary-700",children:"View all โ"})]}),s.jsx("div",{className:"space-y-2",children:d.length===0?s.jsx("p",{className:"py-4 text-center text-sm text-surface-400",children:"No agents configured"}):d.slice(0,5).map(E=>{var z;return s.jsxs(Vt,{to:`/agents/${E.id}`,className:"flex items-center justify-between rounded-lg p-3 transition-colors hover:bg-surface-50",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-primary-100 text-primary-700",children:s.jsx(rl,{className:"h-4 w-4"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:((z=E.identity)==null?void 0:z.name)||E.name||E.id}),s.jsxs("p",{className:"text-xs text-surface-400",children:["ID: ",E.id]})]})]}),E.id===v&&s.jsx("span",{className:"badge-primary",children:"Default"})]},E.id)})})]}),s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[s.jsx("h2",{className:"text-sm font-semibold text-surface-900",children:"Channels"}),s.jsx(Vt,{to:"/channels",className:"text-xs font-medium text-primary-600 hover:text-primary-700",children:"View all โ"})]}),s.jsx("div",{className:"space-y-2",children:h.length===0?s.jsx("p",{className:"py-4 text-center text-sm text-surface-400",children:"No channels configured"}):h.slice(0,6).map(E=>s.jsxs("div",{className:"flex items-center justify-between rounded-lg p-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-surface-100",children:s.jsx(as,{className:"h-4 w-4 text-surface-600"})}),s.jsx("p",{className:"text-sm font-medium text-surface-900",children:E.label})]}),E.online?s.jsx("span",{className:"badge-green",children:"Online"}):E.configured?s.jsx("span",{className:"badge-gray",children:"Offline"}):s.jsx("span",{className:"badge-gray",children:"Not Configured"})]},E.id))})]})]})]})}const g1={whatsapp:"๐ฌ",telegram:"โ๏ธ",discord:"๐ฎ",slack:"๐ผ",signal:"๐",feishu:"๐ฆ",msteams:"๐ข",webchat:"๐"};function v1(u){if(!u)return"";const c=Date.now()-u;return c<6e4?"just now":c<36e5?`${Math.floor(c/6e4)}m ago`:c<864e5?`${Math.floor(c/36e5)}h ago`:new Date(u).toLocaleDateString()}function b1(){const{gateway:u,connected:c}=we(),[f,r]=b.useState([]),[d,m]=b.useState([]),[v,g]=b.useState([]),[h,x]=b.useState({}),[S,j]=b.useState(!0);if(b.useEffect(()=>{!u||!c||Promise.all([u.request("config.get"),u.request("agents.list",{}),u.request("sessions.list",{}),u.request("channels.status",{})]).then(([y,_,M,L])=>{var Z;const J=(Z=y==null?void 0:y.config)==null?void 0:Z.bindings;r(Array.isArray(J)?J:[]),m(Array.isArray(_==null?void 0:_.agents)?_.agents:[]),g(Array.isArray(M==null?void 0:M.sessions)?M.sessions:[]),x((L==null?void 0:L.channelLabels)??{}),j(!1)}).catch(()=>j(!1))},[u,c]),S)return s.jsx(lt,{});const A=v.filter(y=>y.kind==="group");function R(y){const _=A.find(M=>M.key.includes(y)||M.subject===y);return _?{name:_.displayName||_.derivedTitle||_.label||y,lastActive:_.updatedAt}:y.length>24?{name:y.slice(0,12)+"โฆ"+y.slice(-6)}:{name:y}}const E=f.filter(y=>{var _;return((_=y.match.peer)==null?void 0:_.kind)==="group"||y.match.guildId}).map(y=>{var L;const _=((L=y.match.peer)==null?void 0:L.id)??y.match.guildId??"Unknown group",M=R(_);return{...y,_groupId:_,_displayName:M.name,_lastActive:M.lastActive}}),z=new Map(d.map(y=>{var _;return[y.id,((_=y.identity)==null?void 0:_.name)||y.name||y.id]})),C=E.reduce((y,_)=>{const M=_.match.channel;return y[M]||(y[M]=[]),y[M].push(_),y},{});return s.jsxs("div",{children:[s.jsx($t,{title:"Groups",description:"View and manage group-to-agent bindings across all channels"}),E.length===0?s.jsx(Tr,{icon:s.jsx(Cr,{className:"h-12 w-12"}),title:"No group bindings",description:"Group bindings route specific groups to specific agents. Configure them in Settings โ Config under 'bindings'."}):s.jsx("div",{className:"space-y-6",children:Object.entries(C).map(([y,_])=>{const M=g1[y]??"๐ก";return s.jsxs("div",{children:[s.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[s.jsx("span",{className:"text-lg",children:M}),s.jsx("h2",{className:"text-sm font-semibold text-surface-700",children:h[y]??y}),s.jsxs("span",{className:"badge-gray",children:[_.length," groups"]})]}),s.jsx("div",{className:"space-y-2",children:_.map((L,J)=>s.jsxs("div",{className:"card flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-surface-100",children:s.jsx(jg,{className:"h-5 w-5 text-surface-600"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:L._displayName}),s.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-0.5 text-xs text-surface-400",children:[L.comment&&s.jsx("span",{children:L.comment}),L._lastActive&&s.jsxs("span",{children:["Active ",v1(L._lastActive)]})]}),L._groupId!==L._displayName&&s.jsx("p",{className:"mt-0.5 text-[10px] font-mono text-surface-300 truncate max-w-[300px]",children:L._groupId})]})]}),s.jsx("div",{className:"flex items-center gap-3",children:s.jsxs(Vt,{to:`/agents/${L.agentId}`,className:"flex items-center gap-1.5 rounded-lg bg-primary-50 px-2.5 py-1 text-xs font-medium text-primary-700 hover:bg-primary-100 transition-colors",children:[s.jsx(rl,{className:"h-3 w-3"}),z.get(L.agentId)??L.agentId]})})]},J))})]},y)})}),s.jsxs("div",{className:"mt-8 card bg-surface-50 border-surface-200",children:[s.jsx("h3",{className:"text-sm font-semibold text-surface-700 mb-2",children:"Group Behavior Reference"}),s.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 text-xs text-surface-500",children:[s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(dg,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-surface-400"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium text-surface-700",children:"Mention Mode"}),s.jsx("p",{children:"Bot only responds when @mentioned in the group"})]})]}),s.jsxs("div",{className:"flex items-start gap-2",children:[s.jsx(bg,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-surface-400"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium text-surface-700",children:"Always Mode"}),s.jsx("p",{children:"Bot responds to all messages in the group"})]})]})]})]})]})}function j1(){return`${location.protocol}//${location.host}/`}function N1(){const{login:u,connecting:c,error:f}=we(),[r,d]=b.useState("");function m(v){v.preventDefault(),r.trim()&&u(r)}return s.jsx("div",{className:"flex min-h-screen items-center justify-center bg-white",children:s.jsxs("div",{className:"w-full max-w-sm",children:[s.jsxs("div",{className:"mb-8 text-center",children:[s.jsx("div",{className:"mx-auto mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-primary-600",children:s.jsx("span",{className:"text-2xl font-bold text-white",children:"O"})}),s.jsx("h1",{className:"text-2xl font-semibold text-surface-900",children:"Operator"}),s.jsx("p",{className:"mt-1 text-sm text-surface-500",children:"Sign in to manage your AI agents"})]}),s.jsxs("form",{onSubmit:m,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{htmlFor:"token",className:"label",children:"Gateway Token"}),s.jsxs("div",{className:"relative",children:[s.jsx(xg,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-surface-400"}),s.jsx("input",{id:"token",type:"password",value:r,onChange:v=>d(v.target.value),className:"input !pl-10",placeholder:"Enter your gateway token",autoFocus:!0,disabled:c})]})]}),f&&s.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-red-50 p-3 text-sm text-red-700",children:[s.jsx(us,{className:"mt-0.5 h-4 w-4 shrink-0"}),s.jsx("span",{children:f})]}),s.jsx("button",{type:"submit",disabled:c||!r.trim(),className:"btn-primary w-full",children:c?s.jsxs(s.Fragment,{children:[s.jsx(Qe,{className:"h-4 w-4 animate-spin"}),"Connecting..."]}):"Sign In"})]}),s.jsxs("p",{className:"mt-6 text-center text-xs leading-relaxed text-surface-400",children:["You can find the token in the"," ",s.jsxs("a",{href:j1(),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-0.5 text-primary-600 hover:text-primary-700 hover:underline",children:["Dashboard",s.jsx(mg,{className:"h-3 w-3"})]})," ","settings"]})]})})}const S1=["openai-completions","openai-responses","anthropic-messages","google-generative-ai","ollama","bedrock-converse-stream","github-copilot","openai-codex-responses"],E1=["api-key","aws-sdk","oauth","token"];function A1(){return{baseUrl:"",apiKey:"",auth:"api-key",api:"openai-completions",models:[]}}function C1(){return{id:"",name:"",reasoning:!1,input:["text"],contextWindow:128e3,maxTokens:4096,cost:{input:0,output:0,cacheRead:0,cacheWrite:0}}}function ah(u){return u?typeof u=="string"?u:u.primary??"":""}function lh(u){return!u||typeof u=="string"?[]:u.fallbacks??[]}function Yh({value:u,onChange:c,catalog:f,placeholder:r}){const d=new Map;for(const m of f){const v=m.provider||"other";d.has(v)||d.set(v,[]),d.get(v).push(m)}return s.jsxs("select",{className:"input text-sm",value:u,onChange:m=>c(m.target.value),children:[s.jsx("option",{value:"",children:r??"Select a model..."}),[...d.entries()].map(([m,v])=>s.jsx("optgroup",{label:m,children:v.map(g=>s.jsxs("option",{value:`${g.provider}/${g.id}`,children:[g.name||g.id,g.reasoning?" (reasoning)":"",g.contextWindow?` ยท ${Math.round(g.contextWindow/1e3)}k ctx`:""]},`${g.provider}/${g.id}`))},m))]})}function T1({fallbacks:u,onChange:c,catalog:f}){function r(){c([...u,""])}function d(h){c(u.filter((x,S)=>S!==h))}function m(h,x){const S=[...u];S[h]=x,c(S)}function v(h){if(h===0)return;const x=[...u],S=x[h];x[h]=x[h-1],x[h-1]=S,c(x)}function g(h){if(h>=u.length-1)return;const x=[...u],S=x[h];x[h]=x[h+1],x[h+1]=S,c(x)}return s.jsxs("div",{className:"space-y-2",children:[u.map((h,x)=>s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsx("button",{onClick:()=>v(x),className:"text-surface-400 hover:text-surface-600 disabled:opacity-30",disabled:x===0,children:s.jsx(xa,{className:"h-3 w-3 -rotate-90"})}),s.jsx("button",{onClick:()=>g(x),className:"text-surface-400 hover:text-surface-600 disabled:opacity-30",disabled:x===u.length-1,children:s.jsx(xa,{className:"h-3 w-3 rotate-90"})})]}),s.jsx("span",{className:"text-[10px] text-surface-400 font-mono w-4 text-center shrink-0",children:x+1}),s.jsx("div",{className:"flex-1",children:s.jsx(Yh,{value:h,onChange:S=>m(x,S),catalog:f,placeholder:"Select fallback model..."})}),s.jsx("button",{onClick:()=>d(x),className:"text-surface-400 hover:text-red-500 p-1",children:s.jsx(Dh,{className:"h-3.5 w-3.5"})})]},x)),s.jsxs("button",{onClick:r,className:"flex items-center gap-1.5 text-xs text-primary-600 hover:text-primary-700",children:[s.jsx(Kt,{className:"h-3 w-3"}),"Add fallback"]})]})}function w1({config:u,catalog:c,onSave:f}){var E;const r=(E=u.agents)==null?void 0:E.defaults,d=r==null?void 0:r.model,[m,v]=b.useState(ah(d)),[g,h]=b.useState(lh(d)),[x,S]=b.useState(!1),[j,A]=b.useState("idle");b.useEffect(()=>{v(ah(d)),h(lh(d))},[JSON.stringify(d)]);async function R(){S(!0),A("idle");try{const z=g.filter(Boolean).length>0?{primary:m||void 0,fallbacks:g.filter(Boolean)}:m||void 0;await f({agents:{defaults:{model:z}}}),A("saved"),setTimeout(()=>A("idle"),2500)}catch{A("error")}S(!1)}return s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[s.jsx(pg,{className:"h-4 w-4 text-primary-600"}),s.jsx("h2",{className:"text-sm font-semibold text-surface-900",children:"Default Model"})]}),s.jsx("p",{className:"text-xs text-surface-500 mb-4",children:"The default model used by all agents unless overridden per-agent."}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"label",children:"Primary Model"}),s.jsx(Yh,{value:m,onChange:v,catalog:c,placeholder:"Select default model..."})]}),s.jsxs("div",{children:[s.jsx("label",{className:"label",children:"Fallback Models"}),s.jsx("p",{className:"text-[11px] text-surface-400 mb-2",children:"When the primary model is unavailable, these models are tried in order."}),s.jsx(T1,{fallbacks:g,onChange:h,catalog:c})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("button",{onClick:R,disabled:x,className:"btn-primary !py-1.5 !text-xs",children:[x?s.jsx(Qe,{className:"h-3.5 w-3.5 animate-spin"}):s.jsx(Pl,{className:"h-3.5 w-3.5"}),"Save Default Model"]}),j==="saved"&&s.jsx("span",{className:"text-xs text-emerald-600",children:"Saved"}),j==="error"&&s.jsx("span",{className:"text-xs text-red-600",children:"Save failed"})]})]})]})}function nh({providerId:u,initial:c,onSave:f,onDelete:r,isNew:d}){const[m,v]=b.useState(u),[g,h]=b.useState(c),[x,S]=b.useState(d??!1),[j,A]=b.useState(!1),[R,E]=b.useState(!1),[z,C]=b.useState("idle"),[y,_]=b.useState(!1);function M(K){h(W=>({...W,...K}))}function L(){M({models:[...g.models,C1()]})}function J(K){M({models:g.models.filter((W,te)=>te!==K)})}function Z(K,W){const te=[...g.models];te[K]={...te[K],...W},M({models:te})}async function V(){A(!0),C("idle");try{await f(m,g),C("saved"),setTimeout(()=>C("idle"),2500)}catch{C("error")}A(!1)}async function B(){if(confirm(`Delete provider "${u}"? This cannot be undone.`)){E(!0);try{await r(u)}catch{}E(!1)}}return s.jsxs("div",{className:"card",children:[s.jsxs("button",{onClick:()=>S(!x),className:"flex w-full items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(Di,{className:"h-4 w-4 text-surface-500"}),s.jsxs("div",{className:"text-left",children:[s.jsx("h3",{className:"text-sm font-semibold text-surface-900",children:u}),s.jsxs("p",{className:"text-[11px] text-surface-400",children:[g.baseUrl||"No URL configured"," ยท ",g.models.length," model",g.models.length!==1?"s":""]})]})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[g.apiKey&&s.jsx("span",{className:"rounded bg-emerald-50 px-1.5 py-0.5 text-[10px] text-emerald-600",children:"Key set"}),x?s.jsx(is,{className:"h-4 w-4 text-surface-400"}):s.jsx(xa,{className:"h-4 w-4 text-surface-400"})]})]}),x&&s.jsxs("div",{className:"mt-4 space-y-4 border-t border-surface-100 pt-4",children:[d&&s.jsxs("div",{children:[s.jsx("label",{className:"label",children:"Provider ID"}),s.jsx("input",{className:"input",value:m,onChange:K=>v(K.target.value.trim().toLowerCase()),placeholder:"e.g. deepseek, my-openai"})]}),s.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[s.jsxs("div",{children:[s.jsxs("label",{className:"label",children:[s.jsx(gg,{className:"mr-1 inline h-3 w-3"}),"Base URL"]}),s.jsx("input",{className:"input text-sm font-mono",value:g.baseUrl,onChange:K=>M({baseUrl:K.target.value}),placeholder:"https://api.example.com/v1"})]}),s.jsxs("div",{children:[s.jsxs("label",{className:"label",children:[s.jsx(wh,{className:"mr-1 inline h-3 w-3"}),"API Key"]}),s.jsxs("div",{className:"relative",children:[s.jsx("input",{className:"input text-sm font-mono !pr-10",type:y?"text":"password",value:g.apiKey,onChange:K=>M({apiKey:K.target.value}),placeholder:"sk-..."}),s.jsx("button",{type:"button",onClick:()=>_(!y),className:"absolute right-2 top-1/2 -translate-y-1/2 text-surface-400 hover:text-surface-600",children:y?s.jsx(Ch,{className:"h-4 w-4"}):s.jsx(Th,{className:"h-4 w-4"})})]}),g.apiKey&&g.apiKey.startsWith("*")&&s.jsx("p",{className:"mt-1 text-[10px] text-surface-400",children:"Value is redacted. Leave unchanged to keep existing key, or enter a new one."})]})]}),s.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[s.jsxs("div",{children:[s.jsx("label",{className:"label",children:"Auth Mode"}),s.jsx("select",{className:"input text-sm",value:g.auth,onChange:K=>M({auth:K.target.value}),children:E1.map(K=>s.jsx("option",{value:K,children:K},K))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"label",children:"API Format"}),s.jsx("select",{className:"input text-sm",value:g.api,onChange:K=>M({api:K.target.value}),children:S1.map(K=>s.jsx("option",{value:K,children:K},K))})]})]}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center justify-between mb-2",children:[s.jsx("label",{className:"label mb-0",children:"Models"}),s.jsxs("button",{onClick:L,className:"flex items-center gap-1 text-xs text-primary-600 hover:text-primary-700",children:[s.jsx(Kt,{className:"h-3 w-3"}),"Add Model"]})]}),g.models.length===0?s.jsx("p",{className:"text-xs text-surface-400 py-3 text-center border border-dashed border-surface-200 rounded-lg",children:"No models defined. Add one to use this provider."}):s.jsx("div",{className:"space-y-2",children:g.models.map((K,W)=>s.jsxs("div",{className:"rounded-lg bg-surface-50 p-3 border border-surface-100",children:[s.jsxs("div",{className:"flex items-start justify-between gap-2",children:[s.jsxs("div",{className:"grid flex-1 gap-2 sm:grid-cols-2",children:[s.jsx("input",{className:"input !bg-white text-xs",value:K.id,onChange:te=>Z(W,{id:te.target.value}),placeholder:"Model ID (e.g. gpt-4o)"}),s.jsx("input",{className:"input !bg-white text-xs",value:K.name,onChange:te=>Z(W,{name:te.target.value}),placeholder:"Display name"})]}),s.jsx("button",{onClick:()=>J(W),className:"text-surface-400 hover:text-red-500 p-1 mt-1",children:s.jsx(Ga,{className:"h-3.5 w-3.5"})})]}),s.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-3 text-xs",children:[s.jsxs("label",{className:"flex items-center gap-1.5 text-surface-600",children:[s.jsx("input",{type:"checkbox",checked:K.reasoning,onChange:te=>Z(W,{reasoning:te.target.checked}),className:"rounded"}),"Reasoning"]}),s.jsxs("label",{className:"flex items-center gap-1.5 text-surface-600",children:[s.jsx("input",{type:"checkbox",checked:K.input.includes("image"),onChange:te=>Z(W,{input:te.target.checked?["text","image"]:["text"]}),className:"rounded"}),"Vision"]}),s.jsxs("span",{className:"text-surface-400",children:["Context: ",Math.round(K.contextWindow/1e3),"k"]})]})]},W))})]}),s.jsxs("div",{className:"flex items-center justify-between border-t border-surface-100 pt-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("button",{onClick:V,disabled:j,className:"btn-primary !py-1.5 !text-xs",children:[j?s.jsx(Qe,{className:"h-3.5 w-3.5 animate-spin"}):s.jsx(Pl,{className:"h-3.5 w-3.5"}),d?"Create Provider":"Save Provider"]}),z==="saved"&&s.jsx("span",{className:"text-xs text-emerald-600",children:"Saved"}),z==="error"&&s.jsx("span",{className:"text-xs text-red-600",children:"Save failed"})]}),!d&&s.jsxs("button",{onClick:B,disabled:R,className:"btn-ghost text-red-600 hover:text-red-700 hover:bg-red-50 !py-1.5 !text-xs",children:[R?s.jsx(Qe,{className:"h-3.5 w-3.5 animate-spin"}):s.jsx(Ga,{className:"h-3.5 w-3.5"}),"Delete"]})]})]})]})}function M1(){const{gateway:u,connected:c}=we(),[f,r]=b.useState([]),[d,m]=b.useState({}),[v,g]=b.useState(!0),[h,x]=b.useState(!1),S=b.useCallback(()=>{!u||!c||(g(!0),Promise.all([u.request("models.list").then(y=>Array.isArray(y==null?void 0:y.models)?y.models:[]),u.request("config.get").then(y=>(y==null?void 0:y.config)??{})]).then(([y,_])=>{r(y),m(_)}).catch(()=>{}).finally(()=>g(!1)))},[u,c]);b.useEffect(()=>{S()},[S]);async function j(y){if(!u)throw new Error("not connected");await u.request("config.patch",{raw:JSON.stringify(y)}),S()}const R=(d.models??{}).providers??{};function E(y){const _=Array.isArray(y.models)?y.models:[];return{baseUrl:String(y.baseUrl??""),apiKey:String(y.apiKey??""),auth:String(y.auth??"api-key"),api:String(y.api??"openai-completions"),models:_.map(M=>{const L=M.cost??{};return{id:String(M.id??""),name:String(M.name??""),reasoning:!!M.reasoning,input:Array.isArray(M.input)?M.input.map(String):["text"],contextWindow:Number(M.contextWindow??128e3),maxTokens:Number(M.maxTokens??4096),cost:{input:Number(L.input??0),output:Number(L.output??0),cacheRead:Number(L.cacheRead??0),cacheWrite:Number(L.cacheWrite??0)}}})}}async function z(y,_){const M={baseUrl:_.baseUrl,auth:_.auth,api:_.api,models:_.models.map(L=>({id:L.id,name:L.name||L.id,reasoning:L.reasoning,input:L.input,contextWindow:L.contextWindow,maxTokens:L.maxTokens,cost:L.cost}))};_.apiKey&&!_.apiKey.startsWith("*")&&(M.apiKey=_.apiKey),await j({models:{providers:{[y]:M}}}),x(!1)}async function C(y){const _={...R};delete _[y],await j({models:{providers:_}})}return v?s.jsx(lt,{}):s.jsxs("div",{children:[s.jsx($t,{title:"Models",description:"Manage model providers, API keys, and default model settings",actions:s.jsxs("div",{className:"flex gap-2",children:[s.jsxs("button",{onClick:S,className:"btn-secondary",children:[s.jsx(ki,{className:"h-4 w-4"}),"Refresh"]}),s.jsxs("button",{onClick:()=>x(!0),className:"btn-primary",children:[s.jsx(Kt,{className:"h-4 w-4"}),"Add Provider"]})]})}),s.jsxs("div",{className:"space-y-6",children:[s.jsx(w1,{config:d,catalog:f,onSave:j}),s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx(Di,{className:"h-4 w-4 text-surface-500"}),s.jsxs("h2",{className:"text-sm font-semibold text-surface-900",children:["Providers (",Object.keys(R).length,")"]})]}),s.jsxs("div",{className:"space-y-3",children:[h&&s.jsx(nh,{providerId:"",initial:A1(),onSave:z,onDelete:async()=>x(!1),isNew:!0}),Object.entries(R).map(([y,_])=>s.jsx(nh,{providerId:y,initial:E(_),onSave:z,onDelete:C},y)),Object.keys(R).length===0&&!h&&s.jsxs("div",{className:"rounded-lg border-2 border-dashed border-surface-200 py-8 text-center",children:[s.jsx(Di,{className:"mx-auto h-8 w-8 text-surface-300"}),s.jsx("p",{className:"mt-2 text-sm text-surface-500",children:"No custom providers configured."}),s.jsx("p",{className:"text-xs text-surface-400 mt-1",children:"Built-in providers (OpenAI, Anthropic, etc.) are available automatically."})]})]})]}),s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[s.jsx(ts,{className:"h-4 w-4 text-surface-500"}),s.jsxs("h2",{className:"text-sm font-semibold text-surface-900",children:["Available Models (",f.length,")"]})]}),s.jsx("p",{className:"text-xs text-surface-400 mb-3",children:"All models discovered from built-in and custom providers."}),f.length>0?s.jsx("div",{className:"max-h-[400px] overflow-y-auto",children:s.jsxs("table",{className:"w-full text-xs",children:[s.jsx("thead",{className:"sticky top-0 bg-white",children:s.jsxs("tr",{className:"border-b border-surface-200 text-left text-surface-500",children:[s.jsx("th",{className:"py-2 pr-4 font-medium",children:"Model"}),s.jsx("th",{className:"py-2 pr-4 font-medium",children:"Provider"}),s.jsx("th",{className:"py-2 pr-4 font-medium",children:"Context"}),s.jsx("th",{className:"py-2 font-medium",children:"Features"})]})}),s.jsx("tbody",{className:"divide-y divide-surface-100",children:f.map(y=>{var _;return s.jsxs("tr",{className:"text-surface-700",children:[s.jsx("td",{className:"py-2 pr-4 font-mono",children:y.name||y.id}),s.jsx("td",{className:"py-2 pr-4",children:y.provider}),s.jsx("td",{className:"py-2 pr-4",children:y.contextWindow?`${Math.round(y.contextWindow/1e3)}k`:"โ"}),s.jsx("td",{className:"py-2",children:s.jsxs("div",{className:"flex gap-1",children:[y.reasoning&&s.jsx("span",{className:"rounded bg-purple-50 px-1.5 py-0.5 text-[10px] text-purple-600",children:"Reasoning"}),((_=y.input)==null?void 0:_.includes("image"))&&s.jsx("span",{className:"rounded bg-blue-50 px-1.5 py-0.5 text-[10px] text-blue-600",children:"Vision"})]})})]},`${y.provider}/${y.id}`)})})]})}):s.jsx("p",{className:"text-sm text-surface-400 text-center py-6",children:"No models available. Configure a provider or check your API keys."})]})]})]})}function Gh(u){if(!u)return"";if(typeof u=="string")return u;if(Array.isArray(u))return u.map(f=>{if(typeof f=="string")return f;if(f&&typeof f=="object"){const r=f;if(typeof r.text=="string")return r.text;if(typeof r.content=="string")return r.content}return""}).filter(Boolean).join("");const c=u;return typeof c.text=="string"?c.text:typeof c.content=="string"?c.content:Array.isArray(c.content)?Gh(c.content):""}function z1(u){if(!u)return"";const c=Date.now()-u;return c<6e4?"just now":c<36e5?`${Math.floor(c/6e4)}m ago`:c<864e5?`${Math.floor(c/36e5)}h ago`:new Date(u).toLocaleDateString()}function sh(u){return u.derivedTitle||u.displayName||u.label||u.subject||u.key}function O1({sessionKey:u,onClose:c}){const{gateway:f,connected:r}=we(),[d,m]=b.useState([]),[v,g]=b.useState(!0),h=b.useRef(null);return b.useEffect(()=>{!f||!r||f.request("chat.history",{sessionKey:u,limit:100}).then(x=>{if(!Array.isArray(x==null?void 0:x.messages))return;const S=x.messages.map(j=>({role:String(j.role??"unknown"),text:Gh(j.content??j.text??j.message??"")})).filter(j=>j.text&&(j.role==="user"||j.role==="assistant"));m(S)}).catch(()=>{}).finally(()=>g(!1))},[f,r,u]),b.useEffect(()=>{var x;(x=h.current)==null||x.scrollTo({top:h.current.scrollHeight})},[d]),s.jsxs("div",{className:"mt-2 rounded-lg border border-surface-200 bg-surface-50",children:[s.jsxs("div",{className:"flex items-center justify-between border-b border-surface-200 px-4 py-2",children:[s.jsxs("p",{className:"text-xs font-medium text-surface-600",children:["Chat History (",d.length," messages)"]}),s.jsx("button",{onClick:c,className:"text-xs text-surface-400 hover:text-surface-600 transition-colors",children:"Close"})]}),s.jsx("div",{ref:h,className:"max-h-[400px] overflow-y-auto p-4 space-y-2.5",children:v?s.jsx("div",{className:"py-8 text-center",children:s.jsx(Qe,{className:"mx-auto h-5 w-5 animate-spin text-surface-400"})}):d.length===0?s.jsx("p",{className:"py-6 text-center text-xs text-surface-400",children:"No messages in this session"}):d.map((x,S)=>s.jsx("div",{className:Ke("max-w-[85%] rounded-lg px-3.5 py-2 text-sm whitespace-pre-wrap leading-relaxed",x.role==="user"?"ml-auto bg-primary-600 text-white":"bg-white text-surface-800 border border-surface-200"),children:x.text},S))})]})}function _1(){const{gateway:u,connected:c}=we(),[f,r]=b.useState([]),[d,m]=b.useState(!0),[v,g]=b.useState(""),[h,x]=b.useState(null),[S,j]=b.useState(null);function A(){!u||!c||(m(!0),u.request("sessions.list",{}).then(C=>r(Array.isArray(C==null?void 0:C.sessions)?C.sessions:[])).catch(()=>{}).finally(()=>m(!1)))}b.useEffect(()=>{A()},[u,c]);async function R(C){if(!(!u||!confirm("Reset this session? This will clear its history."))){x(C);try{await u.request("sessions.reset",{key:C}),S===C&&j(null),A()}catch{}x(null)}}async function E(C){if(!(!u||!confirm("Delete this session? This cannot be undone."))){x(C);try{await u.request("sessions.delete",{key:C}),r(y=>y.filter(_=>_.key!==C)),S===C&&j(null)}catch{}x(null)}}if(d)return s.jsx(lt,{});const z=f.filter(C=>{var _,M,L;if(!v)return!0;const y=v.toLowerCase();return sh(C).toLowerCase().includes(y)||C.key.toLowerCase().includes(y)||((_=C.lastMessagePreview)==null?void 0:_.toLowerCase().includes(y))||((M=C.channel)==null?void 0:M.toLowerCase().includes(y))||((L=C.agentId)==null?void 0:L.toLowerCase().includes(y))});return s.jsxs("div",{children:[s.jsx($t,{title:"Sessions",description:"View and manage active conversations",actions:s.jsxs("button",{onClick:A,className:"btn-secondary",children:[s.jsx(ki,{className:"h-4 w-4"}),"Refresh"]})}),s.jsxs("div",{className:"relative mb-4",children:[s.jsx(Oh,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-surface-400"}),s.jsx("input",{className:"input !pl-10",placeholder:"Search by title, channel, agent...",value:v,onChange:C=>g(C.target.value)})]}),s.jsx("div",{className:"space-y-2",children:z.map(C=>{const y=sh(C),_=S===C.key;return s.jsxs("div",{children:[s.jsx("div",{className:Ke("card transition-colors",_&&"border-primary-300 bg-primary-50/20"),children:s.jsxs("div",{className:"flex items-start gap-3",children:[s.jsxs("button",{onClick:()=>j(_?null:C.key),className:"flex flex-1 items-start gap-3 min-w-0 text-left",children:[s.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-blue-50 mt-0.5",children:s.jsx(cs,{className:"h-4 w-4 text-blue-600"})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsx("p",{className:"text-sm font-medium text-surface-900 truncate",children:y}),C.lastMessagePreview&&s.jsx("p",{className:"mt-0.5 text-xs text-surface-500 line-clamp-2",children:C.lastMessagePreview}),s.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-2 text-[11px] text-surface-400",children:[C.agentId&&s.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5",children:C.agentId}),C.channel&&s.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5",children:C.channel}),C.kind&&C.kind!=="unknown"&&s.jsx("span",{className:"rounded bg-surface-100 px-1.5 py-0.5",children:C.kind}),C.updatedAt&&s.jsx("span",{children:z1(C.updatedAt)})]})]}),s.jsx(is,{className:Ke("mt-1 h-4 w-4 shrink-0 text-surface-300 transition-transform",_&&"rotate-180 text-primary-600")})]}),s.jsxs("div",{className:"flex shrink-0 items-center gap-1 ml-1",children:[s.jsx("button",{onClick:()=>R(C.key),disabled:h===C.key,className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-amber-600",title:"Reset session",children:h===C.key?s.jsx(Qe,{className:"h-3.5 w-3.5 animate-spin"}):s.jsx(zh,{className:"h-3.5 w-3.5"})}),s.jsx("button",{onClick:()=>E(C.key),disabled:h===C.key,className:"btn-ghost !px-2 !py-1.5 text-surface-400 hover:text-red-600",title:"Delete session",children:s.jsx(Ga,{className:"h-3.5 w-3.5"})})]})]})}),_&&s.jsx(O1,{sessionKey:C.key,onClose:()=>j(null)})]},C.key)})}),z.length===0&&s.jsx("div",{className:"py-12 text-center text-sm text-surface-400",children:v?"No sessions match your search":"No active sessions"})]})}function R1(){const{gateway:u,connected:c}=we(),[f,r]=b.useState(""),[d,m]=b.useState(!0),[v,g]=b.useState(!1),[h,x]=b.useState(null),[S,j]=b.useState(null),[A,R]=b.useState([]);b.useEffect(()=>{!u||!c||Promise.all([u.request("config.get"),u.request("health").catch(()=>null),u.request("models.list").catch(()=>({models:[]}))]).then(([z,C,y])=>{r(JSON.stringify((z==null?void 0:z.config)??{},null,2)),j(C),R(Array.isArray(y==null?void 0:y.models)?y.models:[]),m(!1)})},[u,c]);async function E(){if(u){g(!0),x(null);try{const z=JSON.parse(f);await u.request("config.set",{config:z}),x({ok:!0,msg:"Configuration saved. Some changes may require a restart."})}catch(z){x({ok:!1,msg:z instanceof Error?z.message:"Failed to save"})}g(!1)}}return d?s.jsx(lt,{}):s.jsxs("div",{children:[s.jsx($t,{title:"Settings",description:"System configuration and health"}),s.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[s.jsx("div",{className:"lg:col-span-2 space-y-6",children:s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[s.jsx("h2",{className:"text-sm font-semibold text-surface-900",children:"Configuration"}),s.jsx("p",{className:"text-xs text-surface-400",children:"openclaw.json"})]}),s.jsx("textarea",{className:"input min-h-[400px] resize-y font-mono text-xs leading-relaxed",value:f,onChange:z=>{r(z.target.value),x(null)},spellCheck:!1}),h&&s.jsxs("div",{className:`mt-3 flex items-start gap-2 rounded-lg p-3 text-sm ${h.ok?"bg-emerald-50 text-emerald-700":"bg-red-50 text-red-700"}`,children:[h.ok?s.jsx(Ri,{className:"mt-0.5 h-4 w-4 shrink-0"}):s.jsx(us,{className:"mt-0.5 h-4 w-4 shrink-0"}),s.jsx("span",{children:h.msg})]}),s.jsx("div",{className:"mt-3 flex gap-3",children:s.jsxs("button",{onClick:E,disabled:v,className:"btn-primary",children:[v?s.jsx(Qe,{className:"h-4 w-4 animate-spin"}):s.jsx(Pl,{className:"h-4 w-4"}),"Save Configuration"]})})]})}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"card",children:[s.jsx("h3",{className:"mb-3 text-sm font-semibold text-surface-900",children:"System Health"}),S?s.jsxs("div",{className:"space-y-2 text-sm",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ts,{className:"h-4 w-4 text-surface-400"}),s.jsx("span",{className:"text-surface-600",children:"Status:"}),s.jsx("span",{className:"badge-green",children:"Healthy"})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(hg,{className:"h-4 w-4 text-surface-400"}),s.jsx("span",{className:"text-surface-600",children:"Version:"}),s.jsx("span",{className:"text-surface-900 font-mono text-xs",children:S.version??"unknown"})]})]}):s.jsx("p",{className:"text-sm text-surface-400",children:"Health data unavailable"})]}),s.jsxs("div",{className:"card",children:[s.jsx("h3",{className:"mb-3 text-sm font-semibold text-surface-900",children:"Available Models"}),s.jsxs("div",{className:"space-y-1",children:[A.length>0?A.slice(0,10).map(z=>s.jsxs("div",{className:"rounded px-2 py-1.5 text-xs",children:[s.jsx("p",{className:"font-mono text-surface-700",children:z.id}),z.provider&&s.jsx("p",{className:"text-surface-400",children:z.provider})]},z.id)):s.jsx("p",{className:"text-sm text-surface-400",children:"No models configured"}),A.length>10&&s.jsxs("p",{className:"text-xs text-surface-400",children:["+",A.length-10," more"]})]})]})]})]})]})}function Mi(u){const c=Xh(u.missing);return u.disabled?"disabled":u.blockedByAllowlist&&c?"both":u.blockedByAllowlist?"blocked":c?"missing":"enabled"}const hr={enabled:{label:"Enabled",cls:"bg-emerald-50 text-emerald-700"},disabled:{label:"Disabled",cls:"bg-surface-100 text-surface-500"},blocked:{label:"Blocked by Allowlist",cls:"bg-amber-50 text-amber-700"},missing:{label:"Missing Requirements",cls:"bg-red-50 text-red-700"},both:{label:"Blocked + Missing Reqs",cls:"bg-red-50 text-red-700"}};function Xh(u){return u.bins.length>0||u.anyBins.length>0||u.env.length>0||u.config.length>0||u.os.length>0}function D1(){const{gateway:u,connected:c}=we(),[f,r]=b.useState([]),[d,m]=b.useState(!0),[v,g]=b.useState(""),[h,x]=b.useState(null),[S,j]=b.useState(null),[A,R]=b.useState(null),[E,z]=b.useState(new Set),[C,y]=b.useState("all");function _(){!u||!c||(m(!0),u.request("skills.status",{}).then(B=>r(Array.isArray(B==null?void 0:B.skills)?B.skills:[])).catch(()=>{}).finally(()=>m(!1)))}b.useEffect(()=>{_()},[u,c]);async function M(B){if(!u)return;const W=Mi(B)!=="enabled";x(B.skillKey);try{await u.request("skills.update",{skillKey:B.skillKey,enabled:W}),_()}catch{}x(null)}async function L(B,K){if(!u)return;const W=`${B}:${K}`;j(W),R(null);try{const te=await u.request("skills.install",{name:B,installId:K,timeoutMs:12e4});te!=null&&te.ok?(R({key:B,ok:!0,msg:"Installed successfully"}),_()):R({key:B,ok:!1,msg:(te==null?void 0:te.message)??"Install failed"})}catch(te){R({key:B,ok:!1,msg:te instanceof Error?te.message:"Install failed"})}j(null)}function J(B){z(K=>{const W=new Set(K);return W.has(B)?W.delete(B):W.add(B),W})}if(d)return s.jsx(lt,{});const Z=f.filter(B=>{var W;if(C!=="all"&&Mi(B)!==C)return!1;if(!v)return!0;const K=v.toLowerCase();return B.skillKey.toLowerCase().includes(K)||B.name.toLowerCase().includes(K)||((W=B.description)==null?void 0:W.toLowerCase().includes(K))}),V={enabled:0,disabled:0,blocked:0,missing:0,both:0};for(const B of f)V[Mi(B)]++;return s.jsxs("div",{children:[s.jsx($t,{title:"Skills",description:"Browse and manage agent skills",actions:s.jsxs("button",{onClick:_,className:"btn-secondary",children:[s.jsx(ki,{className:"h-4 w-4"}),"Refresh"]})}),s.jsxs("div",{className:"mb-4 space-y-3",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("div",{className:"relative flex-1",children:[s.jsx(Oh,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-surface-400"}),s.jsx("input",{className:"input !pl-10",placeholder:"Search skills...",value:v,onChange:B=>g(B.target.value)})]}),s.jsxs("span",{className:"text-xs text-surface-500",children:[Z.length," / ",f.length]})]}),s.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[s.jsxs("button",{onClick:()=>y("all"),className:Ke("rounded-full px-3 py-1 text-xs font-medium transition-colors",C==="all"?"bg-surface-900 text-white":"bg-surface-100 text-surface-600 hover:bg-surface-200"),children:["All (",f.length,")"]}),["enabled","blocked","missing","disabled"].map(B=>V[B]>0&&s.jsxs("button",{onClick:()=>y(C===B?"all":B),className:Ke("rounded-full px-3 py-1 text-xs font-medium transition-colors",C===B?"bg-surface-900 text-white":`${hr[B].cls} hover:opacity-80`),children:[hr[B].label," (",V[B],")"]},B))]})]}),s.jsx("div",{className:"space-y-2",children:Z.map(B=>{const K=Mi(B),W=hr[K],te=E.has(B.skillKey),Re=Xh(B.missing);return s.jsxs("div",{className:"card",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[s.jsx("button",{onClick:()=>J(B.skillKey),className:"shrink-0 text-surface-400 hover:text-surface-600",children:te?s.jsx(is,{className:"h-4 w-4"}):s.jsx(xa,{className:"h-4 w-4"})}),s.jsx("div",{className:Ke("flex h-9 w-9 shrink-0 items-center justify-center rounded-lg",K==="enabled"?"bg-primary-100":"bg-surface-100"),children:B.emoji?s.jsx("span",{className:"text-lg",children:B.emoji}):s.jsx(Bi,{className:Ke("h-4 w-4",K==="enabled"?"text-primary-600":"text-surface-400")})}),s.jsxs("div",{className:"min-w-0 flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[s.jsx("p",{className:"text-sm font-medium text-surface-900",children:B.name}),s.jsx("span",{className:Ke("shrink-0 rounded px-1.5 py-0.5 text-[10px] font-medium",W.cls),children:W.label})]}),B.description&&s.jsx("p",{className:"text-xs text-surface-400 truncate",children:B.description})]})]}),s.jsx("button",{onClick:()=>M(B),disabled:h===B.skillKey,className:"ml-3 shrink-0",title:K==="enabled"?"Disable this skill":"Enable this skill",children:h===B.skillKey?s.jsx(Qe,{className:"h-5 w-5 animate-spin text-surface-400"}):K==="enabled"?s.jsx(Cg,{className:"h-6 w-6 text-primary-600"}):s.jsx(Ag,{className:"h-6 w-6 text-surface-300"})})]}),te&&s.jsxs("div",{className:"mt-3 border-t border-surface-100 pt-3 space-y-2.5",children:[s.jsxs("div",{className:"grid gap-2 sm:grid-cols-2 text-xs",children:[s.jsxs("div",{className:"flex items-center gap-2 text-surface-500",children:[s.jsx("span",{className:"font-medium text-surface-700",children:"Key:"}),s.jsx("code",{className:"font-mono",children:B.skillKey})]}),s.jsxs("div",{className:"flex items-center gap-2 text-surface-500",children:[s.jsx("span",{className:"font-medium text-surface-700",children:"Source:"}),s.jsx("span",{children:B.source})]}),B.primaryEnv&&s.jsxs("div",{className:"flex items-center gap-2 text-surface-500",children:[s.jsx(wh,{className:"h-3 w-3"}),s.jsx("span",{className:"font-medium text-surface-700",children:"API Key env:"}),s.jsx("code",{className:"font-mono",children:B.primaryEnv})]}),B.homepage&&s.jsxs("div",{className:"flex items-center gap-2 text-surface-500",children:[s.jsx("span",{className:"font-medium text-surface-700",children:"Homepage:"}),s.jsx("a",{href:B.homepage,target:"_blank",rel:"noreferrer",className:"text-primary-600 hover:underline truncate",children:B.homepage})]})]}),B.blockedByAllowlist&&s.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-amber-50 p-2.5 text-xs text-amber-800",children:[s.jsx(Sg,{className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium",children:"Blocked by allowlist"}),s.jsxs("p",{className:"text-amber-600",children:["This bundled skill is not in"," ",s.jsx("code",{className:"font-mono",children:"skills.allowBundled"}),". Add"," ",s.jsxs("code",{className:"font-mono",children:['"',B.skillKey,'"']})," to the allowlist in Settings to unblock."]})]})]}),Re&&s.jsxs("div",{className:"flex items-start gap-2 rounded-lg bg-red-50 p-2.5 text-xs text-red-800",children:[s.jsx(Tg,{className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium",children:"Missing requirements"}),s.jsxs("ul",{className:"mt-1 space-y-0.5 text-red-700",children:[B.missing.bins.length>0&&s.jsxs("li",{children:["Commands not found:"," ",s.jsx("code",{className:"font-mono",children:B.missing.bins.join(", ")})]}),B.missing.anyBins.length>0&&s.jsxs("li",{children:["Need one of:"," ",s.jsx("code",{className:"font-mono",children:B.missing.anyBins.join(", ")})]}),B.missing.env.length>0&&s.jsxs("li",{children:["Missing env vars:"," ",s.jsx("code",{className:"font-mono",children:B.missing.env.join(", ")})]}),B.missing.config.length>0&&s.jsxs("li",{children:["Missing config:"," ",s.jsx("code",{className:"font-mono",children:B.missing.config.join(", ")})]}),B.missing.os.length>0&&s.jsxs("li",{children:["Requires OS:"," ",s.jsx("code",{className:"font-mono",children:B.missing.os.join(", ")})]})]})]})]}),Array.isArray(B.install)&&B.install.length>0&&Re&&s.jsxs("div",{className:"rounded-lg bg-blue-50 p-2.5",children:[s.jsxs("p",{className:"text-xs font-medium text-blue-800 mb-2",children:[s.jsx($m,{className:"inline h-3 w-3 mr-1"}),"Install missing dependencies"]}),s.jsx("div",{className:"flex flex-wrap gap-2",children:B.install.map(Ve=>{const We=`${B.name}:${Ve.id}`,De=S===We;return s.jsxs("button",{onClick:()=>L(B.name,Ve.id),disabled:De||S!==null,className:"flex items-center gap-1.5 rounded-lg bg-white border border-blue-200 px-3 py-1.5 text-xs font-medium text-blue-700 hover:bg-blue-100 transition-colors disabled:opacity-50",children:[De?s.jsx(Qe,{className:"h-3 w-3 animate-spin"}):s.jsx($m,{className:"h-3 w-3"}),Ve.label,Ve.bins.length>0&&s.jsxs("span",{className:"text-blue-400 font-mono",children:["(",Ve.bins.join(", "),")"]})]},Ve.id)})}),(A==null?void 0:A.key)===B.name&&s.jsxs("div",{className:Ke("mt-2 text-xs",A.ok?"text-emerald-700":"text-red-700"),children:[A.ok?s.jsx(Ri,{className:"inline h-3 w-3 mr-1"}):s.jsx(Jm,{className:"inline h-3 w-3 mr-1"}),A.msg]})]}),K==="enabled"&&s.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-emerald-50 p-2.5 text-xs text-emerald-700",children:[s.jsx(Ri,{className:"h-3.5 w-3.5 shrink-0"}),s.jsx("span",{children:"All requirements met. Skill is active."})]}),B.disabled&&s.jsxs("div",{className:"flex items-center gap-2 rounded-lg bg-surface-100 p-2.5 text-xs text-surface-600",children:[s.jsx(Jm,{className:"h-3.5 w-3.5 shrink-0"}),s.jsx("span",{children:"Explicitly disabled in config. Click the toggle to re-enable."})]})]})]},B.skillKey)})}),Z.length===0&&s.jsx("div",{className:"py-12 text-center text-sm text-surface-400",children:v||C!=="all"?"No skills match your filter":"No skills available"})]})}function U1(){return s.jsx(Cy,{children:s.jsxs(it,{element:s.jsx(Hg,{}),children:[s.jsx(it,{index:!0,element:s.jsx(y1,{})}),s.jsx(it,{path:"agents",element:s.jsx(e1,{})}),s.jsx(it,{path:"agents/new",element:s.jsx(qg,{})}),s.jsx(it,{path:"agents/:agentId",element:s.jsx(Pm,{})}),s.jsx(it,{path:"agents/:agentId/:tab",element:s.jsx(Pm,{})}),s.jsx(it,{path:"channels",element:s.jsx(x1,{})}),s.jsx(it,{path:"groups",element:s.jsx(b1,{})}),s.jsx(it,{path:"models",element:s.jsx(M1,{})}),s.jsx(it,{path:"skills",element:s.jsx(D1,{})}),s.jsx(it,{path:"sessions",element:s.jsx(_1,{})}),s.jsx(it,{path:"cron",element:s.jsx(p1,{})}),s.jsx(it,{path:"settings",element:s.jsx(R1,{})}),s.jsx(it,{path:"*",element:s.jsx(Sy,{to:"/",replace:!0})})]})})}function H1(){const{authenticated:u}=we();return u?s.jsx(U1,{}):s.jsx(N1,{})}Ep.createRoot(document.getElementById("root")).render(s.jsx(b.StrictMode,{children:s.jsx(Wy,{basename:"/operator",children:s.jsx(Rg,{children:s.jsx(H1,{})})})}));
|