agent-dj 0.1.0 → 0.1.1
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,348 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const u of n)if(u.type==="childList")for(const i of u.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function l(n){const u={};return n.integrity&&(u.integrity=n.integrity),n.referrerPolicy&&(u.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?u.credentials="include":n.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(n){if(n.ep)return;n.ep=!0;const u=l(n);fetch(n.href,u)}})();function df(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mf={exports:{}},Ku={};/**
|
|
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 $h=Symbol.for("react.transitional.element"),Wh=Symbol.for("react.fragment");function hf(e,t,l){var a=null;if(l!==void 0&&(a=""+l),t.key!==void 0&&(a=""+t.key),"key"in t){l={};for(var n in t)n!=="key"&&(l[n]=t[n])}else l=t;return t=l.ref,{$$typeof:$h,type:e,key:a,ref:t!==void 0?t:null,props:l}}Ku.Fragment=Wh;Ku.jsx=hf;Ku.jsxs=hf;mf.exports=Ku;var c=mf.exports,yf={exports:{}},R={};/**
|
|
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 is=Symbol.for("react.transitional.element"),Fh=Symbol.for("react.portal"),Ih=Symbol.for("react.fragment"),Ph=Symbol.for("react.strict_mode"),e0=Symbol.for("react.profiler"),t0=Symbol.for("react.consumer"),l0=Symbol.for("react.context"),a0=Symbol.for("react.forward_ref"),n0=Symbol.for("react.suspense"),u0=Symbol.for("react.memo"),gf=Symbol.for("react.lazy"),i0=Symbol.for("react.activity"),br=Symbol.iterator;function c0(e){return e===null||typeof e!="object"?null:(e=br&&e[br]||e["@@iterator"],typeof e=="function"?e:null)}var vf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pf=Object.assign,xf={};function ha(e,t,l){this.props=e,this.context=t,this.refs=xf,this.updater=l||vf}ha.prototype.isReactComponent={};ha.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};ha.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bf(){}bf.prototype=ha.prototype;function cs(e,t,l){this.props=e,this.context=t,this.refs=xf,this.updater=l||vf}var ss=cs.prototype=new bf;ss.constructor=cs;pf(ss,ha.prototype);ss.isPureReactComponent=!0;var Sr=Array.isArray;function nc(){}var ee={H:null,A:null,T:null,S:null},Sf=Object.prototype.hasOwnProperty;function rs(e,t,l){var a=l.ref;return{$$typeof:is,type:e,key:t,ref:a!==void 0?a:null,props:l}}function s0(e,t){return rs(e.type,t,e.props)}function os(e){return typeof e=="object"&&e!==null&&e.$$typeof===is}function r0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(l){return t[l]})}var Nr=/\/+/g;function vi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?r0(""+e.key):t.toString(36)}function o0(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(nc,nc):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Ul(e,t,l,a,n){var u=typeof e;(u==="undefined"||u==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(u){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case is:case Fh:i=!0;break;case gf:return i=e._init,Ul(i(e._payload),t,l,a,n)}}if(i)return n=n(e),i=a===""?"."+vi(e,0):a,Sr(n)?(l="",i!=null&&(l=i.replace(Nr,"$&/")+"/"),Ul(n,t,l,"",function(f){return f})):n!=null&&(os(n)&&(n=s0(n,l+(n.key==null||e&&e.key===n.key?"":(""+n.key).replace(Nr,"$&/")+"/")+i)),t.push(n)),1;i=0;var s=a===""?".":a+":";if(Sr(e))for(var r=0;r<e.length;r++)a=e[r],u=s+vi(a,r),i+=Ul(a,t,l,u,n);else if(r=c0(e),typeof r=="function")for(e=r.call(e),r=0;!(a=e.next()).done;)a=a.value,u=s+vi(a,r++),i+=Ul(a,t,l,u,n);else if(u==="object"){if(typeof e.then=="function")return Ul(o0(e),t,l,a,n);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function Un(e,t,l){if(e==null)return e;var a=[],n=0;return Ul(e,a,"","",function(u){return t.call(l,u,n++)}),a}function f0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(l){(e._status===0||e._status===-1)&&(e._status=1,e._result=l)},function(l){(e._status===0||e._status===-1)&&(e._status=2,e._result=l)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var jr=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)},d0={map:Un,forEach:function(e,t,l){Un(e,function(){t.apply(this,arguments)},l)},count:function(e){var t=0;return Un(e,function(){t++}),t},toArray:function(e){return Un(e,function(t){return t})||[]},only:function(e){if(!os(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};R.Activity=i0;R.Children=d0;R.Component=ha;R.Fragment=Ih;R.Profiler=e0;R.PureComponent=cs;R.StrictMode=Ph;R.Suspense=n0;R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ee;R.__COMPILER_RUNTIME={__proto__:null,c:function(e){return ee.H.useMemoCache(e)}};R.cache=function(e){return function(){return e.apply(null,arguments)}};R.cacheSignal=function(){return null};R.cloneElement=function(e,t,l){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=pf({},e.props),n=e.key;if(t!=null)for(u in t.key!==void 0&&(n=""+t.key),t)!Sf.call(t,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&t.ref===void 0||(a[u]=t[u]);var u=arguments.length-2;if(u===1)a.children=l;else if(1<u){for(var i=Array(u),s=0;s<u;s++)i[s]=arguments[s+2];a.children=i}return rs(e.type,n,a)};R.createContext=function(e){return e={$$typeof:l0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:t0,_context:e},e};R.createElement=function(e,t,l){var a,n={},u=null;if(t!=null)for(a in t.key!==void 0&&(u=""+t.key),t)Sf.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(n[a]=t[a]);var i=arguments.length-2;if(i===1)n.children=l;else if(1<i){for(var s=Array(i),r=0;r<i;r++)s[r]=arguments[r+2];n.children=s}if(e&&e.defaultProps)for(a in i=e.defaultProps,i)n[a]===void 0&&(n[a]=i[a]);return rs(e,u,n)};R.createRef=function(){return{current:null}};R.forwardRef=function(e){return{$$typeof:a0,render:e}};R.isValidElement=os;R.lazy=function(e){return{$$typeof:gf,_payload:{_status:-1,_result:e},_init:f0}};R.memo=function(e,t){return{$$typeof:u0,type:e,compare:t===void 0?null:t}};R.startTransition=function(e){var t=ee.T,l={};ee.T=l;try{var a=e(),n=ee.S;n!==null&&n(l,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(nc,jr)}catch(u){jr(u)}finally{t!==null&&l.types!==null&&(t.types=l.types),ee.T=t}};R.unstable_useCacheRefresh=function(){return ee.H.useCacheRefresh()};R.use=function(e){return ee.H.use(e)};R.useActionState=function(e,t,l){return ee.H.useActionState(e,t,l)};R.useCallback=function(e,t){return ee.H.useCallback(e,t)};R.useContext=function(e){return ee.H.useContext(e)};R.useDebugValue=function(){};R.useDeferredValue=function(e,t){return ee.H.useDeferredValue(e,t)};R.useEffect=function(e,t){return ee.H.useEffect(e,t)};R.useEffectEvent=function(e){return ee.H.useEffectEvent(e)};R.useId=function(){return ee.H.useId()};R.useImperativeHandle=function(e,t,l){return ee.H.useImperativeHandle(e,t,l)};R.useInsertionEffect=function(e,t){return ee.H.useInsertionEffect(e,t)};R.useLayoutEffect=function(e,t){return ee.H.useLayoutEffect(e,t)};R.useMemo=function(e,t){return ee.H.useMemo(e,t)};R.useOptimistic=function(e,t){return ee.H.useOptimistic(e,t)};R.useReducer=function(e,t,l){return ee.H.useReducer(e,t,l)};R.useRef=function(e){return ee.H.useRef(e)};R.useState=function(e){return ee.H.useState(e)};R.useSyncExternalStore=function(e,t,l){return ee.H.useSyncExternalStore(e,t,l)};R.useTransition=function(){return ee.H.useTransition()};R.version="19.2.4";yf.exports=R;var p=yf.exports;const Da=df(p);var Nf={exports:{}},Ju={},jf={exports:{}},Ef={};/**
|
|
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
|
+
*/(function(e){function t(M,B){var H=M.length;M.push(B);e:for(;0<H;){var ie=H-1>>>1,ge=M[ie];if(0<n(ge,B))M[ie]=B,M[H]=ge,H=ie;else break e}}function l(M){return M.length===0?null:M[0]}function a(M){if(M.length===0)return null;var B=M[0],H=M.pop();if(H!==B){M[0]=H;e:for(var ie=0,ge=M.length,Dn=ge>>>1;ie<Dn;){var Rn=2*(ie+1)-1,gi=M[Rn],dl=Rn+1,_n=M[dl];if(0>n(gi,H))dl<ge&&0>n(_n,gi)?(M[ie]=_n,M[dl]=H,ie=dl):(M[ie]=gi,M[Rn]=H,ie=Rn);else if(dl<ge&&0>n(_n,H))M[ie]=_n,M[dl]=H,ie=dl;else break e}}return B}function n(M,B){var H=M.sortIndex-B.sortIndex;return H!==0?H:M.id-B.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var r=[],f=[],h=1,m=null,d=3,g=!1,x=!1,S=!1,j=!1,y=typeof setTimeout=="function"?setTimeout:null,o=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;function b(M){for(var B=l(f);B!==null;){if(B.callback===null)a(f);else if(B.startTime<=M)a(f),B.sortIndex=B.expirationTime,t(r,B);else break;B=l(f)}}function A(M){if(S=!1,b(M),!x)if(l(r)!==null)x=!0,z||(z=!0,re());else{var B=l(f);B!==null&&Ce(A,B.startTime-M)}}var z=!1,T=-1,C=5,O=-1;function U(){return j?!0:!(e.unstable_now()-O<C)}function E(){if(j=!1,z){var M=e.unstable_now();O=M;var B=!0;try{e:{x=!1,S&&(S=!1,o(T),T=-1),g=!0;var H=d;try{t:{for(b(M),m=l(r);m!==null&&!(m.expirationTime>M&&U());){var ie=m.callback;if(typeof ie=="function"){m.callback=null,d=m.priorityLevel;var ge=ie(m.expirationTime<=M);if(M=e.unstable_now(),typeof ge=="function"){m.callback=ge,b(M),B=!0;break t}m===l(r)&&a(r),b(M)}else a(r);m=l(r)}if(m!==null)B=!0;else{var Dn=l(f);Dn!==null&&Ce(A,Dn.startTime-M),B=!1}}break e}finally{m=null,d=H,g=!1}B=void 0}}finally{B?re():z=!1}}}var re;if(typeof v=="function")re=function(){v(E)};else if(typeof MessageChannel<"u"){var Bt=new MessageChannel,fl=Bt.port2;Bt.port1.onmessage=E,re=function(){fl.postMessage(null)}}else re=function(){y(E,0)};function Ce(M,B){T=y(function(){M(e.unstable_now())},B)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_next=function(M){switch(d){case 1:case 2:case 3:var B=3;break;default:B=d}var H=d;d=B;try{return M()}finally{d=H}},e.unstable_requestPaint=function(){j=!0},e.unstable_runWithPriority=function(M,B){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var H=d;d=M;try{return B()}finally{d=H}},e.unstable_scheduleCallback=function(M,B,H){var ie=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?ie+H:ie):H=ie,M){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=H+ge,M={id:h++,callback:B,priorityLevel:M,startTime:H,expirationTime:ge,sortIndex:-1},H>ie?(M.sortIndex=H,t(f,M),l(r)===null&&M===l(f)&&(S?(o(T),T=-1):S=!0,Ce(A,H-ie))):(M.sortIndex=ge,t(r,M),x||g||(x=!0,z||(z=!0,re()))),M},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(M){var B=d;return function(){var H=d;d=B;try{return M.apply(this,arguments)}finally{d=H}}}})(Ef);jf.exports=Ef;var m0=jf.exports,Af={exports:{}},Me={};/**
|
|
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 h0=p;function Tf(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Lt(){}var Te={d:{f:Lt,r:function(){throw Error(Tf(522))},D:Lt,C:Lt,L:Lt,m:Lt,X:Lt,S:Lt,M:Lt},p:0,findDOMNode:null},y0=Symbol.for("react.portal");function g0(e,t,l){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:y0,key:a==null?null:""+a,children:e,containerInfo:t,implementation:l}}var qa=h0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function $u(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Te;Me.createPortal=function(e,t){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Tf(299));return g0(e,t,null,l)};Me.flushSync=function(e){var t=qa.T,l=Te.p;try{if(qa.T=null,Te.p=2,e)return e()}finally{qa.T=t,Te.p=l,Te.d.f()}};Me.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Te.d.C(e,t))};Me.prefetchDNS=function(e){typeof e=="string"&&Te.d.D(e)};Me.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var l=t.as,a=$u(l,t.crossOrigin),n=typeof t.integrity=="string"?t.integrity:void 0,u=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;l==="style"?Te.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:n,fetchPriority:u}):l==="script"&&Te.d.X(e,{crossOrigin:a,integrity:n,fetchPriority:u,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Me.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var l=$u(t.as,t.crossOrigin);Te.d.M(e,{crossOrigin:l,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Te.d.M(e)};Me.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var l=t.as,a=$u(l,t.crossOrigin);Te.d.L(e,l,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Me.preloadModule=function(e,t){if(typeof e=="string")if(t){var l=$u(t.as,t.crossOrigin);Te.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:l,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Te.d.m(e)};Me.requestFormReset=function(e){Te.d.r(e)};Me.unstable_batchedUpdates=function(e,t){return e(t)};Me.useFormState=function(e,t,l){return qa.H.useFormState(e,t,l)};Me.useFormStatus=function(){return qa.H.useHostTransitionStatus()};Me.version="19.2.4";function Mf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mf)}catch(e){console.error(e)}}Mf(),Af.exports=Me;var v0=Af.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 ye=m0,Cf=p,p0=v0;function N(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function zf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function gn(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function wf(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 Of(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 Er(e){if(gn(e)!==e)throw Error(N(188))}function x0(e){var t=e.alternate;if(!t){if(t=gn(e),t===null)throw Error(N(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return Er(n),e;if(u===a)return Er(n),t;u=u.sibling}throw Error(N(188))}if(l.return!==a.return)l=n,a=u;else{for(var i=!1,s=n.child;s;){if(s===l){i=!0,l=n,a=u;break}if(s===a){i=!0,a=n,l=u;break}s=s.sibling}if(!i){for(s=u.child;s;){if(s===l){i=!0,l=u,a=n;break}if(s===a){i=!0,a=u,l=n;break}s=s.sibling}if(!i)throw Error(N(189))}}if(l.alternate!==a)throw Error(N(190))}if(l.tag!==3)throw Error(N(188));return l.stateNode.current===l?e:t}function Df(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Df(e),t!==null)return t;e=e.sibling}return null}var te=Object.assign,b0=Symbol.for("react.element"),Hn=Symbol.for("react.transitional.element"),Ra=Symbol.for("react.portal"),Ll=Symbol.for("react.fragment"),Rf=Symbol.for("react.strict_mode"),uc=Symbol.for("react.profiler"),_f=Symbol.for("react.consumer"),jt=Symbol.for("react.context"),fs=Symbol.for("react.forward_ref"),ic=Symbol.for("react.suspense"),cc=Symbol.for("react.suspense_list"),ds=Symbol.for("react.memo"),qt=Symbol.for("react.lazy"),sc=Symbol.for("react.activity"),S0=Symbol.for("react.memo_cache_sentinel"),Ar=Symbol.iterator;function Ea(e){return e===null||typeof e!="object"?null:(e=Ar&&e[Ar]||e["@@iterator"],typeof e=="function"?e:null)}var N0=Symbol.for("react.client.reference");function rc(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===N0?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ll:return"Fragment";case uc:return"Profiler";case Rf:return"StrictMode";case ic:return"Suspense";case cc:return"SuspenseList";case sc:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Ra:return"Portal";case jt:return e.displayName||"Context";case _f:return(e._context.displayName||"Context")+".Consumer";case fs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ds:return t=e.displayName||null,t!==null?t:rc(e.type)||"Memo";case qt:t=e._payload,e=e._init;try{return rc(e(t))}catch{}}return null}var _a=Array.isArray,D=Cf.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=p0.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pl={pending:!1,data:null,method:null,action:null},oc=[],ql=-1;function mt(e){return{current:e}}function xe(e){0>ql||(e.current=oc[ql],oc[ql]=null,ql--)}function F(e,t){ql++,oc[ql]=e.current,e.current=t}var ot=mt(null),en=mt(null),Wt=mt(null),gu=mt(null);function vu(e,t){switch(F(Wt,t),F(en,e),F(ot,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Do(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Do(t),e=eh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}xe(ot),F(ot,e)}function aa(){xe(ot),xe(en),xe(Wt)}function fc(e){e.memoizedState!==null&&F(gu,e);var t=ot.current,l=eh(t,e.type);t!==l&&(F(en,e),F(ot,l))}function pu(e){en.current===e&&(xe(ot),xe(en)),gu.current===e&&(xe(gu),dn._currentValue=pl)}var pi,Tr;function hl(e){if(pi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);pi=t&&t[1]||"",Tr=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+pi+e+Tr}var xi=!1;function bi(e,t){if(!e||xi)return"";xi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(g){var d=g}Reflect.construct(e,[],m)}else{try{m.call()}catch(g){d=g}e.call(m.prototype)}}else{try{throw Error()}catch(g){d=g}(m=e())&&typeof m.catch=="function"&&m.catch(function(){})}}catch(g){if(g&&d&&typeof g.stack=="string")return[g.stack,d.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],s=u[1];if(i&&s){var r=i.split(`
|
|
44
|
+
`),f=s.split(`
|
|
45
|
+
`);for(n=a=0;a<r.length&&!r[a].includes("DetermineComponentFrameRoot");)a++;for(;n<f.length&&!f[n].includes("DetermineComponentFrameRoot");)n++;if(a===r.length||n===f.length)for(a=r.length-1,n=f.length-1;1<=a&&0<=n&&r[a]!==f[n];)n--;for(;1<=a&&0<=n;a--,n--)if(r[a]!==f[n]){if(a!==1||n!==1)do if(a--,n--,0>n||r[a]!==f[n]){var h=`
|
|
46
|
+
`+r[a].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),h}while(1<=a&&0<=n);break}}}finally{xi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?hl(l):""}function j0(e,t){switch(e.tag){case 26:case 27:case 5:return hl(e.type);case 16:return hl("Lazy");case 13:return e.child!==t&&t!==null?hl("Suspense Fallback"):hl("Suspense");case 19:return hl("SuspenseList");case 0:case 15:return bi(e.type,!1);case 11:return bi(e.type.render,!1);case 1:return bi(e.type,!0);case 31:return hl("Activity");default:return""}}function Mr(e){try{var t="",l=null;do t+=j0(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var dc=Object.prototype.hasOwnProperty,ms=ye.unstable_scheduleCallback,Si=ye.unstable_cancelCallback,E0=ye.unstable_shouldYield,A0=ye.unstable_requestPaint,Ye=ye.unstable_now,T0=ye.unstable_getCurrentPriorityLevel,Uf=ye.unstable_ImmediatePriority,Hf=ye.unstable_UserBlockingPriority,xu=ye.unstable_NormalPriority,M0=ye.unstable_LowPriority,Bf=ye.unstable_IdlePriority,C0=ye.log,z0=ye.unstable_setDisableYieldValue,vn=null,ke=null;function Vt(e){if(typeof C0=="function"&&z0(e),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(vn,e)}catch{}}var Ge=Math.clz32?Math.clz32:D0,w0=Math.log,O0=Math.LN2;function D0(e){return e>>>=0,e===0?32:31-(w0(e)/O0|0)|0}var Bn=256,Ln=262144,qn=4194304;function yl(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 Wu(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var s=a&134217727;return s!==0?(a=s&~u,a!==0?n=yl(a):(i&=s,i!==0?n=yl(i):l||(l=s&~e,l!==0&&(n=yl(l))))):(s=a&~u,s!==0?n=yl(s):i!==0?n=yl(i):l||(l=a&~e,l!==0&&(n=yl(l)))),n===0?0:t!==0&&t!==n&&!(t&u)&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function pn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function R0(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 Lf(){var e=qn;return qn<<=1,!(qn&62914560)&&(qn=4194304),e}function Ni(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function xn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _0(e,t,l,a,n,u){var i=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var s=e.entanglements,r=e.expirationTimes,f=e.hiddenUpdates;for(l=i&~l;0<l;){var h=31-Ge(l),m=1<<h;s[h]=0,r[h]=-1;var d=f[h];if(d!==null)for(f[h]=null,h=0;h<d.length;h++){var g=d[h];g!==null&&(g.lane&=-536870913)}l&=~m}a!==0&&qf(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(i&~t))}function qf(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ge(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Yf(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Ge(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function kf(e,t){var l=t&-t;return l=l&42?1:hs(l),l&(e.suspendedLanes|t)?0:l}function hs(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 ys(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Gf(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:fh(e.type))}function Cr(e,t){var l=V.p;try{return V.p=e,t()}finally{V.p=l}}var rl=Math.random().toString(36).slice(2),Se="__reactFiber$"+rl,_e="__reactProps$"+rl,ya="__reactContainer$"+rl,mc="__reactEvents$"+rl,U0="__reactListeners$"+rl,H0="__reactHandles$"+rl,zr="__reactResources$"+rl,bn="__reactMarker$"+rl;function gs(e){delete e[Se],delete e[_e],delete e[mc],delete e[U0],delete e[H0]}function Yl(e){var t=e[Se];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ya]||l[Se]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Bo(e);e!==null;){if(l=e[Se])return l;e=Bo(e)}return t}e=l,l=e.parentNode}return null}function ga(e){if(e=e[Se]||e[ya]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ua(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(N(33))}function Wl(e){var t=e[zr];return t||(t=e[zr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function pe(e){e[bn]=!0}var Xf=new Set,Qf={};function Cl(e,t){na(e,t),na(e+"Capture",t)}function na(e,t){for(Qf[e]=t,e=0;e<t.length;e++)Xf.add(t[e])}var B0=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]*$"),wr={},Or={};function L0(e){return dc.call(Or,e)?!0:dc.call(wr,e)?!1:B0.test(e)?Or[e]=!0:(wr[e]=!0,!1)}function In(e,t,l){if(L0(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Yn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function gt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Ke(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function q0(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){l=""+i,u.call(this,i)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hc(e){if(!e._valueTracker){var t=Vf(e)?"checked":"value";e._valueTracker=q0(e,t,""+e[t])}}function Zf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Vf(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function bu(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 Y0=/[\n"\\]/g;function We(e){return e.replace(Y0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function yc(e,t,l,a,n,u,i,s){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ke(t)):e.value!==""+Ke(t)&&(e.value=""+Ke(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?gc(e,i,Ke(t)):l!=null?gc(e,i,Ke(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+Ke(s):e.removeAttribute("name")}function Kf(e,t,l,a,n,u,i,s){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){hc(e);return}l=l!=null?""+Ke(l):"",t=t!=null?""+Ke(t):l,s||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=s?e.checked:!!a,e.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),hc(e)}function gc(e,t,l){t==="number"&&bu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Fl(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Ke(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Jf(e,t,l){if(t!=null&&(t=""+Ke(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ke(l):""}function $f(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(N(92));if(_a(a)){if(1<a.length)throw Error(N(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Ke(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),hc(e)}function ua(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var k0=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 Dr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||k0.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Wf(e,t,l){if(t!=null&&typeof t!="object")throw Error(N(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Dr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Dr(e,u,t[u])}function vs(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 G0=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"]]),X0=/^[\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 Pn(e){return X0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Et(){}var vc=null;function ps(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var kl=null,Il=null;function Rr(e){var t=ga(e);if(t&&(e=t.stateNode)){var l=e[_e]||null;e:switch(e=t.stateNode,t.type){case"input":if(yc(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+We(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[_e]||null;if(!n)throw Error(N(90));yc(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Zf(a)}break e;case"textarea":Jf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Fl(e,!!l.multiple,t,!1)}}}var ji=!1;function Ff(e,t,l){if(ji)return e(t,l);ji=!0;try{var a=e(t);return a}finally{if(ji=!1,(kl!==null||Il!==null)&&(si(),kl&&(t=kl,e=Il,Il=kl=null,Rr(t),e)))for(t=0;t<e.length;t++)Rr(e[t])}}function tn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[_e]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(N(231,t,typeof l));return l}var zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pc=!1;if(zt)try{var Aa={};Object.defineProperty(Aa,"passive",{get:function(){pc=!0}}),window.addEventListener("test",Aa,Aa),window.removeEventListener("test",Aa,Aa)}catch{pc=!1}var Zt=null,xs=null,eu=null;function If(){if(eu)return eu;var e,t=xs,l=t.length,a,n="value"in Zt?Zt.value:Zt.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var i=l-e;for(a=1;a<=i&&t[l-a]===n[u-a];a++);return eu=n.slice(e,1<a?1-a:void 0)}function tu(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 kn(){return!0}function _r(){return!1}function Ue(e){function t(l,a,n,u,i){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(l=e[s],this[s]=l?l(u):u[s]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?kn:_r,this.isPropagationStopped=_r,this}return te(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=kn)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=kn)},persist:function(){},isPersistent:kn}),t}var zl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fu=Ue(zl),Sn=te({},zl,{view:0,detail:0}),Q0=Ue(Sn),Ei,Ai,Ta,Iu=te({},Sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bs,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!==Ta&&(Ta&&e.type==="mousemove"?(Ei=e.screenX-Ta.screenX,Ai=e.screenY-Ta.screenY):Ai=Ei=0,Ta=e),Ei)},movementY:function(e){return"movementY"in e?e.movementY:Ai}}),Ur=Ue(Iu),V0=te({},Iu,{dataTransfer:0}),Z0=Ue(V0),K0=te({},Sn,{relatedTarget:0}),Ti=Ue(K0),J0=te({},zl,{animationName:0,elapsedTime:0,pseudoElement:0}),$0=Ue(J0),W0=te({},zl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),F0=Ue(W0),I0=te({},zl,{data:0}),Hr=Ue(I0),P0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ey={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"},ty={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ly(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ty[e])?!!t[e]:!1}function bs(){return ly}var ay=te({},Sn,{key:function(e){if(e.key){var t=P0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ey[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bs,charCode:function(e){return e.type==="keypress"?tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ny=Ue(ay),uy=te({},Iu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Br=Ue(uy),iy=te({},Sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bs}),cy=Ue(iy),sy=te({},zl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ry=Ue(sy),oy=te({},Iu,{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}),fy=Ue(oy),dy=te({},zl,{newState:0,oldState:0}),my=Ue(dy),hy=[9,13,27,32],Ss=zt&&"CompositionEvent"in window,Ya=null;zt&&"documentMode"in document&&(Ya=document.documentMode);var yy=zt&&"TextEvent"in window&&!Ya,Pf=zt&&(!Ss||Ya&&8<Ya&&11>=Ya),Lr=" ",qr=!1;function ed(e,t){switch(e){case"keyup":return hy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function td(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gl=!1;function gy(e,t){switch(e){case"compositionend":return td(t);case"keypress":return t.which!==32?null:(qr=!0,Lr);case"textInput":return e=t.data,e===Lr&&qr?null:e;default:return null}}function vy(e,t){if(Gl)return e==="compositionend"||!Ss&&ed(e,t)?(e=If(),eu=xs=Zt=null,Gl=!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 Pf&&t.locale!=="ko"?null:t.data;default:return null}}var py={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 Yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!py[e.type]:t==="textarea"}function ld(e,t,l,a){kl?Il?Il.push(a):Il=[a]:kl=a,t=Lu(t,"onChange"),0<t.length&&(l=new Fu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var ka=null,ln=null;function xy(e){Fm(e,0)}function Pu(e){var t=Ua(e);if(Zf(t))return e}function kr(e,t){if(e==="change")return t}var ad=!1;if(zt){var Mi;if(zt){var Ci="oninput"in document;if(!Ci){var Gr=document.createElement("div");Gr.setAttribute("oninput","return;"),Ci=typeof Gr.oninput=="function"}Mi=Ci}else Mi=!1;ad=Mi&&(!document.documentMode||9<document.documentMode)}function Xr(){ka&&(ka.detachEvent("onpropertychange",nd),ln=ka=null)}function nd(e){if(e.propertyName==="value"&&Pu(ln)){var t=[];ld(t,ln,e,ps(e)),Ff(xy,t)}}function by(e,t,l){e==="focusin"?(Xr(),ka=t,ln=l,ka.attachEvent("onpropertychange",nd)):e==="focusout"&&Xr()}function Sy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pu(ln)}function Ny(e,t){if(e==="click")return Pu(t)}function jy(e,t){if(e==="input"||e==="change")return Pu(t)}function Ey(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qe=typeof Object.is=="function"?Object.is:Ey;function an(e,t){if(Qe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!dc.call(t,n)||!Qe(e[n],t[n]))return!1}return!0}function Qr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vr(e,t){var l=Qr(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Qr(l)}}function ud(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ud(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function id(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=bu(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=bu(e.document)}return t}function Ns(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 Ay=zt&&"documentMode"in document&&11>=document.documentMode,Xl=null,xc=null,Ga=null,bc=!1;function Zr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;bc||Xl==null||Xl!==bu(a)||(a=Xl,"selectionStart"in a&&Ns(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Ga&&an(Ga,a)||(Ga=a,a=Lu(xc,"onSelect"),0<a.length&&(t=new Fu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Xl)))}function ml(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Ql={animationend:ml("Animation","AnimationEnd"),animationiteration:ml("Animation","AnimationIteration"),animationstart:ml("Animation","AnimationStart"),transitionrun:ml("Transition","TransitionRun"),transitionstart:ml("Transition","TransitionStart"),transitioncancel:ml("Transition","TransitionCancel"),transitionend:ml("Transition","TransitionEnd")},zi={},cd={};zt&&(cd=document.createElement("div").style,"AnimationEvent"in window||(delete Ql.animationend.animation,delete Ql.animationiteration.animation,delete Ql.animationstart.animation),"TransitionEvent"in window||delete Ql.transitionend.transition);function wl(e){if(zi[e])return zi[e];if(!Ql[e])return e;var t=Ql[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in cd)return zi[e]=t[l];return e}var sd=wl("animationend"),rd=wl("animationiteration"),od=wl("animationstart"),Ty=wl("transitionrun"),My=wl("transitionstart"),Cy=wl("transitioncancel"),fd=wl("transitionend"),dd=new Map,Sc="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(" ");Sc.push("scrollEnd");function it(e,t){dd.set(e,t),Cl(t,[e])}var Su=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)},Ze=[],Vl=0,js=0;function ei(){for(var e=Vl,t=js=Vl=0;t<e;){var l=Ze[t];Ze[t++]=null;var a=Ze[t];Ze[t++]=null;var n=Ze[t];Ze[t++]=null;var u=Ze[t];if(Ze[t++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&md(l,n,u)}}function ti(e,t,l,a){Ze[Vl++]=e,Ze[Vl++]=t,Ze[Vl++]=l,Ze[Vl++]=a,js|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Es(e,t,l,a){return ti(e,t,l,a),Nu(e)}function Ol(e,t){return ti(e,null,null,t),Nu(e)}function md(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-Ge(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function Nu(e){if(50<Fa)throw Fa=0,Gc=null,Error(N(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Zl={};function zy(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Le(e,t,l,a){return new zy(e,t,l,a)}function As(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tt(e,t){var l=e.alternate;return l===null?(l=Le(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function hd(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function lu(e,t,l,a,n,u){var i=0;if(a=e,typeof e=="function")As(e)&&(i=1);else if(typeof e=="string")i=_1(e,l,ot.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case sc:return e=Le(31,l,t,n),e.elementType=sc,e.lanes=u,e;case Ll:return xl(l.children,n,u,t);case Rf:i=8,n|=24;break;case uc:return e=Le(12,l,t,n|2),e.elementType=uc,e.lanes=u,e;case ic:return e=Le(13,l,t,n),e.elementType=ic,e.lanes=u,e;case cc:return e=Le(19,l,t,n),e.elementType=cc,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jt:i=10;break e;case _f:i=9;break e;case fs:i=11;break e;case ds:i=14;break e;case qt:i=16,a=null;break e}i=29,l=Error(N(130,e===null?"null":typeof e,"")),a=null}return t=Le(i,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function xl(e,t,l,a){return e=Le(7,e,a,t),e.lanes=l,e}function wi(e,t,l){return e=Le(6,e,null,t),e.lanes=l,e}function yd(e){var t=Le(18,null,null,0);return t.stateNode=e,t}function Oi(e,t,l){return t=Le(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kr=new WeakMap;function Fe(e,t){if(typeof e=="object"&&e!==null){var l=Kr.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Mr(t)},Kr.set(e,t),t)}return{value:e,source:t,stack:Mr(t)}}var Kl=[],Jl=0,ju=null,nn=0,Je=[],$e=0,ul=null,ct=1,st="";function St(e,t){Kl[Jl++]=nn,Kl[Jl++]=ju,ju=e,nn=t}function gd(e,t,l){Je[$e++]=ct,Je[$e++]=st,Je[$e++]=ul,ul=e;var a=ct;e=st;var n=32-Ge(a)-1;a&=~(1<<n),l+=1;var u=32-Ge(t)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,ct=1<<32-Ge(t)+n|l<<n|a,st=u+e}else ct=1<<u|l<<n|a,st=e}function Ts(e){e.return!==null&&(St(e,1),gd(e,1,0))}function Ms(e){for(;e===ju;)ju=Kl[--Jl],Kl[Jl]=null,nn=Kl[--Jl],Kl[Jl]=null;for(;e===ul;)ul=Je[--$e],Je[$e]=null,st=Je[--$e],Je[$e]=null,ct=Je[--$e],Je[$e]=null}function vd(e,t){Je[$e++]=ct,Je[$e++]=st,Je[$e++]=ul,ct=t.id,st=t.overflow,ul=e}var Ne=null,P=null,G=!1,Ft=null,Ie=!1,Nc=Error(N(519));function il(e){var t=Error(N(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw un(Fe(t,e)),Nc}function Jr(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Se]=e,t[_e]=a,l){case"dialog":L("cancel",t),L("close",t);break;case"iframe":case"object":case"embed":L("load",t);break;case"video":case"audio":for(l=0;l<on.length;l++)L(on[l],t);break;case"source":L("error",t);break;case"img":case"image":case"link":L("error",t),L("load",t);break;case"details":L("toggle",t);break;case"input":L("invalid",t),Kf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":L("invalid",t);break;case"textarea":L("invalid",t),$f(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Pm(t.textContent,l)?(a.popover!=null&&(L("beforetoggle",t),L("toggle",t)),a.onScroll!=null&&L("scroll",t),a.onScrollEnd!=null&&L("scrollend",t),a.onClick!=null&&(t.onclick=Et),t=!0):t=!1,t||il(e,!0)}function $r(e){for(Ne=e.return;Ne;)switch(Ne.tag){case 5:case 31:case 13:Ie=!1;return;case 27:case 3:Ie=!0;return;default:Ne=Ne.return}}function Rl(e){if(e!==Ne)return!1;if(!G)return $r(e),G=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Kc(e.type,e.memoizedProps)),l=!l),l&&P&&il(e),$r(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));P=Ho(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));P=Ho(e)}else t===27?(t=P,ol(e.type)?(e=Fc,Fc=null,P=e):P=t):P=Ne?et(e.stateNode.nextSibling):null;return!0}function jl(){P=Ne=null,G=!1}function Di(){var e=Ft;return e!==null&&(De===null?De=e:De.push.apply(De,e),Ft=null),e}function un(e){Ft===null?Ft=[e]:Ft.push(e)}var jc=mt(null),Dl=null,At=null;function kt(e,t,l){F(jc,t._currentValue),t._currentValue=l}function Mt(e){e._currentValue=jc.current,xe(jc)}function Ec(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Ac(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;e:for(;u!==null;){var s=u;u=n;for(var r=0;r<t.length;r++)if(s.context===t[r]){u.lanes|=l,s=u.alternate,s!==null&&(s.lanes|=l),Ec(u.return,l,e),a||(i=null);break e}u=s.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(N(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),Ec(i,l,e),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===e){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function va(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if(n.flags&524288)u=!0;else if(n.flags&262144)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(N(387));if(i=i.memoizedProps,i!==null){var s=n.type;Qe(n.pendingProps.value,i.value)||(e!==null?e.push(s):e=[s])}}else if(n===gu.current){if(i=n.alternate,i===null)throw Error(N(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(dn):e=[dn])}n=n.return}e!==null&&Ac(t,e,l,a),t.flags|=262144}function Eu(e){for(e=e.firstContext;e!==null;){if(!Qe(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function El(e){Dl=e,At=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function je(e){return pd(Dl,e)}function Gn(e,t){return Dl===null&&El(e),pd(e,t)}function pd(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},At===null){if(e===null)throw Error(N(308));At=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else At=At.next=t;return l}var wy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Oy=ye.unstable_scheduleCallback,Dy=ye.unstable_NormalPriority,de={$$typeof:jt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cs(){return{controller:new wy,data:new Map,refCount:0}}function Nn(e){e.refCount--,e.refCount===0&&Oy(Dy,function(){e.controller.abort()})}var Xa=null,Tc=0,ia=0,Pl=null;function Ry(e,t){if(Xa===null){var l=Xa=[];Tc=0,ia=Ps(),Pl={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Tc++,t.then(Wr,Wr),t}function Wr(){if(--Tc===0&&Xa!==null){Pl!==null&&(Pl.status="fulfilled");var e=Xa;Xa=null,ia=0,Pl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function _y(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Fr=D.S;D.S=function(e,t){Dm=Ye(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ry(e,t),Fr!==null&&Fr(e,t)};var bl=mt(null);function zs(){var e=bl.current;return e!==null?e:W.pooledCache}function au(e,t){t===null?F(bl,bl.current):F(bl,t.pool)}function xd(){var e=zs();return e===null?null:{parent:de._currentValue,pool:e}}var pa=Error(N(460)),ws=Error(N(474)),li=Error(N(542)),Au={then:function(){}};function Ir(e){return e=e.status,e==="fulfilled"||e==="rejected"}function bd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Et,Et),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,eo(e),e;default:if(typeof t.status=="string")t.then(Et,Et);else{if(e=W,e!==null&&100<e.shellSuspendCounter)throw Error(N(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,eo(e),e}throw Sl=t,pa}}function gl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Sl=l,pa):l}}var Sl=null;function Pr(){if(Sl===null)throw Error(N(459));var e=Sl;return Sl=null,e}function eo(e){if(e===pa||e===li)throw Error(N(483))}var ea=null,cn=0;function Xn(e){var t=cn;return cn+=1,ea===null&&(ea=[]),bd(ea,e,t)}function Ma(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Qn(e,t){throw t.$$typeof===b0?Error(N(525)):(e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Sd(e){function t(y,o){if(e){var v=y.deletions;v===null?(y.deletions=[o],y.flags|=16):v.push(o)}}function l(y,o){if(!e)return null;for(;o!==null;)t(y,o),o=o.sibling;return null}function a(y){for(var o=new Map;y!==null;)y.key!==null?o.set(y.key,y):o.set(y.index,y),y=y.sibling;return o}function n(y,o){return y=Tt(y,o),y.index=0,y.sibling=null,y}function u(y,o,v){return y.index=v,e?(v=y.alternate,v!==null?(v=v.index,v<o?(y.flags|=67108866,o):v):(y.flags|=67108866,o)):(y.flags|=1048576,o)}function i(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function s(y,o,v,b){return o===null||o.tag!==6?(o=wi(v,y.mode,b),o.return=y,o):(o=n(o,v),o.return=y,o)}function r(y,o,v,b){var A=v.type;return A===Ll?h(y,o,v.props.children,b,v.key):o!==null&&(o.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===qt&&gl(A)===o.type)?(o=n(o,v.props),Ma(o,v),o.return=y,o):(o=lu(v.type,v.key,v.props,null,y.mode,b),Ma(o,v),o.return=y,o)}function f(y,o,v,b){return o===null||o.tag!==4||o.stateNode.containerInfo!==v.containerInfo||o.stateNode.implementation!==v.implementation?(o=Oi(v,y.mode,b),o.return=y,o):(o=n(o,v.children||[]),o.return=y,o)}function h(y,o,v,b,A){return o===null||o.tag!==7?(o=xl(v,y.mode,b,A),o.return=y,o):(o=n(o,v),o.return=y,o)}function m(y,o,v){if(typeof o=="string"&&o!==""||typeof o=="number"||typeof o=="bigint")return o=wi(""+o,y.mode,v),o.return=y,o;if(typeof o=="object"&&o!==null){switch(o.$$typeof){case Hn:return v=lu(o.type,o.key,o.props,null,y.mode,v),Ma(v,o),v.return=y,v;case Ra:return o=Oi(o,y.mode,v),o.return=y,o;case qt:return o=gl(o),m(y,o,v)}if(_a(o)||Ea(o))return o=xl(o,y.mode,v,null),o.return=y,o;if(typeof o.then=="function")return m(y,Xn(o),v);if(o.$$typeof===jt)return m(y,Gn(y,o),v);Qn(y,o)}return null}function d(y,o,v,b){var A=o!==null?o.key:null;if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return A!==null?null:s(y,o,""+v,b);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Hn:return v.key===A?r(y,o,v,b):null;case Ra:return v.key===A?f(y,o,v,b):null;case qt:return v=gl(v),d(y,o,v,b)}if(_a(v)||Ea(v))return A!==null?null:h(y,o,v,b,null);if(typeof v.then=="function")return d(y,o,Xn(v),b);if(v.$$typeof===jt)return d(y,o,Gn(y,v),b);Qn(y,v)}return null}function g(y,o,v,b,A){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return y=y.get(v)||null,s(o,y,""+b,A);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Hn:return y=y.get(b.key===null?v:b.key)||null,r(o,y,b,A);case Ra:return y=y.get(b.key===null?v:b.key)||null,f(o,y,b,A);case qt:return b=gl(b),g(y,o,v,b,A)}if(_a(b)||Ea(b))return y=y.get(v)||null,h(o,y,b,A,null);if(typeof b.then=="function")return g(y,o,v,Xn(b),A);if(b.$$typeof===jt)return g(y,o,v,Gn(o,b),A);Qn(o,b)}return null}function x(y,o,v,b){for(var A=null,z=null,T=o,C=o=0,O=null;T!==null&&C<v.length;C++){T.index>C?(O=T,T=null):O=T.sibling;var U=d(y,T,v[C],b);if(U===null){T===null&&(T=O);break}e&&T&&U.alternate===null&&t(y,T),o=u(U,o,C),z===null?A=U:z.sibling=U,z=U,T=O}if(C===v.length)return l(y,T),G&&St(y,C),A;if(T===null){for(;C<v.length;C++)T=m(y,v[C],b),T!==null&&(o=u(T,o,C),z===null?A=T:z.sibling=T,z=T);return G&&St(y,C),A}for(T=a(T);C<v.length;C++)O=g(T,y,C,v[C],b),O!==null&&(e&&O.alternate!==null&&T.delete(O.key===null?C:O.key),o=u(O,o,C),z===null?A=O:z.sibling=O,z=O);return e&&T.forEach(function(E){return t(y,E)}),G&&St(y,C),A}function S(y,o,v,b){if(v==null)throw Error(N(151));for(var A=null,z=null,T=o,C=o=0,O=null,U=v.next();T!==null&&!U.done;C++,U=v.next()){T.index>C?(O=T,T=null):O=T.sibling;var E=d(y,T,U.value,b);if(E===null){T===null&&(T=O);break}e&&T&&E.alternate===null&&t(y,T),o=u(E,o,C),z===null?A=E:z.sibling=E,z=E,T=O}if(U.done)return l(y,T),G&&St(y,C),A;if(T===null){for(;!U.done;C++,U=v.next())U=m(y,U.value,b),U!==null&&(o=u(U,o,C),z===null?A=U:z.sibling=U,z=U);return G&&St(y,C),A}for(T=a(T);!U.done;C++,U=v.next())U=g(T,y,C,U.value,b),U!==null&&(e&&U.alternate!==null&&T.delete(U.key===null?C:U.key),o=u(U,o,C),z===null?A=U:z.sibling=U,z=U);return e&&T.forEach(function(re){return t(y,re)}),G&&St(y,C),A}function j(y,o,v,b){if(typeof v=="object"&&v!==null&&v.type===Ll&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Hn:e:{for(var A=v.key;o!==null;){if(o.key===A){if(A=v.type,A===Ll){if(o.tag===7){l(y,o.sibling),b=n(o,v.props.children),b.return=y,y=b;break e}}else if(o.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===qt&&gl(A)===o.type){l(y,o.sibling),b=n(o,v.props),Ma(b,v),b.return=y,y=b;break e}l(y,o);break}else t(y,o);o=o.sibling}v.type===Ll?(b=xl(v.props.children,y.mode,b,v.key),b.return=y,y=b):(b=lu(v.type,v.key,v.props,null,y.mode,b),Ma(b,v),b.return=y,y=b)}return i(y);case Ra:e:{for(A=v.key;o!==null;){if(o.key===A)if(o.tag===4&&o.stateNode.containerInfo===v.containerInfo&&o.stateNode.implementation===v.implementation){l(y,o.sibling),b=n(o,v.children||[]),b.return=y,y=b;break e}else{l(y,o);break}else t(y,o);o=o.sibling}b=Oi(v,y.mode,b),b.return=y,y=b}return i(y);case qt:return v=gl(v),j(y,o,v,b)}if(_a(v))return x(y,o,v,b);if(Ea(v)){if(A=Ea(v),typeof A!="function")throw Error(N(150));return v=A.call(v),S(y,o,v,b)}if(typeof v.then=="function")return j(y,o,Xn(v),b);if(v.$$typeof===jt)return j(y,o,Gn(y,v),b);Qn(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,o!==null&&o.tag===6?(l(y,o.sibling),b=n(o,v),b.return=y,y=b):(l(y,o),b=wi(v,y.mode,b),b.return=y,y=b),i(y)):l(y,o)}return function(y,o,v,b){try{cn=0;var A=j(y,o,v,b);return ea=null,A}catch(T){if(T===pa||T===li)throw T;var z=Le(29,T,null,y.mode);return z.lanes=b,z.return=y,z}finally{}}}var Al=Sd(!0),Nd=Sd(!1),Yt=!1;function Os(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mc(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 It(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pt(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,Q&2){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Nu(e),md(e,null,l),t}return ti(e,a,t,l),Nu(e)}function Qa(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Yf(e,l)}}function Ri(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Cc=!1;function Va(){if(Cc){var e=Pl;if(e!==null)throw e}}function Za(e,t,l,a){Cc=!1;var n=e.updateQueue;Yt=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var r=s,f=r.next;r.next=null,i===null?u=f:i.next=f,i=r;var h=e.alternate;h!==null&&(h=h.updateQueue,s=h.lastBaseUpdate,s!==i&&(s===null?h.firstBaseUpdate=f:s.next=f,h.lastBaseUpdate=r))}if(u!==null){var m=n.baseState;i=0,h=f=r=null,s=u;do{var d=s.lane&-536870913,g=d!==s.lane;if(g?(k&d)===d:(a&d)===d){d!==0&&d===ia&&(Cc=!0),h!==null&&(h=h.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var x=e,S=s;d=t;var j=l;switch(S.tag){case 1:if(x=S.payload,typeof x=="function"){m=x.call(j,m,d);break e}m=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=S.payload,d=typeof x=="function"?x.call(j,m,d):x,d==null)break e;m=te({},m,d);break e;case 2:Yt=!0}}d=s.callback,d!==null&&(e.flags|=64,g&&(e.flags|=8192),g=n.callbacks,g===null?n.callbacks=[d]:g.push(d))}else g={lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},h===null?(f=h=g,r=m):h=h.next=g,i|=d;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;g=s,s=g.next,g.next=null,n.lastBaseUpdate=g,n.shared.pending=null}}while(!0);h===null&&(r=m),n.baseState=r,n.firstBaseUpdate=f,n.lastBaseUpdate=h,u===null&&(n.shared.lanes=0),sl|=i,e.lanes=i,e.memoizedState=m}}function jd(e,t){if(typeof e!="function")throw Error(N(191,e));e.call(t)}function Ed(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)jd(l[e],t)}var ca=mt(null),Tu=mt(0);function to(e,t){e=Rt,F(Tu,e),F(ca,t),Rt=e|t.baseLanes}function zc(){F(Tu,Rt),F(ca,ca.current)}function Ds(){Rt=Tu.current,xe(ca),xe(Tu)}var Ve=mt(null),Pe=null;function Gt(e){var t=e.alternate;F(ce,ce.current&1),F(Ve,e),Pe===null&&(t===null||ca.current!==null||t.memoizedState!==null)&&(Pe=e)}function wc(e){F(ce,ce.current),F(Ve,e),Pe===null&&(Pe=e)}function Ad(e){e.tag===22?(F(ce,ce.current),F(Ve,e),Pe===null&&(Pe=e)):Xt()}function Xt(){F(ce,ce.current),F(Ve,Ve.current)}function Be(e){xe(Ve),Pe===e&&(Pe=null),xe(ce)}var ce=mt(0);function Mu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||$c(l)||Wc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)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 wt=0,_=null,$=null,oe=null,Cu=!1,ta=!1,Tl=!1,zu=0,sn=0,la=null,Uy=0;function ne(){throw Error(N(321))}function Rs(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Qe(e[l],t[l]))return!1;return!0}function _s(e,t,l,a,n,u){return wt=u,_=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?lm:Vs,Tl=!1,u=l(a,n),Tl=!1,ta&&(u=Md(t,l,a,n)),Td(e),u}function Td(e){D.H=rn;var t=$!==null&&$.next!==null;if(wt=0,oe=$=_=null,Cu=!1,sn=0,la=null,t)throw Error(N(300));e===null||me||(e=e.dependencies,e!==null&&Eu(e)&&(me=!0))}function Md(e,t,l,a){_=e;var n=0;do{if(ta&&(la=null),sn=0,ta=!1,25<=n)throw Error(N(301));if(n+=1,oe=$=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}D.H=am,u=t(l,a)}while(ta);return u}function Hy(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?jn(t):t,e=e.useState()[0],($!==null?$.memoizedState:null)!==e&&(_.flags|=1024),t}function Us(){var e=zu!==0;return zu=0,e}function Hs(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Bs(e){if(Cu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Cu=!1}wt=0,oe=$=_=null,ta=!1,sn=zu=0,la=null}function Ae(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oe===null?_.memoizedState=oe=e:oe=oe.next=e,oe}function se(){if($===null){var e=_.alternate;e=e!==null?e.memoizedState:null}else e=$.next;var t=oe===null?_.memoizedState:oe.next;if(t!==null)oe=t,$=e;else{if(e===null)throw _.alternate===null?Error(N(467)):Error(N(310));$=e,e={memoizedState:$.memoizedState,baseState:$.baseState,baseQueue:$.baseQueue,queue:$.queue,next:null},oe===null?_.memoizedState=oe=e:oe=oe.next=e}return oe}function ai(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function jn(e){var t=sn;return sn+=1,la===null&&(la=[]),e=bd(la,e,t),t=_,(oe===null?t.memoizedState:oe.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?lm:Vs),e}function ni(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return jn(e);if(e.$$typeof===jt)return je(e)}throw Error(N(438,String(e)))}function Ls(e){var t=null,l=_.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=_.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=ai(),_.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=S0;return t.index++,l}function Ot(e,t){return typeof t=="function"?t(e):t}function nu(e){var t=se();return qs(t,$,e)}function qs(e,t,l){var a=e.queue;if(a===null)throw Error(N(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var s=i=null,r=null,f=t,h=!1;do{var m=f.lane&-536870913;if(m!==f.lane?(k&m)===m:(wt&m)===m){var d=f.revertLane;if(d===0)r!==null&&(r=r.next={lane:0,revertLane:0,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),m===ia&&(h=!0);else if((wt&d)===d){f=f.next,d===ia&&(h=!0);continue}else m={lane:0,revertLane:f.revertLane,gesture:null,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},r===null?(s=r=m,i=u):r=r.next=m,_.lanes|=d,sl|=d;m=f.action,Tl&&l(u,m),u=f.hasEagerState?f.eagerState:l(u,m)}else d={lane:m,revertLane:f.revertLane,gesture:f.gesture,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null},r===null?(s=r=d,i=u):r=r.next=d,_.lanes|=m,sl|=m;f=f.next}while(f!==null&&f!==t);if(r===null?i=u:r.next=s,!Qe(u,e.memoizedState)&&(me=!0,h&&(l=Pl,l!==null)))throw l;e.memoizedState=u,e.baseState=i,e.baseQueue=r,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function _i(e){var t=se(),l=t.queue;if(l===null)throw Error(N(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var i=n=n.next;do u=e(u,i.action),i=i.next;while(i!==n);Qe(u,t.memoizedState)||(me=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Cd(e,t,l){var a=_,n=se(),u=G;if(u){if(l===void 0)throw Error(N(407));l=l()}else l=t();var i=!Qe(($||n).memoizedState,l);if(i&&(n.memoizedState=l,me=!0),n=n.queue,Ys(Od.bind(null,a,n,e),[e]),n.getSnapshot!==t||i||oe!==null&&oe.memoizedState.tag&1){if(a.flags|=2048,sa(9,{destroy:void 0},wd.bind(null,a,n,l,t),null),W===null)throw Error(N(349));u||wt&127||zd(a,t,l)}return l}function zd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=_.updateQueue,t===null?(t=ai(),_.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function wd(e,t,l,a){t.value=l,t.getSnapshot=a,Dd(t)&&Rd(e)}function Od(e,t,l){return l(function(){Dd(t)&&Rd(e)})}function Dd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Qe(e,l)}catch{return!0}}function Rd(e){var t=Ol(e,2);t!==null&&Re(t,e,2)}function Oc(e){var t=Ae();if(typeof e=="function"){var l=e;if(e=l(),Tl){Vt(!0);try{l()}finally{Vt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ot,lastRenderedState:e},t}function _d(e,t,l,a){return e.baseState=l,qs(e,$,typeof a=="function"?a:Ot)}function By(e,t,l,a,n){if(ii(e))throw Error(N(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};D.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Ud(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Ud(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=D.T,i={};D.T=i;try{var s=l(n,a),r=D.S;r!==null&&r(i,s),lo(e,t,s)}catch(f){Dc(e,t,f)}finally{u!==null&&i.types!==null&&(u.types=i.types),D.T=u}}else try{u=l(n,a),lo(e,t,u)}catch(f){Dc(e,t,f)}}function lo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){ao(e,t,a)},function(a){return Dc(e,t,a)}):ao(e,t,l)}function ao(e,t,l){t.status="fulfilled",t.value=l,Hd(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Ud(e,l)))}function Dc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Hd(t),t=t.next;while(t!==a)}e.action=null}function Hd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Bd(e,t){return t}function no(e,t){if(G){var l=W.formState;if(l!==null){e:{var a=_;if(G){if(P){t:{for(var n=P,u=Ie;n.nodeType!==8;){if(!u){n=null;break t}if(n=et(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){P=et(n.nextSibling),a=n.data==="F!";break e}}il(a)}a=!1}a&&(t=l[0])}}return l=Ae(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bd,lastRenderedState:t},l.queue=a,l=Pd.bind(null,_,a),a.dispatch=l,a=Oc(!1),u=Qs.bind(null,_,!1,a.queue),a=Ae(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=By.bind(null,_,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function uo(e){var t=se();return Ld(t,$,e)}function Ld(e,t,l){if(t=qs(e,t,Bd)[0],e=nu(Ot)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=jn(t)}catch(i){throw i===pa?li:i}else a=t;t=se();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(_.flags|=2048,sa(9,{destroy:void 0},Ly.bind(null,n,l),null)),[a,u,e]}function Ly(e,t){e.action=t}function io(e){var t=se(),l=$;if(l!==null)return Ld(t,l,e);se(),t=t.memoizedState,l=se();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function sa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=_.updateQueue,t===null&&(t=ai(),_.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function qd(){return se().memoizedState}function uu(e,t,l,a){var n=Ae();_.flags|=e,n.memoizedState=sa(1|t,{destroy:void 0},l,a===void 0?null:a)}function ui(e,t,l,a){var n=se();a=a===void 0?null:a;var u=n.memoizedState.inst;$!==null&&a!==null&&Rs(a,$.memoizedState.deps)?n.memoizedState=sa(t,u,l,a):(_.flags|=e,n.memoizedState=sa(1|t,u,l,a))}function co(e,t){uu(8390656,8,e,t)}function Ys(e,t){ui(2048,8,e,t)}function qy(e){_.flags|=4;var t=_.updateQueue;if(t===null)t=ai(),_.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Yd(e){var t=se().memoizedState;return qy({ref:t,nextImpl:e}),function(){if(Q&2)throw Error(N(440));return t.impl.apply(void 0,arguments)}}function kd(e,t){return ui(4,2,e,t)}function Gd(e,t){return ui(4,4,e,t)}function Xd(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Qd(e,t,l){l=l!=null?l.concat([e]):null,ui(4,4,Xd.bind(null,t,e),l)}function ks(){}function Vd(e,t){var l=se();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Rs(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Zd(e,t){var l=se();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Rs(t,a[1]))return a[0];if(a=e(),Tl){Vt(!0);try{e()}finally{Vt(!1)}}return l.memoizedState=[a,t],a}function Gs(e,t,l){return l===void 0||wt&1073741824&&!(k&261930)?e.memoizedState=t:(e.memoizedState=l,e=_m(),_.lanes|=e,sl|=e,l)}function Kd(e,t,l,a){return Qe(l,t)?l:ca.current!==null?(e=Gs(e,l,a),Qe(e,t)||(me=!0),e):!(wt&42)||wt&1073741824&&!(k&261930)?(me=!0,e.memoizedState=l):(e=_m(),_.lanes|=e,sl|=e,t)}function Jd(e,t,l,a,n){var u=V.p;V.p=u!==0&&8>u?u:8;var i=D.T,s={};D.T=s,Qs(e,!1,t,l);try{var r=n(),f=D.S;if(f!==null&&f(s,r),r!==null&&typeof r=="object"&&typeof r.then=="function"){var h=_y(r,a);Ka(e,t,h,Xe(e))}else Ka(e,t,a,Xe(e))}catch(m){Ka(e,t,{then:function(){},status:"rejected",reason:m},Xe())}finally{V.p=u,i!==null&&s.types!==null&&(i.types=s.types),D.T=i}}function Yy(){}function Rc(e,t,l,a){if(e.tag!==5)throw Error(N(476));var n=$d(e).queue;Jd(e,n,t,pl,l===null?Yy:function(){return Wd(e),l(a)})}function $d(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:pl,baseState:pl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ot,lastRenderedState:pl},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ot,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wd(e){var t=$d(e);t.next===null&&(t=e.alternate.memoizedState),Ka(e,t.next.queue,{},Xe())}function Xs(){return je(dn)}function Fd(){return se().memoizedState}function Id(){return se().memoizedState}function ky(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Xe();e=It(l);var a=Pt(t,e,l);a!==null&&(Re(a,t,l),Qa(a,t,l)),t={cache:Cs()},e.payload=t;return}t=t.return}}function Gy(e,t,l){var a=Xe();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ii(e)?em(t,l):(l=Es(e,t,l,a),l!==null&&(Re(l,e,a),tm(l,t,a)))}function Pd(e,t,l){var a=Xe();Ka(e,t,l,a)}function Ka(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ii(e))em(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var i=t.lastRenderedState,s=u(i,l);if(n.hasEagerState=!0,n.eagerState=s,Qe(s,i))return ti(e,t,n,0),W===null&&ei(),!1}catch{}finally{}if(l=Es(e,t,n,a),l!==null)return Re(l,e,a),tm(l,t,a),!0}return!1}function Qs(e,t,l,a){if(a={lane:2,revertLane:Ps(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ii(e)){if(t)throw Error(N(479))}else t=Es(e,l,a,2),t!==null&&Re(t,e,2)}function ii(e){var t=e.alternate;return e===_||t!==null&&t===_}function em(e,t){ta=Cu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function tm(e,t,l){if(l&4194048){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Yf(e,l)}}var rn={readContext:je,use:ni,useCallback:ne,useContext:ne,useEffect:ne,useImperativeHandle:ne,useLayoutEffect:ne,useInsertionEffect:ne,useMemo:ne,useReducer:ne,useRef:ne,useState:ne,useDebugValue:ne,useDeferredValue:ne,useTransition:ne,useSyncExternalStore:ne,useId:ne,useHostTransitionStatus:ne,useFormState:ne,useActionState:ne,useOptimistic:ne,useMemoCache:ne,useCacheRefresh:ne};rn.useEffectEvent=ne;var lm={readContext:je,use:ni,useCallback:function(e,t){return Ae().memoizedState=[e,t===void 0?null:t],e},useContext:je,useEffect:co,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,uu(4194308,4,Xd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return uu(4194308,4,e,t)},useInsertionEffect:function(e,t){uu(4,2,e,t)},useMemo:function(e,t){var l=Ae();t=t===void 0?null:t;var a=e();if(Tl){Vt(!0);try{e()}finally{Vt(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Ae();if(l!==void 0){var n=l(t);if(Tl){Vt(!0);try{l(t)}finally{Vt(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Gy.bind(null,_,e),[a.memoizedState,e]},useRef:function(e){var t=Ae();return e={current:e},t.memoizedState=e},useState:function(e){e=Oc(e);var t=e.queue,l=Pd.bind(null,_,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:ks,useDeferredValue:function(e,t){var l=Ae();return Gs(l,e,t)},useTransition:function(){var e=Oc(!1);return e=Jd.bind(null,_,e.queue,!0,!1),Ae().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=_,n=Ae();if(G){if(l===void 0)throw Error(N(407));l=l()}else{if(l=t(),W===null)throw Error(N(349));k&127||zd(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,co(Od.bind(null,a,u,e),[e]),a.flags|=2048,sa(9,{destroy:void 0},wd.bind(null,a,u,l,t),null),l},useId:function(){var e=Ae(),t=W.identifierPrefix;if(G){var l=st,a=ct;l=(a&~(1<<32-Ge(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Uy++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Xs,useFormState:no,useActionState:no,useOptimistic:function(e){var t=Ae();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Qs.bind(null,_,!0,l),l.dispatch=t,[e,t]},useMemoCache:Ls,useCacheRefresh:function(){return Ae().memoizedState=ky.bind(null,_)},useEffectEvent:function(e){var t=Ae(),l={impl:e};return t.memoizedState=l,function(){if(Q&2)throw Error(N(440));return l.impl.apply(void 0,arguments)}}},Vs={readContext:je,use:ni,useCallback:Vd,useContext:je,useEffect:Ys,useImperativeHandle:Qd,useInsertionEffect:kd,useLayoutEffect:Gd,useMemo:Zd,useReducer:nu,useRef:qd,useState:function(){return nu(Ot)},useDebugValue:ks,useDeferredValue:function(e,t){var l=se();return Kd(l,$.memoizedState,e,t)},useTransition:function(){var e=nu(Ot)[0],t=se().memoizedState;return[typeof e=="boolean"?e:jn(e),t]},useSyncExternalStore:Cd,useId:Fd,useHostTransitionStatus:Xs,useFormState:uo,useActionState:uo,useOptimistic:function(e,t){var l=se();return _d(l,$,e,t)},useMemoCache:Ls,useCacheRefresh:Id};Vs.useEffectEvent=Yd;var am={readContext:je,use:ni,useCallback:Vd,useContext:je,useEffect:Ys,useImperativeHandle:Qd,useInsertionEffect:kd,useLayoutEffect:Gd,useMemo:Zd,useReducer:_i,useRef:qd,useState:function(){return _i(Ot)},useDebugValue:ks,useDeferredValue:function(e,t){var l=se();return $===null?Gs(l,e,t):Kd(l,$.memoizedState,e,t)},useTransition:function(){var e=_i(Ot)[0],t=se().memoizedState;return[typeof e=="boolean"?e:jn(e),t]},useSyncExternalStore:Cd,useId:Fd,useHostTransitionStatus:Xs,useFormState:io,useActionState:io,useOptimistic:function(e,t){var l=se();return $!==null?_d(l,$,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Ls,useCacheRefresh:Id};am.useEffectEvent=Yd;function Ui(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:te({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var _c={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Xe(),n=It(a);n.payload=t,l!=null&&(n.callback=l),t=Pt(e,n,a),t!==null&&(Re(t,e,a),Qa(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Xe(),n=It(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Pt(e,n,a),t!==null&&(Re(t,e,a),Qa(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Xe(),a=It(l);a.tag=2,t!=null&&(a.callback=t),t=Pt(e,a,l),t!==null&&(Re(t,e,l),Qa(t,e,l))}};function so(e,t,l,a,n,u,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,i):t.prototype&&t.prototype.isPureReactComponent?!an(l,a)||!an(n,u):!0}function ro(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&_c.enqueueReplaceState(t,t.state,null)}function Ml(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=te({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function nm(e){Su(e)}function um(e){console.error(e)}function im(e){Su(e)}function wu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function oo(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Uc(e,t,l){return l=It(l),l.tag=3,l.payload={element:null},l.callback=function(){wu(e,t)},l}function cm(e){return e=It(e),e.tag=3,e}function sm(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){oo(t,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){oo(t,l,a),typeof n!="function"&&(el===null?el=new Set([this]):el.add(this));var s=a.stack;this.componentDidCatch(a.value,{componentStack:s!==null?s:""})})}function Xy(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&va(t,l,n,!0),l=Ve.current,l!==null){switch(l.tag){case 31:case 13:return Pe===null?Uu():l.alternate===null&&ue===0&&(ue=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Au?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Zi(e,a,n)),!1;case 22:return l.flags|=65536,a===Au?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Zi(e,a,n)),!1}throw Error(N(435,l.tag))}return Zi(e,a,n),Uu(),!1}if(G)return t=Ve.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Nc&&(e=Error(N(422),{cause:a}),un(Fe(e,l)))):(a!==Nc&&(t=Error(N(423),{cause:a}),un(Fe(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Fe(a,l),n=Uc(e.stateNode,a,n),Ri(e,n),ue!==4&&(ue=2)),!1;var u=Error(N(520),{cause:a});if(u=Fe(u,l),Wa===null?Wa=[u]:Wa.push(u),ue!==4&&(ue=2),t===null)return!0;a=Fe(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Uc(l.stateNode,a,e),Ri(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(el===null||!el.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=cm(n),sm(n,e,l,a),Ri(l,n),!1}l=l.return}while(l!==null);return!1}var Zs=Error(N(461)),me=!1;function be(e,t,l,a){t.child=e===null?Nd(t,null,l,a):Al(t,e.child,l,a)}function fo(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var i={};for(var s in a)s!=="ref"&&(i[s]=a[s])}else i=a;return El(t),a=_s(e,t,l,i,u,n),s=Us(),e!==null&&!me?(Hs(e,t,n),Dt(e,t,n)):(G&&s&&Ts(t),t.flags|=1,be(e,t,a,n),t.child)}function mo(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!As(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,rm(e,t,u,a,n)):(e=lu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Ks(e,n)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:an,l(i,a)&&e.ref===t.ref)return Dt(e,t,n)}return t.flags|=1,e=Tt(u,a),e.ref=t.ref,e.return=t,t.child=e}function rm(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(an(u,a)&&e.ref===t.ref)if(me=!1,t.pendingProps=a=u,Ks(e,n))e.flags&131072&&(me=!0);else return t.lanes=e.lanes,Dt(e,t,n)}return Hc(e,t,l,a,n)}function om(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if(t.flags&128){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return ho(e,t,u,l,a)}if(l&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&au(t,u!==null?u.cachePool:null),u!==null?to(t,u):zc(),Ad(t);else return a=t.lanes=536870912,ho(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(au(t,u.cachePool),to(t,u),Xt(),t.memoizedState=null):(e!==null&&au(t,null),zc(),Xt());return be(e,t,n,l),t.child}function Ha(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ho(e,t,l,a,n){var u=zs();return u=u===null?null:{parent:de._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&au(t,null),zc(),Ad(t),e!==null&&va(e,t,a,!0),t.childLanes=n,null}function iu(e,t){return t=Ou({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yo(e,t,l){return Al(t,e.child,null,l),e=iu(t,t.pendingProps),e.flags|=2,Be(t),t.memoizedState=null,e}function Qy(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(G){if(a.mode==="hidden")return e=iu(t,a),t.lanes=536870912,Ha(null,e);if(wc(t),(e=P)?(e=lh(e,Ie),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ul!==null?{id:ct,overflow:st}:null,retryLane:536870912,hydrationErrors:null},l=yd(e),l.return=t,t.child=l,Ne=t,P=null)):e=null,e===null)throw il(t);return t.lanes=536870912,null}return iu(t,a)}var u=e.memoizedState;if(u!==null){var i=u.dehydrated;if(wc(t),n)if(t.flags&256)t.flags&=-257,t=yo(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(N(558));else if(me||va(e,t,l,!1),n=(l&e.childLanes)!==0,me||n){if(a=W,a!==null&&(i=kf(a,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,Ol(e,i),Re(a,e,i),Zs;Uu(),t=yo(e,t,l)}else e=u.treeContext,P=et(i.nextSibling),Ne=t,G=!0,Ft=null,Ie=!1,e!==null&&vd(t,e),t=iu(t,a),t.flags|=4096;return t}return e=Tt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(N(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Hc(e,t,l,a,n){return El(t),l=_s(e,t,l,a,void 0,n),a=Us(),e!==null&&!me?(Hs(e,t,n),Dt(e,t,n)):(G&&a&&Ts(t),t.flags|=1,be(e,t,l,n),t.child)}function go(e,t,l,a,n,u){return El(t),t.updateQueue=null,l=Md(t,a,l,n),Td(e),a=Us(),e!==null&&!me?(Hs(e,t,u),Dt(e,t,u)):(G&&a&&Ts(t),t.flags|=1,be(e,t,l,u),t.child)}function vo(e,t,l,a,n){if(El(t),t.stateNode===null){var u=Zl,i=l.contextType;typeof i=="object"&&i!==null&&(u=je(i)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=_c,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Os(t),i=l.contextType,u.context=typeof i=="object"&&i!==null?je(i):Zl,u.state=t.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(Ui(t,l,i,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&_c.enqueueReplaceState(u,u.state,null),Za(t,a,u,n),Va(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var s=t.memoizedProps,r=Ml(l,s);u.props=r;var f=u.context,h=l.contextType;i=Zl,typeof h=="object"&&h!==null&&(i=je(h));var m=l.getDerivedStateFromProps;h=typeof m=="function"||typeof u.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,h||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s||f!==i)&&ro(t,u,a,i),Yt=!1;var d=t.memoizedState;u.state=d,Za(t,a,u,n),Va(),f=t.memoizedState,s||d!==f||Yt?(typeof m=="function"&&(Ui(t,l,m,a),f=t.memoizedState),(r=Yt||so(t,l,r,a,d,f,i))?(h||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=f),u.props=a,u.state=f,u.context=i,a=r):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Mc(e,t),i=t.memoizedProps,h=Ml(l,i),u.props=h,m=t.pendingProps,d=u.context,f=l.contextType,r=Zl,typeof f=="object"&&f!==null&&(r=je(f)),s=l.getDerivedStateFromProps,(f=typeof s=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==m||d!==r)&&ro(t,u,a,r),Yt=!1,d=t.memoizedState,u.state=d,Za(t,a,u,n),Va();var g=t.memoizedState;i!==m||d!==g||Yt||e!==null&&e.dependencies!==null&&Eu(e.dependencies)?(typeof s=="function"&&(Ui(t,l,s,a),g=t.memoizedState),(h=Yt||so(t,l,h,a,d,g,r)||e!==null&&e.dependencies!==null&&Eu(e.dependencies))?(f||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,g,r),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,g,r)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=g),u.props=a,u.state=g,u.context=r,a=h):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,cu(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Al(t,e.child,null,n),t.child=Al(t,null,l,n)):be(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Dt(e,t,n),e}function po(e,t,l,a){return jl(),t.flags|=256,be(e,t,l,a),t.child}var Hi={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bi(e){return{baseLanes:e,cachePool:xd()}}function Li(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=qe),e}function fm(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,i;if((i=u)||(i=e!==null&&e.memoizedState===null?!1:(ce.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(G){if(n?Gt(t):Xt(),(e=P)?(e=lh(e,Ie),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ul!==null?{id:ct,overflow:st}:null,retryLane:536870912,hydrationErrors:null},l=yd(e),l.return=t,t.child=l,Ne=t,P=null)):e=null,e===null)throw il(t);return Wc(e)?t.lanes=32:t.lanes=536870912,null}var s=a.children;return a=a.fallback,n?(Xt(),n=t.mode,s=Ou({mode:"hidden",children:s},n),a=xl(a,n,l,null),s.return=t,a.return=t,s.sibling=a,t.child=s,a=t.child,a.memoizedState=Bi(l),a.childLanes=Li(e,i,l),t.memoizedState=Hi,Ha(null,a)):(Gt(t),Bc(t,s))}var r=e.memoizedState;if(r!==null&&(s=r.dehydrated,s!==null)){if(u)t.flags&256?(Gt(t),t.flags&=-257,t=qi(e,t,l)):t.memoizedState!==null?(Xt(),t.child=e.child,t.flags|=128,t=null):(Xt(),s=a.fallback,n=t.mode,a=Ou({mode:"visible",children:a.children},n),s=xl(s,n,l,null),s.flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,Al(t,e.child,null,l),a=t.child,a.memoizedState=Bi(l),a.childLanes=Li(e,i,l),t.memoizedState=Hi,t=Ha(null,a));else if(Gt(t),Wc(s)){if(i=s.nextSibling&&s.nextSibling.dataset,i)var f=i.dgst;i=f,a=Error(N(419)),a.stack="",a.digest=i,un({value:a,source:null,stack:null}),t=qi(e,t,l)}else if(me||va(e,t,l,!1),i=(l&e.childLanes)!==0,me||i){if(i=W,i!==null&&(a=kf(i,l),a!==0&&a!==r.retryLane))throw r.retryLane=a,Ol(e,a),Re(i,e,a),Zs;$c(s)||Uu(),t=qi(e,t,l)}else $c(s)?(t.flags|=192,t.child=e.child,t=null):(e=r.treeContext,P=et(s.nextSibling),Ne=t,G=!0,Ft=null,Ie=!1,e!==null&&vd(t,e),t=Bc(t,a.children),t.flags|=4096);return t}return n?(Xt(),s=a.fallback,n=t.mode,r=e.child,f=r.sibling,a=Tt(r,{mode:"hidden",children:a.children}),a.subtreeFlags=r.subtreeFlags&65011712,f!==null?s=Tt(f,s):(s=xl(s,n,l,null),s.flags|=2),s.return=t,a.return=t,a.sibling=s,t.child=a,Ha(null,a),a=t.child,s=e.child.memoizedState,s===null?s=Bi(l):(n=s.cachePool,n!==null?(r=de._currentValue,n=n.parent!==r?{parent:r,pool:r}:n):n=xd(),s={baseLanes:s.baseLanes|l,cachePool:n}),a.memoizedState=s,a.childLanes=Li(e,i,l),t.memoizedState=Hi,Ha(e.child,a)):(Gt(t),l=e.child,e=l.sibling,l=Tt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=l,t.memoizedState=null,l)}function Bc(e,t){return t=Ou({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ou(e,t){return e=Le(22,e,null,t),e.lanes=0,e}function qi(e,t,l){return Al(t,e.child,null,l),e=Bc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xo(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Ec(e.return,t,l)}function Yi(e,t,l,a,n,u){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n,i.treeForkCount=u)}function dm(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=ce.current,s=(i&2)!==0;if(s?(i=i&1|2,t.flags|=128):i&=1,F(ce,i),be(e,t,a,l),a=G?nn:0,!s&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xo(e,l,t);else if(e.tag===19)xo(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Mu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Yi(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Mu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Yi(t,!0,l,null,u,a);break;case"together":Yi(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Dt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),sl|=t.lanes,!(l&t.childLanes))if(e!==null){if(va(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,l=Tt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Tt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ks(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Eu(e)))}function Vy(e,t,l){switch(t.tag){case 3:vu(t,t.stateNode.containerInfo),kt(t,de,e.memoizedState.cache),jl();break;case 27:case 5:fc(t);break;case 4:vu(t,t.stateNode.containerInfo);break;case 10:kt(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,wc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Gt(t),t.flags|=128,null):l&t.child.childLanes?fm(e,t,l):(Gt(t),e=Dt(e,t,l),e!==null?e.sibling:null);Gt(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(va(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return dm(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),F(ce,ce.current),a)break;return null;case 22:return t.lanes=0,om(e,t,l,t.pendingProps);case 24:kt(t,de,e.memoizedState.cache)}return Dt(e,t,l)}function mm(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)me=!0;else{if(!Ks(e,l)&&!(t.flags&128))return me=!1,Vy(e,t,l);me=!!(e.flags&131072)}else me=!1,G&&t.flags&1048576&&gd(t,nn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=gl(t.elementType),t.type=e,typeof e=="function")As(e)?(a=Ml(e,a),t.tag=1,t=vo(null,t,e,a,l)):(t.tag=0,t=Hc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===fs){t.tag=11,t=fo(null,t,e,a,l);break e}else if(n===ds){t.tag=14,t=mo(null,t,e,a,l);break e}}throw t=rc(e)||e,Error(N(306,t,""))}}return t;case 0:return Hc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Ml(a,t.pendingProps),vo(e,t,a,n,l);case 3:e:{if(vu(t,t.stateNode.containerInfo),e===null)throw Error(N(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Mc(e,t),Za(t,a,null,l);var i=t.memoizedState;if(a=i.cache,kt(t,de,a),a!==u.cache&&Ac(t,[de],l,!0),Va(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=po(e,t,a,l);break e}else if(a!==n){n=Fe(Error(N(424)),t),un(n),t=po(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(P=et(e.firstChild),Ne=t,G=!0,Ft=null,Ie=!0,l=Nd(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(jl(),a===n){t=Dt(e,t,l);break e}be(e,t,a,l)}t=t.child}return t;case 26:return cu(e,t),e===null?(l=qo(t.type,null,t.pendingProps,null))?t.memoizedState=l:G||(l=t.type,e=t.pendingProps,a=qu(Wt.current).createElement(l),a[Se]=t,a[_e]=e,Ee(a,l,e),pe(a),t.stateNode=a):t.memoizedState=qo(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fc(t),e===null&&G&&(a=t.stateNode=ah(t.type,t.pendingProps,Wt.current),Ne=t,Ie=!0,n=P,ol(t.type)?(Fc=n,P=et(a.firstChild)):P=n),be(e,t,t.pendingProps.children,l),cu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&G&&((n=a=P)&&(a=S1(a,t.type,t.pendingProps,Ie),a!==null?(t.stateNode=a,Ne=t,P=et(a.firstChild),Ie=!1,n=!0):n=!1),n||il(t)),fc(t),n=t.type,u=t.pendingProps,i=e!==null?e.memoizedProps:null,a=u.children,Kc(n,u)?a=null:i!==null&&Kc(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=_s(e,t,Hy,null,null,l),dn._currentValue=n),cu(e,t),be(e,t,a,l),t.child;case 6:return e===null&&G&&((e=l=P)&&(l=N1(l,t.pendingProps,Ie),l!==null?(t.stateNode=l,Ne=t,P=null,e=!0):e=!1),e||il(t)),null;case 13:return fm(e,t,l);case 4:return vu(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Al(t,null,a,l):be(e,t,a,l),t.child;case 11:return fo(e,t,t.type,t.pendingProps,l);case 7:return be(e,t,t.pendingProps,l),t.child;case 8:return be(e,t,t.pendingProps.children,l),t.child;case 12:return be(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,kt(t,t.type,a.value),be(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,El(t),n=je(n),a=a(n),t.flags|=1,be(e,t,a,l),t.child;case 14:return mo(e,t,t.type,t.pendingProps,l);case 15:return rm(e,t,t.type,t.pendingProps,l);case 19:return dm(e,t,l);case 31:return Qy(e,t,l);case 22:return om(e,t,l,t.pendingProps);case 24:return El(t),a=je(de),e===null?(n=zs(),n===null&&(n=W,u=Cs(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},Os(t),kt(t,de,n)):(e.lanes&l&&(Mc(e,t),Za(t,null,null,l),Va()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),kt(t,de,a)):(a=u.cache,kt(t,de,a),a!==n.cache&&Ac(t,[de],l,!0))),be(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(N(156,t.tag))}function vt(e){e.flags|=4}function ki(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Bm())e.flags|=8192;else throw Sl=Au,ws}else e.flags&=-16777217}function bo(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!ih(t))if(Bm())e.flags|=8192;else throw Sl=Au,ws}function Vn(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Lf():536870912,e.lanes|=t,ra|=t)}function Ca(e,t){if(!G)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function I(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Zy(e,t,l){var a=t.pendingProps;switch(Ms(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return I(t),null;case 1:return I(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Mt(de),aa(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Rl(t)?vt(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Di())),I(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(vt(t),u!==null?(I(t),bo(t,u)):(I(t),ki(t,n,null,a,l))):u?u!==e.memoizedState?(vt(t),I(t),bo(t,u)):(I(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&vt(t),I(t),ki(t,n,e,a,l)),null;case 27:if(pu(t),l=Wt.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&vt(t);else{if(!a){if(t.stateNode===null)throw Error(N(166));return I(t),null}e=ot.current,Rl(t)?Jr(t):(e=ah(n,a,l),t.stateNode=e,vt(t))}return I(t),null;case 5:if(pu(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&vt(t);else{if(!a){if(t.stateNode===null)throw Error(N(166));return I(t),null}if(u=ot.current,Rl(t))Jr(t);else{var i=qu(Wt.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[Se]=t,u[_e]=a;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=u;e:switch(Ee(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&vt(t)}}return I(t),ki(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&vt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(N(166));if(e=Wt.current,Rl(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Ne,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Se]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Pm(e.nodeValue,l)),e||il(t,!0)}else e=qu(e).createTextNode(a),e[Se]=t,t.stateNode=e}return I(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Rl(t),l!==null){if(e===null){if(!a)throw Error(N(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(557));e[Se]=t}else jl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;I(t),e=!1}else l=Di(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Be(t),t):(Be(t),null);if(t.flags&128)throw Error(N(558))}return I(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Rl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(N(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(N(317));n[Se]=t}else jl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;I(t),n=!1}else n=Di(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Be(t),t):(Be(t),null)}return Be(t),t.flags&128?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Vn(t,t.updateQueue),I(t),null);case 4:return aa(),e===null&&er(t.stateNode.containerInfo),I(t),null;case 10:return Mt(t.type),I(t),null;case 19:if(xe(ce),a=t.memoizedState,a===null)return I(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)Ca(a,!1);else{if(ue!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(u=Mu(e),u!==null){for(t.flags|=128,Ca(a,!1),e=u.updateQueue,t.updateQueue=e,Vn(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)hd(l,e),l=l.sibling;return F(ce,ce.current&1|2),G&&St(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Ye()>Ru&&(t.flags|=128,n=!0,Ca(a,!1),t.lanes=4194304)}else{if(!n)if(e=Mu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Vn(t,e),Ca(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!G)return I(t),null}else 2*Ye()-a.renderingStartTime>Ru&&l!==536870912&&(t.flags|=128,n=!0,Ca(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Ye(),e.sibling=null,l=ce.current,F(ce,n?l&1|2:l&1),G&&St(t,a.treeForkCount),e):(I(t),null);case 22:case 23:return Be(t),Ds(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?l&536870912&&!(t.flags&128)&&(I(t),t.subtreeFlags&6&&(t.flags|=8192)):I(t),l=t.updateQueue,l!==null&&Vn(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&xe(bl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Mt(de),I(t),null;case 25:return null;case 30:return null}throw Error(N(156,t.tag))}function Ky(e,t){switch(Ms(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mt(de),aa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pu(t),null;case 31:if(t.memoizedState!==null){if(Be(t),t.alternate===null)throw Error(N(340));jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Be(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xe(ce),null;case 4:return aa(),null;case 10:return Mt(t.type),null;case 22:case 23:return Be(t),Ds(),e!==null&&xe(bl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Mt(de),null;case 25:return null;default:return null}}function hm(e,t){switch(Ms(t),t.tag){case 3:Mt(de),aa();break;case 26:case 27:case 5:pu(t);break;case 4:aa();break;case 31:t.memoizedState!==null&&Be(t);break;case 13:Be(t);break;case 19:xe(ce);break;case 10:Mt(t.type);break;case 22:case 23:Be(t),Ds(),e!==null&&xe(bl);break;case 24:Mt(de)}}function En(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,i=l.inst;a=u(),i.destroy=a}l=l.next}while(l!==n)}}catch(s){K(t,t.return,s)}}function cl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var i=a.inst,s=i.destroy;if(s!==void 0){i.destroy=void 0,n=t;var r=l,f=s;try{f()}catch(h){K(n,r,h)}}}a=a.next}while(a!==u)}}catch(h){K(t,t.return,h)}}function ym(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ed(t,l)}catch(a){K(e,e.return,a)}}}function gm(e,t,l){l.props=Ml(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){K(e,t,a)}}function Ja(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){K(e,t,n)}}function rt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){K(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){K(e,t,n)}else l.current=null}function vm(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){K(e,e.return,n)}}function Gi(e,t,l){try{var a=e.stateNode;y1(a,e.type,l,t),a[_e]=t}catch(n){K(e,e.return,n)}}function pm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ol(e.type)||e.tag===4}function Xi(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pm(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&&ol(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 Lc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Et));else if(a!==4&&(a===27&&ol(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Lc(e,t,l),e=e.sibling;e!==null;)Lc(e,t,l),e=e.sibling}function Du(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&ol(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Du(e,t,l),e=e.sibling;e!==null;)Du(e,t,l),e=e.sibling}function xm(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ee(t,a,l),t[Se]=e,t[_e]=l}catch(u){K(e,e.return,u)}}var Nt=!1,fe=!1,Qi=!1,So=typeof WeakSet=="function"?WeakSet:Set,ve=null;function Jy(e,t){if(e=e.containerInfo,Vc=Xu,e=id(e),Ns(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var i=0,s=-1,r=-1,f=0,h=0,m=e,d=null;t:for(;;){for(var g;m!==l||n!==0&&m.nodeType!==3||(s=i+n),m!==u||a!==0&&m.nodeType!==3||(r=i+a),m.nodeType===3&&(i+=m.nodeValue.length),(g=m.firstChild)!==null;)d=m,m=g;for(;;){if(m===e)break t;if(d===l&&++f===n&&(s=i),d===u&&++h===a&&(r=i),(g=m.nextSibling)!==null)break;m=d,d=m.parentNode}m=g}l=s===-1||r===-1?null:{start:s,end:r}}else l=null}l=l||{start:0,end:0}}else l=null;for(Zc={focusedElem:e,selectionRange:l},Xu=!1,ve=t;ve!==null;)if(t=ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ve=e;else for(;ve!==null;){switch(t=ve,u=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var x=Ml(l.type,n);e=a.getSnapshotBeforeUpdate(x,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(S){K(l,l.return,S)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Jc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Jc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(N(163))}if(e=t.sibling,e!==null){e.return=t.return,ve=e;break}ve=t.return}}function bm(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:xt(e,l),a&4&&En(5,l);break;case 1:if(xt(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(i){K(l,l.return,i)}else{var n=Ml(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){K(l,l.return,i)}}a&64&&ym(l),a&512&&Ja(l,l.return);break;case 3:if(xt(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Ed(e,t)}catch(i){K(l,l.return,i)}}break;case 27:t===null&&a&4&&xm(l);case 26:case 5:xt(e,l),t===null&&a&4&&vm(l),a&512&&Ja(l,l.return);break;case 12:xt(e,l);break;case 31:xt(e,l),a&4&&jm(e,l);break;case 13:xt(e,l),a&4&&Em(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=a1.bind(null,l),j1(e,l))));break;case 22:if(a=l.memoizedState!==null||Nt,!a){t=t!==null&&t.memoizedState!==null||fe,n=Nt;var u=fe;Nt=a,(fe=t)&&!u?bt(e,l,(l.subtreeFlags&8772)!==0):xt(e,l),Nt=n,fe=u}break;case 30:break;default:xt(e,l)}}function Sm(e){var t=e.alternate;t!==null&&(e.alternate=null,Sm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&gs(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 le=null,Oe=!1;function pt(e,t,l){for(l=l.child;l!==null;)Nm(e,t,l),l=l.sibling}function Nm(e,t,l){if(ke&&typeof ke.onCommitFiberUnmount=="function")try{ke.onCommitFiberUnmount(vn,l)}catch{}switch(l.tag){case 26:fe||rt(l,t),pt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:fe||rt(l,t);var a=le,n=Oe;ol(l.type)&&(le=l.stateNode,Oe=!1),pt(e,t,l),Ia(l.stateNode),le=a,Oe=n;break;case 5:fe||rt(l,t);case 6:if(a=le,n=Oe,le=null,pt(e,t,l),le=a,Oe=n,le!==null)if(Oe)try{(le.nodeType===9?le.body:le.nodeName==="HTML"?le.ownerDocument.body:le).removeChild(l.stateNode)}catch(u){K(l,t,u)}else try{le.removeChild(l.stateNode)}catch(u){K(l,t,u)}break;case 18:le!==null&&(Oe?(e=le,_o(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ma(e)):_o(le,l.stateNode));break;case 4:a=le,n=Oe,le=l.stateNode.containerInfo,Oe=!0,pt(e,t,l),le=a,Oe=n;break;case 0:case 11:case 14:case 15:cl(2,l,t),fe||cl(4,l,t),pt(e,t,l);break;case 1:fe||(rt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&gm(l,t,a)),pt(e,t,l);break;case 21:pt(e,t,l);break;case 22:fe=(a=fe)||l.memoizedState!==null,pt(e,t,l),fe=a;break;default:pt(e,t,l)}}function jm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ma(e)}catch(l){K(t,t.return,l)}}}function Em(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ma(e)}catch(l){K(t,t.return,l)}}function $y(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new So),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new So),t;default:throw Error(N(435,e.tag))}}function Zn(e,t){var l=$y(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=n1.bind(null,e,a);a.then(n,n)}})}function ze(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 27:if(ol(s.type)){le=s.stateNode,Oe=!1;break e}break;case 5:le=s.stateNode,Oe=!1;break e;case 3:case 4:le=s.stateNode.containerInfo,Oe=!0;break e}s=s.return}if(le===null)throw Error(N(160));Nm(u,i,n),le=null,Oe=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Am(t,e),t=t.sibling}var ut=null;function Am(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ze(t,e),we(e),a&4&&(cl(3,e,e.return),En(3,e),cl(5,e,e.return));break;case 1:ze(t,e),we(e),a&512&&(fe||l===null||rt(l,l.return)),a&64&&Nt&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=ut;if(ze(t,e),we(e),a&512&&(fe||l===null||rt(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[bn]||u[Se]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ee(u,a,l),u[Se]=e,pe(u),a=u;break e;case"link":var i=ko("link","href",n).get(a+(l.href||""));if(i){for(var s=0;s<i.length;s++)if(u=i[s],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){i.splice(s,1);break t}}u=n.createElement(a),Ee(u,a,l),n.head.appendChild(u);break;case"meta":if(i=ko("meta","content",n).get(a+(l.content||""))){for(s=0;s<i.length;s++)if(u=i[s],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){i.splice(s,1);break t}}u=n.createElement(a),Ee(u,a,l),n.head.appendChild(u);break;default:throw Error(N(468,a))}u[Se]=e,pe(u),a=u}e.stateNode=a}else Go(n,e.type,e.stateNode);else e.stateNode=Yo(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Go(n,e.type,e.stateNode):Yo(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Gi(e,e.memoizedProps,l.memoizedProps)}break;case 27:ze(t,e),we(e),a&512&&(fe||l===null||rt(l,l.return)),l!==null&&a&4&&Gi(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ze(t,e),we(e),a&512&&(fe||l===null||rt(l,l.return)),e.flags&32){n=e.stateNode;try{ua(n,"")}catch(x){K(e,e.return,x)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Gi(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Qi=!0);break;case 6:if(ze(t,e),we(e),a&4){if(e.stateNode===null)throw Error(N(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(x){K(e,e.return,x)}}break;case 3:if(ou=null,n=ut,ut=Yu(t.containerInfo),ze(t,e),ut=n,we(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{ma(t.containerInfo)}catch(x){K(e,e.return,x)}Qi&&(Qi=!1,Tm(e));break;case 4:a=ut,ut=Yu(e.stateNode.containerInfo),ze(t,e),we(e),ut=a;break;case 12:ze(t,e),we(e);break;case 31:ze(t,e),we(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Zn(e,a)));break;case 13:ze(t,e),we(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ci=Ye()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Zn(e,a)));break;case 22:n=e.memoizedState!==null;var r=l!==null&&l.memoizedState!==null,f=Nt,h=fe;if(Nt=f||n,fe=h||r,ze(t,e),fe=h,Nt=f,we(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||r||Nt||fe||vl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){r=l=t;try{if(u=r.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{s=r.stateNode;var m=r.memoizedProps.style,d=m!=null&&m.hasOwnProperty("display")?m.display:null;s.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(x){K(r,r.return,x)}}}else if(t.tag===6){if(l===null){r=t;try{r.stateNode.nodeValue=n?"":r.memoizedProps}catch(x){K(r,r.return,x)}}}else if(t.tag===18){if(l===null){r=t;try{var g=r.stateNode;n?Uo(g,!0):Uo(r.stateNode,!1)}catch(x){K(r,r.return,x)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Zn(e,l))));break;case 19:ze(t,e),we(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Zn(e,a)));break;case 30:break;case 21:break;default:ze(t,e),we(e)}}function we(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(pm(a)){l=a;break}a=a.return}if(l==null)throw Error(N(160));switch(l.tag){case 27:var n=l.stateNode,u=Xi(e);Du(e,u,n);break;case 5:var i=l.stateNode;l.flags&32&&(ua(i,""),l.flags&=-33);var s=Xi(e);Du(e,s,i);break;case 3:case 4:var r=l.stateNode.containerInfo,f=Xi(e);Lc(e,f,r);break;default:throw Error(N(161))}}catch(h){K(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Tm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Tm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xt(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bm(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:cl(4,t,t.return),vl(t);break;case 1:rt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&gm(t,t.return,l),vl(t);break;case 27:Ia(t.stateNode);case 26:case 5:rt(t,t.return),vl(t);break;case 22:t.memoizedState===null&&vl(t);break;case 30:vl(t);break;default:vl(t)}e=e.sibling}}function bt(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,i=u.flags;switch(u.tag){case 0:case 11:case 15:bt(n,u,l),En(4,u);break;case 1:if(bt(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(f){K(a,a.return,f)}if(a=u,n=a.updateQueue,n!==null){var s=a.stateNode;try{var r=n.shared.hiddenCallbacks;if(r!==null)for(n.shared.hiddenCallbacks=null,n=0;n<r.length;n++)jd(r[n],s)}catch(f){K(a,a.return,f)}}l&&i&64&&ym(u),Ja(u,u.return);break;case 27:xm(u);case 26:case 5:bt(n,u,l),l&&a===null&&i&4&&vm(u),Ja(u,u.return);break;case 12:bt(n,u,l);break;case 31:bt(n,u,l),l&&i&4&&jm(n,u);break;case 13:bt(n,u,l),l&&i&4&&Em(n,u);break;case 22:u.memoizedState===null&&bt(n,u,l),Ja(u,u.return);break;case 30:break;default:bt(n,u,l)}t=t.sibling}}function Js(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Nn(l))}function $s(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Nn(e))}function at(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Mm(e,t,l,a),t=t.sibling}function Mm(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:at(e,t,l,a),n&2048&&En(9,t);break;case 1:at(e,t,l,a);break;case 3:at(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Nn(e)));break;case 12:if(n&2048){at(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,i=u.id,s=u.onPostCommit;typeof s=="function"&&s(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(r){K(t,t.return,r)}}else at(e,t,l,a);break;case 31:at(e,t,l,a);break;case 13:at(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,i=t.alternate,t.memoizedState!==null?u._visibility&2?at(e,t,l,a):$a(e,t):u._visibility&2?at(e,t,l,a):(u._visibility|=2,Hl(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Js(i,t);break;case 24:at(e,t,l,a),n&2048&&$s(t.alternate,t);break;default:at(e,t,l,a)}}function Hl(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,i=t,s=l,r=a,f=i.flags;switch(i.tag){case 0:case 11:case 15:Hl(u,i,s,r,n),En(8,i);break;case 23:break;case 22:var h=i.stateNode;i.memoizedState!==null?h._visibility&2?Hl(u,i,s,r,n):$a(u,i):(h._visibility|=2,Hl(u,i,s,r,n)),n&&f&2048&&Js(i.alternate,i);break;case 24:Hl(u,i,s,r,n),n&&f&2048&&$s(i.alternate,i);break;default:Hl(u,i,s,r,n)}t=t.sibling}}function $a(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:$a(l,a),n&2048&&Js(a.alternate,a);break;case 24:$a(l,a),n&2048&&$s(a.alternate,a);break;default:$a(l,a)}t=t.sibling}}var Ba=8192;function _l(e,t,l){if(e.subtreeFlags&Ba)for(e=e.child;e!==null;)Cm(e,t,l),e=e.sibling}function Cm(e,t,l){switch(e.tag){case 26:_l(e,t,l),e.flags&Ba&&e.memoizedState!==null&&U1(l,ut,e.memoizedState,e.memoizedProps);break;case 5:_l(e,t,l);break;case 3:case 4:var a=ut;ut=Yu(e.stateNode.containerInfo),_l(e,t,l),ut=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Ba,Ba=16777216,_l(e,t,l),Ba=a):_l(e,t,l));break;default:_l(e,t,l)}}function zm(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 za(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ve=a,Om(a,e)}zm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wm(e),e=e.sibling}function wm(e){switch(e.tag){case 0:case 11:case 15:za(e),e.flags&2048&&cl(9,e,e.return);break;case 3:za(e);break;case 12:za(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,su(e)):za(e);break;default:za(e)}}function su(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ve=a,Om(a,e)}zm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:cl(8,t,t.return),su(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,su(t));break;default:su(t)}e=e.sibling}}function Om(e,t){for(;ve!==null;){var l=ve;switch(l.tag){case 0:case 11:case 15:cl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Nn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,ve=a;else e:for(l=e;ve!==null;){a=ve;var n=a.sibling,u=a.return;if(Sm(a),a===l){ve=null;break e}if(n!==null){n.return=u,ve=n;break e}ve=u}}}var Wy={getCacheForType:function(e){var t=je(de),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return je(de).controller.signal}},Fy=typeof WeakMap=="function"?WeakMap:Map,Q=0,W=null,q=null,k=0,Z=0,He=null,Kt=!1,xa=!1,Ws=!1,Rt=0,ue=0,sl=0,Nl=0,Fs=0,qe=0,ra=0,Wa=null,De=null,qc=!1,ci=0,Dm=0,Ru=1/0,_u=null,el=null,he=0,tl=null,oa=null,Ct=0,Yc=0,kc=null,Rm=null,Fa=0,Gc=null;function Xe(){return Q&2&&k!==0?k&-k:D.T!==null?Ps():Gf()}function _m(){if(qe===0)if(!(k&536870912)||G){var e=Ln;Ln<<=1,!(Ln&3932160)&&(Ln=262144),qe=e}else qe=536870912;return e=Ve.current,e!==null&&(e.flags|=32),qe}function Re(e,t,l){(e===W&&(Z===2||Z===9)||e.cancelPendingCommit!==null)&&(fa(e,0),Jt(e,k,qe,!1)),xn(e,l),(!(Q&2)||e!==W)&&(e===W&&(!(Q&2)&&(Nl|=l),ue===4&&Jt(e,k,qe,!1)),ht(e))}function Um(e,t,l){if(Q&6)throw Error(N(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||pn(e,t),n=a?e1(e,t):Vi(e,t,!0),u=a;do{if(n===0){xa&&!a&&Jt(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Iy(l)){n=Vi(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var s=e;n=Wa;var r=s.current.memoizedState.isDehydrated;if(r&&(fa(s,i).flags|=256),i=Vi(s,i,!1),i!==2){if(Ws&&!r){s.errorRecoveryDisabledLanes|=u,Nl|=u,n=4;break e}u=De,De=n,u!==null&&(De===null?De=u:De.push.apply(De,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){fa(e,0),Jt(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(N(345));case 4:if((t&4194048)!==t)break;case 6:Jt(a,t,qe,!Kt);break e;case 2:De=null;break;case 3:case 5:break;default:throw Error(N(329))}if((t&62914560)===t&&(n=ci+300-Ye(),10<n)){if(Jt(a,t,qe,!Kt),Wu(a,0,!0)!==0)break e;Ct=t,a.timeoutHandle=th(No.bind(null,a,l,De,_u,qc,t,qe,Nl,ra,Kt,u,"Throttled",-0,0),n);break e}No(a,l,De,_u,qc,t,qe,Nl,ra,Kt,u,null,-0,0)}}break}while(!0);ht(e)}function No(e,t,l,a,n,u,i,s,r,f,h,m,d,g){if(e.timeoutHandle=-1,m=t.subtreeFlags,m&8192||(m&16785408)===16785408){m={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Et},Cm(t,u,m);var x=(u&62914560)===u?ci-Ye():(u&4194048)===u?Dm-Ye():0;if(x=H1(m,x),x!==null){Ct=u,e.cancelPendingCommit=x(Eo.bind(null,e,t,u,l,a,n,i,s,r,h,m,null,d,g)),Jt(e,u,i,!f);return}}Eo(e,t,u,l,a,n,i,s,r)}function Iy(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!Qe(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Jt(e,t,l,a){t&=~Fs,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-Ge(n),i=1<<u;a[u]=-1,n&=~i}l!==0&&qf(e,l,t)}function si(){return Q&6?!0:(An(0),!1)}function Is(){if(q!==null){if(Z===0)var e=q.return;else e=q,At=Dl=null,Bs(e),ea=null,cn=0,e=q;for(;e!==null;)hm(e.alternate,e),e=e.return;q=null}}function fa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,p1(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ct=0,Is(),W=e,q=l=Tt(e.current,null),k=t,Z=0,He=null,Kt=!1,xa=pn(e,t),Ws=!1,ra=qe=Fs=Nl=sl=ue=0,De=Wa=null,qc=!1,t&8&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-Ge(a),u=1<<n;t|=e[n],a&=~u}return Rt=t,ei(),l}function Hm(e,t){_=null,D.H=rn,t===pa||t===li?(t=Pr(),Z=3):t===ws?(t=Pr(),Z=4):Z=t===Zs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,He=t,q===null&&(ue=1,wu(e,Fe(t,e.current)))}function Bm(){var e=Ve.current;return e===null?!0:(k&4194048)===k?Pe===null:(k&62914560)===k||k&536870912?e===Pe:!1}function Lm(){var e=D.H;return D.H=rn,e===null?rn:e}function qm(){var e=D.A;return D.A=Wy,e}function Uu(){ue=4,Kt||(k&4194048)!==k&&Ve.current!==null||(xa=!0),!(sl&134217727)&&!(Nl&134217727)||W===null||Jt(W,k,qe,!1)}function Vi(e,t,l){var a=Q;Q|=2;var n=Lm(),u=qm();(W!==e||k!==t)&&(_u=null,fa(e,t)),t=!1;var i=ue;e:do try{if(Z!==0&&q!==null){var s=q,r=He;switch(Z){case 8:Is(),i=6;break e;case 3:case 2:case 9:case 6:Ve.current===null&&(t=!0);var f=Z;if(Z=0,He=null,$l(e,s,r,f),l&&xa){i=0;break e}break;default:f=Z,Z=0,He=null,$l(e,s,r,f)}}Py(),i=ue;break}catch(h){Hm(e,h)}while(!0);return t&&e.shellSuspendCounter++,At=Dl=null,Q=a,D.H=n,D.A=u,q===null&&(W=null,k=0,ei()),i}function Py(){for(;q!==null;)Ym(q)}function e1(e,t){var l=Q;Q|=2;var a=Lm(),n=qm();W!==e||k!==t?(_u=null,Ru=Ye()+500,fa(e,t)):xa=pn(e,t);e:do try{if(Z!==0&&q!==null){t=q;var u=He;t:switch(Z){case 1:Z=0,He=null,$l(e,t,u,1);break;case 2:case 9:if(Ir(u)){Z=0,He=null,jo(t);break}t=function(){Z!==2&&Z!==9||W!==e||(Z=7),ht(e)},u.then(t,t);break e;case 3:Z=7;break e;case 4:Z=5;break e;case 7:Ir(u)?(Z=0,He=null,jo(t)):(Z=0,He=null,$l(e,t,u,7));break;case 5:var i=null;switch(q.tag){case 26:i=q.memoizedState;case 5:case 27:var s=q;if(i?ih(i):s.stateNode.complete){Z=0,He=null;var r=s.sibling;if(r!==null)q=r;else{var f=s.return;f!==null?(q=f,ri(f)):q=null}break t}}Z=0,He=null,$l(e,t,u,5);break;case 6:Z=0,He=null,$l(e,t,u,6);break;case 8:Is(),ue=6;break e;default:throw Error(N(462))}}t1();break}catch(h){Hm(e,h)}while(!0);return At=Dl=null,D.H=a,D.A=n,Q=l,q!==null?0:(W=null,k=0,ei(),ue)}function t1(){for(;q!==null&&!E0();)Ym(q)}function Ym(e){var t=mm(e.alternate,e,Rt);e.memoizedProps=e.pendingProps,t===null?ri(e):q=t}function jo(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=go(l,t,t.pendingProps,t.type,void 0,k);break;case 11:t=go(l,t,t.pendingProps,t.type.render,t.ref,k);break;case 5:Bs(t);default:hm(l,t),t=q=hd(t,Rt),t=mm(l,t,Rt)}e.memoizedProps=e.pendingProps,t===null?ri(e):q=t}function $l(e,t,l,a){At=Dl=null,Bs(t),ea=null,cn=0;var n=t.return;try{if(Xy(e,n,t,l,k)){ue=1,wu(e,Fe(l,e.current)),q=null;return}}catch(u){if(n!==null)throw q=n,u;ue=1,wu(e,Fe(l,e.current)),q=null;return}t.flags&32768?(G||a===1?e=!0:xa||k&536870912?e=!1:(Kt=e=!0,(a===2||a===9||a===3||a===6)&&(a=Ve.current,a!==null&&a.tag===13&&(a.flags|=16384))),km(t,e)):ri(t)}function ri(e){var t=e;do{if(t.flags&32768){km(t,Kt);return}e=t.return;var l=Zy(t.alternate,t,Rt);if(l!==null){q=l;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);ue===0&&(ue=5)}function km(e,t){do{var l=Ky(e.alternate,e);if(l!==null){l.flags&=32767,q=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){q=e;return}q=e=l}while(e!==null);ue=6,q=null}function Eo(e,t,l,a,n,u,i,s,r){e.cancelPendingCommit=null;do oi();while(he!==0);if(Q&6)throw Error(N(327));if(t!==null){if(t===e.current)throw Error(N(177));if(u=t.lanes|t.childLanes,u|=js,_0(e,l,u,i,s,r),e===W&&(q=W=null,k=0),oa=t,tl=e,Ct=l,Yc=u,kc=n,Rm=a,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,u1(xu,function(){return Zm(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,t.subtreeFlags&13878||a){a=D.T,D.T=null,n=V.p,V.p=2,i=Q,Q|=4;try{Jy(e,t,l)}finally{Q=i,V.p=n,D.T=a}}he=1,Gm(),Xm(),Qm()}}function Gm(){if(he===1){he=0;var e=tl,t=oa,l=(t.flags&13878)!==0;if(t.subtreeFlags&13878||l){l=D.T,D.T=null;var a=V.p;V.p=2;var n=Q;Q|=4;try{Am(t,e);var u=Zc,i=id(e.containerInfo),s=u.focusedElem,r=u.selectionRange;if(i!==s&&s&&s.ownerDocument&&ud(s.ownerDocument.documentElement,s)){if(r!==null&&Ns(s)){var f=r.start,h=r.end;if(h===void 0&&(h=f),"selectionStart"in s)s.selectionStart=f,s.selectionEnd=Math.min(h,s.value.length);else{var m=s.ownerDocument||document,d=m&&m.defaultView||window;if(d.getSelection){var g=d.getSelection(),x=s.textContent.length,S=Math.min(r.start,x),j=r.end===void 0?S:Math.min(r.end,x);!g.extend&&S>j&&(i=j,j=S,S=i);var y=Vr(s,S),o=Vr(s,j);if(y&&o&&(g.rangeCount!==1||g.anchorNode!==y.node||g.anchorOffset!==y.offset||g.focusNode!==o.node||g.focusOffset!==o.offset)){var v=m.createRange();v.setStart(y.node,y.offset),g.removeAllRanges(),S>j?(g.addRange(v),g.extend(o.node,o.offset)):(v.setEnd(o.node,o.offset),g.addRange(v))}}}}for(m=[],g=s;g=g.parentNode;)g.nodeType===1&&m.push({element:g,left:g.scrollLeft,top:g.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<m.length;s++){var b=m[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}Xu=!!Vc,Zc=Vc=null}finally{Q=n,V.p=a,D.T=l}}e.current=t,he=2}}function Xm(){if(he===2){he=0;var e=tl,t=oa,l=(t.flags&8772)!==0;if(t.subtreeFlags&8772||l){l=D.T,D.T=null;var a=V.p;V.p=2;var n=Q;Q|=4;try{bm(e,t.alternate,t)}finally{Q=n,V.p=a,D.T=l}}he=3}}function Qm(){if(he===4||he===3){he=0,A0();var e=tl,t=oa,l=Ct,a=Rm;t.subtreeFlags&10256||t.flags&10256?he=5:(he=0,oa=tl=null,Vm(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(el=null),ys(l),t=t.stateNode,ke&&typeof ke.onCommitFiberRoot=="function")try{ke.onCommitFiberRoot(vn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,n=V.p,V.p=2,D.T=null;try{for(var u=e.onRecoverableError,i=0;i<a.length;i++){var s=a[i];u(s.value,{componentStack:s.stack})}}finally{D.T=t,V.p=n}}Ct&3&&oi(),ht(e),n=e.pendingLanes,l&261930&&n&42?e===Gc?Fa++:(Fa=0,Gc=e):Fa=0,An(0)}}function Vm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Nn(t)))}function oi(){return Gm(),Xm(),Qm(),Zm()}function Zm(){if(he!==5)return!1;var e=tl,t=Yc;Yc=0;var l=ys(Ct),a=D.T,n=V.p;try{V.p=32>l?32:l,D.T=null,l=kc,kc=null;var u=tl,i=Ct;if(he=0,oa=tl=null,Ct=0,Q&6)throw Error(N(331));var s=Q;if(Q|=4,wm(u.current),Mm(u,u.current,i,l),Q=s,An(0,!1),ke&&typeof ke.onPostCommitFiberRoot=="function")try{ke.onPostCommitFiberRoot(vn,u)}catch{}return!0}finally{V.p=n,D.T=a,Vm(e,t)}}function Ao(e,t,l){t=Fe(l,t),t=Uc(e.stateNode,t,2),e=Pt(e,t,2),e!==null&&(xn(e,2),ht(e))}function K(e,t,l){if(e.tag===3)Ao(e,e,l);else for(;t!==null;){if(t.tag===3){Ao(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(el===null||!el.has(a))){e=Fe(l,e),l=cm(2),a=Pt(t,l,2),a!==null&&(sm(l,a,t,e),xn(a,2),ht(a));break}}t=t.return}}function Zi(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Fy;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Ws=!0,n.add(l),e=l1.bind(null,e,t,l),t.then(e,e))}function l1(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,W===e&&(k&l)===l&&(ue===4||ue===3&&(k&62914560)===k&&300>Ye()-ci?!(Q&2)&&fa(e,0):Fs|=l,ra===k&&(ra=0)),ht(e)}function Km(e,t){t===0&&(t=Lf()),e=Ol(e,t),e!==null&&(xn(e,t),ht(e))}function a1(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Km(e,l)}function n1(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(N(314))}a!==null&&a.delete(t),Km(e,l)}function u1(e,t){return ms(e,t)}var Hu=null,Bl=null,Xc=!1,Bu=!1,Ki=!1,$t=0;function ht(e){e!==Bl&&e.next===null&&(Bl===null?Hu=Bl=e:Bl=Bl.next=e),Bu=!0,Xc||(Xc=!0,c1())}function An(e,t){if(!Ki&&Bu){Ki=!0;do for(var l=!1,a=Hu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,s=a.pingedLanes;u=(1<<31-Ge(42|e)+1)-1,u&=n&~(i&~s),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,To(a,u))}else u=k,u=Wu(a,a===W?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(u&3)||pn(a,u)||(l=!0,To(a,u));a=a.next}while(l);Ki=!1}}function i1(){Jm()}function Jm(){Bu=Xc=!1;var e=0;$t!==0&&v1()&&(e=$t);for(var t=Ye(),l=null,a=Hu;a!==null;){var n=a.next,u=$m(a,t);u===0?(a.next=null,l===null?Hu=n:l.next=n,n===null&&(Bl=l)):(l=a,(e!==0||u&3)&&(Bu=!0)),a=n}he!==0&&he!==5||An(e),$t!==0&&($t=0)}function $m(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var i=31-Ge(u),s=1<<i,r=n[i];r===-1?(!(s&l)||s&a)&&(n[i]=R0(s,t)):r<=t&&(e.expiredLanes|=s),u&=~s}if(t=W,l=k,l=Wu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Z===2||Z===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Si(a),e.callbackNode=null,e.callbackPriority=0;if(!(l&3)||pn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Si(a),ys(l)){case 2:case 8:l=Hf;break;case 32:l=xu;break;case 268435456:l=Bf;break;default:l=xu}return a=Wm.bind(null,e),l=ms(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Si(a),e.callbackPriority=2,e.callbackNode=null,2}function Wm(e,t){if(he!==0&&he!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(oi()&&e.callbackNode!==l)return null;var a=k;return a=Wu(e,e===W?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Um(e,a,t),$m(e,Ye()),e.callbackNode!=null&&e.callbackNode===l?Wm.bind(null,e):null)}function To(e,t){if(oi())return null;Um(e,t,!0)}function c1(){x1(function(){Q&6?ms(Uf,i1):Jm()})}function Ps(){if($t===0){var e=ia;e===0&&(e=Bn,Bn<<=1,!(Bn&261888)&&(Bn=256)),$t=e}return $t}function Mo(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Pn(""+e)}function Co(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function s1(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Mo((n[_e]||null).action),i=a.submitter;i&&(t=(t=i[_e]||null)?Mo(t.formAction):i.getAttribute("formAction"),t!==null&&(u=t,i=null));var s=new Fu("action","action",null,a,n);e.push({event:s,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if($t!==0){var r=i?Co(n,i):new FormData(n);Rc(l,{pending:!0,data:r,method:n.method,action:u},null,r)}}else typeof u=="function"&&(s.preventDefault(),r=i?Co(n,i):new FormData(n),Rc(l,{pending:!0,data:r,method:n.method,action:u},u,r))},currentTarget:n}]})}}for(var Ji=0;Ji<Sc.length;Ji++){var $i=Sc[Ji],r1=$i.toLowerCase(),o1=$i[0].toUpperCase()+$i.slice(1);it(r1,"on"+o1)}it(sd,"onAnimationEnd");it(rd,"onAnimationIteration");it(od,"onAnimationStart");it("dblclick","onDoubleClick");it("focusin","onFocus");it("focusout","onBlur");it(Ty,"onTransitionRun");it(My,"onTransitionStart");it(Cy,"onTransitionCancel");it(fd,"onTransitionEnd");na("onMouseEnter",["mouseout","mouseover"]);na("onMouseLeave",["mouseout","mouseover"]);na("onPointerEnter",["pointerout","pointerover"]);na("onPointerLeave",["pointerout","pointerover"]);Cl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Cl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Cl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Cl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Cl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Cl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var on="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(" "),f1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(on));function Fm(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var i=a.length-1;0<=i;i--){var s=a[i],r=s.instance,f=s.currentTarget;if(s=s.listener,r!==u&&n.isPropagationStopped())break e;u=s,n.currentTarget=f;try{u(n)}catch(h){Su(h)}n.currentTarget=null,u=r}else for(i=0;i<a.length;i++){if(s=a[i],r=s.instance,f=s.currentTarget,s=s.listener,r!==u&&n.isPropagationStopped())break e;u=s,n.currentTarget=f;try{u(n)}catch(h){Su(h)}n.currentTarget=null,u=r}}}}function L(e,t){var l=t[mc];l===void 0&&(l=t[mc]=new Set);var a=e+"__bubble";l.has(a)||(Im(t,e,2,!1),l.add(a))}function Wi(e,t,l){var a=0;t&&(a|=4),Im(l,e,a,t)}var Kn="_reactListening"+Math.random().toString(36).slice(2);function er(e){if(!e[Kn]){e[Kn]=!0,Xf.forEach(function(l){l!=="selectionchange"&&(f1.has(l)||Wi(l,!1,e),Wi(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Kn]||(t[Kn]=!0,Wi("selectionchange",!1,t))}}function Im(e,t,l,a){switch(fh(t)){case 2:var n=q1;break;case 8:n=Y1;break;default:n=nr}l=n.bind(null,t,l,e),n=void 0,!pc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Fi(e,t,l,a,n){var u=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var s=a.stateNode.containerInfo;if(s===n)break;if(i===4)for(i=a.return;i!==null;){var r=i.tag;if((r===3||r===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;s!==null;){if(i=Yl(s),i===null)return;if(r=i.tag,r===5||r===6||r===26||r===27){a=u=i;continue e}s=s.parentNode}}a=a.return}Ff(function(){var f=u,h=ps(l),m=[];e:{var d=dd.get(e);if(d!==void 0){var g=Fu,x=e;switch(e){case"keypress":if(tu(l)===0)break e;case"keydown":case"keyup":g=ny;break;case"focusin":x="focus",g=Ti;break;case"focusout":x="blur",g=Ti;break;case"beforeblur":case"afterblur":g=Ti;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Ur;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Z0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=cy;break;case sd:case rd:case od:g=$0;break;case fd:g=ry;break;case"scroll":case"scrollend":g=Q0;break;case"wheel":g=fy;break;case"copy":case"cut":case"paste":g=F0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Br;break;case"toggle":case"beforetoggle":g=my}var S=(t&4)!==0,j=!S&&(e==="scroll"||e==="scrollend"),y=S?d!==null?d+"Capture":null:d;S=[];for(var o=f,v;o!==null;){var b=o;if(v=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||v===null||y===null||(b=tn(o,y),b!=null&&S.push(fn(o,b,v))),j)break;o=o.return}0<S.length&&(d=new g(d,x,null,l,h),m.push({event:d,listeners:S}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",d&&l!==vc&&(x=l.relatedTarget||l.fromElement)&&(Yl(x)||x[ya]))break e;if((g||d)&&(d=h.window===h?h:(d=h.ownerDocument)?d.defaultView||d.parentWindow:window,g?(x=l.relatedTarget||l.toElement,g=f,x=x?Yl(x):null,x!==null&&(j=gn(x),S=x.tag,x!==j||S!==5&&S!==27&&S!==6)&&(x=null)):(g=null,x=f),g!==x)){if(S=Ur,b="onMouseLeave",y="onMouseEnter",o="mouse",(e==="pointerout"||e==="pointerover")&&(S=Br,b="onPointerLeave",y="onPointerEnter",o="pointer"),j=g==null?d:Ua(g),v=x==null?d:Ua(x),d=new S(b,o+"leave",g,l,h),d.target=j,d.relatedTarget=v,b=null,Yl(h)===f&&(S=new S(y,o+"enter",x,l,h),S.target=v,S.relatedTarget=j,b=S),j=b,g&&x)t:{for(S=d1,y=g,o=x,v=0,b=y;b;b=S(b))v++;b=0;for(var A=o;A;A=S(A))b++;for(;0<v-b;)y=S(y),v--;for(;0<b-v;)o=S(o),b--;for(;v--;){if(y===o||o!==null&&y===o.alternate){S=y;break t}y=S(y),o=S(o)}S=null}else S=null;g!==null&&zo(m,d,g,S,!1),x!==null&&j!==null&&zo(m,j,x,S,!0)}}e:{if(d=f?Ua(f):window,g=d.nodeName&&d.nodeName.toLowerCase(),g==="select"||g==="input"&&d.type==="file")var z=kr;else if(Yr(d))if(ad)z=jy;else{z=Sy;var T=by}else g=d.nodeName,!g||g.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?f&&vs(f.elementType)&&(z=kr):z=Ny;if(z&&(z=z(e,f))){ld(m,z,l,h);break e}T&&T(e,d,f),e==="focusout"&&f&&d.type==="number"&&f.memoizedProps.value!=null&&gc(d,"number",d.value)}switch(T=f?Ua(f):window,e){case"focusin":(Yr(T)||T.contentEditable==="true")&&(Xl=T,xc=f,Ga=null);break;case"focusout":Ga=xc=Xl=null;break;case"mousedown":bc=!0;break;case"contextmenu":case"mouseup":case"dragend":bc=!1,Zr(m,l,h);break;case"selectionchange":if(Ay)break;case"keydown":case"keyup":Zr(m,l,h)}var C;if(Ss)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Gl?ed(e,l)&&(O="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(O="onCompositionStart");O&&(Pf&&l.locale!=="ko"&&(Gl||O!=="onCompositionStart"?O==="onCompositionEnd"&&Gl&&(C=If()):(Zt=h,xs="value"in Zt?Zt.value:Zt.textContent,Gl=!0)),T=Lu(f,O),0<T.length&&(O=new Hr(O,e,null,l,h),m.push({event:O,listeners:T}),C?O.data=C:(C=td(l),C!==null&&(O.data=C)))),(C=yy?gy(e,l):vy(e,l))&&(O=Lu(f,"onBeforeInput"),0<O.length&&(T=new Hr("onBeforeInput","beforeinput",null,l,h),m.push({event:T,listeners:O}),T.data=C)),s1(m,e,f,l,h)}Fm(m,t)})}function fn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Lu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=tn(e,l),n!=null&&a.unshift(fn(e,n,u)),n=tn(e,t),n!=null&&a.push(fn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function d1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function zo(e,t,l,a,n){for(var u=t._reactName,i=[];l!==null&&l!==a;){var s=l,r=s.alternate,f=s.stateNode;if(s=s.tag,r!==null&&r===a)break;s!==5&&s!==26&&s!==27||f===null||(r=f,n?(f=tn(l,u),f!=null&&i.unshift(fn(l,f,r))):n||(f=tn(l,u),f!=null&&i.push(fn(l,f,r)))),l=l.return}i.length!==0&&e.push({event:t,listeners:i})}var m1=/\r\n?/g,h1=/\u0000|\uFFFD/g;function wo(e){return(typeof e=="string"?e:""+e).replace(m1,`
|
|
49
|
+
`).replace(h1,"")}function Pm(e,t){return t=wo(t),wo(e)===t}function J(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ua(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ua(e,""+a);break;case"className":Yn(e,"class",a);break;case"tabIndex":Yn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Yn(e,l,a);break;case"style":Wf(e,a,u);break;case"data":if(t!=="object"){Yn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Pn(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&J(e,t,"name",n.name,n,null),J(e,t,"formEncType",n.formEncType,n,null),J(e,t,"formMethod",n.formMethod,n,null),J(e,t,"formTarget",n.formTarget,n,null)):(J(e,t,"encType",n.encType,n,null),J(e,t,"method",n.method,n,null),J(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Pn(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Et);break;case"onScroll":a!=null&&L("scroll",e);break;case"onScrollEnd":a!=null&&L("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(N(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(N(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Pn(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":L("beforetoggle",e),L("toggle",e),In(e,"popover",a);break;case"xlinkActuate":gt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":gt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":gt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":gt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":gt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":gt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":gt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":gt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":gt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":In(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=G0.get(l)||l,In(e,l,a))}}function Qc(e,t,l,a,n,u){switch(l){case"style":Wf(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(N(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(N(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ua(e,a):(typeof a=="number"||typeof a=="bigint")&&ua(e,""+a);break;case"onScroll":a!=null&&L("scroll",e);break;case"onScrollEnd":a!=null&&L("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Et);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qf.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[_e]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):In(e,l,a)}}}function Ee(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":L("error",e),L("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(N(137,t));default:J(e,t,u,i,l,null)}}n&&J(e,t,"srcSet",l.srcSet,l,null),a&&J(e,t,"src",l.src,l,null);return;case"input":L("invalid",e);var s=u=i=n=null,r=null,f=null;for(a in l)if(l.hasOwnProperty(a)){var h=l[a];if(h!=null)switch(a){case"name":n=h;break;case"type":i=h;break;case"checked":r=h;break;case"defaultChecked":f=h;break;case"value":u=h;break;case"defaultValue":s=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(N(137,t));break;default:J(e,t,a,h,l,null)}}Kf(e,u,s,r,f,i,n,!1);return;case"select":L("invalid",e),a=i=u=null;for(n in l)if(l.hasOwnProperty(n)&&(s=l[n],s!=null))switch(n){case"value":u=s;break;case"defaultValue":i=s;break;case"multiple":a=s;default:J(e,t,n,s,l,null)}t=u,l=i,e.multiple=!!a,t!=null?Fl(e,!!a,t,!1):l!=null&&Fl(e,!!a,l,!0);return;case"textarea":L("invalid",e),u=n=a=null;for(i in l)if(l.hasOwnProperty(i)&&(s=l[i],s!=null))switch(i){case"value":a=s;break;case"defaultValue":n=s;break;case"children":u=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(N(91));break;default:J(e,t,i,s,l,null)}$f(e,a,n,u);return;case"option":for(r in l)if(l.hasOwnProperty(r)&&(a=l[r],a!=null))switch(r){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:J(e,t,r,a,l,null)}return;case"dialog":L("beforetoggle",e),L("toggle",e),L("cancel",e),L("close",e);break;case"iframe":case"object":L("load",e);break;case"video":case"audio":for(a=0;a<on.length;a++)L(on[a],e);break;case"image":L("error",e),L("load",e);break;case"details":L("toggle",e);break;case"embed":case"source":case"link":L("error",e),L("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(f in l)if(l.hasOwnProperty(f)&&(a=l[f],a!=null))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(N(137,t));default:J(e,t,f,a,l,null)}return;default:if(vs(t)){for(h in l)l.hasOwnProperty(h)&&(a=l[h],a!==void 0&&Qc(e,t,h,a,l,void 0));return}}for(s in l)l.hasOwnProperty(s)&&(a=l[s],a!=null&&J(e,t,s,a,l,null))}function y1(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,s=null,r=null,f=null,h=null;for(g in l){var m=l[g];if(l.hasOwnProperty(g)&&m!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":r=m;default:a.hasOwnProperty(g)||J(e,t,g,null,a,m)}}for(var d in a){var g=a[d];if(m=l[d],a.hasOwnProperty(d)&&(g!=null||m!=null))switch(d){case"type":u=g;break;case"name":n=g;break;case"checked":f=g;break;case"defaultChecked":h=g;break;case"value":i=g;break;case"defaultValue":s=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(N(137,t));break;default:g!==m&&J(e,t,d,g,a,m)}}yc(e,i,s,r,f,h,u,n);return;case"select":g=i=s=d=null;for(u in l)if(r=l[u],l.hasOwnProperty(u)&&r!=null)switch(u){case"value":break;case"multiple":g=r;default:a.hasOwnProperty(u)||J(e,t,u,null,a,r)}for(n in a)if(u=a[n],r=l[n],a.hasOwnProperty(n)&&(u!=null||r!=null))switch(n){case"value":d=u;break;case"defaultValue":s=u;break;case"multiple":i=u;default:u!==r&&J(e,t,n,u,a,r)}t=s,l=i,a=g,d!=null?Fl(e,!!l,d,!1):!!a!=!!l&&(t!=null?Fl(e,!!l,t,!0):Fl(e,!!l,l?[]:"",!1));return;case"textarea":g=d=null;for(s in l)if(n=l[s],l.hasOwnProperty(s)&&n!=null&&!a.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:J(e,t,s,null,a,n)}for(i in a)if(n=a[i],u=l[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":d=n;break;case"defaultValue":g=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(N(91));break;default:n!==u&&J(e,t,i,n,a,u)}Jf(e,d,g);return;case"option":for(var x in l)if(d=l[x],l.hasOwnProperty(x)&&d!=null&&!a.hasOwnProperty(x))switch(x){case"selected":e.selected=!1;break;default:J(e,t,x,null,a,d)}for(r in a)if(d=a[r],g=l[r],a.hasOwnProperty(r)&&d!==g&&(d!=null||g!=null))switch(r){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:J(e,t,r,d,a,g)}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 S in l)d=l[S],l.hasOwnProperty(S)&&d!=null&&!a.hasOwnProperty(S)&&J(e,t,S,null,a,d);for(f in a)if(d=a[f],g=l[f],a.hasOwnProperty(f)&&d!==g&&(d!=null||g!=null))switch(f){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(N(137,t));break;default:J(e,t,f,d,a,g)}return;default:if(vs(t)){for(var j in l)d=l[j],l.hasOwnProperty(j)&&d!==void 0&&!a.hasOwnProperty(j)&&Qc(e,t,j,void 0,a,d);for(h in a)d=a[h],g=l[h],!a.hasOwnProperty(h)||d===g||d===void 0&&g===void 0||Qc(e,t,h,d,a,g);return}}for(var y in l)d=l[y],l.hasOwnProperty(y)&&d!=null&&!a.hasOwnProperty(y)&&J(e,t,y,null,a,d);for(m in a)d=a[m],g=l[m],!a.hasOwnProperty(m)||d===g||d==null&&g==null||J(e,t,m,d,a,g)}function Oo(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function g1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,i=n.initiatorType,s=n.duration;if(u&&s&&Oo(i)){for(i=0,s=n.responseEnd,a+=1;a<l.length;a++){var r=l[a],f=r.startTime;if(f>s)break;var h=r.transferSize,m=r.initiatorType;h&&Oo(m)&&(r=r.responseEnd,i+=h*(r<s?1:(s-f)/(r-f)))}if(--a,t+=8*(u+i)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Vc=null,Zc=null;function qu(e){return e.nodeType===9?e:e.ownerDocument}function Do(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 eh(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 Kc(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 Ii=null;function v1(){var e=window.event;return e&&e.type==="popstate"?e===Ii?!1:(Ii=e,!0):(Ii=null,!1)}var th=typeof setTimeout=="function"?setTimeout:void 0,p1=typeof clearTimeout=="function"?clearTimeout:void 0,Ro=typeof Promise=="function"?Promise:void 0,x1=typeof queueMicrotask=="function"?queueMicrotask:typeof Ro<"u"?function(e){return Ro.resolve(null).then(e).catch(b1)}:th;function b1(e){setTimeout(function(){throw e})}function ol(e){return e==="head"}function _o(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),ma(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Ia(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Ia(l);for(var u=l.firstChild;u;){var i=u.nextSibling,s=u.nodeName;u[bn]||s==="SCRIPT"||s==="STYLE"||s==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&Ia(e.ownerDocument.body);l=n}while(l);ma(t)}function Uo(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Jc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Jc(l),gs(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function S1(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[bn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=et(e.nextSibling),e===null)break}return null}function N1(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=et(e.nextSibling),e===null))return null;return e}function lh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=et(e.nextSibling),e===null))return null;return e}function $c(e){return e.data==="$?"||e.data==="$~"}function Wc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function j1(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function et(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 Fc=null;function Ho(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return et(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Bo(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function ah(e,t,l){switch(t=qu(l),e){case"html":if(e=t.documentElement,!e)throw Error(N(452));return e;case"head":if(e=t.head,!e)throw Error(N(453));return e;case"body":if(e=t.body,!e)throw Error(N(454));return e;default:throw Error(N(451))}}function Ia(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gs(e)}var tt=new Map,Lo=new Set;function Yu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ut=V.d;V.d={f:E1,r:A1,D:T1,C:M1,L:C1,m:z1,X:O1,S:w1,M:D1};function E1(){var e=Ut.f(),t=si();return e||t}function A1(e){var t=ga(e);t!==null&&t.tag===5&&t.type==="form"?Wd(t):Ut.r(e)}var ba=typeof document>"u"?null:document;function nh(e,t,l){var a=ba;if(a&&typeof t=="string"&&t){var n=We(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Lo.has(n)||(Lo.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ee(t,"link",e),pe(t),a.head.appendChild(t)))}}function T1(e){Ut.D(e),nh("dns-prefetch",e,null)}function M1(e,t){Ut.C(e,t),nh("preconnect",e,t)}function C1(e,t,l){Ut.L(e,t,l);var a=ba;if(a&&e&&t){var n='link[rel="preload"][as="'+We(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+We(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+We(l.imageSizes)+'"]')):n+='[href="'+We(e)+'"]';var u=n;switch(t){case"style":u=da(e);break;case"script":u=Sa(e)}tt.has(u)||(e=te({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),tt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Tn(u))||t==="script"&&a.querySelector(Mn(u))||(t=a.createElement("link"),Ee(t,"link",e),pe(t),a.head.appendChild(t)))}}function z1(e,t){Ut.m(e,t);var l=ba;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+We(a)+'"][href="'+We(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Sa(e)}if(!tt.has(u)&&(e=te({rel:"modulepreload",href:e},t),tt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Mn(u)))return}a=l.createElement("link"),Ee(a,"link",e),pe(a),l.head.appendChild(a)}}}function w1(e,t,l){Ut.S(e,t,l);var a=ba;if(a&&e){var n=Wl(a).hoistableStyles,u=da(e);t=t||"default";var i=n.get(u);if(!i){var s={loading:0,preload:null};if(i=a.querySelector(Tn(u)))s.loading=5;else{e=te({rel:"stylesheet",href:e,"data-precedence":t},l),(l=tt.get(u))&&tr(e,l);var r=i=a.createElement("link");pe(r),Ee(r,"link",e),r._p=new Promise(function(f,h){r.onload=f,r.onerror=h}),r.addEventListener("load",function(){s.loading|=1}),r.addEventListener("error",function(){s.loading|=2}),s.loading|=4,ru(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:s},n.set(u,i)}}}function O1(e,t){Ut.X(e,t);var l=ba;if(l&&e){var a=Wl(l).hoistableScripts,n=Sa(e),u=a.get(n);u||(u=l.querySelector(Mn(n)),u||(e=te({src:e,async:!0},t),(t=tt.get(n))&&lr(e,t),u=l.createElement("script"),pe(u),Ee(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function D1(e,t){Ut.M(e,t);var l=ba;if(l&&e){var a=Wl(l).hoistableScripts,n=Sa(e),u=a.get(n);u||(u=l.querySelector(Mn(n)),u||(e=te({src:e,async:!0,type:"module"},t),(t=tt.get(n))&&lr(e,t),u=l.createElement("script"),pe(u),Ee(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function qo(e,t,l,a){var n=(n=Wt.current)?Yu(n):null;if(!n)throw Error(N(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=da(l.href),l=Wl(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=da(l.href);var u=Wl(n).hoistableStyles,i=u.get(e);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,i),(u=n.querySelector(Tn(e)))&&!u._p&&(i.instance=u,i.state.loading=5),tt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},tt.set(e,l),u||R1(n,e,l,i.state))),t&&a===null)throw Error(N(528,""));return i}if(t&&a!==null)throw Error(N(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Sa(l),l=Wl(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(N(444,e))}}function da(e){return'href="'+We(e)+'"'}function Tn(e){return'link[rel="stylesheet"]['+e+"]"}function uh(e){return te({},e,{"data-precedence":e.precedence,precedence:null})}function R1(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ee(t,"link",l),pe(t),e.head.appendChild(t))}function Sa(e){return'[src="'+We(e)+'"]'}function Mn(e){return"script[async]"+e}function Yo(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+We(l.href)+'"]');if(a)return t.instance=a,pe(a),a;var n=te({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),pe(a),Ee(a,"style",n),ru(a,l.precedence,e),t.instance=a;case"stylesheet":n=da(l.href);var u=e.querySelector(Tn(n));if(u)return t.state.loading|=4,t.instance=u,pe(u),u;a=uh(l),(n=tt.get(n))&&tr(a,n),u=(e.ownerDocument||e).createElement("link"),pe(u);var i=u;return i._p=new Promise(function(s,r){i.onload=s,i.onerror=r}),Ee(u,"link",a),t.state.loading|=4,ru(u,l.precedence,e),t.instance=u;case"script":return u=Sa(l.src),(n=e.querySelector(Mn(u)))?(t.instance=n,pe(n),n):(a=l,(n=tt.get(u))&&(a=te({},l),lr(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),pe(n),Ee(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(N(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,ru(a,l.precedence,e));return t.instance}function ru(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var s=a[i];if(s.dataset.precedence===t)u=s;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function tr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function lr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ou=null;function ko(e,t,l){if(ou===null){var a=new Map,n=ou=new Map;n.set(l,a)}else n=ou,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[bn]||u[Se]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(t)||"";i=e+i;var s=a.get(i);s?s.push(u):a.set(i,[u])}}return a}function Go(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function _1(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function ih(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function U1(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(l.state.loading&4)){if(l.instance===null){var n=da(a.href),u=t.querySelector(Tn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ku.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,pe(u);return}u=t.ownerDocument||t,a=uh(a),(n=tt.get(n))&&tr(a,n),u=u.createElement("link"),pe(u);var i=u;i._p=new Promise(function(s,r){i.onload=s,i.onerror=r}),Ee(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&!(l.state.loading&3)&&(e.count++,l=ku.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Pi=0;function H1(e,t){return e.stylesheets&&e.count===0&&fu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&fu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Pi===0&&(Pi=62500*g1());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&fu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Pi?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ku(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Gu=null;function fu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gu=new Map,t.forEach(B1,e),Gu=null,ku.call(e))}function B1(e,t){if(!(t.state.loading&4)){var l=Gu.get(e);if(l)var a=l.get(null);else{l=new Map,Gu.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}n=t.instance,i=n.getAttribute("data-precedence"),u=l.get(i)||a,u===a&&l.set(null,n),l.set(i,n),this.count++,a=ku.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var dn={$$typeof:jt,Provider:null,Consumer:null,_currentValue:pl,_currentValue2:pl,_threadCount:0};function L1(e,t,l,a,n,u,i,s,r){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ni(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ni(0),this.hiddenUpdates=Ni(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=r,this.incompleteTransitions=new Map}function ch(e,t,l,a,n,u,i,s,r,f,h,m){return e=new L1(e,t,l,i,r,f,h,m,s),t=1,u===!0&&(t|=24),u=Le(3,null,null,t),e.current=u,u.stateNode=e,t=Cs(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},Os(u),e}function sh(e){return e?(e=Zl,e):Zl}function rh(e,t,l,a,n,u){n=sh(n),a.context===null?a.context=n:a.pendingContext=n,a=It(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=Pt(e,a,t),l!==null&&(Re(l,e,t),Qa(l,e,t))}function Xo(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ar(e,t){Xo(e,t),(e=e.alternate)&&Xo(e,t)}function oh(e){if(e.tag===13||e.tag===31){var t=Ol(e,67108864);t!==null&&Re(t,e,67108864),ar(e,67108864)}}function Qo(e){if(e.tag===13||e.tag===31){var t=Xe();t=hs(t);var l=Ol(e,t);l!==null&&Re(l,e,t),ar(e,t)}}var Xu=!0;function q1(e,t,l,a){var n=D.T;D.T=null;var u=V.p;try{V.p=2,nr(e,t,l,a)}finally{V.p=u,D.T=n}}function Y1(e,t,l,a){var n=D.T;D.T=null;var u=V.p;try{V.p=8,nr(e,t,l,a)}finally{V.p=u,D.T=n}}function nr(e,t,l,a){if(Xu){var n=Ic(a);if(n===null)Fi(e,t,a,Qu,l),Vo(e,a);else if(G1(n,e,t,l,a))a.stopPropagation();else if(Vo(e,a),t&4&&-1<k1.indexOf(e)){for(;n!==null;){var u=ga(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=yl(u.pendingLanes);if(i!==0){var s=u;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var r=1<<31-Ge(i);s.entanglements[1]|=r,i&=~r}ht(u),!(Q&6)&&(Ru=Ye()+500,An(0))}}break;case 31:case 13:s=Ol(u,2),s!==null&&Re(s,u,2),si(),ar(u,2)}if(u=Ic(a),u===null&&Fi(e,t,a,Qu,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else Fi(e,t,a,null,l)}}function Ic(e){return e=ps(e),ur(e)}var Qu=null;function ur(e){if(Qu=null,e=Yl(e),e!==null){var t=gn(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=wf(t),e!==null)return e;e=null}else if(l===31){if(e=Of(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Qu=e,null}function fh(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(T0()){case Uf:return 2;case Hf:return 8;case xu:case M0:return 32;case Bf:return 268435456;default:return 32}default:return 32}}var Pc=!1,ll=null,al=null,nl=null,mn=new Map,hn=new Map,Qt=[],k1="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 Vo(e,t){switch(e){case"focusin":case"focusout":ll=null;break;case"dragenter":case"dragleave":al=null;break;case"mouseover":case"mouseout":nl=null;break;case"pointerover":case"pointerout":mn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":hn.delete(t.pointerId)}}function wa(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=ga(t),t!==null&&oh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function G1(e,t,l,a,n){switch(t){case"focusin":return ll=wa(ll,e,t,l,a,n),!0;case"dragenter":return al=wa(al,e,t,l,a,n),!0;case"mouseover":return nl=wa(nl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return mn.set(u,wa(mn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,hn.set(u,wa(hn.get(u)||null,e,t,l,a,n)),!0}return!1}function dh(e){var t=Yl(e.target);if(t!==null){var l=gn(t);if(l!==null){if(t=l.tag,t===13){if(t=wf(l),t!==null){e.blockedOn=t,Cr(e.priority,function(){Qo(l)});return}}else if(t===31){if(t=Of(l),t!==null){e.blockedOn=t,Cr(e.priority,function(){Qo(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function du(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Ic(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);vc=a,l.target.dispatchEvent(a),vc=null}else return t=ga(l),t!==null&&oh(t),e.blockedOn=l,!1;t.shift()}return!0}function Zo(e,t,l){du(e)&&l.delete(t)}function X1(){Pc=!1,ll!==null&&du(ll)&&(ll=null),al!==null&&du(al)&&(al=null),nl!==null&&du(nl)&&(nl=null),mn.forEach(Zo),hn.forEach(Zo)}function Jn(e,t){e.blockedOn===t&&(e.blockedOn=null,Pc||(Pc=!0,ye.unstable_scheduleCallback(ye.unstable_NormalPriority,X1)))}var $n=null;function Ko(e){$n!==e&&($n=e,ye.unstable_scheduleCallback(ye.unstable_NormalPriority,function(){$n===e&&($n=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(ur(a||l)===null)continue;break}var u=ga(l);u!==null&&(e.splice(t,3),t-=3,Rc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function ma(e){function t(r){return Jn(r,e)}ll!==null&&Jn(ll,e),al!==null&&Jn(al,e),nl!==null&&Jn(nl,e),mn.forEach(t),hn.forEach(t);for(var l=0;l<Qt.length;l++){var a=Qt[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Qt.length&&(l=Qt[0],l.blockedOn===null);)dh(l),l.blockedOn===null&&Qt.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],i=n[_e]||null;if(typeof u=="function")i||Ko(l);else if(i){var s=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[_e]||null)s=i.formAction;else if(ur(n)!==null)continue}else s=i.action;typeof s=="function"?l[a+1]=s:(l.splice(a,3),a-=3),Ko(l)}}}function mh(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function ir(e){this._internalRoot=e}fi.prototype.render=ir.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));var l=t.current,a=Xe();rh(l,a,e,t,null,null)};fi.prototype.unmount=ir.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rh(e.current,2,null,e,null,null),si(),t[ya]=null}};function fi(e){this._internalRoot=e}fi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Gf();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Qt.length&&t!==0&&t<Qt[l].priority;l++);Qt.splice(l,0,e),l===0&&dh(e)}};var Jo=Cf.version;if(Jo!=="19.2.4")throw Error(N(527,Jo,"19.2.4"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=x0(t),e=e!==null?Df(e):null,e=e===null?null:e.stateNode,e};var Q1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wn=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wn.isDisabled&&Wn.supportsFiber)try{vn=Wn.inject(Q1),ke=Wn}catch{}}Ju.createRoot=function(e,t){if(!zf(e))throw Error(N(299));var l=!1,a="",n=nm,u=um,i=im;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ch(e,1,!1,null,null,l,a,null,n,u,i,mh),e[ya]=t.current,er(e),new ir(t)};Ju.hydrateRoot=function(e,t,l){if(!zf(e))throw Error(N(299));var a=!1,n="",u=nm,i=um,s=im,r=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(s=l.onRecoverableError),l.formState!==void 0&&(r=l.formState)),t=ch(e,1,!0,t,l??null,a,n,r,u,i,s,mh),t.context=sh(null),l=t.current,a=Xe(),a=hs(a),n=It(a),n.callback=null,Pt(l,n,a),l=a,t.current.lanes=l,xn(t,l),ht(t),e[ya]=t.current,er(e),new fi(t)};Ju.version="19.2.4";function hh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(hh)}catch(e){console.error(e)}}hh(),Nf.exports=Ju;var V1=Nf.exports;const Z1=df(V1);/**
|
|
50
|
+
* react-router v7.13.2
|
|
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 $o="popstate";function Wo(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function K1(e={}){function t(a,n){var f;let u=(f=n.state)==null?void 0:f.masked,{pathname:i,search:s,hash:r}=u||a.location;return es("",{pathname:i,search:s,hash:r},n.state&&n.state.usr||null,n.state&&n.state.key||"default",u?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}function l(a,n){return typeof n=="string"?n:yn(n)}return $1(t,l,null,e)}function ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function J1(){return Math.random().toString(36).substring(2,10)}function Fo(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function es(e,t,l=null,a,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Na(t):t,state:l,key:t&&t.key||a||J1(),unstable_mask:n}}function yn({pathname:e="/",search:t="",hash:l=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),l&&l!=="#"&&(e+=l.charAt(0)==="#"?l:"#"+l),e}function Na(e){let t={};if(e){let l=e.indexOf("#");l>=0&&(t.hash=e.substring(l),e=e.substring(0,l));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function $1(e,t,l,a={}){let{window:n=document.defaultView,v5Compat:u=!1}=a,i=n.history,s="POP",r=null,f=h();f==null&&(f=0,i.replaceState({...i.state,idx:f},""));function h(){return(i.state||{idx:null}).idx}function m(){s="POP";let j=h(),y=j==null?null:j-f;f=j,r&&r({action:s,location:S.location,delta:y})}function d(j,y){s="PUSH";let o=Wo(j)?j:es(S.location,j,y);f=h()+1;let v=Fo(o,f),b=S.createHref(o.unstable_mask||o);try{i.pushState(v,"",b)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;n.location.assign(b)}u&&r&&r({action:s,location:S.location,delta:1})}function g(j,y){s="REPLACE";let o=Wo(j)?j:es(S.location,j,y);f=h();let v=Fo(o,f),b=S.createHref(o.unstable_mask||o);i.replaceState(v,"",b),u&&r&&r({action:s,location:S.location,delta:0})}function x(j){return W1(j)}let S={get action(){return s},get location(){return e(n,i)},listen(j){if(r)throw new Error("A history only accepts one active listener");return n.addEventListener($o,m),r=j,()=>{n.removeEventListener($o,m),r=null}},createHref(j){return t(n,j)},createURL:x,encodeLocation(j){let y=x(j);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:g,go(j){return i.go(j)}};return S}function W1(e,t=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),ae(l,"No window.location.(origin|href) available to create URL");let a=typeof e=="string"?e:yn(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=l+a),new URL(a,l)}function yh(e,t,l="/"){return F1(e,t,l,!1)}function F1(e,t,l,a){let n=typeof t=="string"?Na(t):t,u=_t(n.pathname||"/",l);if(u==null)return null;let i=gh(e);I1(i);let s=null;for(let r=0;s==null&&r<i.length;++r){let f=rg(u);s=cg(i[r],f,a)}return s}function gh(e,t=[],l=[],a="",n=!1){let u=(i,s,r=n,f)=>{let h={relativePath:f===void 0?i.path||"":f,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(a)&&r)return;ae(h.relativePath.startsWith(a),`Absolute route path "${h.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(a.length)}let m=ft([a,h.relativePath]),d=l.concat(h);i.children&&i.children.length>0&&(ae(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),gh(i.children,t,d,m,r)),!(i.path==null&&!i.index)&&t.push({path:m,score:ug(m,i.index),routesMeta:d})};return e.forEach((i,s)=>{var r;if(i.path===""||!((r=i.path)!=null&&r.includes("?")))u(i,s);else for(let f of vh(i.path))u(i,s,!0,f)}),t}function vh(e){let t=e.split("/");if(t.length===0)return[];let[l,...a]=t,n=l.endsWith("?"),u=l.replace(/\?$/,"");if(a.length===0)return n?[u,""]:[u];let i=vh(a.join("/")),s=[];return s.push(...i.map(r=>r===""?u:[u,r].join("/"))),n&&s.push(...i),s.map(r=>e.startsWith("/")&&r===""?"/":r)}function I1(e){e.sort((t,l)=>t.score!==l.score?l.score-t.score:ig(t.routesMeta.map(a=>a.childrenIndex),l.routesMeta.map(a=>a.childrenIndex)))}var P1=/^:[\w-]+$/,eg=3,tg=2,lg=1,ag=10,ng=-2,Io=e=>e==="*";function ug(e,t){let l=e.split("/"),a=l.length;return l.some(Io)&&(a+=ng),t&&(a+=tg),l.filter(n=>!Io(n)).reduce((n,u)=>n+(P1.test(u)?eg:u===""?lg:ag),a)}function ig(e,t){return e.length===t.length&&e.slice(0,-1).every((a,n)=>a===t[n])?e[e.length-1]-t[t.length-1]:0}function cg(e,t,l=!1){let{routesMeta:a}=e,n={},u="/",i=[];for(let s=0;s<a.length;++s){let r=a[s],f=s===a.length-1,h=u==="/"?t:t.slice(u.length)||"/",m=Vu({path:r.relativePath,caseSensitive:r.caseSensitive,end:f},h),d=r.route;if(!m&&f&&l&&!a[a.length-1].route.index&&(m=Vu({path:r.relativePath,caseSensitive:r.caseSensitive,end:!1},h)),!m)return null;Object.assign(n,m.params),i.push({params:n,pathname:ft([u,m.pathname]),pathnameBase:mg(ft([u,m.pathnameBase])),route:d}),m.pathnameBase!=="/"&&(u=ft([u,m.pathnameBase]))}return i}function Vu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[l,a]=sg(e.path,e.caseSensitive,e.end),n=t.match(l);if(!n)return null;let u=n[0],i=u.replace(/(.)\/+$/,"$1"),s=n.slice(1);return{params:a.reduce((f,{paramName:h,isOptional:m},d)=>{if(h==="*"){let x=s[d]||"";i=u.slice(0,u.length-x.length).replace(/(.)\/+$/,"$1")}const g=s[d];return m&&!g?f[h]=void 0:f[h]=(g||"").replace(/%2F/g,"/"),f},{}),pathname:u,pathnameBase:i,pattern:e}}function sg(e,t=!1,l=!0){dt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,r,f,h)=>{if(a.push({paramName:s,isOptional:r!=null}),r){let m=h.charAt(f+i.length);return m&&m!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),n+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?n+="\\/*$":e!==""&&e!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),a]}function rg(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function _t(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let l=t.endsWith("/")?t.length-1:t.length,a=e.charAt(l);return a&&a!=="/"?null:e.slice(l)||"/"}var og=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function fg(e,t="/"){let{pathname:l,search:a="",hash:n=""}=typeof e=="string"?Na(e):e,u;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?u=Po(l.substring(1),"/"):u=Po(l,t)):u=t,{pathname:u,search:hg(a),hash:yg(n)}}function Po(e,t){let l=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(n=>{n===".."?l.length>1&&l.pop():n!=="."&&l.push(n)}),l.length>1?l.join("/"):"/"}function ec(e,t,l,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function dg(e){return e.filter((t,l)=>l===0||t.route.path&&t.route.path.length>0)}function ph(e){let t=dg(e);return t.map((l,a)=>a===t.length-1?l.pathname:l.pathnameBase)}function cr(e,t,l,a=!1){let n;typeof e=="string"?n=Na(e):(n={...e},ae(!n.pathname||!n.pathname.includes("?"),ec("?","pathname","search",n)),ae(!n.pathname||!n.pathname.includes("#"),ec("#","pathname","hash",n)),ae(!n.search||!n.search.includes("#"),ec("#","search","hash",n)));let u=e===""||n.pathname==="",i=u?"/":n.pathname,s;if(i==null)s=l;else{let m=t.length-1;if(!a&&i.startsWith("..")){let d=i.split("/");for(;d[0]==="..";)d.shift(),m-=1;n.pathname=d.join("/")}s=m>=0?t[m]:"/"}let r=fg(n,s),f=i&&i!=="/"&&i.endsWith("/"),h=(u||i===".")&&l.endsWith("/");return!r.pathname.endsWith("/")&&(f||h)&&(r.pathname+="/"),r}var ft=e=>e.join("/").replace(/\/\/+/g,"/"),mg=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,yg=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,gg=class{constructor(e,t,l,a=!1){this.status=e,this.statusText=t||"",this.internal=a,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function vg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function pg(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var xh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function bh(e,t){let l=e;if(typeof l!="string"||!og.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let a=l,n=!1;if(xh)try{let u=new URL(window.location.href),i=l.startsWith("//")?new URL(u.protocol+l):new URL(l),s=_t(i.pathname,t);i.origin===u.origin&&s!=null?l=s+i.search+i.hash:n=!0}catch{dt(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:n,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Sh=["POST","PUT","PATCH","DELETE"];new Set(Sh);var xg=["GET",...Sh];new Set(xg);var ja=p.createContext(null);ja.displayName="DataRouter";var di=p.createContext(null);di.displayName="DataRouterState";var bg=p.createContext(!1),Nh=p.createContext({isTransitioning:!1});Nh.displayName="ViewTransition";var Sg=p.createContext(new Map);Sg.displayName="Fetchers";var Ng=p.createContext(null);Ng.displayName="Await";var lt=p.createContext(null);lt.displayName="Navigation";var Cn=p.createContext(null);Cn.displayName="Location";var yt=p.createContext({outlet:null,matches:[],isDataRoute:!1});yt.displayName="Route";var sr=p.createContext(null);sr.displayName="RouteError";var jh="REACT_ROUTER_ERROR",jg="REDIRECT",Eg="ROUTE_ERROR_RESPONSE";function Ag(e){if(e.startsWith(`${jh}:${jg}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Tg(e){if(e.startsWith(`${jh}:${Eg}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new gg(t.status,t.statusText,t.data)}catch{}}function Mg(e,{relative:t}={}){ae(zn(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:a}=p.useContext(lt),{hash:n,pathname:u,search:i}=wn(e,{relative:t}),s=u;return l!=="/"&&(s=u==="/"?l:ft([l,u])),a.createHref({pathname:s,search:i,hash:n})}function zn(){return p.useContext(Cn)!=null}function Ht(){return ae(zn(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(Cn).location}var Eh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ah(e){p.useContext(lt).static||p.useLayoutEffect(e)}function rr(){let{isDataRoute:e}=p.useContext(yt);return e?kg():Cg()}function Cg(){ae(zn(),"useNavigate() may be used only in the context of a <Router> component.");let e=p.useContext(ja),{basename:t,navigator:l}=p.useContext(lt),{matches:a}=p.useContext(yt),{pathname:n}=Ht(),u=JSON.stringify(ph(a)),i=p.useRef(!1);return Ah(()=>{i.current=!0}),p.useCallback((r,f={})=>{if(dt(i.current,Eh),!i.current)return;if(typeof r=="number"){l.go(r);return}let h=cr(r,JSON.parse(u),n,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:ft([t,h.pathname])),(f.replace?l.replace:l.push)(h,f.state,f)},[t,l,u,n,e])}p.createContext(null);function zg(){let{matches:e}=p.useContext(yt),t=e[e.length-1];return t?t.params:{}}function wn(e,{relative:t}={}){let{matches:l}=p.useContext(yt),{pathname:a}=Ht(),n=JSON.stringify(ph(l));return p.useMemo(()=>cr(e,JSON.parse(n),a,t==="path"),[e,n,a,t])}function wg(e,t){return Th(e,t)}function Th(e,t,l){var j;ae(zn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=p.useContext(lt),{matches:n}=p.useContext(yt),u=n[n.length-1],i=u?u.params:{},s=u?u.pathname:"/",r=u?u.pathnameBase:"/",f=u&&u.route;{let y=f&&f.path||"";Ch(s,!f||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (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 h=Ht(),m;if(t){let y=typeof t=="string"?Na(t):t;ae(r==="/"||((j=y.pathname)==null?void 0:j.startsWith(r)),`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 "${r}" but pathname "${y.pathname}" was given in the \`location\` prop.`),m=y}else m=h;let d=m.pathname||"/",g=d;if(r!=="/"){let y=r.replace(/^\//,"").split("/");g="/"+d.replace(/^\//,"").split("/").slice(y.length).join("/")}let x=yh(e,{pathname:g});dt(f||x!=null,`No routes matched location "${m.pathname}${m.search}${m.hash}" `),dt(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${m.pathname}${m.search}${m.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 S=Ug(x&&x.map(y=>Object.assign({},y,{params:Object.assign({},i,y.params),pathname:ft([r,a.encodeLocation?a.encodeLocation(y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?r:ft([r,a.encodeLocation?a.encodeLocation(y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),n,l);return t&&S?p.createElement(Cn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...m},navigationType:"POP"}},S):S}function Og(){let e=Yg(),t=vg(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),l=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",n={padding:"0.5rem",backgroundColor:a},u={padding:"2px 4px",backgroundColor:a},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:u},"ErrorBoundary")," or"," ",p.createElement("code",{style:u},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),l?p.createElement("pre",{style:n},l):null,i)}var Dg=p.createElement(Og,null),Mh=class extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const l=Tg(e.digest);l&&(e=l)}let t=e!==void 0?p.createElement(yt.Provider,{value:this.props.routeContext},p.createElement(sr.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?p.createElement(Rg,{error:e},t):t}};Mh.contextType=bg;var tc=new WeakMap;function Rg({children:e,error:t}){let{basename:l}=p.useContext(lt);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=Ag(t.digest);if(a){let n=tc.get(t);if(n)throw n;let u=bh(a.location,l);if(xh&&!tc.get(t))if(u.isExternal||a.reloadDocument)window.location.href=u.absoluteURL||u.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:a.replace}));throw tc.set(t,i),i}return p.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u.absoluteURL||u.to}`})}}return e}function _g({routeContext:e,match:t,children:l}){let a=p.useContext(ja);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(yt.Provider,{value:e},l)}function Ug(e,t=[],l){let a=l==null?void 0:l.state;if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let n=e,u=a==null?void 0:a.errors;if(u!=null){let h=n.findIndex(m=>m.route.id&&(u==null?void 0:u[m.route.id])!==void 0);ae(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),n=n.slice(0,Math.min(n.length,h+1))}let i=!1,s=-1;if(l&&a){i=a.renderFallback;for(let h=0;h<n.length;h++){let m=n[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(s=h),m.route.id){let{loaderData:d,errors:g}=a,x=m.route.loader&&!d.hasOwnProperty(m.route.id)&&(!g||g[m.route.id]===void 0);if(m.route.lazy||x){l.isStatic&&(i=!0),s>=0?n=n.slice(0,s+1):n=[n[0]];break}}}}let r=l==null?void 0:l.onError,f=a&&r?(h,m)=>{var d,g;r(h,{location:a.location,params:((g=(d=a.matches)==null?void 0:d[0])==null?void 0:g.params)??{},unstable_pattern:pg(a.matches),errorInfo:m})}:void 0;return n.reduceRight((h,m,d)=>{let g,x=!1,S=null,j=null;a&&(g=u&&m.route.id?u[m.route.id]:void 0,S=m.route.errorElement||Dg,i&&(s<0&&d===0?(Ch("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,j=null):s===d&&(x=!0,j=m.route.hydrateFallbackElement||null)));let y=t.concat(n.slice(0,d+1)),o=()=>{let v;return g?v=S:x?v=j:m.route.Component?v=p.createElement(m.route.Component,null):m.route.element?v=m.route.element:v=h,p.createElement(_g,{match:m,routeContext:{outlet:h,matches:y,isDataRoute:a!=null},children:v})};return a&&(m.route.ErrorBoundary||m.route.errorElement||d===0)?p.createElement(Mh,{location:a.location,revalidation:a.revalidation,component:S,error:g,children:o(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:f}):o()},null)}function or(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Hg(e){let t=p.useContext(ja);return ae(t,or(e)),t}function Bg(e){let t=p.useContext(di);return ae(t,or(e)),t}function Lg(e){let t=p.useContext(yt);return ae(t,or(e)),t}function fr(e){let t=Lg(e),l=t.matches[t.matches.length-1];return ae(l.route.id,`${e} can only be used on routes that contain a unique "id"`),l.route.id}function qg(){return fr("useRouteId")}function Yg(){var a;let e=p.useContext(sr),t=Bg("useRouteError"),l=fr("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[l]}function kg(){let{router:e}=Hg("useNavigate"),t=fr("useNavigate"),l=p.useRef(!1);return Ah(()=>{l.current=!0}),p.useCallback(async(n,u={})=>{dt(l.current,Eh),l.current&&(typeof n=="number"?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...u}))},[e,t])}var ef={};function Ch(e,t,l){!t&&!ef[e]&&(ef[e]=!0,dt(!1,l))}p.memo(Gg);function Gg({routes:e,future:t,state:l,isStatic:a,onError:n}){return Th(e,void 0,{state:l,isStatic:a,onError:n})}function nt(e){ae(!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 Xg({basename:e="/",children:t=null,location:l,navigationType:a="POP",navigator:n,static:u=!1,unstable_useTransitions:i}){ae(!zn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),r=p.useMemo(()=>({basename:s,navigator:n,static:u,unstable_useTransitions:i,future:{}}),[s,n,u,i]);typeof l=="string"&&(l=Na(l));let{pathname:f="/",search:h="",hash:m="",state:d=null,key:g="default",unstable_mask:x}=l,S=p.useMemo(()=>{let j=_t(f,s);return j==null?null:{location:{pathname:j,search:h,hash:m,state:d,key:g,unstable_mask:x},navigationType:a}},[s,f,h,m,d,g,a,x]);return dt(S!=null,`<Router basename="${s}"> is not able to match the URL "${f}${h}${m}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:p.createElement(lt.Provider,{value:r},p.createElement(Cn.Provider,{children:t,value:S}))}function Qg({children:e,location:t}){return wg(ts(e),t)}function ts(e,t=[]){let l=[];return p.Children.forEach(e,(a,n)=>{if(!p.isValidElement(a))return;let u=[...t,n];if(a.type===p.Fragment){l.push.apply(l,ts(a.props.children,u));return}ae(a.type===nt,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ae(!a.props.index||!a.props.children,"An index route cannot have child routes.");let i={id:a.props.id||u.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(i.children=ts(a.props.children,u)),l.push(i)}),l}var mu="get",hu="application/x-www-form-urlencoded";function mi(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Vg(e){return mi(e)&&e.tagName.toLowerCase()==="button"}function Zg(e){return mi(e)&&e.tagName.toLowerCase()==="form"}function Kg(e){return mi(e)&&e.tagName.toLowerCase()==="input"}function Jg(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $g(e,t){return e.button===0&&(!t||t==="_self")&&!Jg(e)}var Fn=null;function Wg(){if(Fn===null)try{new FormData(document.createElement("form"),0),Fn=!1}catch{Fn=!0}return Fn}var Fg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function lc(e){return e!=null&&!Fg.has(e)?(dt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hu}"`),null):e}function Ig(e,t){let l,a,n,u,i;if(Zg(e)){let s=e.getAttribute("action");a=s?_t(s,t):null,l=e.getAttribute("method")||mu,n=lc(e.getAttribute("enctype"))||hu,u=new FormData(e)}else if(Vg(e)||Kg(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let r=e.getAttribute("formaction")||s.getAttribute("action");if(a=r?_t(r,t):null,l=e.getAttribute("formmethod")||s.getAttribute("method")||mu,n=lc(e.getAttribute("formenctype"))||lc(s.getAttribute("enctype"))||hu,u=new FormData(s,e),!Wg()){let{name:f,type:h,value:m}=e;if(h==="image"){let d=f?`${f}.`:"";u.append(`${d}x`,"0"),u.append(`${d}y`,"0")}else f&&u.append(f,m)}}else{if(mi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=mu,a=null,n=hu,i=e}return u&&n==="text/plain"&&(i=u,u=void 0),{action:a,method:l.toLowerCase(),encType:n,formData:u,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function dr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pg(e,t,l,a){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return l?n.pathname.endsWith("/")?n.pathname=`${n.pathname}_.${a}`:n.pathname=`${n.pathname}.${a}`:n.pathname==="/"?n.pathname=`_root.${a}`:t&&_t(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.${a}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${a}`,n}async function ev(e,t){if(e.id in t)return t[e.id];try{let l=await import(e.module);return t[e.id]=l,l}catch(l){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function tv(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function lv(e,t,l){let a=await Promise.all(e.map(async n=>{let u=t.routes[n.route.id];if(u){let i=await ev(u,l);return i.links?i.links():[]}return[]}));return iv(a.flat(1).filter(tv).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?{...n,rel:"prefetch",as:"style"}:{...n,rel:"prefetch"}))}function tf(e,t,l,a,n,u){let i=(r,f)=>l[f]?r.route.id!==l[f].route.id:!0,s=(r,f)=>{var h;return l[f].pathname!==r.pathname||((h=l[f].route.path)==null?void 0:h.endsWith("*"))&&l[f].params["*"]!==r.params["*"]};return u==="assets"?t.filter((r,f)=>i(r,f)||s(r,f)):u==="data"?t.filter((r,f)=>{var m;let h=a.routes[r.route.id];if(!h||!h.hasLoader)return!1;if(i(r,f)||s(r,f))return!0;if(r.route.shouldRevalidate){let d=r.route.shouldRevalidate({currentUrl:new URL(n.pathname+n.search+n.hash,window.origin),currentParams:((m=l[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:r.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function av(e,t,{includeHydrateFallback:l}={}){return nv(e.map(a=>{let n=t.routes[a.route.id];if(!n)return[];let u=[n.module];return n.clientActionModule&&(u=u.concat(n.clientActionModule)),n.clientLoaderModule&&(u=u.concat(n.clientLoaderModule)),l&&n.hydrateFallbackModule&&(u=u.concat(n.hydrateFallbackModule)),n.imports&&(u=u.concat(n.imports)),u}).flat(1))}function nv(e){return[...new Set(e)]}function uv(e){let t={},l=Object.keys(e).sort();for(let a of l)t[a]=e[a];return t}function iv(e,t){let l=new Set;return new Set(t),e.reduce((a,n)=>{let u=JSON.stringify(uv(n));return l.has(u)||(l.add(u),a.push({key:u,link:n})),a},[])}function zh(){let e=p.useContext(ja);return dr(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function cv(){let e=p.useContext(di);return dr(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var mr=p.createContext(void 0);mr.displayName="FrameworkContext";function wh(){let e=p.useContext(mr);return dr(e,"You must render this element inside a <HydratedRouter> element"),e}function sv(e,t){let l=p.useContext(mr),[a,n]=p.useState(!1),[u,i]=p.useState(!1),{onFocus:s,onBlur:r,onMouseEnter:f,onMouseLeave:h,onTouchStart:m}=t,d=p.useRef(null);p.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let S=y=>{y.forEach(o=>{i(o.isIntersecting)})},j=new IntersectionObserver(S,{threshold:.5});return d.current&&j.observe(d.current),()=>{j.disconnect()}}},[e]),p.useEffect(()=>{if(a){let S=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(S)}}},[a]);let g=()=>{n(!0)},x=()=>{n(!1),i(!1)};return l?e!=="intent"?[u,d,{}]:[u,d,{onFocus:Oa(s,g),onBlur:Oa(r,x),onMouseEnter:Oa(f,g),onMouseLeave:Oa(h,x),onTouchStart:Oa(m,g)}]:[!1,d,{}]}function Oa(e,t){return l=>{e&&e(l),l.defaultPrevented||t(l)}}function rv({page:e,...t}){let{router:l}=zh(),a=p.useMemo(()=>yh(l.routes,e,l.basename),[l.routes,e,l.basename]);return a?p.createElement(fv,{page:e,matches:a,...t}):null}function ov(e){let{manifest:t,routeModules:l}=wh(),[a,n]=p.useState([]);return p.useEffect(()=>{let u=!1;return lv(e,t,l).then(i=>{u||n(i)}),()=>{u=!0}},[e,t,l]),a}function fv({page:e,matches:t,...l}){let a=Ht(),{future:n,manifest:u,routeModules:i}=wh(),{basename:s}=zh(),{loaderData:r,matches:f}=cv(),h=p.useMemo(()=>tf(e,t,f,u,a,"data"),[e,t,f,u,a]),m=p.useMemo(()=>tf(e,t,f,u,a,"assets"),[e,t,f,u,a]),d=p.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let S=new Set,j=!1;if(t.forEach(o=>{var b;let v=u.routes[o.route.id];!v||!v.hasLoader||(!h.some(A=>A.route.id===o.route.id)&&o.route.id in r&&((b=i[o.route.id])!=null&&b.shouldRevalidate)||v.hasClientLoader?j=!0:S.add(o.route.id))}),S.size===0)return[];let y=Pg(e,s,n.unstable_trailingSlashAwareDataRequests,"data");return j&&S.size>0&&y.searchParams.set("_routes",t.filter(o=>S.has(o.route.id)).map(o=>o.route.id).join(",")),[y.pathname+y.search]},[s,n.unstable_trailingSlashAwareDataRequests,r,a,u,h,t,e,i]),g=p.useMemo(()=>av(m,u),[m,u]),x=ov(m);return p.createElement(p.Fragment,null,d.map(S=>p.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...l})),g.map(S=>p.createElement("link",{key:S,rel:"modulepreload",href:S,...l})),x.map(({key:S,link:j})=>p.createElement("link",{key:S,nonce:l.nonce,...j,crossOrigin:j.crossOrigin??l.crossOrigin})))}function dv(...e){return t=>{e.forEach(l=>{typeof l=="function"?l(t):l!=null&&(l.current=t)})}}var mv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{mv&&(window.__reactRouterVersion="7.13.2")}catch{}function hv({basename:e,children:t,unstable_useTransitions:l,window:a}){let n=p.useRef();n.current==null&&(n.current=K1({window:a,v5Compat:!0}));let u=n.current,[i,s]=p.useState({action:u.action,location:u.location}),r=p.useCallback(f=>{l===!1?s(f):p.startTransition(()=>s(f))},[l]);return p.useLayoutEffect(()=>u.listen(r),[u,r]),p.createElement(Xg,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:u,unstable_useTransitions:l})}var Oh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dh=p.forwardRef(function({onClick:t,discover:l="render",prefetch:a="none",relative:n,reloadDocument:u,replace:i,unstable_mask:s,state:r,target:f,to:h,preventScrollReset:m,viewTransition:d,unstable_defaultShouldRevalidate:g,...x},S){let{basename:j,navigator:y,unstable_useTransitions:o}=p.useContext(lt),v=typeof h=="string"&&Oh.test(h),b=bh(h,j);h=b.to;let A=Mg(h,{relative:n}),z=Ht(),T=null;if(s){let Ce=cr(s,[],z.unstable_mask?z.unstable_mask.pathname:"/",!0);j!=="/"&&(Ce.pathname=Ce.pathname==="/"?j:ft([j,Ce.pathname])),T=y.createHref(Ce)}let[C,O,U]=sv(a,x),E=vv(h,{replace:i,unstable_mask:s,state:r,target:f,preventScrollReset:m,relative:n,viewTransition:d,unstable_defaultShouldRevalidate:g,unstable_useTransitions:o});function re(Ce){t&&t(Ce),Ce.defaultPrevented||E(Ce)}let Bt=!(b.isExternal||u),fl=p.createElement("a",{...x,...U,href:(Bt?T:void 0)||b.absoluteURL||A,onClick:Bt?re:t,ref:dv(S,O),target:f,"data-discover":!v&&l==="render"?"true":void 0});return C&&!v?p.createElement(p.Fragment,null,fl,p.createElement(rv,{page:A})):fl});Dh.displayName="Link";var Rh=p.forwardRef(function({"aria-current":t="page",caseSensitive:l=!1,className:a="",end:n=!1,style:u,to:i,viewTransition:s,children:r,...f},h){let m=wn(i,{relative:f.relative}),d=Ht(),g=p.useContext(di),{navigator:x,basename:S}=p.useContext(lt),j=g!=null&&Nv(m)&&s===!0,y=x.encodeLocation?x.encodeLocation(m).pathname:m.pathname,o=d.pathname,v=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;l||(o=o.toLowerCase(),v=v?v.toLowerCase():null,y=y.toLowerCase()),v&&S&&(v=_t(v,S)||v);const b=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let A=o===y||!n&&o.startsWith(y)&&o.charAt(b)==="/",z=v!=null&&(v===y||!n&&v.startsWith(y)&&v.charAt(y.length)==="/"),T={isActive:A,isPending:z,isTransitioning:j},C=A?t:void 0,O;typeof a=="function"?O=a(T):O=[a,A?"active":null,z?"pending":null,j?"transitioning":null].filter(Boolean).join(" ");let U=typeof u=="function"?u(T):u;return p.createElement(Dh,{...f,"aria-current":C,className:O,ref:h,style:U,to:i,viewTransition:s},typeof r=="function"?r(T):r)});Rh.displayName="NavLink";var yv=p.forwardRef(({discover:e="render",fetcherKey:t,navigate:l,reloadDocument:a,replace:n,state:u,method:i=mu,action:s,onSubmit:r,relative:f,preventScrollReset:h,viewTransition:m,unstable_defaultShouldRevalidate:d,...g},x)=>{let{unstable_useTransitions:S}=p.useContext(lt),j=bv(),y=Sv(s,{relative:f}),o=i.toLowerCase()==="get"?"get":"post",v=typeof s=="string"&&Oh.test(s),b=A=>{if(r&&r(A),A.defaultPrevented)return;A.preventDefault();let z=A.nativeEvent.submitter,T=(z==null?void 0:z.getAttribute("formmethod"))||i,C=()=>j(z||A.currentTarget,{fetcherKey:t,method:T,navigate:l,replace:n,state:u,relative:f,preventScrollReset:h,viewTransition:m,unstable_defaultShouldRevalidate:d});S&&l!==!1?p.startTransition(()=>C()):C()};return p.createElement("form",{ref:x,method:o,action:y,onSubmit:a?r:b,...g,"data-discover":!v&&e==="render"?"true":void 0})});yv.displayName="Form";function gv(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _h(e){let t=p.useContext(ja);return ae(t,gv(e)),t}function vv(e,{target:t,replace:l,unstable_mask:a,state:n,preventScrollReset:u,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:r,unstable_useTransitions:f}={}){let h=rr(),m=Ht(),d=wn(e,{relative:i});return p.useCallback(g=>{if($g(g,t)){g.preventDefault();let x=l!==void 0?l:yn(m)===yn(d),S=()=>h(e,{replace:x,unstable_mask:a,state:n,preventScrollReset:u,relative:i,viewTransition:s,unstable_defaultShouldRevalidate:r});f?p.startTransition(()=>S()):S()}},[m,h,d,l,a,n,t,e,u,i,s,r,f])}var pv=0,xv=()=>`__${String(++pv)}__`;function bv(){let{router:e}=_h("useSubmit"),{basename:t}=p.useContext(lt),l=qg(),a=e.fetch,n=e.navigate;return p.useCallback(async(u,i={})=>{let{action:s,method:r,encType:f,formData:h,body:m}=Ig(u,t);if(i.navigate===!1){let d=i.fetcherKey||xv();await a(d,l,i.action||s,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:h,body:m,formMethod:i.method||r,formEncType:i.encType||f,flushSync:i.flushSync})}else await n(i.action||s,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:h,body:m,formMethod:i.method||r,formEncType:i.encType||f,replace:i.replace,state:i.state,fromRouteId:l,flushSync:i.flushSync,viewTransition:i.viewTransition})},[a,n,t,l])}function Sv(e,{relative:t}={}){let{basename:l}=p.useContext(lt),a=p.useContext(yt);ae(a,"useFormAction must be used inside a RouteContext");let[n]=a.matches.slice(-1),u={...wn(e||".",{relative:t})},i=Ht();if(e==null){u.search=i.search;let s=new URLSearchParams(u.search),r=s.getAll("index");if(r.some(h=>h==="")){s.delete("index"),r.filter(m=>m).forEach(m=>s.append("index",m));let h=s.toString();u.search=h?`?${h}`:""}}return(!e||e===".")&&n.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(u.pathname=u.pathname==="/"?l:ft([l,u.pathname])),yn(u)}function Nv(e,{relative:t}={}){let l=p.useContext(Nh);ae(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=_h("useViewTransitionState"),n=wn(e,{relative:t});if(!l.isTransitioning)return!1;let u=_t(l.currentLocation.pathname,a)||l.currentLocation.pathname,i=_t(l.nextLocation.pathname,a)||l.nextLocation.pathname;return Vu(n.pathname,i)!=null||Vu(n.pathname,u)!=null}const lf=e=>{let t;const l=new Set,a=(f,h)=>{const m=typeof f=="function"?f(t):f;if(!Object.is(m,t)){const d=t;t=h??(typeof m!="object"||m===null)?m:Object.assign({},t,m),l.forEach(g=>g(t,d))}},n=()=>t,s={setState:a,getState:n,getInitialState:()=>r,subscribe:f=>(l.add(f),()=>l.delete(f))},r=t=e(a,n,s);return s},jv=e=>e?lf(e):lf,Ev=e=>e;function Av(e,t=Ev){const l=Da.useSyncExternalStore(e.subscribe,Da.useCallback(()=>t(e.getState()),[e,t]),Da.useCallback(()=>t(e.getInitialState()),[e,t]));return Da.useDebugValue(l),l}const af=e=>{const t=jv(e),l=a=>Av(t,a);return Object.assign(l,t),l},Uh=e=>e?af(e):af,yu="/api";async function X(e,t){const l=await fetch(`${yu}${e}`,{headers:{"Content-Type":"application/json",...t==null?void 0:t.headers},...t});if(!l.ok){const a=await l.json().catch(()=>({error:l.statusText}));throw new Error(a.error||`HTTP ${l.status}`)}return l.json()}const Y={listConversations:()=>X("/conversations"),createConversation:e=>X("/conversations",{method:"POST",body:JSON.stringify({title:e})}),getConversation:e=>X(`/conversations/${e}`),deleteConversation:e=>X("/conversations/"+e,{method:"DELETE"}),updateConversationTitle:(e,t)=>X(`/conversations/${e}`,{method:"PATCH",body:JSON.stringify({title:t})}),sendMessage:(e,t)=>fetch(`${yu}/chat`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({conversationId:e,message:t})}),streamMessage:async(e,t,l)=>{var s;const a=await fetch(`${yu}/chat/stream`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({conversationId:e,message:t})});if(!a.ok){const r=await a.json().catch(()=>({error:a.statusText}));throw new Error(r.error||`HTTP ${a.status}`)}const n=(s=a.body)==null?void 0:s.getReader();if(!n)throw new Error("No response body");const u=new TextDecoder;let i="";for(;;){const{done:r,value:f}=await n.read();if(r)break;i+=u.decode(f,{stream:!0});const h=i.split(`
|
|
61
|
+
`);i=h.pop()||"";let m="message";for(const d of h)if(d.startsWith("event: "))m=d.slice(7).trim();else if(d.startsWith("data: "))try{const g=JSON.parse(d.slice(6));l(m,g)}catch{}else d===""&&(m="message")}},listTasks:e=>X(`/tasks${e?`?conversationId=${e}`:""}`),getTask:e=>X(`/tasks/${e}`),cancelTask:e=>X(`/tasks/${e}`,{method:"PATCH",body:JSON.stringify({status:"cancelled"})}),listCollections:()=>X("/knowledge/collections"),listDocuments:e=>X(`/knowledge/documents${e?`?collection=${e}`:""}`),uploadDocument:(e,t="default")=>{const l=new FormData;return l.append("file",e),l.append("collection",t),fetch(`${yu}/knowledge/upload`,{method:"POST",body:l}).then(a=>a.json())},searchKnowledge:(e,t)=>X("/knowledge/search",{method:"POST",body:JSON.stringify({query:e,collection:t})}),deleteDocument:e=>X(`/knowledge/documents/${e}`,{method:"DELETE"}),listAgents:()=>X("/agents"),listTools:()=>X("/agents/tools"),listMcpServers:()=>X("/mcp/servers"),getMcpSuggestions:()=>X("/mcp/suggestions"),addMcpServer:e=>X("/mcp/servers",{method:"POST",body:JSON.stringify(e)}),connectMcpServer:e=>X(`/mcp/servers/${e}/connect`,{method:"POST"}),disconnectMcpServer:e=>X(`/mcp/servers/${e}/disconnect`,{method:"POST"}),removeMcpServer:e=>X(`/mcp/servers/${e}`,{method:"DELETE"}),getSettings:()=>X("/settings"),updateSettings:e=>X("/settings",{method:"PATCH",body:JSON.stringify(e)}),addProvider:e=>X("/settings/providers",{method:"POST",body:JSON.stringify(e)}),getSystemStats:()=>X("/settings/system"),getAuditLog:(e=100,t=0)=>X(`/settings/audit?limit=${e}&offset=${t}`),getMemory:()=>X("/memory"),getProfile:()=>X("/memory/profile"),searchMemory:e=>X(`/memory/search?q=${encodeURIComponent(e)}`),getAppCatalog:()=>X("/apps/catalog"),listApps:e=>{const t=new URLSearchParams;e!=null&&e.search&&t.set("search",e.search),e!=null&&e.category&&t.set("category",e.category);const l=t.toString();return X(`/apps${l?`?${l}`:""}`)},getApp:e=>X(`/apps/${e}`),getAppCategories:()=>X("/apps/categories")},Hh=Uh((e,t)=>({conversations:[],activeConversationId:null,messages:[],isStreaming:!1,streamingContent:"",activeAgent:null,error:null,loadConversations:async()=>{try{const l=await Y.listConversations();e({conversations:l})}catch(l){console.error("Failed to load conversations:",l)}},selectConversation:async l=>{e({activeConversationId:l});const a=await Y.getConversation(l);e({messages:a.messages||[]})},createConversation:async()=>{const{id:l}=await Y.createConversation();return await t().loadConversations(),e({activeConversationId:l,messages:[]}),l},deleteConversation:async l=>{await Y.deleteConversation(l),t().activeConversationId===l&&e({activeConversationId:null,messages:[]}),await t().loadConversations()},sendMessage:async l=>{let n=t().activeConversationId;const u={id:crypto.randomUUID(),role:"user",content:l,createdAt:new Date().toISOString()};e(i=>({messages:[...i.messages,u],error:null})),e({isStreaming:!0,streamingContent:"",activeAgent:null});try{let i="orchestrator",s="";await Y.streamMessage(n,l,(f,h)=>{switch(f){case"conversation":h.conversationId&&(n=h.conversationId,e({activeConversationId:n}));break;case"agent_switch":i=h.agent||"orchestrator",e({activeAgent:i});break;case"text_delta":h.text&&(s+=h.text,e({streamingContent:s}));break;case"text":h.text&&(s=h.text,e({streamingContent:s}));break;case"tool_call":e(m=>({streamingContent:m.streamingContent+`
|
|
62
|
+
|
|
63
|
+
> Using tool: **${h.tool}**
|
|
64
|
+
`}));break;case"tool_result":break;case"task_update":break;case"done":h.content&&(s=h.content);break;case"error":throw new Error(h.message||"Unknown error")}});const r={id:crypto.randomUUID(),role:"assistant",content:s,agentName:i,createdAt:new Date().toISOString()};e(f=>({messages:[...f.messages,r],streamingContent:""})),await t().loadConversations()}catch(i){console.error("Chat error:",i),e({error:i.message||"Failed to get response"});const s={id:crypto.randomUUID(),role:"assistant",content:`Error: ${i.message||"Failed to get response from AI"}`,createdAt:new Date().toISOString()};e(r=>({messages:[...r.messages,s]}))}finally{e({isStreaming:!1,streamingContent:"",activeAgent:null})}}}));/**
|
|
65
|
+
* @license lucide-react v0.460.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const Tv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bh=(...e)=>e.filter((t,l,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===l).join(" ").trim();/**
|
|
70
|
+
* @license lucide-react v0.460.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/var Mv={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"};/**
|
|
75
|
+
* @license lucide-react v0.460.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const Cv=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:l=2,absoluteStrokeWidth:a,className:n="",children:u,iconNode:i,...s},r)=>p.createElement("svg",{ref:r,...Mv,width:t,height:t,stroke:e,strokeWidth:a?Number(l)*24/Number(t):l,className:Bh("lucide",n),...s},[...i.map(([f,h])=>p.createElement(f,h)),...Array.isArray(u)?u:[u]]));/**
|
|
80
|
+
* @license lucide-react v0.460.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const w=(e,t)=>{const l=p.forwardRef(({className:a,...n},u)=>p.createElement(Cv,{ref:u,iconNode:t,className:Bh(`lucide-${Tv(e)}`,a),...n}));return l.displayName=`${e}`,l};/**
|
|
85
|
+
* @license lucide-react v0.460.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const Lh=w("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"}]]);/**
|
|
90
|
+
* @license lucide-react v0.460.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const nf=w("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
95
|
+
* @license lucide-react v0.460.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const qh=w("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/**
|
|
100
|
+
* @license lucide-react v0.460.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const ls=w("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
105
|
+
* @license lucide-react v0.460.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const hi=w("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"}]]);/**
|
|
110
|
+
* @license lucide-react v0.460.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const Pa=w("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
115
|
+
* @license lucide-react v0.460.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const zv=w("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
120
|
+
* @license lucide-react v0.460.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const wv=w("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"}]]);/**
|
|
125
|
+
* @license lucide-react v0.460.0 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const yi=w("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
130
|
+
* @license lucide-react v0.460.0 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const Yh=w("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
135
|
+
* @license lucide-react v0.460.0 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const hr=w("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"}]]);/**
|
|
140
|
+
* @license lucide-react v0.460.0 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const Ov=w("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
145
|
+
* @license lucide-react v0.460.0 - ISC
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the ISC license.
|
|
148
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
+
*/const yr=w("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
150
|
+
* @license lucide-react v0.460.0 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const Dv=w("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
|
|
155
|
+
* @license lucide-react v0.460.0 - ISC
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the ISC license.
|
|
158
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
+
*/const kh=w("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"}]]);/**
|
|
160
|
+
* @license lucide-react v0.460.0 - ISC
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the ISC license.
|
|
163
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/const Rv=w("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
165
|
+
* @license lucide-react v0.460.0 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/const La=w("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"}]]);/**
|
|
170
|
+
* @license lucide-react v0.460.0 - ISC
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the ISC license.
|
|
173
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
+
*/const _v=w("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"}]]);/**
|
|
175
|
+
* @license lucide-react v0.460.0 - ISC
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the ISC license.
|
|
178
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/const Uv=w("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"}]]);/**
|
|
180
|
+
* @license lucide-react v0.460.0 - ISC
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the ISC license.
|
|
183
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
+
*/const Hv=w("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
185
|
+
* @license lucide-react v0.460.0 - ISC
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the ISC license.
|
|
188
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
+
*/const Bv=w("FolderKanban",[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]]);/**
|
|
190
|
+
* @license lucide-react v0.460.0 - ISC
|
|
191
|
+
*
|
|
192
|
+
* This source code is licensed under the ISC license.
|
|
193
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
+
*/const Gh=w("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|
195
|
+
* @license lucide-react v0.460.0 - ISC
|
|
196
|
+
*
|
|
197
|
+
* This source code is licensed under the ISC license.
|
|
198
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
+
*/const Xh=w("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"}]]);/**
|
|
200
|
+
* @license lucide-react v0.460.0 - ISC
|
|
201
|
+
*
|
|
202
|
+
* This source code is licensed under the ISC license.
|
|
203
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
+
*/const Qh=w("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"}]]);/**
|
|
205
|
+
* @license lucide-react v0.460.0 - ISC
|
|
206
|
+
*
|
|
207
|
+
* This source code is licensed under the ISC license.
|
|
208
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
+
*/const Lv=w("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"}]]);/**
|
|
210
|
+
* @license lucide-react v0.460.0 - ISC
|
|
211
|
+
*
|
|
212
|
+
* This source code is licensed under the ISC license.
|
|
213
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
+
*/const qv=w("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
215
|
+
* @license lucide-react v0.460.0 - ISC
|
|
216
|
+
*
|
|
217
|
+
* This source code is licensed under the ISC license.
|
|
218
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
+
*/const Vh=w("MemoryStick",[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]]);/**
|
|
220
|
+
* @license lucide-react v0.460.0 - ISC
|
|
221
|
+
*
|
|
222
|
+
* This source code is licensed under the ISC license.
|
|
223
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
+
*/const gr=w("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"}]]);/**
|
|
225
|
+
* @license lucide-react v0.460.0 - ISC
|
|
226
|
+
*
|
|
227
|
+
* This source code is licensed under the ISC license.
|
|
228
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
+
*/const Yv=w("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
|
|
230
|
+
* @license lucide-react v0.460.0 - ISC
|
|
231
|
+
*
|
|
232
|
+
* This source code is licensed under the ISC license.
|
|
233
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
+
*/const kv=w("PenTool",[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]]);/**
|
|
235
|
+
* @license lucide-react v0.460.0 - ISC
|
|
236
|
+
*
|
|
237
|
+
* This source code is licensed under the ISC license.
|
|
238
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
+
*/const Gv=w("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
240
|
+
* @license lucide-react v0.460.0 - ISC
|
|
241
|
+
*
|
|
242
|
+
* This source code is licensed under the ISC license.
|
|
243
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
244
|
+
*/const as=w("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
|
|
245
|
+
* @license lucide-react v0.460.0 - ISC
|
|
246
|
+
*
|
|
247
|
+
* This source code is licensed under the ISC license.
|
|
248
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
249
|
+
*/const Zh=w("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
250
|
+
* @license lucide-react v0.460.0 - ISC
|
|
251
|
+
*
|
|
252
|
+
* This source code is licensed under the ISC license.
|
|
253
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
254
|
+
*/const uf=w("PowerOff",[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
255
|
+
* @license lucide-react v0.460.0 - ISC
|
|
256
|
+
*
|
|
257
|
+
* This source code is licensed under the ISC license.
|
|
258
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
259
|
+
*/const Xv=w("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
|
|
260
|
+
* @license lucide-react v0.460.0 - ISC
|
|
261
|
+
*
|
|
262
|
+
* This source code is licensed under the ISC license.
|
|
263
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
264
|
+
*/const cf=w("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"}]]);/**
|
|
265
|
+
* @license lucide-react v0.460.0 - ISC
|
|
266
|
+
*
|
|
267
|
+
* This source code is licensed under the ISC license.
|
|
268
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
269
|
+
*/const Qv=w("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"}]]);/**
|
|
270
|
+
* @license lucide-react v0.460.0 - ISC
|
|
271
|
+
*
|
|
272
|
+
* This source code is licensed under the ISC license.
|
|
273
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
274
|
+
*/const On=w("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
275
|
+
* @license lucide-react v0.460.0 - ISC
|
|
276
|
+
*
|
|
277
|
+
* This source code is licensed under the ISC license.
|
|
278
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
279
|
+
*/const Vv=w("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
280
|
+
* @license lucide-react v0.460.0 - ISC
|
|
281
|
+
*
|
|
282
|
+
* This source code is licensed under the ISC license.
|
|
283
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
284
|
+
*/const Zv=w("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"}]]);/**
|
|
285
|
+
* @license lucide-react v0.460.0 - ISC
|
|
286
|
+
*
|
|
287
|
+
* This source code is licensed under the ISC license.
|
|
288
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
+
*/const Zu=w("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
290
|
+
* @license lucide-react v0.460.0 - ISC
|
|
291
|
+
*
|
|
292
|
+
* This source code is licensed under the ISC license.
|
|
293
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
294
|
+
*/const vr=w("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
|
|
295
|
+
* @license lucide-react v0.460.0 - ISC
|
|
296
|
+
*
|
|
297
|
+
* This source code is licensed under the ISC license.
|
|
298
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
299
|
+
*/const pr=w("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
|
300
|
+
* @license lucide-react v0.460.0 - ISC
|
|
301
|
+
*
|
|
302
|
+
* This source code is licensed under the ISC license.
|
|
303
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
304
|
+
*/const Kv=w("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
|
|
305
|
+
* @license lucide-react v0.460.0 - ISC
|
|
306
|
+
*
|
|
307
|
+
* This source code is licensed under the ISC license.
|
|
308
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
309
|
+
*/const Jv=w("Tags",[["path",{d:"m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19",key:"1cbfv1"}],["path",{d:"M9.586 5.586A2 2 0 0 0 8.172 5H3a1 1 0 0 0-1 1v5.172a2 2 0 0 0 .586 1.414L8.29 18.29a2.426 2.426 0 0 0 3.42 0l3.58-3.58a2.426 2.426 0 0 0 0-3.42z",key:"135mg7"}],["circle",{cx:"6.5",cy:"9.5",r:".5",fill:"currentColor",key:"5pm5xn"}]]);/**
|
|
310
|
+
* @license lucide-react v0.460.0 - ISC
|
|
311
|
+
*
|
|
312
|
+
* This source code is licensed under the ISC license.
|
|
313
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
314
|
+
*/const $v=w("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
315
|
+
* @license lucide-react v0.460.0 - ISC
|
|
316
|
+
*
|
|
317
|
+
* This source code is licensed under the ISC license.
|
|
318
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
319
|
+
*/const xr=w("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"}]]);/**
|
|
320
|
+
* @license lucide-react v0.460.0 - ISC
|
|
321
|
+
*
|
|
322
|
+
* This source code is licensed under the ISC license.
|
|
323
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
324
|
+
*/const Wv=w("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"}]]);/**
|
|
325
|
+
* @license lucide-react v0.460.0 - ISC
|
|
326
|
+
*
|
|
327
|
+
* This source code is licensed under the ISC license.
|
|
328
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
329
|
+
*/const Fv=w("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
|
330
|
+
* @license lucide-react v0.460.0 - ISC
|
|
331
|
+
*
|
|
332
|
+
* This source code is licensed under the ISC license.
|
|
333
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
334
|
+
*/const ns=w("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
335
|
+
* @license lucide-react v0.460.0 - ISC
|
|
336
|
+
*
|
|
337
|
+
* This source code is licensed under the ISC license.
|
|
338
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
339
|
+
*/const Kh=w("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"}]]);/**
|
|
340
|
+
* @license lucide-react v0.460.0 - ISC
|
|
341
|
+
*
|
|
342
|
+
* This source code is licensed under the ISC license.
|
|
343
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
344
|
+
*/const Iv=w("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Pv=[{path:"/",icon:gr,label:"Chat"},{path:"/tasks",icon:Lv,label:"Tasks"},{path:"/knowledge",icon:ls,label:"Knowledge"},{path:"/agents",icon:hi,label:"Agents"},{path:"/mcp",icon:as,label:"MCP Servers"},{path:"/memory",icon:Pa,label:"Memory"},{path:"/audit",icon:Zu,label:"Audit Log"},{path:"/apps",icon:vr,label:"Apps"},{path:"/settings",icon:Zv,label:"Settings"}];function ep(){const e=Ht(),{conversations:t,activeConversationId:l,loadConversations:a,selectConversation:n,createConversation:u,deleteConversation:i}=Hh(),[s,r]=p.useState(null),f=e.pathname==="/";p.useEffect(()=>{a()},[]),p.useEffect(()=>{const m=()=>{Y.getSystemStats().then(r).catch(()=>{})};m();const d=setInterval(m,3e3);return()=>clearInterval(d)},[]);const h=m=>`${(m/1073741824).toFixed(1)} GB`;return c.jsxs("aside",{className:"w-64 h-screen bg-surface border-r border-border flex flex-col shrink-0",children:[c.jsxs("div",{className:"h-14 flex items-center gap-2.5 px-4 border-b border-border",children:[c.jsx("div",{className:"w-8 h-8 bg-primary rounded-lg flex items-center justify-center",children:c.jsx(Lh,{className:"w-4 h-4 text-white"})}),c.jsx("span",{className:"font-semibold text-foreground",children:"Agent DJ"})]}),c.jsx("nav",{className:"px-2 py-3 space-y-0.5",children:Pv.map(({path:m,icon:d,label:g})=>c.jsxs(Rh,{to:m,className:({isActive:x})=>`flex items-center gap-2.5 px-3 py-2 rounded-lg text-sm transition-colors ${x?"bg-primary/10 text-primary font-medium":"text-foreground-secondary hover:bg-surface-hover hover:text-foreground"}`,children:[c.jsx(d,{className:"w-4 h-4"}),g]},m))}),f&&c.jsxs("div",{className:"flex-1 overflow-y-auto border-t border-border mt-2",children:[c.jsxs("div",{className:"flex items-center justify-between px-4 py-2",children:[c.jsx("span",{className:"text-xs font-medium text-muted uppercase tracking-wider",children:"Chats"}),c.jsx("button",{onClick:()=>u(),className:"p-1 rounded hover:bg-surface-hover text-muted hover:text-foreground transition-colors",title:"New chat",children:c.jsx(Zh,{className:"w-3.5 h-3.5"})})]}),c.jsx("div",{className:"px-2 space-y-0.5",children:t.map(m=>c.jsxs("div",{className:`group flex items-center gap-2 px-3 py-2 rounded-lg text-sm cursor-pointer transition-colors ${l===m.id?"bg-surface-hover text-foreground":"text-foreground-secondary hover:bg-surface-hover"}`,onClick:()=>n(m.id),children:[c.jsx(gr,{className:"w-3.5 h-3.5 shrink-0"}),c.jsx("span",{className:"truncate flex-1",children:m.title}),c.jsx("button",{onClick:d=>{d.stopPropagation(),i(m.id)},className:"opacity-0 group-hover:opacity-100 p-0.5 rounded hover:bg-danger/10 text-muted hover:text-danger transition-all",children:c.jsx(xr,{className:"w-3 h-3"})})]},m.id))})]}),s&&c.jsxs("div",{className:"border-t border-border p-3 space-y-2.5",children:[c.jsx("span",{className:"text-xs font-medium text-muted uppercase tracking-wider",children:"System"}),c.jsxs("div",{className:"space-y-1",children:[c.jsxs("div",{className:"flex items-center justify-between text-xs",children:[c.jsxs("span",{className:"flex items-center gap-1.5 text-foreground-secondary",children:[c.jsx(kh,{className:"w-3 h-3"})," CPU"]}),c.jsxs("span",{className:s.cpu.loadPercent>80?"text-danger":s.cpu.loadPercent>50?"text-warning":"text-success",children:[s.cpu.loadPercent,"%"]})]}),c.jsx("div",{className:"h-1.5 bg-background rounded-full overflow-hidden",children:c.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${s.cpu.loadPercent>80?"bg-danger":s.cpu.loadPercent>50?"bg-warning":"bg-success"}`,style:{width:`${s.cpu.loadPercent}%`}})})]}),c.jsxs("div",{className:"space-y-1",children:[c.jsxs("div",{className:"flex items-center justify-between text-xs",children:[c.jsxs("span",{className:"flex items-center gap-1.5 text-foreground-secondary",children:[c.jsx(Vh,{className:"w-3 h-3"})," RAM"]}),c.jsxs("span",{className:s.memory.usagePercent>85?"text-danger":s.memory.usagePercent>60?"text-warning":"text-success",children:[h(s.memory.usedBytes)," / ",h(s.memory.totalBytes)]})]}),c.jsx("div",{className:"h-1.5 bg-background rounded-full overflow-hidden",children:c.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${s.memory.usagePercent>85?"bg-danger":s.memory.usagePercent>60?"bg-warning":"bg-success"}`,style:{width:`${s.memory.usagePercent}%`}})})]}),c.jsxs("div",{className:"text-xs text-muted",children:["Uptime: ",s.uptime]})]})]})}const Jh=Uh(e=>({tasks:[],loadTasks:async t=>{const l=await Y.listTasks(t);e({tasks:l})},cancelTask:async t=>{await Y.cancelTask(t),e(l=>({tasks:l.tasks.map(a=>a.id===t?{...a,status:"cancelled"}:a)}))}})),tp={orchestrator:"text-primary",coder:"text-accent",researcher:"text-warning",writer:"text-success",system:"text-foreground-secondary",rag:"text-purple-400"};function ac({role:e,content:t,agentName:l,isStreaming:a}){return e==="user"?c.jsxs("div",{className:"flex gap-3 animate-fade-in",children:[c.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:c.jsx(ns,{className:"w-4 h-4 text-primary"})}),c.jsx("div",{className:"flex-1 pt-1",children:c.jsx("p",{className:"text-sm text-foreground whitespace-pre-wrap",children:t})})]}):c.jsxs("div",{className:"flex gap-3 animate-fade-in",children:[c.jsx("div",{className:"w-8 h-8 rounded-lg bg-surface border border-border flex items-center justify-center shrink-0",children:c.jsx(hi,{className:"w-4 h-4 text-foreground-secondary"})}),c.jsxs("div",{className:"flex-1 pt-1 min-w-0",children:[l&&c.jsxs("div",{className:"flex items-center gap-1.5 mb-1",children:[c.jsx("span",{className:`text-xs font-medium ${tp[l]||"text-muted"}`,children:l}),a&&c.jsxs("span",{className:"flex gap-0.5",children:[c.jsx("span",{className:"w-1 h-1 rounded-full bg-primary animate-pulse"}),c.jsx("span",{className:"w-1 h-1 rounded-full bg-primary animate-pulse [animation-delay:150ms]"}),c.jsx("span",{className:"w-1 h-1 rounded-full bg-primary animate-pulse [animation-delay:300ms]"})]})]}),c.jsx("div",{className:"prose text-sm",children:lp(t)}),a&&!t&&c.jsxs("div",{className:"flex gap-1 py-2",children:[c.jsx("div",{className:"w-2 h-2 rounded-full bg-muted animate-bounce"}),c.jsx("div",{className:"w-2 h-2 rounded-full bg-muted animate-bounce [animation-delay:150ms]"}),c.jsx("div",{className:"w-2 h-2 rounded-full bg-muted animate-bounce [animation-delay:300ms]"})]})]})]})}function lp(e){return e.split(/(```[\s\S]*?```)/g).map((l,a)=>{if(l.startsWith("```")){const u=l.slice(3,-3).split(`
|
|
345
|
+
`),i=u[0]||"",s=u.slice(1).join(`
|
|
346
|
+
`);return c.jsxs("pre",{className:"bg-background border border-border rounded-lg p-3 overflow-x-auto my-2",children:[i&&c.jsx("div",{className:"text-xs text-muted mb-2 font-mono",children:i}),c.jsx("code",{className:"text-sm font-mono text-foreground",children:s})]},a)}let n=l.replace(/\*\*(.*?)\*\*/g,'<strong class="text-foreground font-semibold">$1</strong>');return n=n.replace(/`([^`]+)`/g,'<code class="bg-surface px-1.5 py-0.5 rounded text-xs font-mono text-accent">$1</code>'),n=n.replace(/\[([^\]]+)\]\(([^)]+)\)/g,'<a href="$2" class="text-primary hover:text-primary-hover underline" target="_blank" rel="noopener">$1</a>'),c.jsx("span",{dangerouslySetInnerHTML:{__html:n}},a)})}const sf={pending:{icon:yr,color:"text-muted",bg:"bg-muted/10",label:"Pending"},running:{icon:qv,color:"text-primary",bg:"bg-primary/10",label:"Running"},done:{icon:Yh,color:"text-success",bg:"bg-success/10",label:"Done"},failed:{icon:hr,color:"text-danger",bg:"bg-danger/10",label:"Failed"},cancelled:{icon:qh,color:"text-warning",bg:"bg-warning/10",label:"Cancelled"}},ap={orchestrator:"border-primary/30",coder:"border-accent/30",researcher:"border-warning/30",writer:"border-success/30",system:"border-foreground-secondary/30",rag:"border-purple-400/30"};function us({task:e,onCancel:t}){const l=sf[e.status]||sf.pending,a=l.icon,n=ap[e.agentName]||"border-border",u=e.startedAt?np(new Date(e.completedAt||Date.now()).getTime()-new Date(e.startedAt).getTime()):null;return c.jsxs("div",{className:`card border-l-2 ${n} animate-slide-up`,children:[c.jsxs("div",{className:"flex items-start justify-between gap-2",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsxs("span",{className:`badge ${l.bg} ${l.color}`,children:[c.jsx(a,{className:`w-3 h-3 ${e.status==="running"?"animate-spin":""}`}),l.label]}),c.jsxs("span",{className:"text-xs text-muted flex items-center gap-1",children:[c.jsx(hi,{className:"w-3 h-3"}),e.agentName]})]}),c.jsx("h4",{className:"text-sm font-medium text-foreground truncate",children:e.title})]}),e.status==="running"&&t&&c.jsx("button",{onClick:()=>t(e.id),className:"btn-ghost btn-sm text-muted hover:text-danger",children:c.jsx(qh,{className:"w-3 h-3"})})]}),e.status==="running"&&c.jsxs("div",{className:"mt-3",children:[c.jsx("div",{className:"h-1.5 bg-background rounded-full overflow-hidden",children:c.jsx("div",{className:"h-full bg-primary rounded-full transition-all duration-300",style:{width:`${e.progress||0}%`}})}),e.progress>0&&c.jsxs("span",{className:"text-xs text-muted mt-1",children:[e.progress,"%"]})]}),e.output&&e.status==="done"&&c.jsx("div",{className:"mt-2 p-2 bg-background rounded-lg",children:c.jsx("p",{className:"text-xs text-foreground-secondary font-mono line-clamp-3",children:e.output.slice(0,200)})}),e.error&&c.jsx("div",{className:"mt-2 p-2 bg-danger/5 rounded-lg border border-danger/20",children:c.jsx("p",{className:"text-xs text-danger font-mono",children:e.error})}),c.jsxs("div",{className:"flex items-center justify-between mt-2",children:[c.jsx("span",{className:"text-xs text-muted",children:new Date(e.createdAt).toLocaleTimeString()}),u&&c.jsx("span",{className:"text-xs text-muted",children:u})]})]})}function np(e){if(e<1e3)return`${e}ms`;const t=Math.floor(e/1e3);if(t<60)return`${t}s`;const l=Math.floor(t/60),a=t%60;return`${l}m ${a}s`}function up(){const{messages:e,activeConversationId:t,isStreaming:l,streamingContent:a,activeAgent:n,sendMessage:u,createConversation:i}=Hh(),{tasks:s,loadTasks:r,cancelTask:f}=Jh(),[h,m]=p.useState(""),d=p.useRef(null),g=p.useRef(null);p.useEffect(()=>{if(t){r(t);const o=setInterval(()=>r(t),2e3);return()=>clearInterval(o)}},[t]),p.useEffect(()=>{var o;(o=d.current)==null||o.scrollIntoView({behavior:"smooth"})},[e,a]);const x=async()=>{const o=h.trim();!o||l||(m(""),await u(o))},S=o=>{o.key==="Enter"&&!o.shiftKey&&(o.preventDefault(),x())},j=s.filter(o=>o.status==="running"||o.status==="pending"),y=s.filter(o=>o.status==="done"||o.status==="failed").slice(0,5);return c.jsxs("div",{className:"flex h-full",children:[c.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[c.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-4 space-y-6",children:[e.length===0&&!l&&c.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center",children:[c.jsx("div",{className:"w-16 h-16 rounded-2xl bg-primary/10 flex items-center justify-center mb-4",children:c.jsx(pr,{className:"w-8 h-8 text-primary"})}),c.jsx("h2",{className:"text-xl font-semibold text-foreground mb-2",children:"Agent DJ"}),c.jsx("p",{className:"text-sm text-muted max-w-md",children:"Your AI team is ready. Ask me to analyze code, research topics, write documents, manage files, or automate tasks. Every action is tracked on the task board."}),c.jsx("div",{className:"flex flex-wrap gap-2 mt-6 max-w-lg justify-center",children:["Analyze my project structure","Search the web for React best practices","List all large files on my system","Write a README for this project"].map(o=>c.jsx("button",{onClick:()=>{var v;m(o),(v=g.current)==null||v.focus()},className:"btn-secondary btn-sm text-xs",children:o},o))})]}),e.map(o=>c.jsx(ac,{role:o.role,content:o.content,agentName:o.agentName},o.id)),l&&a&&c.jsx(ac,{role:"assistant",content:a,agentName:n||void 0,isStreaming:!0}),l&&!a&&c.jsx(ac,{role:"assistant",content:"",agentName:n||void 0,isStreaming:!0}),c.jsx("div",{ref:d})]}),c.jsxs("div",{className:"border-t border-border px-6 py-4",children:[c.jsx("div",{className:"relative flex items-end gap-2 max-w-4xl mx-auto",children:c.jsxs("div",{className:"flex-1 relative",children:[c.jsx("textarea",{ref:g,value:h,onChange:o=>m(o.target.value),onKeyDown:S,placeholder:"Send a message...",rows:1,className:"input resize-none pr-12 min-h-[44px] max-h-[200px]",style:{height:"auto"},onInput:o=>{const v=o.target;v.style.height="auto",v.style.height=`${Math.min(v.scrollHeight,200)}px`},disabled:l}),c.jsx("button",{onClick:x,disabled:!h.trim()||l,className:"absolute right-2 bottom-2 p-1.5 rounded-lg bg-primary text-white hover:bg-primary-hover disabled:opacity-30 disabled:hover:bg-primary transition-colors",children:c.jsx(Vv,{className:"w-4 h-4"})})]})}),c.jsx("p",{className:"text-xs text-muted text-center mt-2",children:"Press Enter to send, Shift+Enter for new line"})]})]}),c.jsx("div",{className:"w-80 border-l border-border bg-surface overflow-y-auto shrink-0 hidden lg:block",children:c.jsxs("div",{className:"p-4",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Task Board"}),j.length===0&&y.length===0&&c.jsx("div",{className:"text-center py-8",children:c.jsx("p",{className:"text-xs text-muted",children:"Tasks will appear here when agents perform actions"})}),j.length>0&&c.jsxs("div",{className:"space-y-2 mb-4",children:[c.jsx("span",{className:"text-xs font-medium text-muted uppercase tracking-wider",children:"Active"}),j.map(o=>c.jsx(us,{task:o,onCancel:f},o.id))]}),y.length>0&&c.jsxs("div",{className:"space-y-2",children:[c.jsx("span",{className:"text-xs font-medium text-muted uppercase tracking-wider",children:"Recent"}),y.map(o=>c.jsx(us,{task:o},o.id))]})]})})]})}function ip(){const{tasks:e,loadTasks:t,cancelTask:l}=Jh();p.useEffect(()=>{t();const r=setInterval(()=>t(),3e3);return()=>clearInterval(r)},[]);const a=e.filter(r=>r.status==="pending"),n=e.filter(r=>r.status==="running"),u=e.filter(r=>r.status==="done"),i=e.filter(r=>r.status==="failed"||r.status==="cancelled"),s=[{title:"Pending",icon:yr,tasks:a,color:"text-muted"},{title:"Running",icon:Gv,tasks:n,color:"text-primary"},{title:"Done",icon:Yh,tasks:u,color:"text-success"},{title:"Failed",icon:hr,tasks:i,color:"text-danger"}];return c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{className:"border-b border-border px-6 py-4",children:[c.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"Task Board"}),c.jsx("p",{className:"text-sm text-muted mt-0.5",children:"Track agent actions in real-time"})]}),c.jsx("div",{className:"flex-1 overflow-x-auto p-6",children:c.jsx("div",{className:"flex gap-4 min-w-max h-full",children:s.map(({title:r,icon:f,tasks:h,color:m})=>c.jsxs("div",{className:"w-80 flex flex-col",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[c.jsx(f,{className:`w-4 h-4 ${m}`}),c.jsx("h3",{className:"text-sm font-medium text-foreground",children:r}),c.jsx("span",{className:"badge-muted",children:h.length})]}),c.jsxs("div",{className:"flex-1 space-y-2 overflow-y-auto",children:[h.map(d=>c.jsx(us,{task:d,onCancel:d.status==="running"?l:void 0},d.id)),h.length===0&&c.jsx("div",{className:"card border-dashed text-center py-8",children:c.jsx("p",{className:"text-xs text-muted",children:"No tasks"})})]})]},r))})})]})}function cp(){const[e,t]=p.useState([]),[l,a]=p.useState([]),[n,u]=p.useState(null),[i,s]=p.useState(""),[r,f]=p.useState([]),[h,m]=p.useState(!1),d=p.useRef(null);p.useEffect(()=>{g()},[n]);const g=async()=>{const[o,v]=await Promise.all([Y.listCollections(),Y.listDocuments(n||void 0)]);t(o),a(v)},x=async o=>{const v=o.target.files;if(!(!v||v.length===0)){m(!0);try{for(const b of v)await Y.uploadDocument(b,n||"default");await g()}catch(b){console.error("Upload error:",b)}finally{m(!1),d.current&&(d.current.value="")}}},S=async()=>{if(!i.trim())return;const o=await Y.searchKnowledge(i,n||void 0);f(o)},j=async o=>{await Y.deleteDocument(o),await g()},y=o=>o<1024?`${o} B`:o<1048576?`${(o/1024).toFixed(1)} KB`:`${(o/1048576).toFixed(1)} MB`;return c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsx("div",{className:"border-b border-border px-6 py-4",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"Knowledge Base"}),c.jsx("p",{className:"text-sm text-muted mt-0.5",children:"Upload documents for RAG search"})]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("button",{onClick:()=>{var o;return(o=d.current)==null?void 0:o.click()},className:"btn-primary btn-sm",disabled:h,children:[c.jsx(Fv,{className:"w-3.5 h-3.5"}),h?"Uploading...":"Upload"]}),c.jsx("input",{ref:d,type:"file",multiple:!0,accept:".pdf,.docx,.txt,.md,.json,.yaml,.yml,.py,.ts,.js,.go,.rs,.java,.html,.css",className:"hidden",onChange:x})]})]})}),c.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[c.jsxs("div",{className:"w-56 border-r border-border p-4 overflow-y-auto",children:[c.jsx("h3",{className:"text-xs font-medium text-muted uppercase tracking-wider mb-2",children:"Collections"}),c.jsxs("div",{className:"space-y-1",children:[c.jsxs("button",{onClick:()=>u(null),className:`w-full flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-left transition-colors ${n?"text-foreground-secondary hover:bg-surface-hover":"bg-primary/10 text-primary"}`,children:[c.jsx(ls,{className:"w-3.5 h-3.5"}),"All Documents"]}),e.map(o=>c.jsxs("button",{onClick:()=>u(o.name),className:`w-full flex items-center justify-between gap-2 px-3 py-2 rounded-lg text-sm text-left transition-colors ${n===o.name?"bg-primary/10 text-primary":"text-foreground-secondary hover:bg-surface-hover"}`,children:[c.jsxs("span",{className:"flex items-center gap-2 truncate",children:[c.jsx(Gh,{className:"w-3.5 h-3.5 shrink-0"}),o.name]}),c.jsx("span",{className:"badge-muted",children:o.documentCount})]},o.name))]})]}),c.jsxs("div",{className:"flex-1 p-6 overflow-y-auto",children:[c.jsxs("div",{className:"flex gap-2 mb-6",children:[c.jsxs("div",{className:"flex-1 relative",children:[c.jsx(On,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted"}),c.jsx("input",{type:"text",value:i,onChange:o=>s(o.target.value),onKeyDown:o=>o.key==="Enter"&&S(),placeholder:"Search knowledge base...",className:"input pl-10"})]}),c.jsx("button",{onClick:S,className:"btn-primary btn-sm",children:"Search"})]}),r.length>0&&c.jsxs("div",{className:"mb-6",children:[c.jsxs("h3",{className:"text-sm font-medium text-foreground mb-3",children:["Search Results (",r.length,")"]}),c.jsx("div",{className:"space-y-2",children:r.map((o,v)=>c.jsxs("div",{className:"card",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[c.jsx("span",{className:"badge-info",children:o.collection}),c.jsx("span",{className:"text-xs text-muted",children:o.filename}),c.jsxs("span",{className:"text-xs text-muted",children:["Score: ",o.score.toFixed(3)]})]}),c.jsx("p",{className:"text-sm text-foreground-secondary line-clamp-3",children:o.content})]},v))})]}),c.jsxs("h3",{className:"text-sm font-medium text-foreground mb-3",children:["Documents (",l.length,")"]}),l.length===0?c.jsxs("div",{className:"card border-dashed text-center py-12",children:[c.jsx(ls,{className:"w-8 h-8 text-muted mx-auto mb-3"}),c.jsx("p",{className:"text-sm text-muted",children:"No documents yet"}),c.jsx("p",{className:"text-xs text-muted mt-1",children:"Upload files to build your knowledge base"})]}):c.jsx("div",{className:"space-y-2",children:l.map(o=>c.jsxs("div",{className:"card flex items-center gap-3 group",children:[c.jsx(Hv,{className:"w-5 h-5 text-muted shrink-0"}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:o.filename}),c.jsxs("p",{className:"text-xs text-muted",children:[o.chunk_count," chunks · ",y(o.size_bytes)," · ",o.collection]})]}),c.jsx("span",{className:"text-xs text-muted",children:new Date(o.created_at).toLocaleDateString()}),c.jsx("button",{onClick:()=>j(o.id),className:"opacity-0 group-hover:opacity-100 p-1.5 rounded-lg hover:bg-danger/10 text-muted hover:text-danger transition-all",children:c.jsx(xr,{className:"w-3.5 h-3.5"})})]},o.id))})]})]})]})}const sp={orchestrator:Pa,coder:Dv,researcher:On,writer:kv,system:$v,rag:Rv},rp={orchestrator:"bg-primary/10 text-primary border-primary/20",coder:"bg-accent/10 text-accent border-accent/20",researcher:"bg-warning/10 text-warning border-warning/20",writer:"bg-success/10 text-success border-success/20",system:"bg-foreground-secondary/10 text-foreground-secondary border-foreground-secondary/20",rag:"bg-purple-400/10 text-purple-400 border-purple-400/20"};function op(){const[e,t]=p.useState([]),[l,a]=p.useState([]);return p.useEffect(()=>{Promise.all([Y.listAgents(),Y.listTools()]).then(([n,u])=>{t(n),a(u)})},[]),c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{className:"border-b border-border px-6 py-4",children:[c.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"Agents"}),c.jsx("p",{className:"text-sm text-muted mt-0.5",children:"Your AI team of specialized agents"})]}),c.jsxs("div",{className:"flex-1 overflow-y-auto p-6",children:[c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4 mb-8",children:e.map(n=>{const u=sp[n.name]||hi,i=rp[n.name]||"bg-surface text-muted";return c.jsx("div",{className:"card hover:border-border-hover transition-colors",children:c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx("div",{className:`w-10 h-10 rounded-xl flex items-center justify-center ${i} border`,children:c.jsx(u,{className:"w-5 h-5"})}),c.jsxs("div",{className:"flex-1",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h3",{className:"text-sm font-semibold text-foreground capitalize",children:n.name}),c.jsxs("div",{className:"flex items-center gap-1",children:[n.enabled?c.jsx(yi,{className:"w-3.5 h-3.5 text-success"}):c.jsx(Ov,{className:"w-3.5 h-3.5 text-muted"}),c.jsx("span",{className:"text-xs text-muted",children:n.enabled?"Active":"Disabled"})]})]}),c.jsx("p",{className:"text-xs text-foreground-secondary mt-1",children:n.description}),c.jsx("div",{className:"flex items-center gap-1 mt-3",children:c.jsx("span",{className:`badge ${n.status==="running"?"badge-warning":"badge-muted"}`,children:n.status||"idle"})})]})]})},n.name)})}),c.jsxs("div",{children:[c.jsxs("h3",{className:"text-sm font-medium text-foreground mb-3 flex items-center gap-2",children:[c.jsx(Kh,{className:"w-4 h-4"}),"Available Tools (",l.length,")"]}),c.jsx("div",{className:"flex flex-wrap gap-2",children:l.map(n=>c.jsx("span",{className:"badge bg-surface border border-border text-foreground-secondary",children:n},n))})]})]})]})}function fp(){const[e,t]=p.useState([]),[l,a]=p.useState([]),[n,u]=p.useState(!1),[i,s]=p.useState({name:"",command:"",args:""}),[r,f]=p.useState(null),[h,m]=p.useState("all"),[d,g]=p.useState("");p.useEffect(()=>{x(),S()},[]);const x=async()=>{try{const E=await Y.listMcpServers();t(E)}catch(E){console.error("Failed to load MCP servers:",E)}},S=async()=>{try{const E=await Y.getMcpSuggestions();a(E)}catch(E){console.error("Failed to load suggested servers:",E)}},j=async()=>{if(!(!i.name||!i.command)){f("add");try{await Y.addMcpServer({name:i.name,command:i.command,args:i.args.split(" ").filter(Boolean)}),s({name:"",command:"",args:""}),u(!1),await x()}finally{f(null)}}},y=async E=>{const re={},Bt=Object.entries(E.envHint);if(Bt.length>0)for(const[fl,Ce]of Bt){const M=window.prompt(`${fl}
|
|
347
|
+
|
|
348
|
+
${Ce}`);if(M===null)return;M.trim()&&(re[fl]=M.trim())}f(E.name);try{await Y.addMcpServer({name:E.name,command:E.command,args:E.args,env:Object.keys(re).length>0?re:void 0}),await x()}finally{f(null)}},o=async E=>{f(E);try{await Y.connectMcpServer(E),await x()}finally{f(null)}},v=async E=>{await Y.disconnectMcpServer(E),await x()},b=async E=>{await Y.removeMcpServer(E),await x()},A={connected:c.jsx(yi,{className:"w-4 h-4 text-success"}),disconnected:c.jsx(uf,{className:"w-4 h-4 text-muted"}),error:c.jsx(wv,{className:"w-4 h-4 text-danger"})},z=new Set(e.map(E=>E.name)),T=["all",...Array.from(new Set(l.map(E=>E.category||"Other")))],C=l.filter(E=>!z.has(E.name)).filter(E=>h==="all"||(E.category||"Other")===h).filter(E=>!d||E.name.toLowerCase().includes(d.toLowerCase())||E.description.toLowerCase().includes(d.toLowerCase())),O=e.filter(E=>E.status==="connected").length,U=e.reduce((E,re)=>E+re.tools.length,0);return c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsx("div",{className:"border-b border-border px-6 py-4",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"MCP Servers"}),c.jsx("p",{className:"text-sm text-muted mt-0.5",children:O>0?`${O} connected · ${U} tools available`:"Connect external tool servers via Model Context Protocol"})]}),c.jsxs("button",{onClick:()=>u(!n),className:"btn-primary btn-sm",children:[c.jsx(Zh,{className:"w-3.5 h-3.5"}),"Custom Server"]})]})}),c.jsxs("div",{className:"flex-1 overflow-y-auto p-6",children:[n&&c.jsxs("div",{className:"card mb-6 animate-slide-up",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Add Custom MCP Server"}),c.jsxs("div",{className:"space-y-3",children:[c.jsx("input",{type:"text",placeholder:"Server name (e.g., My Custom Server)",value:i.name,onChange:E=>s({...i,name:E.target.value}),className:"input"}),c.jsx("input",{type:"text",placeholder:"Command (e.g., npx)",value:i.command,onChange:E=>s({...i,command:E.target.value}),className:"input"}),c.jsx("input",{type:"text",placeholder:"Arguments (e.g., -y @my-org/my-mcp-server)",value:i.args,onChange:E=>s({...i,args:E.target.value}),className:"input"}),c.jsxs("div",{className:"flex gap-2",children:[c.jsx("button",{onClick:j,disabled:r==="add",className:"btn-primary btn-sm",children:r==="add"?"Adding...":"Add & Connect"}),c.jsx("button",{onClick:()=>u(!1),className:"btn-secondary btn-sm",children:"Cancel"})]})]})]}),e.length>0&&c.jsxs("div",{className:"mb-6",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground mb-3",children:"Your Servers"}),c.jsx("div",{className:"space-y-3",children:e.map(E=>c.jsxs("div",{className:"card",children:[c.jsxs("div",{className:"flex items-start justify-between",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("div",{className:"w-10 h-10 rounded-xl bg-surface border border-border flex items-center justify-center",children:c.jsx(as,{className:"w-5 h-5 text-foreground-secondary"})}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("h3",{className:"text-sm font-medium text-foreground",children:E.name}),A[E.status],c.jsx("span",{className:"text-xs text-muted capitalize",children:E.status})]}),c.jsxs("p",{className:"text-xs text-muted font-mono",children:[E.command," ",E.args.join(" ")]})]})]}),c.jsxs("div",{className:"flex gap-1",children:[E.status==="connected"?c.jsx("button",{onClick:()=>v(E.id),className:"btn-ghost btn-sm text-warning",title:"Disconnect",children:c.jsx(uf,{className:"w-3.5 h-3.5"})}):c.jsx("button",{onClick:()=>o(E.id),disabled:r===E.id,className:"btn-ghost btn-sm text-success",title:"Connect",children:c.jsx(Xv,{className:"w-3.5 h-3.5"})}),c.jsx("button",{onClick:()=>b(E.id),className:"btn-ghost btn-sm text-danger",title:"Remove",children:c.jsx(xr,{className:"w-3.5 h-3.5"})})]})]}),E.error&&c.jsx("div",{className:"mt-2 p-2 bg-danger/5 rounded-lg border border-danger/20",children:c.jsx("p",{className:"text-xs text-danger",children:E.error})}),E.tools.length>0&&c.jsxs("div",{className:"mt-3",children:[c.jsxs("span",{className:"text-xs text-muted flex items-center gap-1 mb-2",children:[c.jsx(Kh,{className:"w-3 h-3"}),E.tools.length," tools available"]}),c.jsx("div",{className:"flex flex-wrap gap-1.5",children:E.tools.map(re=>c.jsx("span",{className:"badge bg-surface border border-border text-foreground-secondary",title:re.description,children:re.name},re.name))})]})]},E.id))})]}),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-3",children:[c.jsxs("h3",{className:"text-sm font-medium text-foreground flex items-center gap-2",children:[c.jsx(pr,{className:"w-4 h-4 text-primary"}),"Server Catalog"]}),c.jsx("div",{className:"flex items-center gap-2",children:c.jsxs("div",{className:"relative",children:[c.jsx(On,{className:"w-3.5 h-3.5 text-muted absolute left-2.5 top-1/2 -translate-y-1/2"}),c.jsx("input",{type:"text",placeholder:"Search...",value:d,onChange:E=>g(E.target.value),className:"input pl-8 py-1.5 text-xs w-40"})]})})]}),c.jsx("div",{className:"flex flex-wrap gap-1.5 mb-4",children:T.map(E=>c.jsx("button",{onClick:()=>m(E),className:`text-xs px-2.5 py-1 rounded-full transition-colors ${h===E?"bg-primary text-white":"bg-surface border border-border text-muted hover:text-foreground"}`,children:E==="all"?"All":E},E))}),C.length===0?c.jsx("div",{className:"card border-dashed text-center py-8",children:c.jsx("p",{className:"text-sm text-muted",children:z.size>0&&l.length>0?"All available servers are already added":"No servers match your search"})}):c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:C.map(E=>c.jsxs("div",{className:"card border-dashed hover:border-primary/40 transition-colors group",children:[c.jsxs("div",{className:"flex items-start justify-between",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("h4",{className:"text-sm font-medium text-foreground",children:E.name}),E.category&&c.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded-full bg-surface border border-border text-muted",children:E.category})]}),c.jsx("p",{className:"text-xs text-muted mt-0.5 line-clamp-2",children:E.description})]}),c.jsx("button",{onClick:()=>y(E),disabled:r===E.name,className:"btn-ghost btn-sm text-primary shrink-0 opacity-60 group-hover:opacity-100 transition-opacity",title:"Add & Connect",children:r===E.name?c.jsx("span",{className:"text-xs animate-pulse",children:"..."}):c.jsx(La,{className:"w-3.5 h-3.5"})})]}),Object.keys(E.envHint).length>0&&c.jsxs("div",{className:"mt-2 flex items-center gap-1",children:[c.jsx(Qh,{className:"w-3 h-3 text-muted shrink-0"}),c.jsxs("span",{className:"text-[10px] text-muted truncate",children:["Requires: ",Object.keys(E.envHint).join(", ")]})]})]},E.name))})]}),e.length===0&&!n&&C.length===0&&l.length===0&&c.jsxs("div",{className:"card border-dashed text-center py-12",children:[c.jsx(as,{className:"w-8 h-8 text-muted mx-auto mb-3"}),c.jsx("p",{className:"text-sm text-muted",children:"No MCP servers configured"}),c.jsx("p",{className:"text-xs text-muted mt-1",children:"Add servers to extend your agent's capabilities"})]})]})]})}function dp(){const[e,t]=p.useState(null),[l,a]=p.useState(null),[n,u]=p.useState(!1),[i,s]=p.useState({provider:"anthropic",apiKey:"",model:""}),[r,f]=p.useState(!1);p.useEffect(()=>{Y.getSettings().then(t),Y.getSystemStats().then(a);const g=setInterval(()=>Y.getSystemStats().then(a),3e3);return()=>clearInterval(g)},[]);const h=async()=>{e&&(f(!0),await Y.updateSettings({security:e.security,workspace:e.workspace}),f(!1))},m=async()=>{if(!i.apiKey)return;await Y.addProvider(i),s({provider:"anthropic",apiKey:"",model:""});const g=await Y.getSettings();t(g)},d=g=>`${(g/1073741824).toFixed(1)} GB`;return e?c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{className:"border-b border-border px-6 py-4",children:[c.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"Settings"}),c.jsx("p",{className:"text-sm text-muted mt-0.5",children:"Configure your Agent DJ instance"})]}),c.jsxs("div",{className:"flex-1 overflow-y-auto p-6 max-w-3xl space-y-8",children:[l&&c.jsxs("section",{children:[c.jsxs("h2",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[c.jsx(Lh,{className:"w-4 h-4"})," System Resources"]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[c.jsxs("div",{className:"card",children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsxs("span",{className:"text-xs text-muted flex items-center gap-1.5",children:[c.jsx(kh,{className:"w-3.5 h-3.5"})," CPU"]}),c.jsxs("span",{className:`text-sm font-semibold ${l.cpu.loadPercent>80?"text-danger":l.cpu.loadPercent>50?"text-warning":"text-success"}`,children:[l.cpu.loadPercent,"%"]})]}),c.jsx("div",{className:"h-2 bg-background rounded-full overflow-hidden",children:c.jsx("div",{className:`h-full rounded-full transition-all duration-700 ${l.cpu.loadPercent>80?"bg-danger":l.cpu.loadPercent>50?"bg-warning":"bg-success"}`,style:{width:`${l.cpu.loadPercent}%`}})}),c.jsxs("p",{className:"text-xs text-muted mt-1",children:[l.cpu.cores," cores"]})]}),c.jsxs("div",{className:"card",children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsxs("span",{className:"text-xs text-muted flex items-center gap-1.5",children:[c.jsx(Vh,{className:"w-3.5 h-3.5"})," Memory"]}),c.jsxs("span",{className:`text-sm font-semibold ${l.memory.usagePercent>85?"text-danger":l.memory.usagePercent>60?"text-warning":"text-success"}`,children:[l.memory.usagePercent,"%"]})]}),c.jsx("div",{className:"h-2 bg-background rounded-full overflow-hidden",children:c.jsx("div",{className:`h-full rounded-full transition-all duration-700 ${l.memory.usagePercent>85?"bg-danger":l.memory.usagePercent>60?"bg-warning":"bg-success"}`,style:{width:`${l.memory.usagePercent}%`}})}),c.jsxs("p",{className:"text-xs text-muted mt-1",children:[d(l.memory.usedBytes)," / ",d(l.memory.totalBytes)]})]}),c.jsxs("div",{className:"card",children:[c.jsx("div",{className:"flex items-center justify-between mb-2",children:c.jsxs("span",{className:"text-xs text-muted flex items-center gap-1.5",children:[c.jsx(Xh,{className:"w-3.5 h-3.5"})," Uptime"]})}),c.jsx("p",{className:"text-lg font-semibold text-foreground",children:l.uptime})]})]})]}),c.jsxs("section",{children:[c.jsxs("h2",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[c.jsx(Qh,{className:"w-4 h-4"})," API Keys"]}),c.jsx("div",{className:"space-y-2 mb-4",children:e.providers.map(g=>c.jsxs("div",{className:"card flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-sm font-medium text-foreground capitalize",children:g.provider}),c.jsx("span",{className:"text-xs text-muted ml-2 font-mono",children:n?g.apiKey:"****...****"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[g.provider===e.defaultProvider?c.jsx("span",{className:"badge-success",children:"default"}):c.jsx("button",{onClick:async()=>{await Y.updateSettings({defaultProvider:g.provider});const x=await Y.getSettings();t(x)},className:"btn-ghost btn-sm text-xs text-muted hover:text-foreground",children:"Set as default"}),c.jsx("button",{onClick:()=>u(!n),className:"btn-ghost btn-sm",children:n?c.jsx(_v,{className:"w-3.5 h-3.5"}):c.jsx(Uv,{className:"w-3.5 h-3.5"})})]})]},g.provider))}),c.jsxs("div",{className:"card",children:[c.jsx("h4",{className:"text-xs font-medium text-muted mb-2",children:"Add Provider"}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("select",{value:i.provider,onChange:g=>s({...i,provider:g.target.value}),className:"input w-36",children:[c.jsx("option",{value:"anthropic",children:"Anthropic"}),c.jsx("option",{value:"openai",children:"OpenAI"}),c.jsx("option",{value:"google",children:"Google"}),c.jsx("option",{value:"groq",children:"Groq"}),c.jsx("option",{value:"ollama",children:"Ollama"})]}),c.jsx("input",{type:"password",placeholder:"API Key",value:i.apiKey,onChange:g=>s({...i,apiKey:g.target.value}),className:"input flex-1"}),c.jsx("button",{onClick:m,className:"btn-primary btn-sm",children:"Add"})]})]})]}),c.jsxs("section",{children:[c.jsxs("h2",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[c.jsx(Zu,{className:"w-4 h-4"})," Security"]}),c.jsxs("div",{className:"card",children:[c.jsx("label",{className:"text-xs text-muted block mb-2",children:"Permission Level"}),c.jsx("div",{className:"flex gap-2",children:["strict","balanced","permissive"].map(g=>c.jsx("button",{onClick:()=>t({...e,security:g}),className:`btn-sm rounded-lg capitalize ${e.security===g?"bg-primary text-white":"bg-surface border border-border text-foreground-secondary hover:bg-surface-hover"}`,children:g},g))}),c.jsxs("p",{className:"text-xs text-muted mt-2",children:[e.security==="strict"&&"Ask before every file access and command execution",e.security==="balanced"&&"Auto-allow reads in workspace, ask for writes and commands",e.security==="permissive"&&"Only ask for destructive operations"]})]})]}),c.jsxs("section",{children:[c.jsxs("h2",{className:"text-sm font-semibold text-foreground mb-3 flex items-center gap-2",children:[c.jsx(Gh,{className:"w-4 h-4"})," Workspace"]}),c.jsxs("div",{className:"card",children:[c.jsx("input",{type:"text",value:e.workspace,onChange:g=>t({...e,workspace:g.target.value}),className:"input font-mono"}),c.jsx("p",{className:"text-xs text-muted mt-2",children:"Directory where agents operate by default"})]})]}),c.jsxs("button",{onClick:h,className:"btn-primary",disabled:r,children:[c.jsx(Qv,{className:"w-4 h-4"}),r?"Saving...":"Save Changes"]})]})]}):c.jsx("div",{className:"p-6 text-muted",children:"Loading..."})}function mp(){const[e,t]=p.useState([]),[l,a]=p.useState("");p.useEffect(()=>{Y.getAuditLog(200).then(t);const i=setInterval(()=>Y.getAuditLog(200).then(t),5e3);return()=>clearInterval(i)},[]);const n=l?e.filter(i=>{var s,r,f;return i.action.toLowerCase().includes(l.toLowerCase())||((s=i.tool_name)==null?void 0:s.toLowerCase().includes(l.toLowerCase()))||((r=i.agent_name)==null?void 0:r.toLowerCase().includes(l.toLowerCase()))||((f=i.input)==null?void 0:f.toLowerCase().includes(l.toLowerCase()))}):e,u=i=>{switch(i){case"success":return c.jsx(yi,{className:"w-3.5 h-3.5 text-success"});case"error":return c.jsx(hr,{className:"w-3.5 h-3.5 text-danger"});case"denied":return c.jsx(Wv,{className:"w-3.5 h-3.5 text-warning"});default:return c.jsx(Zu,{className:"w-3.5 h-3.5 text-muted"})}};return c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsxs("div",{className:"border-b border-border px-6 py-4",children:[c.jsx("h1",{className:"text-lg font-semibold text-foreground",children:"Audit Log"}),c.jsx("p",{className:"text-sm text-muted mt-0.5",children:"History of all agent actions and tool executions"})]}),c.jsx("div",{className:"px-6 py-3 border-b border-border",children:c.jsxs("div",{className:"relative max-w-md",children:[c.jsx(On,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted"}),c.jsx("input",{type:"text",placeholder:"Filter by action, tool, agent...",value:l,onChange:i=>a(i.target.value),className:"input pl-10"})]})}),c.jsx("div",{className:"flex-1 overflow-y-auto",children:n.length===0?c.jsxs("div",{className:"text-center py-12",children:[c.jsx(Zu,{className:"w-8 h-8 text-muted mx-auto mb-3"}),c.jsx("p",{className:"text-sm text-muted",children:"No audit entries yet"})]}):c.jsxs("table",{className:"w-full",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-border text-left",children:[c.jsx("th",{className:"px-6 py-3 text-xs font-medium text-muted",children:"Status"}),c.jsx("th",{className:"px-6 py-3 text-xs font-medium text-muted",children:"Time"}),c.jsx("th",{className:"px-6 py-3 text-xs font-medium text-muted",children:"Agent"}),c.jsx("th",{className:"px-6 py-3 text-xs font-medium text-muted",children:"Action"}),c.jsx("th",{className:"px-6 py-3 text-xs font-medium text-muted",children:"Input"}),c.jsx("th",{className:"px-6 py-3 text-xs font-medium text-muted",children:"Duration"})]})}),c.jsx("tbody",{children:n.map(i=>{var s;return c.jsxs("tr",{className:"border-b border-border hover:bg-surface-hover transition-colors",children:[c.jsx("td",{className:"px-6 py-3",children:u(i.status)}),c.jsx("td",{className:"px-6 py-3 text-xs text-muted font-mono",children:new Date(i.timestamp).toLocaleTimeString()}),c.jsx("td",{className:"px-6 py-3",children:c.jsx("span",{className:"text-xs font-medium text-foreground-secondary",children:i.agent_name||"-"})}),c.jsx("td",{className:"px-6 py-3",children:c.jsx("span",{className:"badge bg-surface border border-border text-foreground-secondary",children:i.action})}),c.jsx("td",{className:"px-6 py-3 max-w-xs",children:c.jsx("span",{className:"text-xs text-muted font-mono truncate block",children:((s=i.input)==null?void 0:s.slice(0,80))||"-"})}),c.jsx("td",{className:"px-6 py-3 text-xs text-muted",children:i.duration_ms?`${i.duration_ms}ms`:"-"})]},i.id)})})]})})]})}function hp(){const[e,t]=p.useState([]),[l,a]=p.useState(null),[n,u]=p.useState(!0),[i,s]=p.useState(null);p.useEffect(()=>{r()},[]);const r=async()=>{u(!0),s(null);try{const[d,g]=await Promise.all([Y.getMemory().catch(()=>null),Y.getProfile().catch(()=>null)]),x=[];if(d!=null&&d.categories){for(const[S,j]of Object.entries(d.categories))if(Array.isArray(j))for(const y of j)x.push({category:S,key:y,data:null})}t(x),a(g&&Object.keys(g).length>0?g:null)}catch(d){console.error("Failed to load memory:",d),s(d.message||"Failed to load memory")}finally{u(!1)}},f={user:c.jsx(ns,{className:"w-4 h-4"}),projects:c.jsx(Bv,{className:"w-4 h-4"}),feedback:c.jsx(gr,{className:"w-4 h-4"}),entities:c.jsx(Jv,{className:"w-4 h-4"})},h={user:"text-primary border-primary/20 bg-primary/10",projects:"text-success border-success/20 bg-success/10",feedback:"text-warning border-warning/20 bg-warning/10",entities:"text-accent border-accent/20 bg-accent/10"},m=e.reduce((d,g)=>(d[g.category]||(d[g.category]=[]),d[g.category].push(g),d),{});return c.jsxs("div",{className:"h-full flex flex-col",children:[c.jsx("div",{className:"border-b border-border px-6 py-4",children:c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsxs("div",{children:[c.jsxs("h1",{className:"text-lg font-semibold text-foreground flex items-center gap-2",children:[c.jsx(Pa,{className:"w-5 h-5 text-primary"}),"Memory"]}),c.jsx("p",{className:"text-sm text-muted mt-0.5",children:"What Agent DJ remembers about you and your projects"})]}),c.jsxs("button",{onClick:r,className:"btn-secondary btn-sm",children:[c.jsx(cf,{className:`w-3.5 h-3.5 ${n?"animate-spin":""}`}),"Refresh"]})]})}),c.jsxs("div",{className:"flex-1 overflow-y-auto p-6 space-y-6",children:[n&&c.jsxs("div",{className:"text-center py-12",children:[c.jsx(cf,{className:"w-6 h-6 text-muted animate-spin mx-auto mb-2"}),c.jsx("p",{className:"text-sm text-muted",children:"Loading memories..."})]}),i&&!n&&c.jsxs("div",{className:"card border-danger/20 bg-danger/5 text-center py-6",children:[c.jsx("p",{className:"text-sm text-danger",children:i}),c.jsx("button",{onClick:r,className:"btn-secondary btn-sm mt-3",children:"Try Again"})]}),!n&&l&&c.jsxs("div",{className:"card",children:[c.jsxs("h3",{className:"text-sm font-medium text-foreground flex items-center gap-2 mb-3",children:[c.jsx(ns,{className:"w-4 h-4 text-primary"}),"User Profile"]}),c.jsx("div",{className:"grid grid-cols-2 gap-2",children:Object.entries(l).map(([d,g])=>c.jsxs("div",{className:"text-xs",children:[c.jsxs("span",{className:"text-muted",children:[d,": "]}),c.jsx("span",{className:"text-foreground-secondary",children:typeof g=="object"?JSON.stringify(g):String(g)})]},d))})]}),!n&&Object.entries(m).map(([d,g])=>c.jsxs("div",{children:[c.jsxs("h3",{className:"text-sm font-medium text-foreground flex items-center gap-2 mb-3",children:[f[d]||c.jsx(Pa,{className:"w-4 h-4"}),c.jsx("span",{className:"capitalize",children:d}),c.jsx("span",{className:"badge-muted",children:g.length})]}),c.jsx("div",{className:"space-y-2",children:g.map(x=>c.jsx("div",{className:`card border-l-2 ${h[d]||"border-border"}`,children:c.jsx("div",{className:"flex items-start justify-between",children:c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("h4",{className:"text-sm font-medium text-foreground",children:x.key}),x.data&&c.jsx("pre",{className:"text-xs text-foreground-secondary mt-1 whitespace-pre-wrap break-words max-h-32 overflow-y-auto",children:typeof x.data=="object"?JSON.stringify(x.data,null,2):String(x.data)})]})})},`${x.category}-${x.key}`))})]},d)),!n&&!i&&e.length===0&&!l&&c.jsxs("div",{className:"card border-dashed text-center py-12",children:[c.jsx(Pa,{className:"w-8 h-8 text-muted mx-auto mb-3"}),c.jsx("p",{className:"text-sm text-muted",children:"No memories stored yet"}),c.jsx("p",{className:"text-xs text-muted mt-1",children:"Agent DJ will remember things as you interact with it"})]})]})]})}const rf={education:"bg-blue-500/20 text-blue-400",health:"bg-green-500/20 text-green-400",photography:"bg-purple-500/20 text-purple-400",utilities:"bg-yellow-500/20 text-yellow-400",entertainment:"bg-pink-500/20 text-pink-400",lifestyle:"bg-cyan-500/20 text-cyan-400",productivity:"bg-orange-500/20 text-orange-400",social:"bg-indigo-500/20 text-indigo-400",finance:"bg-emerald-500/20 text-emerald-400",developer:"bg-red-500/20 text-red-400",other:"bg-gray-500/20 text-gray-400"},of={education:"📚",health:"💪",photography:"📸",utilities:"🔧",entertainment:"🎮",lifestyle:"✨",productivity:"⚡",social:"💬",finance:"💰",developer:"👨💻",other:"📦"};function yp(){const e=rr(),[t,l]=p.useState([]),[a,n]=p.useState([]),[u,i]=p.useState(""),[s,r]=p.useState("all"),[f,h]=p.useState(!0);p.useEffect(()=>{m(),d()},[]),p.useEffect(()=>{m()},[u,s]);async function m(){try{const x={};u&&(x.search=u),s!=="all"&&(x.category=s);const S=await Y.listApps(x);l(S)}catch(x){console.error("Failed to load apps:",x)}finally{h(!1)}}async function d(){try{const x=await Y.getAppCategories();n(x)}catch(x){console.error("Failed to load categories:",x)}}const g=a.reduce((x,S)=>x+S.count,0);return c.jsx("div",{className:"h-full overflow-y-auto",children:c.jsxs("div",{className:"max-w-6xl mx-auto p-6 space-y-6",children:[c.jsx("div",{children:c.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[c.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-xl flex items-center justify-center",children:c.jsx(vr,{className:"w-5 h-5 text-primary"})}),c.jsxs("div",{children:[c.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"Apps"}),c.jsxs("p",{className:"text-sm text-foreground-secondary",children:[g," iOS apps available for install"]})]})]})}),c.jsxs("div",{className:"relative",children:[c.jsx(On,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted"}),c.jsx("input",{type:"text",placeholder:"Search apps...",value:u,onChange:x=>i(x.target.value),className:"input pl-10 w-full"})]}),c.jsxs("div",{className:"flex flex-wrap gap-2",children:[c.jsxs("button",{onClick:()=>r("all"),className:`px-3 py-1.5 rounded-full text-xs font-medium transition-colors ${s==="all"?"bg-primary text-white":"bg-surface-hover text-foreground-secondary hover:text-foreground"}`,children:["All (",g,")"]}),a.map(x=>c.jsxs("button",{onClick:()=>r(x.name),className:`px-3 py-1.5 rounded-full text-xs font-medium transition-colors ${s===x.name?"bg-primary text-white":"bg-surface-hover text-foreground-secondary hover:text-foreground"}`,children:[of[x.name]||"📦"," ",x.name," (",x.count,")"]},x.name))]}),f?c.jsx("div",{className:"text-center py-12 text-muted",children:"Loading apps..."}):t.length===0?c.jsxs("div",{className:"text-center py-12",children:[c.jsx(Yv,{className:"w-12 h-12 text-muted mx-auto mb-3"}),c.jsx("p",{className:"text-foreground-secondary",children:"No apps found"}),c.jsx("p",{className:"text-sm text-muted mt-1",children:"Try a different search or category"})]}):c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:t.map(x=>c.jsx("div",{onClick:()=>e(`/apps/${x.id}`),className:"card hover:border-primary/30 cursor-pointer transition-all group",children:c.jsxs("div",{className:"flex items-start gap-3",children:[x.iconUrl?c.jsx("img",{src:x.iconUrl,alt:x.name,className:"w-14 h-14 rounded-2xl shrink-0 object-cover bg-surface-hover",onError:S=>{var j;S.target.style.display="none",(j=S.target.nextElementSibling)==null||j.classList.remove("hidden")}}):null,c.jsx("div",{className:`w-14 h-14 rounded-2xl bg-gradient-to-br from-primary/20 to-accent/20 flex items-center justify-center shrink-0 text-2xl ${x.iconUrl?"hidden":""}`,children:of[x.category]||"📦"}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("h3",{className:"font-semibold text-foreground truncate",children:x.name}),x.status==="available"&&c.jsx(pr,{className:"w-3.5 h-3.5 text-accent shrink-0"})]}),c.jsx("p",{className:"text-xs text-foreground-secondary mt-0.5 line-clamp-2",children:x.shortDescription}),c.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[c.jsx("span",{className:`text-xs px-2 py-0.5 rounded-full ${rf[x.category]||rf.other}`,children:x.category}),c.jsxs("span",{className:"text-xs text-muted",children:["v",x.version]}),c.jsxs("span",{className:"text-xs text-muted",children:[x.sizeMb," MB"]})]})]}),c.jsx(zv,{className:"w-4 h-4 text-muted group-hover:text-primary transition-colors shrink-0 mt-1"})]})},x.id))})]})})}const ff={quick_install:{name:"Quick Install",icon:"🟢",description:"Connect iPhone via USB with Developer Mode enabled. Agent signs and installs directly.",requirements:"Developer Mode ON, USB cable, Mac/PC",available:!0},altstore:{name:"AltStore",icon:"🔵",description:"Install via AltStore on your device. Requires AltServer running on a computer.",requirements:"AltStore installed, AltServer on Mac/PC",available:!0},trollstore:{name:"TrollStore",icon:"🟣",description:"Permanent sideloading with no resign. Only available on specific iOS versions.",requirements:"iOS 14.0-16.6.1 or 17.0, TrollStore installed",available:!0},testflight:{name:"TestFlight",icon:"🟡",description:"Easiest option — just tap a link. May take up to 24h for access.",requirements:"TestFlight app installed, email for invite",available:!0}},gp={education:"📚",health:"💪",photography:"📸",utilities:"🔧",entertainment:"🎮",lifestyle:"✨",productivity:"⚡",social:"💬",finance:"💰",developer:"👨💻",other:"📦"};function vp(){const{id:e}=zg(),t=rr(),[l,a]=p.useState(null),[n,u]=p.useState(!0),[i,s]=p.useState(!1),[r,f]=p.useState(null);p.useEffect(()=>{e&&h(e)},[e]);async function h(m){try{const d=await Y.getApp(m);a(d)}catch(d){console.error("Failed to load app:",d)}finally{u(!1)}}return n?c.jsx("div",{className:"h-full flex items-center justify-center text-muted",children:"Loading..."}):l?c.jsxs("div",{className:"h-full overflow-y-auto",children:[c.jsxs("div",{className:"max-w-4xl mx-auto p-6 space-y-6",children:[c.jsxs("button",{onClick:()=>t("/apps"),className:"flex items-center gap-1.5 text-sm text-foreground-secondary hover:text-foreground transition-colors",children:[c.jsx(nf,{className:"w-4 h-4"}),"Back to Apps"]}),c.jsx("div",{className:"card",children:c.jsxs("div",{className:"flex items-start gap-5",children:[l.iconUrl?c.jsx("img",{src:l.iconUrl,alt:l.name,className:"w-20 h-20 rounded-2xl shrink-0 object-cover bg-surface-hover",onError:m=>{var d;m.target.style.display="none",(d=m.target.nextElementSibling)==null||d.classList.remove("hidden")}}):null,c.jsx("div",{className:`w-20 h-20 rounded-2xl bg-gradient-to-br from-primary/20 to-accent/20 flex items-center justify-center shrink-0 text-4xl ${l.iconUrl?"hidden":""}`,children:gp[l.category]||"📦"}),c.jsxs("div",{className:"flex-1",children:[c.jsx("h1",{className:"text-2xl font-bold text-foreground",children:l.name}),c.jsx("p",{className:"text-foreground-secondary mt-1",children:l.shortDescription}),c.jsxs("p",{className:"text-xs text-muted mt-1",children:["by ",l.developer]}),c.jsxs("div",{className:"flex flex-wrap items-center gap-4 mt-4 text-sm",children:[c.jsxs("div",{className:"flex items-center gap-1.5 text-foreground-secondary",children:[c.jsx(Kv,{className:"w-3.5 h-3.5"}),"v",l.version]}),c.jsxs("div",{className:"flex items-center gap-1.5 text-foreground-secondary",children:[c.jsx(Xh,{className:"w-3.5 h-3.5"}),l.sizeMb," MB"]}),c.jsxs("div",{className:"flex items-center gap-1.5 text-foreground-secondary",children:[c.jsx(vr,{className:"w-3.5 h-3.5"}),"iOS ",l.minIosVersion,"+"]}),c.jsxs("div",{className:"flex items-center gap-1.5 text-foreground-secondary",children:[c.jsx(yr,{className:"w-3.5 h-3.5"}),"Updated ",new Date(l.lastUpdated).toLocaleDateString()]})]})]}),c.jsxs("button",{onClick:()=>s(!0),className:"btn btn-primary flex items-center gap-2 shrink-0",children:[c.jsx(La,{className:"w-4 h-4"}),"Install"]})]})}),l.tags.length>0&&c.jsx("div",{className:"flex flex-wrap gap-2",children:l.tags.map(m=>c.jsx("span",{className:"badge badge-info text-xs",children:m},m))}),c.jsxs("div",{className:"card",children:[c.jsx("h2",{className:"text-lg font-semibold text-foreground mb-3",children:"About"}),c.jsx("p",{className:"text-foreground-secondary leading-relaxed",children:l.description})]}),l.changelog&&c.jsxs("div",{className:"card",children:[c.jsx("h2",{className:"text-lg font-semibold text-foreground mb-3",children:"What's New"}),c.jsx("p",{className:"text-foreground-secondary",children:l.changelog}),c.jsxs("p",{className:"text-xs text-muted mt-2",children:["Released ",new Date(l.releaseDate).toLocaleDateString()]})]}),c.jsxs("div",{className:"card",children:[c.jsx("h2",{className:"text-lg font-semibold text-foreground mb-3",children:"Install Methods"}),c.jsx("div",{className:"space-y-2",children:l.installMethods.map(m=>{const d=ff[m];return d?c.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-lg bg-surface-hover",children:[c.jsx("span",{className:"text-xl",children:d.icon}),c.jsxs("div",{className:"flex-1",children:[c.jsx("p",{className:"text-sm font-medium text-foreground",children:d.name}),c.jsx("p",{className:"text-xs text-muted",children:d.requirements})]}),c.jsx(yi,{className:"w-4 h-4 text-success"})]},m):null})})]})]}),i&&c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",children:c.jsxs("div",{className:"bg-surface border border-border rounded-2xl w-full max-w-lg mx-4 shadow-2xl",children:[c.jsxs("div",{className:"flex items-center justify-between p-5 border-b border-border",children:[c.jsxs("h2",{className:"text-lg font-semibold text-foreground",children:["Install ",l.name]}),c.jsx("button",{onClick:()=>s(!1),className:"p-1 rounded-lg hover:bg-surface-hover text-muted hover:text-foreground transition-colors",children:c.jsx(Iv,{className:"w-5 h-5"})})]}),c.jsx("div",{className:"p-5 space-y-3",children:r?c.jsxs("div",{className:"space-y-4",children:[c.jsxs("button",{onClick:()=>f(null),className:"flex items-center gap-1.5 text-sm text-foreground-secondary hover:text-foreground transition-colors",children:[c.jsx(nf,{className:"w-3.5 h-3.5"}),"Back to methods"]}),r==="quick_install"&&c.jsxs("div",{className:"space-y-3",children:[c.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2",children:[c.jsx("span",{children:"🟢"})," Quick Install Steps"]}),c.jsxs("div",{className:"space-y-2 text-sm",children:[c.jsxs("div",{className:"p-3 rounded-lg bg-surface-hover",children:[c.jsx("p",{className:"font-medium text-foreground",children:"1. Enable Developer Mode on iPhone"}),c.jsx("p",{className:"text-foreground-secondary mt-1",children:"Settings → Privacy & Security → Developer Mode → ON → Restart → Confirm"})]}),c.jsxs("div",{className:"p-3 rounded-lg bg-surface-hover",children:[c.jsx("p",{className:"font-medium text-foreground",children:"2. Connect iPhone via USB"}),c.jsx("p",{className:"text-foreground-secondary mt-1",children:'Plug your iPhone into this computer and tap "Trust" on your phone.'})]}),c.jsxs("div",{className:"p-3 rounded-lg bg-surface-hover",children:[c.jsx("p",{className:"font-medium text-foreground",children:"3. Install device tools"}),c.jsx("p",{className:"text-foreground-secondary mt-1",children:c.jsx("code",{className:"text-xs bg-background px-1.5 py-0.5 rounded",children:"brew install libimobiledevice ideviceinstaller"})})]}),c.jsxs("div",{className:"p-3 rounded-lg bg-surface-hover",children:[c.jsx("p",{className:"font-medium text-foreground",children:"4. Download & Install"}),c.jsx("p",{className:"text-foreground-secondary mt-1",children:"The agent will download the IPA, sign it with your Apple ID, and push it to your iPhone."})]})]}),l.downloadUrl&&c.jsxs("a",{href:l.downloadUrl,className:"btn btn-primary w-full flex items-center justify-center gap-2 mt-3",children:[c.jsx(La,{className:"w-4 h-4"}),"Download IPA (",l.sizeMb," MB)"]})]}),r==="altstore"&&c.jsxs("div",{className:"space-y-3",children:[c.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2",children:[c.jsx("span",{children:"🔵"})," AltStore Install Steps"]}),c.jsxs("div",{className:"space-y-2 text-sm",children:[c.jsxs("div",{className:"p-3 rounded-lg bg-surface-hover",children:[c.jsx("p",{className:"font-medium text-foreground",children:"1. Install AltServer on your Mac/PC"}),c.jsxs("p",{className:"text-foreground-secondary mt-1",children:["Download from ",c.jsx("span",{className:"text-primary",children:"altstore.io"})," and run AltServer."]})]}),c.jsxs("div",{className:"p-3 rounded-lg bg-surface-hover",children:[c.jsx("p",{className:"font-medium text-foreground",children:"2. Install AltStore on your iPhone"}),c.jsx("p",{className:"text-foreground-secondary mt-1",children:"Connect iPhone via USB, click AltServer icon in menu bar → Install AltStore → select your phone."})]}),c.jsxs("div",{className:"p-3 rounded-lg bg-surface-hover",children:[c.jsx("p",{className:"font-medium text-foreground",children:"3. Download the IPA"}),c.jsx("p",{className:"text-foreground-secondary mt-1",children:"Tap the download button below on your iPhone or AirDrop the file."})]}),c.jsxs("div",{className:"p-3 rounded-lg bg-surface-hover",children:[c.jsx("p",{className:"font-medium text-foreground",children:"4. Open with AltStore"}),c.jsx("p",{className:"text-foreground-secondary mt-1",children:"Open the .ipa file → share → AltStore. It will sign and install automatically."})]})]}),c.jsx("p",{className:"text-xs text-muted",children:"Note: Free Apple ID allows max 3 sideloaded apps. Apps must be refreshed every 7 days."}),l.downloadUrl&&c.jsxs("a",{href:l.downloadUrl,className:"btn btn-primary w-full flex items-center justify-center gap-2 mt-3",children:[c.jsx(La,{className:"w-4 h-4"}),"Download IPA (",l.sizeMb," MB)"]})]}),r==="trollstore"&&c.jsxs("div",{className:"space-y-3",children:[c.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2",children:[c.jsx("span",{children:"🟣"})," TrollStore Install Steps"]}),c.jsxs("div",{className:"space-y-2 text-sm",children:[c.jsxs("div",{className:"p-3 rounded-lg bg-surface-hover",children:[c.jsx("p",{className:"font-medium text-foreground",children:"1. Check compatibility"}),c.jsx("p",{className:"text-foreground-secondary mt-1",children:"TrollStore works on iOS 14.0 - 16.6.1 and iOS 17.0 only. Check your version in Settings → General → About."})]}),c.jsxs("div",{className:"p-3 rounded-lg bg-surface-hover",children:[c.jsx("p",{className:"font-medium text-foreground",children:"2. Install TrollStore"}),c.jsxs("p",{className:"text-foreground-secondary mt-1",children:["Follow the guide at ",c.jsx("span",{className:"text-primary",children:"ios.cfw.guide/installing-trollstore"})]})]}),c.jsxs("div",{className:"p-3 rounded-lg bg-surface-hover",children:[c.jsx("p",{className:"font-medium text-foreground",children:"3. Download & open with TrollStore"}),c.jsx("p",{className:"text-foreground-secondary mt-1",children:"Download the IPA and open it with TrollStore. No resign needed, no 7-day limit."})]})]}),l.downloadUrl&&c.jsxs("a",{href:l.downloadUrl,className:"btn btn-primary w-full flex items-center justify-center gap-2 mt-3",children:[c.jsx(La,{className:"w-4 h-4"}),"Download IPA (",l.sizeMb," MB)"]})]}),r==="testflight"&&c.jsxs("div",{className:"space-y-3",children:[c.jsxs("h3",{className:"font-semibold text-foreground flex items-center gap-2",children:[c.jsx("span",{children:"🟡"})," TestFlight Install"]}),c.jsxs("div",{className:"space-y-2 text-sm",children:[c.jsxs("div",{className:"p-3 rounded-lg bg-surface-hover",children:[c.jsx("p",{className:"font-medium text-foreground",children:"1. Install TestFlight from the App Store"}),c.jsx("p",{className:"text-foreground-secondary mt-1",children:`Search "TestFlight" in the App Store and install Apple's official beta testing app.`})]}),c.jsxs("div",{className:"p-3 rounded-lg bg-surface-hover",children:[c.jsx("p",{className:"font-medium text-foreground",children:"2. Request access"}),c.jsx("p",{className:"text-foreground-secondary mt-1",children:"Tap the button below to request a TestFlight invite. You'll receive an email within 24 hours."})]}),c.jsxs("div",{className:"p-3 rounded-lg bg-surface-hover",children:[c.jsx("p",{className:"font-medium text-foreground",children:"3. Accept invite & install"}),c.jsx("p",{className:"text-foreground-secondary mt-1",children:'Open the TestFlight email on your iPhone, tap "View in TestFlight", then tap "Install".'})]})]}),c.jsx("button",{className:"btn btn-primary w-full flex items-center justify-center gap-2 mt-3",children:"Request TestFlight Access"})]})]}):c.jsxs(c.Fragment,{children:[c.jsx("p",{className:"text-sm text-foreground-secondary mb-4",children:"Choose how you'd like to install this app on your iPhone:"}),l.installMethods.map(m=>{const d=ff[m];return d?c.jsx("button",{className:"w-full text-left p-4 rounded-xl border border-border hover:border-primary/30 hover:bg-primary/5 transition-all",onClick:()=>f(m),children:c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx("span",{className:"text-2xl",children:d.icon}),c.jsxs("div",{children:[c.jsx("p",{className:"font-medium text-foreground",children:d.name}),c.jsx("p",{className:"text-sm text-foreground-secondary mt-0.5",children:d.description}),c.jsxs("p",{className:"text-xs text-muted mt-1",children:["Requires: ",d.requirements]})]})]})},m):null})]})})]})})]}):c.jsxs("div",{className:"h-full flex flex-col items-center justify-center gap-3",children:[c.jsx("p",{className:"text-foreground-secondary",children:"App not found"}),c.jsx("button",{onClick:()=>t("/apps"),className:"btn btn-primary",children:"Back to Apps"})]})}function pp(){return c.jsxs("div",{className:"flex h-screen bg-background overflow-hidden",children:[c.jsx(ep,{}),c.jsx("main",{className:"flex-1 overflow-hidden",children:c.jsxs(Qg,{children:[c.jsx(nt,{path:"/",element:c.jsx(up,{})}),c.jsx(nt,{path:"/tasks",element:c.jsx(ip,{})}),c.jsx(nt,{path:"/knowledge",element:c.jsx(cp,{})}),c.jsx(nt,{path:"/agents",element:c.jsx(op,{})}),c.jsx(nt,{path:"/mcp",element:c.jsx(fp,{})}),c.jsx(nt,{path:"/settings",element:c.jsx(dp,{})}),c.jsx(nt,{path:"/audit",element:c.jsx(mp,{})}),c.jsx(nt,{path:"/memory",element:c.jsx(hp,{})}),c.jsx(nt,{path:"/apps",element:c.jsx(yp,{})}),c.jsx(nt,{path:"/apps/:id",element:c.jsx(vp,{})})]})})]})}Z1.createRoot(document.getElementById("root")).render(c.jsx(Da.StrictMode,{children:c.jsx(hv,{children:c.jsx(pp,{})})}));
|