conductor-board 2.0.0 → 2.2.0
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/bin/cli.js +73 -13
- package/cli/complete.js +47 -6
- package/cli/knowledge.js +109 -0
- package/cli/setup.js +19 -8
- package/cli/validate.js +2 -0
- package/cli/writer.js +245 -4
- package/dist/assets/index-DvTrz5lj.js +34 -0
- package/dist/assets/index-ilfk-igS.css +1 -0
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/server/server.js +183 -54
- package/dist/assets/index-BIA1HyJ3.js +0 -34
- package/dist/assets/index-Di1Pl_pH.css +0 -1
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import{r as Qd,a as G,j as c,m as fl,A as Ne,L as Ld}from"./motion-Dmvx5jlk.js";import{i as j0}from"./yaml-NA7d4LV6.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const x of document.querySelectorAll('link[rel="modulepreload"]'))o(x);new MutationObserver(x=>{for(const v of x)if(v.type==="childList")for(const T of v.addedNodes)T.tagName==="LINK"&&T.rel==="modulepreload"&&o(T)}).observe(document,{childList:!0,subtree:!0});function p(x){const v={};return x.integrity&&(v.integrity=x.integrity),x.referrerPolicy&&(v.referrerPolicy=x.referrerPolicy),x.crossOrigin==="use-credentials"?v.credentials="include":x.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function o(x){if(x.ep)return;x.ep=!0;const v=p(x);fetch(x.href,v)}})();var fs={exports:{}},zn={},os={exports:{}},rs={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* scheduler.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Nd;function z0(){return Nd||(Nd=1,(function(s){function r(M,H){var w=M.length;M.push(H);t:for(;0<w;){var ct=w-1>>>1,pt=M[ct];if(0<x(pt,H))M[ct]=H,M[w]=pt,w=ct;else break t}}function p(M){return M.length===0?null:M[0]}function o(M){if(M.length===0)return null;var H=M[0],w=M.pop();if(w!==H){M[0]=w;t:for(var ct=0,pt=M.length,Bt=pt>>>1;ct<Bt;){var ft=2*(ct+1)-1,I=M[ft],Et=ft+1,rl=M[Et];if(0>x(I,w))Et<pt&&0>x(rl,I)?(M[ct]=rl,M[Et]=w,ct=Et):(M[ct]=I,M[ft]=w,ct=ft);else if(Et<pt&&0>x(rl,w))M[ct]=rl,M[Et]=w,ct=Et;else break t}}return H}function x(M,H){var w=M.sortIndex-H.sortIndex;return w!==0?w:M.id-H.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;s.unstable_now=function(){return v.now()}}else{var T=Date,_=T.now();s.unstable_now=function(){return T.now()-_}}var j=[],m=[],A=1,O=null,C=3,B=!1,X=!1,P=!1,K=!1,U=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;function F(M){for(var H=p(m);H!==null;){if(H.callback===null)o(m);else if(H.startTime<=M)o(m),H.sortIndex=H.expirationTime,r(j,H);else break;H=p(m)}}function yt(M){if(P=!1,F(M),!X)if(p(j)!==null)X=!0,R||(R=!0,Zt());else{var H=p(m);H!==null&&ol(yt,H.startTime-M)}}var R=!1,J=-1,Nt=5,Lt=-1;function Nl(){return K?!0:!(s.unstable_now()-Lt<Nt)}function Vt(){if(K=!1,R){var M=s.unstable_now();Lt=M;var H=!0;try{t:{X=!1,P&&(P=!1,Q(J),J=-1),B=!0;var w=C;try{l:{for(F(M),O=p(j);O!==null&&!(O.expirationTime>M&&Nl());){var ct=O.callback;if(typeof ct=="function"){O.callback=null,C=O.priorityLevel;var pt=ct(O.expirationTime<=M);if(M=s.unstable_now(),typeof pt=="function"){O.callback=pt,F(M),H=!0;break l}O===p(j)&&o(j),F(M)}else o(j);O=p(j)}if(O!==null)H=!0;else{var Bt=p(m);Bt!==null&&ol(yt,Bt.startTime-M),H=!1}}break t}finally{O=null,C=w,B=!1}H=void 0}}finally{H?Zt():R=!1}}}var Zt;if(typeof W=="function")Zt=function(){W(Vt)};else if(typeof MessageChannel<"u"){var je=new MessageChannel,ze=je.port2;je.port1.onmessage=Vt,Zt=function(){ze.postMessage(null)}}else Zt=function(){U(Vt,0)};function ol(M,H){J=U(function(){M(s.unstable_now())},H)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Nt=0<M?Math.floor(1e3/M):5},s.unstable_getCurrentPriorityLevel=function(){return C},s.unstable_next=function(M){switch(C){case 1:case 2:case 3:var H=3;break;default:H=C}var w=C;C=H;try{return M()}finally{C=w}},s.unstable_requestPaint=function(){K=!0},s.unstable_runWithPriority=function(M,H){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var w=C;C=M;try{return H()}finally{C=w}},s.unstable_scheduleCallback=function(M,H,w){var ct=s.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?ct+w:ct):w=ct,M){case 1:var pt=-1;break;case 2:pt=250;break;case 5:pt=1073741823;break;case 4:pt=1e4;break;default:pt=5e3}return pt=w+pt,M={id:A++,callback:H,priorityLevel:M,startTime:w,expirationTime:pt,sortIndex:-1},w>ct?(M.sortIndex=w,r(m,M),p(j)===null&&M===p(m)&&(P?(Q(J),J=-1):P=!0,ol(yt,w-ct))):(M.sortIndex=pt,r(j,M),X||B||(X=!0,R||(R=!0,Zt()))),M},s.unstable_shouldYield=Nl,s.unstable_wrapCallback=function(M){var H=C;return function(){var w=C;C=H;try{return M.apply(this,arguments)}finally{C=w}}}})(rs)),rs}var jd;function T0(){return jd||(jd=1,os.exports=z0()),os.exports}var ds={exports:{}},Qt={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-dom.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var zd;function A0(){if(zd)return Qt;zd=1;var s=Qd();function r(j){var m="https://react.dev/errors/"+j;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)m+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+j+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function p(){}var o={d:{f:p,r:function(){throw Error(r(522))},D:p,C:p,L:p,m:p,X:p,S:p,M:p},p:0,findDOMNode:null},x=Symbol.for("react.portal");function v(j,m,A){var O=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:x,key:O==null?null:""+O,children:j,containerInfo:m,implementation:A}}var T=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(j,m){if(j==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Qt.createPortal=function(j,m){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(r(299));return v(j,m,null,A)},Qt.flushSync=function(j){var m=T.T,A=o.p;try{if(T.T=null,o.p=2,j)return j()}finally{T.T=m,o.p=A,o.d.f()}},Qt.preconnect=function(j,m){typeof j=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(j,m))},Qt.prefetchDNS=function(j){typeof j=="string"&&o.d.D(j)},Qt.preinit=function(j,m){if(typeof j=="string"&&m&&typeof m.as=="string"){var A=m.as,O=_(A,m.crossOrigin),C=typeof m.integrity=="string"?m.integrity:void 0,B=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;A==="style"?o.d.S(j,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:O,integrity:C,fetchPriority:B}):A==="script"&&o.d.X(j,{crossOrigin:O,integrity:C,fetchPriority:B,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Qt.preinitModule=function(j,m){if(typeof j=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var A=_(m.as,m.crossOrigin);o.d.M(j,{crossOrigin:A,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(j)},Qt.preload=function(j,m){if(typeof j=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var A=m.as,O=_(A,m.crossOrigin);o.d.L(j,A,{crossOrigin:O,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Qt.preloadModule=function(j,m){if(typeof j=="string")if(m){var A=_(m.as,m.crossOrigin);o.d.m(j,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:A,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(j)},Qt.requestFormReset=function(j){o.d.r(j)},Qt.unstable_batchedUpdates=function(j,m){return j(m)},Qt.useFormState=function(j,m,A){return T.H.useFormState(j,m,A)},Qt.useFormStatus=function(){return T.H.useHostTransitionStatus()},Qt.version="19.2.7",Qt}var Td;function E0(){if(Td)return ds.exports;Td=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),ds.exports=A0(),ds.exports}/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react-dom-client.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Ad;function M0(){if(Ad)return zn;Ad=1;var s=T0(),r=Qd(),p=E0();function o(t){var l="https://react.dev/errors/"+t;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var e=2;e<arguments.length;e++)l+="&args[]="+encodeURIComponent(arguments[e])}return"Minified React error #"+t+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function x(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function v(t){var l=t,e=t;if(t.alternate)for(;l.return;)l=l.return;else{t=l;do l=t,(l.flags&4098)!==0&&(e=l.return),t=l.return;while(t)}return l.tag===3?e:null}function T(t){if(t.tag===13){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function _(t){if(t.tag===31){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function j(t){if(v(t)!==t)throw Error(o(188))}function m(t){var l=t.alternate;if(!l){if(l=v(t),l===null)throw Error(o(188));return l!==t?null:t}for(var e=t,a=l;;){var n=e.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){e=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===e)return j(n),t;if(u===a)return j(n),l;u=u.sibling}throw Error(o(188))}if(e.return!==a.return)e=n,a=u;else{for(var i=!1,f=n.child;f;){if(f===e){i=!0,e=n,a=u;break}if(f===a){i=!0,a=n,e=u;break}f=f.sibling}if(!i){for(f=u.child;f;){if(f===e){i=!0,e=u,a=n;break}if(f===a){i=!0,a=u,e=n;break}f=f.sibling}if(!i)throw Error(o(189))}}if(e.alternate!==a)throw Error(o(190))}if(e.tag!==3)throw Error(o(188));return e.stateNode.current===e?t:l}function A(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t;for(t=t.child;t!==null;){if(l=A(t),l!==null)return l;t=t.sibling}return null}var O=Object.assign,C=Symbol.for("react.element"),B=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),W=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),yt=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),Nt=Symbol.for("react.lazy"),Lt=Symbol.for("react.activity"),Nl=Symbol.for("react.memo_cache_sentinel"),Vt=Symbol.iterator;function Zt(t){return t===null||typeof t!="object"?null:(t=Vt&&t[Vt]||t["@@iterator"],typeof t=="function"?t:null)}var je=Symbol.for("react.client.reference");function ze(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===je?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case P:return"Fragment";case U:return"Profiler";case K:return"StrictMode";case yt:return"Suspense";case R:return"SuspenseList";case Lt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case X:return"Portal";case W:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case F:var l=t.render;return t=t.displayName,t||(t=l.displayName||l.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case J:return l=t.displayName||null,l!==null?l:ze(t.type)||"Memo";case Nt:l=t._payload,t=t._init;try{return ze(t(l))}catch{}}return null}var ol=Array.isArray,M=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=p.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w={pending:!1,data:null,method:null,action:null},ct=[],pt=-1;function Bt(t){return{current:t}}function ft(t){0>pt||(t.current=ct[pt],ct[pt]=null,pt--)}function I(t,l){pt++,ct[pt]=t.current,t.current=l}var Et=Bt(null),rl=Bt(null),Al=Bt(null),Ve=Bt(null);function Te(t,l){switch(I(Al,l),I(rl,t),I(Et,null),l.nodeType){case 9:case 11:t=(t=l.documentElement)&&(t=t.namespaceURI)?Vr(t):0;break;default:if(t=l.tagName,l=l.namespaceURI)l=Vr(l),t=Kr(l,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}ft(Et),I(Et,t)}function Ul(){ft(Et),ft(rl),ft(Al)}function Ke(t){t.memoizedState!==null&&I(Ve,t);var l=Et.current,e=Kr(l,t.type);l!==e&&(I(rl,t),I(Et,e))}function V(t){rl.current===t&&(ft(Et),ft(rl)),Ve.current===t&&(ft(Ve),bn._currentValue=w)}var gt,El;function Ae(t){if(gt===void 0)try{throw Error()}catch(e){var l=e.stack.trim().match(/\n( *(at )?)/);gt=l&&l[1]||"",El=-1<e.stack.indexOf(`
|
|
26
|
-
at`)?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
27
|
-
`+gt+t+El}var Ku=!1;function Ju(t,l){if(!t||Ku)return"";Ku=!0;var e=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(l){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(N){var S=N}Reflect.construct(t,[],D)}else{try{D.call()}catch(N){S=N}t.call(D.prototype)}}else{try{throw Error()}catch(N){S=N}(D=t())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(N){if(N&&S&&typeof N.stack=="string")return[N.stack,S.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],f=u[1];if(i&&f){var d=i.split(`
|
|
28
|
-
`),b=f.split(`
|
|
29
|
-
`);for(n=a=0;a<d.length&&!d[a].includes("DetermineComponentFrameRoot");)a++;for(;n<b.length&&!b[n].includes("DetermineComponentFrameRoot");)n++;if(a===d.length||n===b.length)for(a=d.length-1,n=b.length-1;1<=a&&0<=n&&d[a]!==b[n];)n--;for(;1<=a&&0<=n;a--,n--)if(d[a]!==b[n]){if(a!==1||n!==1)do if(a--,n--,0>n||d[a]!==b[n]){var z=`
|
|
30
|
-
`+d[a].replace(" at new "," at ");return t.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",t.displayName)),z}while(1<=a&&0<=n);break}}}finally{Ku=!1,Error.prepareStackTrace=e}return(e=t?t.displayName||t.name:"")?Ae(e):""}function tm(t,l){switch(t.tag){case 26:case 27:case 5:return Ae(t.type);case 16:return Ae("Lazy");case 13:return t.child!==l&&l!==null?Ae("Suspense Fallback"):Ae("Suspense");case 19:return Ae("SuspenseList");case 0:case 15:return Ju(t.type,!1);case 11:return Ju(t.type.render,!1);case 1:return Ju(t.type,!0);case 31:return Ae("Activity");default:return""}}function bs(t){try{var l="",e=null;do l+=tm(t,e),e=t,t=t.return;while(t);return l}catch(a){return`
|
|
31
|
-
Error generating stack: `+a.message+`
|
|
32
|
-
`+a.stack}}var ku=Object.prototype.hasOwnProperty,$u=s.unstable_scheduleCallback,Wu=s.unstable_cancelCallback,lm=s.unstable_shouldYield,em=s.unstable_requestPaint,Pt=s.unstable_now,am=s.unstable_getCurrentPriorityLevel,Ss=s.unstable_ImmediatePriority,Ns=s.unstable_UserBlockingPriority,En=s.unstable_NormalPriority,nm=s.unstable_LowPriority,js=s.unstable_IdlePriority,um=s.log,im=s.unstable_setDisableYieldValue,_a=null,tl=null;function Fl(t){if(typeof um=="function"&&im(t),tl&&typeof tl.setStrictMode=="function")try{tl.setStrictMode(_a,t)}catch{}}var ll=Math.clz32?Math.clz32:fm,cm=Math.log,sm=Math.LN2;function fm(t){return t>>>=0,t===0?32:31-(cm(t)/sm|0)|0}var Mn=256,On=262144,Dn=4194304;function Ee(t){var l=t&42;if(l!==0)return l;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function _n(t,l,e){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var f=a&134217727;return f!==0?(a=f&~u,a!==0?n=Ee(a):(i&=f,i!==0?n=Ee(i):e||(e=f&~t,e!==0&&(n=Ee(e))))):(f=a&~u,f!==0?n=Ee(f):i!==0?n=Ee(i):e||(e=a&~t,e!==0&&(n=Ee(e)))),n===0?0:l!==0&&l!==n&&(l&u)===0&&(u=n&-n,e=l&-l,u>=e||u===32&&(e&4194048)!==0)?l:n}function Ua(t,l){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&l)===0}function om(t,l){switch(t){case 1:case 2:case 4:case 8:case 64:return l+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 l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zs(){var t=Dn;return Dn<<=1,(Dn&62914560)===0&&(Dn=4194304),t}function Fu(t){for(var l=[],e=0;31>e;e++)l.push(t);return l}function Ca(t,l){t.pendingLanes|=l,l!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function rm(t,l,e,a,n,u){var i=t.pendingLanes;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=e,t.entangledLanes&=e,t.errorRecoveryDisabledLanes&=e,t.shellSuspendCounter=0;var f=t.entanglements,d=t.expirationTimes,b=t.hiddenUpdates;for(e=i&~e;0<e;){var z=31-ll(e),D=1<<z;f[z]=0,d[z]=-1;var S=b[z];if(S!==null)for(b[z]=null,z=0;z<S.length;z++){var N=S[z];N!==null&&(N.lane&=-536870913)}e&=~D}a!==0&&Ts(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(i&~l))}function Ts(t,l,e){t.pendingLanes|=l,t.suspendedLanes&=~l;var a=31-ll(l);t.entangledLanes|=l,t.entanglements[a]=t.entanglements[a]|1073741824|e&261930}function As(t,l){var e=t.entangledLanes|=l;for(t=t.entanglements;e;){var a=31-ll(e),n=1<<a;n&l|t[a]&l&&(t[a]|=l),e&=~n}}function Es(t,l){var e=l&-l;return e=(e&42)!==0?1:Iu(e),(e&(t.suspendedLanes|l))!==0?0:e}function Iu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Pu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ms(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:pd(t.type))}function Os(t,l){var e=H.p;try{return H.p=t,l()}finally{H.p=e}}var Il=Math.random().toString(36).slice(2),qt="__reactFiber$"+Il,Kt="__reactProps$"+Il,Je="__reactContainer$"+Il,ti="__reactEvents$"+Il,dm="__reactListeners$"+Il,mm="__reactHandles$"+Il,Ds="__reactResources$"+Il,Ha="__reactMarker$"+Il;function li(t){delete t[qt],delete t[Kt],delete t[ti],delete t[dm],delete t[mm]}function ke(t){var l=t[qt];if(l)return l;for(var e=t.parentNode;e;){if(l=e[Je]||e[qt]){if(e=l.alternate,l.child!==null||e!==null&&e.child!==null)for(t=Pr(t);t!==null;){if(e=t[qt])return e;t=Pr(t)}return l}t=e,e=t.parentNode}return null}function $e(t){if(t=t[qt]||t[Je]){var l=t.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return t}return null}function Ba(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t.stateNode;throw Error(o(33))}function We(t){var l=t[Ds];return l||(l=t[Ds]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Ct(t){t[Ha]=!0}var _s=new Set,Us={};function Me(t,l){Fe(t,l),Fe(t+"Capture",l)}function Fe(t,l){for(Us[t]=l,t=0;t<l.length;t++)_s.add(l[t])}var hm=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]*$"),Cs={},Hs={};function pm(t){return ku.call(Hs,t)?!0:ku.call(Cs,t)?!1:hm.test(t)?Hs[t]=!0:(Cs[t]=!0,!1)}function Un(t,l,e){if(pm(l))if(e===null)t.removeAttribute(l);else{switch(typeof e){case"undefined":case"function":case"symbol":t.removeAttribute(l);return;case"boolean":var a=l.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(l);return}}t.setAttribute(l,""+e)}}function Cn(t,l,e){if(e===null)t.removeAttribute(l);else{switch(typeof e){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttribute(l,""+e)}}function Cl(t,l,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttributeNS(l,e,""+a)}}function dl(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Bs(t){var l=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function gm(t,l,e){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,l);if(!t.hasOwnProperty(l)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(t,l,{configurable:!0,get:function(){return n.call(this)},set:function(i){e=""+i,u.call(this,i)}}),Object.defineProperty(t,l,{enumerable:a.enumerable}),{getValue:function(){return e},setValue:function(i){e=""+i},stopTracking:function(){t._valueTracker=null,delete t[l]}}}}function ei(t){if(!t._valueTracker){var l=Bs(t)?"checked":"value";t._valueTracker=gm(t,l,""+t[l])}}function qs(t){if(!t)return!1;var l=t._valueTracker;if(!l)return!0;var e=l.getValue(),a="";return t&&(a=Bs(t)?t.checked?"true":"false":t.value),t=a,t!==e?(l.setValue(t),!0):!1}function Hn(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var xm=/[\n"\\]/g;function ml(t){return t.replace(xm,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function ai(t,l,e,a,n,u,i,f){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),l!=null?i==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+dl(l)):t.value!==""+dl(l)&&(t.value=""+dl(l)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),l!=null?ni(t,i,dl(l)):e!=null?ni(t,i,dl(e)):a!=null&&t.removeAttribute("value"),n==null&&u!=null&&(t.defaultChecked=!!u),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.name=""+dl(f):t.removeAttribute("name")}function Rs(t,l,e,a,n,u,i,f){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),l!=null||e!=null){if(!(u!=="submit"&&u!=="reset"||l!=null)){ei(t);return}e=e!=null?""+dl(e):"",l=l!=null?""+dl(l):e,f||l===t.value||(t.value=l),t.defaultValue=l}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=f?t.checked:!!a,t.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i),ei(t)}function ni(t,l,e){l==="number"&&Hn(t.ownerDocument)===t||t.defaultValue===""+e||(t.defaultValue=""+e)}function Ie(t,l,e,a){if(t=t.options,l){l={};for(var n=0;n<e.length;n++)l["$"+e[n]]=!0;for(e=0;e<t.length;e++)n=l.hasOwnProperty("$"+t[e].value),t[e].selected!==n&&(t[e].selected=n),n&&a&&(t[e].defaultSelected=!0)}else{for(e=""+dl(e),l=null,n=0;n<t.length;n++){if(t[n].value===e){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}l!==null||t[n].disabled||(l=t[n])}l!==null&&(l.selected=!0)}}function Ys(t,l,e){if(l!=null&&(l=""+dl(l),l!==t.value&&(t.value=l),e==null)){t.defaultValue!==l&&(t.defaultValue=l);return}t.defaultValue=e!=null?""+dl(e):""}function Gs(t,l,e,a){if(l==null){if(a!=null){if(e!=null)throw Error(o(92));if(ol(a)){if(1<a.length)throw Error(o(93));a=a[0]}e=a}e==null&&(e=""),l=e}e=dl(l),t.defaultValue=e,a=t.textContent,a===e&&a!==""&&a!==null&&(t.value=a),ei(t)}function Pe(t,l){if(l){var e=t.firstChild;if(e&&e===t.lastChild&&e.nodeType===3){e.nodeValue=l;return}}t.textContent=l}var ym=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Xs(t,l,e){var a=l.indexOf("--")===0;e==null||typeof e=="boolean"||e===""?a?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="":a?t.setProperty(l,e):typeof e!="number"||e===0||ym.has(l)?l==="float"?t.cssFloat=e:t[l]=(""+e).trim():t[l]=e+"px"}function Qs(t,l,e){if(l!=null&&typeof l!="object")throw Error(o(62));if(t=t.style,e!=null){for(var a in e)!e.hasOwnProperty(a)||l!=null&&l.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in l)a=l[n],l.hasOwnProperty(n)&&e[n]!==a&&Xs(t,n,a)}else for(var u in l)l.hasOwnProperty(u)&&Xs(t,u,l[u])}function ui(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vm=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"]]),bm=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Bn(t){return bm.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Hl(){}var ii=null;function ci(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ta=null,la=null;function Ls(t){var l=$e(t);if(l&&(t=l.stateNode)){var e=t[Kt]||null;t:switch(t=l.stateNode,l.type){case"input":if(ai(t,e.value,e.defaultValue,e.defaultValue,e.checked,e.defaultChecked,e.type,e.name),l=e.name,e.type==="radio"&&l!=null){for(e=t;e.parentNode;)e=e.parentNode;for(e=e.querySelectorAll('input[name="'+ml(""+l)+'"][type="radio"]'),l=0;l<e.length;l++){var a=e[l];if(a!==t&&a.form===t.form){var n=a[Kt]||null;if(!n)throw Error(o(90));ai(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(l=0;l<e.length;l++)a=e[l],a.form===t.form&&qs(a)}break t;case"textarea":Ys(t,e.value,e.defaultValue);break t;case"select":l=e.value,l!=null&&Ie(t,!!e.multiple,l,!1)}}}var si=!1;function Zs(t,l,e){if(si)return t(l,e);si=!0;try{var a=t(l);return a}finally{if(si=!1,(ta!==null||la!==null)&&(Nu(),ta&&(l=ta,t=la,la=ta=null,Ls(l),t)))for(l=0;l<t.length;l++)Ls(t[l])}}function qa(t,l){var e=t.stateNode;if(e===null)return null;var a=e[Kt]||null;if(a===null)return null;e=a[l];t:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(e&&typeof e!="function")throw Error(o(231,l,typeof e));return e}var Bl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fi=!1;if(Bl)try{var Ra={};Object.defineProperty(Ra,"passive",{get:function(){fi=!0}}),window.addEventListener("test",Ra,Ra),window.removeEventListener("test",Ra,Ra)}catch{fi=!1}var Pl=null,oi=null,qn=null;function ws(){if(qn)return qn;var t,l=oi,e=l.length,a,n="value"in Pl?Pl.value:Pl.textContent,u=n.length;for(t=0;t<e&&l[t]===n[t];t++);var i=e-t;for(a=1;a<=i&&l[e-a]===n[u-a];a++);return qn=n.slice(t,1<a?1-a:void 0)}function Rn(t){var l=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&l===13&&(t=13)):t=l,t===10&&(t=13),32<=t||t===13?t:0}function Yn(){return!0}function Vs(){return!1}function Jt(t){function l(e,a,n,u,i){this._reactName=e,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var f in t)t.hasOwnProperty(f)&&(e=t[f],this[f]=e?e(u):u[f]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Yn:Vs,this.isPropagationStopped=Vs,this}return O(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!="unknown"&&(e.returnValue=!1),this.isDefaultPrevented=Yn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!="unknown"&&(e.cancelBubble=!0),this.isPropagationStopped=Yn)},persist:function(){},isPersistent:Yn}),l}var Oe={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gn=Jt(Oe),Ya=O({},Oe,{view:0,detail:0}),Sm=Jt(Ya),ri,di,Ga,Xn=O({},Ya,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hi,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ga&&(Ga&&t.type==="mousemove"?(ri=t.screenX-Ga.screenX,di=t.screenY-Ga.screenY):di=ri=0,Ga=t),ri)},movementY:function(t){return"movementY"in t?t.movementY:di}}),Ks=Jt(Xn),Nm=O({},Xn,{dataTransfer:0}),jm=Jt(Nm),zm=O({},Ya,{relatedTarget:0}),mi=Jt(zm),Tm=O({},Oe,{animationName:0,elapsedTime:0,pseudoElement:0}),Am=Jt(Tm),Em=O({},Oe,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Mm=Jt(Em),Om=O({},Oe,{data:0}),Js=Jt(Om),Dm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_m={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"},Um={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cm(t){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(t):(t=Um[t])?!!l[t]:!1}function hi(){return Cm}var Hm=O({},Ya,{key:function(t){if(t.key){var l=Dm[t.key]||t.key;if(l!=="Unidentified")return l}return t.type==="keypress"?(t=Rn(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?_m[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hi,charCode:function(t){return t.type==="keypress"?Rn(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Rn(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Bm=Jt(Hm),qm=O({},Xn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ks=Jt(qm),Rm=O({},Ya,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hi}),Ym=Jt(Rm),Gm=O({},Oe,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xm=Jt(Gm),Qm=O({},Xn,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Lm=Jt(Qm),Zm=O({},Oe,{newState:0,oldState:0}),wm=Jt(Zm),Vm=[9,13,27,32],pi=Bl&&"CompositionEvent"in window,Xa=null;Bl&&"documentMode"in document&&(Xa=document.documentMode);var Km=Bl&&"TextEvent"in window&&!Xa,$s=Bl&&(!pi||Xa&&8<Xa&&11>=Xa),Ws=" ",Fs=!1;function Is(t,l){switch(t){case"keyup":return Vm.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ps(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ea=!1;function Jm(t,l){switch(t){case"compositionend":return Ps(l);case"keypress":return l.which!==32?null:(Fs=!0,Ws);case"textInput":return t=l.data,t===Ws&&Fs?null:t;default:return null}}function km(t,l){if(ea)return t==="compositionend"||!pi&&Is(t,l)?(t=ws(),qn=oi=Pl=null,ea=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return $s&&l.locale!=="ko"?null:l.data;default:return null}}var $m={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tf(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l==="input"?!!$m[t.type]:l==="textarea"}function lf(t,l,e,a){ta?la?la.push(a):la=[a]:ta=a,l=Ou(l,"onChange"),0<l.length&&(e=new Gn("onChange","change",null,e,a),t.push({event:e,listeners:l}))}var Qa=null,La=null;function Wm(t){Gr(t,0)}function Qn(t){var l=Ba(t);if(qs(l))return t}function ef(t,l){if(t==="change")return l}var af=!1;if(Bl){var gi;if(Bl){var xi="oninput"in document;if(!xi){var nf=document.createElement("div");nf.setAttribute("oninput","return;"),xi=typeof nf.oninput=="function"}gi=xi}else gi=!1;af=gi&&(!document.documentMode||9<document.documentMode)}function uf(){Qa&&(Qa.detachEvent("onpropertychange",cf),La=Qa=null)}function cf(t){if(t.propertyName==="value"&&Qn(La)){var l=[];lf(l,La,t,ci(t)),Zs(Wm,l)}}function Fm(t,l,e){t==="focusin"?(uf(),Qa=l,La=e,Qa.attachEvent("onpropertychange",cf)):t==="focusout"&&uf()}function Im(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Qn(La)}function Pm(t,l){if(t==="click")return Qn(l)}function th(t,l){if(t==="input"||t==="change")return Qn(l)}function lh(t,l){return t===l&&(t!==0||1/t===1/l)||t!==t&&l!==l}var el=typeof Object.is=="function"?Object.is:lh;function Za(t,l){if(el(t,l))return!0;if(typeof t!="object"||t===null||typeof l!="object"||l===null)return!1;var e=Object.keys(t),a=Object.keys(l);if(e.length!==a.length)return!1;for(a=0;a<e.length;a++){var n=e[a];if(!ku.call(l,n)||!el(t[n],l[n]))return!1}return!0}function sf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ff(t,l){var e=sf(t);t=0;for(var a;e;){if(e.nodeType===3){if(a=t+e.textContent.length,t<=l&&a>=l)return{node:e,offset:l-t};t=a}t:{for(;e;){if(e.nextSibling){e=e.nextSibling;break t}e=e.parentNode}e=void 0}e=sf(e)}}function of(t,l){return t&&l?t===l?!0:t&&t.nodeType===3?!1:l&&l.nodeType===3?of(t,l.parentNode):"contains"in t?t.contains(l):t.compareDocumentPosition?!!(t.compareDocumentPosition(l)&16):!1:!1}function rf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var l=Hn(t.document);l instanceof t.HTMLIFrameElement;){try{var e=typeof l.contentWindow.location.href=="string"}catch{e=!1}if(e)t=l.contentWindow;else break;l=Hn(t.document)}return l}function yi(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l&&(l==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||l==="textarea"||t.contentEditable==="true")}var eh=Bl&&"documentMode"in document&&11>=document.documentMode,aa=null,vi=null,wa=null,bi=!1;function df(t,l,e){var a=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;bi||aa==null||aa!==Hn(a)||(a=aa,"selectionStart"in a&&yi(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),wa&&Za(wa,a)||(wa=a,a=Ou(vi,"onSelect"),0<a.length&&(l=new Gn("onSelect","select",null,l,e),t.push({event:l,listeners:a}),l.target=aa)))}function De(t,l){var e={};return e[t.toLowerCase()]=l.toLowerCase(),e["Webkit"+t]="webkit"+l,e["Moz"+t]="moz"+l,e}var na={animationend:De("Animation","AnimationEnd"),animationiteration:De("Animation","AnimationIteration"),animationstart:De("Animation","AnimationStart"),transitionrun:De("Transition","TransitionRun"),transitionstart:De("Transition","TransitionStart"),transitioncancel:De("Transition","TransitionCancel"),transitionend:De("Transition","TransitionEnd")},Si={},mf={};Bl&&(mf=document.createElement("div").style,"AnimationEvent"in window||(delete na.animationend.animation,delete na.animationiteration.animation,delete na.animationstart.animation),"TransitionEvent"in window||delete na.transitionend.transition);function _e(t){if(Si[t])return Si[t];if(!na[t])return t;var l=na[t],e;for(e in l)if(l.hasOwnProperty(e)&&e in mf)return Si[t]=l[e];return t}var hf=_e("animationend"),pf=_e("animationiteration"),gf=_e("animationstart"),ah=_e("transitionrun"),nh=_e("transitionstart"),uh=_e("transitioncancel"),xf=_e("transitionend"),yf=new Map,Ni="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(" ");Ni.push("scrollEnd");function jl(t,l){yf.set(t,l),Me(l,[t])}var Ln=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},hl=[],ua=0,ji=0;function Zn(){for(var t=ua,l=ji=ua=0;l<t;){var e=hl[l];hl[l++]=null;var a=hl[l];hl[l++]=null;var n=hl[l];hl[l++]=null;var u=hl[l];if(hl[l++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&vf(e,n,u)}}function wn(t,l,e,a){hl[ua++]=t,hl[ua++]=l,hl[ua++]=e,hl[ua++]=a,ji|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function zi(t,l,e,a){return wn(t,l,e,a),Vn(t)}function Ue(t,l){return wn(t,null,null,l),Vn(t)}function vf(t,l,e){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e);for(var n=!1,u=t.return;u!==null;)u.childLanes|=e,a=u.alternate,a!==null&&(a.childLanes|=e),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(n=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,n&&l!==null&&(n=31-ll(e),t=u.hiddenUpdates,a=t[n],a===null?t[n]=[l]:a.push(l),l.lane=e|536870912),u):null}function Vn(t){if(50<mn)throw mn=0,Cc=null,Error(o(185));for(var l=t.return;l!==null;)t=l,l=t.return;return t.tag===3?t.stateNode:null}var ia={};function ih(t,l,e,a){this.tag=t,this.key=e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function al(t,l,e,a){return new ih(t,l,e,a)}function Ti(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ql(t,l){var e=t.alternate;return e===null?(e=al(t.tag,l,t.key,t.mode),e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.alternate=t,t.alternate=e):(e.pendingProps=l,e.type=t.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=t.flags&65011712,e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,l=t.dependencies,e.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.refCleanup=t.refCleanup,e}function bf(t,l){t.flags&=65011714;var e=t.alternate;return e===null?(t.childLanes=0,t.lanes=l,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,t.type=e.type,l=e.dependencies,t.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),t}function Kn(t,l,e,a,n,u){var i=0;if(a=t,typeof t=="function")Ti(t)&&(i=1);else if(typeof t=="string")i=r0(t,e,Et.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Lt:return t=al(31,e,l,n),t.elementType=Lt,t.lanes=u,t;case P:return Ce(e.children,n,u,l);case K:i=8,n|=24;break;case U:return t=al(12,e,l,n|2),t.elementType=U,t.lanes=u,t;case yt:return t=al(13,e,l,n),t.elementType=yt,t.lanes=u,t;case R:return t=al(19,e,l,n),t.elementType=R,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case W:i=10;break t;case Q:i=9;break t;case F:i=11;break t;case J:i=14;break t;case Nt:i=16,a=null;break t}i=29,e=Error(o(130,t===null?"null":typeof t,"")),a=null}return l=al(i,e,l,n),l.elementType=t,l.type=a,l.lanes=u,l}function Ce(t,l,e,a){return t=al(7,t,a,l),t.lanes=e,t}function Ai(t,l,e){return t=al(6,t,null,l),t.lanes=e,t}function Sf(t){var l=al(18,null,null,0);return l.stateNode=t,l}function Ei(t,l,e){return l=al(4,t.children!==null?t.children:[],t.key,l),l.lanes=e,l.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},l}var Nf=new WeakMap;function pl(t,l){if(typeof t=="object"&&t!==null){var e=Nf.get(t);return e!==void 0?e:(l={value:t,source:l,stack:bs(l)},Nf.set(t,l),l)}return{value:t,source:l,stack:bs(l)}}var ca=[],sa=0,Jn=null,Va=0,gl=[],xl=0,te=null,Ml=1,Ol="";function Rl(t,l){ca[sa++]=Va,ca[sa++]=Jn,Jn=t,Va=l}function jf(t,l,e){gl[xl++]=Ml,gl[xl++]=Ol,gl[xl++]=te,te=t;var a=Ml;t=Ol;var n=32-ll(a)-1;a&=~(1<<n),e+=1;var u=32-ll(l)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Ml=1<<32-ll(l)+n|e<<n|a,Ol=u+t}else Ml=1<<u|e<<n|a,Ol=t}function Mi(t){t.return!==null&&(Rl(t,1),jf(t,1,0))}function Oi(t){for(;t===Jn;)Jn=ca[--sa],ca[sa]=null,Va=ca[--sa],ca[sa]=null;for(;t===te;)te=gl[--xl],gl[xl]=null,Ol=gl[--xl],gl[xl]=null,Ml=gl[--xl],gl[xl]=null}function zf(t,l){gl[xl++]=Ml,gl[xl++]=Ol,gl[xl++]=te,Ml=l.id,Ol=l.overflow,te=t}var Rt=null,vt=null,nt=!1,le=null,yl=!1,Di=Error(o(519));function ee(t){var l=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ka(pl(l,t)),Di}function Tf(t){var l=t.stateNode,e=t.type,a=t.memoizedProps;switch(l[qt]=t,l[Kt]=a,e){case"dialog":lt("cancel",l),lt("close",l);break;case"iframe":case"object":case"embed":lt("load",l);break;case"video":case"audio":for(e=0;e<pn.length;e++)lt(pn[e],l);break;case"source":lt("error",l);break;case"img":case"image":case"link":lt("error",l),lt("load",l);break;case"details":lt("toggle",l);break;case"input":lt("invalid",l),Rs(l,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":lt("invalid",l);break;case"textarea":lt("invalid",l),Gs(l,a.value,a.defaultValue,a.children)}e=a.children,typeof e!="string"&&typeof e!="number"&&typeof e!="bigint"||l.textContent===""+e||a.suppressHydrationWarning===!0||Zr(l.textContent,e)?(a.popover!=null&&(lt("beforetoggle",l),lt("toggle",l)),a.onScroll!=null&<("scroll",l),a.onScrollEnd!=null&<("scrollend",l),a.onClick!=null&&(l.onclick=Hl),l=!0):l=!1,l||ee(t,!0)}function Af(t){for(Rt=t.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:yl=!1;return;case 27:case 3:yl=!0;return;default:Rt=Rt.return}}function fa(t){if(t!==Rt)return!1;if(!nt)return Af(t),nt=!0,!1;var l=t.tag,e;if((e=l!==3&&l!==27)&&((e=l===5)&&(e=t.type,e=!(e!=="form"&&e!=="button")||kc(t.type,t.memoizedProps)),e=!e),e&&vt&&ee(t),Af(t),l===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));vt=Ir(t)}else if(l===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));vt=Ir(t)}else l===27?(l=vt,ge(t.type)?(t=Pc,Pc=null,vt=t):vt=l):vt=Rt?bl(t.stateNode.nextSibling):null;return!0}function He(){vt=Rt=null,nt=!1}function _i(){var t=le;return t!==null&&(Ft===null?Ft=t:Ft.push.apply(Ft,t),le=null),t}function Ka(t){le===null?le=[t]:le.push(t)}var Ui=Bt(null),Be=null,Yl=null;function ae(t,l,e){I(Ui,l._currentValue),l._currentValue=e}function Gl(t){t._currentValue=Ui.current,ft(Ui)}function Ci(t,l,e){for(;t!==null;){var a=t.alternate;if((t.childLanes&l)!==l?(t.childLanes|=l,a!==null&&(a.childLanes|=l)):a!==null&&(a.childLanes&l)!==l&&(a.childLanes|=l),t===e)break;t=t.return}}function Hi(t,l,e,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;t:for(;u!==null;){var f=u;u=n;for(var d=0;d<l.length;d++)if(f.context===l[d]){u.lanes|=e,f=u.alternate,f!==null&&(f.lanes|=e),Ci(u.return,e,t),a||(i=null);break t}u=f.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(o(341));i.lanes|=e,u=i.alternate,u!==null&&(u.lanes|=e),Ci(i,e,t),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===t){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function oa(t,l,e,a){t=null;for(var n=l,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(o(387));if(i=i.memoizedProps,i!==null){var f=n.type;el(n.pendingProps.value,i.value)||(t!==null?t.push(f):t=[f])}}else if(n===Ve.current){if(i=n.alternate,i===null)throw Error(o(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(bn):t=[bn])}n=n.return}t!==null&&Hi(l,t,e,a),l.flags|=262144}function kn(t){for(t=t.firstContext;t!==null;){if(!el(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function qe(t){Be=t,Yl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Yt(t){return Ef(Be,t)}function $n(t,l){return Be===null&&qe(t),Ef(t,l)}function Ef(t,l){var e=l._currentValue;if(l={context:l,memoizedValue:e,next:null},Yl===null){if(t===null)throw Error(o(308));Yl=l,t.dependencies={lanes:0,firstContext:l},t.flags|=524288}else Yl=Yl.next=l;return e}var ch=typeof AbortController<"u"?AbortController:function(){var t=[],l=this.signal={aborted:!1,addEventListener:function(e,a){t.push(a)}};this.abort=function(){l.aborted=!0,t.forEach(function(e){return e()})}},sh=s.unstable_scheduleCallback,fh=s.unstable_NormalPriority,Mt={$$typeof:W,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bi(){return{controller:new ch,data:new Map,refCount:0}}function Ja(t){t.refCount--,t.refCount===0&&sh(fh,function(){t.controller.abort()})}var ka=null,qi=0,ra=0,da=null;function oh(t,l){if(ka===null){var e=ka=[];qi=0,ra=Gc(),da={status:"pending",value:void 0,then:function(a){e.push(a)}}}return qi++,l.then(Mf,Mf),l}function Mf(){if(--qi===0&&ka!==null){da!==null&&(da.status="fulfilled");var t=ka;ka=null,ra=0,da=null;for(var l=0;l<t.length;l++)(0,t[l])()}}function rh(t,l){var e=[],a={status:"pending",value:null,reason:null,then:function(n){e.push(n)}};return t.then(function(){a.status="fulfilled",a.value=l;for(var n=0;n<e.length;n++)(0,e[n])(l)},function(n){for(a.status="rejected",a.reason=n,n=0;n<e.length;n++)(0,e[n])(void 0)}),a}var Of=M.S;M.S=function(t,l){mr=Pt(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&oh(t,l),Of!==null&&Of(t,l)};var Re=Bt(null);function Ri(){var t=Re.current;return t!==null?t:xt.pooledCache}function Wn(t,l){l===null?I(Re,Re.current):I(Re,l.pool)}function Df(){var t=Ri();return t===null?null:{parent:Mt._currentValue,pool:t}}var ma=Error(o(460)),Yi=Error(o(474)),Fn=Error(o(542)),In={then:function(){}};function _f(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Uf(t,l,e){switch(e=t[e],e===void 0?t.push(l):e!==l&&(l.then(Hl,Hl),l=e),l.status){case"fulfilled":return l.value;case"rejected":throw t=l.reason,Hf(t),t;default:if(typeof l.status=="string")l.then(Hl,Hl);else{if(t=xt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=l,t.status="pending",t.then(function(a){if(l.status==="pending"){var n=l;n.status="fulfilled",n.value=a}},function(a){if(l.status==="pending"){var n=l;n.status="rejected",n.reason=a}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw t=l.reason,Hf(t),t}throw Ge=l,ma}}function Ye(t){try{var l=t._init;return l(t._payload)}catch(e){throw e!==null&&typeof e=="object"&&typeof e.then=="function"?(Ge=e,ma):e}}var Ge=null;function Cf(){if(Ge===null)throw Error(o(459));var t=Ge;return Ge=null,t}function Hf(t){if(t===ma||t===Fn)throw Error(o(483))}var ha=null,$a=0;function Pn(t){var l=$a;return $a+=1,ha===null&&(ha=[]),Uf(ha,t,l)}function Wa(t,l){l=l.props.ref,t.ref=l!==void 0?l:null}function tu(t,l){throw l.$$typeof===C?Error(o(525)):(t=Object.prototype.toString.call(l),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":t)))}function Bf(t){function l(g,h){if(t){var y=g.deletions;y===null?(g.deletions=[h],g.flags|=16):y.push(h)}}function e(g,h){if(!t)return null;for(;h!==null;)l(g,h),h=h.sibling;return null}function a(g){for(var h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function n(g,h){return g=ql(g,h),g.index=0,g.sibling=null,g}function u(g,h,y){return g.index=y,t?(y=g.alternate,y!==null?(y=y.index,y<h?(g.flags|=67108866,h):y):(g.flags|=67108866,h)):(g.flags|=1048576,h)}function i(g){return t&&g.alternate===null&&(g.flags|=67108866),g}function f(g,h,y,E){return h===null||h.tag!==6?(h=Ai(y,g.mode,E),h.return=g,h):(h=n(h,y),h.return=g,h)}function d(g,h,y,E){var L=y.type;return L===P?z(g,h,y.props.children,E,y.key):h!==null&&(h.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Nt&&Ye(L)===h.type)?(h=n(h,y.props),Wa(h,y),h.return=g,h):(h=Kn(y.type,y.key,y.props,null,g.mode,E),Wa(h,y),h.return=g,h)}function b(g,h,y,E){return h===null||h.tag!==4||h.stateNode.containerInfo!==y.containerInfo||h.stateNode.implementation!==y.implementation?(h=Ei(y,g.mode,E),h.return=g,h):(h=n(h,y.children||[]),h.return=g,h)}function z(g,h,y,E,L){return h===null||h.tag!==7?(h=Ce(y,g.mode,E,L),h.return=g,h):(h=n(h,y),h.return=g,h)}function D(g,h,y){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=Ai(""+h,g.mode,y),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case B:return y=Kn(h.type,h.key,h.props,null,g.mode,y),Wa(y,h),y.return=g,y;case X:return h=Ei(h,g.mode,y),h.return=g,h;case Nt:return h=Ye(h),D(g,h,y)}if(ol(h)||Zt(h))return h=Ce(h,g.mode,y,null),h.return=g,h;if(typeof h.then=="function")return D(g,Pn(h),y);if(h.$$typeof===W)return D(g,$n(g,h),y);tu(g,h)}return null}function S(g,h,y,E){var L=h!==null?h.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return L!==null?null:f(g,h,""+y,E);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case B:return y.key===L?d(g,h,y,E):null;case X:return y.key===L?b(g,h,y,E):null;case Nt:return y=Ye(y),S(g,h,y,E)}if(ol(y)||Zt(y))return L!==null?null:z(g,h,y,E,null);if(typeof y.then=="function")return S(g,h,Pn(y),E);if(y.$$typeof===W)return S(g,h,$n(g,y),E);tu(g,y)}return null}function N(g,h,y,E,L){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return g=g.get(y)||null,f(h,g,""+E,L);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case B:return g=g.get(E.key===null?y:E.key)||null,d(h,g,E,L);case X:return g=g.get(E.key===null?y:E.key)||null,b(h,g,E,L);case Nt:return E=Ye(E),N(g,h,y,E,L)}if(ol(E)||Zt(E))return g=g.get(y)||null,z(h,g,E,L,null);if(typeof E.then=="function")return N(g,h,y,Pn(E),L);if(E.$$typeof===W)return N(g,h,y,$n(h,E),L);tu(h,E)}return null}function q(g,h,y,E){for(var L=null,ut=null,Y=h,$=h=0,at=null;Y!==null&&$<y.length;$++){Y.index>$?(at=Y,Y=null):at=Y.sibling;var it=S(g,Y,y[$],E);if(it===null){Y===null&&(Y=at);break}t&&Y&&it.alternate===null&&l(g,Y),h=u(it,h,$),ut===null?L=it:ut.sibling=it,ut=it,Y=at}if($===y.length)return e(g,Y),nt&&Rl(g,$),L;if(Y===null){for(;$<y.length;$++)Y=D(g,y[$],E),Y!==null&&(h=u(Y,h,$),ut===null?L=Y:ut.sibling=Y,ut=Y);return nt&&Rl(g,$),L}for(Y=a(Y);$<y.length;$++)at=N(Y,g,$,y[$],E),at!==null&&(t&&at.alternate!==null&&Y.delete(at.key===null?$:at.key),h=u(at,h,$),ut===null?L=at:ut.sibling=at,ut=at);return t&&Y.forEach(function(Se){return l(g,Se)}),nt&&Rl(g,$),L}function Z(g,h,y,E){if(y==null)throw Error(o(151));for(var L=null,ut=null,Y=h,$=h=0,at=null,it=y.next();Y!==null&&!it.done;$++,it=y.next()){Y.index>$?(at=Y,Y=null):at=Y.sibling;var Se=S(g,Y,it.value,E);if(Se===null){Y===null&&(Y=at);break}t&&Y&&Se.alternate===null&&l(g,Y),h=u(Se,h,$),ut===null?L=Se:ut.sibling=Se,ut=Se,Y=at}if(it.done)return e(g,Y),nt&&Rl(g,$),L;if(Y===null){for(;!it.done;$++,it=y.next())it=D(g,it.value,E),it!==null&&(h=u(it,h,$),ut===null?L=it:ut.sibling=it,ut=it);return nt&&Rl(g,$),L}for(Y=a(Y);!it.done;$++,it=y.next())it=N(Y,g,$,it.value,E),it!==null&&(t&&it.alternate!==null&&Y.delete(it.key===null?$:it.key),h=u(it,h,$),ut===null?L=it:ut.sibling=it,ut=it);return t&&Y.forEach(function(N0){return l(g,N0)}),nt&&Rl(g,$),L}function ht(g,h,y,E){if(typeof y=="object"&&y!==null&&y.type===P&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case B:t:{for(var L=y.key;h!==null;){if(h.key===L){if(L=y.type,L===P){if(h.tag===7){e(g,h.sibling),E=n(h,y.props.children),E.return=g,g=E;break t}}else if(h.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Nt&&Ye(L)===h.type){e(g,h.sibling),E=n(h,y.props),Wa(E,y),E.return=g,g=E;break t}e(g,h);break}else l(g,h);h=h.sibling}y.type===P?(E=Ce(y.props.children,g.mode,E,y.key),E.return=g,g=E):(E=Kn(y.type,y.key,y.props,null,g.mode,E),Wa(E,y),E.return=g,g=E)}return i(g);case X:t:{for(L=y.key;h!==null;){if(h.key===L)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){e(g,h.sibling),E=n(h,y.children||[]),E.return=g,g=E;break t}else{e(g,h);break}else l(g,h);h=h.sibling}E=Ei(y,g.mode,E),E.return=g,g=E}return i(g);case Nt:return y=Ye(y),ht(g,h,y,E)}if(ol(y))return q(g,h,y,E);if(Zt(y)){if(L=Zt(y),typeof L!="function")throw Error(o(150));return y=L.call(y),Z(g,h,y,E)}if(typeof y.then=="function")return ht(g,h,Pn(y),E);if(y.$$typeof===W)return ht(g,h,$n(g,y),E);tu(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,h!==null&&h.tag===6?(e(g,h.sibling),E=n(h,y),E.return=g,g=E):(e(g,h),E=Ai(y,g.mode,E),E.return=g,g=E),i(g)):e(g,h)}return function(g,h,y,E){try{$a=0;var L=ht(g,h,y,E);return ha=null,L}catch(Y){if(Y===ma||Y===Fn)throw Y;var ut=al(29,Y,null,g.mode);return ut.lanes=E,ut.return=g,ut}finally{}}}var Xe=Bf(!0),qf=Bf(!1),ne=!1;function Gi(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xi(t,l){t=t.updateQueue,l.updateQueue===t&&(l.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ue(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ie(t,l,e){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(st&2)!==0){var n=a.pending;return n===null?l.next=l:(l.next=n.next,n.next=l),a.pending=l,l=Vn(t),vf(t,null,e),l}return wn(t,a,l,e),Vn(t)}function Fa(t,l,e){if(l=l.updateQueue,l!==null&&(l=l.shared,(e&4194048)!==0)){var a=l.lanes;a&=t.pendingLanes,e|=a,l.lanes=e,As(t,e)}}function Qi(t,l){var e=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,e===a)){var n=null,u=null;if(e=e.firstBaseUpdate,e!==null){do{var i={lane:e.lane,tag:e.tag,payload:e.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,e=e.next}while(e!==null);u===null?n=u=l:u=u.next=l}else n=u=l;e={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=e;return}t=e.lastBaseUpdate,t===null?e.firstBaseUpdate=l:t.next=l,e.lastBaseUpdate=l}var Li=!1;function Ia(){if(Li){var t=da;if(t!==null)throw t}}function Pa(t,l,e,a){Li=!1;var n=t.updateQueue;ne=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var d=f,b=d.next;d.next=null,i===null?u=b:i.next=b,i=d;var z=t.alternate;z!==null&&(z=z.updateQueue,f=z.lastBaseUpdate,f!==i&&(f===null?z.firstBaseUpdate=b:f.next=b,z.lastBaseUpdate=d))}if(u!==null){var D=n.baseState;i=0,z=b=d=null,f=u;do{var S=f.lane&-536870913,N=S!==f.lane;if(N?(et&S)===S:(a&S)===S){S!==0&&S===ra&&(Li=!0),z!==null&&(z=z.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});t:{var q=t,Z=f;S=l;var ht=e;switch(Z.tag){case 1:if(q=Z.payload,typeof q=="function"){D=q.call(ht,D,S);break t}D=q;break t;case 3:q.flags=q.flags&-65537|128;case 0:if(q=Z.payload,S=typeof q=="function"?q.call(ht,D,S):q,S==null)break t;D=O({},D,S);break t;case 2:ne=!0}}S=f.callback,S!==null&&(t.flags|=64,N&&(t.flags|=8192),N=n.callbacks,N===null?n.callbacks=[S]:N.push(S))}else N={lane:S,tag:f.tag,payload:f.payload,callback:f.callback,next:null},z===null?(b=z=N,d=D):z=z.next=N,i|=S;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;N=f,f=N.next,N.next=null,n.lastBaseUpdate=N,n.shared.pending=null}}while(!0);z===null&&(d=D),n.baseState=d,n.firstBaseUpdate=b,n.lastBaseUpdate=z,u===null&&(n.shared.lanes=0),re|=i,t.lanes=i,t.memoizedState=D}}function Rf(t,l){if(typeof t!="function")throw Error(o(191,t));t.call(l)}function Yf(t,l){var e=t.callbacks;if(e!==null)for(t.callbacks=null,t=0;t<e.length;t++)Rf(e[t],l)}var pa=Bt(null),lu=Bt(0);function Gf(t,l){t=kl,I(lu,t),I(pa,l),kl=t|l.baseLanes}function Zi(){I(lu,kl),I(pa,pa.current)}function wi(){kl=lu.current,ft(pa),ft(lu)}var nl=Bt(null),vl=null;function ce(t){var l=t.alternate;I(Tt,Tt.current&1),I(nl,t),vl===null&&(l===null||pa.current!==null||l.memoizedState!==null)&&(vl=t)}function Vi(t){I(Tt,Tt.current),I(nl,t),vl===null&&(vl=t)}function Xf(t){t.tag===22?(I(Tt,Tt.current),I(nl,t),vl===null&&(vl=t)):se()}function se(){I(Tt,Tt.current),I(nl,nl.current)}function ul(t){ft(nl),vl===t&&(vl=null),ft(Tt)}var Tt=Bt(0);function eu(t){for(var l=t;l!==null;){if(l.tag===13){var e=l.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||Fc(e)||Ic(e)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var Xl=0,k=null,dt=null,Ot=null,au=!1,ga=!1,Qe=!1,nu=0,tn=0,xa=null,dh=0;function jt(){throw Error(o(321))}function Ki(t,l){if(l===null)return!1;for(var e=0;e<l.length&&e<t.length;e++)if(!el(t[e],l[e]))return!1;return!0}function Ji(t,l,e,a,n,u){return Xl=u,k=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,M.H=t===null||t.memoizedState===null?zo:sc,Qe=!1,u=e(a,n),Qe=!1,ga&&(u=Lf(l,e,a,n)),Qf(t),u}function Qf(t){M.H=an;var l=dt!==null&&dt.next!==null;if(Xl=0,Ot=dt=k=null,au=!1,tn=0,xa=null,l)throw Error(o(300));t===null||Dt||(t=t.dependencies,t!==null&&kn(t)&&(Dt=!0))}function Lf(t,l,e,a){k=t;var n=0;do{if(ga&&(xa=null),tn=0,ga=!1,25<=n)throw Error(o(301));if(n+=1,Ot=dt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}M.H=To,u=l(e,a)}while(ga);return u}function mh(){var t=M.H,l=t.useState()[0];return l=typeof l.then=="function"?ln(l):l,t=t.useState()[0],(dt!==null?dt.memoizedState:null)!==t&&(k.flags|=1024),l}function ki(){var t=nu!==0;return nu=0,t}function $i(t,l,e){l.updateQueue=t.updateQueue,l.flags&=-2053,t.lanes&=~e}function Wi(t){if(au){for(t=t.memoizedState;t!==null;){var l=t.queue;l!==null&&(l.pending=null),t=t.next}au=!1}Xl=0,Ot=dt=k=null,ga=!1,tn=nu=0,xa=null}function wt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ot===null?k.memoizedState=Ot=t:Ot=Ot.next=t,Ot}function At(){if(dt===null){var t=k.alternate;t=t!==null?t.memoizedState:null}else t=dt.next;var l=Ot===null?k.memoizedState:Ot.next;if(l!==null)Ot=l,dt=t;else{if(t===null)throw k.alternate===null?Error(o(467)):Error(o(310));dt=t,t={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},Ot===null?k.memoizedState=Ot=t:Ot=Ot.next=t}return Ot}function uu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ln(t){var l=tn;return tn+=1,xa===null&&(xa=[]),t=Uf(xa,t,l),l=k,(Ot===null?l.memoizedState:Ot.next)===null&&(l=l.alternate,M.H=l===null||l.memoizedState===null?zo:sc),t}function iu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ln(t);if(t.$$typeof===W)return Yt(t)}throw Error(o(438,String(t)))}function Fi(t){var l=null,e=k.updateQueue;if(e!==null&&(l=e.memoCache),l==null){var a=k.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(l={data:a.data.map(function(n){return n.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),e===null&&(e=uu(),k.updateQueue=e),e.memoCache=l,e=l.data[l.index],e===void 0)for(e=l.data[l.index]=Array(t),a=0;a<t;a++)e[a]=Nl;return l.index++,e}function Ql(t,l){return typeof l=="function"?l(t):l}function cu(t){var l=At();return Ii(l,dt,t)}function Ii(t,l,e){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var n=t.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}l.baseQueue=n=u,a.pending=null}if(u=t.baseState,n===null)t.memoizedState=u;else{l=n.next;var f=i=null,d=null,b=l,z=!1;do{var D=b.lane&-536870913;if(D!==b.lane?(et&D)===D:(Xl&D)===D){var S=b.revertLane;if(S===0)d!==null&&(d=d.next={lane:0,revertLane:0,gesture:null,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null}),D===ra&&(z=!0);else if((Xl&S)===S){b=b.next,S===ra&&(z=!0);continue}else D={lane:0,revertLane:b.revertLane,gesture:null,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},d===null?(f=d=D,i=u):d=d.next=D,k.lanes|=S,re|=S;D=b.action,Qe&&e(u,D),u=b.hasEagerState?b.eagerState:e(u,D)}else S={lane:D,revertLane:b.revertLane,gesture:b.gesture,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},d===null?(f=d=S,i=u):d=d.next=S,k.lanes|=D,re|=D;b=b.next}while(b!==null&&b!==l);if(d===null?i=u:d.next=f,!el(u,t.memoizedState)&&(Dt=!0,z&&(e=da,e!==null)))throw e;t.memoizedState=u,t.baseState=i,t.baseQueue=d,a.lastRenderedState=u}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Pi(t){var l=At(),e=l.queue;if(e===null)throw Error(o(311));e.lastRenderedReducer=t;var a=e.dispatch,n=e.pending,u=l.memoizedState;if(n!==null){e.pending=null;var i=n=n.next;do u=t(u,i.action),i=i.next;while(i!==n);el(u,l.memoizedState)||(Dt=!0),l.memoizedState=u,l.baseQueue===null&&(l.baseState=u),e.lastRenderedState=u}return[u,a]}function Zf(t,l,e){var a=k,n=At(),u=nt;if(u){if(e===void 0)throw Error(o(407));e=e()}else e=l();var i=!el((dt||n).memoizedState,e);if(i&&(n.memoizedState=e,Dt=!0),n=n.queue,ec(Kf.bind(null,a,n,t),[t]),n.getSnapshot!==l||i||Ot!==null&&Ot.memoizedState.tag&1){if(a.flags|=2048,ya(9,{destroy:void 0},Vf.bind(null,a,n,e,l),null),xt===null)throw Error(o(349));u||(Xl&127)!==0||wf(a,l,e)}return e}function wf(t,l,e){t.flags|=16384,t={getSnapshot:l,value:e},l=k.updateQueue,l===null?(l=uu(),k.updateQueue=l,l.stores=[t]):(e=l.stores,e===null?l.stores=[t]:e.push(t))}function Vf(t,l,e,a){l.value=e,l.getSnapshot=a,Jf(l)&&kf(t)}function Kf(t,l,e){return e(function(){Jf(l)&&kf(t)})}function Jf(t){var l=t.getSnapshot;t=t.value;try{var e=l();return!el(t,e)}catch{return!0}}function kf(t){var l=Ue(t,2);l!==null&&It(l,t,2)}function tc(t){var l=wt();if(typeof t=="function"){var e=t;if(t=e(),Qe){Fl(!0);try{e()}finally{Fl(!1)}}}return l.memoizedState=l.baseState=t,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:t},l}function $f(t,l,e,a){return t.baseState=e,Ii(t,dt,typeof a=="function"?a:Ql)}function hh(t,l,e,a,n){if(ou(t))throw Error(o(485));if(t=l.action,t!==null){var u={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){u.listeners.push(i)}};M.T!==null?e(!0):u.isTransition=!1,a(u),e=l.pending,e===null?(u.next=l.pending=u,Wf(l,u)):(u.next=e.next,l.pending=e.next=u)}}function Wf(t,l){var e=l.action,a=l.payload,n=t.state;if(l.isTransition){var u=M.T,i={};M.T=i;try{var f=e(n,a),d=M.S;d!==null&&d(i,f),Ff(t,l,f)}catch(b){lc(t,l,b)}finally{u!==null&&i.types!==null&&(u.types=i.types),M.T=u}}else try{u=e(n,a),Ff(t,l,u)}catch(b){lc(t,l,b)}}function Ff(t,l,e){e!==null&&typeof e=="object"&&typeof e.then=="function"?e.then(function(a){If(t,l,a)},function(a){return lc(t,l,a)}):If(t,l,e)}function If(t,l,e){l.status="fulfilled",l.value=e,Pf(l),t.state=e,l=t.pending,l!==null&&(e=l.next,e===l?t.pending=null:(e=e.next,l.next=e,Wf(t,e)))}function lc(t,l,e){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do l.status="rejected",l.reason=e,Pf(l),l=l.next;while(l!==a)}t.action=null}function Pf(t){t=t.listeners;for(var l=0;l<t.length;l++)(0,t[l])()}function to(t,l){return l}function lo(t,l){if(nt){var e=xt.formState;if(e!==null){t:{var a=k;if(nt){if(vt){l:{for(var n=vt,u=yl;n.nodeType!==8;){if(!u){n=null;break l}if(n=bl(n.nextSibling),n===null){n=null;break l}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){vt=bl(n.nextSibling),a=n.data==="F!";break t}}ee(a)}a=!1}a&&(l=e[0])}}return e=wt(),e.memoizedState=e.baseState=l,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:l},e.queue=a,e=So.bind(null,k,a),a.dispatch=e,a=tc(!1),u=cc.bind(null,k,!1,a.queue),a=wt(),n={state:l,dispatch:null,action:t,pending:null},a.queue=n,e=hh.bind(null,k,n,u,e),n.dispatch=e,a.memoizedState=t,[l,e,!1]}function eo(t){var l=At();return ao(l,dt,t)}function ao(t,l,e){if(l=Ii(t,l,to)[0],t=cu(Ql)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var a=ln(l)}catch(i){throw i===ma?Fn:i}else a=l;l=At();var n=l.queue,u=n.dispatch;return e!==l.memoizedState&&(k.flags|=2048,ya(9,{destroy:void 0},ph.bind(null,n,e),null)),[a,u,t]}function ph(t,l){t.action=l}function no(t){var l=At(),e=dt;if(e!==null)return ao(l,e,t);At(),l=l.memoizedState,e=At();var a=e.queue.dispatch;return e.memoizedState=t,[l,a,!1]}function ya(t,l,e,a){return t={tag:t,create:e,deps:a,inst:l,next:null},l=k.updateQueue,l===null&&(l=uu(),k.updateQueue=l),e=l.lastEffect,e===null?l.lastEffect=t.next=t:(a=e.next,e.next=t,t.next=a,l.lastEffect=t),t}function uo(){return At().memoizedState}function su(t,l,e,a){var n=wt();k.flags|=t,n.memoizedState=ya(1|l,{destroy:void 0},e,a===void 0?null:a)}function fu(t,l,e,a){var n=At();a=a===void 0?null:a;var u=n.memoizedState.inst;dt!==null&&a!==null&&Ki(a,dt.memoizedState.deps)?n.memoizedState=ya(l,u,e,a):(k.flags|=t,n.memoizedState=ya(1|l,u,e,a))}function io(t,l){su(8390656,8,t,l)}function ec(t,l){fu(2048,8,t,l)}function gh(t){k.flags|=4;var l=k.updateQueue;if(l===null)l=uu(),k.updateQueue=l,l.events=[t];else{var e=l.events;e===null?l.events=[t]:e.push(t)}}function co(t){var l=At().memoizedState;return gh({ref:l,nextImpl:t}),function(){if((st&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}function so(t,l){return fu(4,2,t,l)}function fo(t,l){return fu(4,4,t,l)}function oo(t,l){if(typeof l=="function"){t=t();var e=l(t);return function(){typeof e=="function"?e():l(null)}}if(l!=null)return t=t(),l.current=t,function(){l.current=null}}function ro(t,l,e){e=e!=null?e.concat([t]):null,fu(4,4,oo.bind(null,l,t),e)}function ac(){}function mo(t,l){var e=At();l=l===void 0?null:l;var a=e.memoizedState;return l!==null&&Ki(l,a[1])?a[0]:(e.memoizedState=[t,l],t)}function ho(t,l){var e=At();l=l===void 0?null:l;var a=e.memoizedState;if(l!==null&&Ki(l,a[1]))return a[0];if(a=t(),Qe){Fl(!0);try{t()}finally{Fl(!1)}}return e.memoizedState=[a,l],a}function nc(t,l,e){return e===void 0||(Xl&1073741824)!==0&&(et&261930)===0?t.memoizedState=l:(t.memoizedState=e,t=pr(),k.lanes|=t,re|=t,e)}function po(t,l,e,a){return el(e,l)?e:pa.current!==null?(t=nc(t,e,a),el(t,l)||(Dt=!0),t):(Xl&42)===0||(Xl&1073741824)!==0&&(et&261930)===0?(Dt=!0,t.memoizedState=e):(t=pr(),k.lanes|=t,re|=t,l)}function go(t,l,e,a,n){var u=H.p;H.p=u!==0&&8>u?u:8;var i=M.T,f={};M.T=f,cc(t,!1,l,e);try{var d=n(),b=M.S;if(b!==null&&b(f,d),d!==null&&typeof d=="object"&&typeof d.then=="function"){var z=rh(d,a);en(t,l,z,sl(t))}else en(t,l,a,sl(t))}catch(D){en(t,l,{then:function(){},status:"rejected",reason:D},sl())}finally{H.p=u,i!==null&&f.types!==null&&(i.types=f.types),M.T=i}}function xh(){}function uc(t,l,e,a){if(t.tag!==5)throw Error(o(476));var n=xo(t).queue;go(t,n,l,w,e===null?xh:function(){return yo(t),e(a)})}function xo(t){var l=t.memoizedState;if(l!==null)return l;l={memoizedState:w,baseState:w,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:w},next:null};var e={};return l.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:e},next:null},t.memoizedState=l,t=t.alternate,t!==null&&(t.memoizedState=l),l}function yo(t){var l=xo(t);l.next===null&&(l=t.alternate.memoizedState),en(t,l.next.queue,{},sl())}function ic(){return Yt(bn)}function vo(){return At().memoizedState}function bo(){return At().memoizedState}function yh(t){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var e=sl();t=ue(e);var a=ie(l,t,e);a!==null&&(It(a,l,e),Fa(a,l,e)),l={cache:Bi()},t.payload=l;return}l=l.return}}function vh(t,l,e){var a=sl();e={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},ou(t)?No(l,e):(e=zi(t,l,e,a),e!==null&&(It(e,t,a),jo(e,l,a)))}function So(t,l,e){var a=sl();en(t,l,e,a)}function en(t,l,e,a){var n={lane:a,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(ou(t))No(l,n);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=l.lastRenderedReducer,u!==null))try{var i=l.lastRenderedState,f=u(i,e);if(n.hasEagerState=!0,n.eagerState=f,el(f,i))return wn(t,l,n,0),xt===null&&Zn(),!1}catch{}finally{}if(e=zi(t,l,n,a),e!==null)return It(e,t,a),jo(e,l,a),!0}return!1}function cc(t,l,e,a){if(a={lane:2,revertLane:Gc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ou(t)){if(l)throw Error(o(479))}else l=zi(t,e,a,2),l!==null&&It(l,t,2)}function ou(t){var l=t.alternate;return t===k||l!==null&&l===k}function No(t,l){ga=au=!0;var e=t.pending;e===null?l.next=l:(l.next=e.next,e.next=l),t.pending=l}function jo(t,l,e){if((e&4194048)!==0){var a=l.lanes;a&=t.pendingLanes,e|=a,l.lanes=e,As(t,e)}}var an={readContext:Yt,use:iu,useCallback:jt,useContext:jt,useEffect:jt,useImperativeHandle:jt,useLayoutEffect:jt,useInsertionEffect:jt,useMemo:jt,useReducer:jt,useRef:jt,useState:jt,useDebugValue:jt,useDeferredValue:jt,useTransition:jt,useSyncExternalStore:jt,useId:jt,useHostTransitionStatus:jt,useFormState:jt,useActionState:jt,useOptimistic:jt,useMemoCache:jt,useCacheRefresh:jt};an.useEffectEvent=jt;var zo={readContext:Yt,use:iu,useCallback:function(t,l){return wt().memoizedState=[t,l===void 0?null:l],t},useContext:Yt,useEffect:io,useImperativeHandle:function(t,l,e){e=e!=null?e.concat([t]):null,su(4194308,4,oo.bind(null,l,t),e)},useLayoutEffect:function(t,l){return su(4194308,4,t,l)},useInsertionEffect:function(t,l){su(4,2,t,l)},useMemo:function(t,l){var e=wt();l=l===void 0?null:l;var a=t();if(Qe){Fl(!0);try{t()}finally{Fl(!1)}}return e.memoizedState=[a,l],a},useReducer:function(t,l,e){var a=wt();if(e!==void 0){var n=e(l);if(Qe){Fl(!0);try{e(l)}finally{Fl(!1)}}}else n=l;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=vh.bind(null,k,t),[a.memoizedState,t]},useRef:function(t){var l=wt();return t={current:t},l.memoizedState=t},useState:function(t){t=tc(t);var l=t.queue,e=So.bind(null,k,l);return l.dispatch=e,[t.memoizedState,e]},useDebugValue:ac,useDeferredValue:function(t,l){var e=wt();return nc(e,t,l)},useTransition:function(){var t=tc(!1);return t=go.bind(null,k,t.queue,!0,!1),wt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,l,e){var a=k,n=wt();if(nt){if(e===void 0)throw Error(o(407));e=e()}else{if(e=l(),xt===null)throw Error(o(349));(et&127)!==0||wf(a,l,e)}n.memoizedState=e;var u={value:e,getSnapshot:l};return n.queue=u,io(Kf.bind(null,a,u,t),[t]),a.flags|=2048,ya(9,{destroy:void 0},Vf.bind(null,a,u,e,l),null),e},useId:function(){var t=wt(),l=xt.identifierPrefix;if(nt){var e=Ol,a=Ml;e=(a&~(1<<32-ll(a)-1)).toString(32)+e,l="_"+l+"R_"+e,e=nu++,0<e&&(l+="H"+e.toString(32)),l+="_"}else e=dh++,l="_"+l+"r_"+e.toString(32)+"_";return t.memoizedState=l},useHostTransitionStatus:ic,useFormState:lo,useActionState:lo,useOptimistic:function(t){var l=wt();l.memoizedState=l.baseState=t;var e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=e,l=cc.bind(null,k,!0,e),e.dispatch=l,[t,l]},useMemoCache:Fi,useCacheRefresh:function(){return wt().memoizedState=yh.bind(null,k)},useEffectEvent:function(t){var l=wt(),e={impl:t};return l.memoizedState=e,function(){if((st&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}},sc={readContext:Yt,use:iu,useCallback:mo,useContext:Yt,useEffect:ec,useImperativeHandle:ro,useInsertionEffect:so,useLayoutEffect:fo,useMemo:ho,useReducer:cu,useRef:uo,useState:function(){return cu(Ql)},useDebugValue:ac,useDeferredValue:function(t,l){var e=At();return po(e,dt.memoizedState,t,l)},useTransition:function(){var t=cu(Ql)[0],l=At().memoizedState;return[typeof t=="boolean"?t:ln(t),l]},useSyncExternalStore:Zf,useId:vo,useHostTransitionStatus:ic,useFormState:eo,useActionState:eo,useOptimistic:function(t,l){var e=At();return $f(e,dt,t,l)},useMemoCache:Fi,useCacheRefresh:bo};sc.useEffectEvent=co;var To={readContext:Yt,use:iu,useCallback:mo,useContext:Yt,useEffect:ec,useImperativeHandle:ro,useInsertionEffect:so,useLayoutEffect:fo,useMemo:ho,useReducer:Pi,useRef:uo,useState:function(){return Pi(Ql)},useDebugValue:ac,useDeferredValue:function(t,l){var e=At();return dt===null?nc(e,t,l):po(e,dt.memoizedState,t,l)},useTransition:function(){var t=Pi(Ql)[0],l=At().memoizedState;return[typeof t=="boolean"?t:ln(t),l]},useSyncExternalStore:Zf,useId:vo,useHostTransitionStatus:ic,useFormState:no,useActionState:no,useOptimistic:function(t,l){var e=At();return dt!==null?$f(e,dt,t,l):(e.baseState=t,[t,e.queue.dispatch])},useMemoCache:Fi,useCacheRefresh:bo};To.useEffectEvent=co;function fc(t,l,e,a){l=t.memoizedState,e=e(a,l),e=e==null?l:O({},l,e),t.memoizedState=e,t.lanes===0&&(t.updateQueue.baseState=e)}var oc={enqueueSetState:function(t,l,e){t=t._reactInternals;var a=sl(),n=ue(a);n.payload=l,e!=null&&(n.callback=e),l=ie(t,n,a),l!==null&&(It(l,t,a),Fa(l,t,a))},enqueueReplaceState:function(t,l,e){t=t._reactInternals;var a=sl(),n=ue(a);n.tag=1,n.payload=l,e!=null&&(n.callback=e),l=ie(t,n,a),l!==null&&(It(l,t,a),Fa(l,t,a))},enqueueForceUpdate:function(t,l){t=t._reactInternals;var e=sl(),a=ue(e);a.tag=2,l!=null&&(a.callback=l),l=ie(t,a,e),l!==null&&(It(l,t,e),Fa(l,t,e))}};function Ao(t,l,e,a,n,u,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,u,i):l.prototype&&l.prototype.isPureReactComponent?!Za(e,a)||!Za(n,u):!0}function Eo(t,l,e,a){t=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(e,a),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(e,a),l.state!==t&&oc.enqueueReplaceState(l,l.state,null)}function Le(t,l){var e=l;if("ref"in l){e={};for(var a in l)a!=="ref"&&(e[a]=l[a])}if(t=t.defaultProps){e===l&&(e=O({},e));for(var n in t)e[n]===void 0&&(e[n]=t[n])}return e}function Mo(t){Ln(t)}function Oo(t){console.error(t)}function Do(t){Ln(t)}function ru(t,l){try{var e=t.onUncaughtError;e(l.value,{componentStack:l.stack})}catch(a){setTimeout(function(){throw a})}}function _o(t,l,e){try{var a=t.onCaughtError;a(e.value,{componentStack:e.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function rc(t,l,e){return e=ue(e),e.tag=3,e.payload={element:null},e.callback=function(){ru(t,l)},e}function Uo(t){return t=ue(t),t.tag=3,t}function Co(t,l,e,a){var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;t.payload=function(){return n(u)},t.callback=function(){_o(l,e,a)}}var i=e.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){_o(l,e,a),typeof n!="function"&&(de===null?de=new Set([this]):de.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function bh(t,l,e,a,n){if(e.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(l=e.alternate,l!==null&&oa(l,e,n,!0),e=nl.current,e!==null){switch(e.tag){case 31:case 13:return vl===null?ju():e.alternate===null&&zt===0&&(zt=3),e.flags&=-257,e.flags|=65536,e.lanes=n,a===In?e.flags|=16384:(l=e.updateQueue,l===null?e.updateQueue=new Set([a]):l.add(a),qc(t,a,n)),!1;case 22:return e.flags|=65536,a===In?e.flags|=16384:(l=e.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([a])},e.updateQueue=l):(e=l.retryQueue,e===null?l.retryQueue=new Set([a]):e.add(a)),qc(t,a,n)),!1}throw Error(o(435,e.tag))}return qc(t,a,n),ju(),!1}if(nt)return l=nl.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=n,a!==Di&&(t=Error(o(422),{cause:a}),Ka(pl(t,e)))):(a!==Di&&(l=Error(o(423),{cause:a}),Ka(pl(l,e))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=pl(a,e),n=rc(t.stateNode,a,n),Qi(t,n),zt!==4&&(zt=2)),!1;var u=Error(o(520),{cause:a});if(u=pl(u,e),dn===null?dn=[u]:dn.push(u),zt!==4&&(zt=2),l===null)return!0;a=pl(a,e),e=l;do{switch(e.tag){case 3:return e.flags|=65536,t=n&-n,e.lanes|=t,t=rc(e.stateNode,a,t),Qi(e,t),!1;case 1:if(l=e.type,u=e.stateNode,(e.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(de===null||!de.has(u))))return e.flags|=65536,n&=-n,e.lanes|=n,n=Uo(n),Co(n,t,e,a),Qi(e,n),!1}e=e.return}while(e!==null);return!1}var dc=Error(o(461)),Dt=!1;function Gt(t,l,e,a){l.child=t===null?qf(l,null,e,a):Xe(l,t.child,e,a)}function Ho(t,l,e,a,n){e=e.render;var u=l.ref;if("ref"in a){var i={};for(var f in a)f!=="ref"&&(i[f]=a[f])}else i=a;return qe(l),a=Ji(t,l,e,i,u,n),f=ki(),t!==null&&!Dt?($i(t,l,n),Ll(t,l,n)):(nt&&f&&Mi(l),l.flags|=1,Gt(t,l,a,n),l.child)}function Bo(t,l,e,a,n){if(t===null){var u=e.type;return typeof u=="function"&&!Ti(u)&&u.defaultProps===void 0&&e.compare===null?(l.tag=15,l.type=u,qo(t,l,u,a,n)):(t=Kn(e.type,null,a,l,l.mode,n),t.ref=l.ref,t.return=l,l.child=t)}if(u=t.child,!bc(t,n)){var i=u.memoizedProps;if(e=e.compare,e=e!==null?e:Za,e(i,a)&&t.ref===l.ref)return Ll(t,l,n)}return l.flags|=1,t=ql(u,a),t.ref=l.ref,t.return=l,l.child=t}function qo(t,l,e,a,n){if(t!==null){var u=t.memoizedProps;if(Za(u,a)&&t.ref===l.ref)if(Dt=!1,l.pendingProps=a=u,bc(t,n))(t.flags&131072)!==0&&(Dt=!0);else return l.lanes=t.lanes,Ll(t,l,n)}return mc(t,l,e,a,n)}function Ro(t,l,e,a){var n=a.children,u=t!==null?t.memoizedState:null;if(t===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((l.flags&128)!==0){if(u=u!==null?u.baseLanes|e:e,t!==null){for(a=l.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,l.child=null;return Yo(t,l,u,e,a)}if((e&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},t!==null&&Wn(l,u!==null?u.cachePool:null),u!==null?Gf(l,u):Zi(),Xf(l);else return a=l.lanes=536870912,Yo(t,l,u!==null?u.baseLanes|e:e,e,a)}else u!==null?(Wn(l,u.cachePool),Gf(l,u),se(),l.memoizedState=null):(t!==null&&Wn(l,null),Zi(),se());return Gt(t,l,n,e),l.child}function nn(t,l){return t!==null&&t.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function Yo(t,l,e,a,n){var u=Ri();return u=u===null?null:{parent:Mt._currentValue,pool:u},l.memoizedState={baseLanes:e,cachePool:u},t!==null&&Wn(l,null),Zi(),Xf(l),t!==null&&oa(t,l,a,!0),l.childLanes=n,null}function du(t,l){return l=hu({mode:l.mode,children:l.children},t.mode),l.ref=t.ref,t.child=l,l.return=t,l}function Go(t,l,e){return Xe(l,t.child,null,e),t=du(l,l.pendingProps),t.flags|=2,ul(l),l.memoizedState=null,t}function Sh(t,l,e){var a=l.pendingProps,n=(l.flags&128)!==0;if(l.flags&=-129,t===null){if(nt){if(a.mode==="hidden")return t=du(l,a),l.lanes=536870912,nn(null,t);if(Vi(l),(t=vt)?(t=Fr(t,yl),t=t!==null&&t.data==="&"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:te!==null?{id:Ml,overflow:Ol}:null,retryLane:536870912,hydrationErrors:null},e=Sf(t),e.return=l,l.child=e,Rt=l,vt=null)):t=null,t===null)throw ee(l);return l.lanes=536870912,null}return du(l,a)}var u=t.memoizedState;if(u!==null){var i=u.dehydrated;if(Vi(l),n)if(l.flags&256)l.flags&=-257,l=Go(t,l,e);else if(l.memoizedState!==null)l.child=t.child,l.flags|=128,l=null;else throw Error(o(558));else if(Dt||oa(t,l,e,!1),n=(e&t.childLanes)!==0,Dt||n){if(a=xt,a!==null&&(i=Es(a,e),i!==0&&i!==u.retryLane))throw u.retryLane=i,Ue(t,i),It(a,t,i),dc;ju(),l=Go(t,l,e)}else t=u.treeContext,vt=bl(i.nextSibling),Rt=l,nt=!0,le=null,yl=!1,t!==null&&zf(l,t),l=du(l,a),l.flags|=4096;return l}return t=ql(t.child,{mode:a.mode,children:a.children}),t.ref=l.ref,l.child=t,t.return=l,t}function mu(t,l){var e=l.ref;if(e===null)t!==null&&t.ref!==null&&(l.flags|=4194816);else{if(typeof e!="function"&&typeof e!="object")throw Error(o(284));(t===null||t.ref!==e)&&(l.flags|=4194816)}}function mc(t,l,e,a,n){return qe(l),e=Ji(t,l,e,a,void 0,n),a=ki(),t!==null&&!Dt?($i(t,l,n),Ll(t,l,n)):(nt&&a&&Mi(l),l.flags|=1,Gt(t,l,e,n),l.child)}function Xo(t,l,e,a,n,u){return qe(l),l.updateQueue=null,e=Lf(l,a,e,n),Qf(t),a=ki(),t!==null&&!Dt?($i(t,l,u),Ll(t,l,u)):(nt&&a&&Mi(l),l.flags|=1,Gt(t,l,e,u),l.child)}function Qo(t,l,e,a,n){if(qe(l),l.stateNode===null){var u=ia,i=e.contextType;typeof i=="object"&&i!==null&&(u=Yt(i)),u=new e(a,u),l.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=oc,l.stateNode=u,u._reactInternals=l,u=l.stateNode,u.props=a,u.state=l.memoizedState,u.refs={},Gi(l),i=e.contextType,u.context=typeof i=="object"&&i!==null?Yt(i):ia,u.state=l.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(fc(l,e,i,a),u.state=l.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&oc.enqueueReplaceState(u,u.state,null),Pa(l,a,u,n),Ia(),u.state=l.memoizedState),typeof u.componentDidMount=="function"&&(l.flags|=4194308),a=!0}else if(t===null){u=l.stateNode;var f=l.memoizedProps,d=Le(e,f);u.props=d;var b=u.context,z=e.contextType;i=ia,typeof z=="object"&&z!==null&&(i=Yt(z));var D=e.getDerivedStateFromProps;z=typeof D=="function"||typeof u.getSnapshotBeforeUpdate=="function",f=l.pendingProps!==f,z||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f||b!==i)&&Eo(l,u,a,i),ne=!1;var S=l.memoizedState;u.state=S,Pa(l,a,u,n),Ia(),b=l.memoizedState,f||S!==b||ne?(typeof D=="function"&&(fc(l,e,D,a),b=l.memoizedState),(d=ne||Ao(l,e,d,a,S,b,i))?(z||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(l.flags|=4194308)):(typeof u.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=a,l.memoizedState=b),u.props=a,u.state=b,u.context=i,a=d):(typeof u.componentDidMount=="function"&&(l.flags|=4194308),a=!1)}else{u=l.stateNode,Xi(t,l),i=l.memoizedProps,z=Le(e,i),u.props=z,D=l.pendingProps,S=u.context,b=e.contextType,d=ia,typeof b=="object"&&b!==null&&(d=Yt(b)),f=e.getDerivedStateFromProps,(b=typeof f=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==D||S!==d)&&Eo(l,u,a,d),ne=!1,S=l.memoizedState,u.state=S,Pa(l,a,u,n),Ia();var N=l.memoizedState;i!==D||S!==N||ne||t!==null&&t.dependencies!==null&&kn(t.dependencies)?(typeof f=="function"&&(fc(l,e,f,a),N=l.memoizedState),(z=ne||Ao(l,e,z,a,S,N,d)||t!==null&&t.dependencies!==null&&kn(t.dependencies))?(b||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,N,d),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,N,d)),typeof u.componentDidUpdate=="function"&&(l.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&S===t.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&S===t.memoizedState||(l.flags|=1024),l.memoizedProps=a,l.memoizedState=N),u.props=a,u.state=N,u.context=d,a=z):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&S===t.memoizedState||(l.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&S===t.memoizedState||(l.flags|=1024),a=!1)}return u=a,mu(t,l),a=(l.flags&128)!==0,u||a?(u=l.stateNode,e=a&&typeof e.getDerivedStateFromError!="function"?null:u.render(),l.flags|=1,t!==null&&a?(l.child=Xe(l,t.child,null,n),l.child=Xe(l,null,e,n)):Gt(t,l,e,n),l.memoizedState=u.state,t=l.child):t=Ll(t,l,n),t}function Lo(t,l,e,a){return He(),l.flags|=256,Gt(t,l,e,a),l.child}var hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pc(t){return{baseLanes:t,cachePool:Df()}}function gc(t,l,e){return t=t!==null?t.childLanes&~e:0,l&&(t|=cl),t}function Zo(t,l,e){var a=l.pendingProps,n=!1,u=(l.flags&128)!==0,i;if((i=u)||(i=t!==null&&t.memoizedState===null?!1:(Tt.current&2)!==0),i&&(n=!0,l.flags&=-129),i=(l.flags&32)!==0,l.flags&=-33,t===null){if(nt){if(n?ce(l):se(),(t=vt)?(t=Fr(t,yl),t=t!==null&&t.data!=="&"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:te!==null?{id:Ml,overflow:Ol}:null,retryLane:536870912,hydrationErrors:null},e=Sf(t),e.return=l,l.child=e,Rt=l,vt=null)):t=null,t===null)throw ee(l);return Ic(t)?l.lanes=32:l.lanes=536870912,null}var f=a.children;return a=a.fallback,n?(se(),n=l.mode,f=hu({mode:"hidden",children:f},n),a=Ce(a,n,e,null),f.return=l,a.return=l,f.sibling=a,l.child=f,a=l.child,a.memoizedState=pc(e),a.childLanes=gc(t,i,e),l.memoizedState=hc,nn(null,a)):(ce(l),xc(l,f))}var d=t.memoizedState;if(d!==null&&(f=d.dehydrated,f!==null)){if(u)l.flags&256?(ce(l),l.flags&=-257,l=yc(t,l,e)):l.memoizedState!==null?(se(),l.child=t.child,l.flags|=128,l=null):(se(),f=a.fallback,n=l.mode,a=hu({mode:"visible",children:a.children},n),f=Ce(f,n,e,null),f.flags|=2,a.return=l,f.return=l,a.sibling=f,l.child=a,Xe(l,t.child,null,e),a=l.child,a.memoizedState=pc(e),a.childLanes=gc(t,i,e),l.memoizedState=hc,l=nn(null,a));else if(ce(l),Ic(f)){if(i=f.nextSibling&&f.nextSibling.dataset,i)var b=i.dgst;i=b,a=Error(o(419)),a.stack="",a.digest=i,Ka({value:a,source:null,stack:null}),l=yc(t,l,e)}else if(Dt||oa(t,l,e,!1),i=(e&t.childLanes)!==0,Dt||i){if(i=xt,i!==null&&(a=Es(i,e),a!==0&&a!==d.retryLane))throw d.retryLane=a,Ue(t,a),It(i,t,a),dc;Fc(f)||ju(),l=yc(t,l,e)}else Fc(f)?(l.flags|=192,l.child=t.child,l=null):(t=d.treeContext,vt=bl(f.nextSibling),Rt=l,nt=!0,le=null,yl=!1,t!==null&&zf(l,t),l=xc(l,a.children),l.flags|=4096);return l}return n?(se(),f=a.fallback,n=l.mode,d=t.child,b=d.sibling,a=ql(d,{mode:"hidden",children:a.children}),a.subtreeFlags=d.subtreeFlags&65011712,b!==null?f=ql(b,f):(f=Ce(f,n,e,null),f.flags|=2),f.return=l,a.return=l,a.sibling=f,l.child=a,nn(null,a),a=l.child,f=t.child.memoizedState,f===null?f=pc(e):(n=f.cachePool,n!==null?(d=Mt._currentValue,n=n.parent!==d?{parent:d,pool:d}:n):n=Df(),f={baseLanes:f.baseLanes|e,cachePool:n}),a.memoizedState=f,a.childLanes=gc(t,i,e),l.memoizedState=hc,nn(t.child,a)):(ce(l),e=t.child,t=e.sibling,e=ql(e,{mode:"visible",children:a.children}),e.return=l,e.sibling=null,t!==null&&(i=l.deletions,i===null?(l.deletions=[t],l.flags|=16):i.push(t)),l.child=e,l.memoizedState=null,e)}function xc(t,l){return l=hu({mode:"visible",children:l},t.mode),l.return=t,t.child=l}function hu(t,l){return t=al(22,t,null,l),t.lanes=0,t}function yc(t,l,e){return Xe(l,t.child,null,e),t=xc(l,l.pendingProps.children),t.flags|=2,l.memoizedState=null,t}function wo(t,l,e){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l),Ci(t.return,l,e)}function vc(t,l,e,a,n,u){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:a,tail:e,tailMode:n,treeForkCount:u}:(i.isBackwards=l,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=e,i.tailMode=n,i.treeForkCount=u)}function Vo(t,l,e){var a=l.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=Tt.current,f=(i&2)!==0;if(f?(i=i&1|2,l.flags|=128):i&=1,I(Tt,i),Gt(t,l,a,e),a=nt?Va:0,!f&&t!==null&&(t.flags&128)!==0)t:for(t=l.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&wo(t,e,l);else if(t.tag===19)wo(t,e,l);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break t;for(;t.sibling===null;){if(t.return===null||t.return===l)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(e=l.child,n=null;e!==null;)t=e.alternate,t!==null&&eu(t)===null&&(n=e),e=e.sibling;e=n,e===null?(n=l.child,l.child=null):(n=e.sibling,e.sibling=null),vc(l,!1,n,e,u,a);break;case"backwards":case"unstable_legacy-backwards":for(e=null,n=l.child,l.child=null;n!==null;){if(t=n.alternate,t!==null&&eu(t)===null){l.child=n;break}t=n.sibling,n.sibling=e,e=n,n=t}vc(l,!0,e,null,u,a);break;case"together":vc(l,!1,null,null,void 0,a);break;default:l.memoizedState=null}return l.child}function Ll(t,l,e){if(t!==null&&(l.dependencies=t.dependencies),re|=l.lanes,(e&l.childLanes)===0)if(t!==null){if(oa(t,l,e,!1),(e&l.childLanes)===0)return null}else return null;if(t!==null&&l.child!==t.child)throw Error(o(153));if(l.child!==null){for(t=l.child,e=ql(t,t.pendingProps),l.child=e,e.return=l;t.sibling!==null;)t=t.sibling,e=e.sibling=ql(t,t.pendingProps),e.return=l;e.sibling=null}return l.child}function bc(t,l){return(t.lanes&l)!==0?!0:(t=t.dependencies,!!(t!==null&&kn(t)))}function Nh(t,l,e){switch(l.tag){case 3:Te(l,l.stateNode.containerInfo),ae(l,Mt,t.memoizedState.cache),He();break;case 27:case 5:Ke(l);break;case 4:Te(l,l.stateNode.containerInfo);break;case 10:ae(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Vi(l),null;break;case 13:var a=l.memoizedState;if(a!==null)return a.dehydrated!==null?(ce(l),l.flags|=128,null):(e&l.child.childLanes)!==0?Zo(t,l,e):(ce(l),t=Ll(t,l,e),t!==null?t.sibling:null);ce(l);break;case 19:var n=(t.flags&128)!==0;if(a=(e&l.childLanes)!==0,a||(oa(t,l,e,!1),a=(e&l.childLanes)!==0),n){if(a)return Vo(t,l,e);l.flags|=128}if(n=l.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),I(Tt,Tt.current),a)break;return null;case 22:return l.lanes=0,Ro(t,l,e,l.pendingProps);case 24:ae(l,Mt,t.memoizedState.cache)}return Ll(t,l,e)}function Ko(t,l,e){if(t!==null)if(t.memoizedProps!==l.pendingProps)Dt=!0;else{if(!bc(t,e)&&(l.flags&128)===0)return Dt=!1,Nh(t,l,e);Dt=(t.flags&131072)!==0}else Dt=!1,nt&&(l.flags&1048576)!==0&&jf(l,Va,l.index);switch(l.lanes=0,l.tag){case 16:t:{var a=l.pendingProps;if(t=Ye(l.elementType),l.type=t,typeof t=="function")Ti(t)?(a=Le(t,a),l.tag=1,l=Qo(null,l,t,a,e)):(l.tag=0,l=mc(null,l,t,a,e));else{if(t!=null){var n=t.$$typeof;if(n===F){l.tag=11,l=Ho(null,l,t,a,e);break t}else if(n===J){l.tag=14,l=Bo(null,l,t,a,e);break t}}throw l=ze(t)||t,Error(o(306,l,""))}}return l;case 0:return mc(t,l,l.type,l.pendingProps,e);case 1:return a=l.type,n=Le(a,l.pendingProps),Qo(t,l,a,n,e);case 3:t:{if(Te(l,l.stateNode.containerInfo),t===null)throw Error(o(387));a=l.pendingProps;var u=l.memoizedState;n=u.element,Xi(t,l),Pa(l,a,null,e);var i=l.memoizedState;if(a=i.cache,ae(l,Mt,a),a!==u.cache&&Hi(l,[Mt],e,!0),Ia(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},l.updateQueue.baseState=u,l.memoizedState=u,l.flags&256){l=Lo(t,l,a,e);break t}else if(a!==n){n=pl(Error(o(424)),l),Ka(n),l=Lo(t,l,a,e);break t}else{switch(t=l.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(vt=bl(t.firstChild),Rt=l,nt=!0,le=null,yl=!0,e=qf(l,null,a,e),l.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(He(),a===n){l=Ll(t,l,e);break t}Gt(t,l,a,e)}l=l.child}return l;case 26:return mu(t,l),t===null?(e=ad(l.type,null,l.pendingProps,null))?l.memoizedState=e:nt||(e=l.type,t=l.pendingProps,a=Du(Al.current).createElement(e),a[qt]=l,a[Kt]=t,Xt(a,e,t),Ct(a),l.stateNode=a):l.memoizedState=ad(l.type,t.memoizedProps,l.pendingProps,t.memoizedState),null;case 27:return Ke(l),t===null&&nt&&(a=l.stateNode=td(l.type,l.pendingProps,Al.current),Rt=l,yl=!0,n=vt,ge(l.type)?(Pc=n,vt=bl(a.firstChild)):vt=n),Gt(t,l,l.pendingProps.children,e),mu(t,l),t===null&&(l.flags|=4194304),l.child;case 5:return t===null&&nt&&((n=a=vt)&&(a=Ih(a,l.type,l.pendingProps,yl),a!==null?(l.stateNode=a,Rt=l,vt=bl(a.firstChild),yl=!1,n=!0):n=!1),n||ee(l)),Ke(l),n=l.type,u=l.pendingProps,i=t!==null?t.memoizedProps:null,a=u.children,kc(n,u)?a=null:i!==null&&kc(n,i)&&(l.flags|=32),l.memoizedState!==null&&(n=Ji(t,l,mh,null,null,e),bn._currentValue=n),mu(t,l),Gt(t,l,a,e),l.child;case 6:return t===null&&nt&&((t=e=vt)&&(e=Ph(e,l.pendingProps,yl),e!==null?(l.stateNode=e,Rt=l,vt=null,t=!0):t=!1),t||ee(l)),null;case 13:return Zo(t,l,e);case 4:return Te(l,l.stateNode.containerInfo),a=l.pendingProps,t===null?l.child=Xe(l,null,a,e):Gt(t,l,a,e),l.child;case 11:return Ho(t,l,l.type,l.pendingProps,e);case 7:return Gt(t,l,l.pendingProps,e),l.child;case 8:return Gt(t,l,l.pendingProps.children,e),l.child;case 12:return Gt(t,l,l.pendingProps.children,e),l.child;case 10:return a=l.pendingProps,ae(l,l.type,a.value),Gt(t,l,a.children,e),l.child;case 9:return n=l.type._context,a=l.pendingProps.children,qe(l),n=Yt(n),a=a(n),l.flags|=1,Gt(t,l,a,e),l.child;case 14:return Bo(t,l,l.type,l.pendingProps,e);case 15:return qo(t,l,l.type,l.pendingProps,e);case 19:return Vo(t,l,e);case 31:return Sh(t,l,e);case 22:return Ro(t,l,e,l.pendingProps);case 24:return qe(l),a=Yt(Mt),t===null?(n=Ri(),n===null&&(n=xt,u=Bi(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=e),n=u),l.memoizedState={parent:a,cache:n},Gi(l),ae(l,Mt,n)):((t.lanes&e)!==0&&(Xi(t,l),Pa(l,null,null,e),Ia()),n=t.memoizedState,u=l.memoizedState,n.parent!==a?(n={parent:a,cache:a},l.memoizedState=n,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=n),ae(l,Mt,a)):(a=u.cache,ae(l,Mt,a),a!==n.cache&&Hi(l,[Mt],e,!0))),Gt(t,l,l.pendingProps.children,e),l.child;case 29:throw l.pendingProps}throw Error(o(156,l.tag))}function Zl(t){t.flags|=4}function Sc(t,l,e,a,n){if((l=(t.mode&32)!==0)&&(l=!1),l){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(vr())t.flags|=8192;else throw Ge=In,Yi}else t.flags&=-16777217}function Jo(t,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!sd(l))if(vr())t.flags|=8192;else throw Ge=In,Yi}function pu(t,l){l!==null&&(t.flags|=4),t.flags&16384&&(l=t.tag!==22?zs():536870912,t.lanes|=l,Na|=l)}function un(t,l){if(!nt)switch(t.tailMode){case"hidden":l=t.tail;for(var e=null;l!==null;)l.alternate!==null&&(e=l),l=l.sibling;e===null?t.tail=null:e.sibling=null;break;case"collapsed":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?l||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function bt(t){var l=t.alternate!==null&&t.alternate.child===t.child,e=0,a=0;if(l)for(var n=t.child;n!==null;)e|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)e|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=e,l}function jh(t,l,e){var a=l.pendingProps;switch(Oi(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return bt(l),null;case 1:return bt(l),null;case 3:return e=l.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),l.memoizedState.cache!==a&&(l.flags|=2048),Gl(Mt),Ul(),e.pendingContext&&(e.context=e.pendingContext,e.pendingContext=null),(t===null||t.child===null)&&(fa(l)?Zl(l):t===null||t.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,_i())),bt(l),null;case 26:var n=l.type,u=l.memoizedState;return t===null?(Zl(l),u!==null?(bt(l),Jo(l,u)):(bt(l),Sc(l,n,null,a,e))):u?u!==t.memoizedState?(Zl(l),bt(l),Jo(l,u)):(bt(l),l.flags&=-16777217):(t=t.memoizedProps,t!==a&&Zl(l),bt(l),Sc(l,n,t,a,e)),null;case 27:if(V(l),e=Al.current,n=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==a&&Zl(l);else{if(!a){if(l.stateNode===null)throw Error(o(166));return bt(l),null}t=Et.current,fa(l)?Tf(l):(t=td(n,a,e),l.stateNode=t,Zl(l))}return bt(l),null;case 5:if(V(l),n=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==a&&Zl(l);else{if(!a){if(l.stateNode===null)throw Error(o(166));return bt(l),null}if(u=Et.current,fa(l))Tf(l);else{var i=Du(Al.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[qt]=l,u[Kt]=a;t:for(i=l.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===l)break t;for(;i.sibling===null;){if(i.return===null||i.return===l)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}l.stateNode=u;t:switch(Xt(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&Zl(l)}}return bt(l),Sc(l,l.type,t===null?null:t.memoizedProps,l.pendingProps,e),null;case 6:if(t&&l.stateNode!=null)t.memoizedProps!==a&&Zl(l);else{if(typeof a!="string"&&l.stateNode===null)throw Error(o(166));if(t=Al.current,fa(l)){if(t=l.stateNode,e=l.memoizedProps,a=null,n=Rt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[qt]=l,t=!!(t.nodeValue===e||a!==null&&a.suppressHydrationWarning===!0||Zr(t.nodeValue,e)),t||ee(l,!0)}else t=Du(t).createTextNode(a),t[qt]=l,l.stateNode=t}return bt(l),null;case 31:if(e=l.memoizedState,t===null||t.memoizedState!==null){if(a=fa(l),e!==null){if(t===null){if(!a)throw Error(o(318));if(t=l.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[qt]=l}else He(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;bt(l),t=!1}else e=_i(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=e),t=!0;if(!t)return l.flags&256?(ul(l),l):(ul(l),null);if((l.flags&128)!==0)throw Error(o(558))}return bt(l),null;case 13:if(a=l.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=fa(l),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(o(318));if(n=l.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[qt]=l}else He(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;bt(l),n=!1}else n=_i(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return l.flags&256?(ul(l),l):(ul(l),null)}return ul(l),(l.flags&128)!==0?(l.lanes=e,l):(e=a!==null,t=t!==null&&t.memoizedState!==null,e&&(a=l.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),e!==t&&e&&(l.child.flags|=8192),pu(l,l.updateQueue),bt(l),null);case 4:return Ul(),t===null&&Zc(l.stateNode.containerInfo),bt(l),null;case 10:return Gl(l.type),bt(l),null;case 19:if(ft(Tt),a=l.memoizedState,a===null)return bt(l),null;if(n=(l.flags&128)!==0,u=a.rendering,u===null)if(n)un(a,!1);else{if(zt!==0||t!==null&&(t.flags&128)!==0)for(t=l.child;t!==null;){if(u=eu(t),u!==null){for(l.flags|=128,un(a,!1),t=u.updateQueue,l.updateQueue=t,pu(l,t),l.subtreeFlags=0,t=e,e=l.child;e!==null;)bf(e,t),e=e.sibling;return I(Tt,Tt.current&1|2),nt&&Rl(l,a.treeForkCount),l.child}t=t.sibling}a.tail!==null&&Pt()>bu&&(l.flags|=128,n=!0,un(a,!1),l.lanes=4194304)}else{if(!n)if(t=eu(u),t!==null){if(l.flags|=128,n=!0,t=t.updateQueue,l.updateQueue=t,pu(l,t),un(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!nt)return bt(l),null}else 2*Pt()-a.renderingStartTime>bu&&e!==536870912&&(l.flags|=128,n=!0,un(a,!1),l.lanes=4194304);a.isBackwards?(u.sibling=l.child,l.child=u):(t=a.last,t!==null?t.sibling=u:l.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Pt(),t.sibling=null,e=Tt.current,I(Tt,n?e&1|2:e&1),nt&&Rl(l,a.treeForkCount),t):(bt(l),null);case 22:case 23:return ul(l),wi(),a=l.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(l.flags|=8192):a&&(l.flags|=8192),a?(e&536870912)!==0&&(l.flags&128)===0&&(bt(l),l.subtreeFlags&6&&(l.flags|=8192)):bt(l),e=l.updateQueue,e!==null&&pu(l,e.retryQueue),e=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==e&&(l.flags|=2048),t!==null&&ft(Re),null;case 24:return e=null,t!==null&&(e=t.memoizedState.cache),l.memoizedState.cache!==e&&(l.flags|=2048),Gl(Mt),bt(l),null;case 25:return null;case 30:return null}throw Error(o(156,l.tag))}function zh(t,l){switch(Oi(l),l.tag){case 1:return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 3:return Gl(Mt),Ul(),t=l.flags,(t&65536)!==0&&(t&128)===0?(l.flags=t&-65537|128,l):null;case 26:case 27:case 5:return V(l),null;case 31:if(l.memoizedState!==null){if(ul(l),l.alternate===null)throw Error(o(340));He()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 13:if(ul(l),t=l.memoizedState,t!==null&&t.dehydrated!==null){if(l.alternate===null)throw Error(o(340));He()}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 19:return ft(Tt),null;case 4:return Ul(),null;case 10:return Gl(l.type),null;case 22:case 23:return ul(l),wi(),t!==null&&ft(Re),t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 24:return Gl(Mt),null;case 25:return null;default:return null}}function ko(t,l){switch(Oi(l),l.tag){case 3:Gl(Mt),Ul();break;case 26:case 27:case 5:V(l);break;case 4:Ul();break;case 31:l.memoizedState!==null&&ul(l);break;case 13:ul(l);break;case 19:ft(Tt);break;case 10:Gl(l.type);break;case 22:case 23:ul(l),wi(),t!==null&&ft(Re);break;case 24:Gl(Mt)}}function cn(t,l){try{var e=l.updateQueue,a=e!==null?e.lastEffect:null;if(a!==null){var n=a.next;e=n;do{if((e.tag&t)===t){a=void 0;var u=e.create,i=e.inst;a=u(),i.destroy=a}e=e.next}while(e!==n)}}catch(f){rt(l,l.return,f)}}function fe(t,l,e){try{var a=l.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&t)===t){var i=a.inst,f=i.destroy;if(f!==void 0){i.destroy=void 0,n=l;var d=e,b=f;try{b()}catch(z){rt(n,d,z)}}}a=a.next}while(a!==u)}}catch(z){rt(l,l.return,z)}}function $o(t){var l=t.updateQueue;if(l!==null){var e=t.stateNode;try{Yf(l,e)}catch(a){rt(t,t.return,a)}}}function Wo(t,l,e){e.props=Le(t.type,t.memoizedProps),e.state=t.memoizedState;try{e.componentWillUnmount()}catch(a){rt(t,l,a)}}function sn(t,l){try{var e=t.ref;if(e!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof e=="function"?t.refCleanup=e(a):e.current=a}}catch(n){rt(t,l,n)}}function Dl(t,l){var e=t.ref,a=t.refCleanup;if(e!==null)if(typeof a=="function")try{a()}catch(n){rt(t,l,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof e=="function")try{e(null)}catch(n){rt(t,l,n)}else e.current=null}function Fo(t){var l=t.type,e=t.memoizedProps,a=t.stateNode;try{t:switch(l){case"button":case"input":case"select":case"textarea":e.autoFocus&&a.focus();break t;case"img":e.src?a.src=e.src:e.srcSet&&(a.srcset=e.srcSet)}}catch(n){rt(t,t.return,n)}}function Nc(t,l,e){try{var a=t.stateNode;Kh(a,t.type,e,l),a[Kt]=l}catch(n){rt(t,t.return,n)}}function Io(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ge(t.type)||t.tag===4}function jc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Io(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ge(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function zc(t,l,e){var a=t.tag;if(a===5||a===6)t=t.stateNode,l?(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).insertBefore(t,l):(l=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.appendChild(t),e=e._reactRootContainer,e!=null||l.onclick!==null||(l.onclick=Hl));else if(a!==4&&(a===27&&ge(t.type)&&(e=t.stateNode,l=null),t=t.child,t!==null))for(zc(t,l,e),t=t.sibling;t!==null;)zc(t,l,e),t=t.sibling}function gu(t,l,e){var a=t.tag;if(a===5||a===6)t=t.stateNode,l?e.insertBefore(t,l):e.appendChild(t);else if(a!==4&&(a===27&&ge(t.type)&&(e=t.stateNode),t=t.child,t!==null))for(gu(t,l,e),t=t.sibling;t!==null;)gu(t,l,e),t=t.sibling}function Po(t){var l=t.stateNode,e=t.memoizedProps;try{for(var a=t.type,n=l.attributes;n.length;)l.removeAttributeNode(n[0]);Xt(l,a,e),l[qt]=t,l[Kt]=e}catch(u){rt(t,t.return,u)}}var wl=!1,_t=!1,Tc=!1,tr=typeof WeakSet=="function"?WeakSet:Set,Ht=null;function Th(t,l){if(t=t.containerInfo,Kc=Ru,t=rf(t),yi(t)){if("selectionStart"in t)var e={start:t.selectionStart,end:t.selectionEnd};else t:{e=(e=t.ownerDocument)&&e.defaultView||window;var a=e.getSelection&&e.getSelection();if(a&&a.rangeCount!==0){e=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{e.nodeType,u.nodeType}catch{e=null;break t}var i=0,f=-1,d=-1,b=0,z=0,D=t,S=null;l:for(;;){for(var N;D!==e||n!==0&&D.nodeType!==3||(f=i+n),D!==u||a!==0&&D.nodeType!==3||(d=i+a),D.nodeType===3&&(i+=D.nodeValue.length),(N=D.firstChild)!==null;)S=D,D=N;for(;;){if(D===t)break l;if(S===e&&++b===n&&(f=i),S===u&&++z===a&&(d=i),(N=D.nextSibling)!==null)break;D=S,S=D.parentNode}D=N}e=f===-1||d===-1?null:{start:f,end:d}}else e=null}e=e||{start:0,end:0}}else e=null;for(Jc={focusedElem:t,selectionRange:e},Ru=!1,Ht=l;Ht!==null;)if(l=Ht,t=l.child,(l.subtreeFlags&1028)!==0&&t!==null)t.return=l,Ht=t;else for(;Ht!==null;){switch(l=Ht,u=l.alternate,t=l.flags,l.tag){case 0:if((t&4)!==0&&(t=l.updateQueue,t=t!==null?t.events:null,t!==null))for(e=0;e<t.length;e++)n=t[e],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,e=l,n=u.memoizedProps,u=u.memoizedState,a=e.stateNode;try{var q=Le(e.type,n);t=a.getSnapshotBeforeUpdate(q,u),a.__reactInternalSnapshotBeforeUpdate=t}catch(Z){rt(e,e.return,Z)}}break;case 3:if((t&1024)!==0){if(t=l.stateNode.containerInfo,e=t.nodeType,e===9)Wc(t);else if(e===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Wc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=l.sibling,t!==null){t.return=l.return,Ht=t;break}Ht=l.return}}function lr(t,l,e){var a=e.flags;switch(e.tag){case 0:case 11:case 15:Kl(t,e),a&4&&cn(5,e);break;case 1:if(Kl(t,e),a&4)if(t=e.stateNode,l===null)try{t.componentDidMount()}catch(i){rt(e,e.return,i)}else{var n=Le(e.type,l.memoizedProps);l=l.memoizedState;try{t.componentDidUpdate(n,l,t.__reactInternalSnapshotBeforeUpdate)}catch(i){rt(e,e.return,i)}}a&64&&$o(e),a&512&&sn(e,e.return);break;case 3:if(Kl(t,e),a&64&&(t=e.updateQueue,t!==null)){if(l=null,e.child!==null)switch(e.child.tag){case 27:case 5:l=e.child.stateNode;break;case 1:l=e.child.stateNode}try{Yf(t,l)}catch(i){rt(e,e.return,i)}}break;case 27:l===null&&a&4&&Po(e);case 26:case 5:Kl(t,e),l===null&&a&4&&Fo(e),a&512&&sn(e,e.return);break;case 12:Kl(t,e);break;case 31:Kl(t,e),a&4&&nr(t,e);break;case 13:Kl(t,e),a&4&&ur(t,e),a&64&&(t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(e=Hh.bind(null,e),t0(t,e))));break;case 22:if(a=e.memoizedState!==null||wl,!a){l=l!==null&&l.memoizedState!==null||_t,n=wl;var u=_t;wl=a,(_t=l)&&!u?Jl(t,e,(e.subtreeFlags&8772)!==0):Kl(t,e),wl=n,_t=u}break;case 30:break;default:Kl(t,e)}}function er(t){var l=t.alternate;l!==null&&(t.alternate=null,er(l)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(l=t.stateNode,l!==null&&li(l)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var St=null,kt=!1;function Vl(t,l,e){for(e=e.child;e!==null;)ar(t,l,e),e=e.sibling}function ar(t,l,e){if(tl&&typeof tl.onCommitFiberUnmount=="function")try{tl.onCommitFiberUnmount(_a,e)}catch{}switch(e.tag){case 26:_t||Dl(e,l),Vl(t,l,e),e.memoizedState?e.memoizedState.count--:e.stateNode&&(e=e.stateNode,e.parentNode.removeChild(e));break;case 27:_t||Dl(e,l);var a=St,n=kt;ge(e.type)&&(St=e.stateNode,kt=!1),Vl(t,l,e),xn(e.stateNode),St=a,kt=n;break;case 5:_t||Dl(e,l);case 6:if(a=St,n=kt,St=null,Vl(t,l,e),St=a,kt=n,St!==null)if(kt)try{(St.nodeType===9?St.body:St.nodeName==="HTML"?St.ownerDocument.body:St).removeChild(e.stateNode)}catch(u){rt(e,l,u)}else try{St.removeChild(e.stateNode)}catch(u){rt(e,l,u)}break;case 18:St!==null&&(kt?(t=St,$r(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,e.stateNode),Da(t)):$r(St,e.stateNode));break;case 4:a=St,n=kt,St=e.stateNode.containerInfo,kt=!0,Vl(t,l,e),St=a,kt=n;break;case 0:case 11:case 14:case 15:fe(2,e,l),_t||fe(4,e,l),Vl(t,l,e);break;case 1:_t||(Dl(e,l),a=e.stateNode,typeof a.componentWillUnmount=="function"&&Wo(e,l,a)),Vl(t,l,e);break;case 21:Vl(t,l,e);break;case 22:_t=(a=_t)||e.memoizedState!==null,Vl(t,l,e),_t=a;break;default:Vl(t,l,e)}}function nr(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Da(t)}catch(e){rt(l,l.return,e)}}}function ur(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Da(t)}catch(e){rt(l,l.return,e)}}function Ah(t){switch(t.tag){case 31:case 13:case 19:var l=t.stateNode;return l===null&&(l=t.stateNode=new tr),l;case 22:return t=t.stateNode,l=t._retryCache,l===null&&(l=t._retryCache=new tr),l;default:throw Error(o(435,t.tag))}}function xu(t,l){var e=Ah(t);l.forEach(function(a){if(!e.has(a)){e.add(a);var n=Bh.bind(null,t,a);a.then(n,n)}})}function $t(t,l){var e=l.deletions;if(e!==null)for(var a=0;a<e.length;a++){var n=e[a],u=t,i=l,f=i;t:for(;f!==null;){switch(f.tag){case 27:if(ge(f.type)){St=f.stateNode,kt=!1;break t}break;case 5:St=f.stateNode,kt=!1;break t;case 3:case 4:St=f.stateNode.containerInfo,kt=!0;break t}f=f.return}if(St===null)throw Error(o(160));ar(u,i,n),St=null,kt=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)ir(l,t),l=l.sibling}var zl=null;function ir(t,l){var e=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:$t(l,t),Wt(t),a&4&&(fe(3,t,t.return),cn(3,t),fe(5,t,t.return));break;case 1:$t(l,t),Wt(t),a&512&&(_t||e===null||Dl(e,e.return)),a&64&&wl&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(e=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=e===null?a:e.concat(a))));break;case 26:var n=zl;if($t(l,t),Wt(t),a&512&&(_t||e===null||Dl(e,e.return)),a&4){var u=e!==null?e.memoizedState:null;if(a=t.memoizedState,e===null)if(a===null)if(t.stateNode===null){t:{a=t.type,e=t.memoizedProps,n=n.ownerDocument||n;l:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Ha]||u[qt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Xt(u,a,e),u[qt]=t,Ct(u),a=u;break t;case"link":var i=id("link","href",n).get(a+(e.href||""));if(i){for(var f=0;f<i.length;f++)if(u=i[f],u.getAttribute("href")===(e.href==null||e.href===""?null:e.href)&&u.getAttribute("rel")===(e.rel==null?null:e.rel)&&u.getAttribute("title")===(e.title==null?null:e.title)&&u.getAttribute("crossorigin")===(e.crossOrigin==null?null:e.crossOrigin)){i.splice(f,1);break l}}u=n.createElement(a),Xt(u,a,e),n.head.appendChild(u);break;case"meta":if(i=id("meta","content",n).get(a+(e.content||""))){for(f=0;f<i.length;f++)if(u=i[f],u.getAttribute("content")===(e.content==null?null:""+e.content)&&u.getAttribute("name")===(e.name==null?null:e.name)&&u.getAttribute("property")===(e.property==null?null:e.property)&&u.getAttribute("http-equiv")===(e.httpEquiv==null?null:e.httpEquiv)&&u.getAttribute("charset")===(e.charSet==null?null:e.charSet)){i.splice(f,1);break l}}u=n.createElement(a),Xt(u,a,e),n.head.appendChild(u);break;default:throw Error(o(468,a))}u[qt]=t,Ct(u),a=u}t.stateNode=a}else cd(n,t.type,t.stateNode);else t.stateNode=ud(n,a,t.memoizedProps);else u!==a?(u===null?e.stateNode!==null&&(e=e.stateNode,e.parentNode.removeChild(e)):u.count--,a===null?cd(n,t.type,t.stateNode):ud(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Nc(t,t.memoizedProps,e.memoizedProps)}break;case 27:$t(l,t),Wt(t),a&512&&(_t||e===null||Dl(e,e.return)),e!==null&&a&4&&Nc(t,t.memoizedProps,e.memoizedProps);break;case 5:if($t(l,t),Wt(t),a&512&&(_t||e===null||Dl(e,e.return)),t.flags&32){n=t.stateNode;try{Pe(n,"")}catch(q){rt(t,t.return,q)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,Nc(t,n,e!==null?e.memoizedProps:n)),a&1024&&(Tc=!0);break;case 6:if($t(l,t),Wt(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,e=t.stateNode;try{e.nodeValue=a}catch(q){rt(t,t.return,q)}}break;case 3:if(Cu=null,n=zl,zl=_u(l.containerInfo),$t(l,t),zl=n,Wt(t),a&4&&e!==null&&e.memoizedState.isDehydrated)try{Da(l.containerInfo)}catch(q){rt(t,t.return,q)}Tc&&(Tc=!1,cr(t));break;case 4:a=zl,zl=_u(t.stateNode.containerInfo),$t(l,t),Wt(t),zl=a;break;case 12:$t(l,t),Wt(t);break;case 31:$t(l,t),Wt(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,xu(t,a)));break;case 13:$t(l,t),Wt(t),t.child.flags&8192&&t.memoizedState!==null!=(e!==null&&e.memoizedState!==null)&&(vu=Pt()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,xu(t,a)));break;case 22:n=t.memoizedState!==null;var d=e!==null&&e.memoizedState!==null,b=wl,z=_t;if(wl=b||n,_t=z||d,$t(l,t),_t=z,wl=b,Wt(t),a&8192)t:for(l=t.stateNode,l._visibility=n?l._visibility&-2:l._visibility|1,n&&(e===null||d||wl||_t||Ze(t)),e=null,l=t;;){if(l.tag===5||l.tag===26){if(e===null){d=e=l;try{if(u=d.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{f=d.stateNode;var D=d.memoizedProps.style,S=D!=null&&D.hasOwnProperty("display")?D.display:null;f.style.display=S==null||typeof S=="boolean"?"":(""+S).trim()}}catch(q){rt(d,d.return,q)}}}else if(l.tag===6){if(e===null){d=l;try{d.stateNode.nodeValue=n?"":d.memoizedProps}catch(q){rt(d,d.return,q)}}}else if(l.tag===18){if(e===null){d=l;try{var N=d.stateNode;n?Wr(N,!0):Wr(d.stateNode,!1)}catch(q){rt(d,d.return,q)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===t)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break t;for(;l.sibling===null;){if(l.return===null||l.return===t)break t;e===l&&(e=null),l=l.return}e===l&&(e=null),l.sibling.return=l.return,l=l.sibling}a&4&&(a=t.updateQueue,a!==null&&(e=a.retryQueue,e!==null&&(a.retryQueue=null,xu(t,e))));break;case 19:$t(l,t),Wt(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,xu(t,a)));break;case 30:break;case 21:break;default:$t(l,t),Wt(t)}}function Wt(t){var l=t.flags;if(l&2){try{for(var e,a=t.return;a!==null;){if(Io(a)){e=a;break}a=a.return}if(e==null)throw Error(o(160));switch(e.tag){case 27:var n=e.stateNode,u=jc(t);gu(t,u,n);break;case 5:var i=e.stateNode;e.flags&32&&(Pe(i,""),e.flags&=-33);var f=jc(t);gu(t,f,i);break;case 3:case 4:var d=e.stateNode.containerInfo,b=jc(t);zc(t,b,d);break;default:throw Error(o(161))}}catch(z){rt(t,t.return,z)}t.flags&=-3}l&4096&&(t.flags&=-4097)}function cr(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var l=t;cr(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),t=t.sibling}}function Kl(t,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)lr(t,l.alternate,l),l=l.sibling}function Ze(t){for(t=t.child;t!==null;){var l=t;switch(l.tag){case 0:case 11:case 14:case 15:fe(4,l,l.return),Ze(l);break;case 1:Dl(l,l.return);var e=l.stateNode;typeof e.componentWillUnmount=="function"&&Wo(l,l.return,e),Ze(l);break;case 27:xn(l.stateNode);case 26:case 5:Dl(l,l.return),Ze(l);break;case 22:l.memoizedState===null&&Ze(l);break;case 30:Ze(l);break;default:Ze(l)}t=t.sibling}}function Jl(t,l,e){for(e=e&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var a=l.alternate,n=t,u=l,i=u.flags;switch(u.tag){case 0:case 11:case 15:Jl(n,u,e),cn(4,u);break;case 1:if(Jl(n,u,e),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(b){rt(a,a.return,b)}if(a=u,n=a.updateQueue,n!==null){var f=a.stateNode;try{var d=n.shared.hiddenCallbacks;if(d!==null)for(n.shared.hiddenCallbacks=null,n=0;n<d.length;n++)Rf(d[n],f)}catch(b){rt(a,a.return,b)}}e&&i&64&&$o(u),sn(u,u.return);break;case 27:Po(u);case 26:case 5:Jl(n,u,e),e&&a===null&&i&4&&Fo(u),sn(u,u.return);break;case 12:Jl(n,u,e);break;case 31:Jl(n,u,e),e&&i&4&&nr(n,u);break;case 13:Jl(n,u,e),e&&i&4&&ur(n,u);break;case 22:u.memoizedState===null&&Jl(n,u,e),sn(u,u.return);break;case 30:break;default:Jl(n,u,e)}l=l.sibling}}function Ac(t,l){var e=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),t=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(t=l.memoizedState.cachePool.pool),t!==e&&(t!=null&&t.refCount++,e!=null&&Ja(e))}function Ec(t,l){t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Ja(t))}function Tl(t,l,e,a){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)sr(t,l,e,a),l=l.sibling}function sr(t,l,e,a){var n=l.flags;switch(l.tag){case 0:case 11:case 15:Tl(t,l,e,a),n&2048&&cn(9,l);break;case 1:Tl(t,l,e,a);break;case 3:Tl(t,l,e,a),n&2048&&(t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&Ja(t)));break;case 12:if(n&2048){Tl(t,l,e,a),t=l.stateNode;try{var u=l.memoizedProps,i=u.id,f=u.onPostCommit;typeof f=="function"&&f(i,l.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(d){rt(l,l.return,d)}}else Tl(t,l,e,a);break;case 31:Tl(t,l,e,a);break;case 13:Tl(t,l,e,a);break;case 23:break;case 22:u=l.stateNode,i=l.alternate,l.memoizedState!==null?u._visibility&2?Tl(t,l,e,a):fn(t,l):u._visibility&2?Tl(t,l,e,a):(u._visibility|=2,va(t,l,e,a,(l.subtreeFlags&10256)!==0||!1)),n&2048&&Ac(i,l);break;case 24:Tl(t,l,e,a),n&2048&&Ec(l.alternate,l);break;default:Tl(t,l,e,a)}}function va(t,l,e,a,n){for(n=n&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var u=t,i=l,f=e,d=a,b=i.flags;switch(i.tag){case 0:case 11:case 15:va(u,i,f,d,n),cn(8,i);break;case 23:break;case 22:var z=i.stateNode;i.memoizedState!==null?z._visibility&2?va(u,i,f,d,n):fn(u,i):(z._visibility|=2,va(u,i,f,d,n)),n&&b&2048&&Ac(i.alternate,i);break;case 24:va(u,i,f,d,n),n&&b&2048&&Ec(i.alternate,i);break;default:va(u,i,f,d,n)}l=l.sibling}}function fn(t,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var e=t,a=l,n=a.flags;switch(a.tag){case 22:fn(e,a),n&2048&&Ac(a.alternate,a);break;case 24:fn(e,a),n&2048&&Ec(a.alternate,a);break;default:fn(e,a)}l=l.sibling}}var on=8192;function ba(t,l,e){if(t.subtreeFlags&on)for(t=t.child;t!==null;)fr(t,l,e),t=t.sibling}function fr(t,l,e){switch(t.tag){case 26:ba(t,l,e),t.flags&on&&t.memoizedState!==null&&d0(e,zl,t.memoizedState,t.memoizedProps);break;case 5:ba(t,l,e);break;case 3:case 4:var a=zl;zl=_u(t.stateNode.containerInfo),ba(t,l,e),zl=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=on,on=16777216,ba(t,l,e),on=a):ba(t,l,e));break;default:ba(t,l,e)}}function or(t){var l=t.alternate;if(l!==null&&(t=l.child,t!==null)){l.child=null;do l=t.sibling,t.sibling=null,t=l;while(t!==null)}}function rn(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var e=0;e<l.length;e++){var a=l[e];Ht=a,dr(a,t)}or(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)rr(t),t=t.sibling}function rr(t){switch(t.tag){case 0:case 11:case 15:rn(t),t.flags&2048&&fe(9,t,t.return);break;case 3:rn(t);break;case 12:rn(t);break;case 22:var l=t.stateNode;t.memoizedState!==null&&l._visibility&2&&(t.return===null||t.return.tag!==13)?(l._visibility&=-3,yu(t)):rn(t);break;default:rn(t)}}function yu(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var e=0;e<l.length;e++){var a=l[e];Ht=a,dr(a,t)}or(t)}for(t=t.child;t!==null;){switch(l=t,l.tag){case 0:case 11:case 15:fe(8,l,l.return),yu(l);break;case 22:e=l.stateNode,e._visibility&2&&(e._visibility&=-3,yu(l));break;default:yu(l)}t=t.sibling}}function dr(t,l){for(;Ht!==null;){var e=Ht;switch(e.tag){case 0:case 11:case 15:fe(8,e,l);break;case 23:case 22:if(e.memoizedState!==null&&e.memoizedState.cachePool!==null){var a=e.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ja(e.memoizedState.cache)}if(a=e.child,a!==null)a.return=e,Ht=a;else t:for(e=t;Ht!==null;){a=Ht;var n=a.sibling,u=a.return;if(er(a),a===e){Ht=null;break t}if(n!==null){n.return=u,Ht=n;break t}Ht=u}}}var Eh={getCacheForType:function(t){var l=Yt(Mt),e=l.data.get(t);return e===void 0&&(e=t(),l.data.set(t,e)),e},cacheSignal:function(){return Yt(Mt).controller.signal}},Mh=typeof WeakMap=="function"?WeakMap:Map,st=0,xt=null,tt=null,et=0,ot=0,il=null,oe=!1,Sa=!1,Mc=!1,kl=0,zt=0,re=0,we=0,Oc=0,cl=0,Na=0,dn=null,Ft=null,Dc=!1,vu=0,mr=0,bu=1/0,Su=null,de=null,Ut=0,me=null,ja=null,$l=0,_c=0,Uc=null,hr=null,mn=0,Cc=null;function sl(){return(st&2)!==0&&et!==0?et&-et:M.T!==null?Gc():Ms()}function pr(){if(cl===0)if((et&536870912)===0||nt){var t=On;On<<=1,(On&3932160)===0&&(On=262144),cl=t}else cl=536870912;return t=nl.current,t!==null&&(t.flags|=32),cl}function It(t,l,e){(t===xt&&(ot===2||ot===9)||t.cancelPendingCommit!==null)&&(za(t,0),he(t,et,cl,!1)),Ca(t,e),((st&2)===0||t!==xt)&&(t===xt&&((st&2)===0&&(we|=e),zt===4&&he(t,et,cl,!1)),_l(t))}function gr(t,l,e){if((st&6)!==0)throw Error(o(327));var a=!e&&(l&127)===0&&(l&t.expiredLanes)===0||Ua(t,l),n=a?_h(t,l):Bc(t,l,!0),u=a;do{if(n===0){Sa&&!a&&he(t,l,0,!1);break}else{if(e=t.current.alternate,u&&!Oh(e)){n=Bc(t,l,!1),u=!1;continue}if(n===2){if(u=l,t.errorRecoveryDisabledLanes&u)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){l=i;t:{var f=t;n=dn;var d=f.current.memoizedState.isDehydrated;if(d&&(za(f,i).flags|=256),i=Bc(f,i,!1),i!==2){if(Mc&&!d){f.errorRecoveryDisabledLanes|=u,we|=u,n=4;break t}u=Ft,Ft=n,u!==null&&(Ft===null?Ft=u:Ft.push.apply(Ft,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){za(t,0),he(t,l,0,!0);break}t:{switch(a=t,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((l&4194048)!==l)break;case 6:he(a,l,cl,!oe);break t;case 2:Ft=null;break;case 3:case 5:break;default:throw Error(o(329))}if((l&62914560)===l&&(n=vu+300-Pt(),10<n)){if(he(a,l,cl,!oe),_n(a,0,!0)!==0)break t;$l=l,a.timeoutHandle=Jr(xr.bind(null,a,e,Ft,Su,Dc,l,cl,we,Na,oe,u,"Throttled",-0,0),n);break t}xr(a,e,Ft,Su,Dc,l,cl,we,Na,oe,u,null,-0,0)}}break}while(!0);_l(t)}function xr(t,l,e,a,n,u,i,f,d,b,z,D,S,N){if(t.timeoutHandle=-1,D=l.subtreeFlags,D&8192||(D&16785408)===16785408){D={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Hl},fr(l,u,D);var q=(u&62914560)===u?vu-Pt():(u&4194048)===u?mr-Pt():0;if(q=m0(D,q),q!==null){$l=u,t.cancelPendingCommit=q(Tr.bind(null,t,l,u,e,a,n,i,f,d,z,D,null,S,N)),he(t,u,i,!b);return}}Tr(t,l,u,e,a,n,i,f,d)}function Oh(t){for(var l=t;;){var e=l.tag;if((e===0||e===11||e===15)&&l.flags&16384&&(e=l.updateQueue,e!==null&&(e=e.stores,e!==null)))for(var a=0;a<e.length;a++){var n=e[a],u=n.getSnapshot;n=n.value;try{if(!el(u(),n))return!1}catch{return!1}}if(e=l.child,l.subtreeFlags&16384&&e!==null)e.return=l,l=e;else{if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function he(t,l,e,a){l&=~Oc,l&=~we,t.suspendedLanes|=l,t.pingedLanes&=~l,a&&(t.warmLanes|=l),a=t.expirationTimes;for(var n=l;0<n;){var u=31-ll(n),i=1<<u;a[u]=-1,n&=~i}e!==0&&Ts(t,e,l)}function Nu(){return(st&6)===0?(hn(0),!1):!0}function Hc(){if(tt!==null){if(ot===0)var t=tt.return;else t=tt,Yl=Be=null,Wi(t),ha=null,$a=0,t=tt;for(;t!==null;)ko(t.alternate,t),t=t.return;tt=null}}function za(t,l){var e=t.timeoutHandle;e!==-1&&(t.timeoutHandle=-1,$h(e)),e=t.cancelPendingCommit,e!==null&&(t.cancelPendingCommit=null,e()),$l=0,Hc(),xt=t,tt=e=ql(t.current,null),et=l,ot=0,il=null,oe=!1,Sa=Ua(t,l),Mc=!1,Na=cl=Oc=we=re=zt=0,Ft=dn=null,Dc=!1,(l&8)!==0&&(l|=l&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=l;0<a;){var n=31-ll(a),u=1<<n;l|=t[n],a&=~u}return kl=l,Zn(),e}function yr(t,l){k=null,M.H=an,l===ma||l===Fn?(l=Cf(),ot=3):l===Yi?(l=Cf(),ot=4):ot=l===dc?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,il=l,tt===null&&(zt=1,ru(t,pl(l,t.current)))}function vr(){var t=nl.current;return t===null?!0:(et&4194048)===et?vl===null:(et&62914560)===et||(et&536870912)!==0?t===vl:!1}function br(){var t=M.H;return M.H=an,t===null?an:t}function Sr(){var t=M.A;return M.A=Eh,t}function ju(){zt=4,oe||(et&4194048)!==et&&nl.current!==null||(Sa=!0),(re&134217727)===0&&(we&134217727)===0||xt===null||he(xt,et,cl,!1)}function Bc(t,l,e){var a=st;st|=2;var n=br(),u=Sr();(xt!==t||et!==l)&&(Su=null,za(t,l)),l=!1;var i=zt;t:do try{if(ot!==0&&tt!==null){var f=tt,d=il;switch(ot){case 8:Hc(),i=6;break t;case 3:case 2:case 9:case 6:nl.current===null&&(l=!0);var b=ot;if(ot=0,il=null,Ta(t,f,d,b),e&&Sa){i=0;break t}break;default:b=ot,ot=0,il=null,Ta(t,f,d,b)}}Dh(),i=zt;break}catch(z){yr(t,z)}while(!0);return l&&t.shellSuspendCounter++,Yl=Be=null,st=a,M.H=n,M.A=u,tt===null&&(xt=null,et=0,Zn()),i}function Dh(){for(;tt!==null;)Nr(tt)}function _h(t,l){var e=st;st|=2;var a=br(),n=Sr();xt!==t||et!==l?(Su=null,bu=Pt()+500,za(t,l)):Sa=Ua(t,l);t:do try{if(ot!==0&&tt!==null){l=tt;var u=il;l:switch(ot){case 1:ot=0,il=null,Ta(t,l,u,1);break;case 2:case 9:if(_f(u)){ot=0,il=null,jr(l);break}l=function(){ot!==2&&ot!==9||xt!==t||(ot=7),_l(t)},u.then(l,l);break t;case 3:ot=7;break t;case 4:ot=5;break t;case 7:_f(u)?(ot=0,il=null,jr(l)):(ot=0,il=null,Ta(t,l,u,7));break;case 5:var i=null;switch(tt.tag){case 26:i=tt.memoizedState;case 5:case 27:var f=tt;if(i?sd(i):f.stateNode.complete){ot=0,il=null;var d=f.sibling;if(d!==null)tt=d;else{var b=f.return;b!==null?(tt=b,zu(b)):tt=null}break l}}ot=0,il=null,Ta(t,l,u,5);break;case 6:ot=0,il=null,Ta(t,l,u,6);break;case 8:Hc(),zt=6;break t;default:throw Error(o(462))}}Uh();break}catch(z){yr(t,z)}while(!0);return Yl=Be=null,M.H=a,M.A=n,st=e,tt!==null?0:(xt=null,et=0,Zn(),zt)}function Uh(){for(;tt!==null&&!lm();)Nr(tt)}function Nr(t){var l=Ko(t.alternate,t,kl);t.memoizedProps=t.pendingProps,l===null?zu(t):tt=l}function jr(t){var l=t,e=l.alternate;switch(l.tag){case 15:case 0:l=Xo(e,l,l.pendingProps,l.type,void 0,et);break;case 11:l=Xo(e,l,l.pendingProps,l.type.render,l.ref,et);break;case 5:Wi(l);default:ko(e,l),l=tt=bf(l,kl),l=Ko(e,l,kl)}t.memoizedProps=t.pendingProps,l===null?zu(t):tt=l}function Ta(t,l,e,a){Yl=Be=null,Wi(l),ha=null,$a=0;var n=l.return;try{if(bh(t,n,l,e,et)){zt=1,ru(t,pl(e,t.current)),tt=null;return}}catch(u){if(n!==null)throw tt=n,u;zt=1,ru(t,pl(e,t.current)),tt=null;return}l.flags&32768?(nt||a===1?t=!0:Sa||(et&536870912)!==0?t=!1:(oe=t=!0,(a===2||a===9||a===3||a===6)&&(a=nl.current,a!==null&&a.tag===13&&(a.flags|=16384))),zr(l,t)):zu(l)}function zu(t){var l=t;do{if((l.flags&32768)!==0){zr(l,oe);return}t=l.return;var e=jh(l.alternate,l,kl);if(e!==null){tt=e;return}if(l=l.sibling,l!==null){tt=l;return}tt=l=t}while(l!==null);zt===0&&(zt=5)}function zr(t,l){do{var e=zh(t.alternate,t);if(e!==null){e.flags&=32767,tt=e;return}if(e=t.return,e!==null&&(e.flags|=32768,e.subtreeFlags=0,e.deletions=null),!l&&(t=t.sibling,t!==null)){tt=t;return}tt=t=e}while(t!==null);zt=6,tt=null}function Tr(t,l,e,a,n,u,i,f,d){t.cancelPendingCommit=null;do Tu();while(Ut!==0);if((st&6)!==0)throw Error(o(327));if(l!==null){if(l===t.current)throw Error(o(177));if(u=l.lanes|l.childLanes,u|=ji,rm(t,e,u,i,f,d),t===xt&&(tt=xt=null,et=0),ja=l,me=t,$l=e,_c=u,Uc=n,hr=a,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,qh(En,function(){return Dr(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||a){a=M.T,M.T=null,n=H.p,H.p=2,i=st,st|=4;try{Th(t,l,e)}finally{st=i,H.p=n,M.T=a}}Ut=1,Ar(),Er(),Mr()}}function Ar(){if(Ut===1){Ut=0;var t=me,l=ja,e=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||e){e=M.T,M.T=null;var a=H.p;H.p=2;var n=st;st|=4;try{ir(l,t);var u=Jc,i=rf(t.containerInfo),f=u.focusedElem,d=u.selectionRange;if(i!==f&&f&&f.ownerDocument&&of(f.ownerDocument.documentElement,f)){if(d!==null&&yi(f)){var b=d.start,z=d.end;if(z===void 0&&(z=b),"selectionStart"in f)f.selectionStart=b,f.selectionEnd=Math.min(z,f.value.length);else{var D=f.ownerDocument||document,S=D&&D.defaultView||window;if(S.getSelection){var N=S.getSelection(),q=f.textContent.length,Z=Math.min(d.start,q),ht=d.end===void 0?Z:Math.min(d.end,q);!N.extend&&Z>ht&&(i=ht,ht=Z,Z=i);var g=ff(f,Z),h=ff(f,ht);if(g&&h&&(N.rangeCount!==1||N.anchorNode!==g.node||N.anchorOffset!==g.offset||N.focusNode!==h.node||N.focusOffset!==h.offset)){var y=D.createRange();y.setStart(g.node,g.offset),N.removeAllRanges(),Z>ht?(N.addRange(y),N.extend(h.node,h.offset)):(y.setEnd(h.node,h.offset),N.addRange(y))}}}}for(D=[],N=f;N=N.parentNode;)N.nodeType===1&&D.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<D.length;f++){var E=D[f];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}Ru=!!Kc,Jc=Kc=null}finally{st=n,H.p=a,M.T=e}}t.current=l,Ut=2}}function Er(){if(Ut===2){Ut=0;var t=me,l=ja,e=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||e){e=M.T,M.T=null;var a=H.p;H.p=2;var n=st;st|=4;try{lr(t,l.alternate,l)}finally{st=n,H.p=a,M.T=e}}Ut=3}}function Mr(){if(Ut===4||Ut===3){Ut=0,em();var t=me,l=ja,e=$l,a=hr;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Ut=5:(Ut=0,ja=me=null,Or(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(de=null),Pu(e),l=l.stateNode,tl&&typeof tl.onCommitFiberRoot=="function")try{tl.onCommitFiberRoot(_a,l,void 0,(l.current.flags&128)===128)}catch{}if(a!==null){l=M.T,n=H.p,H.p=2,M.T=null;try{for(var u=t.onRecoverableError,i=0;i<a.length;i++){var f=a[i];u(f.value,{componentStack:f.stack})}}finally{M.T=l,H.p=n}}($l&3)!==0&&Tu(),_l(t),n=t.pendingLanes,(e&261930)!==0&&(n&42)!==0?t===Cc?mn++:(mn=0,Cc=t):mn=0,hn(0)}}function Or(t,l){(t.pooledCacheLanes&=l)===0&&(l=t.pooledCache,l!=null&&(t.pooledCache=null,Ja(l)))}function Tu(){return Ar(),Er(),Mr(),Dr()}function Dr(){if(Ut!==5)return!1;var t=me,l=_c;_c=0;var e=Pu($l),a=M.T,n=H.p;try{H.p=32>e?32:e,M.T=null,e=Uc,Uc=null;var u=me,i=$l;if(Ut=0,ja=me=null,$l=0,(st&6)!==0)throw Error(o(331));var f=st;if(st|=4,rr(u.current),sr(u,u.current,i,e),st=f,hn(0,!1),tl&&typeof tl.onPostCommitFiberRoot=="function")try{tl.onPostCommitFiberRoot(_a,u)}catch{}return!0}finally{H.p=n,M.T=a,Or(t,l)}}function _r(t,l,e){l=pl(e,l),l=rc(t.stateNode,l,2),t=ie(t,l,2),t!==null&&(Ca(t,2),_l(t))}function rt(t,l,e){if(t.tag===3)_r(t,t,e);else for(;l!==null;){if(l.tag===3){_r(l,t,e);break}else if(l.tag===1){var a=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(de===null||!de.has(a))){t=pl(e,t),e=Uo(2),a=ie(l,e,2),a!==null&&(Co(e,a,l,t),Ca(a,2),_l(a));break}}l=l.return}}function qc(t,l,e){var a=t.pingCache;if(a===null){a=t.pingCache=new Mh;var n=new Set;a.set(l,n)}else n=a.get(l),n===void 0&&(n=new Set,a.set(l,n));n.has(e)||(Mc=!0,n.add(e),t=Ch.bind(null,t,l,e),l.then(t,t))}function Ch(t,l,e){var a=t.pingCache;a!==null&&a.delete(l),t.pingedLanes|=t.suspendedLanes&e,t.warmLanes&=~e,xt===t&&(et&e)===e&&(zt===4||zt===3&&(et&62914560)===et&&300>Pt()-vu?(st&2)===0&&za(t,0):Oc|=e,Na===et&&(Na=0)),_l(t)}function Ur(t,l){l===0&&(l=zs()),t=Ue(t,l),t!==null&&(Ca(t,l),_l(t))}function Hh(t){var l=t.memoizedState,e=0;l!==null&&(e=l.retryLane),Ur(t,e)}function Bh(t,l){var e=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(e=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(l),Ur(t,e)}function qh(t,l){return $u(t,l)}var Au=null,Aa=null,Rc=!1,Eu=!1,Yc=!1,pe=0;function _l(t){t!==Aa&&t.next===null&&(Aa===null?Au=Aa=t:Aa=Aa.next=t),Eu=!0,Rc||(Rc=!0,Yh())}function hn(t,l){if(!Yc&&Eu){Yc=!0;do for(var e=!1,a=Au;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,f=a.pingedLanes;u=(1<<31-ll(42|t)+1)-1,u&=n&~(i&~f),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(e=!0,qr(a,u))}else u=et,u=_n(a,a===xt?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ua(a,u)||(e=!0,qr(a,u));a=a.next}while(e);Yc=!1}}function Rh(){Cr()}function Cr(){Eu=Rc=!1;var t=0;pe!==0&&kh()&&(t=pe);for(var l=Pt(),e=null,a=Au;a!==null;){var n=a.next,u=Hr(a,l);u===0?(a.next=null,e===null?Au=n:e.next=n,n===null&&(Aa=e)):(e=a,(t!==0||(u&3)!==0)&&(Eu=!0)),a=n}Ut!==0&&Ut!==5||hn(t),pe!==0&&(pe=0)}function Hr(t,l){for(var e=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var i=31-ll(u),f=1<<i,d=n[i];d===-1?((f&e)===0||(f&a)!==0)&&(n[i]=om(f,l)):d<=l&&(t.expiredLanes|=f),u&=~f}if(l=xt,e=et,e=_n(t,t===l?e:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,e===0||t===l&&(ot===2||ot===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Wu(a),t.callbackNode=null,t.callbackPriority=0;if((e&3)===0||Ua(t,e)){if(l=e&-e,l===t.callbackPriority)return l;switch(a!==null&&Wu(a),Pu(e)){case 2:case 8:e=Ns;break;case 32:e=En;break;case 268435456:e=js;break;default:e=En}return a=Br.bind(null,t),e=$u(e,a),t.callbackPriority=l,t.callbackNode=e,l}return a!==null&&a!==null&&Wu(a),t.callbackPriority=2,t.callbackNode=null,2}function Br(t,l){if(Ut!==0&&Ut!==5)return t.callbackNode=null,t.callbackPriority=0,null;var e=t.callbackNode;if(Tu()&&t.callbackNode!==e)return null;var a=et;return a=_n(t,t===xt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(gr(t,a,l),Hr(t,Pt()),t.callbackNode!=null&&t.callbackNode===e?Br.bind(null,t):null)}function qr(t,l){if(Tu())return null;gr(t,l,!0)}function Yh(){Wh(function(){(st&6)!==0?$u(Ss,Rh):Cr()})}function Gc(){if(pe===0){var t=ra;t===0&&(t=Mn,Mn<<=1,(Mn&261888)===0&&(Mn=256)),pe=t}return pe}function Rr(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Bn(""+t)}function Yr(t,l){var e=l.ownerDocument.createElement("input");return e.name=l.name,e.value=l.value,t.id&&e.setAttribute("form",t.id),l.parentNode.insertBefore(e,l),t=new FormData(t),e.parentNode.removeChild(e),t}function Gh(t,l,e,a,n){if(l==="submit"&&e&&e.stateNode===n){var u=Rr((n[Kt]||null).action),i=a.submitter;i&&(l=(l=i[Kt]||null)?Rr(l.formAction):i.getAttribute("formAction"),l!==null&&(u=l,i=null));var f=new Gn("action","action",null,a,n);t.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(pe!==0){var d=i?Yr(n,i):new FormData(n);uc(e,{pending:!0,data:d,method:n.method,action:u},null,d)}}else typeof u=="function"&&(f.preventDefault(),d=i?Yr(n,i):new FormData(n),uc(e,{pending:!0,data:d,method:n.method,action:u},u,d))},currentTarget:n}]})}}for(var Xc=0;Xc<Ni.length;Xc++){var Qc=Ni[Xc],Xh=Qc.toLowerCase(),Qh=Qc[0].toUpperCase()+Qc.slice(1);jl(Xh,"on"+Qh)}jl(hf,"onAnimationEnd"),jl(pf,"onAnimationIteration"),jl(gf,"onAnimationStart"),jl("dblclick","onDoubleClick"),jl("focusin","onFocus"),jl("focusout","onBlur"),jl(ah,"onTransitionRun"),jl(nh,"onTransitionStart"),jl(uh,"onTransitionCancel"),jl(xf,"onTransitionEnd"),Fe("onMouseEnter",["mouseout","mouseover"]),Fe("onMouseLeave",["mouseout","mouseover"]),Fe("onPointerEnter",["pointerout","pointerover"]),Fe("onPointerLeave",["pointerout","pointerover"]),Me("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Me("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Me("onBeforeInput",["compositionend","keypress","textInput","paste"]),Me("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Me("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Me("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pn="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(" "),Lh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pn));function Gr(t,l){l=(l&4)!==0;for(var e=0;e<t.length;e++){var a=t[e],n=a.event;a=a.listeners;t:{var u=void 0;if(l)for(var i=a.length-1;0<=i;i--){var f=a[i],d=f.instance,b=f.currentTarget;if(f=f.listener,d!==u&&n.isPropagationStopped())break t;u=f,n.currentTarget=b;try{u(n)}catch(z){Ln(z)}n.currentTarget=null,u=d}else for(i=0;i<a.length;i++){if(f=a[i],d=f.instance,b=f.currentTarget,f=f.listener,d!==u&&n.isPropagationStopped())break t;u=f,n.currentTarget=b;try{u(n)}catch(z){Ln(z)}n.currentTarget=null,u=d}}}}function lt(t,l){var e=l[ti];e===void 0&&(e=l[ti]=new Set);var a=t+"__bubble";e.has(a)||(Xr(l,t,2,!1),e.add(a))}function Lc(t,l,e){var a=0;l&&(a|=4),Xr(e,t,a,l)}var Mu="_reactListening"+Math.random().toString(36).slice(2);function Zc(t){if(!t[Mu]){t[Mu]=!0,_s.forEach(function(e){e!=="selectionchange"&&(Lh.has(e)||Lc(e,!1,t),Lc(e,!0,t))});var l=t.nodeType===9?t:t.ownerDocument;l===null||l[Mu]||(l[Mu]=!0,Lc("selectionchange",!1,l))}}function Xr(t,l,e,a){switch(pd(l)){case 2:var n=g0;break;case 8:n=x0;break;default:n=ns}e=n.bind(null,l,e,t),n=void 0,!fi||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(l,e,{capture:!0,passive:n}):t.addEventListener(l,e,!0):n!==void 0?t.addEventListener(l,e,{passive:n}):t.addEventListener(l,e,!1)}function wc(t,l,e,a,n){var u=a;if((l&1)===0&&(l&2)===0&&a!==null)t:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var f=a.stateNode.containerInfo;if(f===n)break;if(i===4)for(i=a.return;i!==null;){var d=i.tag;if((d===3||d===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;f!==null;){if(i=ke(f),i===null)return;if(d=i.tag,d===5||d===6||d===26||d===27){a=u=i;continue t}f=f.parentNode}}a=a.return}Zs(function(){var b=u,z=ci(e),D=[];t:{var S=yf.get(t);if(S!==void 0){var N=Gn,q=t;switch(t){case"keypress":if(Rn(e)===0)break t;case"keydown":case"keyup":N=Bm;break;case"focusin":q="focus",N=mi;break;case"focusout":q="blur",N=mi;break;case"beforeblur":case"afterblur":N=mi;break;case"click":if(e.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=Ks;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=jm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=Ym;break;case hf:case pf:case gf:N=Am;break;case xf:N=Xm;break;case"scroll":case"scrollend":N=Sm;break;case"wheel":N=Lm;break;case"copy":case"cut":case"paste":N=Mm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=ks;break;case"toggle":case"beforetoggle":N=wm}var Z=(l&4)!==0,ht=!Z&&(t==="scroll"||t==="scrollend"),g=Z?S!==null?S+"Capture":null:S;Z=[];for(var h=b,y;h!==null;){var E=h;if(y=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||y===null||g===null||(E=qa(h,g),E!=null&&Z.push(gn(h,E,y))),ht)break;h=h.return}0<Z.length&&(S=new N(S,q,null,e,z),D.push({event:S,listeners:Z}))}}if((l&7)===0){t:{if(S=t==="mouseover"||t==="pointerover",N=t==="mouseout"||t==="pointerout",S&&e!==ii&&(q=e.relatedTarget||e.fromElement)&&(ke(q)||q[Je]))break t;if((N||S)&&(S=z.window===z?z:(S=z.ownerDocument)?S.defaultView||S.parentWindow:window,N?(q=e.relatedTarget||e.toElement,N=b,q=q?ke(q):null,q!==null&&(ht=v(q),Z=q.tag,q!==ht||Z!==5&&Z!==27&&Z!==6)&&(q=null)):(N=null,q=b),N!==q)){if(Z=Ks,E="onMouseLeave",g="onMouseEnter",h="mouse",(t==="pointerout"||t==="pointerover")&&(Z=ks,E="onPointerLeave",g="onPointerEnter",h="pointer"),ht=N==null?S:Ba(N),y=q==null?S:Ba(q),S=new Z(E,h+"leave",N,e,z),S.target=ht,S.relatedTarget=y,E=null,ke(z)===b&&(Z=new Z(g,h+"enter",q,e,z),Z.target=y,Z.relatedTarget=ht,E=Z),ht=E,N&&q)l:{for(Z=Zh,g=N,h=q,y=0,E=g;E;E=Z(E))y++;E=0;for(var L=h;L;L=Z(L))E++;for(;0<y-E;)g=Z(g),y--;for(;0<E-y;)h=Z(h),E--;for(;y--;){if(g===h||h!==null&&g===h.alternate){Z=g;break l}g=Z(g),h=Z(h)}Z=null}else Z=null;N!==null&&Qr(D,S,N,Z,!1),q!==null&&ht!==null&&Qr(D,ht,q,Z,!0)}}t:{if(S=b?Ba(b):window,N=S.nodeName&&S.nodeName.toLowerCase(),N==="select"||N==="input"&&S.type==="file")var ut=ef;else if(tf(S))if(af)ut=th;else{ut=Im;var Y=Fm}else N=S.nodeName,!N||N.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?b&&ui(b.elementType)&&(ut=ef):ut=Pm;if(ut&&(ut=ut(t,b))){lf(D,ut,e,z);break t}Y&&Y(t,S,b),t==="focusout"&&b&&S.type==="number"&&b.memoizedProps.value!=null&&ni(S,"number",S.value)}switch(Y=b?Ba(b):window,t){case"focusin":(tf(Y)||Y.contentEditable==="true")&&(aa=Y,vi=b,wa=null);break;case"focusout":wa=vi=aa=null;break;case"mousedown":bi=!0;break;case"contextmenu":case"mouseup":case"dragend":bi=!1,df(D,e,z);break;case"selectionchange":if(eh)break;case"keydown":case"keyup":df(D,e,z)}var $;if(pi)t:{switch(t){case"compositionstart":var at="onCompositionStart";break t;case"compositionend":at="onCompositionEnd";break t;case"compositionupdate":at="onCompositionUpdate";break t}at=void 0}else ea?Is(t,e)&&(at="onCompositionEnd"):t==="keydown"&&e.keyCode===229&&(at="onCompositionStart");at&&($s&&e.locale!=="ko"&&(ea||at!=="onCompositionStart"?at==="onCompositionEnd"&&ea&&($=ws()):(Pl=z,oi="value"in Pl?Pl.value:Pl.textContent,ea=!0)),Y=Ou(b,at),0<Y.length&&(at=new Js(at,t,null,e,z),D.push({event:at,listeners:Y}),$?at.data=$:($=Ps(e),$!==null&&(at.data=$)))),($=Km?Jm(t,e):km(t,e))&&(at=Ou(b,"onBeforeInput"),0<at.length&&(Y=new Js("onBeforeInput","beforeinput",null,e,z),D.push({event:Y,listeners:at}),Y.data=$)),Gh(D,t,b,e,z)}Gr(D,l)})}function gn(t,l,e){return{instance:t,listener:l,currentTarget:e}}function Ou(t,l){for(var e=l+"Capture",a=[];t!==null;){var n=t,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=qa(t,e),n!=null&&a.unshift(gn(t,n,u)),n=qa(t,l),n!=null&&a.push(gn(t,n,u))),t.tag===3)return a;t=t.return}return[]}function Zh(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Qr(t,l,e,a,n){for(var u=l._reactName,i=[];e!==null&&e!==a;){var f=e,d=f.alternate,b=f.stateNode;if(f=f.tag,d!==null&&d===a)break;f!==5&&f!==26&&f!==27||b===null||(d=b,n?(b=qa(e,u),b!=null&&i.unshift(gn(e,b,d))):n||(b=qa(e,u),b!=null&&i.push(gn(e,b,d)))),e=e.return}i.length!==0&&t.push({event:l,listeners:i})}var wh=/\r\n?/g,Vh=/\u0000|\uFFFD/g;function Lr(t){return(typeof t=="string"?t:""+t).replace(wh,`
|
|
33
|
-
`).replace(Vh,"")}function Zr(t,l){return l=Lr(l),Lr(t)===l}function mt(t,l,e,a,n,u){switch(e){case"children":typeof a=="string"?l==="body"||l==="textarea"&&a===""||Pe(t,a):(typeof a=="number"||typeof a=="bigint")&&l!=="body"&&Pe(t,""+a);break;case"className":Cn(t,"class",a);break;case"tabIndex":Cn(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Cn(t,e,a);break;case"style":Qs(t,a,u);break;case"data":if(l!=="object"){Cn(t,"data",a);break}case"src":case"href":if(a===""&&(l!=="a"||e!=="href")){t.removeAttribute(e);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(e);break}a=Bn(""+a),t.setAttribute(e,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(e,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(e==="formAction"?(l!=="input"&&mt(t,l,"name",n.name,n,null),mt(t,l,"formEncType",n.formEncType,n,null),mt(t,l,"formMethod",n.formMethod,n,null),mt(t,l,"formTarget",n.formTarget,n,null)):(mt(t,l,"encType",n.encType,n,null),mt(t,l,"method",n.method,n,null),mt(t,l,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(e);break}a=Bn(""+a),t.setAttribute(e,a);break;case"onClick":a!=null&&(t.onclick=Hl);break;case"onScroll":a!=null&<("scroll",t);break;case"onScrollEnd":a!=null&<("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=e}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}e=Bn(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(e,""+a):t.removeAttribute(e);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(e,""):t.removeAttribute(e);break;case"capture":case"download":a===!0?t.setAttribute(e,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(e,a):t.removeAttribute(e);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(e,a):t.removeAttribute(e);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(e):t.setAttribute(e,a);break;case"popover":lt("beforetoggle",t),lt("toggle",t),Un(t,"popover",a);break;case"xlinkActuate":Cl(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Cl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Cl(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Cl(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Cl(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Cl(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Cl(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Cl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Cl(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Un(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(e=vm.get(e)||e,Un(t,e,a))}}function Vc(t,l,e,a,n,u){switch(e){case"style":Qs(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(e=a.__html,e!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=e}}break;case"children":typeof a=="string"?Pe(t,a):(typeof a=="number"||typeof a=="bigint")&&Pe(t,""+a);break;case"onScroll":a!=null&<("scroll",t);break;case"onScrollEnd":a!=null&<("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Hl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Us.hasOwnProperty(e))t:{if(e[0]==="o"&&e[1]==="n"&&(n=e.endsWith("Capture"),l=e.slice(2,n?e.length-7:void 0),u=t[Kt]||null,u=u!=null?u[e]:null,typeof u=="function"&&t.removeEventListener(l,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(e in t?t[e]=null:t.hasAttribute(e)&&t.removeAttribute(e)),t.addEventListener(l,a,n);break t}e in t?t[e]=a:a===!0?t.setAttribute(e,""):Un(t,e,a)}}}function Xt(t,l,e){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":lt("error",t),lt("load",t);var a=!1,n=!1,u;for(u in e)if(e.hasOwnProperty(u)){var i=e[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,l));default:mt(t,l,u,i,e,null)}}n&&mt(t,l,"srcSet",e.srcSet,e,null),a&&mt(t,l,"src",e.src,e,null);return;case"input":lt("invalid",t);var f=u=i=n=null,d=null,b=null;for(a in e)if(e.hasOwnProperty(a)){var z=e[a];if(z!=null)switch(a){case"name":n=z;break;case"type":i=z;break;case"checked":d=z;break;case"defaultChecked":b=z;break;case"value":u=z;break;case"defaultValue":f=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,l));break;default:mt(t,l,a,z,e,null)}}Rs(t,u,f,d,b,i,n,!1);return;case"select":lt("invalid",t),a=i=u=null;for(n in e)if(e.hasOwnProperty(n)&&(f=e[n],f!=null))switch(n){case"value":u=f;break;case"defaultValue":i=f;break;case"multiple":a=f;default:mt(t,l,n,f,e,null)}l=u,e=i,t.multiple=!!a,l!=null?Ie(t,!!a,l,!1):e!=null&&Ie(t,!!a,e,!0);return;case"textarea":lt("invalid",t),u=n=a=null;for(i in e)if(e.hasOwnProperty(i)&&(f=e[i],f!=null))switch(i){case"value":a=f;break;case"defaultValue":n=f;break;case"children":u=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(o(91));break;default:mt(t,l,i,f,e,null)}Gs(t,a,n,u);return;case"option":for(d in e)if(e.hasOwnProperty(d)&&(a=e[d],a!=null))switch(d){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:mt(t,l,d,a,e,null)}return;case"dialog":lt("beforetoggle",t),lt("toggle",t),lt("cancel",t),lt("close",t);break;case"iframe":case"object":lt("load",t);break;case"video":case"audio":for(a=0;a<pn.length;a++)lt(pn[a],t);break;case"image":lt("error",t),lt("load",t);break;case"details":lt("toggle",t);break;case"embed":case"source":case"link":lt("error",t),lt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(b in e)if(e.hasOwnProperty(b)&&(a=e[b],a!=null))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,l));default:mt(t,l,b,a,e,null)}return;default:if(ui(l)){for(z in e)e.hasOwnProperty(z)&&(a=e[z],a!==void 0&&Vc(t,l,z,a,e,void 0));return}}for(f in e)e.hasOwnProperty(f)&&(a=e[f],a!=null&&mt(t,l,f,a,e,null))}function Kh(t,l,e,a){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,f=null,d=null,b=null,z=null;for(N in e){var D=e[N];if(e.hasOwnProperty(N)&&D!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":d=D;default:a.hasOwnProperty(N)||mt(t,l,N,null,a,D)}}for(var S in a){var N=a[S];if(D=e[S],a.hasOwnProperty(S)&&(N!=null||D!=null))switch(S){case"type":u=N;break;case"name":n=N;break;case"checked":b=N;break;case"defaultChecked":z=N;break;case"value":i=N;break;case"defaultValue":f=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(o(137,l));break;default:N!==D&&mt(t,l,S,N,a,D)}}ai(t,i,f,d,b,z,u,n);return;case"select":N=i=f=S=null;for(u in e)if(d=e[u],e.hasOwnProperty(u)&&d!=null)switch(u){case"value":break;case"multiple":N=d;default:a.hasOwnProperty(u)||mt(t,l,u,null,a,d)}for(n in a)if(u=a[n],d=e[n],a.hasOwnProperty(n)&&(u!=null||d!=null))switch(n){case"value":S=u;break;case"defaultValue":f=u;break;case"multiple":i=u;default:u!==d&&mt(t,l,n,u,a,d)}l=f,e=i,a=N,S!=null?Ie(t,!!e,S,!1):!!a!=!!e&&(l!=null?Ie(t,!!e,l,!0):Ie(t,!!e,e?[]:"",!1));return;case"textarea":N=S=null;for(f in e)if(n=e[f],e.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:mt(t,l,f,null,a,n)}for(i in a)if(n=a[i],u=e[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":S=n;break;case"defaultValue":N=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&mt(t,l,i,n,a,u)}Ys(t,S,N);return;case"option":for(var q in e)if(S=e[q],e.hasOwnProperty(q)&&S!=null&&!a.hasOwnProperty(q))switch(q){case"selected":t.selected=!1;break;default:mt(t,l,q,null,a,S)}for(d in a)if(S=a[d],N=e[d],a.hasOwnProperty(d)&&S!==N&&(S!=null||N!=null))switch(d){case"selected":t.selected=S&&typeof S!="function"&&typeof S!="symbol";break;default:mt(t,l,d,S,a,N)}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 Z in e)S=e[Z],e.hasOwnProperty(Z)&&S!=null&&!a.hasOwnProperty(Z)&&mt(t,l,Z,null,a,S);for(b in a)if(S=a[b],N=e[b],a.hasOwnProperty(b)&&S!==N&&(S!=null||N!=null))switch(b){case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(o(137,l));break;default:mt(t,l,b,S,a,N)}return;default:if(ui(l)){for(var ht in e)S=e[ht],e.hasOwnProperty(ht)&&S!==void 0&&!a.hasOwnProperty(ht)&&Vc(t,l,ht,void 0,a,S);for(z in a)S=a[z],N=e[z],!a.hasOwnProperty(z)||S===N||S===void 0&&N===void 0||Vc(t,l,z,S,a,N);return}}for(var g in e)S=e[g],e.hasOwnProperty(g)&&S!=null&&!a.hasOwnProperty(g)&&mt(t,l,g,null,a,S);for(D in a)S=a[D],N=e[D],!a.hasOwnProperty(D)||S===N||S==null&&N==null||mt(t,l,D,S,a,N)}function wr(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jh(){if(typeof performance.getEntriesByType=="function"){for(var t=0,l=0,e=performance.getEntriesByType("resource"),a=0;a<e.length;a++){var n=e[a],u=n.transferSize,i=n.initiatorType,f=n.duration;if(u&&f&&wr(i)){for(i=0,f=n.responseEnd,a+=1;a<e.length;a++){var d=e[a],b=d.startTime;if(b>f)break;var z=d.transferSize,D=d.initiatorType;z&&wr(D)&&(d=d.responseEnd,i+=z*(d<f?1:(f-b)/(d-b)))}if(--a,l+=8*(u+i)/(n.duration/1e3),t++,10<t)break}}if(0<t)return l/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Kc=null,Jc=null;function Du(t){return t.nodeType===9?t:t.ownerDocument}function Vr(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Kr(t,l){if(t===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&l==="foreignObject"?0:t}function kc(t,l){return t==="textarea"||t==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var $c=null;function kh(){var t=window.event;return t&&t.type==="popstate"?t===$c?!1:($c=t,!0):($c=null,!1)}var Jr=typeof setTimeout=="function"?setTimeout:void 0,$h=typeof clearTimeout=="function"?clearTimeout:void 0,kr=typeof Promise=="function"?Promise:void 0,Wh=typeof queueMicrotask=="function"?queueMicrotask:typeof kr<"u"?function(t){return kr.resolve(null).then(t).catch(Fh)}:Jr;function Fh(t){setTimeout(function(){throw t})}function ge(t){return t==="head"}function $r(t,l){var e=l,a=0;do{var n=e.nextSibling;if(t.removeChild(e),n&&n.nodeType===8)if(e=n.data,e==="/$"||e==="/&"){if(a===0){t.removeChild(n),Da(l);return}a--}else if(e==="$"||e==="$?"||e==="$~"||e==="$!"||e==="&")a++;else if(e==="html")xn(t.ownerDocument.documentElement);else if(e==="head"){e=t.ownerDocument.head,xn(e);for(var u=e.firstChild;u;){var i=u.nextSibling,f=u.nodeName;u[Ha]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&u.rel.toLowerCase()==="stylesheet"||e.removeChild(u),u=i}}else e==="body"&&xn(t.ownerDocument.body);e=n}while(e);Da(l)}function Wr(t,l){var e=t;t=0;do{var a=e.nextSibling;if(e.nodeType===1?l?(e._stashedDisplay=e.style.display,e.style.display="none"):(e.style.display=e._stashedDisplay||"",e.getAttribute("style")===""&&e.removeAttribute("style")):e.nodeType===3&&(l?(e._stashedText=e.nodeValue,e.nodeValue=""):e.nodeValue=e._stashedText||""),a&&a.nodeType===8)if(e=a.data,e==="/$"){if(t===0)break;t--}else e!=="$"&&e!=="$?"&&e!=="$~"&&e!=="$!"||t++;e=a}while(e)}function Wc(t){var l=t.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var e=l;switch(l=l.nextSibling,e.nodeName){case"HTML":case"HEAD":case"BODY":Wc(e),li(e);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(e.rel.toLowerCase()==="stylesheet")continue}t.removeChild(e)}}function Ih(t,l,e,a){for(;t.nodeType===1;){var n=e;if(t.nodeName.toLowerCase()!==l.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Ha])switch(l){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(l==="input"&&t.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=bl(t.nextSibling),t===null)break}return null}function Ph(t,l,e){if(l==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=bl(t.nextSibling),t===null))return null;return t}function Fr(t,l){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=bl(t.nextSibling),t===null))return null;return t}function Fc(t){return t.data==="$?"||t.data==="$~"}function Ic(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function t0(t,l){var e=t.ownerDocument;if(t.data==="$~")t._reactRetry=l;else if(t.data!=="$?"||e.readyState!=="loading")l();else{var a=function(){l(),e.removeEventListener("DOMContentLoaded",a)};e.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function bl(t){for(;t!=null;t=t.nextSibling){var l=t.nodeType;if(l===1||l===3)break;if(l===8){if(l=t.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return t}var Pc=null;function Ir(t){t=t.nextSibling;for(var l=0;t;){if(t.nodeType===8){var e=t.data;if(e==="/$"||e==="/&"){if(l===0)return bl(t.nextSibling);l--}else e!=="$"&&e!=="$!"&&e!=="$?"&&e!=="$~"&&e!=="&"||l++}t=t.nextSibling}return null}function Pr(t){t=t.previousSibling;for(var l=0;t;){if(t.nodeType===8){var e=t.data;if(e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"){if(l===0)return t;l--}else e!=="/$"&&e!=="/&"||l++}t=t.previousSibling}return null}function td(t,l,e){switch(l=Du(e),t){case"html":if(t=l.documentElement,!t)throw Error(o(452));return t;case"head":if(t=l.head,!t)throw Error(o(453));return t;case"body":if(t=l.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function xn(t){for(var l=t.attributes;l.length;)t.removeAttributeNode(l[0]);li(t)}var Sl=new Map,ld=new Set;function _u(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Wl=H.d;H.d={f:l0,r:e0,D:a0,C:n0,L:u0,m:i0,X:s0,S:c0,M:f0};function l0(){var t=Wl.f(),l=Nu();return t||l}function e0(t){var l=$e(t);l!==null&&l.tag===5&&l.type==="form"?yo(l):Wl.r(t)}var Ea=typeof document>"u"?null:document;function ed(t,l,e){var a=Ea;if(a&&typeof l=="string"&&l){var n=ml(l);n='link[rel="'+t+'"][href="'+n+'"]',typeof e=="string"&&(n+='[crossorigin="'+e+'"]'),ld.has(n)||(ld.add(n),t={rel:t,crossOrigin:e,href:l},a.querySelector(n)===null&&(l=a.createElement("link"),Xt(l,"link",t),Ct(l),a.head.appendChild(l)))}}function a0(t){Wl.D(t),ed("dns-prefetch",t,null)}function n0(t,l){Wl.C(t,l),ed("preconnect",t,l)}function u0(t,l,e){Wl.L(t,l,e);var a=Ea;if(a&&t&&l){var n='link[rel="preload"][as="'+ml(l)+'"]';l==="image"&&e&&e.imageSrcSet?(n+='[imagesrcset="'+ml(e.imageSrcSet)+'"]',typeof e.imageSizes=="string"&&(n+='[imagesizes="'+ml(e.imageSizes)+'"]')):n+='[href="'+ml(t)+'"]';var u=n;switch(l){case"style":u=Ma(t);break;case"script":u=Oa(t)}Sl.has(u)||(t=O({rel:"preload",href:l==="image"&&e&&e.imageSrcSet?void 0:t,as:l},e),Sl.set(u,t),a.querySelector(n)!==null||l==="style"&&a.querySelector(yn(u))||l==="script"&&a.querySelector(vn(u))||(l=a.createElement("link"),Xt(l,"link",t),Ct(l),a.head.appendChild(l)))}}function i0(t,l){Wl.m(t,l);var e=Ea;if(e&&t){var a=l&&typeof l.as=="string"?l.as:"script",n='link[rel="modulepreload"][as="'+ml(a)+'"][href="'+ml(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Oa(t)}if(!Sl.has(u)&&(t=O({rel:"modulepreload",href:t},l),Sl.set(u,t),e.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(e.querySelector(vn(u)))return}a=e.createElement("link"),Xt(a,"link",t),Ct(a),e.head.appendChild(a)}}}function c0(t,l,e){Wl.S(t,l,e);var a=Ea;if(a&&t){var n=We(a).hoistableStyles,u=Ma(t);l=l||"default";var i=n.get(u);if(!i){var f={loading:0,preload:null};if(i=a.querySelector(yn(u)))f.loading=5;else{t=O({rel:"stylesheet",href:t,"data-precedence":l},e),(e=Sl.get(u))&&ts(t,e);var d=i=a.createElement("link");Ct(d),Xt(d,"link",t),d._p=new Promise(function(b,z){d.onload=b,d.onerror=z}),d.addEventListener("load",function(){f.loading|=1}),d.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Uu(i,l,a)}i={type:"stylesheet",instance:i,count:1,state:f},n.set(u,i)}}}function s0(t,l){Wl.X(t,l);var e=Ea;if(e&&t){var a=We(e).hoistableScripts,n=Oa(t),u=a.get(n);u||(u=e.querySelector(vn(n)),u||(t=O({src:t,async:!0},l),(l=Sl.get(n))&&ls(t,l),u=e.createElement("script"),Ct(u),Xt(u,"link",t),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function f0(t,l){Wl.M(t,l);var e=Ea;if(e&&t){var a=We(e).hoistableScripts,n=Oa(t),u=a.get(n);u||(u=e.querySelector(vn(n)),u||(t=O({src:t,async:!0,type:"module"},l),(l=Sl.get(n))&&ls(t,l),u=e.createElement("script"),Ct(u),Xt(u,"link",t),e.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function ad(t,l,e,a){var n=(n=Al.current)?_u(n):null;if(!n)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof e.precedence=="string"&&typeof e.href=="string"?(l=Ma(e.href),e=We(n).hoistableStyles,a=e.get(l),a||(a={type:"style",instance:null,count:0,state:null},e.set(l,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(e.rel==="stylesheet"&&typeof e.href=="string"&&typeof e.precedence=="string"){t=Ma(e.href);var u=We(n).hoistableStyles,i=u.get(t);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,i),(u=n.querySelector(yn(t)))&&!u._p&&(i.instance=u,i.state.loading=5),Sl.has(t)||(e={rel:"preload",as:"style",href:e.href,crossOrigin:e.crossOrigin,integrity:e.integrity,media:e.media,hrefLang:e.hrefLang,referrerPolicy:e.referrerPolicy},Sl.set(t,e),u||o0(n,t,e,i.state))),l&&a===null)throw Error(o(528,""));return i}if(l&&a!==null)throw Error(o(529,""));return null;case"script":return l=e.async,e=e.src,typeof e=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Oa(e),e=We(n).hoistableScripts,a=e.get(l),a||(a={type:"script",instance:null,count:0,state:null},e.set(l,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Ma(t){return'href="'+ml(t)+'"'}function yn(t){return'link[rel="stylesheet"]['+t+"]"}function nd(t){return O({},t,{"data-precedence":t.precedence,precedence:null})}function o0(t,l,e,a){t.querySelector('link[rel="preload"][as="style"]['+l+"]")?a.loading=1:(l=t.createElement("link"),a.preload=l,l.addEventListener("load",function(){return a.loading|=1}),l.addEventListener("error",function(){return a.loading|=2}),Xt(l,"link",e),Ct(l),t.head.appendChild(l))}function Oa(t){return'[src="'+ml(t)+'"]'}function vn(t){return"script[async]"+t}function ud(t,l,e){if(l.count++,l.instance===null)switch(l.type){case"style":var a=t.querySelector('style[data-href~="'+ml(e.href)+'"]');if(a)return l.instance=a,Ct(a),a;var n=O({},e,{"data-href":e.href,"data-precedence":e.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Ct(a),Xt(a,"style",n),Uu(a,e.precedence,t),l.instance=a;case"stylesheet":n=Ma(e.href);var u=t.querySelector(yn(n));if(u)return l.state.loading|=4,l.instance=u,Ct(u),u;a=nd(e),(n=Sl.get(n))&&ts(a,n),u=(t.ownerDocument||t).createElement("link"),Ct(u);var i=u;return i._p=new Promise(function(f,d){i.onload=f,i.onerror=d}),Xt(u,"link",a),l.state.loading|=4,Uu(u,e.precedence,t),l.instance=u;case"script":return u=Oa(e.src),(n=t.querySelector(vn(u)))?(l.instance=n,Ct(n),n):(a=e,(n=Sl.get(u))&&(a=O({},e),ls(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Ct(n),Xt(n,"link",a),t.head.appendChild(n),l.instance=n);case"void":return null;default:throw Error(o(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(a=l.instance,l.state.loading|=4,Uu(a,e.precedence,t));return l.instance}function Uu(t,l,e){for(var a=e.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var f=a[i];if(f.dataset.precedence===l)u=f;else if(u!==n)break}u?u.parentNode.insertBefore(t,u.nextSibling):(l=e.nodeType===9?e.head:e,l.insertBefore(t,l.firstChild))}function ts(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.title==null&&(t.title=l.title)}function ls(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.integrity==null&&(t.integrity=l.integrity)}var Cu=null;function id(t,l,e){if(Cu===null){var a=new Map,n=Cu=new Map;n.set(e,a)}else n=Cu,a=n.get(e),a||(a=new Map,n.set(e,a));if(a.has(t))return a;for(a.set(t,null),e=e.getElementsByTagName(t),n=0;n<e.length;n++){var u=e[n];if(!(u[Ha]||u[qt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(l)||"";i=t+i;var f=a.get(i);f?f.push(u):a.set(i,[u])}}return a}function cd(t,l,e){t=t.ownerDocument||t,t.head.insertBefore(e,l==="title"?t.querySelector("head > title"):null)}function r0(t,l,e){if(e===1||l.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return t=l.disabled,typeof l.precedence=="string"&&t==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function sd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function d0(t,l,e,a){if(e.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var n=Ma(a.href),u=l.querySelector(yn(n));if(u){l=u._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(t.count++,t=Hu.bind(t),l.then(t,t)),e.state.loading|=4,e.instance=u,Ct(u);return}u=l.ownerDocument||l,a=nd(a),(n=Sl.get(n))&&ts(a,n),u=u.createElement("link"),Ct(u);var i=u;i._p=new Promise(function(f,d){i.onload=f,i.onerror=d}),Xt(u,"link",a),e.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(e,l),(l=e.state.preload)&&(e.state.loading&3)===0&&(t.count++,e=Hu.bind(t),l.addEventListener("load",e),l.addEventListener("error",e))}}var es=0;function m0(t,l){return t.stylesheets&&t.count===0&&qu(t,t.stylesheets),0<t.count||0<t.imgCount?function(e){var a=setTimeout(function(){if(t.stylesheets&&qu(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+l);0<t.imgBytes&&es===0&&(es=62500*Jh());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&qu(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>es?50:800)+l);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Hu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Bu=null;function qu(t,l){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Bu=new Map,l.forEach(h0,t),Bu=null,Hu.call(t))}function h0(t,l){if(!(l.state.loading&4)){var e=Bu.get(t);if(e)var a=e.get(null);else{e=new Map,Bu.set(t,e);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(e.set(i.dataset.precedence,i),a=i)}a&&e.set(null,a)}n=l.instance,i=n.getAttribute("data-precedence"),u=e.get(i)||a,u===a&&e.set(null,n),e.set(i,n),this.count++,a=Hu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),l.state.loading|=4}}var bn={$$typeof:W,Provider:null,Consumer:null,_currentValue:w,_currentValue2:w,_threadCount:0};function p0(t,l,e,a,n,u,i,f,d){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Fu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fu(0),this.hiddenUpdates=Fu(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=d,this.incompleteTransitions=new Map}function fd(t,l,e,a,n,u,i,f,d,b,z,D){return t=new p0(t,l,e,i,d,b,z,D,f),l=1,u===!0&&(l|=24),u=al(3,null,null,l),t.current=u,u.stateNode=t,l=Bi(),l.refCount++,t.pooledCache=l,l.refCount++,u.memoizedState={element:a,isDehydrated:e,cache:l},Gi(u),t}function od(t){return t?(t=ia,t):ia}function rd(t,l,e,a,n,u){n=od(n),a.context===null?a.context=n:a.pendingContext=n,a=ue(l),a.payload={element:e},u=u===void 0?null:u,u!==null&&(a.callback=u),e=ie(t,a,l),e!==null&&(It(e,t,l),Fa(e,t,l))}function dd(t,l){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var e=t.retryLane;t.retryLane=e!==0&&e<l?e:l}}function as(t,l){dd(t,l),(t=t.alternate)&&dd(t,l)}function md(t){if(t.tag===13||t.tag===31){var l=Ue(t,67108864);l!==null&&It(l,t,67108864),as(t,67108864)}}function hd(t){if(t.tag===13||t.tag===31){var l=sl();l=Iu(l);var e=Ue(t,l);e!==null&&It(e,t,l),as(t,l)}}var Ru=!0;function g0(t,l,e,a){var n=M.T;M.T=null;var u=H.p;try{H.p=2,ns(t,l,e,a)}finally{H.p=u,M.T=n}}function x0(t,l,e,a){var n=M.T;M.T=null;var u=H.p;try{H.p=8,ns(t,l,e,a)}finally{H.p=u,M.T=n}}function ns(t,l,e,a){if(Ru){var n=us(a);if(n===null)wc(t,l,a,Yu,e),gd(t,a);else if(v0(n,t,l,e,a))a.stopPropagation();else if(gd(t,a),l&4&&-1<y0.indexOf(t)){for(;n!==null;){var u=$e(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Ee(u.pendingLanes);if(i!==0){var f=u;for(f.pendingLanes|=2,f.entangledLanes|=2;i;){var d=1<<31-ll(i);f.entanglements[1]|=d,i&=~d}_l(u),(st&6)===0&&(bu=Pt()+500,hn(0))}}break;case 31:case 13:f=Ue(u,2),f!==null&&It(f,u,2),Nu(),as(u,2)}if(u=us(a),u===null&&wc(t,l,a,Yu,e),u===n)break;n=u}n!==null&&a.stopPropagation()}else wc(t,l,a,null,e)}}function us(t){return t=ci(t),is(t)}var Yu=null;function is(t){if(Yu=null,t=ke(t),t!==null){var l=v(t);if(l===null)t=null;else{var e=l.tag;if(e===13){if(t=T(l),t!==null)return t;t=null}else if(e===31){if(t=_(l),t!==null)return t;t=null}else if(e===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;t=null}else l!==t&&(t=null)}}return Yu=t,null}function pd(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(am()){case Ss:return 2;case Ns:return 8;case En:case nm:return 32;case js:return 268435456;default:return 32}default:return 32}}var cs=!1,xe=null,ye=null,ve=null,Sn=new Map,Nn=new Map,be=[],y0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function gd(t,l){switch(t){case"focusin":case"focusout":xe=null;break;case"dragenter":case"dragleave":ye=null;break;case"mouseover":case"mouseout":ve=null;break;case"pointerover":case"pointerout":Sn.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nn.delete(l.pointerId)}}function jn(t,l,e,a,n,u){return t===null||t.nativeEvent!==u?(t={blockedOn:l,domEventName:e,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},l!==null&&(l=$e(l),l!==null&&md(l)),t):(t.eventSystemFlags|=a,l=t.targetContainers,n!==null&&l.indexOf(n)===-1&&l.push(n),t)}function v0(t,l,e,a,n){switch(l){case"focusin":return xe=jn(xe,t,l,e,a,n),!0;case"dragenter":return ye=jn(ye,t,l,e,a,n),!0;case"mouseover":return ve=jn(ve,t,l,e,a,n),!0;case"pointerover":var u=n.pointerId;return Sn.set(u,jn(Sn.get(u)||null,t,l,e,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Nn.set(u,jn(Nn.get(u)||null,t,l,e,a,n)),!0}return!1}function xd(t){var l=ke(t.target);if(l!==null){var e=v(l);if(e!==null){if(l=e.tag,l===13){if(l=T(e),l!==null){t.blockedOn=l,Os(t.priority,function(){hd(e)});return}}else if(l===31){if(l=_(e),l!==null){t.blockedOn=l,Os(t.priority,function(){hd(e)});return}}else if(l===3&&e.stateNode.current.memoizedState.isDehydrated){t.blockedOn=e.tag===3?e.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Gu(t){if(t.blockedOn!==null)return!1;for(var l=t.targetContainers;0<l.length;){var e=us(t.nativeEvent);if(e===null){e=t.nativeEvent;var a=new e.constructor(e.type,e);ii=a,e.target.dispatchEvent(a),ii=null}else return l=$e(e),l!==null&&md(l),t.blockedOn=e,!1;l.shift()}return!0}function yd(t,l,e){Gu(t)&&e.delete(l)}function b0(){cs=!1,xe!==null&&Gu(xe)&&(xe=null),ye!==null&&Gu(ye)&&(ye=null),ve!==null&&Gu(ve)&&(ve=null),Sn.forEach(yd),Nn.forEach(yd)}function Xu(t,l){t.blockedOn===l&&(t.blockedOn=null,cs||(cs=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,b0)))}var Qu=null;function vd(t){Qu!==t&&(Qu=t,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Qu===t&&(Qu=null);for(var l=0;l<t.length;l+=3){var e=t[l],a=t[l+1],n=t[l+2];if(typeof a!="function"){if(is(a||e)===null)continue;break}var u=$e(e);u!==null&&(t.splice(l,3),l-=3,uc(u,{pending:!0,data:n,method:e.method,action:a},a,n))}}))}function Da(t){function l(d){return Xu(d,t)}xe!==null&&Xu(xe,t),ye!==null&&Xu(ye,t),ve!==null&&Xu(ve,t),Sn.forEach(l),Nn.forEach(l);for(var e=0;e<be.length;e++){var a=be[e];a.blockedOn===t&&(a.blockedOn=null)}for(;0<be.length&&(e=be[0],e.blockedOn===null);)xd(e),e.blockedOn===null&&be.shift();if(e=(t.ownerDocument||t).$$reactFormReplay,e!=null)for(a=0;a<e.length;a+=3){var n=e[a],u=e[a+1],i=n[Kt]||null;if(typeof u=="function")i||vd(e);else if(i){var f=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[Kt]||null)f=i.formAction;else if(is(n)!==null)continue}else f=i.action;typeof f=="function"?e[a+1]=f:(e.splice(a,3),a-=3),vd(e)}}}function bd(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function l(){n!==null&&(n(),n=null),a||setTimeout(e,20)}function e(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(e,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),n!==null&&(n(),n=null)}}}function ss(t){this._internalRoot=t}Lu.prototype.render=ss.prototype.render=function(t){var l=this._internalRoot;if(l===null)throw Error(o(409));var e=l.current,a=sl();rd(e,a,t,l,null,null)},Lu.prototype.unmount=ss.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var l=t.containerInfo;rd(t.current,2,null,t,null,null),Nu(),l[Je]=null}};function Lu(t){this._internalRoot=t}Lu.prototype.unstable_scheduleHydration=function(t){if(t){var l=Ms();t={blockedOn:null,target:t,priority:l};for(var e=0;e<be.length&&l!==0&&l<be[e].priority;e++);be.splice(e,0,t),e===0&&xd(t)}};var Sd=r.version;if(Sd!=="19.2.7")throw Error(o(527,Sd,"19.2.7"));H.findDOMNode=function(t){var l=t._reactInternals;if(l===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=m(l),t=t!==null?A(t):null,t=t===null?null:t.stateNode,t};var S0={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zu.isDisabled&&Zu.supportsFiber)try{_a=Zu.inject(S0),tl=Zu}catch{}}return zn.createRoot=function(t,l){if(!x(t))throw Error(o(299));var e=!1,a="",n=Mo,u=Oo,i=Do;return l!=null&&(l.unstable_strictMode===!0&&(e=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(n=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(i=l.onRecoverableError)),l=fd(t,1,!1,null,null,e,a,null,n,u,i,bd),t[Je]=l.current,Zc(t),new ss(l)},zn.hydrateRoot=function(t,l,e){if(!x(t))throw Error(o(299));var a=!1,n="",u=Mo,i=Oo,f=Do,d=null;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError),e.formState!==void 0&&(d=e.formState)),l=fd(t,1,!0,l,e??null,a,n,d,u,i,f,bd),l.context=od(null),e=l.current,a=sl(),a=Iu(a),n=ue(a),n.callback=null,ie(e,n,a),e=a,l.current.lanes=e,Ca(l,e),_l(l),t[Je]=l.current,Zc(t),new Lu(l)},zn.version="19.2.7",zn}var Ed;function O0(){if(Ed)return fs.exports;Ed=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(r){console.error(r)}}return s(),fs.exports=M0(),fs.exports}var D0=O0();const ps={status:null,conductorYaml:null,statusPath:".conductor/status.json",conductorPath:null};function _0(){const[s,r]=G.useState({}),[p,o]=G.useState([]),[x,v]=G.useState("connecting");return G.useEffect(()=>{let T=null,_;const j=A=>o(O=>O.includes(A)?O:[...O,A]),m=()=>{T=new EventSource("/events"),T.addEventListener("open",()=>v("live")),T.addEventListener("update",A=>{try{const O=JSON.parse(A.data),C=O.workflow??"workflow";j(C),r(B=>{var X;return{...B,[C]:{snap:O,history:((X=B[C])==null?void 0:X.history)??[]}}}),v("live")}catch{}}),T.addEventListener("history",A=>{try{const O=JSON.parse(A.data);if(Array.isArray(O))return;const C=O.workflow,B=O.runs??[];j(C),r(X=>{var P,K;return{...X,[C]:{snap:((P=X[C])==null?void 0:P.snap)??ps,history:B,ledger:(K=X[C])==null?void 0:K.ledger}}})}catch{}}),T.addEventListener("insights",A=>{try{const O=JSON.parse(A.data),C=O.workflow,B=O.ledger;j(C),r(X=>{var P,K;return{...X,[C]:{snap:((P=X[C])==null?void 0:P.snap)??ps,history:((K=X[C])==null?void 0:K.history)??[],ledger:B}}})}catch{}}),T.addEventListener("error",()=>{v("lost"),T==null||T.close(),clearTimeout(_),_=setTimeout(m,2e3)})};return m(),()=>{T==null||T.close(),clearTimeout(_)}},[]),{workflows:s,order:p,conn:x}}function U0(s){const r=[],p=[];if(!Array.isArray(s))return{soft:r,hard:p};for(const o of s)if(typeof o=="string")r.push(o);else if(o&&typeof o=="object"){const x=o;typeof x.check=="string"?p.push({text:x.check,name:typeof x.name=="string"?x.name:void 0}):r.push(String(o))}return{soft:r,hard:p}}const C0=s=>s.split(`
|
|
34
|
-
`).map(r=>r.trim()).find(r=>r.length>0)??"";function Zd(s,r){var _,j,m,A,O,C;const p=(s.instruction??"").trim(),{soft:o,hard:x}=U0(s.gate),v=s.type==="loop",T=s.type==="approval";return{id:s.id,index:r,instruction:p,firstLine:C0(p),isCondition:s.type==="condition",ifTrue:s.if_true,ifFalse:s.if_false,then:s.then,output:s.output,requires:Array.isArray(s.requires)?s.requires:[],soft:o,hard:x,isLoop:v,over:s.over,as:s.as,parallel:s.parallel===!0,subSteps:v&&Array.isArray(s.steps)?s.steps.filter(B=>B&&B.id).map((B,X)=>Zd(B,X)):void 0,isApproval:T,approval:T?{prompt:(_=s.approval)==null?void 0:_.prompt,items:Array.isArray((j=s.approval)==null?void 0:j.items)?s.approval.items:void 0,approve:(A=(m=s.approval)==null?void 0:m.actions)==null?void 0:A.approve,reject:(C=(O=s.approval)==null?void 0:O.actions)==null?void 0:C.reject}:void 0}}function H0(s){if(!s)return null;let r;try{r=j0.load(s)??{}}catch{return null}const o=(Array.isArray(r.steps)?r.steps:[]).filter(x=>x&&x.id).map((x,v)=>Zd(x,v));return{name:r.name,description:r.description,steps:o}}function B0(s){return Array.isArray(s.heartbeat)?s.heartbeat.filter(r=>r&&typeof r.at=="string"&&typeof r.note=="string").map(r=>({at:r.at,note:r.note,iteration:r.iteration,insight:r.insight&&typeof r.insight.type=="string"?{type:r.insight.type,seed:r.insight.seed??"",step:r.insight.step,confidence:r.insight.confidence}:void 0,finalBeat:r.finalBeat===!0,handoff:r.handoff&&typeof r.handoff=="object"?{to:r.handoff.to,to_iteration:r.handoff.to_iteration,context:r.handoff.context,produced:r.handoff.produced}:void 0})):[]}function q0(s,r){if(!s.isLoop)return;const p=s.subSteps??[],o=r.iterations??{},x=Object.keys(o),v=x.map(T=>{const _=o[T]??{},m=(p.length?p.map(A=>A.id):Object.keys(_)).map(A=>{const O=_[A]??{};return{id:A,status:O.status??"pending",gate:O.gate??"pending",attempt:O.attempt??1}});return{item:T,steps:m,done:m.length>0&&m.every(A=>A.status==="done"),failed:m.some(A=>A.status==="failed")}});return{total:typeof r.total=="number"?r.total:x.length,completed:typeof r.completed=="number"?r.completed:v.filter(T=>T.done).length,currentItem:r.current_item,iterations:v}}function R0(s,r){var v,T,_,j;if(!s.isApproval)return;const p=(v=r.approval)==null?void 0:v.items;let o;Array.isArray(p)&&p.length>0?o=p.map(m=>({label:String((m==null?void 0:m.label)??""),decision:(m==null?void 0:m.decision)==="approved"||(m==null?void 0:m.decision)==="rejected"?m.decision:null})):o=(((T=s.approval)==null?void 0:T.items)??[]).map(m=>({label:m,decision:null}));const x=o.length>0&&o.every(m=>m.decision!==null);return{prompt:((_=r.approval)==null?void 0:_.prompt)??((j=s.approval)==null?void 0:j.prompt),items:o,decided:x}}function Y0(s,r){return s==="failed"||r==="failed"?"failed":s==="done"?"done":s==="awaiting_approval"||r==="checking"?"gate":s==="running"?"running":"pending"}function G0(s,r){const p=[],o=x=>r==null?void 0:r.find(v=>v.criterion===x||v.criterion===x.trim());for(const x of s.soft){const v=o(x);p.push({kind:"soft",text:x,passed:v?!!v.passed:null})}for(const x of s.hard){const v=o(x.text)??(x.name?o(x.name):void 0);p.push({kind:"hard",text:x.text,name:x.name,passed:v?!!v.passed:null,exitCode:v==null?void 0:v.exit_code,verified:(v==null?void 0:v.verified)===!0})}return p}function X0(s){return Object.keys(s).map((r,p)=>{var o,x,v,T;return{id:r,index:p,instruction:"",firstLine:"",isCondition:!!((o=s[r])!=null&&o.branch_taken),requires:[],soft:[],hard:[],isLoop:((x=s[r])==null?void 0:x.type)==="loop",isApproval:!!((v=s[r])!=null&&v.approval)||((T=s[r])==null?void 0:T.status)==="awaiting_approval"}})}function gs(s){var X,P;const r=s.status??{},p=r.steps??{},o=H0(s.conductorYaml),x=!!o&&o.steps.length>0,T=(x?o.steps:X0(p)).map(K=>{const U=p[K.id]??{},Q=U.status??"pending",W=U.gate??"pending";return{...K,column:Y0(Q,W),rawStatus:Q,gateState:W,attempt:U.attempt??1,branchTaken:U.branch_taken,output_value:U.output,criteria:G0(K,U.gate_detail),loop:q0(K,U),approvalState:R0(K,U),heartbeat:B0(U),learnings:Array.isArray(U.learnings)?U.learnings.filter(F=>typeof F=="string"):[]}}),_=T.length,j=T.filter(K=>K.column==="done").length;let m=0,A=0;for(const K of T)if(K.isLoop&&K.loop){const U=K.loop.iterations,Q=((X=K.subSteps)==null?void 0:X.length)||((P=U[0])==null?void 0:P.steps.length)||1,W=K.loop.total||U.length||0;m+=W*Q,A+=U.reduce((F,yt)=>F+yt.steps.filter(R=>R.status==="done").length,0)}else m+=1,K.column==="done"&&(A+=1);const O=T.flatMap(K=>K.heartbeat.map(U=>U.at)).sort().at(-1),C=T.reduce((K,U)=>K+U.heartbeat.filter(Q=>Q.insight).length,0),B=Array.isArray(r.suggestions)?r.suggestions:[];return{workflow:r.workflow??(o==null?void 0:o.name)??"workflow",description:(o==null?void 0:o.description)??r.description,goal:r.goal??(o==null?void 0:o.description),currentStepGoal:r.current_step_goal,lastBeatAt:O,insightCount:C,suggestions:B,runId:r.run_id,startedAt:r.started_at,endedAt:r.completed_at,overallStatus:r.status??"idle",currentStep:r.current_step,steps:T,done:j,total:_,unitsDone:A,unitsTotal:m,hasConductor:x,demo:r._demo===!0,error:r._error}}let Md=null,Od=0;const wd="cb-muted";function ys(){try{return localStorage.getItem(wd)==="1"}catch{return!1}}function Q0(s){try{localStorage.setItem(wd,s?"1":"0")}catch{}}function Vd(){try{const s=window.AudioContext||window.webkitAudioContext;return Md??(Md=new s),Md}catch{return null}}function Kd(s,r){if(ys())return!1;const p=Date.now();if(p-Od<2e3)return!1;const o=Vd();if(!o)return!1;Od=p;try{o.state==="suspended"&&o.resume();const x=o.currentTime,v=o.createOscillator(),T=o.createGain();return v.type="sine",v.frequency.setValueAtTime(s,x),T.gain.setValueAtTime(.15,x),T.gain.exponentialRampToValueAtTime(1e-4,x+r),v.connect(T).connect(o.destination),v.start(x),v.stop(x+r),!0}catch{return!1}}const L0=()=>Kd(800,.5),Z0=()=>Kd(400,.7);let Dd=0;function w0(){if(ys())return!1;const s=Date.now();if(s-Dd<120)return!1;const r=Vd();if(!r)return!1;Dd=s;try{r.state==="suspended"&&r.resume();const p=r.currentTime,o=r.createOscillator(),x=r.createGain();return o.type="sine",o.frequency.setValueAtTime(2e3,p),x.gain.setValueAtTime(1e-4,p),x.gain.exponentialRampToValueAtTime(.03,p+.005),x.gain.exponentialRampToValueAtTime(1e-4,p+.05),o.connect(x).connect(r.destination),o.start(p),o.stop(p+.06),!0}catch{return!1}}function V0(s,r){var o,x;const p=[];for(const v of r){const T=(o=s[v])==null?void 0:o.snap.status,_=(T==null?void 0:T.steps)??{};for(const j of Object.keys(_)){const m=(x=_[j])==null?void 0:x.heartbeat;Array.isArray(m)&&m.forEach((A,O)=>{!A||typeof A.at!="string"||typeof A.note!="string"||p.push({key:`${v}\0${j}\0${A.at}\0${O}`,workflow:v,step:j,at:A.at,note:A.note,iteration:A.iteration,finalBeat:A.finalBeat===!0,insight:A.insight&&typeof A.insight.type=="string"?{type:A.insight.type,seed:A.insight.seed??"",step:A.insight.step,confidence:A.insight.confidence}:void 0})})}}return p.sort((v,T)=>v.at<T.at?-1:v.at>T.at?1:0),p}const ms=500;function K0(s,r){const p=G.useMemo(()=>V0(s,r),[s,r]),o=G.useRef(null),x=G.useRef(0),[v,T]=G.useState(null),[_,j]=G.useState([]);return G.useEffect(()=>{if(o.current===null){o.current=new Set(p.map(A=>A.key)),j(p.slice(-ms));return}const m=p.filter(A=>!o.current.has(A.key));if(m.length!==0){for(const A of m)o.current.add(A.key);j(A=>{const O=A.concat(m);return O.length>ms?O.slice(O.length-ms):O}),x.current+=1,T({beat:m[m.length-1],nonce:x.current})}},[p]),{beats:p,log:_,arrival:v}}function J0(s){return s.length?s[s.length-1].at:void 0}function An(s=1e3){const[r,p]=G.useState(()=>Date.now());return G.useEffect(()=>{const o=setInterval(()=>p(Date.now()),s);return()=>clearInterval(o)},[s]),r}const xs=/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g;function vs(s){const r=[];let p=0,o;xs.lastIndex=0;let x=0;for(;(o=xs.exec(s))!==null;)o.index>p&&r.push(s.slice(p,o.index)),r.push(c.jsxs("a",{href:o[2],target:"_blank",rel:"noopener noreferrer",onClick:v=>v.stopPropagation(),className:"text-cyan underline-offset-2 hover:underline",children:[o[1],c.jsx("span",{"aria-hidden":!0,className:"ml-0.5 text-[0.85em]",children:"↗"})]},x++)),p=o.index+o[0].length;return p<s.length&&r.push(s.slice(p)),r}function wu(s){return s.replace(xs,"$1")}function Vu(s,r){if(!s)return null;const p=new Date(s).getTime();return Number.isNaN(p)?null:Math.max(0,Math.floor((r-p)/1e3))}function Jd(s,r){const p=Vu(s,r);if(p===null)return"";if(p<60)return`${p}s ago`;const o=Math.floor(p/60);return o<60?`${o}m ago`:`${Math.floor(o/60)}h ago`}const k0="#FF4D6A",$0=90;function Tn({lastBeatIso:s,size:r=14,title:p}){const o=An(1e3),x=!!s&&(Vu(s,o)??0)>$0,[v,T]=G.useState(!1),_=G.useRef(void 0),j=G.useRef(!1);G.useEffect(()=>{if(!j.current){j.current=!0,_.current=s;return}if(s&&s!==_.current){_.current=s,T(!0);const A=setTimeout(()=>T(!1),470);return()=>clearTimeout(A)}},[s]);const m=v?"heart-strong":x?"heart-weak":"heart-rest";return c.jsxs("svg",{className:m,width:r,height:r,viewBox:"0 0 24 24",style:{color:x&&!v?"var(--color-amber)":k0},"aria-label":p??"heartbeat",children:[c.jsx("title",{children:p??(x?"beats have gone quiet":"heartbeat")}),c.jsx("path",{fill:"currentColor",d:"M12 21s-7.5-4.7-10-9.2C.4 8.4 2 5 5.2 5c2 0 3.3 1.1 4.1 2.3l.9 1.3.9-1.3C11.9 6.1 13.2 5 15.2 5 18.4 5 20 8.4 18.5 11.8 16 16.3 12 21 12 21Z"})]})}const W0=180;function F0(s){const r=Math.floor(s/60),p=s%60;return r>0?`${r}m ${p}s`:`${p}s`}function I0(s,r,p){const[o,x]=G.useState(()=>Date.now());if(G.useEffect(()=>{if(!p)return;const A=setInterval(()=>x(Date.now()),1e3);return()=>clearInterval(A)},[p]),!s)return null;const v=new Date(s).getTime();if(Number.isNaN(v))return null;const T=!p&&r?new Date(r).getTime():o,_=Math.max(0,Math.floor((T-v)/1e3)),j=Math.floor(_/60),m=_%60;return`${j}:${String(m).padStart(2,"0")}`}const _d={running:"text-cyan border-cyan/30 bg-cyan/10",done:"text-mint border-mint/30 bg-mint/10",failed:"text-rose border-rose/30 bg-rose/10",idle:"text-mist border-line-2 bg-panel"};function P0({conn:s}){const r={live:{c:"bg-mint",t:"live"},connecting:{c:"bg-amber animate-pulse",t:"connecting"},lost:{c:"bg-rose",t:"reconnecting"}}[s];return c.jsxs("span",{className:"flex items-center gap-1.5 font-mono text-[11px] text-mist",children:[c.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${r.c}`}),r.t]})}function t1({model:s,conn:r,viewing:p,muted:o,onToggleMute:x,onBackToLive:v,onToggleSidebar:T,optimizeCount:_=0,optimizeOpen:j=!1,onToggleOptimize:m}){const A=!p&&s.overallStatus==="running",O=I0(s.startedAt,s.endedAt,A),C=An(1e3),B=A&&s.lastBeatAt?Jd(s.lastBeatAt,C):null,X=s.unitsTotal?Math.round(s.unitsDone/s.unitsTotal*100):0,P=s.unitsTotal!==s.total,K=s.lastBeatAt??s.startedAt,U=A&&K?Vu(K,C):null,Q=U!==null&&U>W0;return c.jsxs("header",{className:"sticky top-0 z-30 border-b border-line bg-ink/80 backdrop-blur-xl",children:[s.demo&&c.jsx("div",{className:"flex items-center justify-center gap-2 border-b border-amber/30 bg-amber/15 px-5 py-1 font-mono text-[10px] uppercase tracking-[0.15em] text-amber",children:"⚠ Demo — simulated data"}),c.jsxs("div",{className:"flex flex-wrap items-center gap-x-5 gap-y-2 px-5 py-3",children:[c.jsx("button",{onClick:T,"aria-label":"Toggle history",className:"grid h-7 w-7 place-items-center rounded-md border border-line text-mist transition-colors hover:border-line-2 hover:text-chalk",children:c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",children:c.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",d:"M4 6h16M4 12h16M4 18h16"})})}),c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx("img",{src:"./conductor.svg",alt:"",className:"h-6 w-6"}),c.jsx("span",{className:"font-mono text-sm font-medium text-chalk",children:s.workflow}),c.jsx("span",{className:`rounded-md border px-2 py-0.5 font-mono text-[10px] capitalize ${_d[s.overallStatus]??_d.idle}`,children:s.overallStatus})]}),p?c.jsxs("button",{onClick:v,className:"flex items-center gap-1.5 rounded-md border border-amber/30 bg-amber/10 px-2.5 py-1 font-mono text-[11px] text-amber transition-colors hover:bg-amber/15",children:[c.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",children:c.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",d:"M11 17 6 12l5-5M6 12h12"})}),"past run — back to live"]}):s.goal&&c.jsxs("span",{title:s.goal,className:"hidden max-w-md items-center gap-1.5 truncate text-sm text-mist-2 lg:flex",children:[c.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",className:"shrink-0 text-iris",children:[c.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",d:"M12 2v4m0 12v4M2 12h4m12 0h4"}),c.jsx("circle",{cx:"12",cy:"12",r:"3.2",fill:"currentColor"})]}),c.jsx("span",{className:"truncate",children:s.goal})]}),c.jsxs("div",{className:"ml-auto flex items-center gap-5",children:[s.insightCount>0&&c.jsxs("span",{title:"Improvement signals gathered this run",className:"flex items-center gap-1 font-mono text-[11px] text-amber",children:["💡 ",s.insightCount," insight",s.insightCount===1?"":"s"]}),_>0&&m&&c.jsxs("button",{onClick:m,title:"Review the optimization suggestions from this run",className:`flex items-center gap-1 rounded-md border px-2 py-1 font-mono text-[11px] transition-colors ${j?"border-iris/50 bg-iris/15 text-chalk":"border-iris/30 bg-iris/10 text-iris hover:bg-iris/15"}`,children:["✨ ",_]}),B&&c.jsxs("span",{className:"flex items-center gap-1.5 font-mono text-[11px] text-mist",children:[c.jsx(Tn,{lastBeatIso:s.lastBeatAt,size:13,title:`last beat: ${B}`}),"last beat: ",B]}),O&&c.jsxs("span",{className:"flex items-center gap-1.5 font-mono text-xs text-mist",children:[c.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",className:"text-line-2",children:c.jsx("path",{fill:"currentColor",d:"M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 10V6h-2v8h6v-2h-4Z"})}),O]}),c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx("div",{className:"h-1.5 w-28 overflow-hidden rounded-full bg-panel-2",children:c.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${s.overallStatus==="failed"?"bg-gradient-to-r from-rose to-amber":"bg-gradient-to-r from-iris to-cyan"}`,style:{width:`${X}%`}})}),c.jsxs("span",{className:"font-mono text-xs text-mist-2",title:P?`${s.unitsDone}/${s.unitsTotal} work units (steps + loop iterations) · ${s.done}/${s.total} top-level steps`:`${s.done}/${s.total} steps`,children:[s.unitsDone,"/",s.unitsTotal]})]}),c.jsx("button",{onClick:x,title:o?"Unmute completion sounds":"Mute completion sounds",className:"grid h-7 w-7 place-items-center rounded-md border border-line text-mist transition-colors hover:border-line-2 hover:text-chalk",children:o?c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M11 5 6 9H2v6h4l5 4V5Z"}),c.jsx("path",{d:"m23 9-6 6M17 9l6 6"})]}):c.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[c.jsx("path",{d:"M11 5 6 9H2v6h4l5 4V5Z"}),c.jsx("path",{d:"M15.5 8.5a5 5 0 0 1 0 7"})]})}),p?c.jsxs("span",{className:"flex items-center gap-1.5 font-mono text-[11px] text-amber",children:[c.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-amber"}),"archived"]}):c.jsx(P0,{conn:r})]})]}),!p&&A&&!Q&&s.currentStepGoal&&c.jsxs("div",{className:"flex items-center gap-2 border-t border-line/60 px-5 py-1.5",children:[c.jsx("span",{className:"font-mono text-[10px] uppercase tracking-wide text-cyan",children:"now"}),s.currentStep&&c.jsx("span",{className:"font-mono text-[11px] text-chalk",children:s.currentStep}),c.jsx("span",{className:"truncate text-xs text-mist",children:s.currentStepGoal})]}),Q&&U!==null&&c.jsxs("div",{className:"freeball-flash flex flex-wrap items-center gap-x-2.5 gap-y-1 border-t border-rose/50 bg-rose/15 px-5 py-2",children:[c.jsx("span",{className:"text-base leading-none text-rose",children:"⚠"}),c.jsx("span",{className:"font-mono text-[11px] font-bold uppercase tracking-wide text-rose",children:"Freeballing?"}),c.jsxs("span",{className:"font-mono text-[11px] text-rose",children:["no heartbeat for ",F0(U)]}),c.jsx("span",{className:"text-xs text-rose/90",children:"The agent looks like it's doing work without updating the board — that's not allowed. It must check in now, or stop, restart cleanly, and apologize."})]})]})}function l1(s){const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",hour12:!1})}function e1({iso:s,running:r,now:p}){return c.jsx("span",{className:"shrink-0 font-mono text-[9px] text-line-2",title:s,children:r?Jd(s,p):l1(s)})}function kd({entries:s,learnings:r,now:p,running:o,loop:x}){const v=(x==null?void 0:x.iterations.map(m=>m.item))??[],[T,_]=G.useState("all"),j=T==="all"?s:s.filter(m=>m.iteration===T);return c.jsxs("div",{className:"mt-2.5 border-t border-line pt-2 pl-7",children:[v.length>0&&c.jsx("div",{className:"mb-2 flex flex-wrap items-center gap-1",children:["all",...v].map(m=>{const A=T===m;return c.jsx("button",{onClick:O=>{O.stopPropagation(),_(m)},className:`rounded-full border px-1.5 py-0.5 font-mono text-[9px] transition-colors ${A?"border-iris/50 bg-iris/15 text-chalk":"border-line text-mist hover:text-chalk"}`,children:m==="all"?"All":m},m)})}),r.length>0&&c.jsxs("div",{className:"mb-2 rounded-lg border border-cyan/20 bg-cyan/[0.06] px-2.5 py-2",children:[c.jsx("div",{className:"mb-1 font-mono text-[9px] uppercase tracking-wide text-cyan",children:"learnings"}),c.jsx("ul",{className:"space-y-0.5",children:r.map((m,A)=>c.jsxs("li",{className:"flex gap-1.5 text-[11px] leading-snug text-mist-2",children:[c.jsx("span",{className:"text-cyan",children:"·"}),c.jsx("span",{children:m})]},A))})]}),j.length>0&&c.jsxs("div",{className:"relative max-h-64 space-y-2 overflow-y-auto board-scroll pl-3.5",children:[c.jsx("span",{className:"pointer-events-none absolute bottom-1 left-[3px] top-1.5 w-px bg-line"}),[...j].reverse().map((m,A)=>{var O,C;return c.jsxs("div",{className:`relative ${m.insight?"-ml-1 rounded-md border-l-2 border-amber/50 bg-amber/[0.05] pl-2":""}`,children:[m.finalBeat?c.jsx("span",{className:"absolute -left-[15px] top-[3px] font-mono text-[10px] leading-none text-mint",title:(O=m.handoff)!=null&&O.to?`handoff → ${m.handoff.to}`:"final beat",children:"·→"}):c.jsx("span",{className:`absolute -left-[13px] top-[5px] h-1.5 w-1.5 rounded-full ${m.insight?"bg-amber":"bg-line-2"}`}),c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx(e1,{iso:m.at,running:o,now:p}),c.jsxs("span",{className:"flex-1 text-[11px] leading-snug text-mist-2",children:[m.iteration&&T==="all"&&c.jsx("span",{className:"mr-1 rounded bg-iris/10 px-1 font-mono text-[9px] text-iris",children:m.iteration}),m.insight&&c.jsx("span",{className:"mr-1",children:"💡"}),vs(m.note),m.insight&&c.jsxs("span",{className:"mt-0.5 block text-[10px] italic text-amber/90",children:["↳ ",m.insight.seed]}),m.finalBeat&&((C=m.handoff)==null?void 0:C.to)&&c.jsxs("span",{className:"mt-0.5 block font-mono text-[9px] text-mint/80",children:["→ handoff to ",m.handoff.to]})]})]})]},A)})]})]})}function a1(){return c.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",className:"text-amber",children:c.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",d:"M6 4v6a4 4 0 0 0 4 4h0M6 4v16M6 10a4 4 0 0 1 4-4h0m8 0-3-3m3 3-3 3m3-3h-4"})})}function n1(){return c.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",className:"text-iris",children:c.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",d:"M17 2l4 4-4 4M3 11V9a4 4 0 0 1 4-4h14M7 22l-4-4 4-4m14-1v2a4 4 0 0 1-4 4H3"})})}function u1({step:s}){switch(s.column){case"done":return c.jsx("span",{className:"check-pop grid h-5 w-5 place-items-center rounded-full bg-mint/15 text-mint",children:c.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",children:c.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",d:"m5 12 5 5L20 6"})})});case"failed":return c.jsx("span",{className:"grid h-5 w-5 place-items-center rounded-full bg-rose/15 text-rose",children:c.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",children:c.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",d:"M6 6l12 12M18 6 6 18"})})});case"gate":return c.jsx("span",{className:"grid h-5 w-5 place-items-center rounded-full bg-amber/15 text-amber",children:c.jsx("svg",{className:"spin",width:"12",height:"12",viewBox:"0 0 24 24",children:c.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",d:"M12 3a9 9 0 1 0 9 9"})})});case"running":return c.jsx("span",{className:"grid h-5 w-5 place-items-center",children:c.jsx("span",{className:"h-2.5 w-2.5 animate-pulse rounded-full bg-cyan"})});default:return c.jsx("span",{className:"grid h-5 w-5 place-items-center",children:c.jsx("span",{className:"h-2.5 w-2.5 rounded-full border border-line-2"})})}}function i1({c:s}){const r=s.passed===!0?c.jsx("span",{className:"text-mint",children:"✓"}):s.passed===!1?c.jsx("span",{className:"text-rose",children:"✕"}):c.jsx("span",{className:"text-line-2",children:"○"});return c.jsxs("div",{className:"flex items-start gap-2 py-1",children:[c.jsx("span",{className:"mt-0.5 w-3 shrink-0 text-center font-mono text-[11px]",children:r}),c.jsx("span",{className:`rounded border px-1 py-px font-mono text-[9px] ${s.kind==="hard"?"border-mint/25 text-mint":"border-line-2 text-mist"}`,children:s.kind}),s.verified?c.jsx("span",{title:"verified — the gate-runner ran this check",className:"text-[10px] text-mint",children:"🔒"}):s.passed===!0&&c.jsx("span",{title:"attested — self-reported by the agent",className:"text-[10px] text-amber/80",children:"✋"}),c.jsxs("span",{className:"flex-1 font-mono text-[11px] leading-snug text-mist-2",children:[s.kind==="hard"&&s.name?s.name:s.text,s.kind==="hard"&&typeof s.exitCode=="number"&&c.jsxs("span",{className:"ml-1 text-mist",children:["exit ",s.exitCode]})]})]})}const c1={done:"bg-mint",failed:"bg-rose",running:"bg-cyan animate-pulse",checking:"bg-amber",pending:"bg-line-2"};function s1({it:s,beats:r}){const[p,o]=G.useState(!1),x=s.steps.some(m=>m.status==="running"),v=s.failed?"bg-rose":s.done?"bg-mint":x?"bg-cyan animate-pulse":"bg-line-2",T=r.at(-1),_=T?vs(T.note):s.done?"done":x?"running":"pending",j=s.steps.find(m=>m.attempt>1);return c.jsxs("div",{className:"border-b border-line/40 last:border-0",children:[c.jsxs("button",{onClick:m=>{m.stopPropagation(),o(A=>!A)},className:"flex w-full items-center gap-2 py-1.5 text-left",children:[c.jsx("span",{className:`h-1.5 w-1.5 shrink-0 rounded-full ${v}`}),c.jsx("span",{className:"shrink-0 font-mono text-[11px] text-mist-2",children:s.item}),j&&c.jsxs("span",{className:"shrink-0 rounded border border-amber/30 px-1 font-mono text-[9px] text-amber",children:["×",j.attempt]}),c.jsx("span",{className:"min-w-0 flex-1 truncate text-[11px] italic text-mist",children:_})]}),p&&c.jsx("div",{className:"pb-2 pl-3.5",children:c.jsx("div",{className:"flex flex-wrap gap-1.5",children:s.steps.map((m,A)=>c.jsxs("span",{className:"inline-flex items-center gap-1 rounded border border-line-2 px-1.5 py-0.5 font-mono text-[9px] text-mist",children:[c.jsx("span",{className:`h-1 w-1 rounded-full ${c1[m.gate==="checking"?"checking":m.status]??"bg-line-2"}`}),m.id]},A))})})]})}const f1={done:"border-mint/25",failed:"border-rose/40",gate:"border-amber/40",running:"border-cyan/40 pulse-ring",pending:"border-line-2"},Ud=[.22,1,.36,1],o1={layout:{type:"spring",stiffness:420,damping:38,mass:.85},opacity:{duration:.2,ease:"easeOut"},scale:{duration:.22,ease:Ud},default:{duration:.2,ease:Ud}};function r1({step:s,onOpenLoop:r}){const[p,o]=G.useState(!1),x=An(5e3),v=s.isLoop?s.loop:void 0,T=s.heartbeat.at(-1),_=s.column==="running"&&T!=null&&(Vu(T.at,x)??0)>90,j=s.heartbeat.length>0||s.learnings.length>0,A=(v?v.iterations.length>0:s.criteria.length>0)||j,O=s.column==="pending"?"opacity-70":"",C=v&&v.total?Math.round(v.completed/v.total*100):0;return c.jsxs(fl.div,{layout:!0,layoutId:s.id,initial:{opacity:0,scale:.96,y:4},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.96,y:-2},transition:o1,onClick:()=>{if(v&&r)return r(s.id);A&&o(B=>!B)},className:`rounded-xl border bg-panel px-3 py-2.5 ${f1[s.column]} ${O} ${A||v&&r?"cursor-pointer":""} ${s.column==="done"?"opacity-85":""}`,children:[c.jsxs("div",{className:"flex items-center gap-2",children:[s.isCondition?c.jsx("span",{className:"grid h-5 w-5 place-items-center rounded-md bg-amber/10",children:c.jsx(a1,{})}):v?c.jsx("span",{className:"grid h-5 w-5 place-items-center rounded-md bg-iris/10",children:c.jsx(n1,{})}):c.jsx("span",{className:"grid h-5 w-5 place-items-center rounded-md bg-iris/15 font-mono text-[10px] text-iris",children:s.index+1}),c.jsx("span",{className:"flex-1 truncate font-mono text-[12.5px] text-chalk",children:s.id}),_&&c.jsx("span",{title:"No heartbeat for 90s — agent may be stalled",className:"h-2 w-2 animate-pulse rounded-full bg-amber"}),!v&&s.attempt>1&&c.jsxs("span",{title:`${s.attempt} attempts`,className:"rounded border border-amber/30 bg-amber/10 px-1 font-mono text-[9px] text-amber",children:["×",s.attempt]}),c.jsx(u1,{step:s})]}),v?c.jsxs("div",{className:"mt-2 pl-7",children:[c.jsxs("div",{className:"flex items-center justify-between gap-2",children:[c.jsxs("span",{className:"font-mono text-[10px] text-mist-2",children:[v.completed,"/",v.total," iterations"]}),v.currentItem&&s.column==="running"&&c.jsx("span",{className:"max-w-[130px] truncate font-mono text-[10px] text-cyan",children:v.currentItem})]}),c.jsx("div",{className:"mt-1.5 h-1.5 overflow-hidden rounded-full bg-panel-2",children:c.jsx("div",{className:"h-full rounded-full bg-gradient-to-r from-iris to-cyan transition-all duration-500",style:{width:`${C}%`}})}),c.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-1.5",children:[c.jsx("span",{className:"inline-flex items-center gap-1 rounded-md border border-iris/25 bg-iris/[0.08] px-1.5 py-0.5 font-mono text-[10px] text-iris",children:"loop"}),s.over&&c.jsxs("span",{className:"rounded-md border border-line-2 bg-ink/40 px-1.5 py-0.5 font-mono text-[10px] text-mist",children:["over ",s.over]}),r?c.jsxs("span",{className:"ml-auto inline-flex items-center gap-1 font-mono text-[10px] text-cyan",children:["Open loop board",c.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",children:c.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14M13 6l6 6-6 6"})})]}):A&&c.jsx("span",{className:"font-mono text-[10px] text-line-2",children:p?"▾ hide":"▸ iterations"})]})]}):c.jsxs(c.Fragment,{children:[s.firstLine&&c.jsx("p",{className:"mt-1.5 line-clamp-2 pl-7 text-[11.5px] leading-snug text-mist",children:s.firstLine}),c.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-1.5 pl-7",children:[s.soft.length>0&&c.jsxs("span",{className:"inline-flex items-center gap-1 rounded-md border border-line-2 bg-ink/50 px-1.5 py-0.5 font-mono text-[10px] text-mist-2",children:[c.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-iris"}),s.soft.length," soft"]}),s.hard.length>0&&c.jsxs("span",{className:"inline-flex items-center gap-1 rounded-md border border-mint/25 bg-mint/[0.08] px-1.5 py-0.5 font-mono text-[10px] text-mint",children:[c.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-mint"}),s.hard.length," check"]}),s.isCondition&&s.branchTaken&&c.jsxs("span",{className:"inline-flex items-center gap-1 rounded-md border border-amber/30 bg-amber/10 px-1.5 py-0.5 font-mono text-[10px] text-amber",children:["→ ",s.branchTaken]}),s.output&&c.jsxs("span",{className:"rounded-md border border-cyan/30 bg-cyan/10 px-1.5 py-0.5 font-mono text-[10px] text-cyan",children:["→ ",s.output]}),s.requires.length>0&&c.jsxs("span",{title:`requires ${s.requires.join(", ")}`,className:"inline-flex items-center gap-1 rounded-md border border-line-2 bg-ink/40 px-1.5 py-0.5 font-mono text-[10px] text-mist",children:[c.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",className:"text-line-2",children:c.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",d:"M9 6 4 12l5 6M15 6l5 6-5 6"})}),s.requires.join(", ")]})]})]}),T&&c.jsxs("div",{title:T.note,className:"mt-2 flex items-start gap-1.5 pl-7 text-[11px] italic leading-snug text-mist",children:[c.jsx("span",{className:"mt-[3px] h-1 w-1 shrink-0 rounded-full bg-cyan"}),c.jsxs("span",{className:"truncate",children:[T.insight&&c.jsx("span",{className:"mr-0.5 not-italic",children:"💡"}),vs(T.note)]})]}),c.jsx(Ne,{initial:!1,children:p&&A&&c.jsxs(fl.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.22},className:"overflow-hidden",children:[j&&c.jsx(kd,{entries:s.heartbeat,learnings:s.learnings,now:x,running:s.column==="running",loop:v}),v&&v.iterations.length>0&&c.jsx("div",{className:"mt-2.5 border-t border-line pt-1 pl-7",children:v.iterations.map(B=>c.jsx(s1,{it:B,beats:s.heartbeat.filter(X=>X.iteration===B.item)},B.item))}),!v&&s.criteria.length>0&&c.jsx("div",{className:"mt-2.5 border-t border-line pt-2 pl-7",children:s.criteria.map((B,X)=>c.jsx(i1,{c:B},X))})]})})]})}const d1=[.22,1,.36,1];function m1({step:s,onDecide:r}){const p=s.approvalState,o=(p==null?void 0:p.items)??[],x=o.length>0,v=!!(p!=null&&p.decided),[T,_]=G.useState({});G.useEffect(()=>{_(Object.fromEntries(o.map(B=>[B.label,B.decision!=="rejected"])))},[s.id,o.length]);const[j,m]=G.useState(!1),A=async B=>{j||(m(!0),await r(s.id,B),m(!1))},O=()=>A(x?o.map(B=>({label:B.label,decision:T[B.label]?"approved":"rejected"})):[{label:s.id,decision:"approved"}]),C=()=>A(x?o.map(B=>({label:B.label,decision:"rejected"})):[{label:s.id,decision:"rejected"}]);return c.jsxs(fl.div,{layout:!0,layoutId:s.id,initial:{opacity:0,scale:.96,y:4},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.96,y:-2},transition:{duration:.24,ease:d1},className:"rounded-xl border border-amber/40 bg-amber/[0.06] px-3 py-2.5",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"grid h-5 w-5 place-items-center rounded-md bg-amber/15 text-[11px]",children:"⏳"}),c.jsx("span",{className:"flex-1 truncate font-mono text-[12.5px] text-chalk",children:s.id}),c.jsx("span",{className:"rounded border border-amber/40 bg-amber/10 px-1.5 py-0.5 font-mono text-[9px] text-amber",children:v?"decided":"human"})]}),(p==null?void 0:p.prompt)&&c.jsx("p",{className:"mt-2 pl-7 text-[12px] font-medium leading-snug text-chalk",children:p.prompt}),x&&c.jsx("div",{className:"mt-2 space-y-1 pl-7",children:o.map(B=>{const X=B.decision;return c.jsxs("label",{className:`flex cursor-pointer items-center gap-2 text-[11.5px] ${v?"cursor-default":""}`,children:[v?c.jsx("span",{className:X==="approved"?"text-mint":"text-rose",children:X==="approved"?"✓":"✕"}):c.jsx("input",{type:"checkbox",checked:!!T[B.label],onChange:P=>_(K=>({...K,[B.label]:P.target.checked})),className:"h-3 w-3 accent-mint"}),c.jsx("span",{className:X==="rejected"?"text-rose/80 line-through":"text-mist-2",children:B.label})]},B.label)})}),v?c.jsx("p",{className:"mt-2 pl-7 font-mono text-[10px] text-mist",children:"decision recorded — the agent will route accordingly"}):c.jsxs("div",{className:"mt-3 flex gap-2 pl-7",children:[c.jsxs("button",{onClick:O,disabled:j,className:"rounded-lg bg-mint/15 px-3 py-1 text-xs font-medium text-mint transition-colors hover:bg-mint/25 disabled:opacity-40",children:["✅ ",x?"Approve selected":"Approve"]}),c.jsxs("button",{onClick:C,disabled:j,className:"rounded-lg border border-rose/30 px-3 py-1 text-xs text-rose transition-colors hover:bg-rose/10 disabled:opacity-40",children:["❌ Reject",x?" all":""]})]})]})}const h1={pending:{label:"Pending",dot:"bg-line-2",text:"text-mist"},running:{label:"Running",dot:"bg-cyan",text:"text-cyan"},gate:{label:"Gate Check",dot:"bg-amber",text:"text-amber"},done:{label:"Done",dot:"bg-mint",text:"text-mint"},failed:{label:"Failed",dot:"bg-rose",text:"text-rose"}};function Cd({col:s,steps:r,side:p,onOpenLoop:o,onApprove:x}){const v=h1[s],T=r.length>=6,_=r.length>=6;return c.jsxs("div",{className:`flex min-h-0 flex-col rounded-2xl border bg-ink-2/40 ${p?"border-rose/15":"border-line"}`,children:[c.jsxs("div",{className:"flex shrink-0 items-center gap-2 rounded-t-2xl border-b border-line/70 bg-ink-2/60 px-3.5 py-2.5",children:[c.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${v.dot}`}),c.jsx("span",{className:`font-mono text-[11px] uppercase tracking-wide ${v.text}`,children:v.label}),c.jsx("span",{className:"ml-auto grid h-5 min-w-5 place-items-center rounded-md bg-panel px-1 font-mono text-[10px] text-mist",children:r.length})]}),c.jsxs("div",{className:"relative min-h-0 flex-1",children:[c.jsxs("div",{className:"board-scroll max-h-[calc(100vh-168px)] overflow-y-auto scroll-smooth p-2.5",children:[c.jsx("div",{className:`flex flex-col ${T?"gap-1.5":"gap-2"}`,children:c.jsx(Ne,{mode:"popLayout",initial:!1,children:r.map(j=>j.isApproval&&x?c.jsx(m1,{step:j,onDecide:x},j.id):c.jsx(r1,{step:j,onOpenLoop:o},j.id))})}),r.length===0&&c.jsx("div",{className:"grid place-items-center py-6",children:c.jsx("span",{className:"font-mono text-[10px] text-line-2",children:"empty"})})]}),_&&c.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-8 rounded-b-2xl bg-gradient-to-t from-ink-2 to-transparent"})]})]})}function $d(s){return s.failed?"failed":s.steps.length>0&&s.steps.every(r=>r.status==="done")?"done":s.steps.some(r=>r.gate==="checking")?"gate":s.steps.some(r=>r.status==="running")?"running":"pending"}function Wd(s){return s.status==="failed"||s.gate==="failed"?"failed":s.status==="done"?"done":s.gate==="checking"?"gate":s.status==="running"?"running":"pending"}const p1={done:"border-mint/25 bg-mint/[0.04]",failed:"border-rose/40 bg-rose/[0.05]",gate:"border-amber/40 bg-amber/[0.05]",running:"border-cyan/40 bg-cyan/[0.05] pulse-ring",pending:"border-line-2 bg-panel/40"},g1=[.22,1,.36,1],x1={layout:{type:"spring",stiffness:420,damping:38,mass:.85},opacity:{duration:.2,ease:"easeOut"},default:{duration:.2,ease:g1}};function y1({col:s}){switch(s){case"done":return c.jsx("span",{className:"text-mint",children:"✓"});case"failed":return c.jsx("span",{className:"text-rose",children:"✕"});case"gate":return c.jsx("span",{className:"spin inline-block text-amber",children:"◜"});case"running":return c.jsx("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-cyan"});default:return c.jsx("span",{className:"h-1.5 w-1.5 rounded-full border border-line-2"})}}function v1({loopId:s,item:r,sub:p,def:o,beats:x}){const[v,T]=G.useState(!1),_=An(5e3),j=Wd(p),m=(o==null?void 0:o.soft)??[],A=(o==null?void 0:o.hard)??[],O=x.length>0||m.length+A.length>0;return c.jsxs(fl.div,{layout:!0,layoutId:`${s}::${r}::${p.id}`,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:x1,onClick:()=>O&&T(C=>!C),className:`rounded-lg border px-2 py-1.5 ${p1[j]} ${O?"cursor-pointer":""}`,children:[c.jsxs("div",{className:"flex items-center gap-1.5",children:[c.jsx("span",{className:"grid h-3.5 w-3.5 shrink-0 place-items-center font-mono text-[10px]",children:c.jsx(y1,{col:j})}),c.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[10.5px] text-mist-2",children:p.id}),p.attempt>1&&c.jsxs("span",{className:"shrink-0 rounded border border-amber/30 px-1 font-mono text-[8px] text-amber",children:["×",p.attempt]})]}),c.jsx(Ne,{initial:!1,children:v&&O&&c.jsxs(fl.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:[(m.length>0||A.length>0)&&c.jsxs("div",{className:"mt-1.5 space-y-0.5 border-t border-line/60 pt-1.5",children:[m.map((C,B)=>c.jsxs("div",{className:"flex gap-1 text-[9.5px] leading-snug text-mist",children:[c.jsx("span",{className:"text-iris",children:"·"}),c.jsx("span",{className:"flex-1",children:C})]},`s${B}`)),A.map((C,B)=>c.jsxs("div",{className:"flex gap-1 font-mono text-[9px] leading-snug text-mint/80",children:[c.jsx("span",{children:"$"}),c.jsx("span",{className:"flex-1 truncate",children:C.name??C.text})]},`h${B}`))]}),x.length>0&&c.jsx(kd,{entries:x,learnings:[],now:_,running:j==="running"})]})})]})}const Hd=["pending","running","gate","done"],hs={pending:{label:"Pending",dot:"bg-line-2",text:"text-mist"},running:{label:"Running",dot:"bg-cyan",text:"text-cyan"},gate:{label:"Gate Check",dot:"bg-amber",text:"text-amber"},done:{label:"Done",dot:"bg-mint",text:"text-mint"},failed:{label:"Failed",dot:"bg-rose",text:"text-rose"}},b1={done:"bg-mint",failed:"bg-rose",gate:"bg-amber",running:"bg-cyan animate-pulse",pending:"bg-line-2"};function Bd(){return c.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",className:"text-iris",children:c.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",d:"M17 2l4 4-4 4M3 11V9a4 4 0 0 1 4-4h14M7 22l-4-4 4-4m14-1v2a4 4 0 0 1-4 4H3"})})}function S1({loopStep:s}){const r=s.loop,p=(r==null?void 0:r.iterations)??[],o=new Map((s.subSteps??[]).map(_=>[_.id,_])),x=p.some(_=>_.steps.some(j=>j.status==="failed")),v=x?[...Hd,"failed"]:Hd,T=x?"grid-cols-[116px_repeat(5,minmax(0,1fr))]":"grid-cols-[116px_repeat(4,minmax(0,1fr))]";return c.jsxs("div",{className:"rounded-2xl border border-iris/20 bg-ink-2/30",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-line/70 px-4 py-2.5",children:[c.jsx("span",{className:"grid h-5 w-5 place-items-center rounded-md bg-iris/10",children:c.jsx(Bd,{})}),c.jsx("span",{className:"font-mono text-[12.5px] font-medium text-chalk",children:s.id}),c.jsxs("span",{className:"font-mono text-[11px] text-mist",children:[(r==null?void 0:r.completed)??0,"/",(r==null?void 0:r.total)??p.length," iterations"]}),s.over&&c.jsxs("span",{className:"rounded border border-line-2 bg-ink/40 px-1.5 py-0.5 font-mono text-[10px] text-mist",children:["over ",s.over]}),s.parallel&&c.jsx("span",{title:"iterations run in parallel",className:"rounded border border-cyan/30 bg-cyan/10 px-1.5 py-0.5 font-mono text-[10px] text-cyan",children:"∥ parallel"}),(r==null?void 0:r.currentItem)&&c.jsxs("span",{className:"ml-auto font-mono text-[11px] text-cyan",children:["▶ ",r.currentItem]})]}),p.length===0?c.jsxs("div",{className:"flex items-center gap-2 px-4 py-5 font-mono text-[11px] text-line-2",children:[c.jsx(Bd,{}),"Awaiting iteration list",s.over?` (loop over ${s.over})`:""]}):c.jsx(Ld,{children:c.jsx("div",{className:"overflow-x-auto",children:c.jsxs("div",{className:`grid ${T} gap-x-2 gap-y-0 p-3 min-w-[720px]`,children:[c.jsx("div",{className:"px-1 pb-2 font-mono text-[9px] uppercase tracking-wide text-line-2",children:"iteration"}),v.map(_=>c.jsxs("div",{className:"flex items-center gap-1.5 px-1 pb-2",children:[c.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${hs[_].dot}`}),c.jsx("span",{className:`font-mono text-[9px] uppercase tracking-wide ${hs[_].text}`,children:hs[_].label})]},_)),p.map((_,j)=>{const m=$d(_),A=s.heartbeat.filter(C=>C.iteration===_.item),O=j>0?"border-t border-line/30":"";return c.jsxs(G.Fragment,{children:[c.jsxs("div",{className:`flex items-center gap-1.5 px-1 py-2 ${O}`,children:[c.jsx("span",{className:`h-1.5 w-1.5 shrink-0 rounded-full ${b1[m]}`}),c.jsx("span",{className:"min-w-0 truncate font-mono text-[11px] text-mist-2",children:_.item})]}),v.map(C=>{const B=_.steps.filter(X=>Wd(X)===C);return c.jsx("div",{className:`min-w-0 space-y-1.5 px-1 py-2 ${O}`,children:c.jsx(Ne,{mode:"popLayout",initial:!1,children:B.map(X=>c.jsx(v1,{loopId:s.id,item:_.item,sub:X,def:o.get(X.id),beats:A},X.id))})},C)})]},_.item)})]})})})]})}const N1=["pending","running","gate","done"];function j1({steps:s,onApprove:r}){const p=x=>s.filter(v=>v.column===x),o=p("failed");return c.jsx(Ld,{children:c.jsxs("div",{className:`grid items-start gap-3 ${o.length>0?"lg:grid-cols-[repeat(4,minmax(0,1fr))_0.85fr]":"lg:grid-cols-4"} sm:grid-cols-2`,children:[N1.map(x=>c.jsx(Cd,{col:x,steps:p(x),onApprove:r},x)),o.length>0&&c.jsx(Cd,{col:"failed",steps:o,side:!0,onApprove:r})]})})}function z1({model:s,onApprove:r}){const p=[];let o=[];for(const x of s.steps)x.isLoop?(o.length&&(p.push({kind:"grid",steps:o}),o=[]),p.push({kind:"loop",step:x})):o.push(x);return o.length&&p.push({kind:"grid",steps:o}),c.jsx("div",{className:"mx-auto max-w-[1400px] space-y-5 px-5 py-6",children:p.map((x,v)=>x.kind==="grid"?c.jsx(j1,{steps:x.steps,onApprove:r},`grid-${v}`):c.jsx(S1,{loopStep:x.step},x.step.id))})}const qd={done:"✅",failed:"❌",gate:"⏳",running:"🔄",pending:"·"};function T1({snap:s}){const r=gs(s);return r.steps.length?c.jsx("div",{className:"ml-2 mt-1 space-y-0.5 border-l border-line/60 pl-2",children:r.steps.map(p=>c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-1.5 py-0.5 font-mono text-[10px]",children:[c.jsx("span",{className:"w-3 shrink-0 text-center",children:qd[p.column]??"·"}),c.jsx("span",{className:`min-w-0 flex-1 truncate ${p.column==="running"?"text-cyan":"text-mist-2"}`,children:p.id}),p.isLoop&&p.loop&&c.jsxs("span",{className:"shrink-0 text-line-2",children:[p.loop.completed,"/",p.loop.total]})]}),p.isLoop&&p.loop&&p.loop.iterations.length>0&&c.jsx("div",{className:"ml-3 space-y-0.5 border-l border-line/40 pl-2",children:p.loop.iterations.map(o=>{const x=$d(o);return c.jsxs("div",{className:"flex items-center gap-1.5 py-px font-mono text-[9.5px]",children:[c.jsx("span",{className:"w-3 shrink-0 text-center",children:qd[x]??"·"}),c.jsx("span",{className:`min-w-0 flex-1 truncate ${x==="running"?"text-cyan":"text-mist"}`,children:o.item})]},o.item)})})]},p.id))}):null}function A1(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?"":r.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function E1(s,r){if(!s||!r)return"";const p=new Date(s).getTime(),o=new Date(r).getTime();if(Number.isNaN(p)||Number.isNaN(o)||o<p)return"";const x=Math.round((o-p)/1e3);return x<60?`${x}s`:`${Math.floor(x/60)}m ${x%60}s`}function M1(s,r){if(!s)return"";const p=new Date(s).getTime();if(Number.isNaN(p))return"";const o=Math.max(0,Math.floor((r-p)/1e3)),x=Math.floor(o/3600),v=Math.floor(o%3600/60),T=o%60;return`${x}:${String(v).padStart(2,"0")}:${String(T).padStart(2,"0")}`}function O1(s){let r;for(const p of Object.values((s==null?void 0:s.steps)??{})){const o=p==null?void 0:p.heartbeat;if(Array.isArray(o))for(const x of o)x!=null&&x.at&&(!r||x.at>r)&&(r=x.at)}return r}function D1(s){const r=(s==null?void 0:s.steps)??{},p=Object.keys(r).length,o=Object.values(r).filter(x=>(x==null?void 0:x.status)==="done").length;return{total:p,done:o}}function _1({workflows:s,order:r,activeWf:p,selectedRun:o,onPickWorkflow:x,onPickRun:v,onPin:T,width:_,onResize:j}){const m=An(1e3),[A,O]=G.useState(new Set),C=U=>O(Q=>{const W=new Set(Q);return W.has(U)?W.delete(U):W.add(U),W}),B=U=>{U.preventDefault();const Q=F=>j(Math.max(220,Math.min(320,F.clientX))),W=()=>{window.removeEventListener("pointermove",Q),window.removeEventListener("pointerup",W)};window.addEventListener("pointermove",Q),window.addEventListener("pointerup",W)},X=U=>{var Q;return(Q=s[U])==null?void 0:Q.snap.status},P=r.filter(U=>{var Q;return((Q=X(U))==null?void 0:Q.status)==="running"}),K=r.map(U=>{var yt;const Q=X(U),W=(Q==null?void 0:Q.status)==="running",F=(((yt=s[U])==null?void 0:yt.history)??[]).filter(R=>!(W&&R.run_id===(Q==null?void 0:Q.run_id)));return{name:U,runs:F}}).filter(U=>U.runs.length>0);return c.jsxs("aside",{style:{width:_},className:"relative flex h-screen shrink-0 flex-col border-r border-line bg-ink-2/60 backdrop-blur",children:[c.jsxs("div",{className:"flex items-center gap-2 border-b border-line px-4 py-3.5",children:[c.jsx("img",{src:"./conductor.svg",alt:"",className:"h-5 w-5 opacity-90"}),c.jsx("span",{className:"font-mono text-xs font-medium tracking-wide text-chalk",children:"conductor"}),c.jsx("span",{className:"ml-auto font-mono text-[11px] text-mist",children:r.length})]}),c.jsxs("div",{className:"flex-1 overflow-y-auto",children:[c.jsxs("div",{className:"px-3 pt-3.5",children:[c.jsxs("div",{className:"flex items-center gap-1.5 px-1 pb-1.5",children:[c.jsx("span",{className:"h-2 w-2 rounded-full bg-mint shadow-[0_0_6px] shadow-mint/60"}),c.jsx("span",{className:"font-mono text-[10px] font-semibold uppercase tracking-[0.14em] text-mint",children:"Running"}),c.jsx("span",{className:"ml-auto font-mono text-[10px] text-mist",children:P.length})]}),P.length===0?c.jsx("p",{className:"px-1 pb-1 pt-0.5 font-mono text-[11px] text-line-2",children:"No active workflows."}):c.jsx("div",{className:"space-y-1.5",children:P.map(U=>{var R;const Q=X(U),{done:W,total:F}=D1(Q),yt=p===U&&o===null;return c.jsxs("div",{children:[c.jsxs("button",{onClick:()=>x(U),onContextMenu:J=>{J.preventDefault(),T==null||T(U)},title:"Click to open · right-click to pin as a tab",className:`block w-full rounded-lg border px-2.5 py-2 text-left transition-colors ${yt?"border-iris/40 bg-iris/10":"border-line bg-panel/50 hover:border-line-2 hover:bg-panel"}`,children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px] font-medium text-chalk",children:U}),c.jsxs("span",{className:"shrink-0 font-mono text-[10px] text-mist",children:[W,"/",F]})]}),c.jsxs("div",{className:"mt-1 flex items-center gap-1.5",children:[c.jsx(Tn,{lastBeatIso:O1(Q),size:12}),c.jsx("span",{className:"font-mono text-[10.5px] tabular-nums text-mist-2",children:M1(Q==null?void 0:Q.started_at,m)}),(Q==null?void 0:Q.current_step)&&c.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[10.5px] text-cyan",children:Q.current_step})]})]}),yt&&((R=s[U])==null?void 0:R.snap)&&c.jsx(T1,{snap:s[U].snap})]},U)})})]}),c.jsxs("div",{className:"mt-4 px-3",children:[c.jsxs("div",{className:"flex items-center gap-2 px-1 pb-1",children:[c.jsx("span",{className:"font-mono text-[10px] font-semibold uppercase tracking-[0.14em] text-mist",children:"History"}),c.jsx("span",{className:"h-px flex-1 bg-line"})]}),K.length===0?c.jsx("p",{className:"px-1 pt-1 font-mono text-[11px] text-line-2",children:"No past runs yet."}):c.jsx("div",{className:"space-y-0.5 pt-1",children:K.map(({name:U,runs:Q})=>{const W=!A.has(U);return c.jsxs("div",{children:[c.jsxs("button",{onClick:()=>C(U),onContextMenu:F=>{F.preventDefault(),T==null||T(U)},className:"flex w-full items-center gap-1.5 rounded-md px-1 py-1 text-left hover:bg-panel/60",children:[c.jsx("span",{className:"font-mono text-[10px] text-mist",children:W?"▾":"▸"}),c.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-mist-2",children:U}),c.jsxs("span",{className:"shrink-0 font-mono text-[10px] text-line-2",children:[Q.length," run",Q.length===1?"":"s"]})]}),W&&c.jsx("div",{className:"ml-2.5 border-l border-line/60 pl-1.5",children:Q.map(F=>{const yt=p===U&&o===F.run_id,R=F.status==="failed";return c.jsxs("button",{onClick:()=>v(U,F.run_id),className:`flex w-full items-center gap-2 rounded-md px-1.5 py-1 text-left transition-colors ${yt?"bg-iris/15":"hover:bg-panel"}`,children:[c.jsx("span",{className:"shrink-0 text-[10px]",children:R?"❌":"✅"}),c.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[10px] text-mist-2",children:A1(F.completed_at||F.archived_at||F.started_at)}),c.jsx("span",{className:"shrink-0 font-mono text-[9px] text-line-2",children:E1(F.started_at,F.completed_at)})]},F.run_id)})})]},U)})})]})]}),c.jsx("div",{onPointerDown:B,className:"absolute inset-y-0 -right-1 w-2 cursor-col-resize",title:"Drag to resize"})]})}const U1={high:"bg-mint",medium:"bg-amber",low:"bg-line-2"};function C1(s){if(!s)return"";const r=new Date(s);return Number.isNaN(r.getTime())?s:r.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})}function Rd({kind:s,text:r}){return c.jsxs("div",{className:`rounded px-2 py-1 font-mono text-[10.5px] leading-snug ${s==="before"?"bg-rose/10 text-rose/90":"bg-mint/10 text-mint"}`,children:[c.jsx("span",{className:"select-none opacity-60",children:s==="before"?"- ":"+ "}),r]})}function H1({s,state:r,onApply:p,onSkip:o}){return c.jsxs(fl.div,{layout:!0,initial:{opacity:0,y:12},animate:{opacity:r==="skipped"?.4:1,y:0,scale:r==="applied"?.985:1},exit:{opacity:0,scale:.9},transition:{duration:.25},className:`rounded-xl border p-3.5 ${r==="applied"?"border-mint/40 bg-mint/[0.06]":"border-line bg-panel/60"}`,children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:`h-2 w-2 shrink-0 rounded-full ${U1[s.confidence??"low"]}`}),c.jsx("span",{className:"flex-1 text-sm font-medium text-chalk",children:s.title}),r==="applied"&&c.jsx("span",{className:"text-xs text-mint",children:"applied ✓"})]}),c.jsxs("div",{className:"mt-1.5 flex flex-wrap gap-x-3 gap-y-1 pl-4 font-mono text-[10px] text-mist",children:[s.step&&c.jsxs("span",{children:["step: ",s.step]}),c.jsx("span",{className:"rounded border border-line-2 px-1",children:s.type}),s.impact&&c.jsx("span",{className:"text-mint/80",children:s.impact}),s.provenance&&c.jsx("span",{className:"text-line-2",children:s.provenance})]}),s.rationale&&c.jsx("p",{className:"mt-2 pl-4 text-[11.5px] leading-snug text-mist-2",children:s.rationale}),(s.current||s.proposed)&&c.jsxs("div",{className:"mt-2 space-y-1 pl-4",children:[s.current&&c.jsx(Rd,{kind:"before",text:s.current}),s.proposed&&c.jsx(Rd,{kind:"after",text:s.proposed})]}),s.source_heartbeat&&c.jsxs("div",{className:"mt-2 pl-4 font-mono text-[10px] text-mist",children:["Source: heartbeat at ",C1(s.source_heartbeat)," 💡"]}),r==="pending"&&c.jsxs("div",{className:"mt-3 flex gap-2 pl-4",children:[c.jsx("button",{onClick:p,className:"rounded-lg bg-mint/15 px-3 py-1 text-xs font-medium text-mint transition-colors hover:bg-mint/25",children:"✓ Apply"}),c.jsx("button",{onClick:o,className:"rounded-lg border border-line px-3 py-1 text-xs text-mist transition-colors hover:text-chalk",children:"Skip"})]})]})}function B1({workflow:s,suggestions:r,onApply:p,onDismiss:o,onClose:x}){const[v,T]=G.useState({}),[_,j]=G.useState(null),[m,A]=G.useState(!1),[O,C]=G.useState(""),B=U=>v[U]??"pending",X=r.filter(U=>B(U.id)==="pending").map(U=>U.id),P=async U=>{if(U.length===0||m)return;A(!0);const Q=r.filter(F=>U.includes(F.id)),W=await p(Q);A(!1),W.ok?(T(F=>({...F,...Object.fromEntries(U.map(yt=>[yt,"applied"]))})),j(`${U.length} optimization${U.length===1?"":"s"} applied to ${s}.conductor.yaml`),setTimeout(()=>j(null),4e3)):(j(`⚠ ${W.error??"Could not apply — conductor left unchanged."}`),setTimeout(()=>j(null),5e3))},K=U=>{T(Q=>({...Q,[U]:"skipped"})),o==null||o([U])};return c.jsxs(fl.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",stiffness:260,damping:30},className:"absolute inset-y-0 right-0 z-40 flex w-[400px] max-w-full flex-col border-l border-line bg-ink-2/95 shadow-2xl backdrop-blur",children:[c.jsxs("div",{className:"flex items-center gap-2 border-b border-line px-4 py-3.5",children:[c.jsx("span",{className:"text-base",children:"✨"}),c.jsx("span",{className:"font-medium text-chalk",children:"Insights"}),c.jsx("span",{className:"grid h-5 min-w-5 place-items-center rounded-md bg-iris/15 px-1 font-mono text-[11px] text-iris",children:r.length}),c.jsx("span",{title:"Accumulated across runs and kept in .conductor/insights.md",className:"font-mono text-[10px] text-mist",children:"open"}),c.jsx("button",{onClick:x,className:"ml-auto text-mist hover:text-chalk",title:"Close",children:"✕"})]}),c.jsxs("div",{className:"flex-1 space-y-2.5 overflow-y-auto p-3",children:[c.jsx(Ne,{initial:!1,children:r.map(U=>c.jsx(H1,{s:U,state:B(U.id),onApply:()=>P([U.id]),onSkip:()=>K(U.id)},U.id))}),c.jsx("form",{onSubmit:U=>{U.preventDefault(),O.trim()&&(j("Your suggestion was noted (source: user)."),C(""),setTimeout(()=>j(null),3e3))},className:"rounded-xl border border-dashed border-line-2 p-2",children:c.jsx("input",{value:O,onChange:U=>C(U.target.value),placeholder:"💬 Add your own suggestion…",className:"w-full bg-transparent px-1.5 py-1 text-xs text-mist-2 outline-none placeholder:text-mist"})})]}),c.jsxs("div",{className:"flex items-center gap-2 border-t border-line p-3",children:[c.jsx("button",{onClick:()=>P(X),disabled:X.length===0||m,className:"flex-1 rounded-lg bg-gradient-to-b from-iris to-iris-deep px-3 py-2 text-sm font-medium text-white transition-opacity disabled:opacity-40",children:m?"Applying…":`Apply ${X.length} selected`}),c.jsx("button",{onClick:()=>{X.length&&(o==null||o(X)),x()},className:"rounded-lg border border-line px-3 py-2 text-sm text-mist transition-colors hover:text-chalk",children:"Dismiss all"})]}),c.jsx(Ne,{children:_&&c.jsx(fl.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},className:"pointer-events-none absolute inset-x-3 bottom-20 rounded-lg border border-line bg-panel px-3 py-2 text-center text-[11px] text-chalk shadow-xl",children:_})})]})}function Fd({text:s,speed:r=30,className:p,cursor:o=!0,onDone:x}){const[v,T]=G.useState(0);G.useEffect(()=>{if(T(0),!s){x==null||x();return}let j=0;const m=setInterval(()=>{j+=1,T(j),j>=s.length&&(clearInterval(m),x==null||x())},r);return()=>clearInterval(m)},[s,r]);const _=v<s.length;return c.jsxs("span",{className:p,children:[s.slice(0,v),o&&_&&c.jsx("span",{className:"tw-cursor text-cyan",children:"█"})]})}const Id="cb-monitor",Yd=["text-cyan","text-iris","text-mint","text-amber","text-rose"];function Pd(s){const r=new Date(s);return Number.isNaN(r.getTime())?"--:--:--":r.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}function q1(){try{const s=new URLSearchParams(window.location.search).get("monitor");if(s==="min"||s==="expanded"||s==="hidden")return s}catch{}try{const s=localStorage.getItem(Id);if(s==="min"||s==="expanded"||s==="hidden")return s}catch{}return"min"}function R1({beats:s,arrival:r,order:p,mode:o,onMode:x,lastBeatIso:v}){const T=A=>Yd[Math.max(0,p.indexOf(A))%Yd.length],_=p.length>1,j=s[s.length-1],m=r==null?void 0:r.beat.key;return G.useEffect(()=>{try{localStorage.setItem(Id,o)}catch{}},[o]),G.useEffect(()=>{const A=O=>{O.ctrlKey&&(O.key==="`"||O.code==="Backquote")&&(O.preventDefault(),x(o==="expanded"?"min":"expanded"))};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[o,x]),o==="hidden"?c.jsxs(fl.button,{initial:{opacity:0,scale:.85},animate:{opacity:1,scale:1},transition:{duration:.22,ease:[.22,1,.36,1]},onClick:()=>x("min"),title:"Show heartbeat monitor",className:"fixed bottom-4 right-4 z-40 flex items-center gap-2 rounded-full border border-line bg-ink-2/90 px-3 py-2 shadow-lg backdrop-blur transition-colors hover:border-line-2",children:[c.jsx(Tn,{lastBeatIso:v,size:15}),c.jsx("span",{className:"font-mono text-[10px] text-mist",children:"monitor"})]}):o==="min"?c.jsx(fl.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.22,1,.36,1]},className:"shrink-0 border-t border-line bg-ink-2/80 backdrop-blur",children:c.jsxs("button",{onClick:()=>x("expanded"),className:"flex w-full items-center gap-2.5 px-4 py-1.5 text-left",title:"Expand heartbeat monitor (Ctrl+`)",children:[c.jsx(Tn,{lastBeatIso:v,size:13}),j?c.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-2 font-mono text-[11px]",children:[c.jsx("span",{className:"shrink-0 text-line-2",children:Pd(j.at)}),_&&c.jsx("span",{className:`shrink-0 ${T(j.workflow)}`,children:j.workflow}),c.jsxs("span",{className:"shrink-0 text-cyan/80",children:[j.step,":"]}),c.jsx("span",{className:"min-w-0 flex-1 truncate text-mist-2",children:j.key===m?c.jsx(Fd,{text:wu(j.note)}):wu(j.note)}),j.insight&&c.jsx("span",{className:"shrink-0",children:"💡"})]}):c.jsx("span",{className:"flex-1 font-mono text-[11px] text-line-2",children:"waiting for the first heartbeat…"}),c.jsx("span",{className:"shrink-0 font-mono text-[10px] text-mist",children:"▲"})]})}):c.jsx(Y1,{beats:s,order:p,streamKey:m,onMode:x,wfColor:T,multi:_,lastBeatIso:v})}function Y1({beats:s,order:r,streamKey:p,onMode:o,wfColor:x,multi:v,lastBeatIso:T}){const[_,j]=G.useState("all"),[m,A]=G.useState(280),O=G.useRef(null),C=G.useRef(!0),[B,X]=G.useState(!1),[P,K]=G.useState(!1),U=s.filter(R=>_==="all"?!0:_==="insights"?!!R.insight:R.workflow===_);G.useLayoutEffect(()=>{const R=O.current;R&&C.current&&(R.scrollTop=R.scrollHeight,X(!1))},[U.length,_]),G.useEffect(()=>{if(!p)return;K(!0);const R=setTimeout(()=>K(!1),1e4);return()=>clearTimeout(R)},[p]);const Q=()=>{const R=O.current;if(!R)return;const J=R.scrollHeight-R.scrollTop-R.clientHeight<40;C.current!==J&&(C.current=J,X(!J))},W=()=>{const R=O.current;R&&(R.scrollTop=R.scrollHeight),C.current=!0,X(!1)},F=R=>{R.preventDefault();const J=R.clientY,Nt=m,Lt=Vt=>A(Math.max(150,Math.min(window.innerHeight*.7,Nt+(J-Vt.clientY)))),Nl=()=>{window.removeEventListener("pointermove",Lt),window.removeEventListener("pointerup",Nl)};window.addEventListener("pointermove",Lt),window.addEventListener("pointerup",Nl)},yt=["all",...r,"insights"];return c.jsxs(fl.div,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},transition:{duration:.24,ease:[.22,1,.36,1]},style:{height:m},className:"relative flex shrink-0 flex-col border-t border-line bg-[#08080d] font-mono",children:[c.jsx("div",{onPointerDown:F,className:"absolute inset-x-0 -top-1 z-10 h-2 cursor-row-resize",title:"Drag to resize"}),c.jsxs("div",{onClick:()=>o("min"),title:"Click to minimize (Ctrl+`)",className:"group/bar flex cursor-pointer items-center gap-2 border-b border-line/70 px-3 py-1.5 transition-colors hover:bg-panel/40",children:[c.jsx(Tn,{lastBeatIso:T,size:13}),c.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-mist-2",children:"Heartbeat Monitor"}),c.jsx("span",{className:"text-[10px] text-line-2",children:s.length}),c.jsxs("span",{className:"ml-auto flex items-center gap-1.5 text-mist",children:[c.jsx("span",{"aria-hidden":!0,title:"Minimize",className:"grid h-5 w-5 place-items-center rounded transition-colors group-hover/bar:text-chalk",children:"▼"}),c.jsx("button",{type:"button",onClick:R=>{R.stopPropagation(),o("hidden")},title:"Hide",className:"grid h-5 w-5 place-items-center rounded text-[13px] transition-colors hover:bg-panel hover:text-chalk",children:"─"})]})]}),c.jsx("div",{className:"flex items-center gap-1.5 overflow-x-auto border-b border-line/50 px-3 py-1.5",children:yt.map(R=>{const J=_===R,Nt=R==="all"?"All":R==="insights"?"💡 Insights":R;return c.jsx("button",{onClick:()=>{C.current=!0,j(R)},className:`shrink-0 rounded-full border px-2 py-0.5 text-[10px] transition-colors ${J?"border-iris/50 bg-iris/15 text-chalk":"border-line bg-panel/40 text-mist hover:text-chalk"}`,children:Nt},R)})}),c.jsxs("div",{ref:O,onScroll:Q,className:"board-scroll monitor-grain relative min-h-0 flex-1 overflow-y-auto px-3 py-2 text-[11.5px] leading-relaxed",children:[U.length===0?c.jsxs("div",{className:"grid h-full place-items-center text-[11px] text-line-2",children:["no heartbeats",_==="all"?" yet":` for “${_}”`]}):U.map(R=>c.jsxs("div",{className:"flex items-start gap-2 py-px",children:[c.jsx("span",{className:"shrink-0 select-none text-line-2",children:Pd(R.at)}),v&&c.jsx("span",{className:`shrink-0 select-none ${x(R.workflow)}`,children:R.workflow}),c.jsx("span",{className:"w-32 shrink-0 select-none truncate text-cyan/80",title:R.step,children:R.step}),c.jsx("span",{className:"min-w-0 flex-1 text-mist-2",children:R.key===p?c.jsx(Fd,{text:wu(R.note)}):wu(R.note)}),R.finalBeat&&c.jsx("span",{className:"shrink-0 select-none text-line-2",title:"final beat — handoff to next step",children:"·→"}),R.insight&&c.jsx("span",{className:"shrink-0 select-none",children:"💡"})]},R.key)),P&&U.length>0&&c.jsx("div",{className:"px-0 text-cyan",children:c.jsx("span",{className:"tw-cursor",children:"▌"})})]}),c.jsx(Ne,{children:B&&c.jsx(fl.button,{initial:{opacity:0,y:8,x:"-50%"},animate:{opacity:1,y:0,x:"-50%"},exit:{opacity:0,y:8,x:"-50%"},transition:{duration:.18,ease:[.22,1,.36,1]},onClick:W,className:"absolute bottom-3 left-1/2 z-10 rounded-full border border-cyan/40 bg-ink/90 px-3 py-1 text-[10px] text-cyan shadow-lg backdrop-blur hover:bg-cyan/10",children:"↓ Jump to latest"})})]})}const Gd=new URLSearchParams(window.location.search);function G1(){var Te,Ul,Ke;const{workflows:s,order:r,conn:p}=_0(),[o,x]=G.useState(Gd.get("wf")),[v,T]=G.useState(Gd.get("run")),[_,j]=G.useState(null),[m,A]=G.useState(!0),[O,C]=G.useState(248),[B,X]=G.useState(ys()),[P,K]=G.useState([]),[U,Q]=G.useState(q1),{beats:W,log:F,arrival:yt}=K0(s,r),R=J0(W);G.useEffect(()=>{yt&&w0()},[yt]);const J=(o&&s[o]?o:null)??r.find(V=>Xd(s[V])==="running")??r[0]??null,Nt=J&&((Te=s[J])==null?void 0:Te.snap)||ps,Lt=gs(Nt),Nl=J?(Ul=s[J])==null?void 0:Ul.ledger:void 0,Vt=((Nl==null?void 0:Nl.items)??[]).filter(V=>V.status==="open").map(V=>({...V,id:V.key})),Zt=G.useRef({});G.useEffect(()=>{for(const V of r){const gt=Xd(s[V]);if(!gt)continue;const El=Zt.current[V];El!==void 0&&El!==gt&&(gt==="done"?L0():gt==="failed"&&Z0()),Zt.current[V]=gt}},[s,r]),G.useEffect(()=>{const V=new URL(window.location.href);J?V.searchParams.set("wf",J):V.searchParams.delete("wf"),v?V.searchParams.set("run",v):V.searchParams.delete("run"),window.history.replaceState(null,"",V)},[J,v]),G.useEffect(()=>{if(v===null||!J){j(null);return}let V=!0;return j(null),fetch(`/api/workflow/${encodeURIComponent(J)}/history/${encodeURIComponent(v)}`).then(gt=>gt.ok?gt.json():null).then(gt=>V&&j(gt)).catch(()=>V&&T(null)),()=>{V=!1}},[v,J]);const je=V=>{x(V),T(null)},ze=(V,gt)=>{x(V),T(gt)},ol=V=>K(gt=>gt.includes(V)?gt.filter(El=>El!==V):[...gt,V]),[M,H]=G.useState(!1),w=G.useRef(new Set),ct=(Ke=Nt.status)==null?void 0:Ke.run_id;G.useEffect(()=>{if(v===null&&Lt.overallStatus==="done"&&Vt.length>0&&ct&&!w.current.has(`${J}:${ct}`)){const V=setTimeout(()=>H(!0),1500);return()=>clearTimeout(V)}},[Lt.overallStatus,Vt.length,ct,J,v]);const pt=async V=>{if(!J)return{ok:!1,error:"no active workflow"};try{const gt=await fetch(`/api/workflow/${encodeURIComponent(J)}/apply-suggestion`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({suggestions:V})}),El=await gt.json().catch(()=>({}));return gt.ok?{ok:!0}:{ok:!1,error:El.error}}catch(gt){return{ok:!1,error:String(gt)}}},Bt=async(V,gt)=>{if(!J)return{ok:!1};try{return{ok:(await fetch(`/api/workflow/${encodeURIComponent(J)}/approve`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({step:V,decisions:gt})})).ok}}catch{return{ok:!1}}},ft=v!==null,I=ft?_?gs(_.snapshot):null:Lt,Et=!!(Nt.status&&typeof Nt.status=="object"&&Object.keys(Nt.status.steps??{}).length>0),rl=ft?!!_:Et,Al=()=>{!ft&&ct&&w.current.add(`${J}:${ct}`),H(!1)},Ve=async V=>{if(!(!J||V.length===0))try{await fetch(`/api/workflow/${encodeURIComponent(J)}/insights/decide`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({keys:V,status:"dismissed"})})}catch{}};return c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"aurora"}),c.jsxs("div",{className:"flex h-screen overflow-hidden",children:[m&&c.jsx(_1,{workflows:s,order:r,activeWf:J,selectedRun:v,onPickWorkflow:je,onPickRun:ze,onPin:ol,width:O,onResize:C}),c.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[c.jsx(t1,{model:I??Lt,conn:p,viewing:ft,muted:B,onToggleMute:()=>{const V=!B;Q0(V),X(V)},onBackToLive:()=>T(null),onToggleSidebar:()=>A(V=>!V),optimizeCount:Vt.length,optimizeOpen:M,onToggleOptimize:()=>H(V=>!V)}),P.length>0&&c.jsx(Q1,{pinned:P,workflows:s,activeWf:J,onPick:je,onUnpin:ol}),(I==null?void 0:I.error)&&c.jsx("div",{className:"px-5 pt-4",children:c.jsxs("div",{className:"rounded-lg border border-rose/30 bg-rose/10 px-4 py-2.5 font-mono text-xs text-rose",children:["⚠ ",I.error]})}),c.jsxs("div",{className:"relative min-h-0 flex-1 overflow-hidden",children:[ft&&!_?c.jsx("div",{className:"grid h-full place-items-center",children:c.jsx("span",{className:"font-mono text-xs text-mist",children:"loading run…"})}):rl&&I?c.jsx(fl.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.2,ease:[.22,1,.36,1]},className:"board-scroll h-full overflow-y-auto",children:c.jsx(z1,{model:I,onApprove:ft?void 0:Bt})},`${J}:${v??"live"}`):c.jsx(L1,{model:Lt,statusPath:Nt.statusPath}),c.jsx(Ne,{children:M&&Vt.length>0&&J&&c.jsx(B1,{workflow:J,suggestions:Vt,onApply:pt,onDismiss:Ve,onClose:Al})})]}),c.jsx(R1,{beats:F,arrival:yt,order:r,mode:U,onMode:Q,lastBeatIso:R})]})]})]})}function Xd(s){var r;return(r=s==null?void 0:s.snap.status)==null?void 0:r.status}const X1={running:"bg-cyan animate-pulse",done:"bg-mint",failed:"bg-rose"};function Q1({pinned:s,workflows:r,activeWf:p,onPick:o,onUnpin:x}){return c.jsx("div",{className:"flex items-center gap-1.5 overflow-x-auto border-b border-line bg-ink/60 px-3 py-1.5",children:s.map(v=>{var O;const T=(O=r[v])==null?void 0:O.snap.status,_=(T==null?void 0:T.steps)??{},j=Object.keys(_).length,m=Object.values(_).filter(C=>(C==null?void 0:C.status)==="done").length,A=p===v;return c.jsxs("div",{className:`flex shrink-0 items-center gap-1.5 rounded-lg border px-2.5 py-1 ${A?"border-iris/40 bg-iris/10":"border-line bg-panel/40"}`,children:[c.jsxs("button",{onClick:()=>o(v),className:"flex items-center gap-1.5",children:[c.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${X1[(T==null?void 0:T.status)??""]??"bg-line-2"}`}),c.jsx("span",{className:"font-mono text-xs text-chalk",children:v}),j>0&&c.jsxs("span",{className:"font-mono text-[10px] text-mist",children:[m,"/",j]})]}),c.jsx("button",{onClick:()=>x(v),title:"Unpin",className:"text-mist hover:text-chalk",children:"×"})]},v)})})}function L1({model:s,statusPath:r}){return c.jsx("div",{className:"grid h-full place-items-center px-5",children:c.jsxs("div",{className:"max-w-md text-center",children:[c.jsx("img",{src:"./conductor.svg",alt:"",className:"mx-auto h-12 w-12 opacity-80"}),s.hasConductor?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"mt-5 flex items-center justify-center gap-2",children:[c.jsx("span",{className:"font-mono text-sm font-medium text-chalk",children:s.workflow}),c.jsxs("span",{className:"rounded-md border border-line bg-panel px-2 py-0.5 font-mono text-[11px] text-mist",children:[s.total," step",s.total===1?"":"s"]})]}),c.jsx("h1",{className:"mt-4 text-xl font-semibold text-chalk",children:"Waiting for the agent to start execution."}),c.jsxs("p",{className:"mt-2 text-sm leading-relaxed text-mist",children:["Cards will appear the moment it writes"," ",c.jsx("code",{className:"rounded bg-panel px-1.5 py-0.5 font-mono text-xs text-cyan",children:r}),"."]})]}):c.jsxs(c.Fragment,{children:[c.jsxs("h1",{className:"mt-5 text-xl font-semibold text-chalk",children:["Watching ",c.jsx("span",{className:"font-mono text-cyan",children:".conductor/"})," for changes"]}),c.jsx("p",{className:"mt-2 text-sm leading-relaxed text-mist",children:"The board will light up when your agent writes a conductor and a status file. Start your agent and point it at this project."})]}),c.jsxs("div",{className:"mt-6 flex items-center justify-center gap-2 font-mono text-xs text-mist",children:[c.jsx("span",{className:"h-1.5 w-1.5 animate-pulse rounded-full bg-mint"}),"watching for changes"]}),c.jsx("p",{className:"mt-2 font-mono text-[11px] text-line-2",children:r})]})})}D0.createRoot(document.getElementById("root")).render(c.jsx(G.StrictMode,{children:c.jsx(G1,{})}));
|