@apteva/apteva-darwin-arm64 0.4.41 → 0.4.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apteva +0 -0
- package/dist/ActivityPage.9v5ha2p7.js +3 -0
- package/dist/{ActivityPage.7907h64p.js.map → ActivityPage.9v5ha2p7.js.map} +3 -3
- package/dist/ApiDocsPage.qsehxvkb.js +4 -0
- package/dist/ApiDocsPage.qsehxvkb.js.map +10 -0
- package/dist/App.168av39e.js +221 -0
- package/dist/{App.qcknavjz.js.map → App.168av39e.js.map} +15 -15
- package/dist/App.2j20h2gt.js +8 -0
- package/dist/App.2j20h2gt.js.map +12 -0
- package/dist/App.7gj4jht5.js +53 -0
- package/dist/{App.apjrmctz.js.map → App.7gj4jht5.js.map} +50 -52
- package/dist/App.aexwv4rk.js +4 -0
- package/dist/App.aexwv4rk.js.map +10 -0
- package/dist/App.anvw0hjc.js +61 -0
- package/dist/App.anvw0hjc.js.map +13 -0
- package/dist/App.cjcyr5aj.js +4 -0
- package/dist/App.cjcyr5aj.js.map +10 -0
- package/dist/App.dmvykj97.js +4 -0
- package/dist/App.dmvykj97.js.map +10 -0
- package/dist/App.e2kkda2a.js +4 -0
- package/dist/App.e2kkda2a.js.map +10 -0
- package/dist/App.j4ec9k18.js +13 -0
- package/dist/App.j4ec9k18.js.map +10 -0
- package/dist/{App.7fb3e7mp.js → App.jdkx6eqd.js} +1 -1
- package/dist/App.kz3qyyre.js +4 -0
- package/dist/{App.myxqcj9x.js.map → App.kz3qyyre.js.map} +3 -3
- package/dist/App.sd685nt9.js +4 -0
- package/dist/App.sd685nt9.js.map +10 -0
- package/dist/App.shfd8tp9.js +20 -0
- package/dist/{App.3qw8nben.js.map → App.shfd8tp9.js.map} +6 -4
- package/dist/App.wghtdzsk.js +1 -0
- package/dist/App.x6x8s16g.js +4 -0
- package/dist/App.x6x8s16g.js.map +14 -0
- package/dist/App.y2vn8m06.js +4 -0
- package/dist/App.y2vn8m06.js.map +10 -0
- package/dist/ConnectionsPage.1dyyfqbk.js +3 -0
- package/dist/McpPage.xvr8hk05.js +3 -0
- package/dist/SettingsPage.5jmnefwe.js +3 -0
- package/dist/SkillsPage.jw7carjq.js +3 -0
- package/dist/TasksPage.r8txe0e9.js +3 -0
- package/dist/TasksPage.r8txe0e9.js.map +9 -0
- package/dist/TelemetryPage.pcafk41x.js +3 -0
- package/dist/TelemetryPage.pcafk41x.js.map +9 -0
- package/dist/TestsPage.pkymr7yt.js +3 -0
- package/dist/ThreadsPage.49tgq4fq.js +3 -0
- package/dist/apteva-kit.css +1 -1
- package/dist/index.html +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/ActivityPage.7907h64p.js +0 -3
- package/dist/ApiDocsPage.k3jjenpq.js +0 -4
- package/dist/ApiDocsPage.k3jjenpq.js.map +0 -10
- package/dist/App.01nq20st.js +0 -4
- package/dist/App.01nq20st.js.map +0 -10
- package/dist/App.1maqvamf.js +0 -4
- package/dist/App.1maqvamf.js.map +0 -14
- package/dist/App.2yjrh32f.js +0 -4
- package/dist/App.2yjrh32f.js.map +0 -10
- package/dist/App.3qw8nben.js +0 -20
- package/dist/App.7sy3wq8c.js +0 -4
- package/dist/App.7sy3wq8c.js.map +0 -10
- package/dist/App.apjrmctz.js +0 -57
- package/dist/App.av6t2yhe.js +0 -4
- package/dist/App.av6t2yhe.js.map +0 -10
- package/dist/App.jqj5a094.js +0 -46
- package/dist/App.jqj5a094.js.map +0 -13
- package/dist/App.mc7xf85h.js +0 -4
- package/dist/App.mc7xf85h.js.map +0 -10
- package/dist/App.myxqcj9x.js +0 -4
- package/dist/App.nm91r1mp.js +0 -13
- package/dist/App.nm91r1mp.js.map +0 -10
- package/dist/App.p02f4ret.js +0 -1
- package/dist/App.qcknavjz.js +0 -221
- package/dist/App.vc7vfhg4.js +0 -4
- package/dist/App.vc7vfhg4.js.map +0 -10
- package/dist/App.z4s9zkw5.js +0 -4
- package/dist/App.z4s9zkw5.js.map +0 -10
- package/dist/ConnectionsPage.z1pw5xe2.js +0 -3
- package/dist/McpPage.8vc97z0b.js +0 -3
- package/dist/SettingsPage.p61bz8kd.js +0 -3
- package/dist/SkillsPage.r9x43g3g.js +0 -3
- package/dist/TasksPage.1e0zkye4.js +0 -3
- package/dist/TasksPage.1e0zkye4.js.map +0 -9
- package/dist/TelemetryPage.p9vbe4gf.js +0 -3
- package/dist/TelemetryPage.p9vbe4gf.js.map +0 -9
- package/dist/TestsPage.d4xy504e.js +0 -3
- package/dist/ThreadsPage.m016am3x.js +0 -3
- /package/dist/{App.7fb3e7mp.js.map → App.jdkx6eqd.js.map} +0 -0
- /package/dist/{ConnectionsPage.z1pw5xe2.js.map → ConnectionsPage.1dyyfqbk.js.map} +0 -0
- /package/dist/{McpPage.8vc97z0b.js.map → McpPage.xvr8hk05.js.map} +0 -0
- /package/dist/{SettingsPage.p61bz8kd.js.map → SettingsPage.5jmnefwe.js.map} +0 -0
- /package/dist/{SkillsPage.r9x43g3g.js.map → SkillsPage.jw7carjq.js.map} +0 -0
- /package/dist/{TestsPage.d4xy504e.js.map → TestsPage.pkymr7yt.js.map} +0 -0
- /package/dist/{ThreadsPage.m016am3x.js.map → ThreadsPage.49tgq4fq.js.map} +0 -0
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import{a as jr}from"./App.x6x8s16g.js";import"./App.y2vn8m06.js";import{f as E9,g as Ri,h as E5}from"./App.cjcyr5aj.js";import"./App.aexwv4rk.js";import"./App.kz3qyyre.js";import{A as g9,B as F9,C as A9,D as T9,E as X1,G as V9,H as D9,I as j9,J as n9,K as C9,k as Q1,l as wt,m as Hi,n as Wi,o as di,p as m0,q as Mm,r as t0,s as r0,t as ct,u as Y1,v as v0,w as P9,x as I9,y as b0,z as f0}from"./App.jdkx6eqd.js";import"./App.j4ec9k18.js";import"./App.dmvykj97.js";import{N as Ui,O as s5}from"./App.e2kkda2a.js";import{Q as x9,R as xr}from"./App.anvw0hjc.js";import"./App.7gj4jht5.js";import{U as lt}from"./App.sd685nt9.js";import{V as uY}from"./App.2j20h2gt.js";import{$ as Eo,X as Za,Y as Gi,_ as gm,aa as vo,ba as pz,ca as u5,da as W1,ea as B1,fa as $1,ga as mz,ha as N9,ia as U9,ja as Go,ka as tz,la as M9,ma as bp,na as rz,oa as Vr,pa as Oi}from"./App.shfd8tp9.js";var B9=Gi((SY)=>{(function(){function c(){if(h=!1,x){var P=SY.unstable_now();ta=P;var n=!0;try{a:{oa=!1,ia&&(ia=!1,ga(na),na=-1),_a=!0;var ra=s;try{o:{y(P);for(I=_(M);I!==null&&!(I.expirationTime>P&&G());){var Fa=I.callback;if(typeof Fa==="function"){I.callback=null,s=I.priorityLevel;var Sa=Fa(I.expirationTime<=P);if(P=SY.unstable_now(),typeof Sa==="function"){I.callback=Sa,y(P),n=!0;break o}I===_(M)&&d(M),y(P)}else d(M);I=_(M)}if(I!==null)n=!0;else{var xo=_(D);xo!==null&&g(H,xo.startTime-P),n=!1}}break a}finally{I=null,s=ra,_a=!1}n=void 0}}finally{n?L():x=!1}}}function Z(P,n){var ra=P.length;P.push(n);a:for(;0<ra;){var Fa=ra-1>>>1,Sa=P[Fa];if(0<N(Sa,n))P[Fa]=n,P[ra]=Sa,ra=Fa;else break a}}function _(P){return P.length===0?null:P[0]}function d(P){if(P.length===0)return null;var n=P[0],ra=P.pop();if(ra!==n){P[0]=ra;a:for(var Fa=0,Sa=P.length,xo=Sa>>>1;Fa<xo;){var Jp=2*(Fa+1)-1,S=P[Jp],Ga=Jp+1,oo=P[Ga];if(0>N(S,ra))Ga<Sa&&0>N(oo,S)?(P[Fa]=oo,P[Ga]=ra,Fa=Ga):(P[Fa]=S,P[Jp]=ra,Fa=Jp);else if(Ga<Sa&&0>N(oo,ra))P[Fa]=oo,P[Ga]=ra,Fa=Ga;else break a}}return n}function N(P,n){var ra=P.sortIndex-n.sortIndex;return ra!==0?ra:P.id-n.id}function y(P){for(var n=_(D);n!==null;){if(n.callback===null)d(D);else if(n.startTime<=P)d(D),n.sortIndex=n.expirationTime,Z(M,n);else break;n=_(D)}}function H(P){if(ia=!1,y(P),!oa)if(_(M)!==null)oa=!0,x||(x=!0,L());else{var n=_(D);n!==null&&g(H,n.startTime-P)}}function G(){return h?!0:SY.unstable_now()-ta<O?!1:!0}function g(P,n){na=Na(function(){P(SY.unstable_now())},n)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),SY.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var A=performance;SY.unstable_now=function(){return A.now()}}else{var K=Date,T=K.now();SY.unstable_now=function(){return K.now()-T}}var M=[],D=[],F=1,I=null,s=3,_a=!1,oa=!1,ia=!1,h=!1,Na=typeof setTimeout==="function"?setTimeout:null,ga=typeof clearTimeout==="function"?clearTimeout:null,Oa=typeof setImmediate<"u"?setImmediate:null,x=!1,na=-1,O=5,ta=-1;if(typeof Oa==="function")var L=function(){Oa(c)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,fa=W.port2;W.port1.onmessage=c,L=function(){fa.postMessage(null)}}else L=function(){Na(c,0)};SY.unstable_IdlePriority=5,SY.unstable_ImmediatePriority=1,SY.unstable_LowPriority=4,SY.unstable_NormalPriority=3,SY.unstable_Profiling=null,SY.unstable_UserBlockingPriority=2,SY.unstable_cancelCallback=function(P){P.callback=null},SY.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<P?Math.floor(1000/P):5},SY.unstable_getCurrentPriorityLevel=function(){return s},SY.unstable_next=function(P){switch(s){case 1:case 2:case 3:var n=3;break;default:n=s}var ra=s;s=n;try{return P()}finally{s=ra}},SY.unstable_requestPaint=function(){h=!0},SY.unstable_runWithPriority=function(P,n){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var ra=s;s=P;try{return n()}finally{s=ra}},SY.unstable_scheduleCallback=function(P,n,ra){var Fa=SY.unstable_now();switch(typeof ra==="object"&&ra!==null?(ra=ra.delay,ra=typeof ra==="number"&&0<ra?Fa+ra:Fa):ra=Fa,P){case 1:var Sa=-1;break;case 2:Sa=250;break;case 5:Sa=1073741823;break;case 4:Sa=1e4;break;default:Sa=5000}return Sa=ra+Sa,P={id:F++,callback:n,priorityLevel:P,startTime:ra,expirationTime:Sa,sortIndex:-1},ra>Fa?(P.sortIndex=ra,Z(D,P),_(M)===null&&P===_(D)&&(ia?(ga(na),na=-1):ia=!0,g(H,ra-Fa))):(P.sortIndex=Sa,Z(M,P),oa||_a||(oa=!0,x||(x=!0,L()))),P},SY.unstable_shouldYield=G,SY.unstable_wrapCallback=function(P){var n=s;return function(){var ra=s;s=n;try{return P.apply(this,arguments)}finally{s=ra}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var K9=Gi((xY)=>{var Ma=Za(B9()),p0=Za(Eo()),_i=Za(uY());(function(){function c(a,o){for(a=a.memoizedState;a!==null&&0<o;)a=a.next,o--;return a}function Z(a,o,p,m){if(p>=o.length)return m;var t=o[p],r=Oo(a)?a.slice():da({},a);return r[t]=Z(a[t],o,p+1,m),r}function _(a,o,p){if(o.length!==p.length)console.warn("copyWithRename() expects paths of the same length");else{for(var m=0;m<p.length-1;m++)if(o[m]!==p[m]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return d(a,o,p,0)}}function d(a,o,p,m){var t=o[m],r=Oo(a)?a.slice():da({},a);return m+1===o.length?(r[p[m]]=r[t],Oo(r)?r.splice(t,1):delete r[t]):r[t]=d(a[t],o,p,m+1),r}function N(a,o,p){var m=o[p],t=Oo(a)?a.slice():da({},a);if(p+1===o.length)return Oo(t)?t.splice(m,1):delete t[m],t;return t[m]=N(a[m],o,p+1),t}function y(){return!1}function H(){return null}function G(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function g(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function A(){}function K(){}function T(a){var o=[];return a.forEach(function(p){o.push(p)}),o.sort().join(", ")}function M(a,o,p,m){return new kz(a,o,p,m)}function D(a,o){a.context===kt&&(F3(a.current,2,o,a,null,null),zv())}function F(a,o){if(Cp!==null){var p=o.staleFamilies;o=o.updatedFamilies,P0(),R7(a.current,o,p),zv()}}function I(a){Cp=a}function s(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function _a(a){var o=a,p=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,(o.flags&4098)!==0&&(p=o.return),a=o.return;while(a)}return o.tag===3?p:null}function oa(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function ia(a){if(a.tag===31){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function h(a){if(_a(a)!==a)throw Error("Unable to find node on an unmounted component.")}function Na(a){var o=a.alternate;if(!o){if(o=_a(a),o===null)throw Error("Unable to find node on an unmounted component.");return o!==a?null:a}for(var p=a,m=o;;){var t=p.return;if(t===null)break;var r=t.alternate;if(r===null){if(m=t.return,m!==null){p=m;continue}break}if(t.child===r.child){for(r=t.child;r;){if(r===p)return h(t),a;if(r===m)return h(t),o;r=r.sibling}throw Error("Unable to find node on an unmounted component.")}if(p.return!==m.return)p=t,m=r;else{for(var v=!1,b=t.child;b;){if(b===p){v=!0,p=t,m=r;break}if(b===m){v=!0,m=t,p=r;break}b=b.sibling}if(!v){for(b=r.child;b;){if(b===p){v=!0,p=r,m=t;break}if(b===m){v=!0,m=r,p=t;break}b=b.sibling}if(!v)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(p.alternate!==m)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(p.tag!==3)throw Error("Unable to find node on an unmounted component.");return p.stateNode.current===p?a:o}function ga(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a;for(a=a.child;a!==null;){if(o=ga(a),o!==null)return o;a=a.sibling}return null}function Oa(a){if(a===null||typeof a!=="object")return null;return a=Mc&&a[Mc]||a["@@iterator"],typeof a==="function"?a:null}function x(a){if(a==null)return null;if(typeof a==="function")return a.$$typeof===oJ?null:a.displayName||a.name||null;if(typeof a==="string")return a;switch(a){case _v:return"Fragment";case n3:return"Profiler";case fb:return"StrictMode";case u3:return"Suspense";case x3:return"SuspenseList";case V3:return"Activity"}if(typeof a==="object")switch(typeof a.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case Gv:return"Portal";case Hm:return a.displayName||"Context";case S3:return(a._context.displayName||"Context")+".Consumer";case j0:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case ib:return o=a.displayName||null,o!==null?o:x(a.type)||"Memo";case Hp:o=a._payload,a=a._init;try{return x(a(o))}catch(p){}}return null}function na(a){return typeof a.tag==="number"?O(a):typeof a.name==="string"?a.name:null}function O(a){var o=a.type;switch(a.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(o._context.displayName||"Context")+".Consumer";case 10:return o.displayName||"Context";case 18:return"DehydratedFragment";case 11:return a=o.render,a=a.displayName||a.name||"",o.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return x(o);case 8:return o===fb?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof o==="function")return o.displayName||o.name||null;if(typeof o==="string")return o;break;case 29:if(o=a._debugInfo,o!=null){for(var p=o.length-1;0<=p;p--)if(typeof o[p].name==="string")return o[p].name}if(a.return!==null)return O(a.return)}return null}function ta(a){return{current:a}}function L(a,o){0>xm?console.error("Unexpected pop."):(o!==j3[xm]&&console.error("Unexpected Fiber popped."),a.current=D3[xm],D3[xm]=null,j3[xm]=null,xm--)}function W(a,o,p){xm++,D3[xm]=a.current,j3[xm]=p,a.current=o}function fa(a){return a===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),a}function P(a,o){W(Ut,o,a),W(E0,a,a),W(dt,null,a);var p=o.nodeType;switch(p){case 9:case 11:p=p===9?"#document":"#fragment",o=(o=o.documentElement)?(o=o.namespaceURI)?vc(o):bt:bt;break;default:if(p=o.tagName,o=o.namespaceURI)o=vc(o),o=bc(o,p);else switch(p){case"svg":o=a0;break;case"math":o=b1;break;default:o=bt}}p=p.toLowerCase(),p=a7(null,p),p={context:o,ancestorInfo:p},L(dt,a),W(dt,p,a)}function n(a){L(dt,a),L(E0,a),L(Ut,a)}function ra(){return fa(dt.current)}function Fa(a){a.memoizedState!==null&&W(wb,a,a);var o=fa(dt.current),p=a.type,m=bc(o.context,p);p=a7(o.ancestorInfo,p),m={context:m,ancestorInfo:p},o!==m&&(W(E0,a,a),W(dt,m,a))}function Sa(a){E0.current===a&&(L(dt,a),L(E0,a)),wb.current===a&&(L(wb,a),A5._currentValue=nr)}function xo(){}function Jp(){if(s0===0){gc=console.log,Fc=console.info,Cc=console.warn,Pc=console.error,Ic=console.group,Ac=console.groupCollapsed,Tc=console.groupEnd;var a={configurable:!0,enumerable:!0,value:xo,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}s0++}function S(){if(s0--,s0===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:da({},a,{value:gc}),info:da({},a,{value:Fc}),warn:da({},a,{value:Cc}),error:da({},a,{value:Pc}),group:da({},a,{value:Ic}),groupCollapsed:da({},a,{value:Ac}),groupEnd:da({},a,{value:Tc})})}0>s0&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Ga(a){var o=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,a=a.stack,Error.prepareStackTrace=o,a.startsWith(`Error: react-stack-top-frame
|
|
2
|
+
`)&&(a=a.slice(29)),o=a.indexOf(`
|
|
3
|
+
`),o!==-1&&(a=a.slice(o+1)),o=a.indexOf("react_stack_bottom_frame"),o!==-1&&(o=a.lastIndexOf(`
|
|
4
|
+
`,o)),o!==-1)a=a.slice(0,o);else return"";return a}function oo(a){if(E3===void 0)try{throw Error()}catch(p){var o=p.stack.trim().match(/\n( *(at )?)/);E3=o&&o[1]||"",nc=-1<p.stack.indexOf(`
|
|
5
|
+
at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
6
|
+
`+E3+a+nc}function mr(a,o){if(!a||s3)return"";var p=e3.get(a);if(p!==void 0)return p;s3=!0,p=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var m=null;m=B.H,B.H=null,Jp();try{var t={DetermineComponentFrameRoot:function(){try{if(o){var z=function(){throw Error()};if(Object.defineProperty(z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(z,[])}catch(u){var q=u}Reflect.construct(a,[],z)}else{try{z.call()}catch(u){q=u}a.call(z.prototype)}}else{try{throw Error()}catch(u){q=u}(z=a())&&typeof z.catch==="function"&&z.catch(function(){})}}catch(u){if(u&&q&&typeof u.stack==="string")return[u.stack,q.stack]}return[null,null]}};t.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(t.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(t.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=t.DetermineComponentFrameRoot(),b=v[0],f=v[1];if(b&&f){var i=b.split(`
|
|
7
|
+
`),Y=f.split(`
|
|
8
|
+
`);for(v=r=0;r<i.length&&!i[r].includes("DetermineComponentFrameRoot");)r++;for(;v<Y.length&&!Y[v].includes("DetermineComponentFrameRoot");)v++;if(r===i.length||v===Y.length)for(r=i.length-1,v=Y.length-1;1<=r&&0<=v&&i[r]!==Y[v];)v--;for(;1<=r&&0<=v;r--,v--)if(i[r]!==Y[v]){if(r!==1||v!==1)do if(r--,v--,0>v||i[r]!==Y[v]){var X=`
|
|
9
|
+
`+i[r].replace(" at new "," at ");return a.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",a.displayName)),typeof a==="function"&&e3.set(a,X),X}while(1<=r&&0<=v);break}}}finally{s3=!1,B.H=m,S(),Error.prepareStackTrace=p}return i=(i=a?a.displayName||a.name:"")?oo(i):"",typeof a==="function"&&e3.set(a,i),i}function w0(a,o){switch(a.tag){case 26:case 27:case 5:return oo(a.type);case 16:return oo("Lazy");case 13:return a.child!==o&&o!==null?oo("Suspense Fallback"):oo("Suspense");case 19:return oo("SuspenseList");case 0:case 15:return mr(a.type,!1);case 11:return mr(a.type.render,!1);case 1:return mr(a.type,!0);case 31:return oo("Activity");default:return""}}function tr(a){try{var o="",p=null;do{o+=w0(a,p);var m=a._debugInfo;if(m)for(var t=m.length-1;0<=t;t--){var r=m[t];if(typeof r.name==="string"){var v=o;a:{var{name:b,env:f,debugLocation:i}=r;if(i!=null){var Y=Ga(i),X=Y.lastIndexOf(`
|
|
10
|
+
`),z=X===-1?Y:Y.slice(X+1);if(z.indexOf(b)!==-1){var q=`
|
|
11
|
+
`+z;break a}}q=oo(b+(f?" ["+f+"]":""))}o=v+q}}p=a,a=a.return}while(a);return o}catch(u){return`
|
|
12
|
+
Error generating stack: `+u.message+`
|
|
13
|
+
`+u.stack}}function R(a){return(a=a?a.displayName||a.name:"")?oo(a):""}function e(){if(Wp===null)return null;var a=Wp._debugOwner;return a!=null?na(a):null}function xa(){if(Wp===null)return"";var a=Wp;try{var o="";switch(a.tag===6&&(a=a.return),a.tag){case 26:case 27:case 5:o+=oo(a.type);break;case 13:o+=oo("Suspense");break;case 19:o+=oo("SuspenseList");break;case 31:o+=oo("Activity");break;case 30:case 0:case 15:case 1:a._debugOwner||o!==""||(o+=R(a.type));break;case 11:a._debugOwner||o!==""||(o+=R(a.type.render))}for(;a;)if(typeof a.tag==="number"){var p=a;a=p._debugOwner;var m=p._debugStack;if(a&&m){var t=Ga(m);t!==""&&(o+=`
|
|
14
|
+
`+t)}}else if(a.debugStack!=null){var r=a.debugStack;(a=a.owner)&&r&&(o+=`
|
|
15
|
+
`+Ga(r))}else break;var v=o}catch(b){v=`
|
|
16
|
+
Error generating stack: `+b.message+`
|
|
17
|
+
`+b.stack}return v}function k(a,o,p,m,t,r,v){var b=Wp;$o(a);try{return a!==null&&a._debugTask?a._debugTask.run(o.bind(null,p,m,t,r,v)):o(p,m,t,r,v)}finally{$o(b)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function $o(a){B.getCurrentStack=a===null?null:xa,Wm=!1,Wp=a}function ko(a){return typeof Symbol==="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object"}function Yp(a){try{return c0(a),!1}catch(o){return!0}}function c0(a){return""+a}function po(a,o){if(Yp(a))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",o,ko(a)),c0(a)}function O1(a,o){if(Yp(a))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",o,ko(a)),c0(a)}function L1(a){if(Yp(a))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",ko(a)),c0(a)}function bz(a){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(o.isDisabled)return!0;if(!o.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Qv=o.inject(a),Do=o}catch(p){console.error("React instrumentation encountered an error: %o.",p)}return o.checkDCE?!0:!1}function co(a){if(typeof fJ==="function"&&iJ(a),Do&&typeof Do.setStrictMode==="function")try{Do.setStrictMode(Qv,a)}catch(o){dm||(dm=!0,console.error("React instrumentation encountered an error: %o",o))}}function fz(a){return a>>>=0,a===0?32:31-(wJ(a)/cJ|0)|0}function rr(a){var o=a&42;if(o!==0)return o;switch(a&-a){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 a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),a}}function e5(a,o,p){var m=a.pendingLanes;if(m===0)return 0;var t=0,r=a.suspendedLanes,v=a.pingedLanes;a=a.warmLanes;var b=m&134217727;return b!==0?(m=b&~r,m!==0?t=rr(m):(v&=b,v!==0?t=rr(v):p||(p=b&~a,p!==0&&(t=rr(p))))):(b=m&~r,b!==0?t=rr(b):v!==0?t=rr(v):p||(p=m&~a,p!==0&&(t=rr(p)))),t===0?0:o!==0&&o!==t&&(o&r)===0&&(r=t&-t,p=o&-o,r>=p||r===32&&(p&4194048)!==0)?o:t}function l0(a,o){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&o)===0}function iz(a,o){switch(a){case 1:case 2:case 4:case 8:case 64:return o+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 o+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function h1(){var a=zb;return zb<<=1,(zb&62914560)===0&&(zb=4194304),a}function k1(a){for(var o=[],p=0;31>p;p++)o.push(a);return o}function z0(a,o){a.pendingLanes|=o,o!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function wz(a,o,p,m,t,r){var v=a.pendingLanes;a.pendingLanes=p,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=p,a.entangledLanes&=p,a.errorRecoveryDisabledLanes&=p,a.shellSuspendCounter=0;var{entanglements:b,expirationTimes:f,hiddenUpdates:i}=a;for(p=v&~p;0<p;){var Y=31-eo(p),X=1<<Y;b[Y]=0,f[Y]=-1;var z=i[Y];if(z!==null)for(i[Y]=null,Y=0;Y<z.length;Y++){var q=z[Y];q!==null&&(q.lane&=-536870913)}p&=~X}m!==0&&Li(a,m,0),r!==0&&t===0&&a.tag!==0&&(a.suspendedLanes|=r&~(v&~o))}function Li(a,o,p){a.pendingLanes|=o,a.suspendedLanes&=~o;var m=31-eo(o);a.entangledLanes|=o,a.entanglements[m]=a.entanglements[m]|1073741824|p&261930}function hi(a,o){var p=a.entangledLanes|=o;for(a=a.entanglements;p;){var m=31-eo(p),t=1<<m;t&o|a[m]&o&&(a[m]|=o),p&=~t}}function ki(a,o){var p=o&-o;return p=(p&42)!==0?1:N1(p),(p&(a.suspendedLanes|o))!==0?0:p}function N1(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function Ni(a,o,p){if(Um)for(a=a.pendingUpdatersLaneMap;0<p;){var m=31-eo(p),t=1<<m;a[m].add(o),p&=~t}}function Mi(a,o){if(Um)for(var{pendingUpdatersLaneMap:p,memoizedUpdaters:m}=a;0<o;){var t=31-eo(o);a=1<<t,t=p[t],0<t.size&&(t.forEach(function(r){var v=r.alternate;v!==null&&m.has(v)||m.add(r)}),t.clear()),o&=~a}}function M1(a){return a&=-a,dp!==0&&dp<a?om!==0&&om<a?(a&134217727)!==0?Rm:$b:om:dp}function gi(){var a=Pa.p;if(a!==0)return a;return a=window.event,a===void 0?Rm:Rc(a.type)}function Fi(a,o){var p=Pa.p;try{return Pa.p=a,o()}finally{Pa.p=p}}function g1(a){delete a[no],delete a[ap],delete a[tf],delete a[lJ],delete a[zJ]}function Er(a){var o=a[no];if(o)return o;for(var p=a.parentNode;p;){if(o=p[yt]||p[no]){if(p=o.alternate,o.child!==null||p!==null&&p.child!==null)for(a=Jc(a);a!==null;){if(p=a[no])return p;a=Jc(a)}return o}a=p,p=a.parentNode}return null}function $t(a){if(a=a[no]||a[yt]){var o=a.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return a}return null}function $0(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function sr(a){var o=a[Sc];return o||(o=a[Sc]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function No(a){a[e0]=!0}function vr(a,o){er(a,o),er(a+"Capture",o)}function er(a,o){Qr[a]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",a),Qr[a]=o;var p=a.toLowerCase();rf[p]=a,a==="onDoubleClick"&&(rf.ondblclick=a);for(a=0;a<o.length;a++)uc.add(o[a])}function av(a,o){$J[o.type]||o.onChange||o.onInput||o.readOnly||o.disabled||o.value==null||(a==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),o.onChange||o.readOnly||o.disabled||o.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function F1(a){if(am.call(Vc,a))return!0;if(am.call(xc,a))return!1;if(JJ.test(a))return Vc[a]=!0;return xc[a]=!0,console.error("Invalid attribute name: `%s`",a),!1}function Ci(a,o,p){if(F1(o)){if(!a.hasAttribute(o)){switch(typeof p){case"symbol":case"object":return p;case"function":return p;case"boolean":if(p===!1)return p}return p===void 0?void 0:null}if(a=a.getAttribute(o),a===""&&p===!0)return!0;return po(p,o),a===""+p?p:a}}function a2(a,o,p){if(F1(o))if(p===null)a.removeAttribute(o);else{switch(typeof p){case"undefined":case"function":case"symbol":a.removeAttribute(o);return;case"boolean":var m=o.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){a.removeAttribute(o);return}}po(p,o),a.setAttribute(o,""+p)}}function o2(a,o,p){if(p===null)a.removeAttribute(o);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(o);return}po(p,o),a.setAttribute(o,""+p)}}function Fm(a,o,p,m){if(m===null)a.removeAttribute(p);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(p);return}po(m,p),a.setAttributeNS(o,p,""+m)}}function kp(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return L1(a),a;default:return""}}function Pi(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function cz(a,o,p){var m=Object.getOwnPropertyDescriptor(a.constructor.prototype,o);if(!a.hasOwnProperty(o)&&typeof m<"u"&&typeof m.get==="function"&&typeof m.set==="function"){var{get:t,set:r}=m;return Object.defineProperty(a,o,{configurable:!0,get:function(){return t.call(this)},set:function(v){L1(v),p=""+v,r.call(this,v)}}),Object.defineProperty(a,o,{enumerable:m.enumerable}),{getValue:function(){return p},setValue:function(v){L1(v),p=""+v},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function C1(a){if(!a._valueTracker){var o=Pi(a)?"checked":"value";a._valueTracker=cz(a,o,""+a[o])}}function Ii(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var p=o.getValue(),m="";return a&&(m=Pi(a)?a.checked?"true":"false":a.value),a=m,a!==p?(o.setValue(a),!0):!1}function p2(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch(o){return a.body}}function Np(a){return a.replace(YJ,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Ai(a,o){o.checked===void 0||o.defaultChecked===void 0||jc||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",e()||"A component",o.type),jc=!0),o.value===void 0||o.defaultValue===void 0||Dc||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",e()||"A component",o.type),Dc=!0)}function P1(a,o,p,m,t,r,v,b){if(a.name="",v!=null&&typeof v!=="function"&&typeof v!=="symbol"&&typeof v!=="boolean"?(po(v,"type"),a.type=v):a.removeAttribute("type"),o!=null)if(v==="number"){if(o===0&&a.value===""||a.value!=o)a.value=""+kp(o)}else a.value!==""+kp(o)&&(a.value=""+kp(o));else v!=="submit"&&v!=="reset"||a.removeAttribute("value");o!=null?I1(a,v,kp(o)):p!=null?I1(a,v,kp(p)):m!=null&&a.removeAttribute("value"),t==null&&r!=null&&(a.defaultChecked=!!r),t!=null&&(a.checked=t&&typeof t!=="function"&&typeof t!=="symbol"),b!=null&&typeof b!=="function"&&typeof b!=="symbol"&&typeof b!=="boolean"?(po(b,"name"),a.name=""+kp(b)):a.removeAttribute("name")}function Ti(a,o,p,m,t,r,v,b){if(r!=null&&typeof r!=="function"&&typeof r!=="symbol"&&typeof r!=="boolean"&&(po(r,"type"),a.type=r),o!=null||p!=null){if(!(r!=="submit"&&r!=="reset"||o!==void 0&&o!==null)){C1(a);return}p=p!=null?""+kp(p):"",o=o!=null?""+kp(o):p,b||o===a.value||(a.value=o),a.defaultValue=o}m=m!=null?m:t,m=typeof m!=="function"&&typeof m!=="symbol"&&!!m,a.checked=b?a.checked:!!m,a.defaultChecked=!!m,v!=null&&typeof v!=="function"&&typeof v!=="symbol"&&typeof v!=="boolean"&&(po(v,"name"),a.name=v),C1(a)}function I1(a,o,p){o==="number"&&p2(a.ownerDocument)===a||a.defaultValue===""+p||(a.defaultValue=""+p)}function ni(a,o){o.value==null&&(typeof o.children==="object"&&o.children!==null?p0.Children.forEach(o.children,function(p){p==null||typeof p==="string"||typeof p==="number"||typeof p==="bigint"||sc||(sc=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):o.dangerouslySetInnerHTML==null||ec||(ec=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),o.selected==null||Ec||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ec=!0)}function Si(){var a=e();return a?`
|
|
18
|
+
|
|
19
|
+
Check the render method of \``+a+"`.":""}function ov(a,o,p,m){if(a=a.options,o){o={};for(var t=0;t<p.length;t++)o["$"+p[t]]=!0;for(p=0;p<a.length;p++)t=o.hasOwnProperty("$"+a[p].value),a[p].selected!==t&&(a[p].selected=t),t&&m&&(a[p].defaultSelected=!0)}else{p=""+kp(p),o=null;for(t=0;t<a.length;t++){if(a[t].value===p){a[t].selected=!0,m&&(a[t].defaultSelected=!0);return}o!==null||a[t].disabled||(o=a[t])}o!==null&&(o.selected=!0)}}function ui(a,o){for(a=0;a<o8.length;a++){var p=o8[a];if(o[p]!=null){var m=Oo(o[p]);o.multiple&&!m?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",p,Si()):!o.multiple&&m&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",p,Si())}}o.value===void 0||o.defaultValue===void 0||a8||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),a8=!0)}function xi(a,o){o.value===void 0||o.defaultValue===void 0||p8||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",e()||"A component"),p8=!0),o.children!=null&&o.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Vi(a,o,p){if(o!=null&&(o=""+kp(o),o!==a.value&&(a.value=o),p==null)){a.defaultValue!==o&&(a.defaultValue=o);return}a.defaultValue=p!=null?""+kp(p):""}function Di(a,o,p,m){if(o==null){if(m!=null){if(p!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Oo(m)){if(1<m.length)throw Error("<textarea> can only have at most one child.");m=m[0]}p=m}p==null&&(p=""),o=p}p=kp(o),a.defaultValue=p,m=a.textContent,m===p&&m!==""&&m!==null&&(a.value=m),C1(a)}function ji(a,o){return a.serverProps===void 0&&a.serverTail.length===0&&a.children.length===1&&3<a.distanceFromLeaf&&a.distanceFromLeaf>15-o?ji(a.children[0],o):a}function Xp(a){return" "+" ".repeat(a)}function pv(a){return"+ "+" ".repeat(a)}function br(a){return"- "+" ".repeat(a)}function Ei(a){switch(a.tag){case 26:case 27:case 5:return a.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return a=a.type,a.displayName||a.name||null;case 11:return a=a.type.render,a.displayName||a.name||null;case 1:return a=a.type,a.displayName||a.name||null;default:return null}}function J0(a,o){return m8.test(a)?(a=JSON.stringify(a),a.length>o-2?8>o?'{"..."}':"{"+a.slice(0,o-7)+'..."}':"{"+a+"}"):a.length>o?5>o?'{"..."}':a.slice(0,o-3)+"...":a}function m2(a,o,p){var m=120-2*p;if(o===null)return pv(p)+J0(a,m)+`
|
|
20
|
+
`;if(typeof o==="string"){for(var t=0;t<o.length&&t<a.length&&o.charCodeAt(t)===a.charCodeAt(t);t++);return t>m-8&&10<t&&(a="..."+a.slice(t-8),o="..."+o.slice(t-8)),pv(p)+J0(a,m)+`
|
|
21
|
+
`+br(p)+J0(o,m)+`
|
|
22
|
+
`}return Xp(p)+J0(a,m)+`
|
|
23
|
+
`}function A1(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(o,p){return p})}function Y0(a,o){switch(typeof a){case"string":return a=JSON.stringify(a),a.length>o?5>o?'"..."':a.slice(0,o-4)+'..."':a;case"object":if(a===null)return"null";if(Oo(a))return"[...]";if(a.$$typeof===Km)return(o=x(a.type))?"<"+o+">":"<...>";var p=A1(a);if(p==="Object"){p="",o-=2;for(var m in a)if(a.hasOwnProperty(m)){var t=JSON.stringify(m);if(t!=='"'+m+'"'&&(m=t),o-=m.length-2,t=Y0(a[m],15>o?o:15),o-=t.length,0>o){p+=p===""?"...":", ...";break}p+=(p===""?"":",")+m+":"+t}return"{"+p+"}"}return p;case"function":return(o=a.displayName||a.name)?"function "+o:"function";default:return String(a)}}function mv(a,o){return typeof a!=="string"||m8.test(a)?"{"+Y0(a,o-2)+"}":a.length>o-2?5>o?'"..."':'"'+a.slice(0,o-5)+'..."':'"'+a+'"'}function T1(a,o,p){var m=120-p.length-a.length,t=[],r;for(r in o)if(o.hasOwnProperty(r)&&r!=="children"){var v=mv(o[r],120-p.length-r.length-1);m-=r.length+v.length+2,t.push(r+"="+v)}return t.length===0?p+"<"+a+`>
|
|
24
|
+
`:0<m?p+"<"+a+" "+t.join(" ")+`>
|
|
25
|
+
`:p+"<"+a+`
|
|
26
|
+
`+p+" "+t.join(`
|
|
27
|
+
`+p+" ")+`
|
|
28
|
+
`+p+`>
|
|
29
|
+
`}function lz(a,o,p){var m="",t=da({},o),r;for(r in a)if(a.hasOwnProperty(r)){delete t[r];var v=120-2*p-r.length-2,b=Y0(a[r],v);o.hasOwnProperty(r)?(v=Y0(o[r],v),m+=pv(p)+r+": "+b+`
|
|
30
|
+
`,m+=br(p)+r+": "+v+`
|
|
31
|
+
`):m+=pv(p)+r+": "+b+`
|
|
32
|
+
`}for(var f in t)t.hasOwnProperty(f)&&(a=Y0(t[f],120-2*p-f.length-2),m+=br(p)+f+": "+a+`
|
|
33
|
+
`);return m}function zz(a,o,p,m){var t="",r=new Map;for(i in p)p.hasOwnProperty(i)&&r.set(i.toLowerCase(),i);if(r.size===1&&r.has("children"))t+=T1(a,o,Xp(m));else{for(var v in o)if(o.hasOwnProperty(v)&&v!=="children"){var b=120-2*(m+1)-v.length-1,f=r.get(v.toLowerCase());if(f!==void 0){r.delete(v.toLowerCase());var i=o[v];f=p[f];var Y=mv(i,b);b=mv(f,b),typeof i==="object"&&i!==null&&typeof f==="object"&&f!==null&&A1(i)==="Object"&&A1(f)==="Object"&&(2<Object.keys(i).length||2<Object.keys(f).length||-1<Y.indexOf("...")||-1<b.indexOf("..."))?t+=Xp(m+1)+v+`={{
|
|
34
|
+
`+lz(i,f,m+2)+Xp(m+1)+`}}
|
|
35
|
+
`:(t+=pv(m+1)+v+"="+Y+`
|
|
36
|
+
`,t+=br(m+1)+v+"="+b+`
|
|
37
|
+
`)}else t+=Xp(m+1)+v+"="+mv(o[v],b)+`
|
|
38
|
+
`}r.forEach(function(X){if(X!=="children"){var z=120-2*(m+1)-X.length-1;t+=br(m+1)+X+"="+mv(p[X],z)+`
|
|
39
|
+
`}}),t=t===""?Xp(m)+"<"+a+`>
|
|
40
|
+
`:Xp(m)+"<"+a+`
|
|
41
|
+
`+t+Xp(m)+`>
|
|
42
|
+
`}if(a=p.children,o=o.children,typeof a==="string"||typeof a==="number"||typeof a==="bigint"){if(r="",typeof o==="string"||typeof o==="number"||typeof o==="bigint")r=""+o;t+=m2(r,""+a,m+1)}else if(typeof o==="string"||typeof o==="number"||typeof o==="bigint")t=a==null?t+m2(""+o,null,m+1):t+m2(""+o,void 0,m+1);return t}function si(a,o){var p=Ei(a);if(p===null){p="";for(a=a.child;a;)p+=si(a,o),a=a.sibling;return p}return Xp(o)+"<"+p+`>
|
|
43
|
+
`}function n1(a,o){var p=ji(a,o);if(p!==a&&(a.children.length!==1||a.children[0]!==p))return Xp(o)+`...
|
|
44
|
+
`+n1(p,o+1);p="";var m=a.fiber._debugInfo;if(m)for(var t=0;t<m.length;t++){var r=m[t].name;typeof r==="string"&&(p+=Xp(o)+"<"+r+`>
|
|
45
|
+
`,o++)}if(m="",t=a.fiber.pendingProps,a.fiber.tag===6)m=m2(t,a.serverProps,o),o++;else if(r=Ei(a.fiber),r!==null)if(a.serverProps===void 0){m=o;var v=120-2*m-r.length-2,b="";for(i in t)if(t.hasOwnProperty(i)&&i!=="children"){var f=mv(t[i],15);if(v-=i.length+f.length+2,0>v){b+=" ...";break}b+=" "+i+"="+f}m=Xp(m)+"<"+r+b+`>
|
|
46
|
+
`,o++}else a.serverProps===null?(m=T1(r,t,pv(o)),o++):typeof a.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(m=zz(r,t,a.serverProps,o),o++);var i="";t=a.fiber.child;for(r=0;t&&r<a.children.length;)v=a.children[r],v.fiber===t?(i+=n1(v,o),r++):i+=si(t,o),t=t.sibling;t&&0<a.children.length&&(i+=Xp(o)+`...
|
|
47
|
+
`),t=a.serverTail,a.serverProps===null&&o--;for(a=0;a<t.length;a++)r=t[a],i=typeof r==="string"?i+(br(o)+J0(r,120-2*o)+`
|
|
48
|
+
`):i+T1(r.type,r.props,br(o));return p+m+i}function S1(a){try{return`
|
|
49
|
+
|
|
50
|
+
`+n1(a,0)}catch(o){return""}}function ei(a,o,p){for(var m=o,t=null,r=0;m;)m===a&&(r=0),t={fiber:m,children:t!==null?[t]:[],serverProps:m===o?p:m===a?null:void 0,serverTail:[],distanceFromLeaf:r},r++,m=m.return;return t!==null?S1(t).replaceAll(/^[+-]/gm,">"):""}function a7(a,o){var p=da({},a||r8),m={tag:o};if(t8.indexOf(o)!==-1&&(p.aTagInScope=null,p.buttonTagInScope=null,p.nobrTagInScope=null),ZJ.indexOf(o)!==-1&&(p.pTagInButtonScope=null),XJ.indexOf(o)!==-1&&o!=="address"&&o!=="div"&&o!=="p"&&(p.listItemTagAutoclosing=null,p.dlItemTagAutoclosing=null),p.current=m,o==="form"&&(p.formTag=m),o==="a"&&(p.aTagInScope=m),o==="button"&&(p.buttonTagInScope=m),o==="nobr"&&(p.nobrTagInScope=m),o==="p"&&(p.pTagInButtonScope=m),o==="li"&&(p.listItemTagAutoclosing=m),o==="dd"||o==="dt")p.dlItemTagAutoclosing=m;return o==="#document"||o==="html"?p.containerTagInScope=null:p.containerTagInScope||(p.containerTagInScope=m),a!==null||o!=="#document"&&o!=="html"&&o!=="body"?p.implicitRootScope===!0&&(p.implicitRootScope=!1):p.implicitRootScope=!0,p}function o7(a,o,p){switch(o){case"select":return a==="hr"||a==="option"||a==="optgroup"||a==="script"||a==="template"||a==="#text";case"optgroup":return a==="option"||a==="#text";case"option":return a==="#text";case"tr":return a==="th"||a==="td"||a==="style"||a==="script"||a==="template";case"tbody":case"thead":case"tfoot":return a==="tr"||a==="style"||a==="script"||a==="template";case"colgroup":return a==="col"||a==="template";case"table":return a==="caption"||a==="colgroup"||a==="tbody"||a==="tfoot"||a==="thead"||a==="style"||a==="script"||a==="template";case"head":return a==="base"||a==="basefont"||a==="bgsound"||a==="link"||a==="meta"||a==="title"||a==="noscript"||a==="noframes"||a==="style"||a==="script"||a==="template";case"html":if(p)break;return a==="head"||a==="body"||a==="frameset";case"frameset":return a==="frame";case"#document":if(!p)return a==="html"}switch(a){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return o!=="h1"&&o!=="h2"&&o!=="h3"&&o!=="h4"&&o!=="h5"&&o!=="h6";case"rp":case"rt":return GJ.indexOf(o)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return o==null;case"head":return p||o===null;case"html":return p&&o==="#document"||o===null;case"body":return p&&(o==="#document"||o==="html")||o===null}return!0}function $z(a,o){switch(a){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return o.pTagInButtonScope;case"form":return o.formTag||o.pTagInButtonScope;case"li":return o.listItemTagAutoclosing;case"dd":case"dt":return o.dlItemTagAutoclosing;case"button":return o.buttonTagInScope;case"a":return o.aTagInScope;case"nobr":return o.nobrTagInScope}return null}function p7(a,o){for(;a;){switch(a.tag){case 5:case 26:case 27:if(a.type===o)return a}a=a.return}return null}function u1(a,o){o=o||r8;var p=o.current;if(o=(p=o7(a,p&&p.tag,o.implicitRootScope)?null:p)?null:$z(a,o),o=p||o,!o)return!0;var m=o.tag;if(o=String(!!p)+"|"+a+"|"+m,Jb[o])return!1;Jb[o]=!0;var t=(o=Wp)?p7(o.return,m):null,r=o!==null&&t!==null?ei(t,o,null):"",v="<"+a+">";return p?(p="",m==="table"&&a==="tr"&&(p+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
51
|
+
This will cause a hydration error.%s`,v,m,p,r)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
52
|
+
This will cause a hydration error.%s`,v,m,r),o&&(a=o.return,t===null||a===null||t===a&&a._debugOwner===o._debugOwner||k(t,function(){console.error(`<%s> cannot contain a nested %s.
|
|
53
|
+
See this log for the ancestor stack trace.`,m,v)})),!1}function t2(a,o,p){if(p||o7("#text",o,!1))return!0;if(p="#text|"+o,Jb[p])return!1;Jb[p]=!0;var m=(p=Wp)?p7(p,o):null;return p=p!==null&&m!==null?ei(m,p,p.tag!==6?{children:null}:null):"",/\S/.test(a)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
54
|
+
This will cause a hydration error.%s`,o,p):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
55
|
+
This will cause a hydration error.%s`,o,p),!1}function X0(a,o){if(o){var p=a.firstChild;if(p&&p===a.lastChild&&p.nodeType===3){p.nodeValue=o;return}}a.textContent=o}function Jz(a){return a.replace(QJ,function(o,p){return p.toUpperCase()})}function m7(a,o,p){var m=o.indexOf("--")===0;m||(-1<o.indexOf("-")?Bv.hasOwnProperty(o)&&Bv[o]||(Bv[o]=!0,console.error("Unsupported style property %s. Did you mean %s?",o,Jz(o.replace(qJ,"ms-")))):_J.test(o)?Bv.hasOwnProperty(o)&&Bv[o]||(Bv[o]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",o,o.charAt(0).toUpperCase()+o.slice(1))):!f8.test(p)||bf.hasOwnProperty(p)&&bf[p]||(bf[p]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,o,p.replace(f8,""))),typeof p==="number"&&(isNaN(p)?i8||(i8=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",o)):isFinite(p)||w8||(w8=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",o)))),p==null||typeof p==="boolean"||p===""?m?a.setProperty(o,""):o==="float"?a.cssFloat="":a[o]="":m?a.setProperty(o,p):typeof p!=="number"||p===0||c8.has(o)?o==="float"?a.cssFloat=p:(O1(p,o),a[o]=(""+p).trim()):a[o]=p+"px"}function t7(a,o,p){if(o!=null&&typeof o!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(o&&Object.freeze(o),a=a.style,p!=null){if(o){var m={};if(p){for(var t in p)if(p.hasOwnProperty(t)&&!o.hasOwnProperty(t))for(var r=vf[t]||[t],v=0;v<r.length;v++)m[r[v]]=t}for(var b in o)if(o.hasOwnProperty(b)&&(!p||p[b]!==o[b]))for(t=vf[b]||[b],r=0;r<t.length;r++)m[t[r]]=b;b={};for(var f in o)for(t=vf[f]||[f],r=0;r<t.length;r++)b[t[r]]=f;f={};for(var i in m)if(t=m[i],(r=b[i])&&t!==r&&(v=t+","+r,!f[v])){f[v]=!0,v=console;var Y=o[t];v.error.call(v,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Y==null||typeof Y==="boolean"||Y===""?"Removing":"Updating",t,r)}}for(var X in p)!p.hasOwnProperty(X)||o!=null&&o.hasOwnProperty(X)||(X.indexOf("--")===0?a.setProperty(X,""):X==="float"?a.cssFloat="":a[X]="");for(var z in o)i=o[z],o.hasOwnProperty(z)&&p[z]!==i&&m7(a,z,i)}else for(m in o)o.hasOwnProperty(m)&&m7(a,m,o[m])}function Z0(a){if(a.indexOf("-")===-1)return!1;switch(a){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}}function r7(a){return BJ.get(a)||a}function Yz(a,o){if(am.call(Hv,o)&&Hv[o])return!0;if(HJ.test(o)){if(a="aria-"+o.slice(4).toLowerCase(),a=l8.hasOwnProperty(a)?a:null,a==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",o),Hv[o]=!0;if(o!==a)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",o,a),Hv[o]=!0}if(KJ.test(o)){if(a=o.toLowerCase(),a=l8.hasOwnProperty(a)?a:null,a==null)return Hv[o]=!0,!1;o!==a&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",o,a),Hv[o]=!0)}return!0}function Xz(a,o){var p=[],m;for(m in o)Yz(a,m)||p.push(m);o=p.map(function(t){return"`"+t+"`"}).join(", "),p.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",o,a):1<p.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",o,a)}function Zz(a,o,p,m){if(am.call(op,o)&&op[o])return!0;var t=o.toLowerCase();if(t==="onfocusin"||t==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),op[o]=!0;if(typeof p==="function"&&(a==="form"&&o==="action"||a==="input"&&o==="formAction"||a==="button"&&o==="formAction"))return!0;if(m!=null){if(a=m.possibleRegistrationNames,m.registrationNameDependencies.hasOwnProperty(o))return!0;if(m=a.hasOwnProperty(t)?a[t]:null,m!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",o,m),op[o]=!0;if($8.test(o))return console.error("Unknown event handler property `%s`. It will be ignored.",o),op[o]=!0}else if($8.test(o))return WJ.test(o)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",o),op[o]=!0;if(dJ.test(o)||UJ.test(o))return!0;if(t==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),op[o]=!0;if(t==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),op[o]=!0;if(t==="is"&&p!==null&&p!==void 0&&typeof p!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof p),op[o]=!0;if(typeof p==="number"&&isNaN(p))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",o),op[o]=!0;if(Xb.hasOwnProperty(t)){if(t=Xb[t],t!==o)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",o,t),op[o]=!0}else if(o!==t)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",o,t),op[o]=!0;switch(o){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof p){case"boolean":switch(o){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:if(t=o.toLowerCase().slice(0,5),t==="data-"||t==="aria-")return!0;return p?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',p,o,o,p,o):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',p,o,o,p,o,o,o),op[o]=!0}case"function":case"symbol":return op[o]=!0,!1;case"string":if(p==="false"||p==="true"){switch(o){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",p,o,p==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',o,p),op[o]=!0}}return!0}function Gz(a,o,p){var m=[],t;for(t in o)Zz(a,t,o[t],p)||m.push(t);o=m.map(function(r){return"`"+r+"`"}).join(", "),m.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",o,a):1<m.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",o,a)}function G0(a){return RJ.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Cm(){}function x1(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}function v7(a){var o=$t(a);if(o&&(a=o.stateNode)){var p=a[ap]||null;a:switch(a=o.stateNode,o.type){case"input":if(P1(a,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),o=p.name,p.type==="radio"&&o!=null){for(p=a;p.parentNode;)p=p.parentNode;po(o,"name"),p=p.querySelectorAll('input[name="'+Np(""+o)+'"][type="radio"]');for(o=0;o<p.length;o++){var m=p[o];if(m!==a&&m.form===a.form){var t=m[ap]||null;if(!t)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");P1(m,t.value,t.defaultValue,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name)}}for(o=0;o<p.length;o++)m=p[o],m.form===a.form&&Ii(m)}break a;case"textarea":Vi(a,p.value,p.defaultValue);break a;case"select":o=p.value,o!=null&&ov(a,!!p.multiple,o,!1)}}}function b7(a,o,p){if(ff)return a(o,p);ff=!0;try{var m=a(o);return m}finally{if(ff=!1,Wv!==null||dv!==null){if(zv(),Wv&&(o=Wv,a=dv,dv=Wv=null,v7(o),a))for(o=0;o<a.length;o++)v7(a[o])}}}function _0(a,o){var p=a.stateNode;if(p===null)return null;var m=p[ap]||null;if(m===null)return null;p=m[o];a:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(a=a.type,m=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!m;break a;default:a=!1}if(a)return null;if(p&&typeof p!=="function")throw Error("Expected `"+o+"` listener to be a function, instead got a value of `"+typeof p+"` type.");return p}function f7(){if(Zb)return Zb;var a,o=cf,p=o.length,m,t="value"in Ot?Ot.value:Ot.textContent,r=t.length;for(a=0;a<p&&o[a]===t[a];a++);var v=p-a;for(m=1;m<=v&&o[p-m]===t[r-m];m++);return Zb=t.slice(a,1<m?1-m:void 0)}function r2(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function v2(){return!0}function i7(){return!1}function fp(a){function o(p,m,t,r,v){this._reactName=p,this._targetInst=t,this.type=m,this.nativeEvent=r,this.target=v,this.currentTarget=null;for(var b in a)a.hasOwnProperty(b)&&(p=a[b],this[b]=p?p(r):r[b]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?v2:i7,this.isPropagationStopped=i7,this}return da(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!=="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=v2)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!=="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=v2)},persist:function(){},isPersistent:v2}),o}function _z(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=AJ[a])?!!o[a]:!1}function V1(){return _z}function w7(a,o){switch(a){case"keyup":return aY.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==Z8;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function c7(a){return a=a.detail,typeof a==="object"&&"data"in a?a.data:null}function qz(a,o){switch(a){case"compositionend":return c7(o);case"keypress":if(o.which!==_8)return null;return Q8=!0,q8;case"textInput":return a=o.data,a===q8&&Q8?null:a;default:return null}}function Qz(a,o){if(Uv)return a==="compositionend"||!Jf&&w7(a,o)?(a=f7(),Zb=cf=Ot=null,Uv=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return G8&&o.locale!=="ko"?null:o.data;default:return null}}function l7(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!pY[a.type]:o==="textarea"?!0:!1}function Bz(a){if(!ym)return!1;a="on"+a;var o=a in document;return o||(o=document.createElement("div"),o.setAttribute(a,"return;"),o=typeof o[a]==="function"),o}function z7(a,o,p,m){Wv?dv?dv.push(m):dv=[m]:Wv=m,o=s2(o,"onChange"),0<o.length&&(p=new Gb("onChange","change",null,p,m),a.push({event:p,listeners:o}))}function Kz(a){Dw(a,0)}function b2(a){var o=$0(a);if(Ii(o))return a}function $7(a,o){if(a==="change")return o}function J7(){r5&&(r5.detachEvent("onpropertychange",Y7),v5=r5=null)}function Y7(a){if(a.propertyName==="value"&&b2(v5)){var o=[];z7(o,v5,a,x1(a)),b7(Kz,o)}}function Hz(a,o,p){a==="focusin"?(J7(),r5=o,v5=p,r5.attachEvent("onpropertychange",Y7)):a==="focusout"&&J7()}function Wz(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return b2(v5)}function dz(a,o){if(a==="click")return b2(o)}function Uz(a,o){if(a==="input"||a==="change")return b2(o)}function Rz(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}function q0(a,o){if(pp(a,o))return!0;if(typeof a!=="object"||a===null||typeof o!=="object"||o===null)return!1;var p=Object.keys(a),m=Object.keys(o);if(p.length!==m.length)return!1;for(m=0;m<p.length;m++){var t=p[m];if(!am.call(o,t)||!pp(a[t],o[t]))return!1}return!0}function X7(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Z7(a,o){var p=X7(a);a=0;for(var m;p;){if(p.nodeType===3){if(m=a+p.textContent.length,a<=o&&m>=o)return{node:p,offset:o-a};a=m}a:{for(;p;){if(p.nextSibling){p=p.nextSibling;break a}p=p.parentNode}p=void 0}p=X7(p)}}function G7(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?G7(a,o.parentNode):("contains"in a)?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function _7(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=p2(a.document);o instanceof a.HTMLIFrameElement;){try{var p=typeof o.contentWindow.location.href==="string"}catch(m){p=!1}if(p)a=o.contentWindow;else break;o=p2(a.document)}return o}function D1(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}function q7(a,o,p){var m=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Xf||Rv==null||Rv!==p2(m)||(m=Rv,("selectionStart"in m)&&D1(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),b5&&q0(b5,m)||(b5=m,m=s2(Yf,"onSelect"),0<m.length&&(o=new Gb("onSelect","select",null,o,p),a.push({event:o,listeners:m}),o.target=Rv)))}function fr(a,o){var p={};return p[a.toLowerCase()]=o.toLowerCase(),p["Webkit"+a]="webkit"+o,p["Moz"+a]="moz"+o,p}function ir(a){if(Zf[a])return Zf[a];if(!yv[a])return a;var o=yv[a],p;for(p in o)if(o.hasOwnProperty(p)&&p in K8)return Zf[a]=o[p];return a}function Ep(a,o){R8.set(a,o),vr(o,[a])}function yz(a){for(var o=qb,p=0;p<a.length;p++){var m=a[p];if(typeof m==="object"&&m!==null)if(Oo(m)&&m.length===2&&typeof m[0]==="string"){if(o!==qb&&o!==Bf)return qf;o=Bf}else return qf;else{if(typeof m==="function"||typeof m==="string"&&50<m.length||o!==qb&&o!==Qf)return qf;o=Qf}}return o}function j1(a,o,p,m){for(var t in a)am.call(a,t)&&t[0]!=="_"&&fm(t,a[t],o,p,m)}function fm(a,o,p,m,t){switch(typeof o){case"object":if(o===null){o="null";break}else{if(o.$$typeof===Km){var r=x(o.type)||"…",v=o.key;o=o.props;var b=Object.keys(o),f=b.length;if(v==null&&f===0){o="<"+r+" />";break}if(3>m||f===1&&b[0]==="children"&&v==null){o="<"+r+" … />";break}p.push([t+" ".repeat(m)+a,"<"+r]),v!==null&&fm("key",v,p,m+1,t),a=!1;for(var i in o)i==="children"?o.children!=null&&(!Oo(o.children)||0<o.children.length)&&(a=!0):am.call(o,i)&&i[0]!=="_"&&fm(i,o[i],p,m+1,t);p.push(["",a?">…</"+r+">":"/>"]);return}if(r=Object.prototype.toString.call(o),r=r.slice(8,r.length-1),r==="Array"){if(i=yz(o),i===Qf||i===qb){o=JSON.stringify(o);break}else if(i===Bf){p.push([t+" ".repeat(m)+a,""]);for(a=0;a<o.length;a++)r=o[a],fm(r[0],r[1],p,m+1,t);return}}if(r==="Promise"){if(o.status==="fulfilled"){if(r=p.length,fm(a,o.value,p,m,t),p.length>r){p=p[r],p[1]="Promise<"+(p[1]||"Object")+">";return}}else if(o.status==="rejected"&&(r=p.length,fm(a,o.reason,p,m,t),p.length>r)){p=p[r],p[1]="Rejected Promise<"+p[1]+">";return}p.push([" ".repeat(m)+a,"Promise"]);return}r==="Object"&&(i=Object.getPrototypeOf(o))&&typeof i.constructor==="function"&&(r=i.constructor.name),p.push([t+" ".repeat(m)+a,r==="Object"?3>m?"":"…":r]),3>m&&j1(o,p,m+1,t);return}case"function":o=o.name===""?"() => {}":o.name+"() {}";break;case"string":o=o===iY?"…":JSON.stringify(o);break;case"undefined":o="undefined";break;case"boolean":o=o?"true":"false";break;default:o=String(o)}p.push([t+" ".repeat(m)+a,o])}function Q7(a,o,p,m){var t=!0;for(v in a)v in o||(p.push([Qb+" ".repeat(m)+v,"…"]),t=!1);for(var r in o)if(r in a){var v=a[r],b=o[r];if(v!==b){if(m===0&&r==="children")t=" ".repeat(m)+r,p.push([Qb+t,"…"],[Bb+t,"…"]);else{if(!(3<=m)){if(typeof v==="object"&&typeof b==="object"&&v!==null&&b!==null&&v.$$typeof===b.$$typeof)if(b.$$typeof===Km){if(v.type===b.type&&v.key===b.key){v=x(b.type)||"…",t=" ".repeat(m)+r,v="<"+v+" … />",p.push([Qb+t,v],[Bb+t,v]),t=!1;continue}}else{var f=Object.prototype.toString.call(v),i=Object.prototype.toString.call(b);if(f===i&&(i==="[object Object]"||i==="[object Array]")){f=[L8+" ".repeat(m)+r,i==="[object Array]"?"Array":""],p.push(f),i=p.length,Q7(v,b,p,m+1)?i===p.length&&(f[1]="Referentially unequal but deeply equal objects. Consider memoization."):t=!1;continue}}else if(typeof v==="function"&&typeof b==="function"&&v.name===b.name&&v.length===b.length&&(f=Function.prototype.toString.call(v),i=Function.prototype.toString.call(b),f===i)){v=b.name===""?"() => {}":b.name+"() {}",p.push([L8+" ".repeat(m)+r,v+" Referentially unequal function closure. Consider memoization."]);continue}}fm(r,v,p,m,Qb),fm(r,b,p,m,Bb)}t=!1}}else p.push([Bb+" ".repeat(m)+r,"…"]),t=!1;return t}function Zp(a){Ra=a&63?"Blocking":a&64?"Gesture":a&4194176?"Transition":a&62914560?"Suspense":a&2080374784?"Idle":"Other"}function im(a,o,p,m){mo&&(ht.start=o,ht.end=p,Vm.color="warning",Vm.tooltipText=m,Vm.properties=null,(a=a._debugTask)?a.run(performance.measure.bind(performance,m,ht)):performance.measure(m,ht))}function f2(a,o,p){im(a,o,p,"Reconnect")}function i2(a,o,p,m,t){var r=O(a);if(r!==null&&mo){var{alternate:v,actualDuration:b}=a;if(v===null||v.child!==a.child)for(var f=a.child;f!==null;f=f.sibling)b-=f.actualDuration;m=0.5>b?m?"tertiary-light":"primary-light":10>b?m?"tertiary":"primary":100>b?m?"tertiary-dark":"primary-dark":"error";var i=a.memoizedProps;b=a._debugTask,i!==null&&v!==null&&v.memoizedProps!==i?(f=[wY],i=Q7(v.memoizedProps,i,f,0),1<f.length&&(i&&!Lt&&(v.lanes&t)===0&&100<a.actualDuration?(Lt=!0,f[0]=cY,Vm.color="warning",Vm.tooltipText=h8):(Vm.color=m,Vm.tooltipText=r),Vm.properties=f,ht.start=o,ht.end=p,b!=null?b.run(performance.measure.bind(performance,""+r,ht)):performance.measure(""+r,ht))):b!=null?b.run(console.timeStamp.bind(console,r,o,p,gp,void 0,m)):console.timeStamp(r,o,p,gp,void 0,m)}}function E1(a,o,p,m){if(mo){var t=O(a);if(t!==null){for(var r=null,v=[],b=0;b<m.length;b++){var f=m[b];r==null&&f.source!==null&&(r=f.source._debugTask),f=f.value,v.push(["Error",typeof f==="object"&&f!==null&&typeof f.message==="string"?String(f.message):String(f)])}a.key!==null&&fm("key",a.key,v,0,""),a.memoizedProps!==null&&j1(a.memoizedProps,v,0,""),r==null&&(r=a._debugTask),a={start:o,end:p,detail:{devtools:{color:"error",track:gp,tooltipText:a.tag===13?"Hydration failed":"Error boundary caught an error",properties:v}}},r?r.run(performance.measure.bind(performance,""+t,a)):performance.measure(""+t,a)}}}function wm(a,o,p,m,t){if(t!==null){if(mo){var r=O(a);if(r!==null){m=[];for(var v=0;v<t.length;v++){var b=t[v].value;m.push(["Error",typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b)])}a.key!==null&&fm("key",a.key,m,0,""),a.memoizedProps!==null&&j1(a.memoizedProps,m,0,""),o={start:o,end:p,detail:{devtools:{color:"error",track:gp,tooltipText:"A lifecycle or effect errored",properties:m}}},(a=a._debugTask)?a.run(performance.measure.bind(performance,""+r,o)):performance.measure(""+r,o)}}}else r=O(a),r!==null&&mo&&(t=1>m?"secondary-light":100>m?"secondary":500>m?"secondary-dark":"error",(a=a._debugTask)?a.run(console.timeStamp.bind(console,r,o,p,gp,void 0,t)):console.timeStamp(r,o,p,gp,void 0,t))}function Oz(a,o,p,m){if(mo&&!(o<=a)){var t=(p&738197653)===p?"tertiary-dark":"primary-dark";p=(p&536870912)===p?"Prepared":(p&201326741)===p?"Hydrated":"Render",m?m.run(console.timeStamp.bind(console,p,a,o,Ra,Ua,t)):console.timeStamp(p,a,o,Ra,Ua,t)}}function B7(a,o,p,m){!mo||o<=a||(p=(p&738197653)===p?"tertiary-dark":"primary-dark",m?m.run(console.timeStamp.bind(console,"Prewarm",a,o,Ra,Ua,p)):console.timeStamp("Prewarm",a,o,Ra,Ua,p))}function K7(a,o,p,m){!mo||o<=a||(p=(p&738197653)===p?"tertiary-dark":"primary-dark",m?m.run(console.timeStamp.bind(console,"Suspended",a,o,Ra,Ua,p)):console.timeStamp("Suspended",a,o,Ra,Ua,p))}function Lz(a,o,p,m,t,r){if(mo&&!(o<=a)){p=[];for(var v=0;v<m.length;v++){var b=m[v].value;p.push(["Recoverable Error",typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b)])}a={start:a,end:o,detail:{devtools:{color:"primary-dark",track:Ra,trackGroup:Ua,tooltipText:t?"Hydration Failed":"Recovered after Error",properties:p}}},r?r.run(performance.measure.bind(performance,"Recovered",a)):performance.measure("Recovered",a)}}function s1(a,o,p,m){!mo||o<=a||(m?m.run(console.timeStamp.bind(console,"Errored",a,o,Ra,Ua,"error")):console.timeStamp("Errored",a,o,Ra,Ua,"error"))}function hz(a,o,p,m){!mo||o<=a||(m?m.run(console.timeStamp.bind(console,p,a,o,Ra,Ua,"secondary-light")):console.timeStamp(p,a,o,Ra,Ua,"secondary-light"))}function H7(a,o,p,m,t){if(mo&&!(o<=a)){for(var r=[],v=0;v<p.length;v++){var b=p[v].value;r.push(["Error",typeof b==="object"&&b!==null&&typeof b.message==="string"?String(b.message):String(b)])}a={start:a,end:o,detail:{devtools:{color:"error",track:Ra,trackGroup:Ua,tooltipText:m?"Remaining Effects Errored":"Commit Errored",properties:r}}},t?t.run(performance.measure.bind(performance,"Errored",a)):performance.measure("Errored",a)}}function Q0(a,o,p){!mo||o<=a||(p?p.run(console.timeStamp.bind(console,"Animating",a,o,Ra,Ua,"secondary-dark")):console.timeStamp("Animating",a,o,Ra,Ua,"secondary-dark"))}function w2(){for(var a=Ov,o=Kf=Ov=0;o<a;){var p=Fp[o];Fp[o++]=null;var m=Fp[o];Fp[o++]=null;var t=Fp[o];Fp[o++]=null;var r=Fp[o];if(Fp[o++]=null,m!==null&&t!==null){var v=m.pending;v===null?t.next=t:(t.next=v.next,v.next=t),m.pending=t}r!==0&&W7(p,t,r)}}function c2(a,o,p,m){Fp[Ov++]=a,Fp[Ov++]=o,Fp[Ov++]=p,Fp[Ov++]=m,Kf|=m,a.lanes|=m,a=a.alternate,a!==null&&(a.lanes|=m)}function e1(a,o,p,m){return c2(a,o,p,m),l2(a)}function Vo(a,o){return c2(a,null,null,o),l2(a)}function W7(a,o,p){a.lanes|=p;var m=a.alternate;m!==null&&(m.lanes|=p);for(var t=!1,r=a.return;r!==null;)r.childLanes|=p,m=r.alternate,m!==null&&(m.childLanes|=p),r.tag===22&&(a=r.stateNode,a===null||a._visibility&f5||(t=!0)),a=r,r=r.return;return a.tag===3?(r=a.stateNode,t&&o!==null&&(t=31-eo(p),a=r.hiddenUpdates,m=a[t],m===null?a[t]=[o]:m.push(o),o.lane=p|536870912),r):null}function l2(a){if(N5>WY)throw Fr=N5=0,M5=mi=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Fr>dY&&(Fr=0,M5=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),a.alternate===null&&(a.flags&4098)!==0&&Aw(a);for(var o=a,p=o.return;p!==null;)o.alternate===null&&(o.flags&4098)!==0&&Aw(a),o=p,p=o.return;return o.tag===3?o.stateNode:null}function wr(a){if(Cp===null)return a;var o=Cp(a);return o===void 0?a:o.current}function a4(a){if(Cp===null)return a;var o=Cp(a);return o===void 0?a!==null&&a!==void 0&&typeof a.render==="function"&&(o=wr(a.render),a.render!==o)?(o={$$typeof:j0,render:o},a.displayName!==void 0&&(o.displayName=a.displayName),o):a:o.current}function d7(a,o){if(Cp===null)return!1;var p=a.elementType;o=o.type;var m=!1,t=typeof o==="object"&&o!==null?o.$$typeof:null;switch(a.tag){case 1:typeof o==="function"&&(m=!0);break;case 0:typeof o==="function"?m=!0:t===Hp&&(m=!0);break;case 11:t===j0?m=!0:t===Hp&&(m=!0);break;case 14:case 15:t===ib?m=!0:t===Hp&&(m=!0);break;default:return!1}return m&&(a=Cp(p),a!==void 0&&a===Cp(o))?!0:!1}function U7(a){Cp!==null&&typeof WeakSet==="function"&&(Lv===null&&(Lv=new WeakSet),Lv.add(a))}function R7(a,o,p){do{var m=a,t=m.alternate,r=m.child,v=m.sibling,b=m.tag;m=m.type;var f=null;switch(b){case 0:case 15:case 1:f=m;break;case 11:f=m.render}if(Cp===null)throw Error("Expected resolveFamily to be set during hot reload.");var i=!1;if(m=!1,f!==null&&(f=Cp(f),f!==void 0&&(p.has(f)?m=!0:o.has(f)&&(b===1?m=!0:i=!0))),Lv!==null&&(Lv.has(a)||t!==null&&Lv.has(t))&&(m=!0),m&&(a._debugNeedsRemount=!0),m||i)t=Vo(a,2),t!==null&&Jo(t,a,2);if(r===null||m||R7(r,o,p),v===null)break;a=v}while(1)}function kz(a,o,p,m){this.tag=a,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,k8||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function o4(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Pm(a,o){var p=a.alternate;switch(p===null?(p=M(a.tag,o,a.key,a.mode),p.elementType=a.elementType,p.type=a.type,p.stateNode=a.stateNode,p._debugOwner=a._debugOwner,p._debugStack=a._debugStack,p._debugTask=a._debugTask,p._debugHookTypes=a._debugHookTypes,p.alternate=a,a.alternate=p):(p.pendingProps=o,p.type=a.type,p.flags=0,p.subtreeFlags=0,p.deletions=null,p.actualDuration=-0,p.actualStartTime=-1.1),p.flags=a.flags&65011712,p.childLanes=a.childLanes,p.lanes=a.lanes,p.child=a.child,p.memoizedProps=a.memoizedProps,p.memoizedState=a.memoizedState,p.updateQueue=a.updateQueue,o=a.dependencies,p.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext,_debugThenableState:o._debugThenableState},p.sibling=a.sibling,p.index=a.index,p.ref=a.ref,p.refCleanup=a.refCleanup,p.selfBaseDuration=a.selfBaseDuration,p.treeBaseDuration=a.treeBaseDuration,p._debugInfo=a._debugInfo,p._debugNeedsRemount=a._debugNeedsRemount,p.tag){case 0:case 15:p.type=wr(a.type);break;case 1:p.type=wr(a.type);break;case 11:p.type=a4(a.type)}return p}function y7(a,o){a.flags&=65011714;var p=a.alternate;return p===null?(a.childLanes=0,a.lanes=o,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null,a.selfBaseDuration=0,a.treeBaseDuration=0):(a.childLanes=p.childLanes,a.lanes=p.lanes,a.child=p.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=p.memoizedProps,a.memoizedState=p.memoizedState,a.updateQueue=p.updateQueue,a.type=p.type,o=p.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext,_debugThenableState:o._debugThenableState},a.selfBaseDuration=p.selfBaseDuration,a.treeBaseDuration=p.treeBaseDuration),a}function p4(a,o,p,m,t,r){var v=0,b=a;if(typeof a==="function")o4(a)&&(v=1),b=wr(b);else if(typeof a==="string")v=ra(),v=T$(a,p,v)?26:a==="html"||a==="head"||a==="body"?27:5;else a:switch(a){case V3:return o=M(31,p,o,t),o.elementType=V3,o.lanes=r,o;case _v:return cr(p.children,t,r,o);case fb:v=8,t|=jo,t|=pm;break;case n3:return a=p,m=t,typeof a.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof a.id),o=M(12,a,o,m|Qa),o.elementType=n3,o.lanes=r,o.stateNode={effectDuration:0,passiveEffectDuration:0},o;case u3:return o=M(13,p,o,t),o.elementType=u3,o.lanes=r,o;case x3:return o=M(19,p,o,t),o.elementType=x3,o.lanes=r,o;default:if(typeof a==="object"&&a!==null)switch(a.$$typeof){case Hm:v=10;break a;case S3:v=9;break a;case j0:v=11,b=a4(b);break a;case ib:v=14;break a;case Hp:v=16,b=null;break a}if(b="",a===void 0||typeof a==="object"&&a!==null&&Object.keys(a).length===0)b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";a===null?p="null":Oo(a)?p="array":a!==void 0&&a.$$typeof===Km?(p="<"+(x(a.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):p=typeof a,(v=m?na(m):null)&&(b+=`
|
|
56
|
+
|
|
57
|
+
Check the render method of \``+v+"`."),v=29,p=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(p+"."+b)),b=null}return o=M(v,p,o,t),o.elementType=a,o.type=b,o.lanes=r,o._debugOwner=m,o}function z2(a,o,p){return o=p4(a.type,a.key,a.props,a._owner,o,p),o._debugOwner=a._owner,o._debugStack=a._debugStack,o._debugTask=a._debugTask,o}function cr(a,o,p,m){return a=M(7,a,m,o),a.lanes=p,a}function m4(a,o,p){return a=M(6,a,null,o),a.lanes=p,a}function O7(a){var o=M(18,null,null,la);return o.stateNode=a,o}function t4(a,o,p){return o=M(4,a.children!==null?a.children:[],a.key,o),o.lanes=p,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}function Gp(a,o){if(typeof a==="object"&&a!==null){var p=Hf.get(a);if(p!==void 0)return p;return o={value:a,source:o,stack:tr(o)},Hf.set(a,o),o}return{value:a,source:o,stack:tr(o)}}function Im(a,o){Jt(),hv[kv++]=i5,hv[kv++]=Kb,Kb=a,i5=o}function L7(a,o,p){Jt(),Pp[Ip++]=jm,Pp[Ip++]=Em,Pp[Ip++]=Kr,Kr=a;var m=jm;a=Em;var t=32-eo(m)-1;m&=~(1<<t),p+=1;var r=32-eo(o)+t;if(30<r){var v=t-t%5;r=(m&(1<<v)-1).toString(32),m>>=v,t-=v,jm=1<<32-eo(o)+t|p<<t|m,Em=r+a}else jm=1<<r|p<<t|m,Em=a}function r4(a){Jt(),a.return!==null&&(Im(a,1),L7(a,1,0))}function v4(a){for(;a===Kb;)Kb=hv[--kv],hv[kv]=null,i5=hv[--kv],hv[kv]=null;for(;a===Kr;)Kr=Pp[--Ip],Pp[Ip]=null,Em=Pp[--Ip],Pp[Ip]=null,jm=Pp[--Ip],Pp[Ip]=null}function h7(){return Jt(),Kr!==null?{id:jm,overflow:Em}:null}function k7(a,o){Jt(),Pp[Ip++]=jm,Pp[Ip++]=Em,Pp[Ip++]=Kr,jm=o.id,Em=o.overflow,Kr=a}function Jt(){ya||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function lr(a,o){if(a.return===null){if(Up===null)Up={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:o};else{if(Up.fiber!==a)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Up.distanceFromLeaf>o&&(Up.distanceFromLeaf=o)}return Up}var p=lr(a.return,o+1).children;if(0<p.length&&p[p.length-1].fiber===a)return p=p[p.length-1],p.distanceFromLeaf>o&&(p.distanceFromLeaf=o),p;return o={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:o},p.push(o),o}function N7(){ya&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function $2(a,o){Om||(a=lr(a,0),a.serverProps=null,o!==null&&(o=zc(o),a.serverTail.push(o)))}function Yt(a){var o=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,p="",m=Up;throw m!==null&&(Up=null,p=S1(m)),B0(Gp(Error("Hydration failed because the server rendered "+(o?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
58
|
+
|
|
59
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
60
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
61
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
62
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
63
|
+
- Invalid HTML tag nesting.
|
|
64
|
+
|
|
65
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
66
|
+
|
|
67
|
+
https://react.dev/link/hydration-mismatch`+p),a)),Wf}function M7(a){var{stateNode:o,type:p,memoizedProps:m}=a;switch(o[no]=a,o[ap]=m,W3(p,m),p){case"dialog":La("cancel",o),La("close",o);break;case"iframe":case"object":case"embed":La("load",o);break;case"video":case"audio":for(p=0;p<g5.length;p++)La(g5[p],o);break;case"source":La("error",o);break;case"img":case"image":case"link":La("error",o),La("load",o);break;case"details":La("toggle",o);break;case"input":av("input",m),La("invalid",o),Ai(o,m),Ti(o,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"option":ni(o,m);break;case"select":av("select",m),La("invalid",o),ui(o,m);break;case"textarea":av("textarea",m),La("invalid",o),xi(o,m),Di(o,m.value,m.defaultValue,m.children)}p=m.children,typeof p!=="string"&&typeof p!=="number"&&typeof p!=="bigint"||o.textContent===""+p||m.suppressHydrationWarning===!0||ew(o.textContent,p)?(m.popover!=null&&(La("beforetoggle",o),La("toggle",o)),m.onScroll!=null&&La("scroll",o),m.onScrollEnd!=null&&La("scrollend",o),m.onClick!=null&&(o.onclick=Cm),o=!0):o=!1,o||Yt(a,!0)}function g7(a){for(So=a.return;So;)switch(So.tag){case 5:case 31:case 13:Ap=!1;return;case 27:case 3:Ap=!0;return;default:So=So.return}}function tv(a){if(a!==So)return!1;if(!ya)return g7(a),ya=!0,!1;var o=a.tag,p;if(p=o!==3&&o!==27){if(p=o===5)p=a.type,p=!(p!=="form"&&p!=="button")||O3(a.type,a.memoizedProps);p=!p}if(p&&to){for(p=to;p;){var m=lr(a,0),t=zc(p);m.serverTail.push(t),p=t.type==="Suspense"?N3(p):Kp(p.nextSibling)}Yt(a)}if(g7(a),o===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");to=N3(a)}else if(o===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");to=N3(a)}else o===27?(o=to,Wt(a.type)?(a=Ji,Ji=null,to=a):to=o):to=So?Kp(a.stateNode.nextSibling):null;return!0}function zr(){to=So=null,Om=ya=!1}function b4(){var a=Nt;return a!==null&&(vp===null?vp=a:vp.push.apply(vp,a),Nt=null),a}function B0(a){Nt===null?Nt=[a]:Nt.push(a)}function f4(){var a=Up;if(a!==null){Up=null;for(var o=S1(a);0<a.children.length;)a=a.children[0];k(a.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
68
|
+
|
|
69
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
70
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
71
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
72
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
73
|
+
- Invalid HTML tag nesting.
|
|
74
|
+
|
|
75
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
76
|
+
|
|
77
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",o)})}}function J2(){Nv=Hb=null,Mv=!1}function Xt(a,o,p){W(df,o._currentValue,a),o._currentValue=p,W(Uf,o._currentRenderer,a),o._currentRenderer!==void 0&&o._currentRenderer!==null&&o._currentRenderer!==M8&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),o._currentRenderer=M8}function Am(a,o){a._currentValue=df.current;var p=Uf.current;L(Uf,o),a._currentRenderer=p,L(df,o)}function i4(a,o,p){for(;a!==null;){var m=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,m!==null&&(m.childLanes|=o)):m!==null&&(m.childLanes&o)!==o&&(m.childLanes|=o),a===p)break;a=a.return}a!==p&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function w4(a,o,p,m){var t=a.child;t!==null&&(t.return=a);for(;t!==null;){var r=t.dependencies;if(r!==null){var v=t.child;r=r.firstContext;a:for(;r!==null;){var b=r;r=t;for(var f=0;f<o.length;f++)if(b.context===o[f]){r.lanes|=p,b=r.alternate,b!==null&&(b.lanes|=p),i4(r.return,p,a),m||(v=null);break a}r=b.next}}else if(t.tag===18){if(v=t.return,v===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");v.lanes|=p,r=v.alternate,r!==null&&(r.lanes|=p),i4(v,p,a),v=null}else v=t.child;if(v!==null)v.return=t;else for(v=t;v!==null;){if(v===a){v=null;break}if(t=v.sibling,t!==null){t.return=v.return,v=t;break}v=v.return}t=v}}function rv(a,o,p,m){a=null;for(var t=o,r=!1;t!==null;){if(!r){if((t.flags&524288)!==0)r=!0;else if((t.flags&262144)!==0)break}if(t.tag===10){var v=t.alternate;if(v===null)throw Error("Should have a current fiber. This is a bug in React.");if(v=v.memoizedProps,v!==null){var b=t.type;pp(t.pendingProps.value,v.value)||(a!==null?a.push(b):a=[b])}}else if(t===wb.current){if(v=t.alternate,v===null)throw Error("Should have a current fiber. This is a bug in React.");v.memoizedState.memoizedState!==t.memoizedState.memoizedState&&(a!==null?a.push(A5):a=[A5])}t=t.return}a!==null&&w4(o,a,p,m),o.flags|=262144}function Y2(a){for(a=a.firstContext;a!==null;){if(!pp(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function $r(a){Hb=a,Nv=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function fo(a){return Mv&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),F7(Hb,a)}function X2(a,o){return Hb===null&&$r(a),F7(a,o)}function F7(a,o){var p=o._currentValue;if(o={context:o,memoizedValue:p,next:null},Nv===null){if(a===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Nv=o,a.dependencies={lanes:0,firstContext:o,_debugThenableState:null},a.flags|=524288}else Nv=Nv.next=o;return p}function c4(){return{controller:new $Y,data:new Map,refCount:0}}function Jr(a){a.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),a.refCount++}function K0(a){a.refCount--,0>a.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),a.refCount===0&&JY(YY,function(){a.controller.abort()})}function cm(a,o,p){if((a&127)!==0)0>Lm&&(Lm=Bo(),c5=Wb(o),Rf=o,p!=null&&(yf=O(p)),(ka&(ho|Op))!==Po&&(Yo=!0,Ft=w5),a=S0(),o=n0(),a!==gv||o!==l5?gv=-1.1:o!==null&&(Ft=w5),Wr=a,l5=o);else if((a&4194048)!==0&&0>Tp&&(Tp=Bo(),z5=Wb(o),g8=o,p!=null&&(F8=O(p)),0>at)){if(a=S0(),o=n0(),a!==Pt||o!==dr)Pt=-1.1;Ct=a,dr=o}}function Nz(a){if(0>Lm){Lm=Bo(),c5=a._debugTask!=null?a._debugTask:null,(ka&(ho|Op))!==Po&&(Ft=w5);var o=S0(),p=n0();o!==gv||p!==l5?gv=-1.1:p!==null&&(Ft=w5),Wr=o,l5=p}if(0>Tp&&(Tp=Bo(),z5=a._debugTask!=null?a._debugTask:null,0>at)){if(a=S0(),o=n0(),a!==Pt||o!==dr)Pt=-1.1;Ct=a,dr=o}}function Tm(){var a=Hr;return Hr=0,a}function Z2(a){var o=Hr;return Hr=a,o}function H0(a){var o=Hr;return Hr+=a,o}function G2(){wa=ba=-1.1}function _p(){var a=ba;return ba=-1.1,a}function qp(a){0<=a&&(ba=a)}function lm(){var a=lo;return lo=-0,a}function zm(a){0<=a&&(lo=a)}function $m(){var a=io;return io=null,a}function Jm(){var a=Yo;return Yo=!1,a}function l4(a){mp=Bo(),0>a.actualStartTime&&(a.actualStartTime=mp)}function z4(a){if(0<=mp){var o=Bo()-mp;a.actualDuration+=o,a.selfBaseDuration=o,mp=-1}}function C7(a){if(0<=mp){var o=Bo()-mp;a.actualDuration+=o,mp=-1}}function Ym(){if(0<=mp){var a=Bo(),o=a-mp;mp=-1,Hr+=o,lo+=o,wa=a}}function P7(a){io===null&&(io=[]),io.push(a),em===null&&(em=[]),em.push(a)}function Xm(){mp=Bo(),0>ba&&(ba=mp)}function W0(a){for(var o=a.child;o;)a.actualDuration+=o.actualDuration,o=o.sibling}function Mz(a,o){if(J5===null){var p=J5=[];Lf=0,Ur=Q3(),Fv={status:"pending",value:void 0,then:function(m){p.push(m)}}}return Lf++,o.then(I7,I7),o}function I7(){if(--Lf===0&&(-1<Tp||(at=-1.1),J5!==null)){Fv!==null&&(Fv.status="fulfilled");var a=J5;J5=null,Ur=0,Fv=null;for(var o=0;o<a.length;o++)(0,a[o])()}}function gz(a,o){var p=[],m={status:"pending",value:null,reason:null,then:function(t){p.push(t)}};return a.then(function(){m.status="fulfilled",m.value=o;for(var t=0;t<p.length;t++)(0,p[t])(o)},function(t){m.status="rejected",m.reason=t;for(t=0;t<p.length;t++)(0,p[t])(void 0)}),m}function $4(){var a=Rr.current;return a!==null?a:ja.pooledCache}function _2(a,o){o===null?W(Rr,Rr.current,a):W(Rr,o.pool,a)}function A7(){var a=$4();return a===null?null:{parent:Qo._currentValue,pool:a}}function T7(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function n7(a){return a=a.status,a==="fulfilled"||a==="rejected"}function S7(a,o,p){B.actQueue!==null&&(B.didUsePromise=!0);var m=a.thenables;if(p=m[p],p===void 0?m.push(o):p!==o&&(a.didWarnAboutUncachedPromise||(a.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),o.then(Cm,Cm),o=p),o._debugInfo===void 0){a=performance.now(),m=o.displayName;var t={name:typeof m==="string"?m:"Promise",start:a,end:a,value:o};o._debugInfo=[{awaited:t}],o.status!=="fulfilled"&&o.status!=="rejected"&&(a=function(){t.end=performance.now()},o.then(a,a))}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,x7(a),a;default:if(typeof o.status==="string")o.then(Cm,Cm);else{if(a=ja,a!==null&&100<a.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");a=o,a.status="pending",a.then(function(r){if(o.status==="pending"){var v=o;v.status="fulfilled",v.value=r}},function(r){if(o.status==="pending"){var v=o;v.status="rejected",v.reason=r}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,x7(a),a}throw Or=o,Q5=!0,Cv}}function Zt(a){try{return _Y(a)}catch(o){if(o!==null&&typeof o==="object"&&typeof o.then==="function")throw Or=o,Q5=!0,Cv;throw o}}function u7(){if(Or===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=Or;return Or=null,Q5=!1,a}function x7(a){if(a===Cv||a===kb)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Io(a){var o=Ba;return a!=null&&(Ba=o===null?a:o.concat(a)),o}function J4(){var a=Ba;if(a!=null){for(var o=a.length-1;0<=o;o--)if(a[o].name!=null){var p=a[o].debugTask;if(p!=null)return p}}return null}function q2(a,o,p){for(var m=Object.keys(a.props),t=0;t<m.length;t++){var r=m[t];if(r!=="children"&&r!=="key"){o===null&&(o=z2(a,p.mode,0),o._debugInfo=Ba,o.return=p),k(o,function(v){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v)},r);break}}}function Q2(a){var o=B5;return B5+=1,Pv===null&&(Pv=T7()),S7(Pv,a,o)}function d0(a,o){o=o.props.ref,a.ref=o!==void 0?o:null}function V7(a,o){if(o.$$typeof===e$)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
78
|
+
- Multiple copies of the "react" package is used.
|
|
79
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
80
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`);throw a=Object.prototype.toString.call(o),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}function B2(a,o){var p=J4();p!==null?p.run(V7.bind(null,a,o)):V7(a,o)}function D7(a,o){var p=O(a)||"Component";tl[p]||(tl[p]=!0,o=o.displayName||o.name||"Component",a.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
81
|
+
root.render(%s)`,o,o,o):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
82
|
+
<%s>{%s}</%s>`,o,o,p,o,p))}function K2(a,o){var p=J4();p!==null?p.run(D7.bind(null,a,o)):D7(a,o)}function j7(a,o){var p=O(a)||"Component";rl[p]||(rl[p]=!0,o=String(o),a.tag===3?console.error(`Symbols are not valid as a React child.
|
|
83
|
+
root.render(%s)`,o):console.error(`Symbols are not valid as a React child.
|
|
84
|
+
<%s>%s</%s>`,p,o,p))}function H2(a,o){var p=J4();p!==null?p.run(j7.bind(null,a,o)):j7(a,o)}function E7(a){function o(l,$){if(a){var J=l.deletions;J===null?(l.deletions=[$],l.flags|=16):J.push($)}}function p(l,$){if(!a)return null;for(;$!==null;)o(l,$),$=$.sibling;return null}function m(l){for(var $=new Map;l!==null;)l.key!==null?$.set(l.key,l):$.set(l.index,l),l=l.sibling;return $}function t(l,$){return l=Pm(l,$),l.index=0,l.sibling=null,l}function r(l,$,J){if(l.index=J,!a)return l.flags|=1048576,$;if(J=l.alternate,J!==null)return J=J.index,J<$?(l.flags|=67108866,$):J;return l.flags|=67108866,$}function v(l){return a&&l.alternate===null&&(l.flags|=67108866),l}function b(l,$,J,U){if($===null||$.tag!==6)return $=m4(J,l.mode,U),$.return=l,$._debugOwner=l,$._debugTask=l._debugTask,$._debugInfo=Ba,$;return $=t($,J),$.return=l,$._debugInfo=Ba,$}function f(l,$,J,U){var j=J.type;if(j===_v)return $=Y(l,$,J.props.children,U,J.key),q2(J,$,l),$;if($!==null&&($.elementType===j||d7($,J)||typeof j==="object"&&j!==null&&j.$$typeof===Hp&&Zt(j)===$.type))return $=t($,J.props),d0($,J),$.return=l,$._debugOwner=J._owner,$._debugInfo=Ba,$;return $=z2(J,l.mode,U),d0($,J),$.return=l,$._debugInfo=Ba,$}function i(l,$,J,U){if($===null||$.tag!==4||$.stateNode.containerInfo!==J.containerInfo||$.stateNode.implementation!==J.implementation)return $=t4(J,l.mode,U),$.return=l,$._debugInfo=Ba,$;return $=t($,J.children||[]),$.return=l,$._debugInfo=Ba,$}function Y(l,$,J,U,j){if($===null||$.tag!==7)return $=cr(J,l.mode,U,j),$.return=l,$._debugOwner=l,$._debugTask=l._debugTask,$._debugInfo=Ba,$;return $=t($,J),$.return=l,$._debugInfo=Ba,$}function X(l,$,J){if(typeof $==="string"&&$!==""||typeof $==="number"||typeof $==="bigint")return $=m4(""+$,l.mode,J),$.return=l,$._debugOwner=l,$._debugTask=l._debugTask,$._debugInfo=Ba,$;if(typeof $==="object"&&$!==null){switch($.$$typeof){case Km:return J=z2($,l.mode,J),d0(J,$),J.return=l,l=Io($._debugInfo),J._debugInfo=Ba,Ba=l,J;case Gv:return $=t4($,l.mode,J),$.return=l,$._debugInfo=Ba,$;case Hp:var U=Io($._debugInfo);return $=Zt($),l=X(l,$,J),Ba=U,l}if(Oo($)||Oa($))return J=cr($,l.mode,J,null),J.return=l,J._debugOwner=l,J._debugTask=l._debugTask,l=Io($._debugInfo),J._debugInfo=Ba,Ba=l,J;if(typeof $.then==="function")return U=Io($._debugInfo),l=X(l,Q2($),J),Ba=U,l;if($.$$typeof===Hm)return X(l,X2(l,$),J);B2(l,$)}return typeof $==="function"&&K2(l,$),typeof $==="symbol"&&H2(l,$),null}function z(l,$,J,U){var j=$!==null?$.key:null;if(typeof J==="string"&&J!==""||typeof J==="number"||typeof J==="bigint")return j!==null?null:b(l,$,""+J,U);if(typeof J==="object"&&J!==null){switch(J.$$typeof){case Km:return J.key===j?(j=Io(J._debugInfo),l=f(l,$,J,U),Ba=j,l):null;case Gv:return J.key===j?i(l,$,J,U):null;case Hp:return j=Io(J._debugInfo),J=Zt(J),l=z(l,$,J,U),Ba=j,l}if(Oo(J)||Oa(J)){if(j!==null)return null;return j=Io(J._debugInfo),l=Y(l,$,J,U,null),Ba=j,l}if(typeof J.then==="function")return j=Io(J._debugInfo),l=z(l,$,Q2(J),U),Ba=j,l;if(J.$$typeof===Hm)return z(l,$,X2(l,J),U);B2(l,J)}return typeof J==="function"&&K2(l,J),typeof J==="symbol"&&H2(l,J),null}function q(l,$,J,U,j){if(typeof U==="string"&&U!==""||typeof U==="number"||typeof U==="bigint")return l=l.get(J)||null,b($,l,""+U,j);if(typeof U==="object"&&U!==null){switch(U.$$typeof){case Km:return J=l.get(U.key===null?J:U.key)||null,l=Io(U._debugInfo),$=f($,J,U,j),Ba=l,$;case Gv:return l=l.get(U.key===null?J:U.key)||null,i($,l,U,j);case Hp:var Ja=Io(U._debugInfo);return U=Zt(U),$=q(l,$,J,U,j),Ba=Ja,$}if(Oo(U)||Oa(U))return J=l.get(J)||null,l=Io(U._debugInfo),$=Y($,J,U,j,null),Ba=l,$;if(typeof U.then==="function")return Ja=Io(U._debugInfo),$=q(l,$,J,Q2(U),j),Ba=Ja,$;if(U.$$typeof===Hm)return q(l,$,J,X2($,U),j);B2($,U)}return typeof U==="function"&&K2($,U),typeof U==="symbol"&&H2($,U),null}function u(l,$,J,U){if(typeof J!=="object"||J===null)return U;switch(J.$$typeof){case Km:case Gv:K(l,$,J);var j=J.key;if(typeof j!=="string")break;if(U===null){U=new Set,U.add(j);break}if(!U.has(j)){U.add(j);break}k($,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",j)});break;case Hp:J=Zt(J),u(l,$,J,U)}return U}function E(l,$,J,U){for(var j=null,Ja=null,va=null,ma=$,qa=$=0,ro=null;ma!==null&&qa<J.length;qa++){ma.index>qa?(ro=ma,ma=null):ro=ma.sibling;var qo=z(l,ma,J[qa],U);if(qo===null){ma===null&&(ma=ro);break}j=u(l,qo,J[qa],j),a&&ma&&qo.alternate===null&&o(l,ma),$=r(qo,$,qa),va===null?Ja=qo:va.sibling=qo,va=qo,ma=ro}if(qa===J.length)return p(l,ma),ya&&Im(l,qa),Ja;if(ma===null){for(;qa<J.length;qa++)ma=X(l,J[qa],U),ma!==null&&(j=u(l,ma,J[qa],j),$=r(ma,$,qa),va===null?Ja=ma:va.sibling=ma,va=ma);return ya&&Im(l,qa),Ja}for(ma=m(ma);qa<J.length;qa++)ro=q(ma,l,qa,J[qa],U),ro!==null&&(j=u(l,ro,J[qa],j),a&&ro.alternate!==null&&ma.delete(ro.key===null?qa:ro.key),$=r(ro,$,qa),va===null?Ja=ro:va.sibling=ro,va=ro);return a&&ma.forEach(function(it){return o(l,it)}),ya&&Im(l,qa),Ja}function sa(l,$,J,U){if(J==null)throw Error("An iterable object provided no iterator.");for(var j=null,Ja=null,va=$,ma=$=0,qa=null,ro=null,qo=J.next();va!==null&&!qo.done;ma++,qo=J.next()){va.index>ma?(qa=va,va=null):qa=va.sibling;var it=z(l,va,qo.value,U);if(it===null){va===null&&(va=qa);break}ro=u(l,it,qo.value,ro),a&&va&&it.alternate===null&&o(l,va),$=r(it,$,ma),Ja===null?j=it:Ja.sibling=it,Ja=it,va=qa}if(qo.done)return p(l,va),ya&&Im(l,ma),j;if(va===null){for(;!qo.done;ma++,qo=J.next())va=X(l,qo.value,U),va!==null&&(ro=u(l,va,qo.value,ro),$=r(va,$,ma),Ja===null?j=va:Ja.sibling=va,Ja=va);return ya&&Im(l,ma),j}for(va=m(va);!qo.done;ma++,qo=J.next())qa=q(va,l,ma,qo.value,U),qa!==null&&(ro=u(l,qa,qo.value,ro),a&&qa.alternate!==null&&va.delete(qa.key===null?ma:qa.key),$=r(qa,$,ma),Ja===null?j=qa:Ja.sibling=qa,Ja=qa);return a&&va.forEach(function(nY){return o(l,nY)}),ya&&Im(l,ma),j}function ha(l,$,J,U){if(typeof J==="object"&&J!==null&&J.type===_v&&J.key===null&&(q2(J,null,l),J=J.props.children),typeof J==="object"&&J!==null){switch(J.$$typeof){case Km:var j=Io(J._debugInfo);a:{for(var Ja=J.key;$!==null;){if($.key===Ja){if(Ja=J.type,Ja===_v){if($.tag===7){p(l,$.sibling),U=t($,J.props.children),U.return=l,U._debugOwner=J._owner,U._debugInfo=Ba,q2(J,U,l),l=U;break a}}else if($.elementType===Ja||d7($,J)||typeof Ja==="object"&&Ja!==null&&Ja.$$typeof===Hp&&Zt(Ja)===$.type){p(l,$.sibling),U=t($,J.props),d0(U,J),U.return=l,U._debugOwner=J._owner,U._debugInfo=Ba,l=U;break a}p(l,$);break}else o(l,$);$=$.sibling}J.type===_v?(U=cr(J.props.children,l.mode,U,J.key),U.return=l,U._debugOwner=l,U._debugTask=l._debugTask,U._debugInfo=Ba,q2(J,U,l),l=U):(U=z2(J,l.mode,U),d0(U,J),U.return=l,U._debugInfo=Ba,l=U)}return l=v(l),Ba=j,l;case Gv:a:{j=J;for(J=j.key;$!==null;){if($.key===J)if($.tag===4&&$.stateNode.containerInfo===j.containerInfo&&$.stateNode.implementation===j.implementation){p(l,$.sibling),U=t($,j.children||[]),U.return=l,l=U;break a}else{p(l,$);break}else o(l,$);$=$.sibling}U=t4(j,l.mode,U),U.return=l,l=U}return v(l);case Hp:return j=Io(J._debugInfo),J=Zt(J),l=ha(l,$,J,U),Ba=j,l}if(Oo(J))return j=Io(J._debugInfo),l=E(l,$,J,U),Ba=j,l;if(Oa(J)){if(j=Io(J._debugInfo),Ja=Oa(J),typeof Ja!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var va=Ja.call(J);if(va===J){if(l.tag!==0||Object.prototype.toString.call(l.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(va)!=="[object Generator]")pl||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),pl=!0}else J.entries!==Ja||Mf||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Mf=!0);return l=sa(l,$,va,U),Ba=j,l}if(typeof J.then==="function")return j=Io(J._debugInfo),l=ha(l,$,Q2(J),U),Ba=j,l;if(J.$$typeof===Hm)return ha(l,$,X2(l,J),U);B2(l,J)}if(typeof J==="string"&&J!==""||typeof J==="number"||typeof J==="bigint")return j=""+J,$!==null&&$.tag===6?(p(l,$.sibling),U=t($,j),U.return=l,l=U):(p(l,$),U=m4(j,l.mode,U),U.return=l,U._debugOwner=l,U._debugTask=l._debugTask,U._debugInfo=Ba,l=U),v(l);return typeof J==="function"&&K2(l,J),typeof J==="symbol"&&H2(l,J),p(l,$)}return function(l,$,J,U){var j=Ba;Ba=null;try{B5=0;var Ja=ha(l,$,J,U);return Pv=null,Ja}catch(ro){if(ro===Cv||ro===kb)throw ro;var va=M(29,ro,null,l.mode);va.lanes=U,va.return=l;var ma=va._debugInfo=Ba;if(va._debugOwner=l._debugOwner,va._debugTask=l._debugTask,ma!=null){for(var qa=ma.length-1;0<=qa;qa--)if(typeof ma[qa].stack==="string"){va._debugOwner=ma[qa],va._debugTask=ma[qa].debugTask;break}}return va}finally{Ba=j}}}function s7(a,o){var p=Oo(a);return a=!p&&typeof Oa(a)==="function",p||a?(p=p?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",p,o,p),!1):!0}function Y4(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function X4(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Gt(a){return{lane:a,tag:bl,payload:null,callback:null,next:null}}function _t(a,o,p){var m=a.updateQueue;if(m===null)return null;if(m=m.shared,Ff===m&&!wl){var t=O(a);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
85
|
+
|
|
86
|
+
Please update the following component: %s`,t),wl=!0}if((ka&ho)!==Po)return t=m.pending,t===null?o.next=o:(o.next=t.next,t.next=o),m.pending=o,o=l2(a),W7(a,null,p),o;return c2(a,m,o,p),l2(a)}function U0(a,o,p){if(o=o.updateQueue,o!==null&&(o=o.shared,(p&4194048)!==0)){var m=o.lanes;m&=a.pendingLanes,p|=m,o.lanes=p,hi(a,p)}}function W2(a,o){var{updateQueue:p,alternate:m}=a;if(m!==null&&(m=m.updateQueue,p===m)){var t=null,r=null;if(p=p.firstBaseUpdate,p!==null){do{var v={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};r===null?t=r=v:r=r.next=v,p=p.next}while(p!==null);r===null?t=r=o:r=r.next=o}else t=r=o;p={baseState:m.baseState,firstBaseUpdate:t,lastBaseUpdate:r,shared:m.shared,callbacks:m.callbacks},a.updateQueue=p;return}a=p.lastBaseUpdate,a===null?p.firstBaseUpdate=o:a.next=o,p.lastBaseUpdate=o}function R0(){if(Cf){var a=Fv;if(a!==null)throw a}}function y0(a,o,p,m){Cf=!1;var t=a.updateQueue;It=!1,Ff=t.shared;var{firstBaseUpdate:r,lastBaseUpdate:v}=t,b=t.shared.pending;if(b!==null){t.shared.pending=null;var f=b,i=f.next;f.next=null,v===null?r=i:v.next=i,v=f;var Y=a.alternate;Y!==null&&(Y=Y.updateQueue,b=Y.lastBaseUpdate,b!==v&&(b===null?Y.firstBaseUpdate=i:b.next=i,Y.lastBaseUpdate=f))}if(r!==null){var X=t.baseState;v=0,Y=i=f=null,b=r;do{var z=b.lane&-536870913,q=z!==b.lane;if(q?(Ka&z)===z:(m&z)===z){z!==0&&z===Ur&&(Cf=!0),Y!==null&&(Y=Y.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});a:{z=a;var u=b,E=o,sa=p;switch(u.tag){case fl:if(u=u.payload,typeof u==="function"){Mv=!0;var ha=u.call(sa,X,E);if(z.mode&jo){co(!0);try{u.call(sa,X,E)}finally{co(!1)}}Mv=!1,X=ha;break a}X=u;break a;case gf:z.flags=z.flags&-65537|128;case bl:if(ha=u.payload,typeof ha==="function"){if(Mv=!0,u=ha.call(sa,X,E),z.mode&jo){co(!0);try{ha.call(sa,X,E)}finally{co(!1)}}Mv=!1}else u=ha;if(u===null||u===void 0)break a;X=da({},X,u);break a;case il:It=!0}}z=b.callback,z!==null&&(a.flags|=64,q&&(a.flags|=8192),q=t.callbacks,q===null?t.callbacks=[z]:q.push(z))}else q={lane:z,tag:b.tag,payload:b.payload,callback:b.callback,next:null},Y===null?(i=Y=q,f=X):Y=Y.next=q,v|=z;if(b=b.next,b===null)if(b=t.shared.pending,b===null)break;else q=b,b=q.next,q.next=null,t.lastBaseUpdate=q,t.shared.pending=null}while(1);Y===null&&(f=X),t.baseState=f,t.firstBaseUpdate=i,t.lastBaseUpdate=Y,r===null&&(t.shared.lanes=0),nt|=v,a.lanes=v,a.memoizedState=X}Ff=null}function e7(a,o){if(typeof a!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+a);a.call(o)}function Fz(a,o){var p=a.shared.hiddenCallbacks;if(p!==null)for(a.shared.hiddenCallbacks=null,a=0;a<p.length;a++)e7(p[a],o)}function a6(a,o){var p=a.callbacks;if(p!==null)for(a.callbacks=null,a=0;a<p.length;a++)e7(p[a],o)}function o6(a,o){var p=Nm;W(Mb,p,a),W(Iv,o,a),Nm=p|o.baseLanes}function Z4(a){W(Mb,Nm,a),W(Iv,Iv.current,a)}function G4(a){Nm=Mb.current,L(Iv,a),L(Mb,a)}function qt(a){var o=a.alternate;W(_o,_o.current&Av,a),W(Rp,a,a),np===null&&(o===null||Iv.current!==null?np=a:o.memoizedState!==null&&(np=a))}function _4(a){W(_o,_o.current,a),W(Rp,a,a),np===null&&(np=a)}function p6(a){a.tag===22?(W(_o,_o.current,a),W(Rp,a,a),np===null&&(np=a)):Qt(a)}function Qt(a){W(_o,_o.current,a),W(Rp,Rp.current,a)}function Qp(a){L(Rp,a),np===a&&(np=null),L(_o,a)}function d2(a){for(var o=a;o!==null;){if(o.tag===13){var p=o.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||h3(p)||k3(p)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function Wa(){var a=Q;up===null?up=[a]:up.push(a)}function C(){var a=Q;if(up!==null&&(tt++,up[tt]!==a)){var o=O($a);if(!cl.has(o)&&(cl.add(o),up!==null)){for(var p="",m=0;m<=tt;m++){var t=up[m],r=m===tt?a:t;for(t=m+1+". "+t;30>t.length;)t+=" ";t+=r+`
|
|
87
|
+
`,p+=t}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
88
|
+
|
|
89
|
+
Previous render Next render
|
|
90
|
+
------------------------------------------------------
|
|
91
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
92
|
+
`,o,p)}}}function vv(a){a===void 0||a===null||Oo(a)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Q,typeof a)}function U2(){var a=O($a);zl.has(a)||(zl.add(a),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",a))}function Xo(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
93
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
94
|
+
2. You might be breaking the Rules of Hooks
|
|
95
|
+
3. You might have more than one copy of React in the same app
|
|
96
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function q4(a,o){if(W5)return!1;if(o===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Q),!1;a.length!==o.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
97
|
+
|
|
98
|
+
Previous: %s
|
|
99
|
+
Incoming: %s`,Q,"["+o.join(", ")+"]","["+a.join(", ")+"]");for(var p=0;p<o.length&&p<a.length;p++)if(!pp(a[p],o[p]))return!1;return!0}function Q4(a,o,p,m,t,r){if(pt=r,$a=o,up=a!==null?a._debugHookTypes:null,tt=-1,W5=a!==null&&a.type!==o.type,Object.prototype.toString.call(p)==="[object AsyncFunction]"||Object.prototype.toString.call(p)==="[object AsyncGeneratorFunction]")r=O($a),Pf.has(r)||(Pf.add(r),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",r===null?"An unknown Component":"<"+r+">"));o.memoizedState=null,o.updateQueue=null,o.lanes=0,B.H=a!==null&&a.memoizedState!==null?Af:up!==null?$l:If,hr=r=(o.mode&jo)!==la;var v=hf(p,m,t);if(hr=!1,nv&&(v=B4(o,p,m,t)),r){co(!0);try{v=B4(o,p,m,t)}finally{co(!1)}}return m6(a,o),v}function m6(a,o){o._debugHookTypes=up,o.dependencies===null?mt!==null&&(o.dependencies={lanes:0,firstContext:null,_debugThenableState:mt}):o.dependencies._debugThenableState=mt,B.H=d5;var p=Da!==null&&Da.next!==null;if(pt=0,up=Q=Ko=Da=$a=null,tt=-1,a!==null&&(a.flags&65011712)!==(o.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Fb=!1,H5=0,mt=null,p)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");a===null||Ho||(a=a.dependencies,a!==null&&Y2(a)&&(Ho=!0)),Q5?(Q5=!1,a=!0):a=!1,a&&(o=O(o)||"Unknown",ll.has(o)||Pf.has(o)||(ll.add(o),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function B4(a,o,p,m){$a=a;var t=0;do{if(nv&&(mt=null),H5=0,nv=!1,t>=QY)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(t+=1,W5=!1,Ko=Da=null,a.updateQueue!=null){var r=a.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}tt=-1,B.H=Jl,r=hf(o,p,m)}while(nv);return r}function Cz(){var a=B.H,o=a.useState()[0];return o=typeof o.then==="function"?O0(o):o,a=a.useState()[0],(Da!==null?Da.memoizedState:null)!==a&&($a.flags|=1024),o}function K4(){var a=Cb!==0;return Cb=0,a}function H4(a,o,p){o.updateQueue=a.updateQueue,o.flags=(o.mode&pm)!==la?o.flags&-402655237:o.flags&-2053,a.lanes&=~p}function W4(a){if(Fb){for(a=a.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}Fb=!1}pt=0,up=Ko=Da=$a=null,tt=-1,Q=null,nv=!1,H5=Cb=0,mt=null}function so(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ko===null?$a.memoizedState=Ko=a:Ko=Ko.next=a,Ko}function Ia(){if(Da===null){var a=$a.alternate;a=a!==null?a.memoizedState:null}else a=Da.next;var o=Ko===null?$a.memoizedState:Ko.next;if(o!==null)Ko=o,Da=a;else{if(a===null){if($a.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}Da=a,a={memoizedState:Da.memoizedState,baseState:Da.baseState,baseQueue:Da.baseQueue,queue:Da.queue,next:null},Ko===null?$a.memoizedState=Ko=a:Ko=Ko.next=a}return Ko}function R2(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function O0(a){var o=H5;return H5+=1,mt===null&&(mt=T7()),a=S7(mt,a,o),o=$a,(Ko===null?o.memoizedState:Ko.next)===null&&(o=o.alternate,B.H=o!==null&&o.memoizedState!==null?Af:If),a}function Bt(a){if(a!==null&&typeof a==="object"){if(typeof a.then==="function")return O0(a);if(a.$$typeof===Hm)return fo(a)}throw Error("An unsupported type was passed to use(): "+String(a))}function Yr(a){var o=null,p=$a.updateQueue;if(p!==null&&(o=p.memoCache),o==null){var m=$a.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(o={data:m.data.map(function(t){return t.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),p===null&&(p=R2(),$a.updateQueue=p),p.memoCache=o,p=o.data[o.index],p===void 0||W5)for(p=o.data[o.index]=Array(a),m=0;m<a;m++)p[m]=aJ;else p.length!==a&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",p.length,a);return o.index++,p}function sp(a,o){return typeof o==="function"?o(a):o}function d4(a,o,p){var m=so();if(p!==void 0){var t=p(o);if(hr){co(!0);try{p(o)}finally{co(!1)}}}else t=o;return m.memoizedState=m.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:t},m.queue=a,a=a.dispatch=nz.bind(null,$a,a),[m.memoizedState,a]}function bv(a){var o=Ia();return U4(o,Da,a)}function U4(a,o,p){var m=a.queue;if(m===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");m.lastRenderedReducer=p;var t=a.baseQueue,r=m.pending;if(r!==null){if(t!==null){var v=t.next;t.next=r.next,r.next=v}o.baseQueue!==t&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),o.baseQueue=t=r,m.pending=null}if(r=a.baseState,t===null)a.memoizedState=r;else{o=t.next;var b=v=null,f=null,i=o,Y=!1;do{var X=i.lane&-536870913;if(X!==i.lane?(Ka&X)===X:(pt&X)===X){var z=i.revertLane;if(z===0)f!==null&&(f=f.next={lane:0,revertLane:0,gesture:null,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null}),X===Ur&&(Y=!0);else if((pt&z)===z){i=i.next,z===Ur&&(Y=!0);continue}else X={lane:0,revertLane:i.revertLane,gesture:null,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null},f===null?(b=f=X,v=r):f=f.next=X,$a.lanes|=z,nt|=z;X=i.action,hr&&p(r,X),r=i.hasEagerState?i.eagerState:p(r,X)}else z={lane:X,revertLane:i.revertLane,gesture:i.gesture,action:i.action,hasEagerState:i.hasEagerState,eagerState:i.eagerState,next:null},f===null?(b=f=z,v=r):f=f.next=z,$a.lanes|=X,nt|=X;i=i.next}while(i!==null&&i!==o);if(f===null?v=r:f.next=b,!pp(r,a.memoizedState)&&(Ho=!0,Y&&(p=Fv,p!==null)))throw p;a.memoizedState=r,a.baseState=v,a.baseQueue=f,m.lastRenderedState=r}return t===null&&(m.lanes=0),[a.memoizedState,m.dispatch]}function L0(a){var o=Ia(),p=o.queue;if(p===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");p.lastRenderedReducer=a;var{dispatch:m,pending:t}=p,r=o.memoizedState;if(t!==null){p.pending=null;var v=t=t.next;do r=a(r,v.action),v=v.next;while(v!==t);pp(r,o.memoizedState)||(Ho=!0),o.memoizedState=r,o.baseQueue===null&&(o.baseState=r),p.lastRenderedState=r}return[r,m]}function R4(a,o,p){var m=$a,t=so();if(ya){if(p===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var r=p();Tv||r===p()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Tv=!0)}else{if(r=o(),Tv||(p=o(),pp(r,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Tv=!0)),ja===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Ka&127)!==0||t6(m,o,r)}return t.memoizedState=r,p={value:r,getSnapshot:o},t.queue=p,h2(v6.bind(null,m,p,a),[a]),m.flags|=2048,iv(Sp|rp,{destroy:void 0},r6.bind(null,m,p,r,o),null),r}function y2(a,o,p){var m=$a,t=Ia(),r=ya;if(r){if(p===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");p=p()}else if(p=o(),!Tv){var v=o();pp(p,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Tv=!0)}if(v=!pp((Da||t).memoizedState,p))t.memoizedState=p,Ho=!0;t=t.queue;var b=v6.bind(null,m,t,a);if(ip(2048,rp,b,[a]),t.getSnapshot!==o||v||Ko!==null&&Ko.memoizedState.tag&Sp){if(m.flags|=2048,iv(Sp|rp,{destroy:void 0},r6.bind(null,m,t,p,o),null),ja===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");r||(pt&127)!==0||t6(m,o,p)}return p}function t6(a,o,p){a.flags|=16384,a={getSnapshot:o,value:p},o=$a.updateQueue,o===null?(o=R2(),$a.updateQueue=o,o.stores=[a]):(p=o.stores,p===null?o.stores=[a]:p.push(a))}function r6(a,o,p,m){o.value=p,o.getSnapshot=m,b6(o)&&f6(a)}function v6(a,o,p){return p(function(){b6(o)&&(cm(2,"updateSyncExternalStore()",a),f6(a))})}function b6(a){var o=a.getSnapshot;a=a.value;try{var p=o();return!pp(a,p)}catch(m){return!0}}function f6(a){var o=Vo(a,2);o!==null&&Jo(o,a,2)}function y4(a){var o=so();if(typeof a==="function"){var p=a;if(a=p(),hr){co(!0);try{p()}finally{co(!1)}}}return o.memoizedState=o.baseState=a,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sp,lastRenderedState:a},o}function O4(a){a=y4(a);var o=a.queue,p=d6.bind(null,$a,o);return o.dispatch=p,[a.memoizedState,p]}function L4(a){var o=so();o.memoizedState=o.baseState=a;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=p,o=u4.bind(null,$a,!0,p),p.dispatch=o,[a,o]}function i6(a,o){var p=Ia();return w6(p,Da,a,o)}function w6(a,o,p,m){return a.baseState=p,U4(a,Da,typeof m==="function"?m:sp)}function c6(a,o){var p=Ia();if(Da!==null)return w6(p,Da,a,o);return p.baseState=a,[a,p.queue.dispatch]}function Pz(a,o,p,m,t){if(C2(a))throw Error("Cannot update form state while rendering.");if(a=o.action,a!==null){var r={payload:t,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){r.listeners.push(v)}};B.T!==null?p(!0):r.isTransition=!1,m(r),p=o.pending,p===null?(r.next=o.pending=r,l6(o,r)):(r.next=p.next,o.pending=p.next=r)}}function l6(a,o){var{action:p,payload:m}=o,t=a.state;if(o.isTransition){var r=B.T,v={};v._updatedFibers=new Set,B.T=v;try{var b=p(t,m),f=B.S;f!==null&&f(v,b),z6(a,o,b)}catch(i){h4(a,o,i)}finally{r!==null&&v.types!==null&&(r.types!==null&&r.types!==v.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),r.types=v.types),B.T=r,r===null&&v._updatedFibers&&(a=v._updatedFibers.size,v._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{v=p(t,m),z6(a,o,v)}catch(i){h4(a,o,i)}}function z6(a,o,p){p!==null&&typeof p==="object"&&typeof p.then==="function"?(B.asyncTransitions++,p.then(F2,F2),p.then(function(m){$6(a,o,m)},function(m){return h4(a,o,m)}),o.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):$6(a,o,p)}function $6(a,o,p){o.status="fulfilled",o.value=p,J6(o),a.state=p,o=a.pending,o!==null&&(p=o.next,p===o?a.pending=null:(p=p.next,o.next=p,l6(a,p)))}function h4(a,o,p){var m=a.pending;if(a.pending=null,m!==null){m=m.next;do o.status="rejected",o.reason=p,J6(o),o=o.next;while(o!==m)}a.action=null}function J6(a){a=a.listeners;for(var o=0;o<a.length;o++)(0,a[o])()}function Y6(a,o){return o}function fv(a,o){if(ya){var p=ja.formState;if(p!==null){a:{var m=$a;if(ya){if(to){o:{var t=to;for(var r=Ap;t.nodeType!==8;){if(!r){t=null;break o}if(t=Kp(t.nextSibling),t===null){t=null;break o}}r=t.data,t=r===ci||r===a9?t:null}if(t){to=Kp(t.nextSibling),m=t.data===ci;break a}}Yt(m)}m=!1}m&&(o=p[0])}}return p=so(),p.memoizedState=p.baseState=o,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Y6,lastRenderedState:o},p.queue=m,p=d6.bind(null,$a,m),m.dispatch=p,m=y4(!1),r=u4.bind(null,$a,!1,m.queue),m=so(),t={state:o,dispatch:null,action:a,pending:null},m.queue=t,p=Pz.bind(null,$a,t,r,p),t.dispatch=p,m.memoizedState=a,[o,p,!1]}function O2(a){var o=Ia();return X6(o,Da,a)}function X6(a,o,p){if(o=U4(a,o,Y6)[0],a=bv(sp)[0],typeof o==="object"&&o!==null&&typeof o.then==="function")try{var m=O0(o)}catch(v){if(v===Cv)throw kb;throw v}else m=o;o=Ia();var t=o.queue,r=t.dispatch;return p!==o.memoizedState&&($a.flags|=2048,iv(Sp|rp,{destroy:void 0},Iz.bind(null,t,p),null)),[m,r,a]}function Iz(a,o){a.action=o}function L2(a){var o=Ia(),p=Da;if(p!==null)return X6(o,p,a);Ia(),o=o.memoizedState,p=Ia();var m=p.queue.dispatch;return p.memoizedState=a,[o,m,!1]}function iv(a,o,p,m){return a={tag:a,create:p,deps:m,inst:o,next:null},o=$a.updateQueue,o===null&&(o=R2(),$a.updateQueue=o),p=o.lastEffect,p===null?o.lastEffect=a.next=a:(m=p.next,p.next=a,a.next=m,o.lastEffect=a),a}function k4(a){var o=so();return a={current:a},o.memoizedState=a}function Xr(a,o,p,m){var t=so();$a.flags|=a,t.memoizedState=iv(Sp|o,{destroy:void 0},p,m===void 0?null:m)}function ip(a,o,p,m){var t=Ia();m=m===void 0?null:m;var r=t.memoizedState.inst;Da!==null&&m!==null&&q4(m,Da.memoizedState.deps)?t.memoizedState=iv(o,r,p,m):($a.flags|=a,t.memoizedState=iv(Sp|o,r,p,m))}function h2(a,o){($a.mode&pm)!==la?Xr(276826112,rp,a,o):Xr(8390656,rp,a,o)}function Az(a){$a.flags|=4;var o=$a.updateQueue;if(o===null)o=R2(),$a.updateQueue=o,o.events=[a];else{var p=o.events;p===null?o.events=[a]:p.push(a)}}function N4(a){var o=so(),p={impl:a};return o.memoizedState=p,function(){if((ka&ho)!==Po)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return p.impl.apply(void 0,arguments)}}function k2(a){var o=Ia().memoizedState;return Az({ref:o,nextImpl:a}),function(){if((ka&ho)!==Po)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return o.impl.apply(void 0,arguments)}}function M4(a,o){var p=4194308;return($a.mode&pm)!==la&&(p|=134217728),Xr(p,yp,a,o)}function Z6(a,o){if(typeof o==="function"){a=a();var p=o(a);return function(){typeof p==="function"?p():o(null)}}if(o!==null&&o!==void 0)return o.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(o).join(", ")+"}"),a=a(),o.current=a,function(){o.current=null}}function g4(a,o,p){typeof o!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null"),p=p!==null&&p!==void 0?p.concat([a]):null;var m=4194308;($a.mode&pm)!==la&&(m|=134217728),Xr(m,yp,Z6.bind(null,o,a),p)}function N2(a,o,p){typeof o!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",o!==null?typeof o:"null"),p=p!==null&&p!==void 0?p.concat([a]):null,ip(4,yp,Z6.bind(null,o,a),p)}function F4(a,o){return so().memoizedState=[a,o===void 0?null:o],a}function M2(a,o){var p=Ia();o=o===void 0?null:o;var m=p.memoizedState;if(o!==null&&q4(o,m[1]))return m[0];return p.memoizedState=[a,o],a}function C4(a,o){var p=so();o=o===void 0?null:o;var m=a();if(hr){co(!0);try{a()}finally{co(!1)}}return p.memoizedState=[m,o],m}function g2(a,o){var p=Ia();o=o===void 0?null:o;var m=p.memoizedState;if(o!==null&&q4(o,m[1]))return m[0];if(m=a(),hr){co(!0);try{a()}finally{co(!1)}}return p.memoizedState=[m,o],m}function P4(a,o){var p=so();return I4(p,a,o)}function G6(a,o){var p=Ia();return q6(p,Da.memoizedState,a,o)}function _6(a,o){var p=Ia();return Da===null?I4(p,a,o):q6(p,Da.memoizedState,a,o)}function I4(a,o,p){if(p===void 0||(pt&1073741824)!==0&&(Ka&261930)===0)return a.memoizedState=o;return a.memoizedState=p,a=Qw(),$a.lanes|=a,nt|=a,p}function q6(a,o,p,m){if(pp(p,o))return p;if(Iv.current!==null)return a=I4(a,p,m),pp(a,o)||(Ho=!0),a;if((pt&42)===0||(pt&1073741824)!==0&&(Ka&261930)===0)return Ho=!0,a.memoizedState=p;return a=Qw(),$a.lanes|=a,nt|=a,o}function F2(){B.asyncTransitions--}function Q6(a,o,p,m,t){var r=Pa.p;Pa.p=r!==0&&r<om?r:om;var v=B.T,b={};b._updatedFibers=new Set,B.T=b,u4(a,!1,o,p);try{var f=t(),i=B.S;if(i!==null&&i(b,f),f!==null&&typeof f==="object"&&typeof f.then==="function"){B.asyncTransitions++,f.then(F2,F2);var Y=gz(f,m);h0(a,o,Y,Bp(a))}else h0(a,o,m,Bp(a))}catch(X){h0(a,o,{then:function(){},status:"rejected",reason:X},Bp(a))}finally{Pa.p=r,v!==null&&b.types!==null&&(v.types!==null&&v.types!==b.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),v.types=b.types),B.T=v,v===null&&b._updatedFibers&&(a=b._updatedFibers.size,b._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function A4(a,o,p,m){if(a.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var t=B6(a).queue;Nz(a),Q6(a,t,o,nr,p===null?A:function(){return K6(a),p(m)})}function B6(a){var o=a.memoizedState;if(o!==null)return o;o={memoizedState:nr,baseState:nr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sp,lastRenderedState:nr},next:null};var p={};return o.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sp,lastRenderedState:p},next:null},a.memoizedState=o,a=a.alternate,a!==null&&(a.memoizedState=o),o}function K6(a){B.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var o=B6(a);o.next===null&&(o=a.alternate.memoizedState),h0(a,o.next.queue,{},Bp(a))}function T4(){var a=y4(!1);return a=Q6.bind(null,$a,a.queue,!0,!1),so().memoizedState=a,[!1,a]}function H6(){var a=bv(sp)[0],o=Ia().memoizedState;return[typeof a==="boolean"?a:O0(a),o]}function W6(){var a=L0(sp)[0],o=Ia().memoizedState;return[typeof a==="boolean"?a:O0(a),o]}function Zr(){return fo(A5)}function n4(){var a=so(),o=ja.identifierPrefix;if(ya){var p=Em,m=jm;p=(m&~(1<<32-eo(m)-1)).toString(32)+p,o="_"+o+"R_"+p,p=Cb++,0<p&&(o+="H"+p.toString(32)),o+="_"}else p=qY++,o="_"+o+"r_"+p.toString(32)+"_";return a.memoizedState=o}function S4(){return so().memoizedState=Tz.bind(null,$a)}function Tz(a,o){for(var p=a.return;p!==null;){switch(p.tag){case 24:case 3:var m=Bp(p),t=Gt(m),r=_t(p,t,m);r!==null&&(cm(m,"refresh()",a),Jo(r,p,m),U0(r,p,m)),a=c4(),o!==null&&o!==void 0&&r!==null&&console.error("The seed argument is not enabled outside experimental channels."),t.payload={cache:a};return}p=p.return}}function nz(a,o,p){var m=arguments;typeof m[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),m=Bp(a);var t={lane:m,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null};C2(a)?U6(o,t):(t=e1(a,o,t,m),t!==null&&(cm(m,"dispatch()",a),Jo(t,a,m),R6(t,o,m)))}function d6(a,o,p){var m=arguments;typeof m[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),m=Bp(a),h0(a,o,p,m)&&cm(m,"setState()",a)}function h0(a,o,p,m){var t={lane:m,revertLane:0,gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null};if(C2(a))U6(o,t);else{var r=a.alternate;if(a.lanes===0&&(r===null||r.lanes===0)&&(r=o.lastRenderedReducer,r!==null)){var v=B.H;B.H=tm;try{var b=o.lastRenderedState,f=r(b,p);if(t.hasEagerState=!0,t.eagerState=f,pp(f,b))return c2(a,o,t,0),ja===null&&w2(),!1}catch(i){}finally{B.H=v}}if(p=e1(a,o,t,m),p!==null)return Jo(p,a,m),R6(p,o,m),!0}return!1}function u4(a,o,p,m){if(B.T===null&&Ur===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),m={lane:2,revertLane:Q3(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},C2(a)){if(o)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else o=e1(a,p,m,2),o!==null&&(cm(2,"setOptimistic()",a),Jo(o,a,2))}function C2(a){var o=a.alternate;return a===$a||o!==null&&o===$a}function U6(a,o){nv=Fb=!0;var p=a.pending;p===null?o.next=o:(o.next=p.next,p.next=o),a.pending=o}function R6(a,o,p){if((p&4194048)!==0){var m=o.lanes;m&=a.pendingLanes,p|=m,o.lanes=p,hi(a,p)}}function x4(a){if(a!==null&&typeof a!=="function"){var o=String(a);Wl.has(o)||(Wl.add(o),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a))}}function V4(a,o,p,m){var t=a.memoizedState,r=p(m,t);if(a.mode&jo){co(!0);try{r=p(m,t)}finally{co(!1)}}r===void 0&&(o=x(o)||"Component",Ql.has(o)||(Ql.add(o),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",o))),t=r===null||r===void 0?t:da({},t,r),a.memoizedState=t,a.lanes===0&&(a.updateQueue.baseState=t)}function y6(a,o,p,m,t,r,v){var b=a.stateNode;if(typeof b.shouldComponentUpdate==="function"){if(p=b.shouldComponentUpdate(m,r,v),a.mode&jo){co(!0);try{p=b.shouldComponentUpdate(m,r,v)}finally{co(!1)}}return p===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",x(o)||"Component"),p}return o.prototype&&o.prototype.isPureReactComponent?!q0(p,m)||!q0(t,r):!0}function O6(a,o,p,m){var t=o.state;typeof o.componentWillReceiveProps==="function"&&o.componentWillReceiveProps(p,m),typeof o.UNSAFE_componentWillReceiveProps==="function"&&o.UNSAFE_componentWillReceiveProps(p,m),o.state!==t&&(a=O(a)||"Component",Xl.has(a)||(Xl.add(a),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",a)),Tf.enqueueReplaceState(o,o.state,null))}function Gr(a,o){var p=o;if("ref"in o){p={};for(var m in o)m!=="ref"&&(p[m]=o[m])}if(a=a.defaultProps){p===o&&(p=da({},p));for(var t in a)p[t]===void 0&&(p[t]=a[t])}return p}function L6(a){_f(a),console.warn(`%s
|
|
100
|
+
|
|
101
|
+
%s
|
|
102
|
+
`,Sv?"An error occurred in the <"+Sv+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
103
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function h6(a){var o=Sv?"The above error occurred in the <"+Sv+"> component.":"The above error occurred in one of your React components.",p="React will try to recreate this component tree from scratch using the error boundary you provided, "+((nf||"Anonymous")+".");if(typeof a==="object"&&a!==null&&typeof a.environmentName==="string"){var m=a.environmentName;a=[`%o
|
|
104
|
+
|
|
105
|
+
%s
|
|
106
|
+
|
|
107
|
+
%s
|
|
108
|
+
`,a,o,p].slice(0),typeof a[0]==="string"?a.splice(0,1,f9+" "+a[0],i9,w1+m+w1,w9):a.splice(0,0,f9,i9,w1+m+w1,w9),a.unshift(console),m=AY.apply(console.error,a),m()}else console.error(`%o
|
|
109
|
+
|
|
110
|
+
%s
|
|
111
|
+
|
|
112
|
+
%s
|
|
113
|
+
`,a,o,p)}function k6(a){_f(a)}function P2(a,o){try{Sv=o.source?O(o.source):null,nf=null;var p=o.value;if(B.actQueue!==null)B.thrownErrors.push(p);else{var m=a.onUncaughtError;m(p,{componentStack:o.stack})}}catch(t){setTimeout(function(){throw t})}}function N6(a,o,p){try{Sv=p.source?O(p.source):null,nf=O(o);var m=a.onCaughtError;m(p.value,{componentStack:p.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(t){setTimeout(function(){throw t})}}function D4(a,o,p){return p=Gt(p),p.tag=gf,p.payload={element:null},p.callback=function(){k(o.source,P2,a,o)},p}function j4(a){return a=Gt(a),a.tag=gf,a}function E4(a,o,p,m){var t=p.type.getDerivedStateFromError;if(typeof t==="function"){var r=m.value;a.payload=function(){return t(r)},a.callback=function(){U7(p),k(m.source,N6,o,p,m)}}var v=p.stateNode;v!==null&&typeof v.componentDidCatch==="function"&&(a.callback=function(){U7(p),k(m.source,N6,o,p,m),typeof t!=="function"&&(ut===null?ut=new Set([this]):ut.add(this)),XY(this,m),typeof t==="function"||(p.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",O(p)||"Unknown")})}function Sz(a,o,p,m,t){if(p.flags|=32768,Um&&I0(a,t),m!==null&&typeof m==="object"&&typeof m.then==="function"){if(o=p.alternate,o!==null&&rv(o,p,t,!0),ya&&(Om=!0),p=Rp.current,p!==null){switch(p.tag){case 31:case 13:return np===null?D2():p.alternate===null&&zo===vt&&(zo=Ab),p.flags&=-257,p.flags|=65536,p.lanes=t,m===Nb?p.flags|=16384:(o=p.updateQueue,o===null?p.updateQueue=new Set([m]):o.add(m),Z3(a,m,t)),!1;case 22:return p.flags|=65536,m===Nb?p.flags|=16384:(o=p.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([m])},p.updateQueue=o):(p=o.retryQueue,p===null?o.retryQueue=new Set([m]):p.add(m)),Z3(a,m,t)),!1}throw Error("Unexpected Suspense handler tag ("+p.tag+"). This is a bug in React.")}return Z3(a,m,t),D2(),!1}if(ya)return Om=!0,o=Rp.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=t,m!==Wf&&B0(Gp(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:m}),p))):(m!==Wf&&B0(Gp(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:m}),p)),a=a.current.alternate,a.flags|=65536,t&=-t,a.lanes|=t,m=Gp(m,p),t=D4(a.stateNode,m,t),W2(a,t),zo!==At&&(zo=kr)),!1;var r=Gp(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:m}),p);if(h5===null?h5=[r]:h5.push(r),zo!==At&&(zo=kr),o===null)return!0;m=Gp(m,p),p=o;do{switch(p.tag){case 3:return p.flags|=65536,a=t&-t,p.lanes|=a,a=D4(p.stateNode,m,a),W2(p,a),!1;case 1:if(o=p.type,r=p.stateNode,(p.flags&128)===0&&(typeof o.getDerivedStateFromError==="function"||r!==null&&typeof r.componentDidCatch==="function"&&(ut===null||!ut.has(r))))return p.flags|=65536,t&=-t,p.lanes|=t,t=j4(t),E4(t,a,p,m),W2(p,t),!1}p=p.return}while(p!==null);return!1}function Ao(a,o,p,m){o.child=a===null?vl(o,null,p,m):Lr(o,a.child,p,m)}function M6(a,o,p,m,t){p=p.render;var r=o.ref;if("ref"in m){var v={};for(var b in m)b!=="ref"&&(v[b]=m[b])}else v=m;if($r(o),m=Q4(a,o,p,v,r,t),b=K4(),a!==null&&!Ho)return H4(a,o,t),nm(a,o,t);return ya&&b&&r4(o),o.flags|=1,Ao(a,o,m,t),o.child}function g6(a,o,p,m,t){if(a===null){var r=p.type;if(typeof r==="function"&&!o4(r)&&r.defaultProps===void 0&&p.compare===null)return p=wr(r),o.tag=15,o.type=p,e4(o,r),F6(a,o,p,m,t);return a=p4(p.type,null,m,o,o.mode,t),a.ref=o.ref,a.return=o,o.child=a}if(r=a.child,!r3(a,t)){var v=r.memoizedProps;if(p=p.compare,p=p!==null?p:q0,p(v,m)&&a.ref===o.ref)return nm(a,o,t)}return o.flags|=1,a=Pm(r,m),a.ref=o.ref,a.return=o,o.child=a}function F6(a,o,p,m,t){if(a!==null){var r=a.memoizedProps;if(q0(r,m)&&a.ref===o.ref&&o.type===a.type)if(Ho=!1,o.pendingProps=m=r,r3(a,t))(a.flags&131072)!==0&&(Ho=!0);else return o.lanes=a.lanes,nm(a,o,t)}return s4(a,o,p,m,t)}function C6(a,o,p,m){var t=m.children,r=a!==null?a.memoizedState:null;if(a===null&&o.stateNode===null&&(o.stateNode={_visibility:f5,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((o.flags&128)!==0){if(r=r!==null?r.baseLanes|p:p,a!==null){m=o.child=a.child;for(t=0;m!==null;)t=t|m.lanes|m.childLanes,m=m.sibling;m=t&~r}else m=0,o.child=null;return P6(a,o,r,p,m)}if((p&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},a!==null&&_2(o,r!==null?r.cachePool:null),r!==null?o6(o,r):Z4(o),p6(o);else return m=o.lanes=536870912,P6(a,o,r!==null?r.baseLanes|p:p,p,m)}else r!==null?(_2(o,r.cachePool),o6(o,r),Qt(o),o.memoizedState=null):(a!==null&&_2(o,null),Z4(o),Qt(o));return Ao(a,o,t,p),o.child}function k0(a,o){return a!==null&&a.tag===22||o.stateNode!==null||(o.stateNode={_visibility:f5,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function P6(a,o,p,m,t){var r=$4();return r=r===null?null:{parent:Qo._currentValue,pool:r},o.memoizedState={baseLanes:p,cachePool:r},a!==null&&_2(o,null),Z4(o),p6(o),a!==null&&rv(a,o,m,!0),o.childLanes=t,null}function I2(a,o){var p=o.hidden;return p!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
114
|
+
- <Activity %s>
|
|
115
|
+
+ <Activity %s>`,p===!0?"hidden":p===!1?"hidden={false}":"hidden={...}",p?'mode="hidden"':'mode="visible"'),o=T2({mode:o.mode,children:o.children},a.mode),o.ref=a.ref,a.child=o,o.return=a,o}function I6(a,o,p){return Lr(o,a.child,null,p),a=I2(o,o.pendingProps),a.flags|=2,Qp(o),o.memoizedState=null,a}function uz(a,o,p){var m=o.pendingProps,t=(o.flags&128)!==0;if(o.flags&=-129,a===null){if(ya){if(m.mode==="hidden")return a=I2(o,m),o.lanes=536870912,k0(null,a);if(_4(o),(a=to)?(p=lc(a,Ap),p=p!==null&&p.data===Pr?p:null,p!==null&&(m={dehydrated:p,treeContext:h7(),retryLane:536870912,hydrationErrors:null},o.memoizedState=m,m=O7(p),m.return=o,o.child=m,So=o,to=null)):p=null,p===null)throw $2(o,a),Yt(o);return o.lanes=536870912,null}return I2(o,m)}var r=a.memoizedState;if(r!==null){var v=r.dehydrated;if(_4(o),t)if(o.flags&256)o.flags&=-257,o=I6(a,o,p);else if(o.memoizedState!==null)o.child=a.child,o.flags|=128,o=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(N7(),(p&536870912)!==0&&V2(o),Ho||rv(a,o,p,!1),t=(p&a.childLanes)!==0,Ho||t){if(m=ja,m!==null&&(v=ki(m,p),v!==0&&v!==r.retryLane))throw r.retryLane=v,Vo(a,v),Jo(m,a,v),Sf;D2(),o=I6(a,o,p)}else a=r.treeContext,to=Kp(v.nextSibling),So=o,ya=!0,Nt=null,Om=!1,Up=null,Ap=!1,a!==null&&k7(o,a),o=I2(o,m),o.flags|=4096;return o}return r=a.child,m={mode:m.mode,children:m.children},(p&536870912)!==0&&(p&a.lanes)!==0&&V2(o),a=Pm(r,m),a.ref=o.ref,o.child=a,a.return=o,a}function A2(a,o){var p=o.ref;if(p===null)a!==null&&a.ref!==null&&(o.flags|=4194816);else{if(typeof p!=="function"&&typeof p!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(a===null||a.ref!==p)o.flags|=4194816}}function s4(a,o,p,m,t){if(p.prototype&&typeof p.prototype.render==="function"){var r=x(p)||"Unknown";dl[r]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",r,r),dl[r]=!0)}if(o.mode&jo&&mm.recordLegacyContextWarning(o,null),a===null&&(e4(o,o.type),p.contextTypes&&(r=x(p)||"Unknown",Rl[r]||(Rl[r]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",r)))),$r(o),p=Q4(a,o,p,m,void 0,t),m=K4(),a!==null&&!Ho)return H4(a,o,t),nm(a,o,t);return ya&&m&&r4(o),o.flags|=1,Ao(a,o,p,t),o.child}function A6(a,o,p,m,t,r){if($r(o),tt=-1,W5=a!==null&&a.type!==o.type,o.updateQueue=null,p=B4(o,m,p,t),m6(a,o),m=K4(),a!==null&&!Ho)return H4(a,o,r),nm(a,o,r);return ya&&m&&r4(o),o.flags|=1,Ao(a,o,p,r),o.child}function T6(a,o,p,m,t){switch(H(o)){case!1:var r=o.stateNode,v=new o.type(o.memoizedProps,r.context).state;r.updater.enqueueSetState(r,v,null);break;case!0:o.flags|=128,o.flags|=65536,r=Error("Simulated error coming from DevTools");var b=t&-t;if(o.lanes|=b,v=ja,v===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");b=j4(b),E4(b,v,o,Gp(r,o)),W2(o,b)}if($r(o),o.stateNode===null){if(v=kt,r=p.contextType,"contextType"in p&&r!==null&&(r===void 0||r.$$typeof!==Hm)&&!Hl.has(p)&&(Hl.add(p),b=r===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof r!=="object"?" However, it is set to a "+typeof r+".":r.$$typeof===S3?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(r).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",x(p)||"Component",b)),typeof r==="object"&&r!==null&&(v=fo(r)),r=new p(m,v),o.mode&jo){co(!0);try{r=new p(m,v)}finally{co(!1)}}if(v=o.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Tf,o.stateNode=r,r._reactInternals=o,r._reactInternalInstance=Yl,typeof p.getDerivedStateFromProps==="function"&&v===null&&(v=x(p)||"Component",Zl.has(v)||(Zl.add(v),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",v,r.state===null?"null":"undefined",v))),typeof p.getDerivedStateFromProps==="function"||typeof r.getSnapshotBeforeUpdate==="function"){var f=b=v=null;if(typeof r.componentWillMount==="function"&&r.componentWillMount.__suppressDeprecationWarning!==!0?v="componentWillMount":typeof r.UNSAFE_componentWillMount==="function"&&(v="UNSAFE_componentWillMount"),typeof r.componentWillReceiveProps==="function"&&r.componentWillReceiveProps.__suppressDeprecationWarning!==!0?b="componentWillReceiveProps":typeof r.UNSAFE_componentWillReceiveProps==="function"&&(b="UNSAFE_componentWillReceiveProps"),typeof r.componentWillUpdate==="function"&&r.componentWillUpdate.__suppressDeprecationWarning!==!0?f="componentWillUpdate":typeof r.UNSAFE_componentWillUpdate==="function"&&(f="UNSAFE_componentWillUpdate"),v!==null||b!==null||f!==null){r=x(p)||"Component";var i=typeof p.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";_l.has(r)||(_l.add(r),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
116
|
+
|
|
117
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
118
|
+
|
|
119
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
120
|
+
https://react.dev/link/unsafe-component-lifecycles`,r,i,v!==null?`
|
|
121
|
+
`+v:"",b!==null?`
|
|
122
|
+
`+b:"",f!==null?`
|
|
123
|
+
`+f:""))}}r=o.stateNode,v=x(p)||"Component",r.render||(p.prototype&&typeof p.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",v):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",v)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",v),r.getDefaultProps&&!r.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",v),r.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",v),p.childContextTypes&&!Kl.has(p)&&(Kl.add(p),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",v)),p.contextTypes&&!Bl.has(p)&&(Bl.add(p),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",v)),typeof r.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",v),p.prototype&&p.prototype.isPureReactComponent&&typeof r.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",x(p)||"A pure component"),typeof r.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",v),typeof r.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",v),typeof r.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",v),typeof r.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",v),b=r.props!==m,r.props!==void 0&&b&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",v),r.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",v,v),typeof r.getSnapshotBeforeUpdate!=="function"||typeof r.componentDidUpdate==="function"||Gl.has(p)||(Gl.add(p),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",x(p))),typeof r.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof r.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",v),typeof p.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",v),(b=r.state)&&(typeof b!=="object"||Oo(b))&&console.error("%s.state: must be set to an object or null",v),typeof r.getChildContext==="function"&&typeof p.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",v),r=o.stateNode,r.props=m,r.state=o.memoizedState,r.refs={},Y4(o),v=p.contextType,r.context=typeof v==="object"&&v!==null?fo(v):kt,r.state===m&&(v=x(p)||"Component",ql.has(v)||(ql.add(v),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",v))),o.mode&jo&&mm.recordLegacyContextWarning(o,r),mm.recordUnsafeLifecycleWarnings(o,r),r.state=o.memoizedState,v=p.getDerivedStateFromProps,typeof v==="function"&&(V4(o,p,v,m),r.state=o.memoizedState),typeof p.getDerivedStateFromProps==="function"||typeof r.getSnapshotBeforeUpdate==="function"||typeof r.UNSAFE_componentWillMount!=="function"&&typeof r.componentWillMount!=="function"||(v=r.state,typeof r.componentWillMount==="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount==="function"&&r.UNSAFE_componentWillMount(),v!==r.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",O(o)||"Component"),Tf.enqueueReplaceState(r,r.state,null)),y0(o,m,r,t),R0(),r.state=o.memoizedState),typeof r.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&pm)!==la&&(o.flags|=134217728),r=!0}else if(a===null){r=o.stateNode;var Y=o.memoizedProps;b=Gr(p,Y),r.props=b;var X=r.context;f=p.contextType,v=kt,typeof f==="object"&&f!==null&&(v=fo(f)),i=p.getDerivedStateFromProps,f=typeof i==="function"||typeof r.getSnapshotBeforeUpdate==="function",Y=o.pendingProps!==Y,f||typeof r.UNSAFE_componentWillReceiveProps!=="function"&&typeof r.componentWillReceiveProps!=="function"||(Y||X!==v)&&O6(o,r,m,v),It=!1;var z=o.memoizedState;r.state=z,y0(o,m,r,t),R0(),X=o.memoizedState,Y||z!==X||It?(typeof i==="function"&&(V4(o,p,i,m),X=o.memoizedState),(b=It||y6(o,p,b,m,z,X,v))?(f||typeof r.UNSAFE_componentWillMount!=="function"&&typeof r.componentWillMount!=="function"||(typeof r.componentWillMount==="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount==="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&pm)!==la&&(o.flags|=134217728)):(typeof r.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&pm)!==la&&(o.flags|=134217728),o.memoizedProps=m,o.memoizedState=X),r.props=m,r.state=X,r.context=v,r=b):(typeof r.componentDidMount==="function"&&(o.flags|=4194308),(o.mode&pm)!==la&&(o.flags|=134217728),r=!1)}else{r=o.stateNode,X4(a,o),v=o.memoizedProps,f=Gr(p,v),r.props=f,i=o.pendingProps,z=r.context,X=p.contextType,b=kt,typeof X==="object"&&X!==null&&(b=fo(X)),Y=p.getDerivedStateFromProps,(X=typeof Y==="function"||typeof r.getSnapshotBeforeUpdate==="function")||typeof r.UNSAFE_componentWillReceiveProps!=="function"&&typeof r.componentWillReceiveProps!=="function"||(v!==i||z!==b)&&O6(o,r,m,b),It=!1,z=o.memoizedState,r.state=z,y0(o,m,r,t),R0();var q=o.memoizedState;v!==i||z!==q||It||a!==null&&a.dependencies!==null&&Y2(a.dependencies)?(typeof Y==="function"&&(V4(o,p,Y,m),q=o.memoizedState),(f=It||y6(o,p,f,m,z,q,b)||a!==null&&a.dependencies!==null&&Y2(a.dependencies))?(X||typeof r.UNSAFE_componentWillUpdate!=="function"&&typeof r.componentWillUpdate!=="function"||(typeof r.componentWillUpdate==="function"&&r.componentWillUpdate(m,q,b),typeof r.UNSAFE_componentWillUpdate==="function"&&r.UNSAFE_componentWillUpdate(m,q,b)),typeof r.componentDidUpdate==="function"&&(o.flags|=4),typeof r.getSnapshotBeforeUpdate==="function"&&(o.flags|=1024)):(typeof r.componentDidUpdate!=="function"||v===a.memoizedProps&&z===a.memoizedState||(o.flags|=4),typeof r.getSnapshotBeforeUpdate!=="function"||v===a.memoizedProps&&z===a.memoizedState||(o.flags|=1024),o.memoizedProps=m,o.memoizedState=q),r.props=m,r.state=q,r.context=b,r=f):(typeof r.componentDidUpdate!=="function"||v===a.memoizedProps&&z===a.memoizedState||(o.flags|=4),typeof r.getSnapshotBeforeUpdate!=="function"||v===a.memoizedProps&&z===a.memoizedState||(o.flags|=1024),r=!1)}if(b=r,A2(a,o),v=(o.flags&128)!==0,b||v){if(b=o.stateNode,$o(o),v&&typeof p.getDerivedStateFromError!=="function")p=null,mp=-1;else if(p=u8(b),o.mode&jo){co(!0);try{u8(b)}finally{co(!1)}}o.flags|=1,a!==null&&v?(o.child=Lr(o,a.child,null,t),o.child=Lr(o,null,p,t)):Ao(a,o,p,t),o.memoizedState=b.state,a=o.child}else a=nm(a,o,t);return t=o.stateNode,r&&t.props!==m&&(uv||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",O(o)||"a component"),uv=!0),a}function n6(a,o,p,m){return zr(),o.flags|=256,Ao(a,o,p,m),o.child}function e4(a,o){o&&o.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
124
|
+
%s.childContextTypes = ...`,o.displayName||o.name||"Component"),typeof o.getDerivedStateFromProps==="function"&&(a=x(o)||"Unknown",yl[a]||(console.error("%s: Function components do not support getDerivedStateFromProps.",a),yl[a]=!0)),typeof o.contextType==="object"&&o.contextType!==null&&(o=x(o)||"Unknown",Ul[o]||(console.error("%s: Function components do not support contextType.",o),Ul[o]=!0))}function a3(a){return{baseLanes:a,cachePool:A7()}}function o3(a,o,p){return a=a!==null?a.childLanes&~p:0,o&&(a|=$p),a}function S6(a,o,p){var m,t=o.pendingProps;y(o)&&(o.flags|=128);var r=!1,v=(o.flags&128)!==0;if((m=v)||(m=a!==null&&a.memoizedState===null?!1:(_o.current&K5)!==0),m&&(r=!0,o.flags&=-129),m=(o.flags&32)!==0,o.flags&=-33,a===null){if(ya){if(r?qt(o):Qt(o),(a=to)?(p=lc(a,Ap),p=p!==null&&p.data!==Pr?p:null,p!==null&&(m={dehydrated:p,treeContext:h7(),retryLane:536870912,hydrationErrors:null},o.memoizedState=m,m=O7(p),m.return=o,o.child=m,So=o,to=null)):p=null,p===null)throw $2(o,a),Yt(o);return k3(p)?o.lanes=32:o.lanes=536870912,null}var b=t.children;if(t=t.fallback,r){Qt(o);var f=o.mode;return b=T2({mode:"hidden",children:b},f),t=cr(t,f,p,null),b.return=o,t.return=o,b.sibling=t,o.child=b,t=o.child,t.memoizedState=a3(p),t.childLanes=o3(a,m,p),o.memoizedState=uf,k0(null,t)}return qt(o),p3(o,b)}var i=a.memoizedState;if(i!==null){var Y=i.dehydrated;if(Y!==null){if(v)o.flags&256?(qt(o),o.flags&=-257,o=m3(a,o,p)):o.memoizedState!==null?(Qt(o),o.child=a.child,o.flags|=128,o=null):(Qt(o),b=t.fallback,f=o.mode,t=T2({mode:"visible",children:t.children},f),b=cr(b,f,p,null),b.flags|=2,t.return=o,b.return=o,t.sibling=b,o.child=t,Lr(o,a.child,null,p),t=o.child,t.memoizedState=a3(p),t.childLanes=o3(a,m,p),o.memoizedState=uf,o=k0(null,t));else if(qt(o),N7(),(p&536870912)!==0&&V2(o),k3(Y)){if(m=Y.nextSibling&&Y.nextSibling.dataset,m){b=m.dgst;var X=m.msg;f=m.stck;var z=m.cstck}r=X,m=b,t=f,Y=z,b=r,f=Y,b=b?Error(b):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),b.stack=t||"",b.digest=m,m=f===void 0?null:f,t={value:b,source:null,stack:m},typeof m==="string"&&Hf.set(b,t),B0(t),o=m3(a,o,p)}else if(Ho||rv(a,o,p,!1),m=(p&a.childLanes)!==0,Ho||m){if(m=ja,m!==null&&(t=ki(m,p),t!==0&&t!==i.retryLane))throw i.retryLane=t,Vo(a,t),Jo(m,a,t),Sf;h3(Y)||D2(),o=m3(a,o,p)}else h3(Y)?(o.flags|=192,o.child=a.child,o=null):(a=i.treeContext,to=Kp(Y.nextSibling),So=o,ya=!0,Nt=null,Om=!1,Up=null,Ap=!1,a!==null&&k7(o,a),o=p3(o,t.children),o.flags|=4096);return o}}if(r)return Qt(o),b=t.fallback,f=o.mode,z=a.child,Y=z.sibling,t=Pm(z,{mode:"hidden",children:t.children}),t.subtreeFlags=z.subtreeFlags&65011712,Y!==null?b=Pm(Y,b):(b=cr(b,f,p,null),b.flags|=2),b.return=o,t.return=o,t.sibling=b,o.child=t,k0(null,t),t=o.child,b=a.child.memoizedState,b===null?b=a3(p):(f=b.cachePool,f!==null?(z=Qo._currentValue,f=f.parent!==z?{parent:z,pool:z}:f):f=A7(),b={baseLanes:b.baseLanes|p,cachePool:f}),t.memoizedState=b,t.childLanes=o3(a,m,p),o.memoizedState=uf,k0(a.child,t);return i!==null&&(p&62914560)===p&&(p&a.lanes)!==0&&V2(o),qt(o),p=a.child,a=p.sibling,p=Pm(p,{mode:"visible",children:t.children}),p.return=o,p.sibling=null,a!==null&&(m=o.deletions,m===null?(o.deletions=[a],o.flags|=16):m.push(a)),o.child=p,o.memoizedState=null,p}function p3(a,o){return o=T2({mode:"visible",children:o},a.mode),o.return=a,a.child=o}function T2(a,o){return a=M(22,a,null,o),a.lanes=0,a}function m3(a,o,p){return Lr(o,a.child,null,p),a=p3(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function u6(a,o,p){a.lanes|=o;var m=a.alternate;m!==null&&(m.lanes|=o),i4(a.return,o,p)}function t3(a,o,p,m,t,r){var v=a.memoizedState;v===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:m,tail:p,tailMode:t,treeForkCount:r}:(v.isBackwards=o,v.rendering=null,v.renderingStartTime=0,v.last=m,v.tail=p,v.tailMode=t,v.treeForkCount=r)}function x6(a,o,p){var m=o.pendingProps,t=m.revealOrder,r=m.tail,v=m.children,b=_o.current;if((m=(b&K5)!==0)?(b=b&Av|K5,o.flags|=128):b&=Av,W(_o,b,o),b=t==null?"null":t,t!=="forwards"&&t!=="unstable_legacy-backwards"&&t!=="together"&&t!=="independent"&&!Ol[b])if(Ol[b]=!0,t==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(t==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof t==="string")switch(t.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',t,t.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',t,t.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',t)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',t);if(b=r==null?"null":r,!Ib[b])if(r==null){if(t==="forwards"||t==="backwards"||t==="unstable_legacy-backwards")Ib[b]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else r!=="visible"&&r!=="collapsed"&&r!=="hidden"?(Ib[b]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',r)):t!=="forwards"&&t!=="backwards"&&t!=="unstable_legacy-backwards"&&(Ib[b]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',r));a:if((t==="forwards"||t==="backwards"||t==="unstable_legacy-backwards")&&v!==void 0&&v!==null&&v!==!1)if(Oo(v)){for(b=0;b<v.length;b++)if(!s7(v[b],b))break a}else if(b=Oa(v),typeof b==="function"){if(b=b.call(v))for(var f=b.next(),i=0;!f.done;f=b.next()){if(!s7(f.value,i))break a;i++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t);if(Ao(a,o,v,p),ya?(Jt(),v=i5):v=0,!m&&a!==null&&(a.flags&128)!==0)a:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&u6(a,p,o);else if(a.tag===19)u6(a,p,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break a;for(;a.sibling===null;){if(a.return===null||a.return===o)break a;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(t){case"forwards":p=o.child;for(t=null;p!==null;)a=p.alternate,a!==null&&d2(a)===null&&(t=p),p=p.sibling;p=t,p===null?(t=o.child,o.child=null):(t=p.sibling,p.sibling=null),t3(o,!1,t,p,r,v);break;case"backwards":case"unstable_legacy-backwards":p=null,t=o.child;for(o.child=null;t!==null;){if(a=t.alternate,a!==null&&d2(a)===null){o.child=t;break}a=t.sibling,t.sibling=p,p=t,t=a}t3(o,!0,p,null,r,v);break;case"together":t3(o,!1,null,null,void 0,v);break;default:o.memoizedState=null}return o.child}function nm(a,o,p){if(a!==null&&(o.dependencies=a.dependencies),mp=-1,nt|=o.lanes,(p&o.childLanes)===0)if(a!==null){if(rv(a,o,p,!1),(p&o.childLanes)===0)return null}else return null;if(a!==null&&o.child!==a.child)throw Error("Resuming work not yet implemented.");if(o.child!==null){a=o.child,p=Pm(a,a.pendingProps),o.child=p;for(p.return=o;a.sibling!==null;)a=a.sibling,p=p.sibling=Pm(a,a.pendingProps),p.return=o;p.sibling=null}return o.child}function r3(a,o){if((a.lanes&o)!==0)return!0;return a=a.dependencies,a!==null&&Y2(a)?!0:!1}function xz(a,o,p){switch(o.tag){case 3:P(o,o.stateNode.containerInfo),Xt(o,Qo,a.memoizedState.cache),zr();break;case 27:case 5:Fa(o);break;case 4:P(o,o.stateNode.containerInfo);break;case 10:Xt(o,o.type,o.memoizedProps.value);break;case 12:(p&o.childLanes)!==0&&(o.flags|=4),o.flags|=2048;var m=o.stateNode;m.effectDuration=-0,m.passiveEffectDuration=-0;break;case 31:if(o.memoizedState!==null)return o.flags|=128,_4(o),null;break;case 13:if(m=o.memoizedState,m!==null){if(m.dehydrated!==null)return qt(o),o.flags|=128,null;if((p&o.child.childLanes)!==0)return S6(a,o,p);return qt(o),a=nm(a,o,p),a!==null?a.sibling:null}qt(o);break;case 19:var t=(a.flags&128)!==0;if(m=(p&o.childLanes)!==0,m||(rv(a,o,p,!1),m=(p&o.childLanes)!==0),t){if(m)return x6(a,o,p);o.flags|=128}if(t=o.memoizedState,t!==null&&(t.rendering=null,t.tail=null,t.lastEffect=null),W(_o,_o.current,o),m)break;else return null;case 22:return o.lanes=0,C6(a,o,p,o.pendingProps);case 24:Xt(o,Qo,a.memoizedState.cache)}return nm(a,o,p)}function v3(a,o,p){if(o._debugNeedsRemount&&a!==null){p=p4(o.type,o.key,o.pendingProps,o._debugOwner||null,o.mode,o.lanes),p._debugStack=o._debugStack,p._debugTask=o._debugTask;var m=o.return;if(m===null)throw Error("Cannot swap the root fiber.");if(a.alternate=null,o.alternate=null,p.index=o.index,p.sibling=o.sibling,p.return=o.return,p.ref=o.ref,p._debugInfo=o._debugInfo,o===m.child)m.child=p;else{var t=m.child;if(t===null)throw Error("Expected parent to have a child.");for(;t.sibling!==o;)if(t=t.sibling,t===null)throw Error("Expected to find the previous sibling.");t.sibling=p}return o=m.deletions,o===null?(m.deletions=[a],m.flags|=16):o.push(a),p.flags|=2,p}if(a!==null)if(a.memoizedProps!==o.pendingProps||o.type!==a.type)Ho=!0;else{if(!r3(a,p)&&(o.flags&128)===0)return Ho=!1,xz(a,o,p);Ho=(a.flags&131072)!==0?!0:!1}else{if(Ho=!1,m=ya)Jt(),m=(o.flags&1048576)!==0;m&&(m=o.index,Jt(),L7(o,i5,m))}switch(o.lanes=0,o.tag){case 16:a:if(m=o.pendingProps,a=Zt(o.elementType),o.type=a,typeof a==="function")o4(a)?(m=Gr(a,m),o.tag=1,o.type=a=wr(a),o=T6(null,o,a,m,p)):(o.tag=0,e4(o,a),o.type=a=wr(a),o=s4(null,o,a,m,p));else{if(a!==void 0&&a!==null){if(t=a.$$typeof,t===j0){o.tag=11,o.type=a=a4(a),o=M6(null,o,a,m,p);break a}else if(t===ib){o.tag=14,o=g6(null,o,a,m,p);break a}}throw o="",a!==null&&typeof a==="object"&&a.$$typeof===Hp&&(o=" Did you wrap a component in React.lazy() more than once?"),p=x(a)||a,Error("Element type is invalid. Received a promise that resolves to: "+p+". Lazy element type must resolve to a class or function."+o)}return o;case 0:return s4(a,o,o.type,o.pendingProps,p);case 1:return m=o.type,t=Gr(m,o.pendingProps),T6(a,o,m,t,p);case 3:a:{if(P(o,o.stateNode.containerInfo),a===null)throw Error("Should have a current fiber. This is a bug in React.");m=o.pendingProps;var r=o.memoizedState;t=r.element,X4(a,o),y0(o,m,null,p);var v=o.memoizedState;if(m=v.cache,Xt(o,Qo,m),m!==r.cache&&w4(o,[Qo],p,!0),R0(),m=v.element,r.isDehydrated)if(r={element:m,isDehydrated:!1,cache:v.cache},o.updateQueue.baseState=r,o.memoizedState=r,o.flags&256){o=n6(a,o,m,p);break a}else if(m!==t){t=Gp(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),o),B0(t),o=n6(a,o,m,p);break a}else{switch(a=o.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}to=Kp(a.firstChild),So=o,ya=!0,Nt=null,Om=!1,Up=null,Ap=!0,p=vl(o,null,m,p);for(o.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(zr(),m===t){o=nm(a,o,p);break a}Ao(a,o,m,p)}o=o.child}return o;case 26:return A2(a,o),a===null?(p=Zc(o.type,null,o.pendingProps,null))?o.memoizedState=p:ya||(p=o.type,a=o.pendingProps,m=fa(Ut.current),m=e2(m).createElement(p),m[no]=o,m[ap]=a,To(m,p,a),No(m),o.stateNode=m):o.memoizedState=Zc(o.type,a.memoizedProps,o.pendingProps,a.memoizedState),null;case 27:return Fa(o),a===null&&ya&&(m=fa(Ut.current),t=ra(),m=o.stateNode=Yc(o.type,o.pendingProps,m,t,!1),Om||(t=tc(m,o.type,o.pendingProps,t),t!==null&&(lr(o,0).serverProps=t)),So=o,Ap=!0,t=to,Wt(o.type)?(Ji=t,to=Kp(m.firstChild)):to=t),Ao(a,o,o.pendingProps.children,p),A2(a,o),a===null&&(o.flags|=4194304),o.child;case 5:return a===null&&ya&&(r=ra(),m=u1(o.type,r.ancestorInfo),t=to,(v=!t)||(v=N$(t,o.type,o.pendingProps,Ap),v!==null?(o.stateNode=v,Om||(r=tc(v,o.type,o.pendingProps,r),r!==null&&(lr(o,0).serverProps=r)),So=o,to=Kp(v.firstChild),Ap=!1,r=!0):r=!1,v=!r),v&&(m&&$2(o,t),Yt(o))),Fa(o),t=o.type,r=o.pendingProps,v=a!==null?a.memoizedProps:null,m=r.children,O3(t,r)?m=null:v!==null&&O3(t,v)&&(o.flags|=32),o.memoizedState!==null&&(t=Q4(a,o,Cz,null,null,p),A5._currentValue=t),A2(a,o),Ao(a,o,m,p),o.child;case 6:return a===null&&ya&&(p=o.pendingProps,a=ra(),m=a.ancestorInfo.current,p=m!=null?t2(p,m.tag,a.ancestorInfo.implicitRootScope):!0,a=to,(m=!a)||(m=M$(a,o.pendingProps,Ap),m!==null?(o.stateNode=m,So=o,to=null,m=!0):m=!1,m=!m),m&&(p&&$2(o,a),Yt(o))),null;case 13:return S6(a,o,p);case 4:return P(o,o.stateNode.containerInfo),m=o.pendingProps,a===null?o.child=Lr(o,null,m,p):Ao(a,o,m,p),o.child;case 11:return M6(a,o,o.type,o.pendingProps,p);case 7:return Ao(a,o,o.pendingProps,p),o.child;case 8:return Ao(a,o,o.pendingProps.children,p),o.child;case 12:return o.flags|=4,o.flags|=2048,m=o.stateNode,m.effectDuration=-0,m.passiveEffectDuration=-0,Ao(a,o,o.pendingProps.children,p),o.child;case 10:return m=o.type,t=o.pendingProps,r=t.value,"value"in t||Ll||(Ll=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Xt(o,m,r),Ao(a,o,t.children,p),o.child;case 9:return t=o.type._context,m=o.pendingProps.children,typeof m!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),$r(o),t=fo(t),m=hf(m,t,void 0),o.flags|=1,Ao(a,o,m,p),o.child;case 14:return g6(a,o,o.type,o.pendingProps,p);case 15:return F6(a,o,o.type,o.pendingProps,p);case 19:return x6(a,o,p);case 31:return uz(a,o,p);case 22:return C6(a,o,p,o.pendingProps);case 24:return $r(o),m=fo(Qo),a===null?(t=$4(),t===null&&(t=ja,r=c4(),t.pooledCache=r,Jr(r),r!==null&&(t.pooledCacheLanes|=p),t=r),o.memoizedState={parent:m,cache:t},Y4(o),Xt(o,Qo,t)):((a.lanes&p)!==0&&(X4(a,o),y0(o,null,null,p),R0()),t=a.memoizedState,r=o.memoizedState,t.parent!==m?(t={parent:m,cache:m},o.memoizedState=t,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=t),Xt(o,Qo,m)):(m=r.cache,Xt(o,Qo,m),m!==t.cache&&w4(o,[Qo],p,!0))),Ao(a,o,o.pendingProps.children,p),o.child;case 29:throw o.pendingProps}throw Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Sm(a){a.flags|=4}function b3(a,o,p,m,t){if(o=(a.mode&zY)!==la)o=!1;if(o){if(a.flags|=16777216,(t&335544128)===t)if(a.stateNode.complete)a.flags|=8192;else if(Ww())a.flags|=8192;else throw Or=Nb,Nf}else a.flags&=-16777217}function V6(a,o){if(o.type!=="stylesheet"||(o.state.loading&xp)!==Tr)a.flags&=-16777217;else if(a.flags|=16777216,!Bc(o))if(Ww())a.flags|=8192;else throw Or=Nb,Nf}function n2(a,o){o!==null&&(a.flags|=4),a.flags&16384&&(o=a.tag!==22?h1():536870912,a.lanes|=o,gr|=o)}function N0(a,o){if(!ya)switch(a.tailMode){case"hidden":o=a.tail;for(var p=null;o!==null;)o.alternate!==null&&(p=o),o=o.sibling;p===null?a.tail=null:p.sibling=null;break;case"collapsed":p=a.tail;for(var m=null;p!==null;)p.alternate!==null&&(m=p),p=p.sibling;m===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:m.sibling=null}}function Ea(a){var o=a.alternate!==null&&a.alternate.child===a.child,p=0,m=0;if(o)if((a.mode&Qa)!==la){for(var{selfBaseDuration:t,child:r}=a;r!==null;)p|=r.lanes|r.childLanes,m|=r.subtreeFlags&65011712,m|=r.flags&65011712,t+=r.treeBaseDuration,r=r.sibling;a.treeBaseDuration=t}else for(t=a.child;t!==null;)p|=t.lanes|t.childLanes,m|=t.subtreeFlags&65011712,m|=t.flags&65011712,t.return=a,t=t.sibling;else if((a.mode&Qa)!==la){t=a.actualDuration,r=a.selfBaseDuration;for(var v=a.child;v!==null;)p|=v.lanes|v.childLanes,m|=v.subtreeFlags,m|=v.flags,t+=v.actualDuration,r+=v.treeBaseDuration,v=v.sibling;a.actualDuration=t,a.treeBaseDuration=r}else for(t=a.child;t!==null;)p|=t.lanes|t.childLanes,m|=t.subtreeFlags,m|=t.flags,t.return=a,t=t.sibling;return a.subtreeFlags|=m,a.childLanes=p,o}function Vz(a,o,p){var m=o.pendingProps;switch(v4(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ea(o),null;case 1:return Ea(o),null;case 3:if(p=o.stateNode,m=null,a!==null&&(m=a.memoizedState.cache),o.memoizedState.cache!==m&&(o.flags|=2048),Am(Qo,o),n(o),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),a===null||a.child===null)tv(o)?(f4(),Sm(o)):a===null||a.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,b4());return Ea(o),null;case 26:var{type:t,memoizedState:r}=o;return a===null?(Sm(o),r!==null?(Ea(o),V6(o,r)):(Ea(o),b3(o,t,null,m,p))):r?r!==a.memoizedState?(Sm(o),Ea(o),V6(o,r)):(Ea(o),o.flags&=-16777217):(a=a.memoizedProps,a!==m&&Sm(o),Ea(o),b3(o,t,a,m,p)),null;case 27:if(Sa(o),p=fa(Ut.current),t=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==m&&Sm(o);else{if(!m){if(o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ea(o),null}a=ra(),tv(o)?M7(o,a):(a=Yc(t,m,p,a,!0),o.stateNode=a,Sm(o))}return Ea(o),null;case 5:if(Sa(o),t=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==m&&Sm(o);else{if(!m){if(o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ea(o),null}var v=ra();if(tv(o))M7(o,v);else{switch(r=fa(Ut.current),u1(t,v.ancestorInfo),v=v.context,r=e2(r),v){case a0:r=r.createElementNS(Kv,t);break;case b1:r=r.createElementNS(Yb,t);break;default:switch(t){case"svg":r=r.createElementNS(Kv,t);break;case"math":r=r.createElementNS(Yb,t);break;case"script":r=r.createElement("div"),r.innerHTML="<script></script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof m.is==="string"?r.createElement("select",{is:m.is}):r.createElement("select"),m.multiple?r.multiple=!0:m.size&&(r.size=m.size);break;default:r=typeof m.is==="string"?r.createElement(t,{is:m.is}):r.createElement(t),t.indexOf("-")===-1&&(t!==t.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",t),Object.prototype.toString.call(r)!=="[object HTMLUnknownElement]"||am.call(p9,t)||(p9[t]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",t)))}}r[no]=o,r[ap]=m;a:for(v=o.child;v!==null;){if(v.tag===5||v.tag===6)r.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===o)break a;for(;v.sibling===null;){if(v.return===null||v.return===o)break a;v=v.return}v.sibling.return=v.return,v=v.sibling}o.stateNode=r;a:switch(To(r,t,m),t){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break a;case"img":m=!0;break a;default:m=!1}m&&Sm(o)}}return Ea(o),b3(o,o.type,a===null?null:a.memoizedProps,o.pendingProps,p),null;case 6:if(a&&o.stateNode!=null)a.memoizedProps!==m&&Sm(o);else{if(typeof m!=="string"&&o.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(a=fa(Ut.current),p=ra(),tv(o)){if(a=o.stateNode,p=o.memoizedProps,t=!Om,m=null,r=So,r!==null)switch(r.tag){case 3:t&&(t=$c(a,p,m),t!==null&&(lr(o,0).serverProps=t));break;case 27:case 5:m=r.memoizedProps,t&&(t=$c(a,p,m),t!==null&&(lr(o,0).serverProps=t))}a[no]=o,a=a.nodeValue===p||m!==null&&m.suppressHydrationWarning===!0||ew(a.nodeValue,p)?!0:!1,a||Yt(o,!0)}else t=p.ancestorInfo.current,t!=null&&t2(m,t.tag,p.ancestorInfo.implicitRootScope),a=e2(a).createTextNode(m),a[no]=o,o.stateNode=a}return Ea(o),null;case 31:if(p=o.memoizedState,a===null||a.memoizedState!==null){if(m=tv(o),p!==null){if(a===null){if(!m)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(a=o.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");a[no]=o,Ea(o),(o.mode&Qa)!==la&&p!==null&&(a=o.child,a!==null&&(o.treeBaseDuration-=a.treeBaseDuration))}else f4(),zr(),(o.flags&128)===0&&(p=o.memoizedState=null),o.flags|=4,Ea(o),(o.mode&Qa)!==la&&p!==null&&(a=o.child,a!==null&&(o.treeBaseDuration-=a.treeBaseDuration));a=!1}else p=b4(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=p),a=!0;if(!a){if(o.flags&256)return Qp(o),o;return Qp(o),null}if((o.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Ea(o),null;case 13:if(m=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(t=m,r=tv(o),t!==null&&t.dehydrated!==null){if(a===null){if(!r)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(r=o.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");r[no]=o,Ea(o),(o.mode&Qa)!==la&&t!==null&&(t=o.child,t!==null&&(o.treeBaseDuration-=t.treeBaseDuration))}else f4(),zr(),(o.flags&128)===0&&(t=o.memoizedState=null),o.flags|=4,Ea(o),(o.mode&Qa)!==la&&t!==null&&(t=o.child,t!==null&&(o.treeBaseDuration-=t.treeBaseDuration));t=!1}else t=b4(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=t),t=!0;if(!t){if(o.flags&256)return Qp(o),o;return Qp(o),null}}if(Qp(o),(o.flags&128)!==0)return o.lanes=p,(o.mode&Qa)!==la&&W0(o),o;return p=m!==null,a=a!==null&&a.memoizedState!==null,p&&(m=o.child,t=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(t=m.alternate.memoizedState.cachePool.pool),r=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(r=m.memoizedState.cachePool.pool),r!==t&&(m.flags|=2048)),p!==a&&p&&(o.child.flags|=8192),n2(o,o.updateQueue),Ea(o),(o.mode&Qa)!==la&&p&&(a=o.child,a!==null&&(o.treeBaseDuration-=a.treeBaseDuration)),null;case 4:return n(o),a===null&&K3(o.stateNode.containerInfo),Ea(o),null;case 10:return Am(o.type,o),Ea(o),null;case 19:if(L(_o,o),m=o.memoizedState,m===null)return Ea(o),null;if(t=(o.flags&128)!==0,r=m.rendering,r===null)if(t)N0(m,!1);else{if(zo!==vt||a!==null&&(a.flags&128)!==0)for(a=o.child;a!==null;){if(r=d2(a),r!==null){o.flags|=128,N0(m,!1),a=r.updateQueue,o.updateQueue=a,n2(o,a),o.subtreeFlags=0,a=p;for(p=o.child;p!==null;)y7(p,a),p=p.sibling;return W(_o,_o.current&Av|K5,o),ya&&Im(o,m.treeForkCount),o.child}a=a.sibling}m.tail!==null&&go()>Vb&&(o.flags|=128,t=!0,N0(m,!1),o.lanes=4194304)}else{if(!t)if(a=d2(r),a!==null){if(o.flags|=128,t=!0,a=a.updateQueue,o.updateQueue=a,n2(o,a),N0(m,!0),m.tail===null&&m.tailMode==="hidden"&&!r.alternate&&!ya)return Ea(o),null}else 2*go()-m.renderingStartTime>Vb&&p!==536870912&&(o.flags|=128,t=!0,N0(m,!1),o.lanes=4194304);m.isBackwards?(r.sibling=o.child,o.child=r):(a=m.last,a!==null?a.sibling=r:o.child=r,m.last=r)}if(m.tail!==null)return a=m.tail,m.rendering=a,m.tail=a.sibling,m.renderingStartTime=go(),a.sibling=null,p=_o.current,p=t?p&Av|K5:p&Av,W(_o,p,o),ya&&Im(o,m.treeForkCount),a;return Ea(o),null;case 22:case 23:return Qp(o),G4(o),m=o.memoizedState!==null,a!==null?a.memoizedState!==null!==m&&(o.flags|=8192):m&&(o.flags|=8192),m?(p&536870912)!==0&&(o.flags&128)===0&&(Ea(o),o.subtreeFlags&6&&(o.flags|=8192)):Ea(o),p=o.updateQueue,p!==null&&n2(o,p.retryQueue),p=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(p=a.memoizedState.cachePool.pool),m=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(m=o.memoizedState.cachePool.pool),m!==p&&(o.flags|=2048),a!==null&&L(Rr,o),null;case 24:return p=null,a!==null&&(p=a.memoizedState.cache),o.memoizedState.cache!==p&&(o.flags|=2048),Am(Qo,o),Ea(o),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+o.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Dz(a,o){switch(v4(o),o.tag){case 1:return a=o.flags,a&65536?(o.flags=a&-65537|128,(o.mode&Qa)!==la&&W0(o),o):null;case 3:return Am(Qo,o),n(o),a=o.flags,(a&65536)!==0&&(a&128)===0?(o.flags=a&-65537|128,o):null;case 26:case 27:case 5:return Sa(o),null;case 31:if(o.memoizedState!==null){if(Qp(o),o.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");zr()}return a=o.flags,a&65536?(o.flags=a&-65537|128,(o.mode&Qa)!==la&&W0(o),o):null;case 13:if(Qp(o),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");zr()}return a=o.flags,a&65536?(o.flags=a&-65537|128,(o.mode&Qa)!==la&&W0(o),o):null;case 19:return L(_o,o),null;case 4:return n(o),null;case 10:return Am(o.type,o),null;case 22:case 23:return Qp(o),G4(o),a!==null&&L(Rr,o),a=o.flags,a&65536?(o.flags=a&-65537|128,(o.mode&Qa)!==la&&W0(o),o):null;case 24:return Am(Qo,o),null;case 25:return null;default:return null}}function D6(a,o){switch(v4(o),o.tag){case 3:Am(Qo,o),n(o);break;case 26:case 27:case 5:Sa(o);break;case 4:n(o);break;case 31:o.memoizedState!==null&&Qp(o);break;case 13:Qp(o);break;case 19:L(_o,o);break;case 10:Am(o.type,o);break;case 22:case 23:Qp(o),G4(o),a!==null&&L(Rr,o);break;case 24:Am(Qo,o)}}function Zm(a){return(a.mode&Qa)!==la}function j6(a,o){Zm(a)?(Xm(),M0(o,a),Ym()):M0(o,a)}function f3(a,o,p){Zm(a)?(Xm(),wv(p,a,o),Ym()):wv(p,a,o)}function M0(a,o){try{var p=o.updateQueue,m=p!==null?p.lastEffect:null;if(m!==null){var t=m.next;p=t;do{if((p.tag&a)===a&&(m=void 0,(a&tp)!==gb&&(Ev=!0),m=k(o,ZY,p),(a&tp)!==gb&&(Ev=!1),m!==void 0&&typeof m!=="function")){var r=void 0;r=(p.tag&yp)!==0?"useLayoutEffect":(p.tag&tp)!==0?"useInsertionEffect":"useEffect";var v=void 0;v=m===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof m.then==="function"?`
|
|
125
|
+
|
|
126
|
+
It looks like you wrote `+r+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
127
|
+
|
|
128
|
+
`+r+`(() => {
|
|
129
|
+
async function fetchData() {
|
|
130
|
+
// You can await here
|
|
131
|
+
const response = await MyAPI.getData(someId);
|
|
132
|
+
// ...
|
|
133
|
+
}
|
|
134
|
+
fetchData();
|
|
135
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
136
|
+
|
|
137
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+m,k(o,function(b,f){console.error("%s must not return anything besides a function, which is used for clean-up.%s",b,f)},r,v)}p=p.next}while(p!==t)}}catch(b){Ca(o,o.return,b)}}function wv(a,o,p){try{var m=o.updateQueue,t=m!==null?m.lastEffect:null;if(t!==null){var r=t.next;m=r;do{if((m.tag&a)===a){var v=m.inst,b=v.destroy;b!==void 0&&(v.destroy=void 0,(a&tp)!==gb&&(Ev=!0),t=o,k(t,GY,t,p,b),(a&tp)!==gb&&(Ev=!1))}m=m.next}while(m!==r)}}catch(f){Ca(o,o.return,f)}}function E6(a,o){Zm(a)?(Xm(),M0(o,a),Ym()):M0(o,a)}function i3(a,o,p){Zm(a)?(Xm(),wv(p,a,o),Ym()):wv(p,a,o)}function s6(a){var o=a.updateQueue;if(o!==null){var p=a.stateNode;a.type.defaultProps||"ref"in a.memoizedProps||uv||(p.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",O(a)||"instance"),p.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",O(a)||"instance"));try{k(a,a6,o,p)}catch(m){Ca(a,a.return,m)}}}function jz(a,o,p){return a.getSnapshotBeforeUpdate(o,p)}function Ez(a,o){var{memoizedProps:p,memoizedState:m}=o;o=a.stateNode,a.type.defaultProps||"ref"in a.memoizedProps||uv||(o.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",O(a)||"instance"),o.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",O(a)||"instance"));try{var t=Gr(a.type,p),r=k(a,jz,o,t,m);p=hl,r!==void 0||p.has(a.type)||(p.add(a.type),k(a,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",O(a))})),o.__reactInternalSnapshotBeforeUpdate=r}catch(v){Ca(a,a.return,v)}}function e6(a,o,p){p.props=Gr(a.type,a.memoizedProps),p.state=a.memoizedState,Zm(a)?(Xm(),k(a,s8,a,o,p),Ym()):k(a,s8,a,o,p)}function sz(a){var o=a.ref;if(o!==null){switch(a.tag){case 26:case 27:case 5:var p=a.stateNode;break;case 30:p=a.stateNode;break;default:p=a.stateNode}if(typeof o==="function")if(Zm(a))try{Xm(),a.refCleanup=o(p)}finally{Ym()}else a.refCleanup=o(p);else typeof o==="string"?console.error("String refs are no longer supported."):o.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",O(a)),o.current=p}}function g0(a,o){try{k(a,sz,a)}catch(p){Ca(a,o,p)}}function Gm(a,o){var{ref:p,refCleanup:m}=a;if(p!==null)if(typeof m==="function")try{if(Zm(a))try{Xm(),k(a,m)}finally{Ym(a)}else k(a,m)}catch(t){Ca(a,o,t)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof p==="function")try{if(Zm(a))try{Xm(),k(a,p,null)}finally{Ym(a)}else k(a,p,null)}catch(t){Ca(a,o,t)}else p.current=null}function aw(a,o,p,m){var t=a.memoizedProps,r=t.id,v=t.onCommit;t=t.onRender,o=o===null?"mount":"update",Ob&&(o="nested-update"),typeof t==="function"&&t(r,o,a.actualDuration,a.treeBaseDuration,a.actualStartTime,p),typeof v==="function"&&v(r,o,m,p)}function ez(a,o,p,m){var t=a.memoizedProps;a=t.id,t=t.onPostCommit,o=o===null?"mount":"update",Ob&&(o="nested-update"),typeof t==="function"&&t(a,o,m,p)}function ow(a){var{type:o,memoizedProps:p,stateNode:m}=a;try{k(a,B$,m,o,p,a)}catch(t){Ca(a,a.return,t)}}function w3(a,o,p){try{k(a,H$,a.stateNode,a.type,p,o,a)}catch(m){Ca(a,a.return,m)}}function pw(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Wt(a.type)||a.tag===4}function c3(a){a:for(;;){for(;a.sibling===null;){if(a.return===null||pw(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Wt(a.type))continue a;if(a.flags&2)continue a;if(a.child===null||a.tag===4)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function l3(a,o,p){var m=a.tag;if(m===5||m===6)a=a.stateNode,o?(ic(p),(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(a,o)):(ic(p),o=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,o.appendChild(a),p=p._reactRootContainer,p!==null&&p!==void 0||o.onclick!==null||(o.onclick=Cm));else if(m!==4&&(m===27&&Wt(a.type)&&(p=a.stateNode,o=null),a=a.child,a!==null))for(l3(a,o,p),a=a.sibling;a!==null;)l3(a,o,p),a=a.sibling}function S2(a,o,p){var m=a.tag;if(m===5||m===6)a=a.stateNode,o?p.insertBefore(a,o):p.appendChild(a);else if(m!==4&&(m===27&&Wt(a.type)&&(p=a.stateNode),a=a.child,a!==null))for(S2(a,o,p),a=a.sibling;a!==null;)S2(a,o,p),a=a.sibling}function a$(a){for(var o,p=a.return;p!==null;){if(pw(p)){o=p;break}p=p.return}if(o==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(o.tag){case 27:o=o.stateNode,p=c3(a),S2(a,p,o);break;case 5:p=o.stateNode,o.flags&32&&(fc(p),o.flags&=-33),o=c3(a),S2(a,o,p);break;case 3:case 4:o=o.stateNode.containerInfo,p=c3(a),l3(a,p,o);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function mw(a){var{stateNode:o,memoizedProps:p}=a;try{k(a,I$,a.type,p,o,a)}catch(m){Ca(a,a.return,m)}}function tw(a,o){return o.tag===31?(o=o.memoizedState,a.memoizedState!==null&&o===null):o.tag===13?(a=a.memoizedState,o=o.memoizedState,a!==null&&a.dehydrated!==null&&(o===null||o.dehydrated===null)):o.tag===3?a.memoizedState.isDehydrated&&(o.flags&256)===0:!1}function o$(a,o){if(a=a.containerInfo,li=c1,a=_7(a),D1(a)){if("selectionStart"in a)var p={start:a.selectionStart,end:a.selectionEnd};else a:{p=(p=a.ownerDocument)&&p.defaultView||window;var m=p.getSelection&&p.getSelection();if(m&&m.rangeCount!==0){p=m.anchorNode;var{anchorOffset:t,focusNode:r}=m;m=m.focusOffset;try{p.nodeType,r.nodeType}catch(u){p=null;break a}var v=0,b=-1,f=-1,i=0,Y=0,X=a,z=null;o:for(;;){for(var q;;){if(X!==p||t!==0&&X.nodeType!==3||(b=v+t),X!==r||m!==0&&X.nodeType!==3||(f=v+m),X.nodeType===3&&(v+=X.nodeValue.length),(q=X.firstChild)===null)break;z=X,X=q}for(;;){if(X===a)break o;if(z===p&&++i===t&&(b=v),z===r&&++Y===m&&(f=v),(q=X.nextSibling)!==null)break;X=z,z=X.parentNode}X=q}p=b===-1||f===-1?null:{start:b,end:f}}else p=null}p=p||{start:0,end:0}}else p=null;zi={focusedElem:a,selectionRange:p},c1=!1;for(Co=o;Co!==null;)if(o=Co,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,Co=a;else for(;Co!==null;){switch(a=o=Co,p=a.alternate,t=a.flags,a.tag){case 0:if((t&4)!==0&&(a=a.updateQueue,a=a!==null?a.events:null,a!==null))for(p=0;p<a.length;p++)t=a[p],t.ref.impl=t.nextImpl;break;case 11:case 15:break;case 1:(t&1024)!==0&&p!==null&&Ez(a,p);break;case 3:if((t&1024)!==0){if(a=a.stateNode.containerInfo,p=a.nodeType,p===9)L3(a);else if(p===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":L3(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(a=o.sibling,a!==null){a.return=o.return,Co=a;break}Co=o.return}}function rw(a,o,p){var m=_p(),t=lm(),r=$m(),v=Jm(),b=p.flags;switch(p.tag){case 0:case 11:case 15:_m(a,p),b&4&&j6(p,yp|Sp);break;case 1:if(_m(a,p),b&4)if(a=p.stateNode,o===null)p.type.defaultProps||"ref"in p.memoizedProps||uv||(a.props!==p.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",O(p)||"instance"),a.state!==p.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",O(p)||"instance")),Zm(p)?(Xm(),k(p,kf,p,a),Ym()):k(p,kf,p,a);else{var f=Gr(p.type,o.memoizedProps);o=o.memoizedState,p.type.defaultProps||"ref"in p.memoizedProps||uv||(a.props!==p.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",O(p)||"instance"),a.state!==p.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",O(p)||"instance")),Zm(p)?(Xm(),k(p,D8,p,a,f,o,a.__reactInternalSnapshotBeforeUpdate),Ym()):k(p,D8,p,a,f,o,a.__reactInternalSnapshotBeforeUpdate)}b&64&&s6(p),b&512&&g0(p,p.return);break;case 3:if(o=Tm(),_m(a,p),b&64&&(b=p.updateQueue,b!==null)){if(f=null,p.child!==null)switch(p.child.tag){case 27:case 5:f=p.child.stateNode;break;case 1:f=p.child.stateNode}try{k(p,a6,b,f)}catch(Y){Ca(p,p.return,Y)}}a.effectDuration+=Z2(o);break;case 27:o===null&&b&4&&mw(p);case 26:case 5:if(_m(a,p),o===null){if(b&4)ow(p);else if(b&64){a=p.type,o=p.memoizedProps,f=p.stateNode;try{k(p,K$,f,a,o,p)}catch(Y){Ca(p,p.return,Y)}}}b&512&&g0(p,p.return);break;case 12:if(b&4){b=Tm(),_m(a,p),a=p.stateNode,a.effectDuration+=H0(b);try{k(p,aw,p,o,Mt,a.effectDuration)}catch(Y){Ca(p,p.return,Y)}}else _m(a,p);break;case 31:_m(a,p),b&4&&fw(a,p);break;case 13:_m(a,p),b&4&&iw(a,p),b&64&&(a=p.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(b=w$.bind(null,p),g$(a,b))));break;case 22:if(b=p.memoizedState!==null||rt,!b){o=o!==null&&o.memoizedState!==null||Wo,f=rt;var i=Wo;rt=b,(Wo=o)&&!i?(qm(a,p,(p.subtreeFlags&8772)!==0),(p.mode&Qa)!==la&&0<=ba&&0<=wa&&0.05<wa-ba&&f2(p,ba,wa)):_m(a,p),rt=f,Wo=i}break;case 30:break;default:_m(a,p)}(p.mode&Qa)!==la&&0<=ba&&0<=wa&&((Yo||0.05<lo)&&wm(p,ba,wa,lo,io),p.alternate===null&&p.return!==null&&p.return.alternate!==null&&0.05<wa-ba&&(tw(p.return.alternate,p.return)||im(p,ba,wa,"Mount"))),qp(m),zm(t),io=r,Yo=v}function vw(a){var o=a.alternate;o!==null&&(a.alternate=null,vw(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&g1(o)),a.stateNode=null,a._debugOwner=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function um(a,o,p){for(p=p.child;p!==null;)bw(a,o,p),p=p.sibling}function bw(a,o,p){if(Do&&typeof Do.onCommitFiberUnmount==="function")try{Do.onCommitFiberUnmount(Qv,p)}catch(i){dm||(dm=!0,console.error("React instrumentation encountered an error: %o",i))}var m=_p(),t=lm(),r=$m(),v=Jm();switch(p.tag){case 26:Wo||Gm(p,o),um(a,o,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(a=p.stateNode,a.parentNode.removeChild(a));break;case 27:Wo||Gm(p,o);var b=Uo,f=lp;Wt(p.type)&&(Uo=p.stateNode,lp=!1),um(a,o,p),k(p,u0,p.stateNode),Uo=b,lp=f;break;case 5:Wo||Gm(p,o);case 6:if(b=Uo,f=lp,Uo=null,um(a,o,p),Uo=b,lp=f,Uo!==null)if(lp)try{k(p,U$,Uo,p.stateNode)}catch(i){Ca(p,o,i)}else try{k(p,d$,Uo,p.stateNode)}catch(i){Ca(p,o,i)}break;case 18:Uo!==null&&(lp?(a=Uo,wc(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,p.stateNode),Zv(a)):wc(Uo,p.stateNode));break;case 4:b=Uo,f=lp,Uo=p.stateNode.containerInfo,lp=!0,um(a,o,p),Uo=b,lp=f;break;case 0:case 11:case 14:case 15:wv(tp,p,o),Wo||f3(p,o,yp),um(a,o,p);break;case 1:Wo||(Gm(p,o),b=p.stateNode,typeof b.componentWillUnmount==="function"&&e6(p,o,b)),um(a,o,p);break;case 21:um(a,o,p);break;case 22:Wo=(b=Wo)||p.memoizedState!==null,um(a,o,p),Wo=b;break;default:um(a,o,p)}(p.mode&Qa)!==la&&0<=ba&&0<=wa&&(Yo||0.05<lo)&&wm(p,ba,wa,lo,io),qp(m),zm(t),io=r,Yo=v}function fw(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{k(o,C$,a)}catch(p){Ca(o,o.return,p)}}}function iw(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{k(o,P$,a)}catch(p){Ca(o,o.return,p)}}function p$(a){switch(a.tag){case 31:case 13:case 19:var o=a.stateNode;return o===null&&(o=a.stateNode=new kl),o;case 22:return a=a.stateNode,o=a._retryCache,o===null&&(o=a._retryCache=new kl),o;default:throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}}function u2(a,o){var p=p$(a);o.forEach(function(m){if(!p.has(m)){if(p.add(m),Um)if(xv!==null&&Vv!==null)I0(Vv,xv);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var t=c$.bind(null,a,m);m.then(t,t)}})}function wp(a,o){var p=o.deletions;if(p!==null)for(var m=0;m<p.length;m++){var t=a,r=o,v=p[m],b=_p(),f=r;a:for(;f!==null;){switch(f.tag){case 27:if(Wt(f.type)){Uo=f.stateNode,lp=!1;break a}break;case 5:Uo=f.stateNode,lp=!1;break a;case 3:case 4:Uo=f.stateNode.containerInfo,lp=!0;break a}f=f.return}if(Uo===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");bw(t,r,v),Uo=null,lp=!1,(v.mode&Qa)!==la&&0<=ba&&0<=wa&&0.05<wa-ba&&im(v,ba,wa,"Unmount"),qp(b),t=v,r=t.alternate,r!==null&&(r.return=null),t.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)ww(o,a),o=o.sibling}function ww(a,o){var p=_p(),m=lm(),t=$m(),r=Jm(),v=a.alternate,b=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:wp(o,a),cp(a),b&4&&(wv(tp|Sp,a,a.return),M0(tp|Sp,a),f3(a,a.return,yp|Sp));break;case 1:if(wp(o,a),cp(a),b&512&&(Wo||v===null||Gm(v,v.return)),b&64&&rt&&(b=a.updateQueue,b!==null&&(v=b.callbacks,v!==null))){var f=b.shared.hiddenCallbacks;b.shared.hiddenCallbacks=f===null?v:f.concat(v)}break;case 26:if(f=rm,wp(o,a),cp(a),b&512&&(Wo||v===null||Gm(v,v.return)),b&4){var i=v!==null?v.memoizedState:null;if(b=a.memoizedState,v===null)if(b===null)if(a.stateNode===null){a:{b=a.type,v=a.memoizedProps,f=f.ownerDocument||f;o:switch(b){case"title":if(i=f.getElementsByTagName("title")[0],!i||i[e0]||i[no]||i.namespaceURI===Kv||i.hasAttribute("itemprop"))i=f.createElement(b),f.head.insertBefore(i,f.querySelector("head > title"));To(i,b,v),i[no]=a,No(i),b=i;break a;case"link":var Y=qc("link","href",f).get(b+(v.href||""));if(Y){for(var X=0;X<Y.length;X++)if(i=Y[X],i.getAttribute("href")===(v.href==null||v.href===""?null:v.href)&&i.getAttribute("rel")===(v.rel==null?null:v.rel)&&i.getAttribute("title")===(v.title==null?null:v.title)&&i.getAttribute("crossorigin")===(v.crossOrigin==null?null:v.crossOrigin)){Y.splice(X,1);break o}}i=f.createElement(b),To(i,b,v),f.head.appendChild(i);break;case"meta":if(Y=qc("meta","content",f).get(b+(v.content||""))){for(X=0;X<Y.length;X++)if(i=Y[X],po(v.content,"content"),i.getAttribute("content")===(v.content==null?null:""+v.content)&&i.getAttribute("name")===(v.name==null?null:v.name)&&i.getAttribute("property")===(v.property==null?null:v.property)&&i.getAttribute("http-equiv")===(v.httpEquiv==null?null:v.httpEquiv)&&i.getAttribute("charset")===(v.charSet==null?null:v.charSet)){Y.splice(X,1);break o}}i=f.createElement(b),To(i,b,v),f.head.appendChild(i);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+b+'". This is a bug in React.')}i[no]=a,No(i),b=i}a.stateNode=b}else Qc(f,a.type,a.stateNode);else a.stateNode=_c(f,b,a.memoizedProps);else i!==b?(i===null?v.stateNode!==null&&(v=v.stateNode,v.parentNode.removeChild(v)):i.count--,b===null?Qc(f,a.type,a.stateNode):_c(f,b,a.memoizedProps)):b===null&&a.stateNode!==null&&w3(a,a.memoizedProps,v.memoizedProps)}break;case 27:wp(o,a),cp(a),b&512&&(Wo||v===null||Gm(v,v.return)),v!==null&&b&4&&w3(a,a.memoizedProps,v.memoizedProps);break;case 5:if(wp(o,a),cp(a),b&512&&(Wo||v===null||Gm(v,v.return)),a.flags&32){f=a.stateNode;try{k(a,fc,f)}catch(E){Ca(a,a.return,E)}}b&4&&a.stateNode!=null&&(f=a.memoizedProps,w3(a,f,v!==null?v.memoizedProps:f)),b&1024&&(xf=!0,a.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(wp(o,a),cp(a),b&4){if(a.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");b=a.memoizedProps,v=v!==null?v.memoizedProps:b,f=a.stateNode;try{k(a,W$,f,v,b)}catch(E){Ca(a,a.return,E)}}break;case 3:if(f=Tm(),f1=null,i=rm,rm=ab(o.containerInfo),wp(o,a),rm=i,cp(a),b&4&&v!==null&&v.memoizedState.isDehydrated)try{k(a,F$,o.containerInfo)}catch(E){Ca(a,a.return,E)}xf&&(xf=!1,cw(a)),o.effectDuration+=Z2(f);break;case 4:b=rm,rm=ab(a.stateNode.containerInfo),wp(o,a),cp(a),rm=b;break;case 12:b=Tm(),wp(o,a),cp(a),a.stateNode.effectDuration+=H0(b);break;case 31:wp(o,a),cp(a),b&4&&(b=a.updateQueue,b!==null&&(a.updateQueue=null,u2(a,b)));break;case 13:wp(o,a),cp(a),a.child.flags&8192&&a.memoizedState!==null!==(v!==null&&v.memoizedState!==null)&&(xb=go()),b&4&&(b=a.updateQueue,b!==null&&(a.updateQueue=null,u2(a,b)));break;case 22:f=a.memoizedState!==null;var z=v!==null&&v.memoizedState!==null,q=rt,u=Wo;if(rt=q||f,Wo=u||z,wp(o,a),Wo=u,rt=q,z&&!f&&!q&&!u&&(a.mode&Qa)!==la&&0<=ba&&0<=wa&&0.05<wa-ba&&f2(a,ba,wa),cp(a),b&8192)a:for(o=a.stateNode,o._visibility=f?o._visibility&~f5:o._visibility|f5,!f||v===null||z||rt||Wo||(_r(a),(a.mode&Qa)!==la&&0<=ba&&0<=wa&&0.05<wa-ba&&im(a,ba,wa,"Disconnect")),v=null,o=a;;){if(o.tag===5||o.tag===26){if(v===null){z=v=o;try{i=z.stateNode,f?k(z,y$,i):k(z,h$,z.stateNode,z.memoizedProps)}catch(E){Ca(z,z.return,E)}}}else if(o.tag===6){if(v===null){z=o;try{Y=z.stateNode,f?k(z,O$,Y):k(z,k$,Y,z.memoizedProps)}catch(E){Ca(z,z.return,E)}}}else if(o.tag===18){if(v===null){z=o;try{X=z.stateNode,f?k(z,R$,X):k(z,L$,z.stateNode)}catch(E){Ca(z,z.return,E)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===a)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break a;for(;o.sibling===null;){if(o.return===null||o.return===a)break a;v===o&&(v=null),o=o.return}v===o&&(v=null),o.sibling.return=o.return,o=o.sibling}b&4&&(b=a.updateQueue,b!==null&&(v=b.retryQueue,v!==null&&(b.retryQueue=null,u2(a,v))));break;case 19:wp(o,a),cp(a),b&4&&(b=a.updateQueue,b!==null&&(a.updateQueue=null,u2(a,b)));break;case 30:break;case 21:break;default:wp(o,a),cp(a)}(a.mode&Qa)!==la&&0<=ba&&0<=wa&&((Yo||0.05<lo)&&wm(a,ba,wa,lo,io),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<wa-ba&&(tw(a.return.alternate,a.return)||im(a,ba,wa,"Mount"))),qp(p),zm(m),io=t,Yo=r}function cp(a){var o=a.flags;if(o&2){try{k(a,a$,a)}catch(p){Ca(a,a.return,p)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function cw(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var o=a;cw(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),a=a.sibling}}function _m(a,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)rw(a,o.alternate,o),o=o.sibling}function lw(a){var o=_p(),p=lm(),m=$m(),t=Jm();switch(a.tag){case 0:case 11:case 14:case 15:f3(a,a.return,yp),_r(a);break;case 1:Gm(a,a.return);var r=a.stateNode;typeof r.componentWillUnmount==="function"&&e6(a,a.return,r),_r(a);break;case 27:k(a,u0,a.stateNode);case 26:case 5:Gm(a,a.return),_r(a);break;case 22:a.memoizedState===null&&_r(a);break;case 30:_r(a);break;default:_r(a)}(a.mode&Qa)!==la&&0<=ba&&0<=wa&&(Yo||0.05<lo)&&wm(a,ba,wa,lo,io),qp(o),zm(p),io=m,Yo=t}function _r(a){for(a=a.child;a!==null;)lw(a),a=a.sibling}function zw(a,o,p,m){var t=_p(),r=lm(),v=$m(),b=Jm(),f=p.flags;switch(p.tag){case 0:case 11:case 15:qm(a,p,m),j6(p,yp);break;case 1:if(qm(a,p,m),o=p.stateNode,typeof o.componentDidMount==="function"&&k(p,kf,p,o),o=p.updateQueue,o!==null){a=p.stateNode;try{k(p,Fz,o,a)}catch(i){Ca(p,p.return,i)}}m&&f&64&&s6(p),g0(p,p.return);break;case 27:mw(p);case 26:case 5:qm(a,p,m),m&&o===null&&f&4&&ow(p),g0(p,p.return);break;case 12:if(m&&f&4){f=Tm(),qm(a,p,m),m=p.stateNode,m.effectDuration+=H0(f);try{k(p,aw,p,o,Mt,m.effectDuration)}catch(i){Ca(p,p.return,i)}}else qm(a,p,m);break;case 31:qm(a,p,m),m&&f&4&&fw(a,p);break;case 13:qm(a,p,m),m&&f&4&&iw(a,p);break;case 22:p.memoizedState===null&&qm(a,p,m),g0(p,p.return);break;case 30:break;default:qm(a,p,m)}(p.mode&Qa)!==la&&0<=ba&&0<=wa&&(Yo||0.05<lo)&&wm(p,ba,wa,lo,io),qp(t),zm(r),io=v,Yo=b}function qm(a,o,p){p=p&&(o.subtreeFlags&8772)!==0;for(o=o.child;o!==null;)zw(a,o.alternate,o,p),o=o.sibling}function z3(a,o){var p=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(p=a.memoizedState.cachePool.pool),a=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),a!==p&&(a!=null&&Jr(a),p!=null&&K0(p))}function $3(a,o){a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(Jr(o),a!=null&&K0(a))}function ep(a,o,p,m,t){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(o=o.child;o!==null;){var r=o.sibling;$w(a,o,p,m,r!==null?r.actualStartTime:t),o=r}}function $w(a,o,p,m,t){var r=_p(),v=lm(),b=$m(),f=Jm(),i=Lt,Y=o.flags;switch(o.tag){case 0:case 11:case 15:(o.mode&Qa)!==la&&0<o.actualStartTime&&(o.flags&1)!==0&&i2(o,o.actualStartTime,t,Lo,p),ep(a,o,p,m,t),Y&2048&&E6(o,rp|Sp);break;case 1:(o.mode&Qa)!==la&&0<o.actualStartTime&&((o.flags&128)!==0?E1(o,o.actualStartTime,t,[]):(o.flags&1)!==0&&i2(o,o.actualStartTime,t,Lo,p)),ep(a,o,p,m,t);break;case 3:var X=Tm(),z=Lo;Lo=o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)===0,ep(a,o,p,m,t),Lo=z,Y&2048&&(p=null,o.alternate!==null&&(p=o.alternate.memoizedState.cache),m=o.memoizedState.cache,m!==p&&(Jr(m),p!=null&&K0(p))),a.passiveEffectDuration+=Z2(X);break;case 12:if(Y&2048){Y=Tm(),ep(a,o,p,m,t),a=o.stateNode,a.passiveEffectDuration+=H0(Y);try{k(o,ez,o,o.alternate,Mt,a.passiveEffectDuration)}catch(q){Ca(o,o.return,q)}}else ep(a,o,p,m,t);break;case 31:Y=Lo,X=o.alternate!==null?o.alternate.memoizedState:null,z=o.memoizedState,X!==null&&z===null?(z=o.deletions,z!==null&&0<z.length&&z[0].tag===18?(Lo=!1,X=X.hydrationErrors,X!==null&&E1(o,o.actualStartTime,t,X)):Lo=!0):Lo=!1,ep(a,o,p,m,t),Lo=Y;break;case 13:Y=Lo,X=o.alternate!==null?o.alternate.memoizedState:null,z=o.memoizedState,X===null||X.dehydrated===null||z!==null&&z.dehydrated!==null?Lo=!1:(z=o.deletions,z!==null&&0<z.length&&z[0].tag===18?(Lo=!1,X=X.hydrationErrors,X!==null&&E1(o,o.actualStartTime,t,X)):Lo=!0),ep(a,o,p,m,t),Lo=Y;break;case 23:break;case 22:z=o.stateNode,X=o.alternate,o.memoizedState!==null?z._visibility&Dm?ep(a,o,p,m,t):F0(a,o,p,m,t):z._visibility&Dm?ep(a,o,p,m,t):(z._visibility|=Dm,cv(a,o,p,m,(o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child),t),(o.mode&Qa)===la||Lo||(a=o.actualStartTime,0<=a&&0.05<t-a&&f2(o,a,t),0<=ba&&0<=wa&&0.05<wa-ba&&f2(o,ba,wa))),Y&2048&&z3(X,o);break;case 24:ep(a,o,p,m,t),Y&2048&&$3(o.alternate,o);break;default:ep(a,o,p,m,t)}if((o.mode&Qa)!==la){if(a=!Lo&&o.alternate===null&&o.return!==null&&o.return.alternate!==null)p=o.actualStartTime,0<=p&&0.05<t-p&&im(o,p,t,"Mount");0<=ba&&0<=wa&&((Yo||0.05<lo)&&wm(o,ba,wa,lo,io),a&&0.05<wa-ba&&im(o,ba,wa,"Mount"))}qp(r),zm(v),io=b,Yo=f,Lt=i}function cv(a,o,p,m,t,r){t=t&&((o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child));for(o=o.child;o!==null;){var v=o.sibling;Jw(a,o,p,m,t,v!==null?v.actualStartTime:r),o=v}}function Jw(a,o,p,m,t,r){var v=_p(),b=lm(),f=$m(),i=Jm(),Y=Lt;t&&(o.mode&Qa)!==la&&0<o.actualStartTime&&(o.flags&1)!==0&&i2(o,o.actualStartTime,r,Lo,p);var X=o.flags;switch(o.tag){case 0:case 11:case 15:cv(a,o,p,m,t,r),E6(o,rp);break;case 23:break;case 22:var z=o.stateNode;o.memoizedState!==null?z._visibility&Dm?cv(a,o,p,m,t,r):F0(a,o,p,m,r):(z._visibility|=Dm,cv(a,o,p,m,t,r)),t&&X&2048&&z3(o.alternate,o);break;case 24:cv(a,o,p,m,t,r),t&&X&2048&&$3(o.alternate,o);break;default:cv(a,o,p,m,t,r)}(o.mode&Qa)!==la&&0<=ba&&0<=wa&&(Yo||0.05<lo)&&wm(o,ba,wa,lo,io),qp(v),zm(b),io=f,Yo=i,Lt=Y}function F0(a,o,p,m,t){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(var r=o.child;r!==null;){o=r.sibling;var v=a,b=p,f=m,i=o!==null?o.actualStartTime:t,Y=Lt;(r.mode&Qa)!==la&&0<r.actualStartTime&&(r.flags&1)!==0&&i2(r,r.actualStartTime,i,Lo,b);var X=r.flags;switch(r.tag){case 22:F0(v,r,b,f,i),X&2048&&z3(r.alternate,r);break;case 24:F0(v,r,b,f,i),X&2048&&$3(r.alternate,r);break;default:F0(v,r,b,f,i)}Lt=Y,r=o}}function lv(a,o,p){if(a.subtreeFlags&U5)for(a=a.child;a!==null;)Yw(a,o,p),a=a.sibling}function Yw(a,o,p){switch(a.tag){case 26:lv(a,o,p),a.flags&U5&&a.memoizedState!==null&&n$(p,rm,a.memoizedState,a.memoizedProps);break;case 5:lv(a,o,p);break;case 3:case 4:var m=rm;rm=ab(a.stateNode.containerInfo),lv(a,o,p),rm=m;break;case 22:a.memoizedState===null&&(m=a.alternate,m!==null&&m.memoizedState!==null?(m=U5,U5=16777216,lv(a,o,p),U5=m):lv(a,o,p));break;default:lv(a,o,p)}}function Xw(a){var o=a.alternate;if(o!==null&&(a=o.child,a!==null)){o.child=null;do o=a.sibling,a.sibling=null,a=o;while(a!==null)}}function C0(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var p=0;p<o.length;p++){var m=o[p],t=_p();Co=m,_w(m,a),(m.mode&Qa)!==la&&0<=ba&&0<=wa&&0.05<wa-ba&&im(m,ba,wa,"Unmount"),qp(t)}Xw(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Zw(a),a=a.sibling}function Zw(a){var o=_p(),p=lm(),m=$m(),t=Jm();switch(a.tag){case 0:case 11:case 15:C0(a),a.flags&2048&&i3(a,a.return,rp|Sp);break;case 3:var r=Tm();C0(a),a.stateNode.passiveEffectDuration+=Z2(r);break;case 12:r=Tm(),C0(a),a.stateNode.passiveEffectDuration+=H0(r);break;case 22:r=a.stateNode,a.memoizedState!==null&&r._visibility&Dm&&(a.return===null||a.return.tag!==13)?(r._visibility&=~Dm,x2(a),(a.mode&Qa)!==la&&0<=ba&&0<=wa&&0.05<wa-ba&&im(a,ba,wa,"Disconnect")):C0(a);break;default:C0(a)}(a.mode&Qa)!==la&&0<=ba&&0<=wa&&(Yo||0.05<lo)&&wm(a,ba,wa,lo,io),qp(o),zm(p),Yo=t,io=m}function x2(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var p=0;p<o.length;p++){var m=o[p],t=_p();Co=m,_w(m,a),(m.mode&Qa)!==la&&0<=ba&&0<=wa&&0.05<wa-ba&&im(m,ba,wa,"Unmount"),qp(t)}Xw(a)}for(a=a.child;a!==null;)Gw(a),a=a.sibling}function Gw(a){var o=_p(),p=lm(),m=$m(),t=Jm();switch(a.tag){case 0:case 11:case 15:i3(a,a.return,rp),x2(a);break;case 22:var r=a.stateNode;r._visibility&Dm&&(r._visibility&=~Dm,x2(a));break;default:x2(a)}(a.mode&Qa)!==la&&0<=ba&&0<=wa&&(Yo||0.05<lo)&&wm(a,ba,wa,lo,io),qp(o),zm(p),Yo=t,io=m}function _w(a,o){for(;Co!==null;){var p=Co,m=p,t=o,r=_p(),v=lm(),b=$m(),f=Jm();switch(m.tag){case 0:case 11:case 15:i3(m,t,rp);break;case 23:case 22:m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(t=m.memoizedState.cachePool.pool,t!=null&&Jr(t));break;case 24:K0(m.memoizedState.cache)}if((m.mode&Qa)!==la&&0<=ba&&0<=wa&&(Yo||0.05<lo)&&wm(m,ba,wa,lo,io),qp(r),zm(v),Yo=f,io=b,m=p.child,m!==null)m.return=p,Co=m;else a:for(p=a;Co!==null;){if(m=Co,r=m.sibling,v=m.return,vw(m),m===p){Co=null;break a}if(r!==null){r.return=v,Co=r;break a}Co=v}}}function m$(){KY.forEach(function(a){return a()})}function qw(){var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return a||B.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),a}function Bp(a){if((ka&ho)!==Po&&Ka!==0)return Ka&-Ka;var o=B.T;return o!==null?(o._updatedFibers||(o._updatedFibers=new Set),o._updatedFibers.add(a),Q3()):gi()}function Qw(){if($p===0)if((Ka&536870912)===0||ya){var a=lb;lb<<=1,(lb&3932160)===0&&(lb=262144),$p=a}else $p=536870912;return a=Rp.current,a!==null&&(a.flags|=32),$p}function Jo(a,o,p){if(Ev&&console.error("useInsertionEffect must not schedule updates."),ti&&(Eb=!0),a===ja&&(Aa===Nr||Aa===Mr)||a.cancelPendingCommit!==null)$v(a,0),Kt(a,Ka,$p,!1);if(z0(a,p),(ka&ho)!==Po&&a===ja){if(Wm)switch(o.tag){case 0:case 11:case 15:a=Ha&&O(Ha)||"Unknown",Dl.has(a)||(Dl.add(a),o=O(o)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",o,a,a));break;case 1:Vl||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Vl=!0)}}else Um&&Ni(a,o,p),z$(o),a===ja&&((ka&ho)===Po&&(St|=p),zo===At&&Kt(a,Ka,$p,!1)),Qm(a)}function Bw(a,o,p){if((ka&(ho|Op))!==Po)throw Error("Should not already be working.");if(Ka!==0&&Ha!==null){var m=Ha,t=go();switch(I8){case O5:case Nr:var r=$5;mo&&((m=m._debugTask)?m.run(console.timeStamp.bind(console,"Suspended",r,t,gp,void 0,"primary-light")):console.timeStamp("Suspended",r,t,gp,void 0,"primary-light"));break;case Mr:r=$5,mo&&((m=m._debugTask)?m.run(console.timeStamp.bind(console,"Action",r,t,gp,void 0,"primary-light")):console.timeStamp("Action",r,t,gp,void 0,"primary-light"));break;default:mo&&(m=t-$5,3>m||console.timeStamp("Blocked",$5,t,gp,void 0,5>m?"primary-light":10>m?"primary":100>m?"primary-dark":"error"))}}r=(p=!p&&(o&127)===0&&(o&a.expiredLanes)===0||l0(a,o))?r$(a,o):Y3(a,o,!0);var v=p;do{if(r===vt){Dv&&!p&&Kt(a,o,0,!1),o=Aa,$5=Bo(),I8=o;break}else{if(m=go(),t=a.current.alternate,v&&!t$(t)){Zp(o),t=Fo,r=m,!mo||r<=t||(Zo?Zo.run(console.timeStamp.bind(console,"Teared Render",t,r,Ra,Ua,"error")):console.timeStamp("Teared Render",t,r,Ra,Ua,"error")),qr(o,m),r=Y3(a,o,!1),v=!1;continue}if(r===kr){if(v=o,a.errorRecoveryDisabledLanes&v)var b=0;else b=a.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){Zp(o),s1(Fo,m,o,Zo),qr(o,m),o=b;a:{m=a,r=v,v=h5;var f=m.current.memoizedState.isDehydrated;if(f&&($v(m,b).flags|=256),b=Y3(m,b,!1),b!==kr){if(jf&&!f){m.errorRecoveryDisabledLanes|=r,St|=r,r=At;break a}m=vp,vp=v,m!==null&&(vp===null?vp=m:vp.push.apply(vp,m))}r=b}if(v=!1,r!==kr)continue;else m=go()}}if(r===y5){Zp(o),s1(Fo,m,o,Zo),qr(o,m),$v(a,0),Kt(a,o,0,!0);break}a:{switch(p=a,r){case vt:case y5:throw Error("Root did not complete. This is a bug in React.");case At:if((o&4194048)!==o)break;case Tb:Zp(o),B7(Fo,m,o,Zo),qr(o,m),t=o,(t&127)!==0?Ub=m:(t&4194048)!==0&&(Rb=m),Kt(p,o,$p,!Tt);break a;case kr:vp=null;break;case Ab:case Nl:break;default:throw Error("Unknown root exit status.")}if(B.actQueue!==null)X3(p,t,o,vp,k5,ub,$p,St,gr,r,null,null,Fo,m);else{if((o&62914560)===o&&(v=xb+Fl-go(),10<v)){if(Kt(p,o,$p,!Tt),e5(p,0,!0)!==0)break a;vm=o,p.timeoutHandle=m9(Kw.bind(null,p,t,vp,k5,ub,o,$p,St,gr,Tt,r,"Throttled",Fo,m),v);break a}Kw(p,t,vp,k5,ub,o,$p,St,gr,Tt,r,null,Fo,m)}}}break}while(1);Qm(a)}function Kw(a,o,p,m,t,r,v,b,f,i,Y,X,z,q){a.timeoutHandle=Ar;var u=o.subtreeFlags,E=null;if(u&8192||(u&16785408)===16785408){if(E={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Cm},Yw(o,r,E),u=(r&62914560)===r?xb-go():(r&4194048)===r?gl-go():0,u=S$(E,u),u!==null){vm=r,a.cancelPendingCommit=u(X3.bind(null,a,o,r,p,m,t,v,b,f,Y,E,E.waitingForViewTransition?"Waiting for the previous Animation":0<E.count?0<E.imgCount?"Suspended on CSS and Images":"Suspended on CSS":E.imgCount===1?"Suspended on an Image":0<E.imgCount?"Suspended on Images":null,z,q)),Kt(a,r,v,!i);return}}X3(a,o,r,p,m,t,v,b,f,Y,E,X,z,q)}function t$(a){for(var o=a;;){var p=o.tag;if((p===0||p===11||p===15)&&o.flags&16384&&(p=o.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var m=0;m<p.length;m++){var t=p[m],r=t.getSnapshot;t=t.value;try{if(!pp(r(),t))return!1}catch(v){return!1}}if(p=o.child,o.subtreeFlags&16384&&p!==null)p.return=o,o=p;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Kt(a,o,p,m){o&=~Ef,o&=~St,a.suspendedLanes|=o,a.pingedLanes&=~o,m&&(a.warmLanes|=o),m=a.expirationTimes;for(var t=o;0<t;){var r=31-eo(t),v=1<<r;m[r]=-1,t&=~v}p!==0&&Li(a,p,o)}function zv(){return(ka&(ho|Op))===Po?(A0(0,!1),!1):!0}function J3(){if(Ha!==null){if(Aa===zp)var a=Ha.return;else a=Ha,J2(),W4(a),Pv=null,B5=0,a=Ha;for(;a!==null;)D6(a.alternate,a),a=a.return;Ha=null}}function qr(a,o){(a&127)!==0&&(gt=o),(a&4194048)!==0&&(hm=o),(a&62914560)!==0&&(C8=o),(a&2080374784)!==0&&(P8=o)}function $v(a,o){mo&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",Ua,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",Ua,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",Ua,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",Ua,"primary-light"));var p=Fo;if(Fo=Bo(),Ka!==0&&0<p){if(Zp(Ka),zo===Ab||zo===At)B7(p,Fo,o,Zo);else{var m=Fo,t=Zo;if(mo&&!(m<=p)){var r=(o&738197653)===o?"tertiary-dark":"primary-dark",v=(o&536870912)===o?"Prewarm":(o&201326741)===o?"Interrupted Hydration":"Interrupted Render";t?t.run(console.timeStamp.bind(console,v,p,m,Ra,Ua,r)):console.timeStamp(v,p,m,Ra,Ua,r)}}qr(Ka,Fo)}if(p=Zo,Zo=null,(o&127)!==0){Zo=c5,t=0<=Lm&&Lm<gt?gt:Lm,m=0<=Wr&&Wr<gt?gt:Wr,r=0<=m?m:0<=t?t:Fo,0<=Ub?(Zp(2),K7(Ub,r,o,p)):(yb&127)!==0&&(Zp(2),Q0(gt,r,ot)),p=t;var b=m,f=l5,i=0<gv,Y=Ft===w5,X=Ft===db;if(t=Fo,m=c5,r=Rf,v=yf,mo){if(Ra="Blocking",0<p?p>t&&(p=t):p=t,0<b?b>p&&(b=p):b=p,f!==null&&p>b){var z=i?"secondary-light":"warning";m?m.run(console.timeStamp.bind(console,i?"Consecutive":"Event: "+f,b,p,Ra,Ua,z)):console.timeStamp(i?"Consecutive":"Event: "+f,b,p,Ra,Ua,z)}t>p&&(b=Y?"error":(o&738197653)===o?"tertiary-light":"primary-light",Y=X?"Promise Resolved":Y?"Cascading Update":5<t-p?"Update Blocked":"Update",X=[],v!=null&&X.push(["Component name",v]),r!=null&&X.push(["Method name",r]),p={start:p,end:t,detail:{devtools:{properties:X,track:Ra,trackGroup:Ua,color:b}}},m?m.run(performance.measure.bind(performance,Y,p)):performance.measure(Y,p))}Lm=-1.1,Ft=0,yf=Rf=null,Ub=-1.1,gv=Wr,Wr=-1.1,gt=Bo()}if((o&4194048)!==0&&(Zo=z5,t=0<=at&&at<hm?hm:at,p=0<=Tp&&Tp<hm?hm:Tp,m=0<=Ct&&Ct<hm?hm:Ct,r=0<=m?m:0<=p?p:Fo,0<=Rb?(Zp(256),K7(Rb,r,o,Zo)):(yb&4194048)!==0&&(Zp(256),Q0(hm,r,ot)),X=m,b=dr,f=0<Pt,i=Of===db,r=Fo,m=z5,v=g8,Y=F8,mo&&(Ra="Transition",0<p?p>r&&(p=r):p=r,0<t?t>p&&(t=p):t=p,0<X?X>t&&(X=t):X=t,t>X&&b!==null&&(z=f?"secondary-light":"warning",m?m.run(console.timeStamp.bind(console,f?"Consecutive":"Event: "+b,X,t,Ra,Ua,z)):console.timeStamp(f?"Consecutive":"Event: "+b,X,t,Ra,Ua,z)),p>t&&(m?m.run(console.timeStamp.bind(console,"Action",t,p,Ra,Ua,"primary-dark")):console.timeStamp("Action",t,p,Ra,Ua,"primary-dark")),r>p&&(t=i?"Promise Resolved":5<r-p?"Update Blocked":"Update",X=[],Y!=null&&X.push(["Component name",Y]),v!=null&&X.push(["Method name",v]),p={start:p,end:r,detail:{devtools:{properties:X,track:Ra,trackGroup:Ua,color:"primary-light"}}},m?m.run(performance.measure.bind(performance,t,p)):performance.measure(t,p))),Tp=at=-1.1,Of=0,Rb=-1.1,Pt=Ct,Ct=-1.1,hm=Bo()),(o&62914560)!==0&&(yb&62914560)!==0&&(Zp(4194304),Q0(C8,Fo,ot)),(o&2080374784)!==0&&(yb&2080374784)!==0&&(Zp(268435456),Q0(P8,Fo,ot)),p=a.timeoutHandle,p!==Ar&&(a.timeoutHandle=Ar,gY(p)),p=a.cancelPendingCommit,p!==null&&(a.cancelPendingCommit=null,p()),vm=0,J3(),ja=a,Ha=p=Pm(a.current,null),Ka=o,Aa=zp,Lp=null,Tt=!1,Dv=l0(a,o),jf=!1,zo=vt,gr=$p=Ef=St=nt=0,vp=h5=null,ub=!1,(o&8)!==0&&(o|=o&32),m=a.entangledLanes,m!==0)for(a=a.entanglements,m&=o;0<m;)t=31-eo(m),r=1<<t,o|=a[t],m&=~r;return Nm=o,w2(),a=O8(),1000<a-y8&&(B.recentlyCreatedOwnerStacks=0,y8=a),mm.discardPendingWarnings(),p}function Hw(a,o){$a=null,B.H=d5,B.getCurrentStack=null,Wm=!1,Wp=null,o===Cv||o===kb?(o=u7(),Aa=O5):o===Nf?(o=u7(),Aa=Ml):Aa=o===Sf?Df:o!==null&&typeof o==="object"&&typeof o.then==="function"?L5:nb,Lp=o;var p=Ha;p===null?(zo=y5,P2(a,Gp(o,a.current))):p.mode&Qa&&z4(p)}function Ww(){var a=Rp.current;return a===null?!0:(Ka&4194048)===Ka?np===null?!0:!1:(Ka&62914560)===Ka||(Ka&536870912)!==0?a===np:!1}function dw(){var a=B.H;return B.H=d5,a===null?d5:a}function Uw(){var a=B.A;return B.A=BY,a}function V2(a){Zo===null&&(Zo=a._debugTask==null?null:a._debugTask)}function D2(){zo=At,Tt||(Ka&4194048)!==Ka&&Rp.current!==null||(Dv=!0),(nt&134217727)===0&&(St&134217727)===0||ja===null||Kt(ja,Ka,$p,!1)}function Y3(a,o,p){var m=ka;ka|=ho;var t=dw(),r=Uw();if(ja!==a||Ka!==o){if(Um){var v=a.memoizedUpdaters;0<v.size&&(I0(a,Ka),v.clear()),Mi(a,o)}k5=null,$v(a,o)}o=!1,v=zo;a:do try{if(Aa!==zp&&Ha!==null){var b=Ha,f=Lp;switch(Aa){case Df:J3(),v=Tb;break a;case O5:case Nr:case Mr:case L5:Rp.current===null&&(o=!0);var i=Aa;if(Aa=zp,Lp=null,Jv(a,b,f,i),p&&Dv){v=vt;break a}break;default:i=Aa,Aa=zp,Lp=null,Jv(a,b,f,i)}}Rw(),v=zo;break}catch(Y){Hw(a,Y)}while(1);return o&&a.shellSuspendCounter++,J2(),ka=m,B.H=t,B.A=r,Ha===null&&(ja=null,Ka=0,w2()),v}function Rw(){for(;Ha!==null;)yw(Ha)}function r$(a,o){var p=ka;ka|=ho;var m=dw(),t=Uw();if(ja!==a||Ka!==o){if(Um){var r=a.memoizedUpdaters;0<r.size&&(I0(a,Ka),r.clear()),Mi(a,o)}k5=null,Vb=go()+Cl,$v(a,o)}else Dv=l0(a,o);a:do try{if(Aa!==zp&&Ha!==null)o:switch(o=Ha,r=Lp,Aa){case nb:Aa=zp,Lp=null,Jv(a,o,r,nb);break;case Nr:case Mr:if(n7(r)){Aa=zp,Lp=null,Ow(o);break}o=function(){Aa!==Nr&&Aa!==Mr||ja!==a||(Aa=Sb),Qm(a)},r.then(o,o);break a;case O5:Aa=Sb;break a;case Ml:Aa=Vf;break a;case Sb:n7(r)?(Aa=zp,Lp=null,Ow(o)):(Aa=zp,Lp=null,Jv(a,o,r,Sb));break;case Vf:var v=null;switch(Ha.tag){case 26:v=Ha.memoizedState;case 5:case 27:var b=Ha;if(v?Bc(v):b.stateNode.complete){Aa=zp,Lp=null;var f=b.sibling;if(f!==null)Ha=f;else{var i=b.return;i!==null?(Ha=i,j2(i)):Ha=null}break o}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Aa=zp,Lp=null,Jv(a,o,r,Vf);break;case L5:Aa=zp,Lp=null,Jv(a,o,r,L5);break;case Df:J3(),zo=Tb;break a;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}B.actQueue!==null?Rw():v$();break}catch(Y){Hw(a,Y)}while(1);if(J2(),B.H=m,B.A=t,ka=p,Ha!==null)return vt;return ja=null,Ka=0,w2(),zo}function v$(){for(;Ha!==null&&!tJ();)yw(Ha)}function yw(a){var o=a.alternate;(a.mode&Qa)!==la?(l4(a),o=k(a,v3,o,a,Nm),z4(a)):o=k(a,v3,o,a,Nm),a.memoizedProps=a.pendingProps,o===null?j2(a):Ha=o}function Ow(a){var o=k(a,b$,a);a.memoizedProps=a.pendingProps,o===null?j2(a):Ha=o}function b$(a){var o=a.alternate,p=(a.mode&Qa)!==la;switch(p&&l4(a),a.tag){case 15:case 0:o=A6(o,a,a.pendingProps,a.type,void 0,Ka);break;case 11:o=A6(o,a,a.pendingProps,a.type.render,a.ref,Ka);break;case 5:W4(a);default:D6(o,a),a=Ha=y7(a,Nm),o=v3(o,a,Nm)}return p&&z4(a),o}function Jv(a,o,p,m){J2(),W4(o),Pv=null,B5=0;var t=o.return;try{if(Sz(a,t,o,p,Ka)){zo=y5,P2(a,Gp(p,a.current)),Ha=null;return}}catch(r){if(t!==null)throw Ha=t,r;zo=y5,P2(a,Gp(p,a.current)),Ha=null;return}if(o.flags&32768){if(ya||m===nb)a=!0;else if(Dv||(Ka&536870912)!==0)a=!1;else if(Tt=a=!0,m===Nr||m===Mr||m===O5||m===L5)m=Rp.current,m!==null&&m.tag===13&&(m.flags|=16384);Lw(o,a)}else j2(o)}function j2(a){var o=a;do{if((o.flags&32768)!==0){Lw(o,Tt);return}var p=o.alternate;if(a=o.return,l4(o),p=k(o,Vz,p,o,Nm),(o.mode&Qa)!==la&&C7(o),p!==null){Ha=p;return}if(o=o.sibling,o!==null){Ha=o;return}Ha=o=a}while(o!==null);zo===vt&&(zo=Nl)}function Lw(a,o){do{var p=Dz(a.alternate,a);if(p!==null){p.flags&=32767,Ha=p;return}if((a.mode&Qa)!==la){C7(a),p=a.actualDuration;for(var m=a.child;m!==null;)p+=m.actualDuration,m=m.sibling;a.actualDuration=p}if(p=a.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!o&&(a=a.sibling,a!==null)){Ha=a;return}Ha=a=p}while(a!==null);zo=Tb,Ha=null}function X3(a,o,p,m,t,r,v,b,f,i,Y,X,z,q){a.cancelPendingCommit=null;do P0();while(Ro!==xt);if(mm.flushLegacyContextWarning(),mm.flushPendingUnsafeLifecycleWarnings(),(ka&(ho|Op))!==Po)throw Error("Should not already be working.");if(Zp(p),i===kr?s1(z,q,p,Zo):m!==null?Lz(z,q,p,m,o!==null&&o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)!==0,Zo):Oz(z,q,p,Zo),o!==null){if(p===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),o===a.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(r=o.lanes|o.childLanes,r|=Kf,wz(a,p,r,v,b,f),a===ja&&(Ha=ja=null,Ka=0),jv=o,Vt=a,vm=p,ai=r,pi=t,Sl=m,oi=q,ul=X,bm=Db,xl=null,o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,l$(qv,function(){return P5=window.event,bm===Db&&(bm=ef),gw(),null})):(a.callbackNode=null,a.callbackPriority=0),em=null,Mt=Bo(),X!==null&&hz(q,Mt,X,Zo),m=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||m){m=B.T,B.T=null,t=Pa.p,Pa.p=dp,v=ka,ka|=Op;try{o$(a,o,p)}finally{ka=v,Pa.p=t,B.T=m}}Ro=Il,hw(),kw(),Nw()}}function hw(){if(Ro===Il){Ro=xt;var a=Vt,o=jv,p=vm,m=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||m){m=B.T,B.T=null;var t=Pa.p;Pa.p=dp;var r=ka;ka|=Op;try{xv=p,Vv=a,G2(),ww(o,a),Vv=xv=null,p=zi;var v=_7(a.containerInfo),b=p.focusedElem,f=p.selectionRange;if(v!==b&&b&&b.ownerDocument&&G7(b.ownerDocument.documentElement,b)){if(f!==null&&D1(b)){var{start:i,end:Y}=f;if(Y===void 0&&(Y=i),"selectionStart"in b)b.selectionStart=i,b.selectionEnd=Math.min(Y,b.value.length);else{var X=b.ownerDocument||document,z=X&&X.defaultView||window;if(z.getSelection){var q=z.getSelection(),u=b.textContent.length,E=Math.min(f.start,u),sa=f.end===void 0?E:Math.min(f.end,u);!q.extend&&E>sa&&(v=sa,sa=E,E=v);var ha=Z7(b,E),l=Z7(b,sa);if(ha&&l&&(q.rangeCount!==1||q.anchorNode!==ha.node||q.anchorOffset!==ha.offset||q.focusNode!==l.node||q.focusOffset!==l.offset)){var $=X.createRange();$.setStart(ha.node,ha.offset),q.removeAllRanges(),E>sa?(q.addRange($),q.extend(l.node,l.offset)):($.setEnd(l.node,l.offset),q.addRange($))}}}}X=[];for(q=b;q=q.parentNode;)q.nodeType===1&&X.push({element:q,left:q.scrollLeft,top:q.scrollTop});typeof b.focus==="function"&&b.focus();for(b=0;b<X.length;b++){var J=X[b];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}c1=!!li,zi=li=null}finally{ka=r,Pa.p=t,B.T=m}}a.current=o,Ro=Al}}function kw(){if(Ro===Al){Ro=xt;var a=xl;if(a!==null){Mt=Bo();var o=sm,p=Mt;!mo||p<=o||(ot?ot.run(console.timeStamp.bind(console,a,o,p,Ra,Ua,"secondary-light")):console.timeStamp(a,o,p,Ra,Ua,"secondary-light"))}a=Vt,o=jv,p=vm;var m=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||m){m=B.T,B.T=null;var t=Pa.p;Pa.p=dp;var r=ka;ka|=Op;try{xv=p,Vv=a,G2(),rw(a,o.alternate,o),Vv=xv=null}finally{ka=r,Pa.p=t,B.T=m}}a=oi,o=ul,sm=Bo(),a=o===null?a:Mt,o=sm,p=bm===sf,m=Zo,em!==null?H7(a,o,em,!1,m):!mo||o<=a||(m?m.run(console.timeStamp.bind(console,p?"Commit Interrupted View Transition":"Commit",a,o,Ra,Ua,p?"error":"secondary-dark")):console.timeStamp(p?"Commit Interrupted View Transition":"Commit",a,o,Ra,Ua,p?"error":"secondary-dark")),Ro=Tl}}function Nw(){if(Ro===nl||Ro===Tl){if(Ro===nl){var a=sm;sm=Bo();var o=sm,p=bm===sf;!mo||o<=a||(ot?ot.run(console.timeStamp.bind(console,p?"Interrupted View Transition":"Starting Animation",a,o,Ra,Ua,p?"error":"secondary-light")):console.timeStamp(p?"Interrupted View Transition":"Starting Animation",a,o,Ra,Ua,p?" error":"secondary-light")),bm!==sf&&(bm=Pl)}Ro=xt,rJ(),a=Vt;var m=jv;o=vm,p=Sl;var t=m.actualDuration!==0||(m.subtreeFlags&10256)!==0||(m.flags&10256)!==0;t?Ro=jb:(Ro=xt,jv=Vt=null,Mw(a,a.pendingLanes),Fr=0,M5=null);var r=a.pendingLanes;if(r===0&&(ut=null),t||Iw(a),r=M1(o),m=m.stateNode,Do&&typeof Do.onCommitFiberRoot==="function")try{var v=(m.current.flags&128)===128;switch(r){case dp:var b=of;break;case om:b=pf;break;case Rm:b=qv;break;case $b:b=mf;break;default:b=qv}Do.onCommitFiberRoot(Qv,m,b,v)}catch(X){dm||(dm=!0,console.error("React instrumentation encountered an error: %o",X))}if(Um&&a.memoizedUpdaters.clear(),m$(),p!==null){v=B.T,b=Pa.p,Pa.p=dp,B.T=null;try{var f=a.onRecoverableError;for(m=0;m<p.length;m++){var i=p[m],Y=f$(i.stack);k(i.source,f,i.value,Y)}}finally{B.T=v,Pa.p=b}}(vm&3)!==0&&P0(),Qm(a),r=a.pendingLanes,(o&261930)!==0&&(r&42)!==0?(Lb=!0,a===mi?N5++:(N5=0,mi=a)):N5=0,t||qr(o,sm),A0(0,!1)}}function f$(a){return a={componentStack:a},Object.defineProperty(a,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),a}function Mw(a,o){(a.pooledCacheLanes&=o)===0&&(o=a.pooledCache,o!=null&&(a.pooledCache=null,K0(o)))}function P0(){return hw(),kw(),Nw(),gw()}function gw(){if(Ro!==jb)return!1;var a=Vt,o=ai;ai=0;var p=M1(vm),m=Rm===0||Rm>p?Rm:p;p=B.T;var t=Pa.p;try{Pa.p=m,B.T=null;var r=pi;pi=null,m=Vt;var v=vm;if(Ro=xt,jv=Vt=null,vm=0,(ka&(ho|Op))!==Po)throw Error("Cannot flush passive effects while already rendering.");Zp(v),ti=!0,Eb=!1;var b=0;if(em=null,b=go(),bm===Pl)Q0(sm,b,ot);else{var f=sm,i=b,Y=bm===ef;!mo||i<=f||(Zo?Zo.run(console.timeStamp.bind(console,Y?"Waiting for Paint":"Waiting",f,i,Ra,Ua,"secondary-light")):console.timeStamp(Y?"Waiting for Paint":"Waiting",f,i,Ra,Ua,"secondary-light"))}f=ka,ka|=Op;var X=m.current;G2(),Zw(X);var z=m.current;X=oi,G2(),$w(m,z,v,r,X),Iw(m),ka=f;var q=go();if(z=b,X=Zo,em!==null?H7(z,q,em,!0,X):!mo||q<=z||(X?X.run(console.timeStamp.bind(console,"Remaining Effects",z,q,Ra,Ua,"secondary-dark")):console.timeStamp("Remaining Effects",z,q,Ra,Ua,"secondary-dark")),qr(v,q),A0(0,!1),Eb?m===M5?Fr++:(Fr=0,M5=m):Fr=0,Eb=ti=!1,Do&&typeof Do.onPostCommitFiberRoot==="function")try{Do.onPostCommitFiberRoot(Qv,m)}catch(E){dm||(dm=!0,console.error("React instrumentation encountered an error: %o",E))}var u=m.current.stateNode;return u.effectDuration=0,u.passiveEffectDuration=0,!0}finally{Pa.p=t,B.T=p,Mw(a,o)}}function Fw(a,o,p){o=Gp(p,o),P7(o),o=D4(a.stateNode,o,2),a=_t(a,o,2),a!==null&&(z0(a,2),Qm(a))}function Ca(a,o,p){if(Ev=!1,a.tag===3)Fw(a,a,p);else{for(;o!==null;){if(o.tag===3){Fw(o,a,p);return}if(o.tag===1){var m=o.stateNode;if(typeof o.type.getDerivedStateFromError==="function"||typeof m.componentDidCatch==="function"&&(ut===null||!ut.has(m))){a=Gp(p,a),P7(a),p=j4(2),m=_t(o,p,2),m!==null&&(E4(p,m,o,a),z0(m,2),Qm(m));return}}o=o.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
138
|
+
|
|
139
|
+
Error message:
|
|
140
|
+
|
|
141
|
+
%s`,p)}}function Z3(a,o,p){var m=a.pingCache;if(m===null){m=a.pingCache=new HY;var t=new Set;m.set(o,t)}else t=m.get(o),t===void 0&&(t=new Set,m.set(o,t));t.has(p)||(jf=!0,t.add(p),m=i$.bind(null,a,o,p),Um&&I0(a,p),o.then(m,m))}function i$(a,o,p){var m=a.pingCache;m!==null&&m.delete(o),a.pingedLanes|=a.suspendedLanes&p,a.warmLanes&=~p,(p&127)!==0?0>Lm&&(gt=Lm=Bo(),c5=Wb("Promise Resolved"),Ft=db):(p&4194048)!==0&&0>Tp&&(hm=Tp=Bo(),z5=Wb("Promise Resolved"),Of=db),qw()&&B.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
142
|
+
|
|
143
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
144
|
+
|
|
145
|
+
act(() => {
|
|
146
|
+
/* finish loading suspended data */
|
|
147
|
+
});
|
|
148
|
+
/* assert on the output */
|
|
149
|
+
|
|
150
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),ja===a&&(Ka&p)===p&&(zo===At||zo===Ab&&(Ka&62914560)===Ka&&go()-xb<Fl?(ka&ho)===Po&&$v(a,0):Ef|=p,gr===Ka&&(gr=0)),Qm(a)}function Cw(a,o){o===0&&(o=h1()),a=Vo(a,o),a!==null&&(z0(a,o),Qm(a))}function w$(a){var o=a.memoizedState,p=0;o!==null&&(p=o.retryLane),Cw(a,p)}function c$(a,o){var p=0;switch(a.tag){case 31:case 13:var{stateNode:m,memoizedState:t}=a;t!==null&&(p=t.retryLane);break;case 19:m=a.stateNode;break;case 22:m=a.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}m!==null&&m.delete(o),Cw(a,p)}function G3(a,o,p){if((o.subtreeFlags&67117056)!==0)for(o=o.child;o!==null;){var m=a,t=o,r=t.type===fb;r=p||r,t.tag!==22?t.flags&67108864?r&&k(t,Pw,m,t):G3(m,t,r):t.memoizedState===null&&(r&&t.flags&8192?k(t,Pw,m,t):t.subtreeFlags&67108864&&k(t,G3,m,t,r)),o=o.sibling}}function Pw(a,o){co(!0);try{lw(o),Gw(o),zw(a,o.alternate,o,!1),Jw(a,o,0,null,!1,0)}finally{co(!1)}}function Iw(a){var o=!0;a.current.mode&(jo|pm)||(o=!1),G3(a,a.current,o)}function Aw(a){if((ka&ho)===Po){var o=a.tag;if(o===3||o===1||o===0||o===11||o===14||o===15){if(o=O(a)||"ReactComponent",sb!==null){if(sb.has(o))return;sb.add(o)}else sb=new Set([o]);k(a,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function I0(a,o){Um&&a.memoizedUpdaters.forEach(function(p){Ni(a,p,o)})}function l$(a,o){var p=B.actQueue;return p!==null?(p.push(o),UY):af(a,o)}function z$(a){qw()&&B.actQueue===null&&k(a,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
151
|
+
|
|
152
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
153
|
+
|
|
154
|
+
act(() => {
|
|
155
|
+
/* fire events that update state */
|
|
156
|
+
});
|
|
157
|
+
/* assert on the output */
|
|
158
|
+
|
|
159
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,O(a))})}function Qm(a){a!==sv&&a.next===null&&(sv===null?eb=sv=a:sv=sv.next=a),a1=!0,B.actQueue!==null?vi||(vi=!0,uw()):ri||(ri=!0,uw())}function A0(a,o){if(!bi&&a1){bi=!0;do{var p=!1;for(var m=eb;m!==null;){if(!o)if(a!==0){var t=m.pendingLanes;if(t===0)var r=0;else{var{suspendedLanes:v,pingedLanes:b}=m;r=(1<<31-eo(42|a)+1)-1,r&=t&~(v&~b),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(p=!0,Sw(m,r))}else r=Ka,r=e5(m,m===ja?r:0,m.cancelPendingCommit!==null||m.timeoutHandle!==Ar),(r&3)===0||l0(m,r)||(p=!0,Sw(m,r));m=m.next}}while(p);bi=!1}}function $$(){P5=window.event,_3()}function _3(){a1=vi=ri=!1;var a=0;Dt!==0&&q$()&&(a=Dt);for(var o=go(),p=null,m=eb;m!==null;){var t=m.next,r=Tw(m,o);if(r===0)m.next=null,p===null?eb=t:p.next=t,t===null&&(sv=p);else if(p=m,a!==0||(r&3)!==0)a1=!0;m=t}Ro!==xt&&Ro!==jb||A0(a,!1),Dt!==0&&(Dt=0)}function Tw(a,o){for(var{suspendedLanes:p,pingedLanes:m,expirationTimes:t}=a,r=a.pendingLanes&-62914561;0<r;){var v=31-eo(r),b=1<<v,f=t[v];if(f===-1){if((b&p)===0||(b&m)!==0)t[v]=iz(b,o)}else f<=o&&(a.expiredLanes|=b);r&=~b}if(o=ja,p=Ka,p=e5(a,a===o?p:0,a.cancelPendingCommit!==null||a.timeoutHandle!==Ar),m=a.callbackNode,p===0||a===o&&(Aa===Nr||Aa===Mr)||a.cancelPendingCommit!==null)return m!==null&&q3(m),a.callbackNode=null,a.callbackPriority=0;if((p&3)===0||l0(a,p)){if(o=p&-p,o!==a.callbackPriority||B.actQueue!==null&&m!==fi)q3(m);else return o;switch(M1(p)){case dp:case om:p=pf;break;case Rm:p=qv;break;case $b:p=mf;break;default:p=qv}return m=nw.bind(null,a),B.actQueue!==null?(B.actQueue.push(m),p=fi):p=af(p,m),a.callbackPriority=o,a.callbackNode=p,o}return m!==null&&q3(m),a.callbackPriority=2,a.callbackNode=null,2}function nw(a,o){if(Lb=Ob=!1,P5=window.event,Ro!==xt&&Ro!==jb)return a.callbackNode=null,a.callbackPriority=0,null;var p=a.callbackNode;if(bm===Db&&(bm=ef),P0()&&a.callbackNode!==p)return null;var m=Ka;if(m=e5(a,a===ja?m:0,a.cancelPendingCommit!==null||a.timeoutHandle!==Ar),m===0)return null;return Bw(a,m,o),Tw(a,go()),a.callbackNode!=null&&a.callbackNode===p?nw.bind(null,a):null}function Sw(a,o){if(P0())return null;Ob=Lb,Lb=!1,Bw(a,o,!0)}function q3(a){a!==fi&&a!==null&&mJ(a)}function uw(){B.actQueue!==null&&B.actQueue.push(function(){return _3(),null}),FY(function(){(ka&(ho|Op))!==Po?af(of,$$):_3()})}function Q3(){if(Dt===0){var a=Ur;a===0&&(a=cb,cb<<=1,(cb&261888)===0&&(cb=256)),Dt=a}return Dt}function xw(a){if(a==null||typeof a==="symbol"||typeof a==="boolean")return null;if(typeof a==="function")return a;return po(a,"action"),G0(""+a)}function Vw(a,o){var p=o.ownerDocument.createElement("input");return p.name=o.name,p.value=o.value,a.id&&p.setAttribute("form",a.id),o.parentNode.insertBefore(p,o),a=new FormData(a),p.parentNode.removeChild(p),a}function J$(a,o,p,m,t){if(o==="submit"&&p&&p.stateNode===t){var r=xw((t[ap]||null).action),v=m.submitter;v&&(o=(o=v[ap]||null)?xw(o.formAction):v.getAttribute("formAction"),o!==null&&(r=o,v=null));var b=new Gb("action","action",null,m,t);a.push({event:b,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Dt!==0){var f=v?Vw(t,v):new FormData(t),i={pending:!0,data:f,method:t.method,action:r};Object.freeze(i),A4(p,i,null,f)}}else typeof r==="function"&&(b.preventDefault(),f=v?Vw(t,v):new FormData(t),i={pending:!0,data:f,method:t.method,action:r},Object.freeze(i),A4(p,i,r,f))},currentTarget:t}]})}}function E2(a,o,p){a.currentTarget=p;try{o(a)}catch(m){_f(m)}a.currentTarget=null}function Dw(a,o){o=(o&4)!==0;for(var p=0;p<a.length;p++){var m=a[p];a:{var t=void 0,r=m.event;if(m=m.listeners,o)for(var v=m.length-1;0<=v;v--){var b=m[v],f=b.instance,i=b.currentTarget;if(b=b.listener,f!==t&&r.isPropagationStopped())break a;f!==null?k(f,E2,r,b,i):E2(r,b,i),t=f}else for(v=0;v<m.length;v++){if(b=m[v],f=b.instance,i=b.currentTarget,b=b.listener,f!==t&&r.isPropagationStopped())break a;f!==null?k(f,E2,r,b,i):E2(r,b,i),t=f}}}}function La(a,o){ii.has(a)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',a);var p=o[tf];p===void 0&&(p=o[tf]=new Set);var m=a+"__bubble";p.has(m)||(jw(o,a,2,!1),p.add(m))}function B3(a,o,p){ii.has(a)&&!o&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',a);var m=0;o&&(m|=4),jw(p,a,m,o)}function K3(a){if(!a[o1]){a[o1]=!0,uc.forEach(function(p){p!=="selectionchange"&&(ii.has(p)||B3(p,!1,a),B3(p,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[o1]||(o[o1]=!0,B3("selectionchange",!1,o))}}function jw(a,o,p,m){switch(Rc(o)){case dp:var t=D$;break;case om:t=j$;break;default:t=P3}p=t.bind(null,o,p,a),t=void 0,!wf||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(t=!0),m?t!==void 0?a.addEventListener(o,p,{capture:!0,passive:t}):a.addEventListener(o,p,!0):t!==void 0?a.addEventListener(o,p,{passive:t}):a.addEventListener(o,p,!1)}function H3(a,o,p,m,t){var r=m;if((o&1)===0&&(o&2)===0&&m!==null)a:for(;;){if(m===null)return;var v=m.tag;if(v===3||v===4){var b=m.stateNode.containerInfo;if(b===t)break;if(v===4)for(v=m.return;v!==null;){var f=v.tag;if((f===3||f===4)&&v.stateNode.containerInfo===t)return;v=v.return}for(;b!==null;){if(v=Er(b),v===null)return;if(f=v.tag,f===5||f===6||f===26||f===27){m=r=v;continue a}b=b.parentNode}}m=m.return}b7(function(){var i=r,Y=x1(p),X=[];a:{var z=R8.get(a);if(z!==void 0){var q=Gb,u=a;switch(a){case"keypress":if(r2(p)===0)break a;case"keydown":case"keyup":q=nJ;break;case"focusin":u="focus",q=$f;break;case"focusout":u="blur",q=$f;break;case"beforeblur":case"afterblur":q=$f;break;case"click":if(p.button===2)break a;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=J8;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=LJ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=xJ;break;case H8:case W8:case d8:q=NJ;break;case U8:q=DJ;break;case"scroll":case"scrollend":q=yJ;break;case"wheel":q=EJ;break;case"copy":case"cut":case"paste":q=gJ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=X8;break;case"toggle":case"beforetoggle":q=eJ}var E=(o&4)!==0,sa=!E&&(a==="scroll"||a==="scrollend"),ha=E?z!==null?z+"Capture":null:z;E=[];for(var l=i,$;l!==null;){var J=l;if($=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||$===null||ha===null||(J=_0(l,ha),J!=null&&E.push(T0(l,J,$))),sa)break;l=l.return}0<E.length&&(z=new q(z,u,null,p,Y),X.push({event:z,listeners:E}))}}if((o&7)===0){a:{if(z=a==="mouseover"||a==="pointerover",q=a==="mouseout"||a==="pointerout",z&&p!==a5&&(u=p.relatedTarget||p.fromElement)&&(Er(u)||u[yt]))break a;if(q||z){if(z=Y.window===Y?Y:(z=Y.ownerDocument)?z.defaultView||z.parentWindow:window,q){if(u=p.relatedTarget||p.toElement,q=i,u=u?Er(u):null,u!==null&&(sa=_a(u),E=u.tag,u!==sa||E!==5&&E!==27&&E!==6))u=null}else q=null,u=i;if(q!==u){if(E=J8,J="onMouseLeave",ha="onMouseEnter",l="mouse",a==="pointerout"||a==="pointerover")E=X8,J="onPointerLeave",ha="onPointerEnter",l="pointer";if(sa=q==null?z:$0(q),$=u==null?z:$0(u),z=new E(J,l+"leave",q,p,Y),z.target=sa,z.relatedTarget=$,J=null,Er(Y)===i&&(E=new E(ha,l+"enter",u,p,Y),E.target=$,E.relatedTarget=sa,J=E),sa=J,q&&u)o:{E=Y$,ha=q,l=u,$=0;for(J=ha;J;J=E(J))$++;J=0;for(var U=l;U;U=E(U))J++;for(;0<$-J;)ha=E(ha),$--;for(;0<J-$;)l=E(l),J--;for(;$--;){if(ha===l||l!==null&&ha===l.alternate){E=ha;break o}ha=E(ha),l=E(l)}E=null}else E=null;q!==null&&Ew(X,z,q,E,!1),u!==null&&sa!==null&&Ew(X,sa,u,E,!0)}}}a:{if(z=i?$0(i):window,q=z.nodeName&&z.nodeName.toLowerCase(),q==="select"||q==="input"&&z.type==="file")var j=$7;else if(l7(z))if(B8)j=Uz;else{j=Wz;var Ja=Hz}else q=z.nodeName,!q||q.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?i&&Z0(i.elementType)&&(j=$7):j=dz;if(j&&(j=j(a,i))){z7(X,j,p,Y);break a}Ja&&Ja(a,z,i),a==="focusout"&&i&&z.type==="number"&&i.memoizedProps.value!=null&&I1(z,"number",z.value)}switch(Ja=i?$0(i):window,a){case"focusin":if(l7(Ja)||Ja.contentEditable==="true")Rv=Ja,Yf=i,b5=null;break;case"focusout":b5=Yf=Rv=null;break;case"mousedown":Xf=!0;break;case"contextmenu":case"mouseup":case"dragend":Xf=!1,q7(X,p,Y);break;case"selectionchange":if(mY)break;case"keydown":case"keyup":q7(X,p,Y)}var va;if(Jf)a:{switch(a){case"compositionstart":var ma="onCompositionStart";break a;case"compositionend":ma="onCompositionEnd";break a;case"compositionupdate":ma="onCompositionUpdate";break a}ma=void 0}else Uv?w7(a,p)&&(ma="onCompositionEnd"):a==="keydown"&&p.keyCode===Z8&&(ma="onCompositionStart");if(ma&&(G8&&p.locale!=="ko"&&(Uv||ma!=="onCompositionStart"?ma==="onCompositionEnd"&&Uv&&(va=f7()):(Ot=Y,cf=("value"in Ot)?Ot.value:Ot.textContent,Uv=!0)),Ja=s2(i,ma),0<Ja.length&&(ma=new Y8(ma,a,null,p,Y),X.push({event:ma,listeners:Ja}),va?ma.data=va:(va=c7(p),va!==null&&(ma.data=va)))),va=oY?qz(a,p):Qz(a,p))ma=s2(i,"onBeforeInput"),0<ma.length&&(Ja=new CJ("onBeforeInput","beforeinput",null,p,Y),X.push({event:Ja,listeners:ma}),Ja.data=va);J$(X,a,i,p,Y)}Dw(X,o)})}function T0(a,o,p){return{instance:a,listener:o,currentTarget:p}}function s2(a,o){for(var p=o+"Capture",m=[];a!==null;){var t=a,r=t.stateNode;if(t=t.tag,t!==5&&t!==26&&t!==27||r===null||(t=_0(a,p),t!=null&&m.unshift(T0(a,t,r)),t=_0(a,o),t!=null&&m.push(T0(a,t,r))),a.tag===3)return m;a=a.return}return[]}function Y$(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a?a:null}function Ew(a,o,p,m,t){for(var r=o._reactName,v=[];p!==null&&p!==m;){var b=p,f=b.alternate,i=b.stateNode;if(b=b.tag,f!==null&&f===m)break;b!==5&&b!==26&&b!==27||i===null||(f=i,t?(i=_0(p,r),i!=null&&v.unshift(T0(p,i,f))):t||(i=_0(p,r),i!=null&&v.push(T0(p,i,f)))),p=p.return}v.length!==0&&a.push({event:o,listeners:v})}function W3(a,o){Xz(a,o),a!=="input"&&a!=="textarea"&&a!=="select"||o==null||o.value!==null||z8||(z8=!0,a==="select"&&o.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",a):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",a));var p={registrationNameDependencies:Qr,possibleRegistrationNames:rf};Z0(a)||typeof o.is==="string"||Gz(a,o,p),o.contentEditable&&!o.suppressContentEditableWarning&&o.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Mo(a,o,p,m){o!==p&&(p=Ht(p),Ht(o)!==p&&(m[a]=o))}function X$(a,o,p){o.forEach(function(m){p[ac(m)]=m==="style"?U3(a):a.getAttribute(m)})}function Bm(a,o){o===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",a,a,a):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",a,typeof o)}function sw(a,o){return a=a.namespaceURI===Yb||a.namespaceURI===Kv?a.ownerDocument.createElementNS(a.namespaceURI,a.tagName):a.ownerDocument.createElement(a.tagName),a.innerHTML=o,a.innerHTML}function Ht(a){return Yp(a)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",ko(a)),c0(a)),(typeof a==="string"?a:""+a).replace(RY,`
|
|
160
|
+
`).replace(yY,"")}function ew(a,o){return o=Ht(o),Ht(a)===o?!0:!1}function Va(a,o,p,m,t,r){switch(p){case"children":if(typeof m==="string")t2(m,o,!1),o==="body"||o==="textarea"&&m===""||X0(a,m);else if(typeof m==="number"||typeof m==="bigint")t2(""+m,o,!1),o!=="body"&&X0(a,""+m);break;case"className":o2(a,"class",m);break;case"tabIndex":o2(a,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":o2(a,p,m);break;case"style":t7(a,m,r);break;case"data":if(o!=="object"){o2(a,"data",m);break}case"src":case"href":if(m===""&&(o!=="a"||p!=="href")){p==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',p,p):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',p,p),a.removeAttribute(p);break}if(m==null||typeof m==="function"||typeof m==="symbol"||typeof m==="boolean"){a.removeAttribute(p);break}po(m,p),m=G0(""+m),a.setAttribute(p,m);break;case"action":case"formAction":if(m!=null&&(o==="form"?p==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof m==="function"&&(t.encType==null&&t.method==null||t1||(t1=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),t.target==null||m1||(m1=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):o==="input"||o==="button"?p==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):o!=="input"||t.type==="submit"||t.type==="image"||p1?o!=="button"||t.type==null||t.type==="submit"||p1?typeof m==="function"&&(t.name==null||sl||(sl=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),t.formEncType==null&&t.formMethod==null||t1||(t1=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),t.formTarget==null||m1||(m1=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(p1=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(p1=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):p==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof m==="function"){a.setAttribute(p,"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 r==="function"&&(p==="formAction"?(o!=="input"&&Va(a,o,"name",t.name,t,null),Va(a,o,"formEncType",t.formEncType,t,null),Va(a,o,"formMethod",t.formMethod,t,null),Va(a,o,"formTarget",t.formTarget,t,null)):(Va(a,o,"encType",t.encType,t,null),Va(a,o,"method",t.method,t,null),Va(a,o,"target",t.target,t,null)));if(m==null||typeof m==="symbol"||typeof m==="boolean"){a.removeAttribute(p);break}po(m,p),m=G0(""+m),a.setAttribute(p,m);break;case"onClick":m!=null&&(typeof m!=="function"&&Bm(p,m),a.onclick=Cm);break;case"onScroll":m!=null&&(typeof m!=="function"&&Bm(p,m),La("scroll",a));break;case"onScrollEnd":m!=null&&(typeof m!=="function"&&Bm(p,m),La("scrollend",a));break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!=="object"||!("__html"in m))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(p=m.__html,p!=null){if(t.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a.innerHTML=p}}break;case"multiple":a.multiple=m&&typeof m!=="function"&&typeof m!=="symbol";break;case"muted":a.muted=m&&typeof m!=="function"&&typeof m!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m==="function"||typeof m==="boolean"||typeof m==="symbol"){a.removeAttribute("xlink:href");break}po(m,p),p=G0(""+m),a.setAttributeNS(Cr,"xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!=="function"&&typeof m!=="symbol"?(po(m,p),a.setAttribute(p,""+m)):a.removeAttribute(p);break;case"inert":m!==""||r1[p]||(r1[p]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",p));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":m&&typeof m!=="function"&&typeof m!=="symbol"?a.setAttribute(p,""):a.removeAttribute(p);break;case"capture":case"download":m===!0?a.setAttribute(p,""):m!==!1&&m!=null&&typeof m!=="function"&&typeof m!=="symbol"?(po(m,p),a.setAttribute(p,m)):a.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!=="function"&&typeof m!=="symbol"&&!isNaN(m)&&1<=m?(po(m,p),a.setAttribute(p,m)):a.removeAttribute(p);break;case"rowSpan":case"start":m==null||typeof m==="function"||typeof m==="symbol"||isNaN(m)?a.removeAttribute(p):(po(m,p),a.setAttribute(p,m));break;case"popover":La("beforetoggle",a),La("toggle",a),a2(a,"popover",m);break;case"xlinkActuate":Fm(a,Cr,"xlink:actuate",m);break;case"xlinkArcrole":Fm(a,Cr,"xlink:arcrole",m);break;case"xlinkRole":Fm(a,Cr,"xlink:role",m);break;case"xlinkShow":Fm(a,Cr,"xlink:show",m);break;case"xlinkTitle":Fm(a,Cr,"xlink:title",m);break;case"xlinkType":Fm(a,Cr,"xlink:type",m);break;case"xmlBase":Fm(a,wi,"xml:base",m);break;case"xmlLang":Fm(a,wi,"xml:lang",m);break;case"xmlSpace":Fm(a,wi,"xml:space",m);break;case"is":r!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),a2(a,"is",m);break;case"innerText":case"textContent":break;case"popoverTarget":el||m==null||typeof m!=="object"||(el=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",m));default:!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N"?(p=r7(p),a2(a,p,m)):Qr.hasOwnProperty(p)&&m!=null&&typeof m!=="function"&&Bm(p,m)}}function d3(a,o,p,m,t,r){switch(p){case"style":t7(a,m,r);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!=="object"||!("__html"in m))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(p=m.__html,p!=null){if(t.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a.innerHTML=p}}break;case"children":typeof m==="string"?X0(a,m):(typeof m==="number"||typeof m==="bigint")&&X0(a,""+m);break;case"onScroll":m!=null&&(typeof m!=="function"&&Bm(p,m),La("scroll",a));break;case"onScrollEnd":m!=null&&(typeof m!=="function"&&Bm(p,m),La("scrollend",a));break;case"onClick":m!=null&&(typeof m!=="function"&&Bm(p,m),a.onclick=Cm);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Qr.hasOwnProperty(p))m!=null&&typeof m!=="function"&&Bm(p,m);else a:{if(p[0]==="o"&&p[1]==="n"&&(t=p.endsWith("Capture"),o=p.slice(2,t?p.length-7:void 0),r=a[ap]||null,r=r!=null?r[p]:null,typeof r==="function"&&a.removeEventListener(o,r,t),typeof m==="function")){typeof r!=="function"&&r!==null&&(p in a?a[p]=null:a.hasAttribute(p)&&a.removeAttribute(p)),a.addEventListener(o,m,t);break a}p in a?a[p]=m:m===!0?a.setAttribute(p,""):a2(a,p,m)}}}function To(a,o,p){switch(W3(o,p),o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":La("error",a),La("load",a);var m=!1,t=!1,r;for(r in p)if(p.hasOwnProperty(r)){var v=p[r];if(v!=null)switch(r){case"src":m=!0;break;case"srcSet":t=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Va(a,o,r,v,p,null)}}t&&Va(a,o,"srcSet",p.srcSet,p,null),m&&Va(a,o,"src",p.src,p,null);return;case"input":av("input",p),La("invalid",a);var b=r=v=t=null,f=null,i=null;for(m in p)if(p.hasOwnProperty(m)){var Y=p[m];if(Y!=null)switch(m){case"name":t=Y;break;case"type":v=Y;break;case"checked":f=Y;break;case"defaultChecked":i=Y;break;case"value":r=Y;break;case"defaultValue":b=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Va(a,o,m,Y,p,null)}}Ai(a,p),Ti(a,r,b,f,i,v,t,!1);return;case"select":av("select",p),La("invalid",a),m=v=r=null;for(t in p)if(p.hasOwnProperty(t)&&(b=p[t],b!=null))switch(t){case"value":r=b;break;case"defaultValue":v=b;break;case"multiple":m=b;default:Va(a,o,t,b,p,null)}ui(a,p),o=r,p=v,a.multiple=!!m,o!=null?ov(a,!!m,o,!1):p!=null&&ov(a,!!m,p,!0);return;case"textarea":av("textarea",p),La("invalid",a),r=t=m=null;for(v in p)if(p.hasOwnProperty(v)&&(b=p[v],b!=null))switch(v){case"value":m=b;break;case"defaultValue":t=b;break;case"children":r=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Va(a,o,v,b,p,null)}xi(a,p),Di(a,m,t,r);return;case"option":ni(a,p);for(f in p)if(p.hasOwnProperty(f)&&(m=p[f],m!=null))switch(f){case"selected":a.selected=m&&typeof m!=="function"&&typeof m!=="symbol";break;default:Va(a,o,f,m,p,null)}return;case"dialog":La("beforetoggle",a),La("toggle",a),La("cancel",a),La("close",a);break;case"iframe":case"object":La("load",a);break;case"video":case"audio":for(m=0;m<g5.length;m++)La(g5[m],a);break;case"image":La("error",a),La("load",a);break;case"details":La("toggle",a);break;case"embed":case"source":case"link":La("error",a),La("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(i in p)if(p.hasOwnProperty(i)&&(m=p[i],m!=null))switch(i){case"children":case"dangerouslySetInnerHTML":throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Va(a,o,i,m,p,null)}return;default:if(Z0(o)){for(Y in p)p.hasOwnProperty(Y)&&(m=p[Y],m!==void 0&&d3(a,o,Y,m,p,void 0));return}}for(b in p)p.hasOwnProperty(b)&&(m=p[b],m!=null&&Va(a,o,b,m,p,null))}function Z$(a,o,p,m){switch(W3(o,m),o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var t=null,r=null,v=null,b=null,f=null,i=null,Y=null;for(q in p){var X=p[q];if(p.hasOwnProperty(q)&&X!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":f=X;default:m.hasOwnProperty(q)||Va(a,o,q,null,m,X)}}for(var z in m){var q=m[z];if(X=p[z],m.hasOwnProperty(z)&&(q!=null||X!=null))switch(z){case"type":r=q;break;case"name":t=q;break;case"checked":i=q;break;case"defaultChecked":Y=q;break;case"value":v=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:q!==X&&Va(a,o,z,q,m,X)}}o=p.type==="checkbox"||p.type==="radio"?p.checked!=null:p.value!=null,m=m.type==="checkbox"||m.type==="radio"?m.checked!=null:m.value!=null,o||!m||El||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),El=!0),!o||m||jl||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),jl=!0),P1(a,v,b,f,i,Y,r,t);return;case"select":q=v=b=z=null;for(r in p)if(f=p[r],p.hasOwnProperty(r)&&f!=null)switch(r){case"value":break;case"multiple":q=f;default:m.hasOwnProperty(r)||Va(a,o,r,null,m,f)}for(t in m)if(r=m[t],f=p[t],m.hasOwnProperty(t)&&(r!=null||f!=null))switch(t){case"value":z=r;break;case"defaultValue":b=r;break;case"multiple":v=r;default:r!==f&&Va(a,o,t,r,m,f)}m=b,o=v,p=q,z!=null?ov(a,!!o,z,!1):!!p!==!!o&&(m!=null?ov(a,!!o,m,!0):ov(a,!!o,o?[]:"",!1));return;case"textarea":q=z=null;for(b in p)if(t=p[b],p.hasOwnProperty(b)&&t!=null&&!m.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Va(a,o,b,null,m,t)}for(v in m)if(t=m[v],r=p[v],m.hasOwnProperty(v)&&(t!=null||r!=null))switch(v){case"value":z=t;break;case"defaultValue":q=t;break;case"children":break;case"dangerouslySetInnerHTML":if(t!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:t!==r&&Va(a,o,v,t,m,r)}Vi(a,z,q);return;case"option":for(var u in p)if(z=p[u],p.hasOwnProperty(u)&&z!=null&&!m.hasOwnProperty(u))switch(u){case"selected":a.selected=!1;break;default:Va(a,o,u,null,m,z)}for(f in m)if(z=m[f],q=p[f],m.hasOwnProperty(f)&&z!==q&&(z!=null||q!=null))switch(f){case"selected":a.selected=z&&typeof z!=="function"&&typeof z!=="symbol";break;default:Va(a,o,f,z,m,q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var E in p)z=p[E],p.hasOwnProperty(E)&&z!=null&&!m.hasOwnProperty(E)&&Va(a,o,E,null,m,z);for(i in m)if(z=m[i],q=p[i],m.hasOwnProperty(i)&&z!==q&&(z!=null||q!=null))switch(i){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Va(a,o,i,z,m,q)}return;default:if(Z0(o)){for(var sa in p)z=p[sa],p.hasOwnProperty(sa)&&z!==void 0&&!m.hasOwnProperty(sa)&&d3(a,o,sa,void 0,m,z);for(Y in m)z=m[Y],q=p[Y],!m.hasOwnProperty(Y)||z===q||z===void 0&&q===void 0||d3(a,o,Y,z,m,q);return}}for(var ha in p)z=p[ha],p.hasOwnProperty(ha)&&z!=null&&!m.hasOwnProperty(ha)&&Va(a,o,ha,null,m,z);for(X in m)z=m[X],q=p[X],!m.hasOwnProperty(X)||z===q||z==null&&q==null||Va(a,o,X,z,m,q)}function ac(a){switch(a){case"class":return"className";case"for":return"htmlFor";default:return a}}function U3(a){var o={};a=a.style;for(var p=0;p<a.length;p++){var m=a[p];o[m]=a.getPropertyValue(m)}return o}function oc(a,o,p){if(o!=null&&typeof o!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var m,t=m="",r;for(r in o)if(o.hasOwnProperty(r)){var v=o[r];v!=null&&typeof v!=="boolean"&&v!==""&&(r.indexOf("--")===0?(O1(v,r),m+=t+r+":"+(""+v).trim()):typeof v!=="number"||v===0||c8.has(r)?(O1(v,r),m+=t+r.replace(v8,"-$1").toLowerCase().replace(b8,"-ms-")+":"+(""+v).trim()):m+=t+r.replace(v8,"-$1").toLowerCase().replace(b8,"-ms-")+":"+v+"px",t=";")}m=m||null,o=a.getAttribute("style"),o!==m&&(m=Ht(m),Ht(o)!==m&&(p.style=U3(a)))}}function Mp(a,o,p,m,t,r){if(t.delete(p),a=a.getAttribute(p),a===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":return}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(po(m,o),a===""+m)return}Mo(o,a,m,r)}function pc(a,o,p,m,t,r){if(t.delete(p),a=a.getAttribute(p),a===null){switch(typeof m){case"function":case"symbol":return}if(!m)return}else switch(typeof m){case"function":case"symbol":break;default:if(m)return}Mo(o,a,m,r)}function R3(a,o,p,m,t,r){if(t.delete(p),a=a.getAttribute(p),a===null)switch(typeof m){case"undefined":case"function":case"symbol":return}else if(m!=null)switch(typeof m){case"function":case"symbol":break;default:if(po(m,p),a===""+m)return}Mo(o,a,m,r)}function mc(a,o,p,m,t,r){if(t.delete(p),a=a.getAttribute(p),a===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(m))return}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(!isNaN(m)&&(po(m,o),a===""+m))return}Mo(o,a,m,r)}function y3(a,o,p,m,t,r){if(t.delete(p),a=a.getAttribute(p),a===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":return}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(po(m,o),p=G0(""+m),a===p)return}Mo(o,a,m,r)}function tc(a,o,p,m){for(var t={},r=new Set,v=a.attributes,b=0;b<v.length;b++)switch(v[b].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:r.add(v[b].name)}if(Z0(o)){for(var f in p)if(p.hasOwnProperty(f)){var i=p[f];if(i!=null){if(Qr.hasOwnProperty(f))typeof i!=="function"&&Bm(f,i);else if(p.suppressHydrationWarning!==!0)switch(f){case"children":typeof i!=="string"&&typeof i!=="number"||Mo("children",a.textContent,i,t);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":v=a.innerHTML,i=i?i.__html:void 0,i!=null&&(i=sw(a,i),Mo(f,v,i,t));continue;case"style":r.delete(f),oc(a,i,t);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":r.delete(f.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",f);continue;case"className":r.delete("class"),v=Ci(a,"class",i),Mo("className",v,i,t);continue;default:m.context===bt&&o!=="svg"&&o!=="math"?r.delete(f.toLowerCase()):r.delete(f),v=Ci(a,f,i),Mo(f,v,i,t)}}}}else for(i in p)if(p.hasOwnProperty(i)&&(f=p[i],f!=null)){if(Qr.hasOwnProperty(i))typeof f!=="function"&&Bm(i,f);else if(p.suppressHydrationWarning!==!0)switch(i){case"children":typeof f!=="string"&&typeof f!=="number"||Mo("children",a.textContent,f,t);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":v=a.innerHTML,f=f?f.__html:void 0,f!=null&&(f=sw(a,f),v!==f&&(t[i]={__html:v}));continue;case"className":Mp(a,i,"class",f,r,t);continue;case"tabIndex":Mp(a,i,"tabindex",f,r,t);continue;case"style":r.delete(i),oc(a,f,t);continue;case"multiple":r.delete(i),Mo(i,a.multiple,f,t);continue;case"muted":r.delete(i),Mo(i,a.muted,f,t);continue;case"autoFocus":r.delete("autofocus"),Mo(i,a.autofocus,f,t);continue;case"data":if(o!=="object"){r.delete(i),v=a.getAttribute("data"),Mo(i,v,f,t);continue}case"src":case"href":if(!(f!==""||o==="a"&&i==="href"||o==="object"&&i==="data")){i==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',i,i):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',i,i);continue}y3(a,i,i,f,r,t);continue;case"action":case"formAction":if(v=a.getAttribute(i),typeof f==="function"){r.delete(i.toLowerCase()),i==="formAction"?(r.delete("name"),r.delete("formenctype"),r.delete("formmethod"),r.delete("formtarget")):(r.delete("enctype"),r.delete("method"),r.delete("target"));continue}else if(v===OY){r.delete(i.toLowerCase()),Mo(i,"function",f,t);continue}y3(a,i,i.toLowerCase(),f,r,t);continue;case"xlinkHref":y3(a,i,"xlink:href",f,r,t);continue;case"contentEditable":R3(a,i,"contenteditable",f,r,t);continue;case"spellCheck":R3(a,i,"spellcheck",f,r,t);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":R3(a,i,i,f,r,t);continue;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":pc(a,i,i.toLowerCase(),f,r,t);continue;case"capture":case"download":a:{b=a;var Y=v=i,X=t;if(r.delete(Y),b=b.getAttribute(Y),b===null)switch(typeof f){case"undefined":case"function":case"symbol":break a;default:if(f===!1)break a}else if(f!=null)switch(typeof f){case"function":case"symbol":break;case"boolean":if(f===!0&&b==="")break a;break;default:if(po(f,v),b===""+f)break a}Mo(v,b,f,X)}continue;case"cols":case"rows":case"size":case"span":a:{if(b=a,Y=v=i,X=t,r.delete(Y),b=b.getAttribute(Y),b===null)switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":break a;default:if(isNaN(f)||1>f)break a}else if(f!=null)switch(typeof f){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(f)||1>f)&&(po(f,v),b===""+f))break a}Mo(v,b,f,X)}continue;case"rowSpan":mc(a,i,"rowspan",f,r,t);continue;case"start":mc(a,i,i,f,r,t);continue;case"xHeight":Mp(a,i,"x-height",f,r,t);continue;case"xlinkActuate":Mp(a,i,"xlink:actuate",f,r,t);continue;case"xlinkArcrole":Mp(a,i,"xlink:arcrole",f,r,t);continue;case"xlinkRole":Mp(a,i,"xlink:role",f,r,t);continue;case"xlinkShow":Mp(a,i,"xlink:show",f,r,t);continue;case"xlinkTitle":Mp(a,i,"xlink:title",f,r,t);continue;case"xlinkType":Mp(a,i,"xlink:type",f,r,t);continue;case"xmlBase":Mp(a,i,"xml:base",f,r,t);continue;case"xmlLang":Mp(a,i,"xml:lang",f,r,t);continue;case"xmlSpace":Mp(a,i,"xml:space",f,r,t);continue;case"inert":f!==""||r1[i]||(r1[i]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",i)),pc(a,i,i,f,r,t);continue;default:if(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N"){b=r7(i),v=!1,m.context===bt&&o!=="svg"&&o!=="math"?r.delete(b.toLowerCase()):(Y=i.toLowerCase(),Y=Xb.hasOwnProperty(Y)?Xb[Y]||null:null,Y!==null&&Y!==i&&(v=!0,r.delete(Y)),r.delete(b));a:if(Y=a,X=b,b=f,F1(X))if(Y.hasAttribute(X))Y=Y.getAttribute(X),po(b,X),b=Y===""+b?b:Y;else{switch(typeof b){case"function":case"symbol":break a;case"boolean":if(Y=X.toLowerCase().slice(0,5),Y!=="data-"&&Y!=="aria-")break a}b=b===void 0?void 0:null}else b=void 0;v||Mo(i,b,f,t)}}}return 0<r.size&&p.suppressHydrationWarning!==!0&&X$(a,r,t),Object.keys(t).length===0?null:t}function G$(a,o){switch(a.length){case 0:return"";case 1:return a[0];case 2:return a[0]+" "+o+" "+a[1];default:return a.slice(0,-1).join(", ")+", "+o+" "+a[a.length-1]}}function rc(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _$(){if(typeof performance.getEntriesByType==="function"){for(var a=0,o=0,p=performance.getEntriesByType("resource"),m=0;m<p.length;m++){var t=p[m],r=t.transferSize,v=t.initiatorType,b=t.duration;if(r&&b&&rc(v)){v=0,b=t.responseEnd;for(m+=1;m<p.length;m++){var f=p[m],i=f.startTime;if(i>b)break;var{transferSize:Y,initiatorType:X}=f;Y&&rc(X)&&(f=f.responseEnd,v+=Y*(f<b?1:(b-i)/(f-i)))}if(--m,o+=8*(r+v)/(t.duration/1000),a++,10<a)break}}if(0<a)return o/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a==="number")?a:5}function e2(a){return a.nodeType===9?a:a.ownerDocument}function vc(a){switch(a){case Kv:return a0;case Yb:return b1;default:return bt}}function bc(a,o){if(a===bt)switch(o){case"svg":return a0;case"math":return b1;default:return bt}return a===a0&&o==="foreignObject"?bt:a}function O3(a,o){return a==="textarea"||a==="noscript"||typeof o.children==="string"||typeof o.children==="number"||typeof o.children==="bigint"||typeof o.dangerouslySetInnerHTML==="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}function q$(){var a=window.event;if(a&&a.type==="popstate"){if(a===$i)return!1;return $i=a,!0}return $i=null,!1}function n0(){var a=window.event;return a&&a!==P5?a.type:null}function S0(){var a=window.event;return a&&a!==P5?a.timeStamp:-1.1}function Q$(a){setTimeout(function(){throw a})}function B$(a,o,p){switch(o){case"button":case"input":case"select":case"textarea":p.autoFocus&&a.focus();break;case"img":p.src?a.src=p.src:p.srcSet&&(a.srcset=p.srcSet)}}function K$(){}function H$(a,o,p,m){Z$(a,o,p,m),a[ap]=m}function fc(a){X0(a,"")}function W$(a,o,p){a.nodeValue=p}function ic(a){if(!a.__reactWarnedAboutChildrenConflict){var o=a[ap]||null;if(o!==null){var p=$t(a);p!==null&&(typeof o.children==="string"||typeof o.children==="number"?(a.__reactWarnedAboutChildrenConflict=!0,k(p,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):o.dangerouslySetInnerHTML!=null&&(a.__reactWarnedAboutChildrenConflict=!0,k(p,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Wt(a){return a==="head"}function d$(a,o){a.removeChild(o)}function U$(a,o){(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).removeChild(o)}function wc(a,o){var p=o,m=0;do{var t=p.nextSibling;if(a.removeChild(p),t&&t.nodeType===8)if(p=t.data,p===C5||p===v1){if(m===0){a.removeChild(t),Zv(o);return}m--}else if(p===F5||p===jt||p===Ir||p===ev||p===Pr)m++;else if(p===hY)u0(a.ownerDocument.documentElement);else if(p===NY){p=a.ownerDocument.head,u0(p);for(var r=p.firstChild;r;){var{nextSibling:v,nodeName:b}=r;r[e0]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&r.rel.toLowerCase()==="stylesheet"||p.removeChild(r),r=v}}else p===kY&&u0(a.ownerDocument.body);p=t}while(p);Zv(o)}function cc(a,o){var p=a;a=0;do{var m=p.nextSibling;if(p.nodeType===1?o?(p._stashedDisplay=p.style.display,p.style.display="none"):(p.style.display=p._stashedDisplay||"",p.getAttribute("style")===""&&p.removeAttribute("style")):p.nodeType===3&&(o?(p._stashedText=p.nodeValue,p.nodeValue=""):p.nodeValue=p._stashedText||""),m&&m.nodeType===8)if(p=m.data,p===C5)if(a===0)break;else a--;else p!==F5&&p!==jt&&p!==Ir&&p!==ev||a++;p=m}while(p)}function R$(a){cc(a,!0)}function y$(a){a=a.style,typeof a.setProperty==="function"?a.setProperty("display","none","important"):a.display="none"}function O$(a){a.nodeValue=""}function L$(a){cc(a,!1)}function h$(a,o){o=o[MY],o=o!==void 0&&o!==null&&o.hasOwnProperty("display")?o.display:null,a.style.display=o==null||typeof o==="boolean"?"":(""+o).trim()}function k$(a,o){a.nodeValue=o}function L3(a){var o=a.firstChild;o&&o.nodeType===10&&(o=o.nextSibling);for(;o;){var p=o;switch(o=o.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":L3(p),g1(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}a.removeChild(p)}}function N$(a,o,p,m){for(;a.nodeType===1;){var t=p;if(a.nodeName.toLowerCase()!==o.toLowerCase()){if(!m&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(!m)if(o==="input"&&a.type==="hidden"){po(t.name,"name");var r=t.name==null?null:""+t.name;if(t.type==="hidden"&&a.getAttribute("name")===r)return a}else return a;else if(!a[e0])switch(o){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(r=a.getAttribute("rel"),r==="stylesheet"&&a.hasAttribute("data-precedence"))break;else if(r!==t.rel||a.getAttribute("href")!==(t.href==null||t.href===""?null:t.href)||a.getAttribute("crossorigin")!==(t.crossOrigin==null?null:t.crossOrigin)||a.getAttribute("title")!==(t.title==null?null:t.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(r=a.getAttribute("src"),(r!==(t.src==null?null:t.src)||a.getAttribute("type")!==(t.type==null?null:t.type)||a.getAttribute("crossorigin")!==(t.crossOrigin==null?null:t.crossOrigin))&&r&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}if(a=Kp(a.nextSibling),a===null)break}return null}function M$(a,o,p){if(o==="")return null;for(;a.nodeType!==3;){if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!p)return null;if(a=Kp(a.nextSibling),a===null)return null}return a}function lc(a,o){for(;a.nodeType!==8;){if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o)return null;if(a=Kp(a.nextSibling),a===null)return null}return a}function h3(a){return a.data===jt||a.data===Ir}function k3(a){return a.data===ev||a.data===jt&&a.ownerDocument.readyState!==o9}function g$(a,o){var p=a.ownerDocument;if(a.data===Ir)a._reactRetry=o;else if(a.data!==jt||p.readyState!==o9)o();else{var m=function(){o(),p.removeEventListener("DOMContentLoaded",m)};p.addEventListener("DOMContentLoaded",m),a._reactRetry=m}}function Kp(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o===F5||o===ev||o===jt||o===Ir||o===Pr||o===ci||o===a9)break;if(o===C5||o===v1)return null}}return a}function zc(a){if(a.nodeType===1){for(var o=a.nodeName.toLowerCase(),p={},m=a.attributes,t=0;t<m.length;t++){var r=m[t];p[ac(r.name)]=r.name.toLowerCase()==="style"?U3(a):r.value}return{type:o,props:p}}return a.nodeType===8?a.data===Pr?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:a.nodeValue}function $c(a,o,p){return p===null||p[LY]!==!0?(a.nodeValue===o?a=null:(o=Ht(o),a=Ht(a.nodeValue)===o?null:a.nodeValue),a):null}function N3(a){a=a.nextSibling;for(var o=0;a;){if(a.nodeType===8){var p=a.data;if(p===C5||p===v1){if(o===0)return Kp(a.nextSibling);o--}else p!==F5&&p!==ev&&p!==jt&&p!==Ir&&p!==Pr||o++}a=a.nextSibling}return null}function Jc(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var p=a.data;if(p===F5||p===ev||p===jt||p===Ir||p===Pr){if(o===0)return a;o--}else p!==C5&&p!==v1||o++}a=a.previousSibling}return null}function F$(a){Zv(a)}function C$(a){Zv(a)}function P$(a){Zv(a)}function Yc(a,o,p,m,t){switch(t&&u1(a,m.ancestorInfo),o=e2(p),a){case"html":if(a=o.documentElement,!a)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return a;case"head":if(a=o.head,!a)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return a;case"body":if(a=o.body,!a)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return a;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function I$(a,o,p,m){if(!p[yt]&&$t(p)){var t=p.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",t,t,t)}switch(a){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(t=p.attributes;t.length;)p.removeAttributeNode(t[0]);To(p,a,o),p[no]=m,p[ap]=o}function u0(a){for(var o=a.attributes;o.length;)a.removeAttributeNode(o[0]);g1(a)}function ab(a){return typeof a.getRootNode==="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}function Xc(a,o,p){var m=o0;if(m&&typeof o==="string"&&o){var t=Np(o);t='link[rel="'+a+'"][href="'+t+'"]',typeof p==="string"&&(t+='[crossorigin="'+p+'"]'),b9.has(t)||(b9.add(t),a={rel:a,crossOrigin:p,href:o},m.querySelector(t)===null&&(o=m.createElement("link"),To(o,"link",a),No(o),m.head.appendChild(o)))}}function Zc(a,o,p,m){var t=(t=Ut.current)?ab(t):null;if(!t)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(a){case"meta":case"title":return null;case"style":return typeof p.precedence==="string"&&typeof p.href==="string"?(p=Yv(p.href),o=sr(t).hoistableStyles,m=o.get(p),m||(m={type:"style",instance:null,count:0,state:null},o.set(p,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href==="string"&&typeof p.precedence==="string"){a=Yv(p.href);var r=sr(t).hoistableStyles,v=r.get(a);if(!v&&(t=t.ownerDocument||t,v={type:"stylesheet",instance:null,count:0,state:{loading:Tr,preload:null}},r.set(a,v),(r=t.querySelector(x0(a)))&&!r._p&&(v.instance=r,v.state.loading=I5|xp),!Vp.has(a))){var b={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy};Vp.set(a,b),r||A$(t,a,b,v.state)}if(o&&m===null)throw p=`
|
|
161
|
+
|
|
162
|
+
- `+ob(o)+`
|
|
163
|
+
+ `+ob(p),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+p);return v}if(o&&m!==null)throw p=`
|
|
164
|
+
|
|
165
|
+
- `+ob(o)+`
|
|
166
|
+
+ `+ob(p),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+p);return null;case"script":return o=p.async,p=p.src,typeof p==="string"&&o&&typeof o!=="function"&&typeof o!=="symbol"?(p=Xv(p),o=sr(t).hoistableScripts,m=o.get(p),m||(m={type:"script",instance:null,count:0,state:null},o.set(p,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+a+'". this is a bug in React.')}}function ob(a){var o=0,p="<link";return typeof a.rel==="string"?(o++,p+=' rel="'+a.rel+'"'):am.call(a,"rel")&&(o++,p+=' rel="'+(a.rel===null?"null":"invalid type "+typeof a.rel)+'"'),typeof a.href==="string"?(o++,p+=' href="'+a.href+'"'):am.call(a,"href")&&(o++,p+=' href="'+(a.href===null?"null":"invalid type "+typeof a.href)+'"'),typeof a.precedence==="string"?(o++,p+=' precedence="'+a.precedence+'"'):am.call(a,"precedence")&&(o++,p+=" precedence={"+(a.precedence===null?"null":"invalid type "+typeof a.precedence)+"}"),Object.getOwnPropertyNames(a).length>o&&(p+=" ..."),p+" />"}function Yv(a){return'href="'+Np(a)+'"'}function x0(a){return'link[rel="stylesheet"]['+a+"]"}function Gc(a){return da({},a,{"data-precedence":a.precedence,precedence:null})}function A$(a,o,p,m){a.querySelector('link[rel="preload"][as="style"]['+o+"]")?m.loading=I5:(o=a.createElement("link"),m.preload=o,o.addEventListener("load",function(){return m.loading|=I5}),o.addEventListener("error",function(){return m.loading|=r9}),To(o,"link",p),No(o),a.head.appendChild(o))}function Xv(a){return'[src="'+Np(a)+'"]'}function V0(a){return"script[async]"+a}function _c(a,o,p){if(o.count++,o.instance===null)switch(o.type){case"style":var m=a.querySelector('style[data-href~="'+Np(p.href)+'"]');if(m)return o.instance=m,No(m),m;var t=da({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return m=(a.ownerDocument||a).createElement("style"),No(m),To(m,"style",t),pb(m,p.precedence,a),o.instance=m;case"stylesheet":t=Yv(p.href);var r=a.querySelector(x0(t));if(r)return o.state.loading|=xp,o.instance=r,No(r),r;m=Gc(p),(t=Vp.get(t))&&M3(m,t),r=(a.ownerDocument||a).createElement("link"),No(r);var v=r;return v._p=new Promise(function(b,f){v.onload=b,v.onerror=f}),To(r,"link",m),o.state.loading|=xp,pb(r,p.precedence,a),o.instance=r;case"script":if(r=Xv(p.src),t=a.querySelector(V0(r)))return o.instance=t,No(t),t;if(m=p,t=Vp.get(r))m=da({},p),g3(m,t);return a=a.ownerDocument||a,t=a.createElement("script"),No(t),To(t,"link",m),a.head.appendChild(t),o.instance=t;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+o.type+'". this is a bug in React.')}else o.type==="stylesheet"&&(o.state.loading&xp)===Tr&&(m=o.instance,o.state.loading|=xp,pb(m,p.precedence,a));return o.instance}function pb(a,o,p){for(var m=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),t=m.length?m[m.length-1]:null,r=t,v=0;v<m.length;v++){var b=m[v];if(b.dataset.precedence===o)r=b;else if(r!==t)break}r?r.parentNode.insertBefore(a,r.nextSibling):(o=p.nodeType===9?p.head:p,o.insertBefore(a,o.firstChild))}function M3(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.title==null&&(a.title=o.title)}function g3(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.integrity==null&&(a.integrity=o.integrity)}function qc(a,o,p){if(f1===null){var m=new Map,t=f1=new Map;t.set(p,m)}else t=f1,m=t.get(p),m||(m=new Map,t.set(p,m));if(m.has(a))return m;m.set(a,null),p=p.getElementsByTagName(a);for(t=0;t<p.length;t++){var r=p[t];if(!(r[e0]||r[no]||a==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!==Kv){var v=r.getAttribute(o)||"";v=a+v;var b=m.get(v);b?b.push(r):m.set(v,[r])}}return m}function Qc(a,o,p){a=a.ownerDocument||a,a.head.insertBefore(p,o==="title"?a.querySelector("head > title"):null)}function T$(a,o,p){var m=!p.ancestorInfo.containerTagInScope;if(p.context===a0||o.itemProp!=null)return!m||o.itemProp==null||a!=="meta"&&a!=="title"&&a!=="style"&&a!=="link"&&a!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",a,a),!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof o.precedence!=="string"||typeof o.href!=="string"||o.href===""){m&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof o.rel!=="string"||typeof o.href!=="string"||o.href===""||o.onLoad||o.onError){if(o.rel==="stylesheet"&&typeof o.precedence==="string"){a=o.href;var{onError:t,disabled:r}=o;p=[],o.onLoad&&p.push("`onLoad`"),t&&p.push("`onError`"),r!=null&&p.push("`disabled`"),t=G$(p,"and"),t+=p.length===1?" prop":" props",r=p.length===1?"an "+t:"the "+t,p.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',a,r,t)}m&&(typeof o.rel!=="string"||typeof o.href!=="string"||o.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(o.onError||o.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(o.rel){case"stylesheet":return a=o.precedence,o=o.disabled,typeof a!=="string"&&m&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof a==="string"&&o==null;default:return!0}case"script":if(a=o.async&&typeof o.async!=="function"&&typeof o.async!=="symbol",!a||o.onLoad||o.onError||!o.src||typeof o.src!=="string"){m&&(a?o.onLoad||o.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":m&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",a)}return!1}function Bc(a){return a.type==="stylesheet"&&(a.state.loading&v9)===Tr?!1:!0}function n$(a,o,p,m){if(p.type==="stylesheet"&&(typeof m.media!=="string"||matchMedia(m.media).matches!==!1)&&(p.state.loading&xp)===Tr){if(p.instance===null){var t=Yv(m.href),r=o.querySelector(x0(t));if(r){o=r._p,o!==null&&typeof o==="object"&&typeof o.then==="function"&&(a.count++,a=mb.bind(a),o.then(a,a)),p.state.loading|=xp,p.instance=r,No(r);return}r=o.ownerDocument||o,m=Gc(m),(t=Vp.get(t))&&M3(m,t),r=r.createElement("link"),No(r);var v=r;v._p=new Promise(function(b,f){v.onload=b,v.onerror=f}),To(r,"link",m),p.instance=r}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(p,o),(o=p.state.preload)&&(p.state.loading&v9)===Tr&&(a.count++,p=mb.bind(a),o.addEventListener("load",p),o.addEventListener("error",p))}}function S$(a,o){return a.stylesheets&&a.count===0&&tb(a,a.stylesheets),0<a.count||0<a.imgCount?function(p){var m=setTimeout(function(){if(a.stylesheets&&tb(a,a.stylesheets),a.unsuspend){var r=a.unsuspend;a.unsuspend=null,r()}},CY+o);0<a.imgBytes&&Yi===0&&(Yi=125*_$()*IY);var t=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&tb(a,a.stylesheets),a.unsuspend)){var r=a.unsuspend;a.unsuspend=null,r()}},(a.imgBytes>Yi?50:PY)+o);return a.unsuspend=p,function(){a.unsuspend=null,clearTimeout(m),clearTimeout(t)}}:null}function mb(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)tb(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}function tb(a,o){a.stylesheets=null,a.unsuspend!==null&&(a.count++,i1=new Map,o.forEach(u$,a),i1=null,mb.call(a))}function u$(a,o){if(!(o.state.loading&xp)){var p=i1.get(a);if(p)var m=p.get(Xi);else{p=new Map,i1.set(a,p);for(var t=a.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<t.length;r++){var v=t[r];if(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")p.set(v.dataset.precedence,v),m=v}m&&p.set(Xi,m)}t=o.instance,v=t.getAttribute("data-precedence"),r=p.get(v)||m,r===m&&p.set(Xi,t),p.set(v,t),this.count++,m=mb.bind(this),t.addEventListener("load",m),t.addEventListener("error",m),r?r.parentNode.insertBefore(t,r.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(t,a.firstChild)),o.state.loading|=xp}}function x$(a,o,p,m,t,r,v,b,f){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ar,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=k1(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=k1(0),this.hiddenUpdates=k1(null),this.identifierPrefix=m,this.onUncaughtError=t,this.onCaughtError=r,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=f,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,a=this.pendingUpdatersLaneMap=[];for(o=0;31>o;o++)a.push(new Set);this._debugRootType=p?"hydrateRoot()":"createRoot()"}function Kc(a,o,p,m,t,r,v,b,f,i,Y,X){return a=new x$(a,o,p,v,f,i,Y,X,b),o=lY,r===!0&&(o|=jo|pm),o|=Qa,r=M(3,null,null,o),a.current=r,r.stateNode=a,o=c4(),Jr(o),a.pooledCache=o,Jr(o),r.memoizedState={element:m,isDehydrated:p,cache:o},Y4(r),a}function Hc(a){if(!a)return kt;return a=kt,a}function F3(a,o,p,m,t,r){if(Do&&typeof Do.onScheduleFiberRoot==="function")try{Do.onScheduleFiberRoot(Qv,m,p)}catch(v){dm||(dm=!0,console.error("React instrumentation encountered an error: %o",v))}t=Hc(t),m.context===null?m.context=t:m.pendingContext=t,Wm&&Wp!==null&&!c9&&(c9=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
167
|
+
|
|
168
|
+
Check the render method of %s.`,O(Wp)||"Unknown")),m=Gt(o),m.payload={element:p},r=r===void 0?null:r,r!==null&&(typeof r!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",r),m.callback=r),p=_t(a,m,o),p!==null&&(cm(o,"root.render()",null),Jo(p,a,o),U0(p,a,o))}function Wc(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var p=a.retryLane;a.retryLane=p!==0&&p<o?p:o}}function C3(a,o){Wc(a,o),(a=a.alternate)&&Wc(a,o)}function dc(a){if(a.tag===13||a.tag===31){var o=Vo(a,67108864);o!==null&&Jo(o,a,67108864),C3(a,67108864)}}function Uc(a){if(a.tag===13||a.tag===31){var o=Bp(a);o=N1(o);var p=Vo(a,o);p!==null&&Jo(p,a,o),C3(a,o)}}function V$(){return Wp}function D$(a,o,p,m){var t=B.T;B.T=null;var r=Pa.p;try{Pa.p=dp,P3(a,o,p,m)}finally{Pa.p=r,B.T=t}}function j$(a,o,p,m){var t=B.T;B.T=null;var r=Pa.p;try{Pa.p=om,P3(a,o,p,m)}finally{Pa.p=r,B.T=t}}function P3(a,o,p,m){if(c1){var t=I3(m);if(t===null)H3(a,o,m,l1,p),yc(a,m);else if(E$(t,a,o,p,m))m.stopPropagation();else if(yc(a,m),o&4&&-1<TY.indexOf(a)){for(;t!==null;){var r=$t(t);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var v=rr(r.pendingLanes);if(v!==0){var b=r;b.pendingLanes|=2;for(b.entangledLanes|=2;v;){var f=1<<31-eo(v);b.entanglements[1]|=f,v&=~f}Qm(r),(ka&(ho|Op))===Po&&(Vb=go()+Cl,A0(0,!1))}}break;case 31:case 13:b=Vo(r,2),b!==null&&Jo(b,r,2),zv(),C3(r,2)}if(r=I3(m),r===null&&H3(a,o,m,l1,p),r===t)break;t=r}t!==null&&m.stopPropagation()}else H3(a,o,m,null,p)}}function I3(a){return a=x1(a),A3(a)}function A3(a){if(l1=null,a=Er(a),a!==null){var o=_a(a);if(o===null)a=null;else{var p=o.tag;if(p===13){if(a=oa(o),a!==null)return a;a=null}else if(p===31){if(a=ia(o),a!==null)return a;a=null}else if(p===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return l1=a,null}function Rc(a){switch(a){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 dp;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 om;case"message":switch(vJ()){case of:return dp;case pf:return om;case qv:case bJ:return Rm;case mf:return $b;default:return Rm}default:return Rm}}function yc(a,o){switch(a){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":et=null;break;case"pointerover":case"pointerout":T5.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":n5.delete(o.pointerId)}}function D0(a,o,p,m,t,r){if(a===null||a.nativeEvent!==r)return a={blockedOn:o,domEventName:p,eventSystemFlags:m,nativeEvent:r,targetContainers:[t]},o!==null&&(o=$t(o),o!==null&&dc(o)),a;return a.eventSystemFlags|=m,o=a.targetContainers,t!==null&&o.indexOf(t)===-1&&o.push(t),a}function E$(a,o,p,m,t){switch(o){case"focusin":return Et=D0(Et,a,o,p,m,t),!0;case"dragenter":return st=D0(st,a,o,p,m,t),!0;case"mouseover":return et=D0(et,a,o,p,m,t),!0;case"pointerover":var r=t.pointerId;return T5.set(r,D0(T5.get(r)||null,a,o,p,m,t)),!0;case"gotpointercapture":return r=t.pointerId,n5.set(r,D0(n5.get(r)||null,a,o,p,m,t)),!0}return!1}function Oc(a){var o=Er(a.target);if(o!==null){var p=_a(o);if(p!==null){if(o=p.tag,o===13){if(o=oa(p),o!==null){a.blockedOn=o,Fi(a.priority,function(){Uc(p)});return}}else if(o===31){if(o=ia(p),o!==null){a.blockedOn=o,Fi(a.priority,function(){Uc(p)});return}}else if(o===3&&p.stateNode.current.memoizedState.isDehydrated){a.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}a.blockedOn=null}function rb(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var p=I3(a.nativeEvent);if(p===null){p=a.nativeEvent;var m=new p.constructor(p.type,p),t=m;a5!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),a5=t,p.target.dispatchEvent(m),a5===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),a5=null}else return o=$t(p),o!==null&&dc(o),a.blockedOn=p,!1;o.shift()}return!0}function Lc(a,o,p){rb(a)&&p.delete(o)}function s$(){Zi=!1,Et!==null&&rb(Et)&&(Et=null),st!==null&&rb(st)&&(st=null),et!==null&&rb(et)&&(et=null),T5.forEach(Lc),n5.forEach(Lc)}function vb(a,o){a.blockedOn===o&&(a.blockedOn=null,Zi||(Zi=!0,Ma.unstable_scheduleCallback(Ma.unstable_NormalPriority,s$)))}function hc(a){z1!==a&&(z1=a,Ma.unstable_scheduleCallback(Ma.unstable_NormalPriority,function(){z1===a&&(z1=null);for(var o=0;o<a.length;o+=3){var p=a[o],m=a[o+1],t=a[o+2];if(typeof m!=="function")if(A3(m||p)===null)continue;else break;var r=$t(p);r!==null&&(a.splice(o,3),o-=3,p={pending:!0,data:t,method:p.method,action:m},Object.freeze(p),A4(r,p,m,t))}}))}function Zv(a){function o(f){return vb(f,a)}Et!==null&&vb(Et,a),st!==null&&vb(st,a),et!==null&&vb(et,a),T5.forEach(o),n5.forEach(o);for(var p=0;p<ar.length;p++){var m=ar[p];m.blockedOn===a&&(m.blockedOn=null)}for(;0<ar.length&&(p=ar[0],p.blockedOn===null);)Oc(p),p.blockedOn===null&&ar.shift();if(p=(a.ownerDocument||a).$$reactFormReplay,p!=null)for(m=0;m<p.length;m+=3){var t=p[m],r=p[m+1],v=t[ap]||null;if(typeof r==="function")v||hc(p);else if(v){var b=null;if(r&&r.hasAttribute("formAction")){if(t=r,v=r[ap]||null)b=v.formAction;else if(A3(t)!==null)continue}else b=v.action;typeof b==="function"?p[m+1]=b:(p.splice(m,3),m-=3),hc(p)}}}function kc(){function a(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(v){return t=v})},focusReset:"manual",scroll:"manual"})}function o(){t!==null&&(t(),t=null),m||setTimeout(p,20)}function p(){if(!m&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var m=!1,t=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(p,100),function(){m=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),t!==null&&(t(),t=null)}}}function T3(a){this._internalRoot=a}function bb(a){this._internalRoot=a}function Nc(a){a[yt]&&(a._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var da=Object.assign,e$=Symbol.for("react.element"),Km=Symbol.for("react.transitional.element"),Gv=Symbol.for("react.portal"),_v=Symbol.for("react.fragment"),fb=Symbol.for("react.strict_mode"),n3=Symbol.for("react.profiler"),S3=Symbol.for("react.consumer"),Hm=Symbol.for("react.context"),j0=Symbol.for("react.forward_ref"),u3=Symbol.for("react.suspense"),x3=Symbol.for("react.suspense_list"),ib=Symbol.for("react.memo"),Hp=Symbol.for("react.lazy"),V3=Symbol.for("react.activity"),aJ=Symbol.for("react.memo_cache_sentinel"),Mc=Symbol.iterator,oJ=Symbol.for("react.client.reference"),Oo=Array.isArray,B=p0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Pa=_i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pJ=Object.freeze({pending:!1,data:null,method:null,action:null}),D3=[],j3=[],xm=-1,dt=ta(null),E0=ta(null),Ut=ta(null),wb=ta(null),s0=0,gc,Fc,Cc,Pc,Ic,Ac,Tc;xo.__reactDisabledLog=!0;var E3,nc,s3=!1,e3=new(typeof WeakMap==="function"?WeakMap:Map),Wp=null,Wm=!1,am=Object.prototype.hasOwnProperty,af=Ma.unstable_scheduleCallback,mJ=Ma.unstable_cancelCallback,tJ=Ma.unstable_shouldYield,rJ=Ma.unstable_requestPaint,go=Ma.unstable_now,vJ=Ma.unstable_getCurrentPriorityLevel,of=Ma.unstable_ImmediatePriority,pf=Ma.unstable_UserBlockingPriority,qv=Ma.unstable_NormalPriority,bJ=Ma.unstable_LowPriority,mf=Ma.unstable_IdlePriority,fJ=Ma.log,iJ=Ma.unstable_setDisableYieldValue,Qv=null,Do=null,dm=!1,Um=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",eo=Math.clz32?Math.clz32:fz,wJ=Math.log,cJ=Math.LN2,cb=256,lb=262144,zb=4194304,dp=2,om=8,Rm=32,$b=268435456,Rt=Math.random().toString(36).slice(2),no="__reactFiber$"+Rt,ap="__reactProps$"+Rt,yt="__reactContainer$"+Rt,tf="__reactEvents$"+Rt,lJ="__reactListeners$"+Rt,zJ="__reactHandles$"+Rt,Sc="__reactResources$"+Rt,e0="__reactMarker$"+Rt,uc=new Set,Qr={},rf={},$J={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},JJ=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]*$"),xc={},Vc={},YJ=/[\n"\\]/g,Dc=!1,jc=!1,Ec=!1,sc=!1,ec=!1,a8=!1,o8=["value","defaultValue"],p8=!1,m8=/["'&<>\n\t]|^\s|\s$/,XJ="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),t8="applet caption html table td th marquee object template foreignObject desc title".split(" "),ZJ=t8.concat(["button"]),GJ="dd dt li option optgroup p rp rt".split(" "),r8={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Jb={},vf={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},v8=/([A-Z])/g,b8=/^ms-/,_J=/^(?:webkit|moz|o)[A-Z]/,qJ=/^-ms-/,QJ=/-(.)/g,f8=/;\s*$/,Bv={},bf={},i8=!1,w8=!1,c8=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(" ")),Yb="http://www.w3.org/1998/Math/MathML",Kv="http://www.w3.org/2000/svg",BJ=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"]]),Xb={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},l8={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Hv={},KJ=RegExp("^(aria)-[: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]*$"),HJ=RegExp("^(aria)[A-Z][: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]*$"),z8=!1,op={},$8=/^on./,WJ=/^on[^A-Z]/,dJ=RegExp("^(aria)-[: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]*$"),UJ=RegExp("^(aria)[A-Z][: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]*$"),RJ=/^[\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,a5=null,Wv=null,dv=null,ff=!1,ym=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wf=!1;if(ym)try{var o5={};Object.defineProperty(o5,"passive",{get:function(){wf=!0}}),window.addEventListener("test",o5,o5),window.removeEventListener("test",o5,o5)}catch(a){wf=!1}var Ot=null,cf=null,Zb=null,Br={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gb=fp(Br),p5=da({},Br,{view:0,detail:0}),yJ=fp(p5),lf,zf,m5,_b=da({},p5,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:V1,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){if("movementX"in a)return a.movementX;return a!==m5&&(m5&&a.type==="mousemove"?(lf=a.screenX-m5.screenX,zf=a.screenY-m5.screenY):zf=lf=0,m5=a),lf},movementY:function(a){return"movementY"in a?a.movementY:zf}}),J8=fp(_b),OJ=da({},_b,{dataTransfer:0}),LJ=fp(OJ),hJ=da({},p5,{relatedTarget:0}),$f=fp(hJ),kJ=da({},Br,{animationName:0,elapsedTime:0,pseudoElement:0}),NJ=fp(kJ),MJ=da({},Br,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),gJ=fp(MJ),FJ=da({},Br,{data:0}),Y8=fp(FJ),CJ=Y8,PJ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},IJ={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"},AJ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},TJ=da({},p5,{key:function(a){if(a.key){var o=PJ[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=r2(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?IJ[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:V1,charCode:function(a){return a.type==="keypress"?r2(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?r2(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),nJ=fp(TJ),SJ=da({},_b,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),X8=fp(SJ),uJ=da({},p5,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:V1}),xJ=fp(uJ),VJ=da({},Br,{propertyName:0,elapsedTime:0,pseudoElement:0}),DJ=fp(VJ),jJ=da({},_b,{deltaX:function(a){return"deltaX"in a?a.deltaX:("wheelDeltaX"in a)?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:("wheelDeltaY"in a)?-a.wheelDeltaY:("wheelDelta"in a)?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),EJ=fp(jJ),sJ=da({},Br,{newState:0,oldState:0}),eJ=fp(sJ),aY=[9,13,27,32],Z8=229,Jf=ym&&"CompositionEvent"in window,t5=null;ym&&"documentMode"in document&&(t5=document.documentMode);var oY=ym&&"TextEvent"in window&&!t5,G8=ym&&(!Jf||t5&&8<t5&&11>=t5),_8=32,q8=String.fromCharCode(_8),Q8=!1,Uv=!1,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},r5=null,v5=null,B8=!1;ym&&(B8=Bz("input")&&(!document.documentMode||9<document.documentMode));var pp=typeof Object.is==="function"?Object.is:Rz,mY=ym&&"documentMode"in document&&11>=document.documentMode,Rv=null,Yf=null,b5=null,Xf=!1,yv={animationend:fr("Animation","AnimationEnd"),animationiteration:fr("Animation","AnimationIteration"),animationstart:fr("Animation","AnimationStart"),transitionrun:fr("Transition","TransitionRun"),transitionstart:fr("Transition","TransitionStart"),transitioncancel:fr("Transition","TransitionCancel"),transitionend:fr("Transition","TransitionEnd")},Zf={},K8={};ym&&(K8=document.createElement("div").style,("AnimationEvent"in window)||(delete yv.animationend.animation,delete yv.animationiteration.animation,delete yv.animationstart.animation),("TransitionEvent"in window)||delete yv.transitionend.transition);var H8=ir("animationend"),W8=ir("animationiteration"),d8=ir("animationstart"),tY=ir("transitionrun"),rY=ir("transitionstart"),vY=ir("transitioncancel"),U8=ir("transitionend"),R8=new Map,Gf="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(" ");Gf.push("scrollEnd");var y8=0;if(typeof performance==="object"&&typeof performance.now==="function")var bY=performance,O8=function(){return bY.now()};else{var fY=Date;O8=function(){return fY.now()}}var _f=typeof reportError==="function"?reportError:function(a){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a==="object"&&a!==null&&typeof a.message==="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(o))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",a);return}console.error(a)},iY="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",qb=0,qf=1,Qf=2,Bf=3,Qb="– ",Bb="+ ",L8=" ",mo=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",gp="Components ⚛",Ua="Scheduler ⚛",Ra="Blocking",Lt=!1,Vm={color:"primary",properties:null,tooltipText:"",track:gp},ht={start:-0,end:-0,detail:{devtools:Vm}},wY=["Changed Props",""],h8="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",cY=["Changed Props",h8],f5=1,Dm=2,Fp=[],Ov=0,Kf=0,kt={};Object.freeze(kt);var Cp=null,Lv=null,la=0,lY=1,Qa=2,jo=8,pm=16,zY=32,k8=!1;try{var N8=Object.preventExtensions({})}catch(a){k8=!0}var Hf=new WeakMap,hv=[],kv=0,Kb=null,i5=0,Pp=[],Ip=0,Kr=null,jm=1,Em="",So=null,to=null,ya=!1,Om=!1,Up=null,Nt=null,Ap=!1,Wf=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),df=ta(null),Uf=ta(null),M8={},Hb=null,Nv=null,Mv=!1,$Y=typeof AbortController<"u"?AbortController:function(){var a=[],o=this.signal={aborted:!1,addEventListener:function(p,m){a.push(m)}};this.abort=function(){o.aborted=!0,a.forEach(function(p){return p()})}},JY=Ma.unstable_scheduleCallback,YY=Ma.unstable_NormalPriority,Qo={$$typeof:Hm,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Bo=Ma.unstable_now,Wb=console.createTask?console.createTask:function(){return null},w5=1,db=2,Fo=-0,Mt=-0,sm=-0,em=null,mp=-1.1,Hr=-0,lo=-0,ba=-1.1,wa=-1.1,io=null,Yo=!1,gt=-0,Lm=-1.1,c5=null,Ft=0,Rf=null,yf=null,Wr=-1.1,l5=null,gv=-1.1,Ub=-1.1,hm=-0,at=-1.1,Tp=-1.1,Of=0,z5=null,g8=null,F8=null,Ct=-1.1,dr=null,Pt=-1.1,Rb=-1.1,C8=-0,P8=-0,yb=0,ot=null,I8=0,$5=-1.1,Ob=!1,Lb=!1,J5=null,Lf=0,Ur=0,Fv=null,A8=B.S;B.S=function(a,o){if(gl=go(),typeof o==="object"&&o!==null&&typeof o.then==="function"){if(0>at&&0>Tp){at=Bo();var p=S0(),m=n0();if(p!==Pt||m!==dr)Pt=-1.1;Ct=p,dr=m}Mz(a,o)}A8!==null&&A8(a,o)};var Rr=ta(null),mm={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Y5=[],X5=[],Z5=[],G5=[],_5=[],q5=[],yr=new Set;mm.recordUnsafeLifecycleWarnings=function(a,o){yr.has(a.type)||(typeof o.componentWillMount==="function"&&o.componentWillMount.__suppressDeprecationWarning!==!0&&Y5.push(a),a.mode&jo&&typeof o.UNSAFE_componentWillMount==="function"&&X5.push(a),typeof o.componentWillReceiveProps==="function"&&o.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Z5.push(a),a.mode&jo&&typeof o.UNSAFE_componentWillReceiveProps==="function"&&G5.push(a),typeof o.componentWillUpdate==="function"&&o.componentWillUpdate.__suppressDeprecationWarning!==!0&&_5.push(a),a.mode&jo&&typeof o.UNSAFE_componentWillUpdate==="function"&&q5.push(a))},mm.flushPendingUnsafeLifecycleWarnings=function(){var a=new Set;0<Y5.length&&(Y5.forEach(function(b){a.add(O(b)||"Component"),yr.add(b.type)}),Y5=[]);var o=new Set;0<X5.length&&(X5.forEach(function(b){o.add(O(b)||"Component"),yr.add(b.type)}),X5=[]);var p=new Set;0<Z5.length&&(Z5.forEach(function(b){p.add(O(b)||"Component"),yr.add(b.type)}),Z5=[]);var m=new Set;0<G5.length&&(G5.forEach(function(b){m.add(O(b)||"Component"),yr.add(b.type)}),G5=[]);var t=new Set;0<_5.length&&(_5.forEach(function(b){t.add(O(b)||"Component"),yr.add(b.type)}),_5=[]);var r=new Set;if(0<q5.length&&(q5.forEach(function(b){r.add(O(b)||"Component"),yr.add(b.type)}),q5=[]),0<o.size){var v=T(o);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
169
|
+
|
|
170
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
171
|
+
|
|
172
|
+
Please update the following components: %s`,v)}0<m.size&&(v=T(m),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
173
|
+
|
|
174
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
175
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
176
|
+
|
|
177
|
+
Please update the following components: %s`,v)),0<r.size&&(v=T(r),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
178
|
+
|
|
179
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
180
|
+
|
|
181
|
+
Please update the following components: %s`,v)),0<a.size&&(v=T(a),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
182
|
+
|
|
183
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
184
|
+
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
185
|
+
|
|
186
|
+
Please update the following components: %s`,v)),0<p.size&&(v=T(p),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
187
|
+
|
|
188
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
189
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
190
|
+
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
191
|
+
|
|
192
|
+
Please update the following components: %s`,v)),0<t.size&&(v=T(t),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
193
|
+
|
|
194
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
195
|
+
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
196
|
+
|
|
197
|
+
Please update the following components: %s`,v))};var hb=new Map,T8=new Set;mm.recordLegacyContextWarning=function(a,o){var p=null;for(var m=a;m!==null;)m.mode&jo&&(p=m),m=m.return;p===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!T8.has(a.type)&&(m=hb.get(p),a.type.contextTypes!=null||a.type.childContextTypes!=null||o!==null&&typeof o.getChildContext==="function")&&(m===void 0&&(m=[],hb.set(p,m)),m.push(a))},mm.flushLegacyContextWarning=function(){hb.forEach(function(a){if(a.length!==0){var o=a[0],p=new Set;a.forEach(function(t){p.add(O(t)||"Component"),T8.add(t.type)});var m=T(p);k(o,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
198
|
+
|
|
199
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
200
|
+
|
|
201
|
+
Please update the following components: %s
|
|
202
|
+
|
|
203
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,m)})}})},mm.discardPendingWarnings=function(){Y5=[],X5=[],Z5=[],G5=[],_5=[],q5=[],hb=new Map};var n8={react_stack_bottom_frame:function(a,o,p){var m=Wm;Wm=!0;try{return a(o,p)}finally{Wm=m}}},hf=n8.react_stack_bottom_frame.bind(n8),S8={react_stack_bottom_frame:function(a){var o=Wm;Wm=!0;try{return a.render()}finally{Wm=o}}},u8=S8.react_stack_bottom_frame.bind(S8),x8={react_stack_bottom_frame:function(a,o){try{o.componentDidMount()}catch(p){Ca(a,a.return,p)}}},kf=x8.react_stack_bottom_frame.bind(x8),V8={react_stack_bottom_frame:function(a,o,p,m,t){try{o.componentDidUpdate(p,m,t)}catch(r){Ca(a,a.return,r)}}},D8=V8.react_stack_bottom_frame.bind(V8),j8={react_stack_bottom_frame:function(a,o){var p=o.stack;a.componentDidCatch(o.value,{componentStack:p!==null?p:""})}},XY=j8.react_stack_bottom_frame.bind(j8),E8={react_stack_bottom_frame:function(a,o,p){try{p.componentWillUnmount()}catch(m){Ca(a,o,m)}}},s8=E8.react_stack_bottom_frame.bind(E8),e8={react_stack_bottom_frame:function(a){var o=a.create;return a=a.inst,o=o(),a.destroy=o}},ZY=e8.react_stack_bottom_frame.bind(e8),al={react_stack_bottom_frame:function(a,o,p){try{p()}catch(m){Ca(a,o,m)}}},GY=al.react_stack_bottom_frame.bind(al),ol={react_stack_bottom_frame:function(a){var o=a._init;return o(a._payload)}},_Y=ol.react_stack_bottom_frame.bind(ol),Cv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Nf=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),kb=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Nb={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Or=null,Q5=!1,Pv=null,B5=0,Ba=null,Mf,pl=Mf=!1,ml={},tl={},rl={};K=function(a,o,p){if(p!==null&&typeof p==="object"&&p._store&&(!p._store.validated&&p.key==null||p._store.validated===2)){if(typeof p._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");p._store.validated=1;var m=O(a),t=m||"null";if(!ml[t]){ml[t]=!0,p=p._owner,a=a._debugOwner;var r="";a&&typeof a.tag==="number"&&(t=O(a))&&(r=`
|
|
204
|
+
|
|
205
|
+
Check the render method of \``+t+"`."),r||m&&(r=`
|
|
206
|
+
|
|
207
|
+
Check the top-level render call using <`+m+">.");var v="";p!=null&&a!==p&&(m=null,typeof p.tag==="number"?m=O(p):typeof p.name==="string"&&(m=p.name),m&&(v=" It was passed a child from "+m+".")),k(o,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',r,v)})}}};var Lr=E7(!0),vl=E7(!1),bl=0,fl=1,il=2,gf=3,It=!1,wl=!1,Ff=null,Cf=!1,Iv=ta(null),Mb=ta(0),Rp=ta(null),np=null,Av=1,K5=2,_o=ta(0),gb=0,Sp=1,tp=2,yp=4,rp=8,Tv,cl=new Set,ll=new Set,Pf=new Set,zl=new Set,pt=0,$a=null,Da=null,Ko=null,Fb=!1,nv=!1,hr=!1,Cb=0,H5=0,mt=null,qY=0,QY=25,Q=null,up=null,tt=-1,W5=!1,d5={readContext:fo,use:Bt,useCallback:Xo,useContext:Xo,useEffect:Xo,useImperativeHandle:Xo,useLayoutEffect:Xo,useInsertionEffect:Xo,useMemo:Xo,useReducer:Xo,useRef:Xo,useState:Xo,useDebugValue:Xo,useDeferredValue:Xo,useTransition:Xo,useSyncExternalStore:Xo,useId:Xo,useHostTransitionStatus:Xo,useFormState:Xo,useActionState:Xo,useOptimistic:Xo,useMemoCache:Xo,useCacheRefresh:Xo};d5.useEffectEvent=Xo;var If=null,$l=null,Af=null,Jl=null,km=null,tm=null,Pb=null;If={readContext:function(a){return fo(a)},use:Bt,useCallback:function(a,o){return Q="useCallback",Wa(),vv(o),F4(a,o)},useContext:function(a){return Q="useContext",Wa(),fo(a)},useEffect:function(a,o){return Q="useEffect",Wa(),vv(o),h2(a,o)},useImperativeHandle:function(a,o,p){return Q="useImperativeHandle",Wa(),vv(p),g4(a,o,p)},useInsertionEffect:function(a,o){Q="useInsertionEffect",Wa(),vv(o),Xr(4,tp,a,o)},useLayoutEffect:function(a,o){return Q="useLayoutEffect",Wa(),vv(o),M4(a,o)},useMemo:function(a,o){Q="useMemo",Wa(),vv(o);var p=B.H;B.H=km;try{return C4(a,o)}finally{B.H=p}},useReducer:function(a,o,p){Q="useReducer",Wa();var m=B.H;B.H=km;try{return d4(a,o,p)}finally{B.H=m}},useRef:function(a){return Q="useRef",Wa(),k4(a)},useState:function(a){Q="useState",Wa();var o=B.H;B.H=km;try{return O4(a)}finally{B.H=o}},useDebugValue:function(){Q="useDebugValue",Wa()},useDeferredValue:function(a,o){return Q="useDeferredValue",Wa(),P4(a,o)},useTransition:function(){return Q="useTransition",Wa(),T4()},useSyncExternalStore:function(a,o,p){return Q="useSyncExternalStore",Wa(),R4(a,o,p)},useId:function(){return Q="useId",Wa(),n4()},useFormState:function(a,o){return Q="useFormState",Wa(),U2(),fv(a,o)},useActionState:function(a,o){return Q="useActionState",Wa(),fv(a,o)},useOptimistic:function(a){return Q="useOptimistic",Wa(),L4(a)},useHostTransitionStatus:Zr,useMemoCache:Yr,useCacheRefresh:function(){return Q="useCacheRefresh",Wa(),S4()},useEffectEvent:function(a){return Q="useEffectEvent",Wa(),N4(a)}},$l={readContext:function(a){return fo(a)},use:Bt,useCallback:function(a,o){return Q="useCallback",C(),F4(a,o)},useContext:function(a){return Q="useContext",C(),fo(a)},useEffect:function(a,o){return Q="useEffect",C(),h2(a,o)},useImperativeHandle:function(a,o,p){return Q="useImperativeHandle",C(),g4(a,o,p)},useInsertionEffect:function(a,o){Q="useInsertionEffect",C(),Xr(4,tp,a,o)},useLayoutEffect:function(a,o){return Q="useLayoutEffect",C(),M4(a,o)},useMemo:function(a,o){Q="useMemo",C();var p=B.H;B.H=km;try{return C4(a,o)}finally{B.H=p}},useReducer:function(a,o,p){Q="useReducer",C();var m=B.H;B.H=km;try{return d4(a,o,p)}finally{B.H=m}},useRef:function(a){return Q="useRef",C(),k4(a)},useState:function(a){Q="useState",C();var o=B.H;B.H=km;try{return O4(a)}finally{B.H=o}},useDebugValue:function(){Q="useDebugValue",C()},useDeferredValue:function(a,o){return Q="useDeferredValue",C(),P4(a,o)},useTransition:function(){return Q="useTransition",C(),T4()},useSyncExternalStore:function(a,o,p){return Q="useSyncExternalStore",C(),R4(a,o,p)},useId:function(){return Q="useId",C(),n4()},useActionState:function(a,o){return Q="useActionState",C(),fv(a,o)},useFormState:function(a,o){return Q="useFormState",C(),U2(),fv(a,o)},useOptimistic:function(a){return Q="useOptimistic",C(),L4(a)},useHostTransitionStatus:Zr,useMemoCache:Yr,useCacheRefresh:function(){return Q="useCacheRefresh",C(),S4()},useEffectEvent:function(a){return Q="useEffectEvent",C(),N4(a)}},Af={readContext:function(a){return fo(a)},use:Bt,useCallback:function(a,o){return Q="useCallback",C(),M2(a,o)},useContext:function(a){return Q="useContext",C(),fo(a)},useEffect:function(a,o){Q="useEffect",C(),ip(2048,rp,a,o)},useImperativeHandle:function(a,o,p){return Q="useImperativeHandle",C(),N2(a,o,p)},useInsertionEffect:function(a,o){return Q="useInsertionEffect",C(),ip(4,tp,a,o)},useLayoutEffect:function(a,o){return Q="useLayoutEffect",C(),ip(4,yp,a,o)},useMemo:function(a,o){Q="useMemo",C();var p=B.H;B.H=tm;try{return g2(a,o)}finally{B.H=p}},useReducer:function(a,o,p){Q="useReducer",C();var m=B.H;B.H=tm;try{return bv(a,o,p)}finally{B.H=m}},useRef:function(){return Q="useRef",C(),Ia().memoizedState},useState:function(){Q="useState",C();var a=B.H;B.H=tm;try{return bv(sp)}finally{B.H=a}},useDebugValue:function(){Q="useDebugValue",C()},useDeferredValue:function(a,o){return Q="useDeferredValue",C(),G6(a,o)},useTransition:function(){return Q="useTransition",C(),H6()},useSyncExternalStore:function(a,o,p){return Q="useSyncExternalStore",C(),y2(a,o,p)},useId:function(){return Q="useId",C(),Ia().memoizedState},useFormState:function(a){return Q="useFormState",C(),U2(),O2(a)},useActionState:function(a){return Q="useActionState",C(),O2(a)},useOptimistic:function(a,o){return Q="useOptimistic",C(),i6(a,o)},useHostTransitionStatus:Zr,useMemoCache:Yr,useCacheRefresh:function(){return Q="useCacheRefresh",C(),Ia().memoizedState},useEffectEvent:function(a){return Q="useEffectEvent",C(),k2(a)}},Jl={readContext:function(a){return fo(a)},use:Bt,useCallback:function(a,o){return Q="useCallback",C(),M2(a,o)},useContext:function(a){return Q="useContext",C(),fo(a)},useEffect:function(a,o){Q="useEffect",C(),ip(2048,rp,a,o)},useImperativeHandle:function(a,o,p){return Q="useImperativeHandle",C(),N2(a,o,p)},useInsertionEffect:function(a,o){return Q="useInsertionEffect",C(),ip(4,tp,a,o)},useLayoutEffect:function(a,o){return Q="useLayoutEffect",C(),ip(4,yp,a,o)},useMemo:function(a,o){Q="useMemo",C();var p=B.H;B.H=Pb;try{return g2(a,o)}finally{B.H=p}},useReducer:function(a,o,p){Q="useReducer",C();var m=B.H;B.H=Pb;try{return L0(a,o,p)}finally{B.H=m}},useRef:function(){return Q="useRef",C(),Ia().memoizedState},useState:function(){Q="useState",C();var a=B.H;B.H=Pb;try{return L0(sp)}finally{B.H=a}},useDebugValue:function(){Q="useDebugValue",C()},useDeferredValue:function(a,o){return Q="useDeferredValue",C(),_6(a,o)},useTransition:function(){return Q="useTransition",C(),W6()},useSyncExternalStore:function(a,o,p){return Q="useSyncExternalStore",C(),y2(a,o,p)},useId:function(){return Q="useId",C(),Ia().memoizedState},useFormState:function(a){return Q="useFormState",C(),U2(),L2(a)},useActionState:function(a){return Q="useActionState",C(),L2(a)},useOptimistic:function(a,o){return Q="useOptimistic",C(),c6(a,o)},useHostTransitionStatus:Zr,useMemoCache:Yr,useCacheRefresh:function(){return Q="useCacheRefresh",C(),Ia().memoizedState},useEffectEvent:function(a){return Q="useEffectEvent",C(),k2(a)}},km={readContext:function(a){return g(),fo(a)},use:function(a){return G(),Bt(a)},useCallback:function(a,o){return Q="useCallback",G(),Wa(),F4(a,o)},useContext:function(a){return Q="useContext",G(),Wa(),fo(a)},useEffect:function(a,o){return Q="useEffect",G(),Wa(),h2(a,o)},useImperativeHandle:function(a,o,p){return Q="useImperativeHandle",G(),Wa(),g4(a,o,p)},useInsertionEffect:function(a,o){Q="useInsertionEffect",G(),Wa(),Xr(4,tp,a,o)},useLayoutEffect:function(a,o){return Q="useLayoutEffect",G(),Wa(),M4(a,o)},useMemo:function(a,o){Q="useMemo",G(),Wa();var p=B.H;B.H=km;try{return C4(a,o)}finally{B.H=p}},useReducer:function(a,o,p){Q="useReducer",G(),Wa();var m=B.H;B.H=km;try{return d4(a,o,p)}finally{B.H=m}},useRef:function(a){return Q="useRef",G(),Wa(),k4(a)},useState:function(a){Q="useState",G(),Wa();var o=B.H;B.H=km;try{return O4(a)}finally{B.H=o}},useDebugValue:function(){Q="useDebugValue",G(),Wa()},useDeferredValue:function(a,o){return Q="useDeferredValue",G(),Wa(),P4(a,o)},useTransition:function(){return Q="useTransition",G(),Wa(),T4()},useSyncExternalStore:function(a,o,p){return Q="useSyncExternalStore",G(),Wa(),R4(a,o,p)},useId:function(){return Q="useId",G(),Wa(),n4()},useFormState:function(a,o){return Q="useFormState",G(),Wa(),fv(a,o)},useActionState:function(a,o){return Q="useActionState",G(),Wa(),fv(a,o)},useOptimistic:function(a){return Q="useOptimistic",G(),Wa(),L4(a)},useMemoCache:function(a){return G(),Yr(a)},useHostTransitionStatus:Zr,useCacheRefresh:function(){return Q="useCacheRefresh",Wa(),S4()},useEffectEvent:function(a){return Q="useEffectEvent",G(),Wa(),N4(a)}},tm={readContext:function(a){return g(),fo(a)},use:function(a){return G(),Bt(a)},useCallback:function(a,o){return Q="useCallback",G(),C(),M2(a,o)},useContext:function(a){return Q="useContext",G(),C(),fo(a)},useEffect:function(a,o){Q="useEffect",G(),C(),ip(2048,rp,a,o)},useImperativeHandle:function(a,o,p){return Q="useImperativeHandle",G(),C(),N2(a,o,p)},useInsertionEffect:function(a,o){return Q="useInsertionEffect",G(),C(),ip(4,tp,a,o)},useLayoutEffect:function(a,o){return Q="useLayoutEffect",G(),C(),ip(4,yp,a,o)},useMemo:function(a,o){Q="useMemo",G(),C();var p=B.H;B.H=tm;try{return g2(a,o)}finally{B.H=p}},useReducer:function(a,o,p){Q="useReducer",G(),C();var m=B.H;B.H=tm;try{return bv(a,o,p)}finally{B.H=m}},useRef:function(){return Q="useRef",G(),C(),Ia().memoizedState},useState:function(){Q="useState",G(),C();var a=B.H;B.H=tm;try{return bv(sp)}finally{B.H=a}},useDebugValue:function(){Q="useDebugValue",G(),C()},useDeferredValue:function(a,o){return Q="useDeferredValue",G(),C(),G6(a,o)},useTransition:function(){return Q="useTransition",G(),C(),H6()},useSyncExternalStore:function(a,o,p){return Q="useSyncExternalStore",G(),C(),y2(a,o,p)},useId:function(){return Q="useId",G(),C(),Ia().memoizedState},useFormState:function(a){return Q="useFormState",G(),C(),O2(a)},useActionState:function(a){return Q="useActionState",G(),C(),O2(a)},useOptimistic:function(a,o){return Q="useOptimistic",G(),C(),i6(a,o)},useMemoCache:function(a){return G(),Yr(a)},useHostTransitionStatus:Zr,useCacheRefresh:function(){return Q="useCacheRefresh",C(),Ia().memoizedState},useEffectEvent:function(a){return Q="useEffectEvent",G(),C(),k2(a)}},Pb={readContext:function(a){return g(),fo(a)},use:function(a){return G(),Bt(a)},useCallback:function(a,o){return Q="useCallback",G(),C(),M2(a,o)},useContext:function(a){return Q="useContext",G(),C(),fo(a)},useEffect:function(a,o){Q="useEffect",G(),C(),ip(2048,rp,a,o)},useImperativeHandle:function(a,o,p){return Q="useImperativeHandle",G(),C(),N2(a,o,p)},useInsertionEffect:function(a,o){return Q="useInsertionEffect",G(),C(),ip(4,tp,a,o)},useLayoutEffect:function(a,o){return Q="useLayoutEffect",G(),C(),ip(4,yp,a,o)},useMemo:function(a,o){Q="useMemo",G(),C();var p=B.H;B.H=tm;try{return g2(a,o)}finally{B.H=p}},useReducer:function(a,o,p){Q="useReducer",G(),C();var m=B.H;B.H=tm;try{return L0(a,o,p)}finally{B.H=m}},useRef:function(){return Q="useRef",G(),C(),Ia().memoizedState},useState:function(){Q="useState",G(),C();var a=B.H;B.H=tm;try{return L0(sp)}finally{B.H=a}},useDebugValue:function(){Q="useDebugValue",G(),C()},useDeferredValue:function(a,o){return Q="useDeferredValue",G(),C(),_6(a,o)},useTransition:function(){return Q="useTransition",G(),C(),W6()},useSyncExternalStore:function(a,o,p){return Q="useSyncExternalStore",G(),C(),y2(a,o,p)},useId:function(){return Q="useId",G(),C(),Ia().memoizedState},useFormState:function(a){return Q="useFormState",G(),C(),L2(a)},useActionState:function(a){return Q="useActionState",G(),C(),L2(a)},useOptimistic:function(a,o){return Q="useOptimistic",G(),C(),c6(a,o)},useMemoCache:function(a){return G(),Yr(a)},useHostTransitionStatus:Zr,useCacheRefresh:function(){return Q="useCacheRefresh",C(),Ia().memoizedState},useEffectEvent:function(a){return Q="useEffectEvent",G(),C(),k2(a)}};var Yl={},Xl=new Set,Zl=new Set,Gl=new Set,_l=new Set,ql=new Set,Ql=new Set,Bl=new Set,Kl=new Set,Hl=new Set,Wl=new Set;Object.freeze(Yl);var Tf={enqueueSetState:function(a,o,p){a=a._reactInternals;var m=Bp(a),t=Gt(m);t.payload=o,p!==void 0&&p!==null&&(x4(p),t.callback=p),o=_t(a,t,m),o!==null&&(cm(m,"this.setState()",a),Jo(o,a,m),U0(o,a,m))},enqueueReplaceState:function(a,o,p){a=a._reactInternals;var m=Bp(a),t=Gt(m);t.tag=fl,t.payload=o,p!==void 0&&p!==null&&(x4(p),t.callback=p),o=_t(a,t,m),o!==null&&(cm(m,"this.replaceState()",a),Jo(o,a,m),U0(o,a,m))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var p=Bp(a),m=Gt(p);m.tag=il,o!==void 0&&o!==null&&(x4(o),m.callback=o),o=_t(a,m,p),o!==null&&(cm(p,"this.forceUpdate()",a),Jo(o,a,p),U0(o,a,p))}},Sv=null,nf=null,Sf=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Ho=!1,dl={},Ul={},Rl={},yl={},uv=!1,Ol={},Ib={},uf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Ll=!1,hl=null;hl=new Set;var rt=!1,Wo=!1,xf=!1,kl=typeof WeakSet==="function"?WeakSet:Set,Co=null,xv=null,Vv=null,Uo=null,lp=!1,rm=null,Lo=!1,U5=8192,BY={getCacheForType:function(a){var o=fo(Qo),p=o.data.get(a);return p===void 0&&(p=a(),o.data.set(a,p)),p},cacheSignal:function(){return fo(Qo).controller.signal},getOwner:function(){return Wp}};if(typeof Symbol==="function"&&Symbol.for){var R5=Symbol.for;R5("selector.component"),R5("selector.has_pseudo_class"),R5("selector.role"),R5("selector.test_id"),R5("selector.text")}var KY=[],HY=typeof WeakMap==="function"?WeakMap:Map,Po=0,ho=2,Op=4,vt=0,y5=1,kr=2,Ab=3,At=4,Tb=6,Nl=5,ka=Po,ja=null,Ha=null,Ka=0,zp=0,nb=1,Nr=2,O5=3,Ml=4,Vf=5,L5=6,Sb=7,Df=8,Mr=9,Aa=zp,Lp=null,Tt=!1,Dv=!1,jf=!1,Nm=0,zo=vt,nt=0,St=0,Ef=0,$p=0,gr=0,h5=null,vp=null,ub=!1,xb=0,gl=0,Fl=300,Vb=1/0,Cl=500,k5=null,Zo=null,ut=null,Db=0,sf=1,ef=2,Pl=3,xt=0,Il=1,Al=2,Tl=3,nl=4,jb=5,Ro=0,Vt=null,jv=null,vm=0,ai=0,oi=-0,pi=null,Sl=null,ul=null,bm=Db,xl=null,WY=50,N5=0,mi=null,ti=!1,Eb=!1,dY=50,Fr=0,M5=null,Ev=!1,sb=null,Vl=!1,Dl=new Set,UY={},eb=null,sv=null,ri=!1,vi=!1,a1=!1,bi=!1,Dt=0,fi={};(function(){for(var a=0;a<Gf.length;a++){var o=Gf[a],p=o.toLowerCase();o=o[0].toUpperCase()+o.slice(1),Ep(p,"on"+o)}Ep(H8,"onAnimationEnd"),Ep(W8,"onAnimationIteration"),Ep(d8,"onAnimationStart"),Ep("dblclick","onDoubleClick"),Ep("focusin","onFocus"),Ep("focusout","onBlur"),Ep(tY,"onTransitionRun"),Ep(rY,"onTransitionStart"),Ep(vY,"onTransitionCancel"),Ep(U8,"onTransitionEnd")})(),er("onMouseEnter",["mouseout","mouseover"]),er("onMouseLeave",["mouseout","mouseover"]),er("onPointerEnter",["pointerout","pointerover"]),er("onPointerLeave",["pointerout","pointerover"]),vr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vr("onBeforeInput",["compositionend","keypress","textInput","paste"]),vr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var g5="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(" "),ii=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(g5)),o1="_reactListening"+Math.random().toString(36).slice(2),jl=!1,El=!1,p1=!1,sl=!1,m1=!1,t1=!1,el=!1,r1={},RY=/\r\n?/g,yY=/\u0000|\uFFFD/g,Cr="http://www.w3.org/1999/xlink",wi="http://www.w3.org/XML/1998/namespace",OY="javascript:throw new Error('React form unexpectedly submitted.')",LY="suppressHydrationWarning",Pr="&",v1="/&",F5="$",C5="/$",jt="$?",Ir="$~",ev="$!",hY="html",kY="body",NY="head",ci="F!",a9="F",o9="loading",MY="style",bt=0,a0=1,b1=2,li=null,zi=null,p9={dialog:!0,webview:!0},$i=null,P5=void 0,m9=typeof setTimeout==="function"?setTimeout:void 0,gY=typeof clearTimeout==="function"?clearTimeout:void 0,Ar=-1,t9=typeof Promise==="function"?Promise:void 0,FY=typeof queueMicrotask==="function"?queueMicrotask:typeof t9<"u"?function(a){return t9.resolve(null).then(a).catch(Q$)}:m9,Ji=null,Tr=0,I5=1,r9=2,v9=3,xp=4,Vp=new Map,b9=new Set,ft=Pa.d;Pa.d={f:function(){var a=ft.f(),o=zv();return a||o},r:function(a){var o=$t(a);o!==null&&o.tag===5&&o.type==="form"?K6(o):ft.r(a)},D:function(a){ft.D(a),Xc("dns-prefetch",a,null)},C:function(a,o){ft.C(a,o),Xc("preconnect",a,o)},L:function(a,o,p){ft.L(a,o,p);var m=o0;if(m&&a&&o){var t='link[rel="preload"][as="'+Np(o)+'"]';o==="image"?p&&p.imageSrcSet?(t+='[imagesrcset="'+Np(p.imageSrcSet)+'"]',typeof p.imageSizes==="string"&&(t+='[imagesizes="'+Np(p.imageSizes)+'"]')):t+='[href="'+Np(a)+'"]':t+='[href="'+Np(a)+'"]';var r=t;switch(o){case"style":r=Yv(a);break;case"script":r=Xv(a)}Vp.has(r)||(a=da({rel:"preload",href:o==="image"&&p&&p.imageSrcSet?void 0:a,as:o},p),Vp.set(r,a),m.querySelector(t)!==null||o==="style"&&m.querySelector(x0(r))||o==="script"&&m.querySelector(V0(r))||(o=m.createElement("link"),To(o,"link",a),No(o),m.head.appendChild(o)))}},m:function(a,o){ft.m(a,o);var p=o0;if(p&&a){var m=o&&typeof o.as==="string"?o.as:"script",t='link[rel="modulepreload"][as="'+Np(m)+'"][href="'+Np(a)+'"]',r=t;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Xv(a)}if(!Vp.has(r)&&(a=da({rel:"modulepreload",href:a},o),Vp.set(r,a),p.querySelector(t)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(V0(r)))return}m=p.createElement("link"),To(m,"link",a),No(m),p.head.appendChild(m)}}},X:function(a,o){ft.X(a,o);var p=o0;if(p&&a){var m=sr(p).hoistableScripts,t=Xv(a),r=m.get(t);r||(r=p.querySelector(V0(t)),r||(a=da({src:a,async:!0},o),(o=Vp.get(t))&&g3(a,o),r=p.createElement("script"),No(r),To(r,"link",a),p.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},m.set(t,r))}},S:function(a,o,p){ft.S(a,o,p);var m=o0;if(m&&a){var t=sr(m).hoistableStyles,r=Yv(a);o=o||"default";var v=t.get(r);if(!v){var b={loading:Tr,preload:null};if(v=m.querySelector(x0(r)))b.loading=I5|xp;else{a=da({rel:"stylesheet",href:a,"data-precedence":o},p),(p=Vp.get(r))&&M3(a,p);var f=v=m.createElement("link");No(f),To(f,"link",a),f._p=new Promise(function(i,Y){f.onload=i,f.onerror=Y}),f.addEventListener("load",function(){b.loading|=I5}),f.addEventListener("error",function(){b.loading|=r9}),b.loading|=xp,pb(v,o,m)}v={type:"stylesheet",instance:v,count:1,state:b},t.set(r,v)}}},M:function(a,o){ft.M(a,o);var p=o0;if(p&&a){var m=sr(p).hoistableScripts,t=Xv(a),r=m.get(t);r||(r=p.querySelector(V0(t)),r||(a=da({src:a,async:!0,type:"module"},o),(o=Vp.get(t))&&g3(a,o),r=p.createElement("script"),No(r),To(r,"link",a),p.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},m.set(t,r))}}};var o0=typeof document>"u"?null:document,f1=null,CY=60000,PY=800,IY=500,Yi=0,Xi=null,i1=null,nr=pJ,A5={$$typeof:Hm,Provider:null,Consumer:null,_currentValue:nr,_currentValue2:nr,_threadCount:0},f9="%c%s%c",i9="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",w9="",w1=" ",AY=Function.prototype.bind,c9=!1,l9=null,z9=null,$9=null,J9=null,Y9=null,X9=null,Z9=null,G9=null,_9=null,q9=null;l9=function(a,o,p,m){o=c(a,o),o!==null&&(p=Z(o.memoizedState,p,0,m),o.memoizedState=p,o.baseState=p,a.memoizedProps=da({},a.memoizedProps),p=Vo(a,2),p!==null&&Jo(p,a,2))},z9=function(a,o,p){o=c(a,o),o!==null&&(p=N(o.memoizedState,p,0),o.memoizedState=p,o.baseState=p,a.memoizedProps=da({},a.memoizedProps),p=Vo(a,2),p!==null&&Jo(p,a,2))},$9=function(a,o,p,m){o=c(a,o),o!==null&&(p=_(o.memoizedState,p,m),o.memoizedState=p,o.baseState=p,a.memoizedProps=da({},a.memoizedProps),p=Vo(a,2),p!==null&&Jo(p,a,2))},J9=function(a,o,p){a.pendingProps=Z(a.memoizedProps,o,0,p),a.alternate&&(a.alternate.pendingProps=a.pendingProps),o=Vo(a,2),o!==null&&Jo(o,a,2)},Y9=function(a,o){a.pendingProps=N(a.memoizedProps,o,0),a.alternate&&(a.alternate.pendingProps=a.pendingProps),o=Vo(a,2),o!==null&&Jo(o,a,2)},X9=function(a,o,p){a.pendingProps=_(a.memoizedProps,o,p),a.alternate&&(a.alternate.pendingProps=a.pendingProps),o=Vo(a,2),o!==null&&Jo(o,a,2)},Z9=function(a){var o=Vo(a,2);o!==null&&Jo(o,a,2)},G9=function(a){var o=h1(),p=Vo(a,o);p!==null&&Jo(p,a,o)},_9=function(a){H=a},q9=function(a){y=a};var c1=!0,l1=null,Zi=!1,Et=null,st=null,et=null,T5=new Map,n5=new Map,ar=[],TY="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(" "),z1=null;if(bb.prototype.render=T3.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error("Cannot update an unmounted root.");var p=arguments;typeof p[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):s(p[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof p[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),p=a;var m=o.current,t=Bp(m);F3(m,t,p,o,null,null)},bb.prototype.unmount=T3.prototype.unmount=function(){var a=arguments;if(typeof a[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),a=this._internalRoot,a!==null){this._internalRoot=null;var o=a.containerInfo;(ka&(ho|Op))!==Po&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),F3(a.current,2,null,a,null,null),zv(),o[yt]=null}},bb.prototype.unstable_scheduleHydration=function(a){if(a){var o=gi();a={blockedOn:null,target:a,priority:o};for(var p=0;p<ar.length&&o!==0&&o<ar[p].priority;p++);ar.splice(p,0,a),p===0&&Oc(a)}},function(){var a=p0.version;if(a!=="19.2.4")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
208
|
+
- react: `+(a+`
|
|
209
|
+
- react-dom: 19.2.4
|
|
210
|
+
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Pa.findDOMNode=function(a){var o=a._reactInternals;if(o===void 0){if(typeof a.render==="function")throw Error("Unable to find node on an unmounted component.");throw a=Object.keys(a).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+a)}return a=Na(o),a=a!==null?ga(a):null,a=a===null?null:a.stateNode,a},!function(){var a={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.4"};return a.overrideHookState=l9,a.overrideHookStateDeletePath=z9,a.overrideHookStateRenamePath=$9,a.overrideProps=J9,a.overridePropsDeletePath=Y9,a.overridePropsRenamePath=X9,a.scheduleUpdate=Z9,a.scheduleRetry=G9,a.setErrorHandler=_9,a.setSuspenseHandler=q9,a.scheduleRefresh=F,a.scheduleRoot=D,a.setRefreshHandler=I,a.getCurrentFiber=V$,bz(a)}()&&ym&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var Q9=window.location.protocol;/^(https?|file):$/.test(Q9)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(Q9==="file:"?`
|
|
211
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}xY.createRoot=function(a,o){if(!s(a))throw Error("Target container is not a DOM element.");Nc(a);var p=!1,m="",t=L6,r=h6,v=k6;return o!==null&&o!==void 0&&(o.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof o==="object"&&o!==null&&o.$$typeof===Km&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
212
|
+
|
|
213
|
+
let root = createRoot(domContainer);
|
|
214
|
+
root.render(<App />);`),o.unstable_strictMode===!0&&(p=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onUncaughtError!==void 0&&(t=o.onUncaughtError),o.onCaughtError!==void 0&&(r=o.onCaughtError),o.onRecoverableError!==void 0&&(v=o.onRecoverableError)),o=Kc(a,1,!1,null,null,p,m,null,t,r,v,kc),a[yt]=o.current,K3(a),new T3(o)},xY.hydrateRoot=function(a,o,p){if(!s(a))throw Error("Target container is not a DOM element.");Nc(a),o===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var m=!1,t="",r=L6,v=h6,b=k6,f=null;return p!==null&&p!==void 0&&(p.unstable_strictMode===!0&&(m=!0),p.identifierPrefix!==void 0&&(t=p.identifierPrefix),p.onUncaughtError!==void 0&&(r=p.onUncaughtError),p.onCaughtError!==void 0&&(v=p.onCaughtError),p.onRecoverableError!==void 0&&(b=p.onRecoverableError),p.formState!==void 0&&(f=p.formState)),o=Kc(a,1,!0,o,p!=null?p:null,m,t,f,r,v,b,kc),o.context=Hc(null),p=o.current,m=Bp(p),m=N1(m),t=Gt(m),t.callback=null,_t(p,t,m),cm(m,"hydrateRoot()",null),p=m,o.current.lanes=p,z0(o,p),Qm(o),a[yt]=o.current,K3(a),new bb(o)},xY.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var W9=Gi((vZ,H9)=>{var VY=Za(K9());H9.exports=VY});var Ta=Za(Eo(),1),vz=Za(W9(),1);var qi={memory:!0,tasks:!1,vision:!0,operator:!1,mcp:!1,realtime:!1,files:!1,agents:!1,builtinTools:{webSearch:!1,webFetch:!1}};function S5(c){let Z=c.operator;if(typeof Z==="boolean")return{enabled:Z};return Z}var or=Za(Eo(),1);function Qi(c,Z){let{accessToken:_}=Go(),[d,N]=or.useState([]),[y,H]=or.useState(!0),G=or.useCallback(()=>{let I={"Content-Type":"application/json"};if(_)I.Authorization=`Bearer ${_}`;return I},[_]),g=or.useCallback(async()=>{let I="/api/agents";if(Z!==void 0&&Z!==null)I+=`?project_id=${encodeURIComponent(Z)}`;let _a=await(await fetch(I,{headers:G()})).json();N(_a.agents||[]),H(!1)},[G,Z]),A=$1();or.useEffect(()=>{if(c)g()},[c,A,g]);let K=async(I)=>{await fetch("/api/agents",{method:"POST",headers:G(),body:JSON.stringify(I)}),await g()},T=async(I)=>{await fetch(`/api/agents/${I}`,{method:"DELETE",headers:G()}),await g()},M=async(I,s)=>{let _a=await fetch(`/api/agents/${I}`,{method:"PUT",headers:G(),body:JSON.stringify(s)}),oa=await _a.json();if(await g(),!_a.ok&&oa.error)return{error:oa.error};return{}},D=async(I)=>{let s=I.status==="running"?"stop":"start";N((oa)=>oa.map((ia)=>ia.id===I.id?{...ia,status:s==="start"?"starting":"stopping"}:ia));let _a=await fetch(`/api/agents/${I.id}/${s}`,{method:"POST",headers:G()});if(!_a.ok){let oa=await _a.json();return N((ia)=>ia.map((h)=>h.id===I.id?{...h,status:I.status}:h)),{error:oa.error}}return{}},F=d.filter((I)=>I.status==="running").length;return{agents:d,loading:y,runningCount:F,fetchAgents:g,createAgent:K,updateAgent:M,deleteAgent:T,toggleAgent:D}}var ur=Za(Eo(),1);function Bi(c){let{accessToken:Z}=Go(),[_,d]=ur.useState([]),N=ur.useCallback(()=>{let A={"Content-Type":"application/json"};if(Z)A.Authorization=`Bearer ${Z}`;return A},[Z]),y=ur.useCallback(async()=>{let K=await(await fetch("/api/providers",{headers:N()})).json();d(K.providers||[])},[N]);ur.useEffect(()=>{if(c)y()},[c,y]);let H=_.filter((A)=>A.hasKey);return{providers:_,configuredProviders:H,fetchProviders:y,saveKey:async(A,K)=>{let M=await(await fetch(`/api/keys/${A}/test`,{method:"POST",headers:N(),body:JSON.stringify({key:K})})).json();if(!M.valid)return{success:!1,error:M.error||"API key is invalid"};let D=await fetch(`/api/keys/${A}`,{method:"POST",headers:N(),body:JSON.stringify({key:K})});if(!D.ok)return{success:!1,error:(await D.json()).error||"Failed to save key"};return await y(),{success:!0}},deleteKey:async(A)=>{await fetch(`/api/keys/${A}`,{method:"DELETE",headers:N()}),await y()}}}var d9=Za(Eo(),1);function Ki(){let{authFetch:c,onboardingComplete:Z,setOnboardingComplete:_}=Go(),d=d9.useCallback(async()=>{await c("/api/onboarding/complete",{method:"POST"}),_(!0)},[c,_]);return{isComplete:Z,setIsComplete:_,complete:d}}var uo=Za(Eo(),1);var hp=Za(Eo(),1);var ua=Za(vo(),1),R9=hp.createContext(null);function y9(){return hp.useContext(R9)}function O9({children:c}){let{authFetch:Z,isAuthenticated:_,isLoading:d}=Go(),[N,y]=hp.useState(null),[H,G]=hp.useState(!1),[g,A]=hp.useState(!1),[K,T]=hp.useState(null),M=async()=>{try{let ia=await(await Z("/api/meta-agent/status")).json();y(ia)}catch(oa){console.error("[MetaAgent] Failed to fetch status:",oa)}};hp.useEffect(()=>{if(!d&&_)M()},[Z,_,d]);let D=async()=>{A(!0),T(null);try{let oa=await Z("/api/meta-agent/start",{method:"POST"}),ia=await oa.json();if(!oa.ok)T(ia.error||"Failed to start assistant");else await M()}catch(oa){T("Failed to start assistant")}A(!1)},F=!!(N?.enabled&&N?.available),I=N?.agent,s=!!(I?.status==="running"&&I?.port),_a={status:N,isOpen:H,isStarting:g,error:K,isAvailable:F,isRunning:s,agent:I,toggle:()=>G(!H),close:()=>G(!1),startAgent:D};return ua.jsxDEV(R9.Provider,{value:_a,children:c},void 0,!1,void 0,this)}function L9(){let c=y9();if(!c?.isAvailable)return null;return ua.jsxDEV("button",{onClick:c.toggle,className:`hidden md:flex items-center gap-2 px-3 py-2 rounded transition ${c.isOpen?"bg-[var(--color-accent)] text-white":"bg-[var(--color-bg-secondary)] hover:bg-[var(--color-surface-raised)] text-[var(--color-text-secondary)] hover:text-white"}`,title:"Apteva Assistant",children:[ua.jsxDEV(k9,{className:"w-5 h-5"},void 0,!1,void 0,this),ua.jsxDEV("span",{className:"text-sm",children:"Assistant"},void 0,!1,void 0,this),c.isRunning&&ua.jsxDEV("span",{className:"w-2 h-2 rounded-full bg-green-400"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function h9(){let{theme:c}=Vr(),Z=y9(),{currentProjectId:_,currentProject:d}=bp(),N=U9();if(!Z?.isAvailable||!Z.isOpen)return null;let{agent:y,isRunning:H,error:G,isStarting:g,startAgent:A,close:K}=Z,T=hp.useMemo(()=>{let M=[];if(d)M.push(`Current project: "${d.name}" (id: ${d.id})`);else if(_==="unassigned")M.push("Viewing: unassigned agents (no project)");else M.push("Viewing: All Projects");return M.join(`
|
|
215
|
+
`)},[_,d]);return ua.jsxDEV(ua.Fragment,{children:[ua.jsxDEV("div",{className:"hidden md:block fixed inset-0 bg-black/20 z-40",onClick:K},void 0,!1,void 0,this),ua.jsxDEV("div",{className:"hidden md:flex fixed top-0 right-0 h-full w-[480px] lg:w-[540px] bg-[var(--color-bg)] border-l border-[var(--color-border)] shadow-2xl z-50 flex-col",children:[ua.jsxDEV("div",{className:"flex items-center justify-between px-4 py-3 border-b border-[var(--color-border)] bg-[var(--color-surface)]",children:[ua.jsxDEV("div",{className:"flex items-center gap-2",children:[ua.jsxDEV("div",{className:`w-2 h-2 rounded-full ${H?"bg-green-400":"bg-[var(--color-scrollbar)]"}`},void 0,!1,void 0,this),ua.jsxDEV("span",{className:"font-medium text-sm",children:"Apteva Assistant"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ua.jsxDEV("button",{onClick:K,className:"text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] transition",children:ua.jsxDEV(DY,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ua.jsxDEV("div",{className:"flex-1 min-h-0 flex flex-col",children:H?ua.jsxDEV(xr,{agentId:"default",apiUrl:`/api/agents/${y.id}`,placeholder:"Ask me anything about Apteva...",variant:"terminal",theme:c.id,showHeader:!1,context:T,onToolResult:N},void 0,!1,void 0,this):ua.jsxDEV("div",{className:"flex-1 flex flex-col items-center justify-center p-6 text-center",children:[ua.jsxDEV(k9,{className:"w-12 h-12 text-[var(--color-border-light)] mb-4"},void 0,!1,void 0,this),ua.jsxDEV("h3",{className:"font-medium mb-2",children:"Apteva Assistant"},void 0,!1,void 0,this),ua.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-6",children:"I can help you navigate Apteva, create agents, set up MCP servers, and more."},void 0,!1,void 0,this),G&&ua.jsxDEV("p",{className:"text-sm text-red-400 mb-4",children:G},void 0,!1,void 0,this),ua.jsxDEV("button",{onClick:A,disabled:g,className:"bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 text-white px-6 py-2 rounded font-medium transition",children:g?"Starting...":"Start Assistant"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function k9({className:c="w-6 h-6"}){return ua.jsxDEV("svg",{className:c,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:ua.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function DY(){return ua.jsxDEV("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:ua.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var ca=Za(vo(),1);function J1({onMenuClick:c,agents:Z=[]}){let{connected:_}=u5(),d=M9(),{projects:N,currentProjectId:y,currentProject:H,setCurrentProjectId:G,unassignedCount:g,projectsEnabled:A}=bp(),[K,T]=uo.useState(!1),[M,D]=uo.useState(!1),[F,I]=uo.useState(0),[s,_a]=uo.useState([]),oa=N9(),{events:ia}=u5(),{accessToken:h}=Go(),Na=uo.useRef(!1),ga=uo.default.useMemo(()=>{let W={};for(let fa of Z)W[fa.id]=fa.name;return W},[Z]),Oa=uo.default.useMemo(()=>{if(!A||y===null)return null;if(y==="unassigned")return new Set(Z.filter((W)=>!W.projectId).map((W)=>W.id));return new Set(Z.filter((W)=>W.projectId===y).map((W)=>W.id))},[Z,y,A]);uo.useEffect(()=>{if(Na.current||!h)return;Na.current=!0,fetch("/api/notifications/count",{headers:{Authorization:`Bearer ${h}`}}).then((W)=>W.json()).then((W)=>I(W.count||0)).catch(()=>{})},[h]),uo.useEffect(()=>{if(oa===0)return;let W=ia.find((fa)=>fa.level==="error"||fa.category==="ERROR"||fa.category==="system"&&fa.type==="agent_stopped");if(W&&(!Oa||Oa.has(W.agent_id)))I((fa)=>fa+1)},[oa]);let x=uo.useRef(y);uo.useEffect(()=>{if(x.current===y)return;if(x.current=y,!h)return;fetch("/api/notifications/count",{headers:{Authorization:`Bearer ${h}`}}).then((W)=>W.json()).then((W)=>{if(!Oa)I(W.count||0);else fetch("/api/notifications?limit=200",{headers:{Authorization:`Bearer ${h}`}}).then((fa)=>fa.json()).then((fa)=>{let P=(fa.notifications||[]).filter((n)=>!n.seen&&Oa.has(n.agent_id));I(P.length)}).catch(()=>{})}).catch(()=>{})},[y,h,Oa]);let na=uo.useCallback(async()=>{if(D((W)=>!W),!M)try{let W={"Content-Type":"application/json"};if(h)W.Authorization=`Bearer ${h}`;let n=(await(await fetch("/api/notifications?limit=50",{headers:W})).json()).notifications||[];if(Oa)n=n.filter((ra)=>Oa.has(ra.agent_id));if(_a(n),F>0)await fetch("/api/notifications/mark-seen",{method:"POST",headers:W,body:JSON.stringify({all:!0})}),I(0)}catch{}},[M,F,h,Oa]),O=(W)=>{G(W),T(!1)},ta=()=>{if(y===null)return"All Projects";if(y==="unassigned")return"Unassigned";return H?.name||"Select Project"},L=()=>{if(y===null)return"var(--color-text-muted)";if(y==="unassigned")return"var(--color-text-secondary)";return H?.color||"#6366f1"};return ca.jsxDEV("header",{className:"px-4 md:px-6 py-4 flex-shrink-0",style:{borderBottom:"1px solid var(--color-border)"},children:ca.jsxDEV("div",{className:"flex items-center justify-between",children:[ca.jsxDEV("div",{className:"flex items-center gap-3",children:[ca.jsxDEV("button",{onClick:c,className:"p-2 -ml-2 transition md:hidden",style:{color:"var(--color-text-muted)"},children:ca.jsxDEV(g9,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),ca.jsxDEV("div",{className:"flex items-center gap-2",children:[ca.jsxDEV("span",{style:{color:"var(--color-accent)"},children:">_"},void 0,!1,void 0,this),ca.jsxDEV("span",{className:"text-xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A&&N.length>0&&ca.jsxDEV("div",{className:"relative ml-2 md:ml-4",children:[ca.jsxDEV("button",{onClick:()=>T(!K),className:"flex items-center gap-2 px-3 py-1.5 btn transition text-sm",style:{border:"1px solid var(--color-border-light)",backgroundColor:"var(--color-surface)"},children:[ca.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:L()}},void 0,!1,void 0,this),ca.jsxDEV("span",{className:"hidden sm:inline max-w-[120px] md:max-w-[180px] truncate",children:ta()},void 0,!1,void 0,this),ca.jsxDEV(F9,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K&&ca.jsxDEV("div",{className:"absolute left-0 top-full mt-1 w-56 card shadow-xl z-50",style:{backgroundColor:"var(--color-surface)"},children:ca.jsxDEV("div",{className:"py-1 max-h-64 overflow-y-auto",children:[ca.jsxDEV("button",{onClick:()=>O(null),className:"w-full px-4 py-2 text-left text-sm flex items-center gap-2 transition",style:{backgroundColor:y===null?"var(--color-surface-raised)":"transparent",color:y===null?"var(--color-accent)":"var(--color-text)"},children:[ca.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:"var(--color-text-muted)"}},void 0,!1,void 0,this),"All Projects"]},void 0,!0,void 0,this),N.map((W)=>ca.jsxDEV("button",{onClick:()=>O(W.id),className:"w-full px-4 py-2 text-left text-sm flex items-center gap-2 transition",style:{backgroundColor:y===W.id?"var(--color-surface-raised)":"transparent",color:y===W.id?"var(--color-accent)":"var(--color-text)"},children:[ca.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full flex-shrink-0",style:{backgroundColor:W.color}},void 0,!1,void 0,this),ca.jsxDEV("span",{className:"truncate",children:W.name},void 0,!1,void 0,this),ca.jsxDEV("span",{className:"ml-auto text-xs",style:{color:"var(--color-text-muted)"},children:W.agentCount},void 0,!1,void 0,this)]},W.id,!0,void 0,this)),g>0&&ca.jsxDEV("button",{onClick:()=>O("unassigned"),className:"w-full px-4 py-2 text-left text-sm flex items-center gap-2 transition",style:{backgroundColor:y==="unassigned"?"var(--color-surface-raised)":"transparent",color:y==="unassigned"?"var(--color-accent)":"var(--color-text)"},children:[ca.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:"var(--color-text-secondary)"}},void 0,!1,void 0,this),ca.jsxDEV("span",{className:"truncate",children:"Unassigned"},void 0,!1,void 0,this),ca.jsxDEV("span",{className:"ml-auto text-xs",style:{color:"var(--color-text-muted)"},children:g},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ca.jsxDEV("div",{className:"flex items-center gap-3 md:gap-4",children:[ca.jsxDEV("div",{className:"flex items-center gap-2",children:[ca.jsxDEV("span",{className:`w-2 h-2 rounded-full ${_?"bg-green-400":"bg-red-400"}`},void 0,!1,void 0,this),ca.jsxDEV("span",{className:"text-xs hidden sm:inline",style:{color:"var(--color-text-muted)"},children:_?"Live":"Offline"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ca.jsxDEV("div",{className:"relative",children:[ca.jsxDEV("button",{onClick:na,className:"relative p-2 transition rounded",style:{color:"var(--color-text-muted)"},children:[ca.jsxDEV(C9,{className:"w-5 h-5"},void 0,!1,void 0,this),F>0&&ca.jsxDEV("span",{className:"absolute flex items-center justify-center bg-red-500 text-white font-bold rounded-full pointer-events-none",style:{top:2,right:2,fontSize:9,lineHeight:1,minWidth:16,height:16,padding:"0 4px"},children:F>99?"99+":F},void 0,!1,void 0,this)]},void 0,!0,void 0,this),M&&ca.jsxDEV(ca.Fragment,{children:[ca.jsxDEV("div",{className:"fixed inset-0 z-40",onClick:()=>D(!1)},void 0,!1,void 0,this),ca.jsxDEV("div",{className:"absolute right-0 top-full mt-1 w-80 card shadow-xl z-50 max-h-96 overflow-y-auto",style:{backgroundColor:"var(--color-surface)"},children:[ca.jsxDEV("div",{className:"px-4 py-3 flex items-center justify-between",style:{borderBottom:"1px solid var(--color-border-light)"},children:[ca.jsxDEV("span",{className:"text-sm font-medium",children:"Notifications"},void 0,!1,void 0,this),s.length>0&&ca.jsxDEV("span",{className:"text-xs",style:{color:"var(--color-text-muted)"},children:[s.length," recent"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),s.length===0?ca.jsxDEV("div",{className:"px-4 py-8 text-center text-sm",style:{color:"var(--color-text-muted)"},children:"No notifications"},void 0,!1,void 0,this):ca.jsxDEV("div",{className:"py-1",children:s.map((W)=>ca.jsxDEV("div",{className:"px-4 py-3 transition",style:{borderBottom:"1px solid var(--color-border)",backgroundColor:!W.seen?"var(--color-bg-secondary)":"transparent"},children:[ca.jsxDEV("div",{className:"flex items-center gap-2 mb-1",children:[ca.jsxDEV("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${!W.seen?W.level==="error"||W.category==="ERROR"?"bg-red-400":"":""}`,style:{backgroundColor:!W.seen?W.level==="error"||W.category==="ERROR"?void 0:"var(--color-accent)":"var(--color-surface-raised)"}},void 0,!1,void 0,this),ca.jsxDEV("span",{className:"text-xs font-medium truncate",style:{color:!W.seen?"var(--color-text)":"var(--color-text-muted)"},children:W.category==="system"&&W.type==="agent_stopped"?"Agent Stopped":W.category==="ERROR"?"Error":`${W.category} / ${W.type}`},void 0,!1,void 0,this),ca.jsxDEV("span",{className:"text-[10px] ml-auto flex-shrink-0",style:{color:"var(--color-text-faint)"},children:jY(W.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ca.jsxDEV("div",{className:"text-xs truncate",style:{color:!W.seen?"var(--color-text-secondary)":"var(--color-text-muted)"},children:W.error||W.data?.message||W.data?.error||`${W.type} event`},void 0,!1,void 0,this),ca.jsxDEV("div",{className:"text-[10px] mt-1",style:{color:"var(--color-text-faint)"},children:ga[W.agent_id]||W.agent_id.slice(0,8)},void 0,!1,void 0,this)]},W.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ca.jsxDEV(L9,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function jY(c){let Z=Date.now()-new Date(c).getTime(),_=Math.floor(Z/60000);if(_<1)return"just now";if(_<60)return`${_}m ago`;let d=Math.floor(_/60);if(d<24)return`${d}h ago`;return`${Math.floor(d/24)}d ago`}var S9=Za(Eo(),1);var za=Za(vo(),1);function Z1({route:c,agentCount:Z,taskCount:_,onNavigate:d,isOpen:N,onClose:y}){let{user:H,logout:G}=Go(),[g,A]=S9.useState(!1),K=(M)=>{d(M),y?.()},T=async()=>{await G(),A(!1)};return za.jsxDEV(za.Fragment,{children:[N&&za.jsxDEV("div",{className:"fixed inset-0 bg-black/60 z-40 md:hidden",onClick:y},void 0,!1,void 0,this),za.jsxDEV("aside",{className:`
|
|
216
|
+
fixed inset-y-0 left-0 z-50 w-64 p-4 flex flex-col transform transition-transform duration-200 ease-in-out
|
|
217
|
+
md:relative md:w-56 md:translate-x-0 md:z-auto
|
|
218
|
+
${N?"translate-x-0":"-translate-x-full"}
|
|
219
|
+
`,style:{backgroundColor:"var(--color-bg)",borderRight:"1px solid var(--color-border)"},children:[za.jsxDEV("div",{className:"flex items-center justify-between mb-4 md:hidden",children:[za.jsxDEV("div",{className:"flex items-center gap-2",children:[za.jsxDEV("span",{style:{color:"var(--color-accent)"},children:">_"},void 0,!1,void 0,this),za.jsxDEV("span",{className:"text-lg tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),za.jsxDEV("button",{onClick:y,className:"p-2 transition",style:{color:"var(--color-text-muted)"},children:za.jsxDEV(wt,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),za.jsxDEV("nav",{className:"space-y-1 flex-1",children:[za.jsxDEV(Dp,{icon:za.jsxDEV(Hi,{},void 0,!1,void 0,this),label:"Dashboard",active:c==="dashboard",onClick:()=>K("dashboard")},void 0,!1,void 0,this),za.jsxDEV(Dp,{icon:za.jsxDEV(Wi,{},void 0,!1,void 0,this),label:"Agents",active:c==="agents",onClick:()=>K("agents"),badge:Z>0?String(Z):void 0},void 0,!1,void 0,this),za.jsxDEV(Dp,{icon:za.jsxDEV(n9,{},void 0,!1,void 0,this),label:"Threads",active:c==="threads",onClick:()=>K("threads")},void 0,!1,void 0,this),za.jsxDEV(Dp,{icon:za.jsxDEV(X1,{},void 0,!1,void 0,this),label:"Activity",active:c==="activity",onClick:()=>K("activity")},void 0,!1,void 0,this),za.jsxDEV(Dp,{icon:za.jsxDEV(Mm,{},void 0,!1,void 0,this),label:"Tasks",active:c==="tasks",onClick:()=>K("tasks"),badge:_&&_>0?String(_):void 0},void 0,!1,void 0,this),za.jsxDEV(Dp,{icon:za.jsxDEV(ct,{},void 0,!1,void 0,this),label:"MCP",active:c==="mcp",onClick:()=>K("mcp")},void 0,!1,void 0,this),za.jsxDEV(Dp,{icon:za.jsxDEV(Y1,{},void 0,!1,void 0,this),label:"Skills",active:c==="skills",onClick:()=>K("skills")},void 0,!1,void 0,this),za.jsxDEV(Dp,{icon:za.jsxDEV(T9,{},void 0,!1,void 0,this),label:"Connections",active:c==="connections",onClick:()=>K("connections")},void 0,!1,void 0,this),za.jsxDEV(Dp,{icon:za.jsxDEV(A9,{},void 0,!1,void 0,this),label:"Tests",active:c==="tests",onClick:()=>K("tests")},void 0,!1,void 0,this),za.jsxDEV(Dp,{icon:za.jsxDEV(P9,{},void 0,!1,void 0,this),label:"Telemetry",active:c==="telemetry",onClick:()=>K("telemetry")},void 0,!1,void 0,this),za.jsxDEV(Dp,{icon:za.jsxDEV(I9,{},void 0,!1,void 0,this),label:"API",active:c==="api",onClick:()=>K("api")},void 0,!1,void 0,this),za.jsxDEV(Dp,{icon:za.jsxDEV(di,{},void 0,!1,void 0,this),label:"Settings",active:c==="settings",onClick:()=>K("settings")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H&&za.jsxDEV("div",{className:"relative pt-3 mt-3",style:{borderTop:"1px solid var(--color-border)"},children:[za.jsxDEV("button",{onClick:()=>A(!g),className:"w-full flex items-center gap-3 px-3 py-2 rounded transition",style:{color:"var(--color-text)"},onMouseEnter:(M)=>M.currentTarget.style.backgroundColor="var(--color-surface)",onMouseLeave:(M)=>M.currentTarget.style.backgroundColor="transparent",children:[za.jsxDEV("div",{className:"w-8 h-8 rounded-full flex items-center justify-center text-black font-medium text-sm flex-shrink-0",style:{backgroundColor:"var(--color-accent)"},children:H.username.charAt(0).toUpperCase()},void 0,!1,void 0,this),za.jsxDEV("div",{className:"flex-1 min-w-0 text-left",children:[za.jsxDEV("p",{className:"text-sm font-medium truncate",children:H.username},void 0,!1,void 0,this),za.jsxDEV("p",{className:"text-xs",style:{color:"var(--color-text-faint)"},children:H.role},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),g&&za.jsxDEV(za.Fragment,{children:[za.jsxDEV("div",{className:"fixed inset-0 z-40",onClick:()=>A(!1)},void 0,!1,void 0,this),za.jsxDEV("div",{className:"absolute left-3 bottom-full mb-1 w-48 card shadow-xl z-50",style:{backgroundColor:"var(--color-surface)"},children:za.jsxDEV("button",{onClick:T,className:"w-full px-4 py-2.5 text-left text-sm text-red-400 transition rounded-lg",onMouseEnter:(M)=>M.currentTarget.style.backgroundColor="var(--color-surface-raised)",onMouseLeave:(M)=>M.currentTarget.style.backgroundColor="transparent",children:"Sign out"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Dp({icon:c,label:Z,active:_,onClick:d,badge:N}){return za.jsxDEV("button",{onClick:d,className:"w-full flex items-center gap-3 px-3 py-2 font-medium transition",style:{borderRadius:"var(--radius-button)",backgroundColor:_?"var(--color-surface)":"transparent",color:_?"var(--color-text)":"var(--color-text-muted)"},onMouseEnter:(y)=>{if(!_)y.currentTarget.style.backgroundColor="var(--color-surface)",y.currentTarget.style.color="var(--color-text-secondary)"},onMouseLeave:(y)=>{if(!_)y.currentTarget.style.backgroundColor="transparent",y.currentTarget.style.color="var(--color-text-muted)"},children:[c,Z,N&&za.jsxDEV("span",{className:"ml-auto text-xs px-2 py-0.5 rounded-full",style:{backgroundColor:"var(--color-surface-raised)",color:"var(--color-text-secondary)"},children:N},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var x5=Za(vo(),1);function G1({message:c,onDismiss:Z}){return x5.jsxDEV("div",{className:"bg-red-500/10 border-b border-red-500/30 px-6 py-3 text-red-400 text-sm flex items-center justify-between",children:[x5.jsxDEV("span",{children:c},void 0,!1,void 0,this),x5.jsxDEV("button",{onClick:Z,className:"hover:text-red-300",children:x5.jsxDEV(wt,{className:"w-4 h-4"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var V5=Za(Eo(),1);var yo=Za(vo(),1);function _1(){let{login:c}=Go(),[Z,_]=V5.useState(""),[d,N]=V5.useState(""),[y,H]=V5.useState(null),[G,g]=V5.useState(!1);return yo.jsxDEV("div",{className:"min-h-screen bg-[var(--color-bg)] text-[var(--color-text)] flex items-center justify-center p-8",children:yo.jsxDEV("div",{className:"w-full max-w-md",children:[yo.jsxDEV("div",{className:"text-center mb-8",children:[yo.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[yo.jsxDEV("span",{className:"text-[var(--color-accent)] text-3xl",children:">_"},void 0,!1,void 0,this),yo.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),yo.jsxDEV("p",{className:"text-[var(--color-text-muted)]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),yo.jsxDEV("div",{className:"bg-[var(--color-surface)] card p-8",children:[yo.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome back"},void 0,!1,void 0,this),yo.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:"Sign in to continue to apteva"},void 0,!1,void 0,this),yo.jsxDEV("form",{onSubmit:async(K)=>{K.preventDefault(),H(null),g(!0);let T=await c(Z,d);if(!T.success)H(T.error||"Login failed");g(!1)},className:"space-y-4",children:[yo.jsxDEV("div",{children:[yo.jsxDEV("label",{htmlFor:"username",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Username"},void 0,!1,void 0,this),yo.jsxDEV("input",{id:"username",type:"text",value:Z,onChange:(K)=>_(K.target.value),placeholder:"Enter your username",autoFocus:!0,required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),yo.jsxDEV("div",{children:[yo.jsxDEV("label",{htmlFor:"password",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Password"},void 0,!1,void 0,this),yo.jsxDEV("input",{id:"password",type:"password",value:d,onChange:(K)=>N(K.target.value),placeholder:"Enter your password",required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),y&&yo.jsxDEV("div",{className:"p-3 bg-red-500/10 border border-red-500/30 rounded text-red-400 text-sm",children:y},void 0,!1,void 0,this),yo.jsxDEV("button",{type:"submit",disabled:G||!Z||!d,className:"w-full bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:G?"Signing in...":"Sign In"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var pr=Za(Eo(),1),ea=Za(vo(),1);function q1({onComplete:c}){let[Z,_]=pr.useState(""),[d,N]=pr.useState(""),[y,H]=pr.useState(""),[G,g]=pr.useState(""),[A,K]=pr.useState(!1),[T,M]=pr.useState(null),[D,F]=pr.useState(!1);return ea.jsxDEV(ea.Fragment,{children:[ea.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Create your account"},void 0,!1,void 0,this),ea.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:"Set up your admin account to get started with apteva."},void 0,!1,void 0,this),ea.jsxDEV("form",{onSubmit:async(s)=>{if(s.preventDefault(),M(null),d!==y){M("Passwords do not match");return}F(!0);try{let _a=await fetch("/api/onboarding/user",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:Z,password:d,...G&&{email:G}})}),oa=await _a.json();if(!_a.ok){M(oa.error||"Failed to create account"),F(!1);return}let ia=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({username:Z,password:d})});if(!ia.ok){M("Account created but login failed. Please try logging in."),F(!1);return}let h=await ia.json();if(h.accessToken)sessionStorage.setItem("accessToken",h.accessToken);c({username:Z})}catch(_a){M("Failed to create account"),F(!1)}},className:"space-y-4",children:[ea.jsxDEV("div",{children:[ea.jsxDEV("label",{htmlFor:"username",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Username"},void 0,!1,void 0,this),ea.jsxDEV("input",{id:"username",type:"text",value:Z,onChange:(s)=>_(s.target.value),placeholder:"Choose a username",autoFocus:!0,required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this),ea.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"3-20 characters, letters, numbers, underscore"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ea.jsxDEV("div",{children:[ea.jsxDEV("label",{htmlFor:"password",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Password"},void 0,!1,void 0,this),ea.jsxDEV("input",{id:"password",type:"password",value:d,onChange:(s)=>N(s.target.value),placeholder:"Enter a password",required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this),ea.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"Min 8 characters, uppercase, lowercase, number"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ea.jsxDEV("div",{children:[ea.jsxDEV("label",{htmlFor:"confirmPassword",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:"Confirm Password"},void 0,!1,void 0,this),ea.jsxDEV("input",{id:"confirmPassword",type:"password",value:y,onChange:(s)=>H(s.target.value),placeholder:"Confirm your password",required:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!A?ea.jsxDEV("button",{type:"button",onClick:()=>K(!0),className:"text-sm text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] transition",children:"+ Add email for password recovery (optional)"},void 0,!1,void 0,this):ea.jsxDEV("div",{children:[ea.jsxDEV("label",{htmlFor:"email",className:"block text-sm text-[var(--color-text-secondary)] mb-1",children:["Email ",ea.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"(optional)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ea.jsxDEV("input",{id:"email",type:"email",value:G,onChange:(s)=>g(s.target.value),placeholder:"For password recovery only",className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)]"},void 0,!1,void 0,this),ea.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:"Only used for password recovery, never shared"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),T&&ea.jsxDEV("div",{className:"p-3 bg-red-500/10 border border-red-500/30 rounded text-red-400 text-sm",children:T},void 0,!1,void 0,this),ea.jsxDEV("button",{type:"submit",disabled:D||!Z||!d||!y,className:"w-full bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:D?"Creating account...":"Create Account"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ea.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-4 text-center",children:"This will be your admin account with full access to apteva."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var jp=Za(Eo(),1);var aa=Za(vo(),1);function D5({onComplete:c,needsAccount:Z=!1}){let[_,d]=jp.useState(Z?0:1),[N,y]=jp.useState([]),[H,G]=jp.useState(null),[g,A]=jp.useState(""),[K,T]=jp.useState(!1),[M,D]=jp.useState(!1),[F,I]=jp.useState(null),[s,_a]=jp.useState(null),[oa,ia]=jp.useState(!1),h=()=>{let ta=sessionStorage.getItem("accessToken");return ta?{Authorization:`Bearer ${ta}`}:{}};jp.useEffect(()=>{if(Z&&!oa&&_===0)return;fetch("/api/providers",{headers:h()}).then((ta)=>ta.json()).then((ta)=>{let L=(ta.providers||[]).filter((W)=>W.type==="llm");y(L)})},[oa,_,Z]);let Na=N.filter((ta)=>ta.hasKey),ga=async()=>{if(!H||!g)return;T(!0),I(null),_a(null);try{D(!0);let L=await(await fetch(`/api/keys/${H}/test`,{method:"POST",headers:{"Content-Type":"application/json",...h()},body:JSON.stringify({key:g})})).json();if(D(!1),!L.valid){I(L.error||"API key is invalid"),T(!1);return}let W=await fetch(`/api/keys/${H}`,{method:"POST",headers:{"Content-Type":"application/json",...h()},body:JSON.stringify({key:g})}),fa=await W.json();if(!W.ok)I(fa.error||"Failed to save key");else{_a("API key saved successfully!"),A("");let n=await(await fetch("/api/providers",{headers:h()})).json();y(n.providers||[]),G(null)}}catch(ta){I("Failed to save key")}T(!1)},Oa=async()=>{try{let ta=await fetch("/api/projects",{method:"POST",headers:{"Content-Type":"application/json",...h()},body:JSON.stringify({name:"My Project",description:"Default project for organizing agents",color:"#f97316"})});if(ta.ok){let L=await ta.json();if(L.project?.id)localStorage.setItem("apteva_current_project",L.project.id)}}catch(ta){console.error("Failed to create default project:",ta)}await fetch("/api/onboarding/complete",{method:"POST",headers:h()}),c()},x=()=>{ia(!0),d(1)},na=Z?3:2,O=Z?_:_-1;return aa.jsxDEV("div",{className:"min-h-screen bg-[var(--color-bg)] text-[var(--color-text)] flex items-center justify-center p-8",children:aa.jsxDEV("div",{className:"w-full max-w-2xl",children:[aa.jsxDEV("div",{className:"text-center mb-8",children:[aa.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-2",children:[aa.jsxDEV("span",{className:"text-[var(--color-accent)] text-3xl",children:">_"},void 0,!1,void 0,this),aa.jsxDEV("span",{className:"text-3xl tracking-wider",children:"apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),aa.jsxDEV("p",{className:"text-[var(--color-text-muted)]",children:"Run AI agents locally"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),aa.jsxDEV("div",{className:"flex items-center justify-center gap-2 mb-8",children:[Z&&aa.jsxDEV(aa.Fragment,{children:[aa.jsxDEV("div",{className:`w-3 h-3 rounded-full ${_>=0?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this),aa.jsxDEV("div",{className:`w-16 h-0.5 ${_>=1?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),aa.jsxDEV("div",{className:`w-3 h-3 rounded-full ${_>=1?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this),aa.jsxDEV("div",{className:`w-16 h-0.5 ${_>=2?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this),aa.jsxDEV("div",{className:`w-3 h-3 rounded-full ${_>=2?"bg-[var(--color-accent)]":"bg-[var(--color-surface-raised)]"}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this),aa.jsxDEV("div",{className:"bg-[var(--color-surface)] card p-8",children:[_===0&&Z&&aa.jsxDEV(q1,{onComplete:x},void 0,!1,void 0,this),_===1&&aa.jsxDEV(EY,{providers:N,configuredProviders:Na,selectedProvider:H,apiKey:g,saving:K,testing:M,error:F,success:s,onSelectProvider:G,onApiKeyChange:A,onSaveKey:ga,onContinue:()=>d(2)},void 0,!1,void 0,this),_===2&&aa.jsxDEV(eY,{configuredProviders:Na,onAddMore:()=>d(1),onComplete:Oa},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function EY({providers:c,configuredProviders:Z,selectedProvider:_,apiKey:d,saving:N,testing:y,error:H,success:G,onSelectProvider:g,onApiKeyChange:A,onSaveKey:K,onContinue:T}){let M=c.find((D)=>D.id===_);if(_&&M)return aa.jsxDEV(aa.Fragment,{children:[aa.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:["Add ",M.name," Key"]},void 0,!0,void 0,this),aa.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:"Enter your API key below. It will be encrypted and stored locally."},void 0,!1,void 0,this),aa.jsxDEV("div",{className:"mb-6",children:[aa.jsxDEV("div",{className:"p-4 rounded border border-[var(--color-accent)] bg-[var(--color-accent-5)] mb-4",children:aa.jsxDEV("div",{className:"flex items-center justify-between",children:[aa.jsxDEV("div",{children:[aa.jsxDEV("p",{className:"font-medium",children:M.name},void 0,!1,void 0,this),aa.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:[M.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),aa.jsxDEV("a",{href:M.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-[#3b82f6] hover:underline",children:"Get API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),aa.jsxDEV("div",{className:"space-y-3",children:[aa.jsxDEV("input",{type:"password",value:d,onChange:(D)=>A(D.target.value),placeholder:"Enter your API key...",autoFocus:!0,className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-4 py-3 focus:outline-none focus:border-[var(--color-accent)] text-lg"},void 0,!1,void 0,this),H&&aa.jsxDEV("p",{className:"text-red-400 text-sm",children:H},void 0,!1,void 0,this),G&&aa.jsxDEV("p",{className:"text-green-400 text-sm",children:G},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),aa.jsxDEV("div",{className:"flex gap-3",children:[aa.jsxDEV("button",{onClick:()=>{g(null),A("")},className:"flex-1 border border-[var(--color-border-light)] hover:border-[var(--color-text-muted)] px-4 py-3 rounded font-medium transition",children:"Back"},void 0,!1,void 0,this),aa.jsxDEV("button",{onClick:K,disabled:!d||N,className:"flex-1 bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-3 rounded font-medium transition",children:y?"Testing...":N?"Saving...":"Save API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this);return aa.jsxDEV(aa.Fragment,{children:[aa.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"Welcome to apteva"},void 0,!1,void 0,this),aa.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:"To get started, you'll need to add at least one AI provider API key. Your keys are encrypted and stored locally."},void 0,!1,void 0,this),aa.jsxDEV("div",{className:"space-y-3 mb-6",children:c.map((D)=>aa.jsxDEV(sY,{provider:D,selected:!1,onSelect:()=>!D.hasKey&&g(D.id)},D.id,!1,void 0,this))},void 0,!1,void 0,this),aa.jsxDEV("button",{onClick:T,disabled:Z.length===0,className:"w-full bg-[var(--color-surface-raised)] hover:bg-[var(--color-surface-raised)] disabled:opacity-50 disabled:cursor-not-allowed px-4 py-3 rounded font-medium transition",children:Z.length===0?"Add at least one API key to continue":`Continue with ${Z.length} provider${Z.length>1?"s":""}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function sY({provider:c,selected:Z,onSelect:_}){return aa.jsxDEV("div",{onClick:_,className:`p-4 rounded border transition cursor-pointer ${c.hasKey?"border-green-500/30 bg-green-500/5":Z?"border-[var(--color-accent)] bg-[var(--color-accent-5)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:aa.jsxDEV("div",{className:"flex items-center justify-between",children:[aa.jsxDEV("div",{children:[aa.jsxDEV("p",{className:"font-medium",children:c.name},void 0,!1,void 0,this),aa.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:[c.models.length," models available"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),c.hasKey?aa.jsxDEV("span",{className:"text-green-400 text-sm flex items-center gap-1",children:[aa.jsxDEV(Q1,{},void 0,!1,void 0,this),"Configured (",c.keyHint,")"]},void 0,!0,void 0,this):aa.jsxDEV("a",{href:c.docsUrl,target:"_blank",rel:"noopener noreferrer",onClick:(d)=>d.stopPropagation(),className:"text-sm text-[#3b82f6] hover:underline",children:"Get API Key"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function eY({configuredProviders:c,onAddMore:Z,onComplete:_}){return aa.jsxDEV(aa.Fragment,{children:[aa.jsxDEV("h2",{className:"text-2xl font-semibold mb-2",children:"You're all set!"},void 0,!1,void 0,this),aa.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-6",children:["You've configured ",c.length," provider",c.length>1?"s":"",". You can add more providers later in Settings."]},void 0,!0,void 0,this),aa.jsxDEV("div",{className:"space-y-2 mb-6",children:c.map((d)=>aa.jsxDEV("div",{className:"flex items-center gap-3 p-3 bg-[var(--color-bg)] rounded",children:[aa.jsxDEV(Q1,{className:"w-5 h-5 text-green-400"},void 0,!1,void 0,this),aa.jsxDEV("span",{children:d.name},void 0,!1,void 0,this),aa.jsxDEV("span",{className:"text-[var(--color-text-muted)] text-sm",children:["(",d.keyHint,")"]},void 0,!0,void 0,this)]},d.id,!0,void 0,this))},void 0,!1,void 0,this),aa.jsxDEV("div",{className:"flex gap-3",children:[aa.jsxDEV("button",{onClick:Z,className:"flex-1 border border-[var(--color-border-light)] hover:border-[var(--color-accent)] px-4 py-3 rounded font-medium transition",children:"Add More"},void 0,!1,void 0,this),aa.jsxDEV("button",{onClick:_,className:"flex-1 bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] text-black px-4 py-3 rounded font-medium transition",children:"Start Using apteva"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var u9=Za(Eo(),1);var bo=Za(vo(),1),oX=[{key:"memory",icon:m0,label:"Memory"},{key:"tasks",icon:Mm,label:"Tasks"},{key:"files",icon:b0,label:"Files"},{key:"vision",icon:t0,label:"Vision"},{key:"operator",icon:r0,label:"Operator"},{key:"mcp",icon:ct,label:"MCP"},{key:"realtime",icon:v0,label:"Realtime"},{key:"agents",icon:f0,label:"Multi-Agent"}],K1=u9.default.memo(function({agent:Z,selected:_,onSelect:d,onToggle:N,showProject:y}){let H=oX.filter((F)=>Z.features?.[F.key]),G=Z.mcpServerDetails||[],g=Z.skillDetails||[],{isActive:A,label:K}=B1(Z.id),{projects:T}=bp(),M=Z.projectId?T.find((F)=>F.id===Z.projectId):null,D=Z.subscriptions||[];return bo.jsxDEV("div",{onClick:d,className:`bg-[var(--color-surface)] card p-5 transition cursor-pointer flex flex-col h-full ${_?"!border-[var(--color-accent)]":"hover:border-[var(--color-border-light)]"}`,children:[bo.jsxDEV("div",{className:"flex items-start justify-between mb-3",children:[bo.jsxDEV("div",{children:[bo.jsxDEV("h3",{className:"font-semibold text-lg",children:Z.name},void 0,!1,void 0,this),bo.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:[Z.provider," / ",Z.model,Z.port&&bo.jsxDEV("span",{className:"text-[var(--color-text-faint)]",children:[" · :",Z.port]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),y&&M&&bo.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] flex items-center gap-1.5 mt-1",children:[bo.jsxDEV("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:M.color}},void 0,!1,void 0,this),M.name]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),bo.jsxDEV(pX,{status:Z.status,isActive:A&&Z.status==="running",activityLabel:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.length>0&&bo.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:H.map(({key:F,icon:I,label:s})=>bo.jsxDEV("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 bg-[var(--color-accent-10)] text-[var(--color-accent-70)] text-xs",style:{borderRadius:"var(--radius-badge)"},title:s,children:[bo.jsxDEV(I,{className:"w-3 h-3"},void 0,!1,void 0,this),s]},F,!0,void 0,this))},void 0,!1,void 0,this),G.length>0&&bo.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:G.map((F)=>{let I=F.type==="http"&&F.url||F.status==="running";return bo.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${I?"bg-green-500/10 text-green-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,title:`MCP: ${F.name} (${I?"available":F.status})`,children:[bo.jsxDEV(ct,{className:"w-3 h-3"},void 0,!1,void 0,this),F.name]},F.id,!0,void 0,this)})},void 0,!1,void 0,this),g.length>0&&bo.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:g.map((F)=>bo.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${F.enabled?"bg-purple-500/10 text-purple-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,title:`Skill: ${F.name} v${F.version}`,children:[bo.jsxDEV(Y1,{className:"w-3 h-3"},void 0,!1,void 0,this),F.name]},F.id,!0,void 0,this))},void 0,!1,void 0,this),D.length>0&&bo.jsxDEV("div",{className:"flex flex-wrap gap-1.5 mb-3",children:D.map((F)=>bo.jsxDEV("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs ${F.enabled?"bg-cyan-500/10 text-cyan-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,title:`Trigger: ${F.trigger_slug.replace(/_/g," ")}`,children:[bo.jsxDEV(X1,{className:"w-3 h-3"},void 0,!1,void 0,this),F.trigger_slug.replace(/_/g," ")]},F.id,!0,void 0,this))},void 0,!1,void 0,this),bo.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] line-clamp-2 mb-4 flex-1",children:Z.systemPrompt},void 0,!1,void 0,this),bo.jsxDEV("button",{onClick:N,disabled:Z.status==="starting"||Z.status==="stopping",className:`w-full px-3 py-1.5 btn text-sm font-medium transition mt-auto ${Z.status==="starting"||Z.status==="stopping"?"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)] cursor-wait":Z.status==="running"?"bg-red-500/15 text-red-500 hover:bg-red-500/25 border border-red-500/20":"bg-[#3b82f6]/20 text-[#3b82f6] hover:bg-[#3b82f6]/30"}`,children:Z.status==="starting"?"Starting...":Z.status==="stopping"?"Stopping...":Z.status==="running"?"Stop":"Start"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});function pX({status:c,isActive:Z,activityLabel:_}){if(c==="running"&&Z&&_)return bo.jsxDEV("span",{className:"px-2 py-1 text-xs font-medium bg-green-500/20 text-green-400 animate-pulse",style:{borderRadius:"var(--radius-badge)"},children:_},void 0,!1,void 0,this);return bo.jsxDEV("span",{className:`px-2 py-1 text-xs font-medium ${c==="starting"||c==="stopping"?"bg-yellow-500/20 text-yellow-400 animate-pulse":c==="running"?"bg-[#3b82f6]/20 text-[#3b82f6]":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,style:{borderRadius:"var(--radius-badge)"},children:c},void 0,!1,void 0,this)}var j5=Za(Eo(),1);var Ya=Za(vo(),1),mX=[{key:"memory",label:"Memory",description:"Persistent recall",icon:m0},{key:"tasks",label:"Tasks",description:"Schedule and execute tasks",icon:Mm},{key:"files",label:"Files",description:"File storage and management",icon:b0},{key:"vision",label:"Vision",description:"Process images and PDFs",icon:t0},{key:"operator",label:"Operator",description:"Browser automation",icon:r0},{key:"mcp",label:"MCP",description:"External tools/services",icon:ct},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:v0},{key:"agents",label:"Multi-Agent",description:"Communicate with peer agents",icon:f0}];function H1({form:c,providers:Z,configuredProviders:_,onFormChange:d,onProviderChange:N,onCreate:y,onClose:H,onGoToSettings:G}){let{projects:g,currentProjectId:A}=bp(),K=Z.find((h)=>h.id===c.provider),[T,M]=j5.default.useState([]),[D,F]=j5.default.useState(!1);j5.default.useEffect(()=>{if(c.provider==="ollama")F(!0),fetch("/api/providers/ollama/models").then((h)=>h.json()).then((h)=>{if(h.models&&h.models.length>0){if(M(h.models.map((Na)=>({value:Na.value,label:Na.label||Na.value}))),!c.model&&h.models.length>0)d({...c,model:h.models[0].value})}}).catch(()=>M([])).finally(()=>F(!1))},[c.provider]);let I=_.filter((h)=>h.type==="llm").map((h)=>({value:h.id,label:h.name})),s=c.provider==="ollama"&&T.length>0?T:K?.models.map((h)=>({value:h.value,label:h.label,recommended:h.recommended}))||[],_a=g.map((h)=>({value:h.id,label:h.name}));j5.default.useEffect(()=>{if(c.projectId===void 0&&A&&A!=="unassigned")d({...c,projectId:A})},[A]);let oa=(h)=>{if(h==="agents")if(typeof c.features.agents==="boolean"?c.features.agents:c.features.agents?.enabled??!1)d({...c,features:{...c.features,agents:!1}});else d({...c,features:{...c.features,agents:{enabled:!0,group:c.projectId||void 0}}});else d({...c,features:{...c.features,[h]:!c.features[h]}})},ia=()=>{let h=c.features.agents;if(typeof h==="boolean")return h;return h?.enabled??!1};return Ya.jsxDEV(Ui,{children:[Ya.jsxDEV("h2",{className:"text-xl font-semibold mb-4",children:"Create New Agent"},void 0,!1,void 0,this),I.length===0?Ya.jsxDEV(tX,{onGoToSettings:G},void 0,!1,void 0,this):Ya.jsxDEV(Ya.Fragment,{children:[Ya.jsxDEV("div",{className:"space-y-4",children:[Ya.jsxDEV(Dr,{label:"Name",children:Ya.jsxDEV("input",{type:"text",value:c.name,onChange:(h)=>d({...c,name:h.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-3 py-2 focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]",placeholder:"My Agent"},void 0,!1,void 0,this)},void 0,!1,void 0,this),g.length>0&&Ya.jsxDEV(Dr,{label:"Project",children:Ya.jsxDEV(lt,{value:c.projectId||"",options:_a,onChange:(h)=>d({...c,projectId:h||null}),placeholder:"Select project..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ya.jsxDEV(Dr,{label:"Provider",children:Ya.jsxDEV(lt,{value:c.provider,options:I,onChange:N,placeholder:"Select provider..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ya.jsxDEV(Dr,{label:"Model",children:D?Ya.jsxDEV("div",{className:"text-sm text-[var(--color-text-muted)] py-2",children:"Loading Ollama models..."},void 0,!1,void 0,this):c.provider==="ollama"&&s.length===0?Ya.jsxDEV("div",{className:"text-sm text-yellow-400/80 py-2",children:["No models found. Run ",Ya.jsxDEV("code",{className:"bg-[var(--color-surface-raised)] px-1 rounded",children:"ollama pull llama3.3"},void 0,!1,void 0,this)," to download a model."]},void 0,!0,void 0,this):Ya.jsxDEV(lt,{value:c.model,options:s,onChange:(h)=>d({...c,model:h}),placeholder:"Select model..."},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ya.jsxDEV(Dr,{label:"System Prompt",children:Ya.jsxDEV("textarea",{value:c.systemPrompt,onChange:(h)=>d({...c,systemPrompt:h.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-3 py-2 h-24 resize-none focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ya.jsxDEV(Dr,{label:"Features",children:Ya.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:mX.map(({key:h,label:Na,description:ga,icon:Oa})=>{let x=h==="agents"?ia():!!c.features[h];return Ya.jsxDEV("button",{type:"button",onClick:()=>oa(h),className:`flex items-center gap-3 p-3 btn border text-left transition ${x?"border-[var(--color-accent)] bg-[var(--color-accent-10)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:[Ya.jsxDEV(Oa,{className:`w-5 h-5 flex-shrink-0 ${x?"text-[var(--color-accent)]":"text-[var(--color-text-muted)]"}`},void 0,!1,void 0,this),Ya.jsxDEV("div",{className:"flex-1 min-w-0",children:[Ya.jsxDEV("div",{className:`text-sm font-medium ${x?"text-[var(--color-accent)]":""}`,children:Na},void 0,!1,void 0,this),Ya.jsxDEV("div",{className:"text-xs text-[var(--color-text-muted)]",children:ga},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},h,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),c.provider==="anthropic"&&Ya.jsxDEV(Dr,{label:"Agent Built-in Tools",children:[Ya.jsxDEV("div",{className:"flex flex-wrap gap-2",children:[Ya.jsxDEV("button",{type:"button",onClick:()=>d({...c,features:{...c.features,builtinTools:{...c.features.builtinTools,webSearch:!c.features.builtinTools?.webSearch}}}),className:`flex items-center gap-2 px-3 py-2 btn border transition ${c.features.builtinTools?.webSearch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)] text-[var(--color-text-secondary)]"}`,children:[Ya.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Ya.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ya.jsxDEV("span",{className:"text-sm",children:"Web Search"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ya.jsxDEV("button",{type:"button",onClick:()=>d({...c,features:{...c.features,builtinTools:{...c.features.builtinTools,webFetch:!c.features.builtinTools?.webFetch}}}),className:`flex items-center gap-2 px-3 py-2 btn border transition ${c.features.builtinTools?.webFetch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)] text-[var(--color-text-secondary)]"}`,children:[Ya.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:Ya.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ya.jsxDEV("span",{className:"text-sm",children:"Web Fetch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ya.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-2",children:"Provider-native tools for real-time web access"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ya.jsxDEV("div",{className:"flex gap-3 mt-6",children:[Ya.jsxDEV("button",{onClick:H,className:"flex-1 border border-[var(--color-border-light)] hover:border-[var(--color-accent)] hover:text-[var(--color-accent)] px-4 py-2 btn font-medium transition",children:"Cancel"},void 0,!1,void 0,this),Ya.jsxDEV("button",{onClick:y,disabled:!c.name,className:"flex-1 bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 text-black px-4 py-2 btn font-medium transition",children:"Create"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Dr({label:c,children:Z}){return Ya.jsxDEV("div",{children:[Ya.jsxDEV("label",{className:"block text-sm text-[var(--color-text-muted)] mb-1",children:c},void 0,!1,void 0,this),Z]},void 0,!0,void 0,this)}function tX({onGoToSettings:c}){return Ya.jsxDEV("div",{className:"text-center py-6",children:[Ya.jsxDEV("p",{className:"text-[var(--color-text-muted)] mb-4",children:"No API keys configured. Add a provider key first."},void 0,!1,void 0,this),Ya.jsxDEV("button",{onClick:c,className:"bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] text-black px-4 py-2 rounded font-medium transition",children:"Go to Settings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var pa=Za(Eo(),1);var w=Za(vo(),1),rX=[{key:"memory",label:"Memory",description:"Persistent recall",icon:m0},{key:"tasks",label:"Tasks",description:"Schedule and execute tasks",icon:Mm},{key:"files",label:"Files",description:"File storage and management",icon:b0},{key:"vision",label:"Vision",description:"Process images and PDFs",icon:t0},{key:"operator",label:"Operator",description:"Browser automation",icon:r0},{key:"mcp",label:"MCP",description:"External tools/services",icon:ct},{key:"realtime",label:"Realtime",description:"Voice conversations",icon:v0},{key:"agents",label:"Multi-Agent",description:"Communicate with peer agents",icon:f0}];function d1({agent:c,providers:Z,onClose:_,onStartAgent:d,onUpdateAgent:N,onDeleteAgent:y}){let[H,G]=pa.useState("chat");return w.jsxDEV("div",{className:"w-full h-full flex flex-col overflow-hidden bg-[var(--color-bg)] border-l border-[var(--color-border)]",children:[w.jsxDEV("div",{className:"border-b border-[var(--color-border)] flex items-center",children:[w.jsxDEV("div",{className:"flex-1 overflow-x-auto scrollbar-hide px-2 md:px-4",children:w.jsxDEV("div",{className:"flex gap-1",children:[w.jsxDEV(i0,{active:H==="chat",onClick:()=>G("chat"),children:"Chat"},void 0,!1,void 0,this),w.jsxDEV(i0,{active:H==="threads",onClick:()=>G("threads"),children:"Threads"},void 0,!1,void 0,this),w.jsxDEV(i0,{active:H==="tasks",onClick:()=>G("tasks"),children:"Tasks"},void 0,!1,void 0,this),w.jsxDEV(i0,{active:H==="memory",onClick:()=>G("memory"),children:"Memory"},void 0,!1,void 0,this),w.jsxDEV(i0,{active:H==="files",onClick:()=>G("files"),children:"Files"},void 0,!1,void 0,this),w.jsxDEV(i0,{active:H==="settings",onClick:()=>G("settings"),children:"Settings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:_,className:"text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition p-2 flex-shrink-0 mr-2",children:w.jsxDEV(wt,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[H==="chat"&&w.jsxDEV(vX,{agent:c,onStartAgent:d},void 0,!1,void 0,this),H==="threads"&&w.jsxDEV(bX,{agent:c},void 0,!1,void 0,this),H==="tasks"&&w.jsxDEV(fX,{agent:c},void 0,!1,void 0,this),H==="memory"&&w.jsxDEV(wX,{agent:c},void 0,!1,void 0,this),H==="files"&&w.jsxDEV(cX,{agent:c},void 0,!1,void 0,this),H==="settings"&&w.jsxDEV(lX,{agent:c,providers:Z,onUpdateAgent:N,onDeleteAgent:y},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function i0({active:c,onClick:Z,children:_}){return w.jsxDEV("button",{onClick:Z,className:`px-4 py-3 text-sm font-medium border-b-2 transition ${c?"border-[var(--color-accent)] text-[var(--color-text)]":"border-transparent text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)]"}`,children:_},void 0,!1,void 0,this)}function vX({agent:c,onStartAgent:Z}){let{theme:_}=Vr();if(c.status==="running"&&c.port)return w.jsxDEV(xr,{agentId:"default",apiUrl:`/api/agents/${c.id}`,placeholder:"Message this agent...",context:c.systemPrompt,variant:"terminal",theme:_.id,headerTitle:c.name,enableVoice:!!c.features.realtime},void 0,!1,void 0,this);return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("div",{className:"text-center",children:[w.jsxDEV("p",{className:"text-lg mb-2",children:"Agent is not running"},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:Z,className:"bg-[#3b82f6]/20 text-[#3b82f6] hover:bg-[#3b82f6]/30 px-4 py-2 rounded font-medium transition",children:"Start Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function bX({agent:c}){let{theme:Z}=Vr(),[_,d]=pa.useState([]),[N,y]=pa.useState(!0),[H,G]=pa.useState(null),[g,A]=pa.useState(null),[K,T]=pa.useState([]),[M,D]=pa.useState(!1),{confirm:F,ConfirmDialog:I}=s5();pa.useEffect(()=>{d([]),A(null),G(null),y(!0)},[c.id]),pa.useEffect(()=>{if(c.status!=="running"){y(!1);return}(async()=>{try{let ia=await fetch(`/api/agents/${c.id}/threads`);if(!ia.ok)throw Error("Failed to fetch threads");let h=await ia.json();d(h.threads||[]),G(null)}catch(ia){G(ia instanceof Error?ia.message:"Failed to load threads")}finally{y(!1)}})()},[c.id,c.status]);let s=async(oa)=>{D(!0),A(oa);try{let ia=await fetch(`/api/agents/${c.id}/threads/${oa}/messages`);if(ia.ok){let h=await ia.json();T(x9(h.messages||[]))}else T([])}catch{T([])}D(!1)},_a=async(oa,ia)=>{if(ia.stopPropagation(),!await F("Delete this thread?",{confirmText:"Delete",title:"Delete Thread"}))return;try{if(await fetch(`/api/agents/${c.id}/threads/${oa}`,{method:"DELETE"}),d((Na)=>Na.filter((ga)=>ga.id!==oa)),g===oa)A(null)}catch{}};if(c.status!=="running")return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"Start the agent to view threads"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(N)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"Loading threads..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(H)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:w.jsxDEV("p",{children:H},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(g)return w.jsxDEV(w.Fragment,{children:[I,w.jsxDEV("div",{className:"flex-1 flex flex-col overflow-hidden",children:M?w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:"Loading messages..."},void 0,!1,void 0,this):w.jsxDEV(xr,{agentId:"default",apiUrl:`/api/agents/${c.id}`,threadId:g,initialMessages:K,placeholder:"Continue this conversation...",context:c.systemPrompt,variant:"terminal",theme:Z.id,showHeader:!0,onHeaderBack:()=>{A(null),T([])}},g,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return w.jsxDEV(w.Fragment,{children:[I,w.jsxDEV("div",{className:"flex-1 overflow-auto",children:_.length===0?w.jsxDEV("div",{className:"flex items-center justify-center h-full text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"No conversation threads yet"},void 0,!1,void 0,this)},void 0,!1,void 0,this):w.jsxDEV("div",{className:"divide-y divide-[var(--color-border)]",children:_.map((oa)=>w.jsxDEV("div",{onClick:()=>s(oa.id),className:"p-4 cursor-pointer hover:bg-[var(--color-surface)] transition flex items-center justify-between",children:[w.jsxDEV("div",{className:"flex-1 min-w-0",children:[w.jsxDEV("p",{className:"text-sm font-medium truncate",children:oa.title||`Thread ${oa.id.slice(0,8)}`},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-1",children:[new Date(oa.updated_at||oa.created_at).toLocaleString(),oa.message_count!==void 0&&` • ${oa.message_count} messages`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("button",{onClick:(ia)=>_a(oa.id,ia),className:"text-[var(--color-text-muted)] hover:text-red-400 text-lg ml-4",children:"×"},void 0,!1,void 0,this)]},oa.id,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function fX({agent:c}){let{authFetch:Z}=Go(),[_,d]=pa.useState([]),[N,y]=pa.useState(!0),[H,G]=pa.useState(null),[g,A]=pa.useState("all"),[K,T]=pa.useState(null),[M,D]=pa.useState(!1),[F,I]=pa.useState(!1),[s,_a]=pa.useState(!1),[oa,ia]=pa.useState(!1),[h,Na]=pa.useState(!1),[ga,Oa]=pa.useState(!1),[x,na]=pa.useState({title:"",description:"",type:"once",priority:5,execute_at:"",recurrence:""}),{confirm:O,ConfirmDialog:ta}=s5(),{events:L}=W1({agent_id:c.id,category:"task"});pa.useEffect(()=>{d([]),G(null),y(!0),T(null)},[c.id]);let W=async()=>{if(c.status!=="running"){y(!1);return}try{let S=await fetch(`/api/agents/${c.id}/tasks?status=${g}`);if(!S.ok)throw Error("Failed to fetch tasks");let Ga=await S.json();d(Ga.tasks||[]),G(null)}catch(S){G(S instanceof Error?S.message:"Failed to load tasks")}finally{y(!1)}},fa=async(S)=>{T(S),D(!0);try{let Ga=await Z(`/api/tasks/${S.agentId||c.id}/${S.id}`);if(Ga.ok){let oo=await Ga.json();if(oo.task)T({...oo.task,agentId:S.agentId||c.id,agentName:S.agentName||c.name})}}catch(Ga){console.error("Failed to fetch task details:",Ga)}finally{D(!1)}},P=async()=>{if(!K||s)return;_a(!0);try{await Z(`/api/tasks/${c.id}/${K.id}/execute`,{method:"POST"}),T(null),W()}catch(S){console.error("Failed to execute task:",S)}finally{_a(!1)}},n=async()=>{if(!K||oa)return;if(!await O(`Are you sure you want to delete "${K.title}"?`,{title:"Delete Task",confirmText:"Delete",confirmVariant:"danger"}))return;ia(!0);try{await Z(`/api/tasks/${c.id}/${K.id}`,{method:"DELETE"}),T(null),W()}catch(Ga){console.error("Failed to delete task:",Ga)}finally{ia(!1)}},ra=async(S)=>{try{let Ga={...S};if(S.execute_at)Ga.execute_at=new Date(S.execute_at).toISOString();if((await Z(`/api/tasks/${c.id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ga)})).ok)I(!1),W()}catch(Ga){console.error("Failed to create task:",Ga)}},Fa=(S)=>{na({title:S.title,description:S.description||"",type:S.type,priority:S.priority,execute_at:S.execute_at?new Date(S.execute_at).toISOString().slice(0,16):"",recurrence:S.recurrence||""}),Na(!0)},Sa=async()=>{if(!K||ga)return;Oa(!0);try{let S={title:x.title.trim(),description:x.description.trim()||void 0,type:x.type,priority:x.priority};if(x.type==="once"&&x.execute_at)S.execute_at=new Date(x.execute_at).toISOString();if(x.type==="recurring"&&x.recurrence.trim())S.recurrence=x.recurrence.trim();if((await Z(`/api/tasks/${c.id}/${K.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(S)})).ok)Na(!1),T(null),W()}catch(S){console.error("Failed to update task:",S)}finally{Oa(!1)}};pa.useEffect(()=>{y(!0),W()},[c.id,c.status,g,L.length]);let xo={pending:"bg-yellow-500/20 text-yellow-400",running:"bg-blue-500/20 text-blue-400",completed:"bg-green-500/20 text-green-400",failed:"bg-red-500/20 text-red-400",cancelled:"bg-gray-500/20 text-gray-400"};if(c.status!=="running")return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"Start the agent to view tasks"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!c.features?.tasks)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("div",{className:"text-center",children:[w.jsxDEV("p",{className:"mb-2",children:"Tasks feature is not enabled"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-sm",children:"Enable it in Settings to schedule tasks"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(N)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"Loading tasks..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(H)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:w.jsxDEV("p",{children:H},void 0,!1,void 0,this)},void 0,!1,void 0,this);let Jp=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"}];if(K)return w.jsxDEV("div",{className:"flex-1 flex flex-col overflow-hidden",children:[ta,w.jsxDEV("div",{className:"px-4 pt-3 pb-2 border-b border-[var(--color-border)] shrink-0 flex items-center justify-between",children:[w.jsxDEV("button",{onClick:()=>{T(null),Na(!1)},className:"text-sm text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition flex items-center gap-1",children:[w.jsxDEV("span",{children:"←"},void 0,!1,void 0,this)," ",h?"Cancel":"Back to tasks"]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"flex items-center gap-2",children:h?w.jsxDEV(w.Fragment,{children:[w.jsxDEV("button",{onClick:()=>Na(!1),className:"text-[var(--color-text-muted)] hover:text-[var(--color-text)] text-sm transition",children:"Cancel"},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:Sa,disabled:ga||!x.title.trim(),className:"px-3 py-1 rounded text-sm bg-[var(--color-accent)] text-black hover:opacity-90 transition disabled:opacity-50",children:ga?"Saving...":"Save"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):w.jsxDEV(w.Fragment,{children:[(K.status==="pending"||K.status==="completed"||K.status==="failed")&&w.jsxDEV("button",{onClick:()=>Fa(K),title:"Edit task",className:"text-[var(--color-text-muted)] hover:text-[var(--color-accent)] transition",children:w.jsxDEV("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),(K.status==="pending"||K.status==="completed")&&w.jsxDEV("button",{onClick:P,disabled:s,title:"Execute now",className:"text-[var(--color-accent)] hover:opacity-80 transition disabled:opacity-50",children:w.jsxDEV("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[w.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"},void 0,!1,void 0,this),w.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:n,disabled:oa,title:"Delete task",className:"text-red-400 hover:text-red-300 transition disabled:opacity-50",children:w.jsxDEV("svg",{className:"w-4.5 h-4.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"flex-1 overflow-auto p-4 space-y-4",children:(()=>{return w.jsxDEV(w.Fragment,{children:[w.jsxDEV("div",{children:w.jsxDEV("div",{className:"flex items-start justify-between gap-2 mb-1",children:[h?w.jsxDEV("input",{type:"text",value:x.title,onChange:(Ga)=>na({...x,title:Ga.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)] text-lg font-medium",placeholder:"Task title"},void 0,!1,void 0,this):w.jsxDEV("h3",{className:"text-lg font-medium",children:K.title},void 0,!1,void 0,this),!h&&w.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium flex-shrink-0 ${xo[K.status]}`,children:K.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),h?w.jsxDEV("div",{children:[w.jsxDEV("h4",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1",children:"Description"},void 0,!1,void 0,this),w.jsxDEV("textarea",{value:x.description,onChange:(Ga)=>na({...x,description:Ga.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)] resize-none",rows:3,placeholder:"Task description..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this):K.description?w.jsxDEV("div",{children:[w.jsxDEV("h4",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1",children:"Description"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-sm text-[var(--color-text-secondary)] whitespace-pre-wrap",children:K.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,h?w.jsxDEV("div",{className:"grid grid-cols-2 gap-3",children:[w.jsxDEV("div",{children:[w.jsxDEV("label",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1 block",children:"Type"},void 0,!1,void 0,this),w.jsxDEV("select",{value:x.type,onChange:(Ga)=>na({...x,type:Ga.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]",children:[w.jsxDEV("option",{value:"once",children:"One-time"},void 0,!1,void 0,this),w.jsxDEV("option",{value:"recurring",children:"Recurring"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{children:[w.jsxDEV("label",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1 block",children:"Priority"},void 0,!1,void 0,this),w.jsxDEV("input",{type:"number",min:1,max:10,value:x.priority,onChange:(Ga)=>na({...x,priority:Number(Ga.target.value)}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):w.jsxDEV("div",{className:"grid grid-cols-2 gap-3 text-sm",children:[w.jsxDEV("div",{children:[w.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Type"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"capitalize",children:K.type},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{children:[w.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Priority"},void 0,!1,void 0,this),w.jsxDEV("p",{children:K.priority},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.recurrence&&w.jsxDEV("div",{children:[w.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Recurrence"},void 0,!1,void 0,this),w.jsxDEV("p",{children:Ri(K.recurrence)},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-0.5 font-mono",children:K.recurrence},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),h&&x.type==="once"&&w.jsxDEV("div",{children:[w.jsxDEV("label",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1 block",children:"Schedule"},void 0,!1,void 0,this),w.jsxDEV("input",{type:"datetime-local",value:x.execute_at,onChange:(Ga)=>na({...x,execute_at:Ga.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h&&x.type==="recurring"&&w.jsxDEV("div",{children:[w.jsxDEV("label",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-1 block",children:"Cron Schedule"},void 0,!1,void 0,this),w.jsxDEV("input",{type:"text",value:x.recurrence,onChange:(Ga)=>na({...x,recurrence:Ga.target.value}),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-2 py-1.5 text-sm focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)] font-mono",placeholder:"*/30 * * * *"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-1",children:"e.g. */30 * * * * = every 30 min"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!h&&w.jsxDEV("div",{className:"space-y-2 text-sm",children:[w.jsxDEV("div",{className:"flex justify-between",children:[w.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Created"},void 0,!1,void 0,this),w.jsxDEV("span",{children:new Date(K.created_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.execute_at&&w.jsxDEV("div",{className:"flex justify-between",children:[w.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Scheduled"},void 0,!1,void 0,this),w.jsxDEV("span",{className:"text-[var(--color-accent)]",children:E5(K.execute_at)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.executed_at&&w.jsxDEV("div",{className:"flex justify-between",children:[w.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Started"},void 0,!1,void 0,this),w.jsxDEV("span",{children:new Date(K.executed_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.completed_at&&w.jsxDEV("div",{className:"flex justify-between",children:[w.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Completed"},void 0,!1,void 0,this),w.jsxDEV("span",{children:new Date(K.completed_at).toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this),K.next_run&&w.jsxDEV("div",{className:"flex justify-between",children:[w.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:"Next Run"},void 0,!1,void 0,this),w.jsxDEV("span",{className:"text-[var(--color-accent)]",children:E5(K.next_run)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!h&&K.status==="failed"&&K.error&&w.jsxDEV("div",{className:"min-w-0",children:[w.jsxDEV("h4",{className:"text-xs text-red-400 uppercase tracking-wider mb-1",children:"Error"},void 0,!1,void 0,this),w.jsxDEV("div",{className:"bg-red-500/10 border border-red-500/20 rounded p-3 overflow-x-auto",children:w.jsxDEV("pre",{className:"text-sm text-red-400 whitespace-pre-wrap break-words",children:K.error},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!h&&K.status==="completed"&&K.result&&w.jsxDEV("div",{className:"min-w-0",children:[w.jsxDEV("h4",{className:"text-xs text-green-400 uppercase tracking-wider mb-1",children:"Result"},void 0,!1,void 0,this),w.jsxDEV("div",{className:"bg-green-500/10 border border-green-500/20 rounded p-3 overflow-x-auto",children:w.jsxDEV("pre",{className:"text-sm text-green-400 whitespace-pre-wrap break-words",children:typeof K.result==="string"?K.result:JSON.stringify(K.result,null,2)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!h&&M&&!K.trajectory&&w.jsxDEV("div",{children:[w.jsxDEV("h4",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-2",children:"Trajectory"},void 0,!1,void 0,this),w.jsxDEV("div",{className:"text-sm text-[var(--color-text-faint)]",children:"Loading trajectory..."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),!h&&K.trajectory&&K.trajectory.length>0&&w.jsxDEV("div",{children:[w.jsxDEV("h4",{className:"text-xs text-[var(--color-text-muted)] uppercase tracking-wider mb-2",children:["Trajectory (",K.trajectory.length," steps)"]},void 0,!0,void 0,this),w.jsxDEV(E9,{trajectory:K.trajectory},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)})()},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return w.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:[w.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[w.jsxDEV("div",{className:"flex gap-2",children:Jp.map((S)=>w.jsxDEV("button",{onClick:()=>A(S.value),className:`px-3 py-1.5 rounded text-sm transition ${g===S.value?"bg-[var(--color-accent)] text-black":"bg-[var(--color-surface-raised)] hover:bg-[var(--color-surface-raised)]"}`,children:S.label},S.value,!1,void 0,this))},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:()=>I(!F),className:"px-3 py-1.5 rounded text-sm bg-[var(--color-accent)] text-black hover:opacity-90 transition flex items-center gap-1 flex-shrink-0",children:[w.jsxDEV("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"},void 0,!1,void 0,this)},void 0,!1,void 0,this),"New"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),F&&w.jsxDEV(iX,{onSubmit:ra,onCancel:()=>I(!1)},void 0,!1,void 0,this),_.length===0?w.jsxDEV("div",{className:"text-center py-10",children:[w.jsxDEV(Mm,{className:"w-10 h-10 mx-auto mb-3 text-[var(--color-border-light)]"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-[var(--color-text-muted)]",children:["No ",g==="all"?"":g+" ","tasks"]},void 0,!0,void 0,this),w.jsxDEV("p",{className:"text-sm text-[var(--color-text-faint)] mt-1",children:"Tasks will appear here when created"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):w.jsxDEV("div",{className:"space-y-3",children:_.map((S)=>w.jsxDEV("div",{onClick:()=>fa(S),className:"bg-[var(--color-surface)] card p-4 cursor-pointer hover:border-[var(--color-border-light)] transition",children:[w.jsxDEV("div",{className:"flex items-start justify-between mb-2",children:[w.jsxDEV("div",{className:"flex-1 min-w-0",children:w.jsxDEV("h3",{className:"font-medium",children:S.title||S.name},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.jsxDEV("span",{className:`px-2 py-1 rounded text-xs font-medium ml-2 ${xo[S.status]||xo.pending}`,children:S.status},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S.description&&w.jsxDEV("p",{className:"text-sm text-[var(--color-text-secondary)] mb-2 line-clamp-2",children:S.description},void 0,!1,void 0,this),w.jsxDEV("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-[var(--color-text-faint)]",children:[w.jsxDEV("span",{className:"flex items-center gap-1",children:[S.type==="recurring"?w.jsxDEV(V9,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this):S.execute_at?w.jsxDEV(D9,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this):w.jsxDEV(j9,{className:"w-3.5 h-3.5"},void 0,!1,void 0,this),S.type==="recurring"&&S.recurrence?Ri(S.recurrence):S.type||"once"]},void 0,!0,void 0,this),S.priority!==void 0&&w.jsxDEV("span",{children:["Priority: ",S.priority]},void 0,!0,void 0,this),S.next_run&&w.jsxDEV("span",{className:"text-[var(--color-accent)]",children:E5(S.next_run)},void 0,!1,void 0,this),!S.next_run&&S.execute_at&&w.jsxDEV("span",{className:"text-[var(--color-accent)]",children:E5(S.execute_at)},void 0,!1,void 0,this),w.jsxDEV("span",{children:["Created: ",new Date(S.created_at).toLocaleDateString()]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),S.status==="completed"&&S.result&&w.jsxDEV("div",{className:"mt-3 bg-green-500/10 border border-green-500/20 rounded p-3",children:[w.jsxDEV("h4",{className:"text-xs text-green-400 uppercase tracking-wider mb-1",children:"Result"},void 0,!1,void 0,this),w.jsxDEV("pre",{className:"text-sm text-green-400 whitespace-pre-wrap break-words",children:typeof S.result==="string"?S.result:JSON.stringify(S.result,null,2)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S.status==="failed"&&S.error&&w.jsxDEV("div",{className:"mt-3 bg-red-500/10 border border-red-500/20 rounded p-3",children:[w.jsxDEV("h4",{className:"text-xs text-red-400 uppercase tracking-wider mb-1",children:"Error"},void 0,!1,void 0,this),w.jsxDEV("pre",{className:"text-sm text-red-400 whitespace-pre-wrap break-words",children:S.error},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},S.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function iX({onSubmit:c,onCancel:Z}){let[_,d]=pa.useState(""),[N,y]=pa.useState(""),[H,G]=pa.useState("once"),[g,A]=pa.useState(5),[K,T]=pa.useState(""),[M,D]=pa.useState("");return w.jsxDEV("div",{className:"bg-[var(--color-surface)] border border-[var(--color-accent)]/30 rounded-lg p-3 mb-4 space-y-3",children:[w.jsxDEV("input",{type:"text",value:_,onChange:(F)=>d(F.target.value),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-3 py-1.5 text-sm",placeholder:"Task title...",autoFocus:!0},void 0,!1,void 0,this),w.jsxDEV("textarea",{value:N,onChange:(F)=>y(F.target.value),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-3 py-1.5 text-sm resize-none",rows:2,placeholder:"Description (optional)..."},void 0,!1,void 0,this),w.jsxDEV("div",{className:"grid grid-cols-2 gap-2",children:[w.jsxDEV("select",{value:H,onChange:(F)=>G(F.target.value),className:"bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-2 py-1.5 text-sm",children:[w.jsxDEV("option",{value:"once",children:"One-time"},void 0,!1,void 0,this),w.jsxDEV("option",{value:"recurring",children:"Recurring"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("input",{type:"number",min:1,max:10,value:g,onChange:(F)=>A(Number(F.target.value)),className:"bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-2 py-1.5 text-sm",placeholder:"Priority"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H==="once"&&w.jsxDEV("input",{type:"datetime-local",value:K,onChange:(F)=>T(F.target.value),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-3 py-1.5 text-sm"},void 0,!1,void 0,this),H==="recurring"&&w.jsxDEV("input",{type:"text",value:M,onChange:(F)=>D(F.target.value),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border)] rounded px-3 py-1.5 text-sm font-mono",placeholder:"*/30 * * * * (cron)"},void 0,!1,void 0,this),w.jsxDEV("div",{className:"flex justify-end gap-2",children:[w.jsxDEV("button",{onClick:Z,className:"px-3 py-1.5 rounded text-sm bg-[var(--color-surface-raised)] hover:bg-[var(--color-border)] transition",children:"Cancel"},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:()=>_.trim()&&c({title:_.trim(),description:N.trim(),type:H,priority:g,execute_at:K||void 0,recurrence:M||void 0}),disabled:!_.trim(),className:"px-3 py-1.5 rounded text-sm bg-[var(--color-accent)] text-black hover:opacity-90 transition disabled:opacity-50",children:"Create"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function wX({agent:c}){let[Z,_]=pa.useState([]),[d,N]=pa.useState(!0),[y,H]=pa.useState(null),[G,g]=pa.useState(!1),{confirm:A,ConfirmDialog:K}=s5();pa.useEffect(()=>{_([]),H(null),N(!0)},[c.id]);let T=async()=>{if(c.status!=="running"){N(!1);return}try{let F=await fetch(`/api/agents/${c.id}/memories`);if(!F.ok)throw Error("Failed to fetch memories");let I=await F.json();_(I.memories||[]),g(I.enabled??!1),H(null)}catch(F){H(F instanceof Error?F.message:"Failed to load memories")}finally{N(!1)}};pa.useEffect(()=>{T()},[c.id,c.status]);let M=async(F)=>{try{await fetch(`/api/agents/${c.id}/memories/${F}`,{method:"DELETE"}),_((I)=>I.filter((s)=>s.id!==F))}catch{}},D=async()=>{if(!await A("Clear all memories?",{confirmText:"Clear",title:"Clear Memories"}))return;try{await fetch(`/api/agents/${c.id}/memories`,{method:"DELETE"}),_([])}catch{}};if(!c.features?.memory)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("div",{className:"text-center",children:[w.jsxDEV("p",{className:"mb-2",children:"Memory feature is not enabled"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-sm",children:"Enable it in Settings to persist knowledge"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(c.status!=="running")return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"Start the agent to view memories"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(d)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"Loading memories..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(y)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:w.jsxDEV("p",{children:y},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(!G)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("div",{className:"text-center",children:[w.jsxDEV("p",{className:"mb-2",children:"Memory system not initialized"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-sm",children:"Check OPENAI_API_KEY for embeddings"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return w.jsxDEV(w.Fragment,{children:[K,w.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:[w.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[w.jsxDEV("h3",{className:"text-sm font-medium text-[var(--color-text-secondary)]",children:["Stored Memories (",Z.length,")"]},void 0,!0,void 0,this),Z.length>0&&w.jsxDEV("button",{onClick:D,className:"text-xs text-red-400 hover:text-red-300",children:"Clear All"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.length===0?w.jsxDEV("div",{className:"text-center py-10 text-[var(--color-text-muted)]",children:[w.jsxDEV("p",{children:"No memories stored yet"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-sm mt-1",children:"The agent will remember important information from conversations"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):w.jsxDEV("div",{className:"space-y-3",children:Z.map((F)=>w.jsxDEV("div",{className:"bg-[var(--color-surface)] border border-[var(--color-border)] rounded p-3",children:[w.jsxDEV("div",{className:"flex items-start justify-between gap-2",children:[w.jsxDEV("p",{className:"text-sm text-[var(--color-text)] flex-1",children:F.content},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:()=>M(F.id),className:"text-[var(--color-text-muted)] hover:text-red-400 text-sm flex-shrink-0",children:"×"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"flex items-center gap-3 mt-2",children:[w.jsxDEV("span",{className:`text-xs px-2 py-0.5 rounded ${F.type==="preference"?"bg-purple-500/20 text-purple-400":F.type==="fact"?"bg-green-500/20 text-green-400":"bg-blue-500/20 text-blue-400"}`,children:F.type},void 0,!1,void 0,this),w.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:new Date(F.created_at).toLocaleString()},void 0,!1,void 0,this),F.importance&&w.jsxDEV("span",{className:"text-xs text-[var(--color-text-faint)]",children:["importance: ",F.importance.toFixed(1)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},F.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function cX({agent:c}){let[Z,_]=pa.useState([]),[d,N]=pa.useState(!0),[y,H]=pa.useState(null),[G,g]=pa.useState(!1),[A,K]=pa.useState(null),[T,M]=pa.useState(!1),D=pa.default.useRef(null),{confirm:F,ConfirmDialog:I}=s5();pa.useEffect(()=>{_([]),H(null),N(!0)},[c.id]);let s=async()=>{if(c.status!=="running"){N(!1);return}try{let O=await fetch(`/api/agents/${c.id}/files`);if(!O.ok)throw Error("Failed to fetch files");let ta=await O.json();_(ta.files||[]),H(null)}catch(O){H(O instanceof Error?O.message:"Failed to load files")}finally{N(!1)}};pa.useEffect(()=>{s()},[c.id,c.status]);let _a=async(O)=>{if(!await F("Delete this file?",{confirmText:"Delete",title:"Delete File"}))return;try{await fetch(`/api/agents/${c.id}/files/${O}`,{method:"DELETE"}),_((L)=>L.filter((W)=>W.id!==O))}catch{}},oa=(O,ta)=>{let L=document.createElement("a");L.href=`/api/agents/${c.id}/files/${O}/download`,L.download=ta,L.click()},ia=(O)=>{if(O<1024)return`${O} B`;if(O<1048576)return`${(O/1024).toFixed(1)} KB`;return`${(O/1048576).toFixed(1)} MB`},h=async(O)=>{g(!0),K(null);try{let ta=new FormData;ta.append("file",O);let L=await fetch(`/api/agents/${c.id}/files`,{method:"POST",body:ta});if(!L.ok){let W=await L.json();throw Error(W.error||"Upload failed")}await s()}catch(ta){K(ta instanceof Error?ta.message:"Upload failed")}finally{g(!1)}},Na=(O)=>{let ta=O.target.files?.[0];if(ta)h(ta);O.target.value=""},ga=(O)=>{O.preventDefault(),M(!1);let ta=O.dataTransfer.files?.[0];if(ta)h(ta)},Oa=(O)=>{O.preventDefault(),M(!0)},x=(O)=>{O.preventDefault(),M(!1)},na=(O)=>{if(O.startsWith("image/"))return"\uD83D\uDDBC";if(O.includes("pdf"))return"\uD83D\uDCD5";if(O.includes("json"))return"{}";if(O.includes("javascript")||O.includes("typescript"))return"⚡";if(O.startsWith("text/"))return"\uD83D\uDCC4";if(O.startsWith("audio/"))return"\uD83C\uDFB5";if(O.startsWith("video/"))return"\uD83C\uDFAC";return"\uD83D\uDCC1"};if(!c.features?.files)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("div",{className:"text-center",children:[w.jsxDEV("p",{className:"mb-2",children:"Files feature is not enabled"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-sm",children:"Enable it in Settings to manage files"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);if(c.status!=="running")return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"Start the agent to view files"},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(d)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-[var(--color-text-muted)]",children:w.jsxDEV("p",{children:"Loading files..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(y)return w.jsxDEV("div",{className:"flex-1 flex items-center justify-center text-red-400",children:w.jsxDEV("p",{children:y},void 0,!1,void 0,this)},void 0,!1,void 0,this);return w.jsxDEV(w.Fragment,{children:[I,w.jsxDEV("div",{className:`flex-1 overflow-auto p-4 transition ${T?"bg-[var(--color-accent-5)]":""}`,onDrop:ga,onDragOver:Oa,onDragLeave:x,children:[w.jsxDEV("input",{ref:D,type:"file",className:"hidden",onChange:Na},void 0,!1,void 0,this),w.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[w.jsxDEV("h3",{className:"text-sm font-medium text-[var(--color-text-secondary)]",children:["Agent Files (",Z.length,")"]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"flex items-center gap-2",children:[w.jsxDEV("button",{onClick:()=>D.current?.click(),disabled:G,className:"text-xs bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 text-black px-3 py-1 rounded font-medium transition",children:G?"Uploading...":"Upload"},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:s,className:"text-xs text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)]",children:"Refresh"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),A&&w.jsxDEV("div",{className:"mb-4 text-sm bg-red-500/10 text-red-400 px-3 py-2 rounded",children:A},void 0,!1,void 0,this),T&&w.jsxDEV("div",{className:"mb-4 border-2 border-dashed border-[var(--color-accent)] rounded-lg p-8 text-center",children:w.jsxDEV("p",{className:"text-[var(--color-accent)]",children:"Drop file to upload"},void 0,!1,void 0,this)},void 0,!1,void 0,this),Z.length===0&&!T&&w.jsxDEV("div",{className:"text-center py-10 text-[var(--color-text-muted)]",children:[w.jsxDEV("p",{children:"No files stored yet"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-sm mt-1",children:"Drop files here, click Upload, or attach files in Chat"},void 0,!1,void 0,this),c.features?.memory&&w.jsxDEV("p",{className:"text-xs mt-2 text-[var(--color-text-faint)]",children:"Files will be auto-ingested into memory"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.length>0&&w.jsxDEV("div",{className:"space-y-2",children:Z.map((O)=>w.jsxDEV("div",{className:"bg-[var(--color-surface)] border border-[var(--color-border)] rounded p-3 flex items-center gap-3",children:[w.jsxDEV("div",{className:"w-10 h-10 bg-[var(--color-surface-raised)] rounded flex items-center justify-center text-[var(--color-text-muted)]",children:na(O.mime_type)},void 0,!1,void 0,this),w.jsxDEV("div",{className:"flex-1 min-w-0",children:[w.jsxDEV("p",{className:"text-sm text-[var(--color-text)] truncate",children:O.filename},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)]",children:[ia(O.size_bytes)," • ",new Date(O.created_at).toLocaleString(),O.source&&O.source!=="upload"&&` • ${O.source}`]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"flex items-center gap-2",children:[w.jsxDEV("button",{onClick:()=>oa(O.id,O.filename),className:"text-xs text-[var(--color-text-muted)] hover:text-[var(--color-accent)] px-2 py-1",children:"↓"},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:()=>_a(O.id),className:"text-[var(--color-text-muted)] hover:text-red-400 text-sm",children:"×"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},O.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function lX({agent:c,providers:Z,onUpdateAgent:_,onDeleteAgent:d}){let{authFetch:N,isDev:y}=Go(),[H,G]=pa.useState({name:c.name,provider:c.provider,model:c.model,systemPrompt:c.systemPrompt,features:{...c.features,builtinTools:c.features.builtinTools||{webSearch:!1,webFetch:!1}},mcpServers:[...c.mcpServers||[]],skills:[...c.skills||[]]}),[g,A]=pa.useState(!1),[K,T]=pa.useState(!1),[M,D]=pa.useState(null),[F,I]=pa.useState([]),[s,_a]=pa.useState([]),[oa,ia]=pa.useState(null),[h,Na]=pa.useState(null),[ga,Oa]=pa.useState(!1),[x,na]=pa.useState([]),[O,ta]=pa.useState(null),[L,W]=pa.useState(!1);pa.useEffect(()=>{N(`/api/subscriptions?agent_id=${c.id}`).then((R)=>R.ok?R.json():{subscriptions:[]}).then((R)=>na(R.subscriptions||[])).catch(()=>{})},[c.id,N]),pa.useEffect(()=>{(async()=>{try{let xa=await(await N("/api/mcp/servers")).json();I(xa.servers||[])}catch(e){console.error("Failed to fetch MCP servers:",e)}})()},[N]),pa.useEffect(()=>{(async()=>{try{let e=await N(`/api/agents/${c.id}/api-key`);if(e.ok){let xa=await e.json();ia(xa.apiKey),Na(xa.fullKey||null)}}catch(e){}})()},[c.id,N]),pa.useEffect(()=>{(async()=>{try{let e=await N(`/api/agents/${c.id}/share-token`);if(e.ok){let xa=await e.json();ta(xa.token||null)}}catch{}})()},[c.id,N]),pa.useEffect(()=>{(async()=>{try{let xa=await(await N("/api/skills")).json();_a(xa.skills||[])}catch(e){console.error("Failed to fetch skills:",e)}})()},[N]),pa.useEffect(()=>{G({name:c.name,provider:c.provider,model:c.model,systemPrompt:c.systemPrompt,features:{...c.features,builtinTools:c.features.builtinTools||{webSearch:!1,webFetch:!1}},mcpServers:[...c.mcpServers||[]],skills:[...c.skills||[]]}),D(null)},[c.id]);let fa=Z.find((R)=>R.id===H.provider),P=Z.filter((R)=>R.hasKey&&R.type==="llm").map((R)=>({value:R.id,label:R.name})),n=fa?.models.map((R)=>({value:R.value,label:R.label,recommended:R.recommended}))||[],ra=(R)=>{let e=Z.find((k)=>k.id===R),xa=e?.models.find((k)=>k.recommended)?.value||e?.models[0]?.value||"";G((k)=>({...k,provider:R,model:xa}))},Fa=(R)=>{if(R==="agents")G((e)=>{if(typeof e.features.agents==="boolean"?e.features.agents:e.features.agents?.enabled??!1)return{...e,features:{...e.features,agents:!1}};else return{...e,features:{...e.features,agents:{enabled:!0,group:c.projectId||void 0}}}});else if(R==="operator")G((e)=>{if(S5(e.features).enabled)return{...e,features:{...e.features,operator:!1}};else return{...e,features:{...e.features,operator:{enabled:!0}}}});else G((e)=>({...e,features:{...e.features,[R]:!e.features[R]}}))},Sa=()=>{let R=H.features.agents;if(typeof R==="boolean")return R;return R?.enabled??!1},xo=()=>{return S5(H.features).enabled},Jp=()=>{return S5(H.features)},S=Z.filter((R)=>R.type==="browser"&&R.hasKey),Ga=(R)=>{G((e)=>{let xa=S5(e.features);return{...e,features:{...e.features,operator:{...xa,enabled:!0,browser_provider:R}}}})},oo=(R)=>{G((e)=>({...e,mcpServers:e.mcpServers.includes(R)?e.mcpServers.filter((xa)=>xa!==R):[...e.mcpServers,R]}))},mr=(R)=>{G((e)=>({...e,skills:e.skills.includes(R)?e.skills.filter((xa)=>xa!==R):[...e.skills,R]}))},w0=async()=>{A(!0),D(null);let R=await _(H);if(A(!1),R.error)D({type:"error",text:R.error});else D({type:"success",text:"Settings saved"}),setTimeout(()=>D(null),2000)},tr=H.name!==c.name||H.provider!==c.provider||H.model!==c.model||H.systemPrompt!==c.systemPrompt||JSON.stringify(H.features)!==JSON.stringify(c.features)||JSON.stringify(H.mcpServers.sort())!==JSON.stringify((c.mcpServers||[]).sort())||JSON.stringify(H.skills.sort())!==JSON.stringify((c.skills||[]).sort());return w.jsxDEV("div",{className:"flex-1 overflow-auto p-4",children:w.jsxDEV("div",{className:"space-y-4",children:[w.jsxDEV(zt,{label:"Name",children:w.jsxDEV("input",{type:"text",value:H.name,onChange:(R)=>G((e)=>({...e,name:R.target.value})),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-3 py-2 focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.jsxDEV(zt,{label:"Provider",children:w.jsxDEV(lt,{value:H.provider,options:P,onChange:ra},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.jsxDEV(zt,{label:"Model",children:w.jsxDEV(lt,{value:H.model,options:n,onChange:(R)=>G((e)=>({...e,model:R}))},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.jsxDEV(zt,{label:"System Prompt",children:w.jsxDEV("textarea",{value:H.systemPrompt,onChange:(R)=>G((e)=>({...e,systemPrompt:R.target.value})),className:"w-full bg-[var(--color-bg)] border border-[var(--color-border-light)] rounded px-3 py-2 h-24 resize-none focus:outline-none focus:border-[var(--color-accent)] text-[var(--color-text)]"},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.jsxDEV(zt,{label:"Features",children:w.jsxDEV("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:rX.map(({key:R,label:e,description:xa,icon:k})=>{let $o=R==="agents"?Sa():R==="operator"?xo():!!H.features[R];return w.jsxDEV("button",{type:"button",onClick:()=>Fa(R),className:`flex items-center gap-3 p-3 rounded border text-left transition ${$o?"border-[var(--color-accent)] bg-[var(--color-accent-10)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:[w.jsxDEV(k,{className:`w-5 h-5 flex-shrink-0 ${$o?"text-[var(--color-accent)]":"text-[var(--color-text-muted)]"}`},void 0,!1,void 0,this),w.jsxDEV("div",{className:"flex-1 min-w-0",children:[w.jsxDEV("div",{className:`text-sm font-medium ${$o?"text-[var(--color-accent)]":""}`,children:e},void 0,!1,void 0,this),w.jsxDEV("div",{className:"text-xs text-[var(--color-text-muted)]",children:xa},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},R,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),xo()&&w.jsxDEV(zt,{label:"Browser Provider",children:S.length>0?w.jsxDEV(lt,{value:Jp().browser_provider||"",options:[{value:"",label:"Auto (first available)"},...S.map((R)=>({value:R.id,label:R.name}))],onChange:(R)=>Ga(R)},void 0,!1,void 0,this):w.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] p-3 border border-[var(--color-border-light)] rounded bg-[var(--color-bg)]",children:"No browser providers configured. Go to Settings → Providers to add one."},void 0,!1,void 0,this)},void 0,!1,void 0,this),H.provider==="anthropic"&&w.jsxDEV(zt,{label:"Agent Built-in Tools",children:[w.jsxDEV("div",{className:"flex flex-wrap gap-2",children:[w.jsxDEV("button",{type:"button",onClick:()=>G((R)=>({...R,features:{...R.features,builtinTools:{...R.features.builtinTools,webSearch:!R.features.builtinTools?.webSearch}}})),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${H.features.builtinTools?.webSearch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)] text-[var(--color-text-secondary)]"}`,children:[w.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.jsxDEV("span",{className:"text-sm",children:"Web Search"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("button",{type:"button",onClick:()=>G((R)=>({...R,features:{...R.features,builtinTools:{...R.features.builtinTools,webFetch:!R.features.builtinTools?.webFetch}}})),className:`flex items-center gap-2 px-3 py-2 rounded border transition ${H.features.builtinTools?.webFetch?"border-[var(--color-accent)] bg-[var(--color-accent-10)] text-[var(--color-accent)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)] text-[var(--color-text-secondary)]"}`,children:[w.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:w.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"},void 0,!1,void 0,this)},void 0,!1,void 0,this),w.jsxDEV("span",{className:"text-sm",children:"Web Fetch"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-2",children:"Provider-native tools for real-time web access"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),H.features.mcp&&w.jsxDEV(zt,{label:"MCP Servers",children:F.length===0?w.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:"No MCP servers configured. Add servers in the MCP page first."},void 0,!1,void 0,this):w.jsxDEV("div",{className:"space-y-2",children:[F.filter((R)=>R.project_id===null||R.project_id===c.projectId).map((R)=>{let e=R.type==="http"&&R.url,xa=e||R.status==="running",k=e?`${R.source||"remote"} • http`:`${R.type} • ${R.package||R.command||"custom"}${R.status==="running"&&R.port?` • :${R.port}`:""}`;return w.jsxDEV("button",{type:"button",onClick:()=>oo(R.id),className:`w-full flex items-center gap-3 p-3 rounded border text-left transition ${H.mcpServers.includes(R.id)?"border-[var(--color-accent)] bg-[var(--color-accent-10)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:[w.jsxDEV("div",{className:`w-2 h-2 rounded-full flex-shrink-0 ${xa?"bg-green-400":"bg-[var(--color-scrollbar)]"}`},void 0,!1,void 0,this),w.jsxDEV("div",{className:"flex-1 min-w-0",children:[w.jsxDEV("div",{className:"flex items-center gap-2",children:[w.jsxDEV("span",{className:`text-sm font-medium ${H.mcpServers.includes(R.id)?"text-[var(--color-accent)]":""}`,children:R.name},void 0,!1,void 0,this),R.project_id===null&&w.jsxDEV("span",{className:"text-[10px] text-[var(--color-text-muted)] bg-[var(--color-surface-raised)] px-1.5 py-0.5 rounded",children:"Global"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"text-xs text-[var(--color-text-muted)]",children:k},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:`text-xs px-2 py-0.5 rounded ${xa?"bg-green-500/20 text-green-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]"}`,children:e?"remote":R.status},void 0,!1,void 0,this)]},R.id,!0,void 0,this)}),w.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-2",children:"Remote servers are always available. Local servers must be running."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),w.jsxDEV(zt,{label:"Skills",children:s.length===0?w.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:"No skills configured. Add skills in the Skills page first."},void 0,!1,void 0,this):w.jsxDEV("div",{className:"space-y-2",children:[s.filter((R)=>R.enabled&&(R.project_id===null||R.project_id===c.projectId)).map((R)=>w.jsxDEV("button",{type:"button",onClick:()=>mr(R.id),className:`w-full flex items-center gap-3 p-3 rounded border text-left transition ${H.skills.includes(R.id)?"border-[var(--color-accent)] bg-[var(--color-accent-10)]":"border-[var(--color-border-light)] hover:border-[var(--color-border-light)]"}`,children:[w.jsxDEV("div",{className:"flex-1 min-w-0",children:[w.jsxDEV("div",{className:"flex items-center gap-2",children:[w.jsxDEV("span",{className:`text-sm font-medium ${H.skills.includes(R.id)?"text-[var(--color-accent)]":""}`,children:R.name},void 0,!1,void 0,this),R.project_id===null&&w.jsxDEV("span",{className:"text-[10px] text-[var(--color-text-muted)] bg-[var(--color-surface-raised)] px-1.5 py-0.5 rounded",children:"Global"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"text-xs text-[var(--color-text-muted)]",children:R.description},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"text-xs px-2 py-0.5 rounded bg-[var(--color-surface-raised)] text-[var(--color-text-muted)]",children:["v",R.version]},void 0,!0,void 0,this)]},R.id,!0,void 0,this)),w.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] mt-2",children:"Skills provide reusable instructions for the agent."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),M&&w.jsxDEV("div",{className:`text-sm px-3 py-2 rounded ${M.type==="success"?"bg-green-500/10 text-green-400":"bg-red-500/10 text-red-400"}`,children:M.text},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:w0,disabled:!tr||g||!H.name,className:"w-full bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-2 rounded font-medium transition",children:g?"Saving...":"Save Changes"},void 0,!1,void 0,this),c.status==="running"&&tr&&w.jsxDEV("p",{className:"text-xs text-[var(--color-text-muted)] text-center",children:"Changes will be applied to the running agent"},void 0,!1,void 0,this),w.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[var(--color-border-light)]",children:[w.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-3",children:"Subscriptions"},void 0,!1,void 0,this),x.length===0?w.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)]",children:"No subscriptions. Set up triggers in Connections to have this agent listen to external events."},void 0,!1,void 0,this):w.jsxDEV("div",{className:"space-y-2",children:x.map((R)=>w.jsxDEV("div",{className:"flex items-center gap-2 px-3 py-2 bg-[var(--color-surface)] rounded border border-[var(--color-border)]",children:[w.jsxDEV("span",{className:`w-2 h-2 rounded-full shrink-0 ${R.enabled?"bg-cyan-400":"bg-[var(--color-scrollbar)]"}`},void 0,!1,void 0,this),w.jsxDEV("span",{className:`text-sm flex-1 ${R.enabled?"text-cyan-400":"text-[var(--color-text-muted)]"}`,children:R.trigger_slug.replace(/_/g," ")},void 0,!1,void 0,this),w.jsxDEV("span",{className:`text-[10px] px-1.5 py-0.5 rounded ${R.enabled?"bg-cyan-500/10 text-cyan-400":"bg-[var(--color-surface-raised)] text-[var(--color-text-faint)]"}`,children:R.enabled?"active":"disabled"},void 0,!1,void 0,this)]},R.id,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),oa&&w.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[var(--color-border-light)]",children:[w.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-3",children:"Developer Info"},void 0,!1,void 0,this),w.jsxDEV("div",{className:"space-y-2",children:[w.jsxDEV("div",{className:"flex items-center justify-between",children:[w.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:"Agent ID"},void 0,!1,void 0,this),w.jsxDEV("code",{className:"text-xs bg-[var(--color-surface-raised)] px-2 py-1 rounded text-[var(--color-text-secondary)]",children:c.id},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"flex items-center justify-between",children:[w.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:"Port"},void 0,!1,void 0,this),w.jsxDEV("code",{className:"text-xs bg-[var(--color-surface-raised)] px-2 py-1 rounded text-[var(--color-text-secondary)]",children:c.port||"N/A"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"flex flex-col gap-1",children:[w.jsxDEV("div",{className:"flex items-center justify-between",children:[w.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:"API Key"},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:()=>Oa(!ga),className:"text-xs text-[var(--color-accent)] hover:text-[var(--color-accent-hover)]",children:ga?"Hide":"Show"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("code",{className:"text-xs bg-[var(--color-surface-raised)] px-2 py-1 rounded text-[var(--color-text-secondary)] break-all",children:ga?h||oa:oa},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c.status==="running"&&c.port&&w.jsxDEV("div",{className:"flex flex-col gap-1 mt-2",children:[w.jsxDEV("span",{className:"text-xs text-[var(--color-text-muted)]",children:"Test with curl"},void 0,!1,void 0,this),w.jsxDEV("code",{className:"text-xs bg-[var(--color-surface-raised)] px-2 py-1.5 rounded text-[var(--color-text-muted)] break-all",children:['curl -H "X-API-Key: ',ga?h||oa:"***",'" http://localhost:',c.port,"/config"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),O&&w.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[var(--color-border-light)]",children:[w.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-3",children:"Share Link"},void 0,!1,void 0,this),w.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mb-3",children:"Anyone with this link can chat with this agent. No login required. Regenerate the API key to invalidate."},void 0,!1,void 0,this),w.jsxDEV("div",{className:"flex gap-2",children:[w.jsxDEV("code",{className:"flex-1 text-xs bg-[var(--color-surface-raised)] px-3 py-2 rounded text-[var(--color-text-secondary)] break-all border border-[var(--color-border-light)]",children:`${window.location.origin}/share/${O}`},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:()=>{navigator.clipboard.writeText(`${window.location.origin}/share/${O}`),W(!0),setTimeout(()=>W(!1),2000)},className:"px-3 py-2 text-xs bg-[var(--color-surface-raised)] hover:bg-[var(--color-surface-raised)] border border-[var(--color-border-light)] rounded text-[var(--color-text-secondary)] hover:text-[var(--color-text)] transition flex-shrink-0",children:L?"Copied!":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"mt-3",children:[w.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mb-1",children:"Embed"},void 0,!1,void 0,this),w.jsxDEV("code",{className:"block text-xs bg-[var(--color-surface-raised)] px-3 py-2 rounded text-[var(--color-text-muted)] break-all border border-[var(--color-border-light)]",children:`<iframe src="${window.location.origin}/share/${O}" width="400" height="600" style="border:none; border-radius:12px;" />`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),w.jsxDEV("div",{className:"mt-8 pt-6 border-t border-[var(--color-border-light)]",children:[w.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-3",children:"Danger Zone"},void 0,!1,void 0,this),K?w.jsxDEV("div",{className:"flex gap-2",children:[w.jsxDEV("button",{onClick:()=>T(!1),className:"flex-1 border border-[var(--color-border-light)] hover:border-[var(--color-scrollbar)] px-4 py-2 rounded font-medium transition",children:"Cancel"},void 0,!1,void 0,this),w.jsxDEV("button",{onClick:d,className:"flex-1 bg-red-500/20 text-red-400 hover:bg-red-500/30 px-4 py-2 rounded font-medium transition",children:"Confirm Delete"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):w.jsxDEV("button",{onClick:()=>T(!0),className:"w-full border border-red-500/30 text-red-400/70 hover:border-red-500/50 hover:text-red-400 px-4 py-2 rounded font-medium transition",children:"Delete Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function zt({label:c,children:Z}){return w.jsxDEV("div",{children:[w.jsxDEV("label",{className:"block text-sm text-[var(--color-text-muted)] mb-1",children:c},void 0,!1,void 0,this),Z]},void 0,!0,void 0,this)}var s9=Za(Eo(),1);var ao=Za(vo(),1);function U1({agents:c,loading:Z,selectedAgent:_,providers:d,onSelectAgent:N,onCloseAgent:y,onToggleAgent:H,onDeleteAgent:G,onUpdateAgent:g,onNewAgent:A,canCreateAgent:K=!0}){let{currentProjectId:T,currentProject:M}=bp(),D=s9.useMemo(()=>{if(T===null)return c;if(T==="unassigned")return c.filter((I)=>!I.projectId);return c.filter((I)=>I.projectId===T)},[c,T]),F=T===null?"Agents":T==="unassigned"?"Unassigned Agents":M?.name||"Agents";return ao.jsxDEV("div",{className:"flex-1 flex overflow-hidden relative",children:[ao.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[ao.jsxDEV("div",{className:"flex items-center justify-between mb-6",children:[ao.jsxDEV("div",{className:"flex items-center gap-3",children:[M&&ao.jsxDEV("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:M.color}},void 0,!1,void 0,this),ao.jsxDEV("h1",{className:"text-xl font-semibold",children:F},void 0,!1,void 0,this),T!==null&&ao.jsxDEV("span",{className:"text-sm text-[var(--color-text-muted)]",children:["(",D.length," agent",D.length!==1?"s":"",")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),A&&ao.jsxDEV("button",{onClick:A,disabled:!K,className:"bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-2 rounded font-medium transition",children:"+ New Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z?ao.jsxDEV(jr,{message:"Loading agents..."},void 0,!1,void 0,this):D.length===0?ao.jsxDEV(zX,{onNewAgent:A,canCreateAgent:K,hasProjectFilter:T!==null},void 0,!1,void 0,this):ao.jsxDEV("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3 auto-rows-fr",children:D.map((I)=>ao.jsxDEV(K1,{agent:I,selected:_?.id===I.id,onSelect:()=>N(I),onToggle:(s)=>H(I,s),showProject:T===null},I.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_&&ao.jsxDEV("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-[2px] z-10",onClick:y},void 0,!1,void 0,this),_&&ao.jsxDEV("div",{className:"absolute right-0 top-0 bottom-0 w-full sm:w-[500px] lg:w-[600px] xl:w-[700px] z-20",children:ao.jsxDEV(d1,{agent:_,providers:d,onClose:y,onStartAgent:(I)=>H(_,I),onUpdateAgent:(I)=>g(_.id,I),onDeleteAgent:()=>G(_.id)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function zX({onNewAgent:c,canCreateAgent:Z,hasProjectFilter:_}){return ao.jsxDEV("div",{className:"text-center py-20 text-[var(--color-text-muted)]",children:[_?ao.jsxDEV(ao.Fragment,{children:[ao.jsxDEV("p",{className:"text-lg",children:"No agents in this project"},void 0,!1,void 0,this),ao.jsxDEV("p",{className:"text-sm mt-1",children:"Create an agent or assign existing agents to this project"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):ao.jsxDEV(ao.Fragment,{children:[ao.jsxDEV("p",{className:"text-lg",children:"No agents yet"},void 0,!1,void 0,this),ao.jsxDEV("p",{className:"text-sm mt-1",children:"Create your first agent to get started"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),c&&ao.jsxDEV("button",{onClick:c,disabled:!Z,className:"mt-4 bg-[var(--color-accent)] hover:bg-[var(--color-accent-hover)] disabled:opacity-50 disabled:cursor-not-allowed text-black px-4 py-2 rounded font-medium transition",children:"+ New Agent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var wo=Za(Eo(),1);var V=Za(vo(),1);function y1({agents:c,loading:Z,runningCount:_,configuredProviders:d,onNavigate:N,onSelectAgent:y}){let{authFetch:H}=Go(),{currentProjectId:G}=bp(),{events:g,statusChangeCounter:A}=u5(),{events:K}=W1({category:"TASK"}),T=wo.useRef(null),[M,D]=wo.useState(null),[F,I]=wo.useState([]),[s,_a]=wo.useState([]),[oa,ia]=wo.useState(null),h=wo.useMemo(()=>{if(!G)return c;if(G==="unassigned")return c.filter((L)=>!L.projectId);return c.filter((L)=>L.projectId===G)},[c,G]),Na=wo.useMemo(()=>{return h.filter((L)=>L.status==="running").length},[h]),ga=wo.useMemo(()=>{return new Set(h.map((L)=>L.id))},[h]),Oa=wo.useCallback(async()=>{try{let L=G?`project_id=${encodeURIComponent(G)}`:"",[W,fa,P]=await Promise.all([H(`/api/dashboard${L?`?${L}`:""}`),H(`/api/tasks?status=all${L?`&${L}`:""}`),H(`/api/telemetry/events?type=thread_activity&limit=20${L?`&${L}`:""}`)]);if(W.ok){let n=await W.json();D(n)}if(fa.ok){let n=await fa.json();I(n.tasks||[])}if(P.ok){let n=await P.json();_a(n.events||[])}}catch(L){console.error("Failed to fetch dashboard data:",L)}},[H,G]);wo.useEffect(()=>{Oa()},[Oa,A]),wo.useEffect(()=>{if(!K.length)return;let L=K[0];if(!L||L.id===T.current)return;if(L.type==="task_created"||L.type==="task_updated"||L.type==="task_deleted")T.current=L.id,Oa()},[K,Oa]);let x=wo.useMemo(()=>{let L=G?F.filter((W)=>ga.has(W.agentId)):F;return GX(L)},[F,G,ga]),na=wo.useMemo(()=>{if(!G)return M?.tasks||{total:0,pending:0,running:0,completed:0};let L=x.length,W=x.filter((n)=>n.status==="pending").length,fa=x.filter((n)=>n.status==="running").length,P=x.filter((n)=>n.status==="completed").length;return{total:L,pending:W,running:fa,completed:P}},[M,G,x]),O=wo.useMemo(()=>{let L=g.filter((n)=>n.type==="thread_activity"&&!n.data?.parent_id),W=new Set(L.map((n)=>n.id)),fa=[...L];for(let n of s)if(!W.has(n.id)&&!n.data?.parent_id)fa.push(n),W.add(n.id);let P=fa;if(G)P=fa.filter((n)=>ga.has(n.agent_id));return P.sort((n,ra)=>new Date(ra.timestamp).getTime()-new Date(n.timestamp).getTime()),P.slice(0,12)},[g,s,G,ga]),ta=wo.useMemo(()=>{let L=new Map;for(let W of c)L.set(W.id,W.name);return L},[c]);return V.jsxDEV("div",{className:"flex-1 overflow-auto p-6",children:[V.jsxDEV("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-4 mb-6",children:[V.jsxDEV(R1,{label:"Agents",value:h.length,subValue:`${Na} running`},void 0,!1,void 0,this),V.jsxDEV(R1,{label:"Tasks",value:na.total,subValue:`${na.pending} pending`},void 0,!1,void 0,this),V.jsxDEV(R1,{label:"Completed",value:na.completed,color:"text-green-400"},void 0,!1,void 0,this),V.jsxDEV(R1,{label:"Providers",value:d.length,color:"text-[var(--color-accent)]"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V.jsxDEV("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[V.jsxDEV(yi,{title:"Agents",actionLabel:"View All",onAction:()=>N("agents"),children:Z?V.jsxDEV("div",{className:"p-4 text-center text-[var(--color-text-muted)]",children:"Loading..."},void 0,!1,void 0,this):h.length===0?V.jsxDEV("div",{className:"p-4 text-center text-[var(--color-text-muted)]",children:"No agents yet"},void 0,!1,void 0,this):V.jsxDEV("div",{className:"divide-y divide-[var(--color-border)]",children:h.slice(0,5).map((L)=>V.jsxDEV($X,{agent:L,onSelect:()=>y(L),onMessage:L.status==="running"?()=>ia(L):void 0,showProject:!G},L.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),V.jsxDEV(yi,{title:"Activity",actionLabel:"Telemetry",onAction:()=>N("telemetry"),children:O.length===0?V.jsxDEV("div",{className:"p-4 text-center text-[var(--color-text-muted)]",children:[V.jsxDEV("p",{children:"No activity yet"},void 0,!1,void 0,this),V.jsxDEV("p",{className:"text-sm text-[var(--color-text-faint)] mt-1",children:"Agent activity will appear here in real-time"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):V.jsxDEV("div",{className:"divide-y divide-[var(--color-border)]",children:O.map((L)=>V.jsxDEV(YX,{activity:L.data?.activity||"Working...",agentName:ta.get(L.agent_id)||L.agent_id,timestamp:L.timestamp},L.id,!1,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this),V.jsxDEV(yi,{title:"Tasks",actionLabel:"View All",onAction:()=>N("tasks"),children:x.length===0?V.jsxDEV("div",{className:"p-4 text-center text-[var(--color-text-muted)]",children:[V.jsxDEV("p",{children:"No tasks yet"},void 0,!1,void 0,this),V.jsxDEV("p",{className:"text-sm text-[var(--color-text-faint)] mt-1",children:"Tasks will appear when agents create them"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):V.jsxDEV("div",{className:"divide-y divide-[var(--color-border)]",children:x.slice(0,5).map((L)=>V.jsxDEV("div",{className:"px-4 py-3 flex items-center justify-between",children:[V.jsxDEV("div",{className:"flex-1 min-w-0",children:[V.jsxDEV("p",{className:"font-medium truncate",children:L.title},void 0,!1,void 0,this),V.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)]",children:[L.agentName,L.recurrence&&V.jsxDEV("span",{className:"ml-1 text-[var(--color-text-faint)]",children:["· ",_X(L.recurrence)]},void 0,!0,void 0,this),L.next_run&&V.jsxDEV("span",{className:"ml-1 text-[var(--color-accent)]",children:["· ",az(L.next_run)]},void 0,!0,void 0,this),!L.next_run&&L.execute_at&&V.jsxDEV("span",{className:"ml-1 text-[var(--color-accent)]",children:["· ",az(L.execute_at)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),V.jsxDEV(XX,{status:L.status},void 0,!1,void 0,this)]},`${L.agentId}-${L.id}`,!0,void 0,this))},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),oa&&V.jsxDEV(ZX,{agent:oa,onClose:()=>ia(null)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function R1({label:c,value:Z,subValue:_,color:d}){return V.jsxDEV("div",{className:"bg-[var(--color-surface)] rounded p-4 border border-[var(--color-border)]",children:[V.jsxDEV("p",{className:"text-sm text-[var(--color-text-muted)] mb-1",children:c},void 0,!1,void 0,this),V.jsxDEV("p",{className:`text-2xl font-semibold ${d||""}`,children:Z},void 0,!1,void 0,this),_&&V.jsxDEV("p",{className:"text-xs text-[var(--color-text-faint)] mt-1",children:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function yi({title:c,actionLabel:Z,onAction:_,children:d}){return V.jsxDEV("div",{className:"bg-[var(--color-surface)] rounded border border-[var(--color-border)] overflow-hidden",children:[V.jsxDEV("div",{className:"px-4 py-3 border-b border-[var(--color-border)] flex items-center justify-between",children:[V.jsxDEV("h3",{className:"font-semibold",children:c},void 0,!1,void 0,this),V.jsxDEV("button",{onClick:_,className:"text-sm text-[#3b82f6] hover:text-[#60a5fa]",children:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this),d]},void 0,!0,void 0,this)}function $X({agent:c,onSelect:Z,onMessage:_,showProject:d}){let{isActive:N,label:y}=B1(c.id),{projects:H}=bp(),G=c.projectId?H.find((g)=>g.id===c.projectId):null;return V.jsxDEV("div",{onClick:Z,className:"px-4 py-3 hover:bg-[var(--color-surface-raised)] cursor-pointer flex items-center justify-between group",children:[V.jsxDEV("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[V.jsxDEV("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${c.status==="running"?N?"bg-green-400 animate-pulse":"bg-[#3b82f6]":"bg-[var(--color-scrollbar)]"}`},void 0,!1,void 0,this),V.jsxDEV("div",{className:"flex-1 min-w-0",children:[V.jsxDEV("p",{className:"font-medium truncate",children:c.name},void 0,!1,void 0,this),V.jsxDEV("div",{className:"flex items-center gap-2 text-sm text-[var(--color-text-muted)]",children:[N&&y?V.jsxDEV("span",{className:"text-green-400 truncate",children:y},void 0,!1,void 0,this):V.jsxDEV("span",{children:[c.provider," · ",c.status==="running"?"idle":"stopped"]},void 0,!0,void 0,this),d&&G&&V.jsxDEV(V.Fragment,{children:[V.jsxDEV("span",{className:"text-[var(--color-text-faint)]",children:"·"},void 0,!1,void 0,this),V.jsxDEV("span",{className:"flex items-center gap-1",children:[V.jsxDEV("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:G.color}},void 0,!1,void 0,this),G.name]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_&&V.jsxDEV("button",{onClick:(g)=>{g.stopPropagation(),_()},className:"opacity-0 group-hover:opacity-100 transition px-2 py-1 text-xs text-[var(--color-accent)] hover:bg-[var(--color-accent-10)] rounded",title:"Send message",children:V.jsxDEV("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:V.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function JX(c){let Z=Math.floor((Date.now()-new Date(c).getTime())/1000);if(Z<5)return"just now";if(Z<60)return`${Z}s ago`;let _=Math.floor(Z/60);if(_<60)return`${_}m ago`;let d=Math.floor(_/60);if(d<24)return`${d}h ago`;return`${Math.floor(d/24)}d ago`}function YX({activity:c,agentName:Z,timestamp:_}){return V.jsxDEV("div",{className:"px-4 py-3",children:[V.jsxDEV("p",{className:"text-sm truncate",children:c},void 0,!1,void 0,this),V.jsxDEV("div",{className:"flex items-center gap-2 text-xs text-[var(--color-text-faint)] mt-1",children:[V.jsxDEV("span",{className:"text-[var(--color-text-muted)]",children:Z},void 0,!1,void 0,this),V.jsxDEV("span",{className:"text-[var(--color-text-faint)]",children:"·"},void 0,!1,void 0,this),V.jsxDEV("span",{children:JX(_)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function XX({status:c}){let Z={pending:"bg-yellow-500/20 text-yellow-400",running:"bg-blue-500/20 text-blue-400",completed:"bg-green-500/20 text-green-400",failed:"bg-red-500/20 text-red-400",cancelled:"bg-gray-500/20 text-gray-400"};return V.jsxDEV("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${Z[c]||Z.pending}`,children:c},void 0,!1,void 0,this)}function ZX({agent:c,onClose:Z}){let{authFetch:_}=Go(),[d,N]=wo.useState(""),[y,H]=wo.useState(!1),[G,g]=wo.useState(!1),A=wo.useRef(null);wo.useEffect(()=>{A.current?.focus()},[]);let K=async()=>{if(!d.trim()||y)return;H(!0);try{if((await _(`/api/agents/${c.id}/chat`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:d.trim(),agent_id:c.id})})).ok)g(!0),setTimeout(Z,1200)}catch{}finally{H(!1)}};return V.jsxDEV("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[V.jsxDEV("div",{className:"absolute inset-0 bg-black/60",onClick:Z},void 0,!1,void 0,this),V.jsxDEV("div",{className:"relative bg-[var(--color-surface)] border border-[var(--color-border-light)] rounded-xl shadow-2xl w-full max-w-md mx-4 p-5",children:[V.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[V.jsxDEV("div",{className:"flex items-center gap-3",children:[V.jsxDEV("span",{className:"w-2.5 h-2.5 rounded-full bg-green-400 animate-pulse"},void 0,!1,void 0,this),V.jsxDEV("h3",{className:"font-medium",children:c.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this),V.jsxDEV("button",{onClick:Z,className:"text-[var(--color-text-muted)] hover:text-[var(--color-text)] transition",children:V.jsxDEV(wt,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),G?V.jsxDEV("div",{className:"py-6 text-center",children:[V.jsxDEV("p",{className:"text-green-400 font-medium",children:"Message sent"},void 0,!1,void 0,this),V.jsxDEV("p",{className:"text-sm text-[var(--color-text-faint)] mt-1",children:"The agent will process your message"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):V.jsxDEV("div",{className:"flex gap-2",children:[V.jsxDEV("input",{ref:A,type:"text",value:d,onChange:(T)=>N(T.target.value),onKeyDown:(T)=>T.key==="Enter"&&K(),placeholder:`Message ${c.name}...`,disabled:y,className:"flex-1 bg-[var(--color-bg)] border border-[var(--color-border-light)] btn px-3 py-2.5 text-sm focus:outline-none focus:border-[var(--color-accent)] placeholder-[#444] disabled:opacity-50"},void 0,!1,void 0,this),V.jsxDEV("button",{onClick:K,disabled:y||!d.trim(),className:"px-4 py-2.5 bg-[var(--color-accent)] text-black btn text-sm font-medium hover:bg-[var(--color-accent-hover)] transition disabled:opacity-30",children:y?"...":"Send"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function e9(c){if(c.status==="running")return 0;if(c.status==="pending")return 1;if(c.status==="completed")return 2;if(c.status==="failed")return 3;return 4}function GX(c){return[...c].sort((Z,_)=>{let d=e9(Z),N=e9(_);if(d!==N)return d-N;if(d<=1){let G=Z.next_run||Z.execute_at||null,g=_.next_run||_.execute_at||null,A=G?new Date(G).getTime():1/0,K=g?new Date(g).getTime():1/0;return A-K}let y=Z.completed_at||Z.executed_at||Z.created_at,H=_.completed_at||_.executed_at||_.created_at;return new Date(H).getTime()-new Date(y).getTime()})}var oz=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function _X(c){try{let Z=c.trim().split(/\s+/);if(Z.length!==5)return c;let[_,d,N,y,H]=Z;if(_.startsWith("*/")&&d==="*"&&N==="*"&&y==="*"&&H==="*"){let g=parseInt(_.slice(2));return g===1?"Every min":`Every ${g}min`}if(_!=="*"&&!_.includes("/")&&d==="*"&&N==="*"&&y==="*"&&H==="*")return"Hourly";if(d.startsWith("*/")&&N==="*"&&y==="*"&&H==="*"){let g=parseInt(d.slice(2));return g===1?"Hourly":`Every ${g}h`}let G=(g,A)=>{let K=parseInt(g),T=parseInt(A);if(isNaN(K))return"";let M=K>=12?"PM":"AM";return`${K===0?12:K>12?K-12:K}:${T.toString().padStart(2,"0")} ${M}`};if(d!=="*"&&!d.includes("/")&&N==="*"&&y==="*"){let g=G(d,_);if(H==="*")return`Daily ${g}`;let A=H.split(",").map((K)=>oz[parseInt(K.trim())]||K);if(A.length===1)return`${A[0]} ${g}`;return`${A.join(" & ")} ${g}`}return c}catch{return c}}function az(c){let Z=new Date(c),_=new Date,d=Z.getTime()-_.getTime(),N=d>0,y=Math.abs(d),H=Math.floor(y/60000),G=Math.floor(y/3600000),g=Z.toLocaleTimeString([],{hour:"numeric",minute:"2-digit"}),A=Z.toDateString()===_.toDateString(),K=new Date(_);K.setDate(K.getDate()+1);let T=Z.toDateString()===K.toDateString();if(A){if(H<1)return"now";if(H<60)return N?`in ${H}m`:`${H}m ago`;return N?`in ${G}h`:`${G}h ago`}if(T)return`Tomorrow ${g}`;return`${oz[Z.getDay()]} ${g}`}var Xa=Za(vo(),1),BX=Ta.lazy(()=>import("./SettingsPage.5jmnefwe.js").then((c)=>({default:c.SettingsPage}))),KX=Ta.lazy(()=>import("./TasksPage.r8txe0e9.js").then((c)=>({default:c.TasksPage}))),HX=Ta.lazy(()=>import("./McpPage.xvr8hk05.js").then((c)=>({default:c.McpPage}))),WX=Ta.lazy(()=>import("./SkillsPage.jw7carjq.js").then((c)=>({default:c.SkillsPage}))),dX=Ta.lazy(()=>import("./TestsPage.pkymr7yt.js").then((c)=>({default:c.TestsPage}))),UX=Ta.lazy(()=>import("./ThreadsPage.49tgq4fq.js").then((c)=>({default:c.ThreadsPage}))),RX=Ta.lazy(()=>import("./TelemetryPage.pcafk41x.js").then((c)=>({default:c.TelemetryPage}))),yX=Ta.lazy(()=>import("./ConnectionsPage.1dyyfqbk.js").then((c)=>({default:c.ConnectionsPage}))),OX=Ta.lazy(()=>import("./ActivityPage.9v5ha2p7.js").then((c)=>({default:c.ActivityPage}))),LX=Ta.lazy(()=>import("./ApiDocsPage.qsehxvkb.js").then((c)=>({default:c.ApiDocsPage})));function hX(){let{isAuthenticated:c,isLoading:Z,hasUsers:_,accessToken:d,checkAuth:N}=Go(),{currentProjectId:y,refreshProjects:H}=bp(),G=$1(),g=mz(),{isComplete:A,setIsComplete:K}=Ki(),T=()=>{return d?{Authorization:`Bearer ${d}`}:{}},M=c&&A===!0,{agents:D,loading:F,runningCount:I,fetchAgents:s,createAgent:_a,updateAgent:oa,deleteAgent:ia,toggleAgent:h}=Qi(M,y),{providers:Na,configuredProviders:ga,fetchProviders:Oa}=Bi(M),x=ga.filter((k)=>k.type==="llm"),na=Ta.useMemo(()=>{if(y===null)return D.length;if(y==="unassigned")return D.filter((k)=>!k.projectId).length;return D.filter((k)=>k.projectId===y).length},[D,y]),[O,ta]=Ta.useState(!1),[L,W]=Ta.useState(null),[fa,P]=Ta.useState("dashboard"),[n,ra]=Ta.useState(null),[Fa,Sa]=Ta.useState(0),[xo,Jp]=Ta.useState(!1);Ta.useEffect(()=>{if(!M)return;(async()=>{try{let $o="/api/tasks?status=pending";if(y!==null)$o+=`&project_id=${encodeURIComponent(y)}`;let ko=await fetch($o,{headers:T()});if(ko.ok){let Yp=await ko.json();Sa(Yp.count??(Yp.tasks||[]).length)}}catch{}})()},[M,d,y,G,g]);let[S,Ga]=Ta.useState({name:"",model:"",provider:"",systemPrompt:"You are a helpful assistant.",features:{...qi},mcpServers:[],skills:[]});Ta.useEffect(()=>{if(x.length>0&&!S.provider){let k=x[0],$o=k.models.find((ko)=>ko.recommended)?.value||k.models[0]?.value||"";Ga((ko)=>({...ko,provider:k.id,model:$o}))}},[x,S.provider]),Ta.useEffect(()=>{if(L){let k=D.find(($o)=>$o.id===L.id);if(k)W(k);else W(null)}},[D,L]);let oo=(k)=>{let $o=Na.find((Yp)=>Yp.id===k),ko=$o?.models.find((Yp)=>Yp.recommended)?.value||$o?.models[0]?.value||"";Ga((Yp)=>({...Yp,provider:k,model:ko}))},mr=async()=>{if(!S.name)return;await _a(S),await H();let k=x[0],$o=k?.models.find((ko)=>ko.recommended)?.value||k?.models[0]?.value||"";Ga({name:"",model:$o,provider:k?.id||"",systemPrompt:"You are a helpful assistant.",features:{...qi},mcpServers:[],skills:[]}),ta(!1)},w0=async(k,$o)=>{$o?.stopPropagation(),ra(null);let ko=await h(k);if(ko.error)ra(ko.error)},tr=async(k,$o)=>{if($o?.stopPropagation(),L?.id===k)W(null);await ia(k),await H()},R=(k)=>{W(k),ra(null),P("agents")},e=(k)=>{P(k),W(null)},xa=()=>{K(!0),Oa(),N()};if(Z||_===null)return Xa.jsxDEV(jr,{fullScreen:!0},void 0,!1,void 0,this);if(!_)return Xa.jsxDEV(D5,{onComplete:xa,needsAccount:!0},void 0,!1,void 0,this);if(!c)return Xa.jsxDEV(_1,{},void 0,!1,void 0,this);if(A===null)return Xa.jsxDEV(jr,{fullScreen:!0},void 0,!1,void 0,this);if(!A)return Xa.jsxDEV(D5,{onComplete:xa,needsAccount:!1},void 0,!1,void 0,this);return Xa.jsxDEV("div",{className:"h-screen flex flex-col overflow-hidden",style:{backgroundColor:"var(--color-bg)",color:"var(--color-text)"},children:[Xa.jsxDEV(J1,{onMenuClick:()=>Jp(!0),agents:D},void 0,!1,void 0,this),n&&Xa.jsxDEV(G1,{message:n,onDismiss:()=>ra(null)},void 0,!1,void 0,this),Xa.jsxDEV("div",{className:"flex flex-1 overflow-hidden",children:[Xa.jsxDEV(Z1,{route:fa,agentCount:na,taskCount:Fa,onNavigate:e,isOpen:xo,onClose:()=>Jp(!1)},void 0,!1,void 0,this),Xa.jsxDEV("main",{className:"flex-1 overflow-hidden flex",children:Xa.jsxDEV(Ta.Suspense,{fallback:Xa.jsxDEV(jr,{},void 0,!1,void 0,this),children:[fa==="settings"&&Xa.jsxDEV(BX,{},void 0,!1,void 0,this),fa==="agents"&&Xa.jsxDEV(U1,{agents:D,loading:F,selectedAgent:L,providers:Na,onSelectAgent:R,onCloseAgent:()=>W(null),onToggleAgent:w0,onDeleteAgent:tr,onUpdateAgent:oa,onNewAgent:()=>ta(!0),canCreateAgent:x.length>0},void 0,!1,void 0,this),fa==="dashboard"&&Xa.jsxDEV(y1,{agents:D,loading:F,runningCount:I,configuredProviders:ga,onNavigate:e,onSelectAgent:R},void 0,!1,void 0,this),fa==="threads"&&Xa.jsxDEV(UX,{agents:D,onNavigate:P},void 0,!1,void 0,this),fa==="activity"&&Xa.jsxDEV(OX,{agents:D,loading:F,onNavigate:e},void 0,!1,void 0,this),fa==="tasks"&&Xa.jsxDEV(KX,{},void 0,!1,void 0,this),fa==="connections"&&Xa.jsxDEV(yX,{},void 0,!1,void 0,this),fa==="mcp"&&Xa.jsxDEV(HX,{},void 0,!1,void 0,this),fa==="skills"&&Xa.jsxDEV(WX,{},void 0,!1,void 0,this),fa==="tests"&&Xa.jsxDEV(dX,{},void 0,!1,void 0,this),fa==="telemetry"&&Xa.jsxDEV(RX,{},void 0,!1,void 0,this),fa==="api"&&Xa.jsxDEV(LX,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),O&&Xa.jsxDEV(H1,{form:S,providers:Na,configuredProviders:ga,onFormChange:Ga,onProviderChange:oo,onCreate:mr,onClose:()=>ta(!1),onGoToSettings:()=>{ta(!1),P("settings")}},void 0,!1,void 0,this),Xa.jsxDEV(h9,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function kX({token:c}){let{theme:Z}=Vr(),[_,d]=Ta.useState("checking"),[N,y]=Ta.useState("Agent");if(Ta.useEffect(()=>{let H=async()=>{try{let g=await fetch(`/share/${c}/info`);if(g.ok){let A=await g.json();y(A.name||"Agent"),d(A.status==="running"?"online":"offline")}else d("offline")}catch{d("offline")}};H();let G=setInterval(H,15000);return()=>clearInterval(G)},[c]),_==="checking")return Xa.jsxDEV("div",{className:"min-h-[100dvh] flex items-center justify-center",style:{backgroundColor:"var(--color-bg)"},children:Xa.jsxDEV("div",{className:"text-sm",style:{color:"var(--color-text-muted)"},children:"Connecting..."},void 0,!1,void 0,this)},void 0,!1,void 0,this);if(_==="offline")return Xa.jsxDEV("div",{className:"min-h-[100dvh] flex items-center justify-center",style:{backgroundColor:"var(--color-bg)"},children:Xa.jsxDEV("div",{className:"text-center",children:[Xa.jsxDEV("div",{className:"w-2.5 h-2.5 rounded-full mx-auto mb-3",style:{backgroundColor:"var(--color-text-muted)"}},void 0,!1,void 0,this),Xa.jsxDEV("div",{className:"text-base font-semibold mb-1.5",style:{color:"var(--color-text)"},children:N},void 0,!1,void 0,this),Xa.jsxDEV("div",{className:"text-sm",style:{color:"var(--color-text-muted)"},children:"This agent is currently offline"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this);return Xa.jsxDEV("div",{className:"min-h-[100dvh] flex items-center justify-center p-0 md:p-4",style:{backgroundColor:"var(--color-bg)"},children:Xa.jsxDEV("div",{className:"w-full max-w-[640px] h-[100dvh] md:h-[calc(100dvh-32px)] md:max-h-[800px] md:rounded-xl overflow-hidden md:border flex flex-col",style:{backgroundColor:"var(--color-bg)",borderColor:"var(--color-border)"},children:Xa.jsxDEV(xr,{agentId:"default",apiUrl:`/share/${c}`,placeholder:"Type a message...",variant:"terminal",theme:Z.id,headerTitle:N,enableMarkdown:!0,enableWidgets:!0,availableWidgets:["form","kpi"]},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function NX(){let c=window.location.pathname.match(/^\/share\/([a-f0-9]{32})$/);if(c)return Xa.jsxDEV(Oi,{children:Xa.jsxDEV(kX,{token:c[1]},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Xa.jsxDEV(Oi,{children:Xa.jsxDEV(tz,{children:Xa.jsxDEV(rz,{children:Xa.jsxDEV(O9,{children:Xa.jsxDEV(pz,{children:Xa.jsxDEV(hX,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var MX=vz.createRoot(document.getElementById("root"));MX.render(Xa.jsxDEV(NX,{},void 0,!1,void 0,this));
|
|
220
|
+
|
|
221
|
+
//# debugId=3D57972A64689B6664756E2164756E21
|