conductor-board 2.2.0 → 2.3.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.
@@ -0,0 +1,34 @@
1
+ import{r as am,a as Q,j as c,m as Gt,A as Ul,L as Q0}from"./motion-Dmvx5jlk.js";import{i as Z0}from"./yaml-NA7d4LV6.js";(function(){const d=document.createElement("link").relList;if(d&&d.supports&&d.supports("modulepreload"))return;for(const p of document.querySelectorAll('link[rel="modulepreload"]'))f(p);new MutationObserver(p=>{for(const v of p)if(v.type==="childList")for(const y of v.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&f(y)}).observe(document,{childList:!0,subtree:!0});function o(p){const v={};return p.integrity&&(v.integrity=p.integrity),p.referrerPolicy&&(v.referrerPolicy=p.referrerPolicy),p.crossOrigin==="use-credentials"?v.credentials="include":p.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function f(p){if(p.ep)return;p.ep=!0;const v=o(p);fetch(p.href,v)}})();var ys={exports:{}},Rn={},bs={exports:{}},Ss={};/**
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 Yd;function w0(){return Yd||(Yd=1,(function(s){function d(E,B){var J=E.length;E.push(B);t:for(;0<J;){var gt=J-1>>>1,ht=E[gt];if(0<p(ht,B))E[gt]=B,E[J]=ht,J=gt;else break t}}function o(E){return E.length===0?null:E[0]}function f(E){if(E.length===0)return null;var B=E[0],J=E.pop();if(J!==B){E[0]=J;t:for(var gt=0,ht=E.length,qt=ht>>>1;gt<qt;){var ut=2*(gt+1)-1,X=E[ut],Mt=ut+1,xe=E[Mt];if(0>p(X,J))Mt<ht&&0>p(xe,X)?(E[gt]=xe,E[Mt]=J,gt=Mt):(E[gt]=X,E[ut]=J,gt=ut);else if(Mt<ht&&0>p(xe,J))E[gt]=xe,E[Mt]=J,gt=Mt;else break t}}return B}function p(E,B){var J=E.sortIndex-B.sortIndex;return J!==0?J:E.id-B.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 y=Date,U=y.now();s.unstable_now=function(){return y.now()-U}}var O=[],h=[],j=1,T=null,D=3,C=!1,G=!1,q=!1,k=!1,P=typeof setTimeout=="function"?setTimeout:null,mt=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function H(E){for(var B=o(h);B!==null;){if(B.callback===null)f(h);else if(B.startTime<=E)f(h),B.sortIndex=B.expirationTime,d(O,B);else break;B=o(h)}}function Z(E){if(q=!1,H(E),!G)if(o(O)!==null)G=!0,W||(W=!0,Bt());else{var B=o(h);B!==null&&$t(Z,B.startTime-E)}}var W=!1,R=-1,ft=5,jt=-1;function Lt(){return k?!0:!(s.unstable_now()-jt<ft)}function Me(){if(k=!1,W){var E=s.unstable_now();jt=E;var B=!0;try{t:{G=!1,q&&(q=!1,mt(R),R=-1),C=!0;var J=D;try{e:{for(H(E),T=o(O);T!==null&&!(T.expirationTime>E&&Lt());){var gt=T.callback;if(typeof gt=="function"){T.callback=null,D=T.priorityLevel;var ht=gt(T.expirationTime<=E);if(E=s.unstable_now(),typeof ht=="function"){T.callback=ht,H(E),B=!0;break e}T===o(O)&&f(O),H(E)}else f(O);T=o(O)}if(T!==null)B=!0;else{var qt=o(h);qt!==null&&$t(Z,qt.startTime-E),B=!1}}break t}finally{T=null,D=J,C=!1}B=void 0}}finally{B?Bt():W=!1}}}var Bt;if(typeof $=="function")Bt=function(){$(Me)};else if(typeof MessageChannel<"u"){var la=new MessageChannel,zt=la.port2;la.port1.onmessage=Me,Bt=function(){zt.postMessage(null)}}else Bt=function(){P(Me,0)};function $t(E,B){R=P(function(){E(s.unstable_now())},B)}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(E){E.callback=null},s.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ft=0<E?Math.floor(1e3/E):5},s.unstable_getCurrentPriorityLevel=function(){return D},s.unstable_next=function(E){switch(D){case 1:case 2:case 3:var B=3;break;default:B=D}var J=D;D=B;try{return E()}finally{D=J}},s.unstable_requestPaint=function(){k=!0},s.unstable_runWithPriority=function(E,B){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var J=D;D=E;try{return B()}finally{D=J}},s.unstable_scheduleCallback=function(E,B,J){var gt=s.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?gt+J:gt):J=gt,E){case 1:var ht=-1;break;case 2:ht=250;break;case 5:ht=1073741823;break;case 4:ht=1e4;break;default:ht=5e3}return ht=J+ht,E={id:j++,callback:B,priorityLevel:E,startTime:J,expirationTime:ht,sortIndex:-1},J>gt?(E.sortIndex=J,d(h,E),o(O)===null&&E===o(h)&&(q?(mt(R),R=-1):q=!0,$t(Z,J-gt))):(E.sortIndex=ht,d(O,E),G||C||(G=!0,W||(W=!0,Bt()))),E},s.unstable_shouldYield=Lt,s.unstable_wrapCallback=function(E){var B=D;return function(){var J=D;D=B;try{return E.apply(this,arguments)}finally{D=J}}}})(Ss)),Ss}var Gd;function V0(){return Gd||(Gd=1,bs.exports=w0()),bs.exports}var js={exports:{}},kt={};/**
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 Ld;function K0(){if(Ld)return kt;Ld=1;var s=am();function d(O){var h="https://react.dev/errors/"+O;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var j=2;j<arguments.length;j++)h+="&args[]="+encodeURIComponent(arguments[j])}return"Minified React error #"+O+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var f={d:{f:o,r:function(){throw Error(d(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},p=Symbol.for("react.portal");function v(O,h,j){var T=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:p,key:T==null?null:""+T,children:O,containerInfo:h,implementation:j}}var y=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function U(O,h){if(O==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,kt.createPortal=function(O,h){var j=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(d(299));return v(O,h,null,j)},kt.flushSync=function(O){var h=y.T,j=f.p;try{if(y.T=null,f.p=2,O)return O()}finally{y.T=h,f.p=j,f.d.f()}},kt.preconnect=function(O,h){typeof O=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,f.d.C(O,h))},kt.prefetchDNS=function(O){typeof O=="string"&&f.d.D(O)},kt.preinit=function(O,h){if(typeof O=="string"&&h&&typeof h.as=="string"){var j=h.as,T=U(j,h.crossOrigin),D=typeof h.integrity=="string"?h.integrity:void 0,C=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;j==="style"?f.d.S(O,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:T,integrity:D,fetchPriority:C}):j==="script"&&f.d.X(O,{crossOrigin:T,integrity:D,fetchPriority:C,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},kt.preinitModule=function(O,h){if(typeof O=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var j=U(h.as,h.crossOrigin);f.d.M(O,{crossOrigin:j,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&f.d.M(O)},kt.preload=function(O,h){if(typeof O=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var j=h.as,T=U(j,h.crossOrigin);f.d.L(O,j,{crossOrigin:T,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},kt.preloadModule=function(O,h){if(typeof O=="string")if(h){var j=U(h.as,h.crossOrigin);f.d.m(O,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:j,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else f.d.m(O)},kt.requestFormReset=function(O){f.d.r(O)},kt.unstable_batchedUpdates=function(O,h){return O(h)},kt.useFormState=function(O,h,j){return y.H.useFormState(O,h,j)},kt.useFormStatus=function(){return y.H.useHostTransitionStatus()},kt.version="19.2.7",kt}var Xd;function J0(){if(Xd)return js.exports;Xd=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(d){console.error(d)}}return s(),js.exports=K0(),js.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 Qd;function k0(){if(Qd)return Rn;Qd=1;var s=V0(),d=am(),o=J0();function f(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function p(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function v(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function y(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function U(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function O(t){if(v(t)!==t)throw Error(f(188))}function h(t){var e=t.alternate;if(!e){if(e=v(t),e===null)throw Error(f(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return O(n),t;if(u===a)return O(n),e;u=u.sibling}throw Error(f(188))}if(l.return!==a.return)l=n,a=u;else{for(var i=!1,r=n.child;r;){if(r===l){i=!0,l=n,a=u;break}if(r===a){i=!0,a=n,l=u;break}r=r.sibling}if(!i){for(r=u.child;r;){if(r===l){i=!0,l=u,a=n;break}if(r===a){i=!0,a=u,l=n;break}r=r.sibling}if(!i)throw Error(f(189))}}if(l.alternate!==a)throw Error(f(190))}if(l.tag!==3)throw Error(f(188));return l.stateNode.current===l?t:e}function j(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=j(t),e!==null)return e;t=t.sibling}return null}var T=Object.assign,D=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),mt=Symbol.for("react.consumer"),$=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),ft=Symbol.for("react.lazy"),jt=Symbol.for("react.activity"),Lt=Symbol.for("react.memo_cache_sentinel"),Me=Symbol.iterator;function Bt(t){return t===null||typeof t!="object"?null:(t=Me&&t[Me]||t["@@iterator"],typeof t=="function"?t:null)}var la=Symbol.for("react.client.reference");function zt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===la?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case q:return"Fragment";case P:return"Profiler";case k:return"StrictMode";case Z:return"Suspense";case W:return"SuspenseList";case jt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case G:return"Portal";case $:return t.displayName||"Context";case mt:return(t._context.displayName||"Context")+".Consumer";case H:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case R:return e=t.displayName||null,e!==null?e:zt(t.type)||"Memo";case ft:e=t._payload,t=t._init;try{return zt(t(e))}catch{}}return null}var $t=Array.isArray,E=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},gt=[],ht=-1;function qt(t){return{current:t}}function ut(t){0>ht||(t.current=gt[ht],gt[ht]=null,ht--)}function X(t,e){ht++,gt[ht]=t.current,t.current=e}var Mt=qt(null),xe=qt(null),Wt=qt(null),ve=qt(null);function Xt(t,e){switch(X(Wt,e),X(xe,t),X(Mt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?cd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=cd(e),t=sd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}ut(Mt),X(Mt,t)}function ge(){ut(Mt),ut(xe),ut(Wt)}function Cl(t){t.memoizedState!==null&&X(ve,t);var e=Mt.current,l=sd(e,t.type);e!==l&&(X(xe,t),X(Mt,l))}function Ye(t){xe.current===t&&(ut(Mt),ut(xe)),ve.current===t&&(ut(ve),Cn._currentValue=J)}var aa,nl;function Ge(t){if(aa===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);aa=e&&e[1]||"",nl=-1<l.stack.indexOf(`
26
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
27
+ `+aa+t+nl}var ul=!1;function Hl(t,e){if(!t||ul)return"";ul=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(z){var N=z}Reflect.construct(t,[],_)}else{try{_.call()}catch(z){N=z}t.call(_.prototype)}}else{try{throw Error()}catch(z){N=z}(_=t())&&typeof _.catch=="function"&&_.catch(function(){})}}catch(z){if(z&&N&&typeof z.stack=="string")return[z.stack,N.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],r=u[1];if(i&&r){var m=i.split(`
28
+ `),S=r.split(`
29
+ `);for(n=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;n<S.length&&!S[n].includes("DetermineComponentFrameRoot");)n++;if(a===m.length||n===S.length)for(a=m.length-1,n=S.length-1;1<=a&&0<=n&&m[a]!==S[n];)n--;for(;1<=a&&0<=n;a--,n--)if(m[a]!==S[n]){if(a!==1||n!==1)do if(a--,n--,0>n||m[a]!==S[n]){var A=`
30
+ `+m[a].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),A}while(1<=a&&0<=n);break}}}finally{ul=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Ge(l):""}function ii(t,e){switch(t.tag){case 26:case 27:case 5:return Ge(t.type);case 16:return Ge("Lazy");case 13:return t.child!==e&&e!==null?Ge("Suspense Fallback"):Ge("Suspense");case 19:return Ge("SuspenseList");case 0:case 15:return Hl(t.type,!1);case 11:return Hl(t.type.render,!1);case 1:return Hl(t.type,!0);case 31:return Ge("Activity");default:return""}}function Yn(t){try{var e="",l=null;do e+=ii(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
31
+ Error generating stack: `+a.message+`
32
+ `+a.stack}}var na=Object.prototype.hasOwnProperty,ua=s.unstable_scheduleCallback,V=s.unstable_cancelCallback,ot=s.unstable_shouldYield,Ce=s.unstable_requestPaint,ie=s.unstable_now,jm=s.unstable_getCurrentPriorityLevel,Rs=s.unstable_ImmediatePriority,Ys=s.unstable_UserBlockingPriority,Gn=s.unstable_NormalPriority,Nm=s.unstable_LowPriority,Gs=s.unstable_IdlePriority,zm=s.log,Tm=s.unstable_setDisableYieldValue,wa=null,ce=null;function il(t){if(typeof zm=="function"&&Tm(t),ce&&typeof ce.setStrictMode=="function")try{ce.setStrictMode(wa,t)}catch{}}var se=Math.clz32?Math.clz32:Om,Am=Math.log,Em=Math.LN2;function Om(t){return t>>>=0,t===0?32:31-(Am(t)/Em|0)|0}var Ln=256,Xn=262144,Qn=4194304;function Bl(t){var e=t&42;if(e!==0)return e;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 Zn(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,u=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var r=a&134217727;return r!==0?(a=r&~u,a!==0?n=Bl(a):(i&=r,i!==0?n=Bl(i):l||(l=r&~t,l!==0&&(n=Bl(l))))):(r=a&~u,r!==0?n=Bl(r):i!==0?n=Bl(i):l||(l=a&~t,l!==0&&(n=Bl(l)))),n===0?0:e!==0&&e!==n&&(e&u)===0&&(u=n&-n,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:n}function Va(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Mm(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Ls(){var t=Qn;return Qn<<=1,(Qn&62914560)===0&&(Qn=4194304),t}function ci(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Ka(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function _m(t,e,l,a,n,u){var i=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var r=t.entanglements,m=t.expirationTimes,S=t.hiddenUpdates;for(l=i&~l;0<l;){var A=31-se(l),_=1<<A;r[A]=0,m[A]=-1;var N=S[A];if(N!==null)for(S[A]=null,A=0;A<N.length;A++){var z=N[A];z!==null&&(z.lane&=-536870913)}l&=~_}a!==0&&Xs(t,a,0),u!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=u&~(i&~e))}function Xs(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-se(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function Qs(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-se(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function Zs(t,e){var l=e&-e;return l=(l&42)!==0?1:si(l),(l&(t.suspendedLanes|e))!==0?0:l}function si(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 fi(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ws(){var t=B.p;return t!==0?t:(t=window.event,t===void 0?32:Dd(t.type))}function Vs(t,e){var l=B.p;try{return B.p=t,e()}finally{B.p=l}}var cl=Math.random().toString(36).slice(2),Qt="__reactFiber$"+cl,Pt="__reactProps$"+cl,ia="__reactContainer$"+cl,oi="__reactEvents$"+cl,Dm="__reactListeners$"+cl,Um="__reactHandles$"+cl,Ks="__reactResources$"+cl,Ja="__reactMarker$"+cl;function ri(t){delete t[Qt],delete t[Pt],delete t[oi],delete t[Dm],delete t[Um]}function ca(t){var e=t[Qt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[ia]||l[Qt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=pd(t);t!==null;){if(l=t[Qt])return l;t=pd(t)}return e}t=l,l=t.parentNode}return null}function sa(t){if(t=t[Qt]||t[ia]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ka(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(f(33))}function fa(t){var e=t[Ks];return e||(e=t[Ks]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Rt(t){t[Ja]=!0}var Js=new Set,ks={};function ql(t,e){oa(t,e),oa(t+"Capture",e)}function oa(t,e){for(ks[t]=e,t=0;t<e.length;t++)Js.add(e[t])}var Cm=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]*$"),$s={},Ws={};function Hm(t){return na.call(Ws,t)?!0:na.call($s,t)?!1:Cm.test(t)?Ws[t]=!0:($s[t]=!0,!1)}function wn(t,e,l){if(Hm(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Vn(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function Le(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function ye(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Fs(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Bm(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(i){l=""+i,u.call(this,i)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function di(t){if(!t._valueTracker){var e=Fs(t)?"checked":"value";t._valueTracker=Bm(t,e,""+t[e])}}function Is(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=Fs(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function Kn(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 qm=/[\n"\\]/g;function be(t){return t.replace(qm,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function mi(t,e,l,a,n,u,i,r){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),e!=null?i==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ye(e)):t.value!==""+ye(e)&&(t.value=""+ye(e)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),e!=null?hi(t,i,ye(e)):l!=null?hi(t,i,ye(l)):a!=null&&t.removeAttribute("value"),n==null&&u!=null&&(t.defaultChecked=!!u),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.name=""+ye(r):t.removeAttribute("name")}function Ps(t,e,l,a,n,u,i,r){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){di(t);return}l=l!=null?""+ye(l):"",e=e!=null?""+ye(e):l,r||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=r?t.checked:!!a,t.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i),di(t)}function hi(t,e,l){e==="number"&&Kn(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function ra(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+ye(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function tf(t,e,l){if(e!=null&&(e=""+ye(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+ye(l):""}function ef(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(f(92));if($t(a)){if(1<a.length)throw Error(f(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=ye(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),di(t)}function da(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Rm=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 lf(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||Rm.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function af(t,e,l){if(e!=null&&typeof e!="object")throw Error(f(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&lf(t,n,a)}else for(var u in e)e.hasOwnProperty(u)&&lf(t,u,e[u])}function pi(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 Ym=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"]]),Gm=/^[\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 Jn(t){return Gm.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Xe(){}var xi=null;function vi(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ma=null,ha=null;function nf(t){var e=sa(t);if(e&&(t=e.stateNode)){var l=t[Pt]||null;t:switch(t=e.stateNode,e.type){case"input":if(mi(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+be(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[Pt]||null;if(!n)throw Error(f(90));mi(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&Is(a)}break t;case"textarea":tf(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&ra(t,!!l.multiple,e,!1)}}}var gi=!1;function uf(t,e,l){if(gi)return t(e,l);gi=!0;try{var a=t(e);return a}finally{if(gi=!1,(ma!==null||ha!==null)&&(Hu(),ma&&(e=ma,t=ha,ha=ma=null,nf(e),t)))for(e=0;e<t.length;e++)nf(t[e])}}function $a(t,e){var l=t.stateNode;if(l===null)return null;var a=l[Pt]||null;if(a===null)return null;l=a[e];t:switch(e){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(l&&typeof l!="function")throw Error(f(231,e,typeof l));return l}var Qe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yi=!1;if(Qe)try{var Wa={};Object.defineProperty(Wa,"passive",{get:function(){yi=!0}}),window.addEventListener("test",Wa,Wa),window.removeEventListener("test",Wa,Wa)}catch{yi=!1}var sl=null,bi=null,kn=null;function cf(){if(kn)return kn;var t,e=bi,l=e.length,a,n="value"in sl?sl.value:sl.textContent,u=n.length;for(t=0;t<l&&e[t]===n[t];t++);var i=l-t;for(a=1;a<=i&&e[l-a]===n[u-a];a++);return kn=n.slice(t,1<a?1-a:void 0)}function $n(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Wn(){return!0}function sf(){return!1}function te(t){function e(l,a,n,u,i){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var r in t)t.hasOwnProperty(r)&&(l=t[r],this[r]=l?l(u):u[r]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Wn:sf,this.isPropagationStopped=sf,this}return T(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Wn)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Wn)},persist:function(){},isPersistent:Wn}),e}var Rl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fn=te(Rl),Fa=T({},Rl,{view:0,detail:0}),Lm=te(Fa),Si,ji,Ia,In=T({},Fa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zi,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!==Ia&&(Ia&&t.type==="mousemove"?(Si=t.screenX-Ia.screenX,ji=t.screenY-Ia.screenY):ji=Si=0,Ia=t),Si)},movementY:function(t){return"movementY"in t?t.movementY:ji}}),ff=te(In),Xm=T({},In,{dataTransfer:0}),Qm=te(Xm),Zm=T({},Fa,{relatedTarget:0}),Ni=te(Zm),wm=T({},Rl,{animationName:0,elapsedTime:0,pseudoElement:0}),Vm=te(wm),Km=T({},Rl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Jm=te(Km),km=T({},Rl,{data:0}),of=te(km),$m={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wm={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"},Fm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Im(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Fm[t])?!!e[t]:!1}function zi(){return Im}var Pm=T({},Fa,{key:function(t){if(t.key){var e=$m[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=$n(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Wm[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zi,charCode:function(t){return t.type==="keypress"?$n(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?$n(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),th=te(Pm),eh=T({},In,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rf=te(eh),lh=T({},Fa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zi}),ah=te(lh),nh=T({},Rl,{propertyName:0,elapsedTime:0,pseudoElement:0}),uh=te(nh),ih=T({},In,{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}),ch=te(ih),sh=T({},Rl,{newState:0,oldState:0}),fh=te(sh),oh=[9,13,27,32],Ti=Qe&&"CompositionEvent"in window,Pa=null;Qe&&"documentMode"in document&&(Pa=document.documentMode);var rh=Qe&&"TextEvent"in window&&!Pa,df=Qe&&(!Ti||Pa&&8<Pa&&11>=Pa),mf=" ",hf=!1;function pf(t,e){switch(t){case"keyup":return oh.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var pa=!1;function dh(t,e){switch(t){case"compositionend":return xf(e);case"keypress":return e.which!==32?null:(hf=!0,mf);case"textInput":return t=e.data,t===mf&&hf?null:t;default:return null}}function mh(t,e){if(pa)return t==="compositionend"||!Ti&&pf(t,e)?(t=cf(),kn=bi=sl=null,pa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return df&&e.locale!=="ko"?null:e.data;default:return null}}var hh={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 vf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!hh[t.type]:e==="textarea"}function gf(t,e,l,a){ma?ha?ha.push(a):ha=[a]:ma=a,e=Xu(e,"onChange"),0<e.length&&(l=new Fn("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var tn=null,en=null;function ph(t){ed(t,0)}function Pn(t){var e=ka(t);if(Is(e))return t}function yf(t,e){if(t==="change")return e}var bf=!1;if(Qe){var Ai;if(Qe){var Ei="oninput"in document;if(!Ei){var Sf=document.createElement("div");Sf.setAttribute("oninput","return;"),Ei=typeof Sf.oninput=="function"}Ai=Ei}else Ai=!1;bf=Ai&&(!document.documentMode||9<document.documentMode)}function jf(){tn&&(tn.detachEvent("onpropertychange",Nf),en=tn=null)}function Nf(t){if(t.propertyName==="value"&&Pn(en)){var e=[];gf(e,en,t,vi(t)),uf(ph,e)}}function xh(t,e,l){t==="focusin"?(jf(),tn=e,en=l,tn.attachEvent("onpropertychange",Nf)):t==="focusout"&&jf()}function vh(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Pn(en)}function gh(t,e){if(t==="click")return Pn(e)}function yh(t,e){if(t==="input"||t==="change")return Pn(e)}function bh(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var fe=typeof Object.is=="function"?Object.is:bh;function ln(t,e){if(fe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!na.call(e,n)||!fe(t[n],e[n]))return!1}return!0}function zf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Tf(t,e){var l=zf(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=zf(l)}}function Af(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Af(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Ef(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Kn(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=Kn(t.document)}return e}function Oi(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Sh=Qe&&"documentMode"in document&&11>=document.documentMode,xa=null,Mi=null,an=null,_i=!1;function Of(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;_i||xa==null||xa!==Kn(a)||(a=xa,"selectionStart"in a&&Oi(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}),an&&ln(an,a)||(an=a,a=Xu(Mi,"onSelect"),0<a.length&&(e=new Fn("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=xa)))}function Yl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var va={animationend:Yl("Animation","AnimationEnd"),animationiteration:Yl("Animation","AnimationIteration"),animationstart:Yl("Animation","AnimationStart"),transitionrun:Yl("Transition","TransitionRun"),transitionstart:Yl("Transition","TransitionStart"),transitioncancel:Yl("Transition","TransitionCancel"),transitionend:Yl("Transition","TransitionEnd")},Di={},Mf={};Qe&&(Mf=document.createElement("div").style,"AnimationEvent"in window||(delete va.animationend.animation,delete va.animationiteration.animation,delete va.animationstart.animation),"TransitionEvent"in window||delete va.transitionend.transition);function Gl(t){if(Di[t])return Di[t];if(!va[t])return t;var e=va[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Mf)return Di[t]=e[l];return t}var _f=Gl("animationend"),Df=Gl("animationiteration"),Uf=Gl("animationstart"),jh=Gl("transitionrun"),Nh=Gl("transitionstart"),zh=Gl("transitioncancel"),Cf=Gl("transitionend"),Hf=new Map,Ui="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(" ");Ui.push("scrollEnd");function _e(t,e){Hf.set(t,e),ql(e,[t])}var tu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=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(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Se=[],ga=0,Ci=0;function eu(){for(var t=ga,e=Ci=ga=0;e<t;){var l=Se[e];Se[e++]=null;var a=Se[e];Se[e++]=null;var n=Se[e];Se[e++]=null;var u=Se[e];if(Se[e++]=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&&Bf(l,n,u)}}function lu(t,e,l,a){Se[ga++]=t,Se[ga++]=e,Se[ga++]=l,Se[ga++]=a,Ci|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Hi(t,e,l,a){return lu(t,e,l,a),au(t)}function Ll(t,e){return lu(t,null,null,e),au(t)}function Bf(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=t.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),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&&e!==null&&(n=31-se(l),t=u.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),u):null}function au(t){if(50<An)throw An=0,Zc=null,Error(f(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ya={};function Th(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,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 oe(t,e,l,a){return new Th(t,e,l,a)}function Bi(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ze(t,e){var l=t.alternate;return l===null?(l=oe(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function qf(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function nu(t,e,l,a,n,u){var i=0;if(a=t,typeof t=="function")Bi(t)&&(i=1);else if(typeof t=="string")i=_0(t,l,Mt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case jt:return t=oe(31,l,e,n),t.elementType=jt,t.lanes=u,t;case q:return Xl(l.children,n,u,e);case k:i=8,n|=24;break;case P:return t=oe(12,l,e,n|2),t.elementType=P,t.lanes=u,t;case Z:return t=oe(13,l,e,n),t.elementType=Z,t.lanes=u,t;case W:return t=oe(19,l,e,n),t.elementType=W,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case $:i=10;break t;case mt:i=9;break t;case H:i=11;break t;case R:i=14;break t;case ft:i=16,a=null;break t}i=29,l=Error(f(130,t===null?"null":typeof t,"")),a=null}return e=oe(i,l,e,n),e.elementType=t,e.type=a,e.lanes=u,e}function Xl(t,e,l,a){return t=oe(7,t,a,e),t.lanes=l,t}function qi(t,e,l){return t=oe(6,t,null,e),t.lanes=l,t}function Rf(t){var e=oe(18,null,null,0);return e.stateNode=t,e}function Ri(t,e,l){return e=oe(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Yf=new WeakMap;function je(t,e){if(typeof t=="object"&&t!==null){var l=Yf.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Yn(e)},Yf.set(t,e),e)}return{value:t,source:e,stack:Yn(e)}}var ba=[],Sa=0,uu=null,nn=0,Ne=[],ze=0,fl=null,He=1,Be="";function we(t,e){ba[Sa++]=nn,ba[Sa++]=uu,uu=t,nn=e}function Gf(t,e,l){Ne[ze++]=He,Ne[ze++]=Be,Ne[ze++]=fl,fl=t;var a=He;t=Be;var n=32-se(a)-1;a&=~(1<<n),l+=1;var u=32-se(e)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,He=1<<32-se(e)+n|l<<n|a,Be=u+t}else He=1<<u|l<<n|a,Be=t}function Yi(t){t.return!==null&&(we(t,1),Gf(t,1,0))}function Gi(t){for(;t===uu;)uu=ba[--Sa],ba[Sa]=null,nn=ba[--Sa],ba[Sa]=null;for(;t===fl;)fl=Ne[--ze],Ne[ze]=null,Be=Ne[--ze],Ne[ze]=null,He=Ne[--ze],Ne[ze]=null}function Lf(t,e){Ne[ze++]=He,Ne[ze++]=Be,Ne[ze++]=fl,He=e.id,Be=e.overflow,fl=t}var Zt=null,bt=null,nt=!1,ol=null,Te=!1,Li=Error(f(519));function rl(t){var e=Error(f(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw un(je(e,t)),Li}function Xf(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[Qt]=t,e[Pt]=a,l){case"dialog":et("cancel",e),et("close",e);break;case"iframe":case"object":case"embed":et("load",e);break;case"video":case"audio":for(l=0;l<On.length;l++)et(On[l],e);break;case"source":et("error",e);break;case"img":case"image":case"link":et("error",e),et("load",e);break;case"details":et("toggle",e);break;case"input":et("invalid",e),Ps(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":et("invalid",e);break;case"textarea":et("invalid",e),ef(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||ud(e.textContent,l)?(a.popover!=null&&(et("beforetoggle",e),et("toggle",e)),a.onScroll!=null&&et("scroll",e),a.onScrollEnd!=null&&et("scrollend",e),a.onClick!=null&&(e.onclick=Xe),e=!0):e=!1,e||rl(t,!0)}function Qf(t){for(Zt=t.return;Zt;)switch(Zt.tag){case 5:case 31:case 13:Te=!1;return;case 27:case 3:Te=!0;return;default:Zt=Zt.return}}function ja(t){if(t!==Zt)return!1;if(!nt)return Qf(t),nt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||ns(t.type,t.memoizedProps)),l=!l),l&&bt&&rl(t),Qf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(f(317));bt=hd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(f(317));bt=hd(t)}else e===27?(e=bt,Tl(t.type)?(t=fs,fs=null,bt=t):bt=e):bt=Zt?Ee(t.stateNode.nextSibling):null;return!0}function Ql(){bt=Zt=null,nt=!1}function Xi(){var t=ol;return t!==null&&(ne===null?ne=t:ne.push.apply(ne,t),ol=null),t}function un(t){ol===null?ol=[t]:ol.push(t)}var Qi=qt(null),Zl=null,Ve=null;function dl(t,e,l){X(Qi,e._currentValue),e._currentValue=l}function Ke(t){t._currentValue=Qi.current,ut(Qi)}function Zi(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function wi(t,e,l,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 r=u;u=n;for(var m=0;m<e.length;m++)if(r.context===e[m]){u.lanes|=l,r=u.alternate,r!==null&&(r.lanes|=l),Zi(u.return,l,t),a||(i=null);break t}u=r.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(f(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),Zi(i,l,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 Na(t,e,l,a){t=null;for(var n=e,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(f(387));if(i=i.memoizedProps,i!==null){var r=n.type;fe(n.pendingProps.value,i.value)||(t!==null?t.push(r):t=[r])}}else if(n===ve.current){if(i=n.alternate,i===null)throw Error(f(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Cn):t=[Cn])}n=n.return}t!==null&&wi(e,t,l,a),e.flags|=262144}function iu(t){for(t=t.firstContext;t!==null;){if(!fe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function wl(t){Zl=t,Ve=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function wt(t){return Zf(Zl,t)}function cu(t,e){return Zl===null&&wl(t),Zf(t,e)}function Zf(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},Ve===null){if(t===null)throw Error(f(308));Ve=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Ve=Ve.next=e;return l}var Ah=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},Eh=s.unstable_scheduleCallback,Oh=s.unstable_NormalPriority,_t={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vi(){return{controller:new Ah,data:new Map,refCount:0}}function cn(t){t.refCount--,t.refCount===0&&Eh(Oh,function(){t.controller.abort()})}var sn=null,Ki=0,za=0,Ta=null;function Mh(t,e){if(sn===null){var l=sn=[];Ki=0,za=$c(),Ta={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Ki++,e.then(wf,wf),e}function wf(){if(--Ki===0&&sn!==null){Ta!==null&&(Ta.status="fulfilled");var t=sn;sn=null,za=0,Ta=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function _h(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Vf=E.S;E.S=function(t,e){Mr=ie(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Mh(t,e),Vf!==null&&Vf(t,e)};var Vl=qt(null);function Ji(){var t=Vl.current;return t!==null?t:yt.pooledCache}function su(t,e){e===null?X(Vl,Vl.current):X(Vl,e.pool)}function Kf(){var t=Ji();return t===null?null:{parent:_t._currentValue,pool:t}}var Aa=Error(f(460)),ki=Error(f(474)),fu=Error(f(542)),ou={then:function(){}};function Jf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function kf(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(Xe,Xe),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Wf(t),t;default:if(typeof e.status=="string")e.then(Xe,Xe);else{if(t=yt,t!==null&&100<t.shellSuspendCounter)throw Error(f(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Wf(t),t}throw Jl=e,Aa}}function Kl(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Jl=l,Aa):l}}var Jl=null;function $f(){if(Jl===null)throw Error(f(459));var t=Jl;return Jl=null,t}function Wf(t){if(t===Aa||t===fu)throw Error(f(483))}var Ea=null,fn=0;function ru(t){var e=fn;return fn+=1,Ea===null&&(Ea=[]),kf(Ea,t,e)}function on(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function du(t,e){throw e.$$typeof===D?Error(f(525)):(t=Object.prototype.toString.call(e),Error(f(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Ff(t){function e(g,x){if(t){var b=g.deletions;b===null?(g.deletions=[x],g.flags|=16):b.push(x)}}function l(g,x){if(!t)return null;for(;x!==null;)e(g,x),x=x.sibling;return null}function a(g){for(var x=new Map;g!==null;)g.key!==null?x.set(g.key,g):x.set(g.index,g),g=g.sibling;return x}function n(g,x){return g=Ze(g,x),g.index=0,g.sibling=null,g}function u(g,x,b){return g.index=b,t?(b=g.alternate,b!==null?(b=b.index,b<x?(g.flags|=67108866,x):b):(g.flags|=67108866,x)):(g.flags|=1048576,x)}function i(g){return t&&g.alternate===null&&(g.flags|=67108866),g}function r(g,x,b,M){return x===null||x.tag!==6?(x=qi(b,g.mode,M),x.return=g,x):(x=n(x,b),x.return=g,x)}function m(g,x,b,M){var w=b.type;return w===q?A(g,x,b.props.children,M,b.key):x!==null&&(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ft&&Kl(w)===x.type)?(x=n(x,b.props),on(x,b),x.return=g,x):(x=nu(b.type,b.key,b.props,null,g.mode,M),on(x,b),x.return=g,x)}function S(g,x,b,M){return x===null||x.tag!==4||x.stateNode.containerInfo!==b.containerInfo||x.stateNode.implementation!==b.implementation?(x=Ri(b,g.mode,M),x.return=g,x):(x=n(x,b.children||[]),x.return=g,x)}function A(g,x,b,M,w){return x===null||x.tag!==7?(x=Xl(b,g.mode,M,w),x.return=g,x):(x=n(x,b),x.return=g,x)}function _(g,x,b){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=qi(""+x,g.mode,b),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case C:return b=nu(x.type,x.key,x.props,null,g.mode,b),on(b,x),b.return=g,b;case G:return x=Ri(x,g.mode,b),x.return=g,x;case ft:return x=Kl(x),_(g,x,b)}if($t(x)||Bt(x))return x=Xl(x,g.mode,b,null),x.return=g,x;if(typeof x.then=="function")return _(g,ru(x),b);if(x.$$typeof===$)return _(g,cu(g,x),b);du(g,x)}return null}function N(g,x,b,M){var w=x!==null?x.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return w!==null?null:r(g,x,""+b,M);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case C:return b.key===w?m(g,x,b,M):null;case G:return b.key===w?S(g,x,b,M):null;case ft:return b=Kl(b),N(g,x,b,M)}if($t(b)||Bt(b))return w!==null?null:A(g,x,b,M,null);if(typeof b.then=="function")return N(g,x,ru(b),M);if(b.$$typeof===$)return N(g,x,cu(g,b),M);du(g,b)}return null}function z(g,x,b,M,w){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return g=g.get(b)||null,r(x,g,""+M,w);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case C:return g=g.get(M.key===null?b:M.key)||null,m(x,g,M,w);case G:return g=g.get(M.key===null?b:M.key)||null,S(x,g,M,w);case ft:return M=Kl(M),z(g,x,b,M,w)}if($t(M)||Bt(M))return g=g.get(b)||null,A(x,g,M,w,null);if(typeof M.then=="function")return z(g,x,b,ru(M),w);if(M.$$typeof===$)return z(g,x,b,cu(x,M),w);du(x,M)}return null}function Y(g,x,b,M){for(var w=null,it=null,L=x,I=x=0,at=null;L!==null&&I<b.length;I++){L.index>I?(at=L,L=null):at=L.sibling;var ct=N(g,L,b[I],M);if(ct===null){L===null&&(L=at);break}t&&L&&ct.alternate===null&&e(g,L),x=u(ct,x,I),it===null?w=ct:it.sibling=ct,it=ct,L=at}if(I===b.length)return l(g,L),nt&&we(g,I),w;if(L===null){for(;I<b.length;I++)L=_(g,b[I],M),L!==null&&(x=u(L,x,I),it===null?w=L:it.sibling=L,it=L);return nt&&we(g,I),w}for(L=a(L);I<b.length;I++)at=z(L,g,I,b[I],M),at!==null&&(t&&at.alternate!==null&&L.delete(at.key===null?I:at.key),x=u(at,x,I),it===null?w=at:it.sibling=at,it=at);return t&&L.forEach(function(_l){return e(g,_l)}),nt&&we(g,I),w}function K(g,x,b,M){if(b==null)throw Error(f(151));for(var w=null,it=null,L=x,I=x=0,at=null,ct=b.next();L!==null&&!ct.done;I++,ct=b.next()){L.index>I?(at=L,L=null):at=L.sibling;var _l=N(g,L,ct.value,M);if(_l===null){L===null&&(L=at);break}t&&L&&_l.alternate===null&&e(g,L),x=u(_l,x,I),it===null?w=_l:it.sibling=_l,it=_l,L=at}if(ct.done)return l(g,L),nt&&we(g,I),w;if(L===null){for(;!ct.done;I++,ct=b.next())ct=_(g,ct.value,M),ct!==null&&(x=u(ct,x,I),it===null?w=ct:it.sibling=ct,it=ct);return nt&&we(g,I),w}for(L=a(L);!ct.done;I++,ct=b.next())ct=z(L,g,I,ct.value,M),ct!==null&&(t&&ct.alternate!==null&&L.delete(ct.key===null?I:ct.key),x=u(ct,x,I),it===null?w=ct:it.sibling=ct,it=ct);return t&&L.forEach(function(X0){return e(g,X0)}),nt&&we(g,I),w}function vt(g,x,b,M){if(typeof b=="object"&&b!==null&&b.type===q&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case C:t:{for(var w=b.key;x!==null;){if(x.key===w){if(w=b.type,w===q){if(x.tag===7){l(g,x.sibling),M=n(x,b.props.children),M.return=g,g=M;break t}}else if(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ft&&Kl(w)===x.type){l(g,x.sibling),M=n(x,b.props),on(M,b),M.return=g,g=M;break t}l(g,x);break}else e(g,x);x=x.sibling}b.type===q?(M=Xl(b.props.children,g.mode,M,b.key),M.return=g,g=M):(M=nu(b.type,b.key,b.props,null,g.mode,M),on(M,b),M.return=g,g=M)}return i(g);case G:t:{for(w=b.key;x!==null;){if(x.key===w)if(x.tag===4&&x.stateNode.containerInfo===b.containerInfo&&x.stateNode.implementation===b.implementation){l(g,x.sibling),M=n(x,b.children||[]),M.return=g,g=M;break t}else{l(g,x);break}else e(g,x);x=x.sibling}M=Ri(b,g.mode,M),M.return=g,g=M}return i(g);case ft:return b=Kl(b),vt(g,x,b,M)}if($t(b))return Y(g,x,b,M);if(Bt(b)){if(w=Bt(b),typeof w!="function")throw Error(f(150));return b=w.call(b),K(g,x,b,M)}if(typeof b.then=="function")return vt(g,x,ru(b),M);if(b.$$typeof===$)return vt(g,x,cu(g,b),M);du(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,x!==null&&x.tag===6?(l(g,x.sibling),M=n(x,b),M.return=g,g=M):(l(g,x),M=qi(b,g.mode,M),M.return=g,g=M),i(g)):l(g,x)}return function(g,x,b,M){try{fn=0;var w=vt(g,x,b,M);return Ea=null,w}catch(L){if(L===Aa||L===fu)throw L;var it=oe(29,L,null,g.mode);return it.lanes=M,it.return=g,it}finally{}}}var kl=Ff(!0),If=Ff(!1),ml=!1;function $i(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wi(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function hl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function pl(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(st&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=au(t),Bf(t,null,l),e}return lu(t,a,e,l),au(t)}function rn(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Qs(t,l)}}function Fi(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,l=l.next}while(l!==null);u===null?n=u=e:u=u.next=e}else n=u=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var Ii=!1;function dn(){if(Ii){var t=Ta;if(t!==null)throw t}}function mn(t,e,l,a){Ii=!1;var n=t.updateQueue;ml=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,r=n.shared.pending;if(r!==null){n.shared.pending=null;var m=r,S=m.next;m.next=null,i===null?u=S:i.next=S,i=m;var A=t.alternate;A!==null&&(A=A.updateQueue,r=A.lastBaseUpdate,r!==i&&(r===null?A.firstBaseUpdate=S:r.next=S,A.lastBaseUpdate=m))}if(u!==null){var _=n.baseState;i=0,A=S=m=null,r=u;do{var N=r.lane&-536870913,z=N!==r.lane;if(z?(lt&N)===N:(a&N)===N){N!==0&&N===za&&(Ii=!0),A!==null&&(A=A.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});t:{var Y=t,K=r;N=e;var vt=l;switch(K.tag){case 1:if(Y=K.payload,typeof Y=="function"){_=Y.call(vt,_,N);break t}_=Y;break t;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=K.payload,N=typeof Y=="function"?Y.call(vt,_,N):Y,N==null)break t;_=T({},_,N);break t;case 2:ml=!0}}N=r.callback,N!==null&&(t.flags|=64,z&&(t.flags|=8192),z=n.callbacks,z===null?n.callbacks=[N]:z.push(N))}else z={lane:N,tag:r.tag,payload:r.payload,callback:r.callback,next:null},A===null?(S=A=z,m=_):A=A.next=z,i|=N;if(r=r.next,r===null){if(r=n.shared.pending,r===null)break;z=r,r=z.next,z.next=null,n.lastBaseUpdate=z,n.shared.pending=null}}while(!0);A===null&&(m=_),n.baseState=m,n.firstBaseUpdate=S,n.lastBaseUpdate=A,u===null&&(n.shared.lanes=0),bl|=i,t.lanes=i,t.memoizedState=_}}function Pf(t,e){if(typeof t!="function")throw Error(f(191,t));t.call(e)}function to(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)Pf(l[t],e)}var Oa=qt(null),mu=qt(0);function eo(t,e){t=el,X(mu,t),X(Oa,e),el=t|e.baseLanes}function Pi(){X(mu,el),X(Oa,Oa.current)}function tc(){el=mu.current,ut(Oa),ut(mu)}var re=qt(null),Ae=null;function xl(t){var e=t.alternate;X(Et,Et.current&1),X(re,t),Ae===null&&(e===null||Oa.current!==null||e.memoizedState!==null)&&(Ae=t)}function ec(t){X(Et,Et.current),X(re,t),Ae===null&&(Ae=t)}function lo(t){t.tag===22?(X(Et,Et.current),X(re,t),Ae===null&&(Ae=t)):vl()}function vl(){X(Et,Et.current),X(re,re.current)}function de(t){ut(re),Ae===t&&(Ae=null),ut(Et)}var Et=qt(0);function hu(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||cs(l)||ss(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Je=0,F=null,pt=null,Dt=null,pu=!1,Ma=!1,$l=!1,xu=0,hn=0,_a=null,Dh=0;function Tt(){throw Error(f(321))}function lc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!fe(t[l],e[l]))return!1;return!0}function ac(t,e,l,a,n,u){return Je=u,F=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,E.H=t===null||t.memoizedState===null?Lo:gc,$l=!1,u=l(a,n),$l=!1,Ma&&(u=no(e,l,a,n)),ao(t),u}function ao(t){E.H=vn;var e=pt!==null&&pt.next!==null;if(Je=0,Dt=pt=F=null,pu=!1,hn=0,_a=null,e)throw Error(f(300));t===null||Ut||(t=t.dependencies,t!==null&&iu(t)&&(Ut=!0))}function no(t,e,l,a){F=t;var n=0;do{if(Ma&&(_a=null),hn=0,Ma=!1,25<=n)throw Error(f(301));if(n+=1,Dt=pt=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}E.H=Xo,u=e(l,a)}while(Ma);return u}function Uh(){var t=E.H,e=t.useState()[0];return e=typeof e.then=="function"?pn(e):e,t=t.useState()[0],(pt!==null?pt.memoizedState:null)!==t&&(F.flags|=1024),e}function nc(){var t=xu!==0;return xu=0,t}function uc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function ic(t){if(pu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}pu=!1}Je=0,Dt=pt=F=null,Ma=!1,hn=xu=0,_a=null}function Ft(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dt===null?F.memoizedState=Dt=t:Dt=Dt.next=t,Dt}function Ot(){if(pt===null){var t=F.alternate;t=t!==null?t.memoizedState:null}else t=pt.next;var e=Dt===null?F.memoizedState:Dt.next;if(e!==null)Dt=e,pt=t;else{if(t===null)throw F.alternate===null?Error(f(467)):Error(f(310));pt=t,t={memoizedState:pt.memoizedState,baseState:pt.baseState,baseQueue:pt.baseQueue,queue:pt.queue,next:null},Dt===null?F.memoizedState=Dt=t:Dt=Dt.next=t}return Dt}function vu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pn(t){var e=hn;return hn+=1,_a===null&&(_a=[]),t=kf(_a,t,e),e=F,(Dt===null?e.memoizedState:Dt.next)===null&&(e=e.alternate,E.H=e===null||e.memoizedState===null?Lo:gc),t}function gu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return pn(t);if(t.$$typeof===$)return wt(t)}throw Error(f(438,String(t)))}function cc(t){var e=null,l=F.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=F.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=vu(),F.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=Lt;return e.index++,l}function ke(t,e){return typeof e=="function"?e(t):e}function yu(t){var e=Ot();return sc(e,pt,t)}function sc(t,e,l){var a=t.queue;if(a===null)throw Error(f(311));a.lastRenderedReducer=l;var n=t.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}e.baseQueue=n=u,a.pending=null}if(u=t.baseState,n===null)t.memoizedState=u;else{e=n.next;var r=i=null,m=null,S=e,A=!1;do{var _=S.lane&-536870913;if(_!==S.lane?(lt&_)===_:(Je&_)===_){var N=S.revertLane;if(N===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),_===za&&(A=!0);else if((Je&N)===N){S=S.next,N===za&&(A=!0);continue}else _={lane:0,revertLane:S.revertLane,gesture:null,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},m===null?(r=m=_,i=u):m=m.next=_,F.lanes|=N,bl|=N;_=S.action,$l&&l(u,_),u=S.hasEagerState?S.eagerState:l(u,_)}else N={lane:_,revertLane:S.revertLane,gesture:S.gesture,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},m===null?(r=m=N,i=u):m=m.next=N,F.lanes|=_,bl|=_;S=S.next}while(S!==null&&S!==e);if(m===null?i=u:m.next=r,!fe(u,t.memoizedState)&&(Ut=!0,A&&(l=Ta,l!==null)))throw l;t.memoizedState=u,t.baseState=i,t.baseQueue=m,a.lastRenderedState=u}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function fc(t){var e=Ot(),l=e.queue;if(l===null)throw Error(f(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,u=e.memoizedState;if(n!==null){l.pending=null;var i=n=n.next;do u=t(u,i.action),i=i.next;while(i!==n);fe(u,e.memoizedState)||(Ut=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,a]}function uo(t,e,l){var a=F,n=Ot(),u=nt;if(u){if(l===void 0)throw Error(f(407));l=l()}else l=e();var i=!fe((pt||n).memoizedState,l);if(i&&(n.memoizedState=l,Ut=!0),n=n.queue,dc(so.bind(null,a,n,t),[t]),n.getSnapshot!==e||i||Dt!==null&&Dt.memoizedState.tag&1){if(a.flags|=2048,Da(9,{destroy:void 0},co.bind(null,a,n,l,e),null),yt===null)throw Error(f(349));u||(Je&127)!==0||io(a,e,l)}return l}function io(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=F.updateQueue,e===null?(e=vu(),F.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function co(t,e,l,a){e.value=l,e.getSnapshot=a,fo(e)&&oo(t)}function so(t,e,l){return l(function(){fo(e)&&oo(t)})}function fo(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!fe(t,l)}catch{return!0}}function oo(t){var e=Ll(t,2);e!==null&&ue(e,t,2)}function oc(t){var e=Ft();if(typeof t=="function"){var l=t;if(t=l(),$l){il(!0);try{l()}finally{il(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ke,lastRenderedState:t},e}function ro(t,e,l,a){return t.baseState=l,sc(t,pt,typeof a=="function"?a:ke)}function Ch(t,e,l,a,n){if(ju(t))throw Error(f(485));if(t=e.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)}};E.T!==null?l(!0):u.isTransition=!1,a(u),l=e.pending,l===null?(u.next=e.pending=u,mo(e,u)):(u.next=l.next,e.pending=l.next=u)}}function mo(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var u=E.T,i={};E.T=i;try{var r=l(n,a),m=E.S;m!==null&&m(i,r),ho(t,e,r)}catch(S){rc(t,e,S)}finally{u!==null&&i.types!==null&&(u.types=i.types),E.T=u}}else try{u=l(n,a),ho(t,e,u)}catch(S){rc(t,e,S)}}function ho(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){po(t,e,a)},function(a){return rc(t,e,a)}):po(t,e,l)}function po(t,e,l){e.status="fulfilled",e.value=l,xo(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,mo(t,l)))}function rc(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,xo(e),e=e.next;while(e!==a)}t.action=null}function xo(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function vo(t,e){return e}function go(t,e){if(nt){var l=yt.formState;if(l!==null){t:{var a=F;if(nt){if(bt){e:{for(var n=bt,u=Te;n.nodeType!==8;){if(!u){n=null;break e}if(n=Ee(n.nextSibling),n===null){n=null;break e}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){bt=Ee(n.nextSibling),a=n.data==="F!";break t}}rl(a)}a=!1}a&&(e=l[0])}}return l=Ft(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:e},l.queue=a,l=Ro.bind(null,F,a),a.dispatch=l,a=oc(!1),u=vc.bind(null,F,!1,a.queue),a=Ft(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=Ch.bind(null,F,n,u,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function yo(t){var e=Ot();return bo(e,pt,t)}function bo(t,e,l){if(e=sc(t,e,vo)[0],t=yu(ke)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=pn(e)}catch(i){throw i===Aa?fu:i}else a=e;e=Ot();var n=e.queue,u=n.dispatch;return l!==e.memoizedState&&(F.flags|=2048,Da(9,{destroy:void 0},Hh.bind(null,n,l),null)),[a,u,t]}function Hh(t,e){t.action=e}function So(t){var e=Ot(),l=pt;if(l!==null)return bo(e,l,t);Ot(),e=e.memoizedState,l=Ot();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function Da(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=F.updateQueue,e===null&&(e=vu(),F.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function jo(){return Ot().memoizedState}function bu(t,e,l,a){var n=Ft();F.flags|=t,n.memoizedState=Da(1|e,{destroy:void 0},l,a===void 0?null:a)}function Su(t,e,l,a){var n=Ot();a=a===void 0?null:a;var u=n.memoizedState.inst;pt!==null&&a!==null&&lc(a,pt.memoizedState.deps)?n.memoizedState=Da(e,u,l,a):(F.flags|=t,n.memoizedState=Da(1|e,u,l,a))}function No(t,e){bu(8390656,8,t,e)}function dc(t,e){Su(2048,8,t,e)}function Bh(t){F.flags|=4;var e=F.updateQueue;if(e===null)e=vu(),F.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function zo(t){var e=Ot().memoizedState;return Bh({ref:e,nextImpl:t}),function(){if((st&2)!==0)throw Error(f(440));return e.impl.apply(void 0,arguments)}}function To(t,e){return Su(4,2,t,e)}function Ao(t,e){return Su(4,4,t,e)}function Eo(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Oo(t,e,l){l=l!=null?l.concat([t]):null,Su(4,4,Eo.bind(null,e,t),l)}function mc(){}function Mo(t,e){var l=Ot();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&lc(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function _o(t,e){var l=Ot();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&lc(e,a[1]))return a[0];if(a=t(),$l){il(!0);try{t()}finally{il(!1)}}return l.memoizedState=[a,e],a}function hc(t,e,l){return l===void 0||(Je&1073741824)!==0&&(lt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Dr(),F.lanes|=t,bl|=t,l)}function Do(t,e,l,a){return fe(l,e)?l:Oa.current!==null?(t=hc(t,l,a),fe(t,e)||(Ut=!0),t):(Je&42)===0||(Je&1073741824)!==0&&(lt&261930)===0?(Ut=!0,t.memoizedState=l):(t=Dr(),F.lanes|=t,bl|=t,e)}function Uo(t,e,l,a,n){var u=B.p;B.p=u!==0&&8>u?u:8;var i=E.T,r={};E.T=r,vc(t,!1,e,l);try{var m=n(),S=E.S;if(S!==null&&S(r,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var A=_h(m,a);xn(t,e,A,pe(t))}else xn(t,e,a,pe(t))}catch(_){xn(t,e,{then:function(){},status:"rejected",reason:_},pe())}finally{B.p=u,i!==null&&r.types!==null&&(i.types=r.types),E.T=i}}function qh(){}function pc(t,e,l,a){if(t.tag!==5)throw Error(f(476));var n=Co(t).queue;Uo(t,n,e,J,l===null?qh:function(){return Ho(t),l(a)})}function Co(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ke,lastRenderedState:J},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ke,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Ho(t){var e=Co(t);e.next===null&&(e=t.alternate.memoizedState),xn(t,e.next.queue,{},pe())}function xc(){return wt(Cn)}function Bo(){return Ot().memoizedState}function qo(){return Ot().memoizedState}function Rh(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=pe();t=hl(l);var a=pl(e,t,l);a!==null&&(ue(a,e,l),rn(a,e,l)),e={cache:Vi()},t.payload=e;return}e=e.return}}function Yh(t,e,l){var a=pe();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ju(t)?Yo(e,l):(l=Hi(t,e,l,a),l!==null&&(ue(l,t,a),Go(l,e,a)))}function Ro(t,e,l){var a=pe();xn(t,e,l,a)}function xn(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ju(t))Yo(e,n);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var i=e.lastRenderedState,r=u(i,l);if(n.hasEagerState=!0,n.eagerState=r,fe(r,i))return lu(t,e,n,0),yt===null&&eu(),!1}catch{}finally{}if(l=Hi(t,e,n,a),l!==null)return ue(l,t,a),Go(l,e,a),!0}return!1}function vc(t,e,l,a){if(a={lane:2,revertLane:$c(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ju(t)){if(e)throw Error(f(479))}else e=Hi(t,l,a,2),e!==null&&ue(e,t,2)}function ju(t){var e=t.alternate;return t===F||e!==null&&e===F}function Yo(t,e){Ma=pu=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Go(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Qs(t,l)}}var vn={readContext:wt,use:gu,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useLayoutEffect:Tt,useInsertionEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useSyncExternalStore:Tt,useId:Tt,useHostTransitionStatus:Tt,useFormState:Tt,useActionState:Tt,useOptimistic:Tt,useMemoCache:Tt,useCacheRefresh:Tt};vn.useEffectEvent=Tt;var Lo={readContext:wt,use:gu,useCallback:function(t,e){return Ft().memoizedState=[t,e===void 0?null:e],t},useContext:wt,useEffect:No,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,bu(4194308,4,Eo.bind(null,e,t),l)},useLayoutEffect:function(t,e){return bu(4194308,4,t,e)},useInsertionEffect:function(t,e){bu(4,2,t,e)},useMemo:function(t,e){var l=Ft();e=e===void 0?null:e;var a=t();if($l){il(!0);try{t()}finally{il(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=Ft();if(l!==void 0){var n=l(e);if($l){il(!0);try{l(e)}finally{il(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=Yh.bind(null,F,t),[a.memoizedState,t]},useRef:function(t){var e=Ft();return t={current:t},e.memoizedState=t},useState:function(t){t=oc(t);var e=t.queue,l=Ro.bind(null,F,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:mc,useDeferredValue:function(t,e){var l=Ft();return hc(l,t,e)},useTransition:function(){var t=oc(!1);return t=Uo.bind(null,F,t.queue,!0,!1),Ft().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=F,n=Ft();if(nt){if(l===void 0)throw Error(f(407));l=l()}else{if(l=e(),yt===null)throw Error(f(349));(lt&127)!==0||io(a,e,l)}n.memoizedState=l;var u={value:l,getSnapshot:e};return n.queue=u,No(so.bind(null,a,u,t),[t]),a.flags|=2048,Da(9,{destroy:void 0},co.bind(null,a,u,l,e),null),l},useId:function(){var t=Ft(),e=yt.identifierPrefix;if(nt){var l=Be,a=He;l=(a&~(1<<32-se(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=xu++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Dh++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:xc,useFormState:go,useActionState:go,useOptimistic:function(t){var e=Ft();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=vc.bind(null,F,!0,l),l.dispatch=e,[t,e]},useMemoCache:cc,useCacheRefresh:function(){return Ft().memoizedState=Rh.bind(null,F)},useEffectEvent:function(t){var e=Ft(),l={impl:t};return e.memoizedState=l,function(){if((st&2)!==0)throw Error(f(440));return l.impl.apply(void 0,arguments)}}},gc={readContext:wt,use:gu,useCallback:Mo,useContext:wt,useEffect:dc,useImperativeHandle:Oo,useInsertionEffect:To,useLayoutEffect:Ao,useMemo:_o,useReducer:yu,useRef:jo,useState:function(){return yu(ke)},useDebugValue:mc,useDeferredValue:function(t,e){var l=Ot();return Do(l,pt.memoizedState,t,e)},useTransition:function(){var t=yu(ke)[0],e=Ot().memoizedState;return[typeof t=="boolean"?t:pn(t),e]},useSyncExternalStore:uo,useId:Bo,useHostTransitionStatus:xc,useFormState:yo,useActionState:yo,useOptimistic:function(t,e){var l=Ot();return ro(l,pt,t,e)},useMemoCache:cc,useCacheRefresh:qo};gc.useEffectEvent=zo;var Xo={readContext:wt,use:gu,useCallback:Mo,useContext:wt,useEffect:dc,useImperativeHandle:Oo,useInsertionEffect:To,useLayoutEffect:Ao,useMemo:_o,useReducer:fc,useRef:jo,useState:function(){return fc(ke)},useDebugValue:mc,useDeferredValue:function(t,e){var l=Ot();return pt===null?hc(l,t,e):Do(l,pt.memoizedState,t,e)},useTransition:function(){var t=fc(ke)[0],e=Ot().memoizedState;return[typeof t=="boolean"?t:pn(t),e]},useSyncExternalStore:uo,useId:Bo,useHostTransitionStatus:xc,useFormState:So,useActionState:So,useOptimistic:function(t,e){var l=Ot();return pt!==null?ro(l,pt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:cc,useCacheRefresh:qo};Xo.useEffectEvent=zo;function yc(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:T({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var bc={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=pe(),n=hl(a);n.payload=e,l!=null&&(n.callback=l),e=pl(t,n,a),e!==null&&(ue(e,t,a),rn(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=pe(),n=hl(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=pl(t,n,a),e!==null&&(ue(e,t,a),rn(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=pe(),a=hl(l);a.tag=2,e!=null&&(a.callback=e),e=pl(t,a,l),e!==null&&(ue(e,t,l),rn(e,t,l))}};function Qo(t,e,l,a,n,u,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,u,i):e.prototype&&e.prototype.isPureReactComponent?!ln(l,a)||!ln(n,u):!0}function Zo(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&bc.enqueueReplaceState(e,e.state,null)}function Wl(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=T({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function wo(t){tu(t)}function Vo(t){console.error(t)}function Ko(t){tu(t)}function Nu(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Jo(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Sc(t,e,l){return l=hl(l),l.tag=3,l.payload={element:null},l.callback=function(){Nu(t,e)},l}function ko(t){return t=hl(t),t.tag=3,t}function $o(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;t.payload=function(){return n(u)},t.callback=function(){Jo(e,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){Jo(e,l,a),typeof n!="function"&&(Sl===null?Sl=new Set([this]):Sl.add(this));var r=a.stack;this.componentDidCatch(a.value,{componentStack:r!==null?r:""})})}function Gh(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&Na(e,l,n,!0),l=re.current,l!==null){switch(l.tag){case 31:case 13:return Ae===null?Bu():l.alternate===null&&At===0&&(At=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===ou?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),Kc(t,a,n)),!1;case 22:return l.flags|=65536,a===ou?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),Kc(t,a,n)),!1}throw Error(f(435,l.tag))}return Kc(t,a,n),Bu(),!1}if(nt)return e=re.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==Li&&(t=Error(f(422),{cause:a}),un(je(t,l)))):(a!==Li&&(e=Error(f(423),{cause:a}),un(je(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=je(a,l),n=Sc(t.stateNode,a,n),Fi(t,n),At!==4&&(At=2)),!1;var u=Error(f(520),{cause:a});if(u=je(u,l),Tn===null?Tn=[u]:Tn.push(u),At!==4&&(At=2),e===null)return!0;a=je(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=Sc(l.stateNode,a,t),Fi(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Sl===null||!Sl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=ko(n),$o(n,t,l,a),Fi(l,n),!1}l=l.return}while(l!==null);return!1}var jc=Error(f(461)),Ut=!1;function Vt(t,e,l,a){e.child=t===null?If(e,null,l,a):kl(e,t.child,l,a)}function Wo(t,e,l,a,n){l=l.render;var u=e.ref;if("ref"in a){var i={};for(var r in a)r!=="ref"&&(i[r]=a[r])}else i=a;return wl(e),a=ac(t,e,l,i,u,n),r=nc(),t!==null&&!Ut?(uc(t,e,n),$e(t,e,n)):(nt&&r&&Yi(e),e.flags|=1,Vt(t,e,a,n),e.child)}function Fo(t,e,l,a,n){if(t===null){var u=l.type;return typeof u=="function"&&!Bi(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,Io(t,e,u,a,n)):(t=nu(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!_c(t,n)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:ln,l(i,a)&&t.ref===e.ref)return $e(t,e,n)}return e.flags|=1,t=Ze(u,a),t.ref=e.ref,t.return=e,e.child=t}function Io(t,e,l,a,n){if(t!==null){var u=t.memoizedProps;if(ln(u,a)&&t.ref===e.ref)if(Ut=!1,e.pendingProps=a=u,_c(t,n))(t.flags&131072)!==0&&(Ut=!0);else return e.lanes=t.lanes,$e(t,e,n)}return Nc(t,e,l,a,n)}function Po(t,e,l,a){var n=a.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,e.child=null;return tr(t,e,u,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&su(e,u!==null?u.cachePool:null),u!==null?eo(e,u):Pi(),lo(e);else return a=e.lanes=536870912,tr(t,e,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(su(e,u.cachePool),eo(e,u),vl(),e.memoizedState=null):(t!==null&&su(e,null),Pi(),vl());return Vt(t,e,n,l),e.child}function gn(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function tr(t,e,l,a,n){var u=Ji();return u=u===null?null:{parent:_t._currentValue,pool:u},e.memoizedState={baseLanes:l,cachePool:u},t!==null&&su(e,null),Pi(),lo(e),t!==null&&Na(t,e,a,!0),e.childLanes=n,null}function zu(t,e){return e=Au({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function er(t,e,l){return kl(e,t.child,null,l),t=zu(e,e.pendingProps),t.flags|=2,de(e),e.memoizedState=null,t}function Lh(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(nt){if(a.mode==="hidden")return t=zu(e,a),e.lanes=536870912,gn(null,t);if(ec(e),(t=bt)?(t=md(t,Te),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:fl!==null?{id:He,overflow:Be}:null,retryLane:536870912,hydrationErrors:null},l=Rf(t),l.return=e,e.child=l,Zt=e,bt=null)):t=null,t===null)throw rl(e);return e.lanes=536870912,null}return zu(e,a)}var u=t.memoizedState;if(u!==null){var i=u.dehydrated;if(ec(e),n)if(e.flags&256)e.flags&=-257,e=er(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(f(558));else if(Ut||Na(t,e,l,!1),n=(l&t.childLanes)!==0,Ut||n){if(a=yt,a!==null&&(i=Zs(a,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,Ll(t,i),ue(a,t,i),jc;Bu(),e=er(t,e,l)}else t=u.treeContext,bt=Ee(i.nextSibling),Zt=e,nt=!0,ol=null,Te=!1,t!==null&&Lf(e,t),e=zu(e,a),e.flags|=4096;return e}return t=Ze(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Tu(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(f(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Nc(t,e,l,a,n){return wl(e),l=ac(t,e,l,a,void 0,n),a=nc(),t!==null&&!Ut?(uc(t,e,n),$e(t,e,n)):(nt&&a&&Yi(e),e.flags|=1,Vt(t,e,l,n),e.child)}function lr(t,e,l,a,n,u){return wl(e),e.updateQueue=null,l=no(e,a,l,n),ao(t),a=nc(),t!==null&&!Ut?(uc(t,e,u),$e(t,e,u)):(nt&&a&&Yi(e),e.flags|=1,Vt(t,e,l,u),e.child)}function ar(t,e,l,a,n){if(wl(e),e.stateNode===null){var u=ya,i=l.contextType;typeof i=="object"&&i!==null&&(u=wt(i)),u=new l(a,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=bc,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=a,u.state=e.memoizedState,u.refs={},$i(e),i=l.contextType,u.context=typeof i=="object"&&i!==null?wt(i):ya,u.state=e.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(yc(e,l,i,a),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&bc.enqueueReplaceState(u,u.state,null),mn(e,a,u,n),dn(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){u=e.stateNode;var r=e.memoizedProps,m=Wl(l,r);u.props=m;var S=u.context,A=l.contextType;i=ya,typeof A=="object"&&A!==null&&(i=wt(A));var _=l.getDerivedStateFromProps;A=typeof _=="function"||typeof u.getSnapshotBeforeUpdate=="function",r=e.pendingProps!==r,A||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(r||S!==i)&&Zo(e,u,a,i),ml=!1;var N=e.memoizedState;u.state=N,mn(e,a,u,n),dn(),S=e.memoizedState,r||N!==S||ml?(typeof _=="function"&&(yc(e,l,_,a),S=e.memoizedState),(m=ml||Qo(e,l,m,a,N,S,i))?(A||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"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=S),u.props=a,u.state=S,u.context=i,a=m):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{u=e.stateNode,Wi(t,e),i=e.memoizedProps,A=Wl(l,i),u.props=A,_=e.pendingProps,N=u.context,S=l.contextType,m=ya,typeof S=="object"&&S!==null&&(m=wt(S)),r=l.getDerivedStateFromProps,(S=typeof r=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==_||N!==m)&&Zo(e,u,a,m),ml=!1,N=e.memoizedState,u.state=N,mn(e,a,u,n),dn();var z=e.memoizedState;i!==_||N!==z||ml||t!==null&&t.dependencies!==null&&iu(t.dependencies)?(typeof r=="function"&&(yc(e,l,r,a),z=e.memoizedState),(A=ml||Qo(e,l,A,a,N,z,m)||t!==null&&t.dependencies!==null&&iu(t.dependencies))?(S||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,z,m),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,z,m)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=z),u.props=a,u.state=z,u.context=m,a=A):(typeof u.componentDidUpdate!="function"||i===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),a=!1)}return u=a,Tu(t,e),a=(e.flags&128)!==0,u||a?(u=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&a?(e.child=kl(e,t.child,null,n),e.child=kl(e,null,l,n)):Vt(t,e,l,n),e.memoizedState=u.state,t=e.child):t=$e(t,e,n),t}function nr(t,e,l,a){return Ql(),e.flags|=256,Vt(t,e,l,a),e.child}var zc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tc(t){return{baseLanes:t,cachePool:Kf()}}function Ac(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=he),t}function ur(t,e,l){var a=e.pendingProps,n=!1,u=(e.flags&128)!==0,i;if((i=u)||(i=t!==null&&t.memoizedState===null?!1:(Et.current&2)!==0),i&&(n=!0,e.flags&=-129),i=(e.flags&32)!==0,e.flags&=-33,t===null){if(nt){if(n?xl(e):vl(),(t=bt)?(t=md(t,Te),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:fl!==null?{id:He,overflow:Be}:null,retryLane:536870912,hydrationErrors:null},l=Rf(t),l.return=e,e.child=l,Zt=e,bt=null)):t=null,t===null)throw rl(e);return ss(t)?e.lanes=32:e.lanes=536870912,null}var r=a.children;return a=a.fallback,n?(vl(),n=e.mode,r=Au({mode:"hidden",children:r},n),a=Xl(a,n,l,null),r.return=e,a.return=e,r.sibling=a,e.child=r,a=e.child,a.memoizedState=Tc(l),a.childLanes=Ac(t,i,l),e.memoizedState=zc,gn(null,a)):(xl(e),Ec(e,r))}var m=t.memoizedState;if(m!==null&&(r=m.dehydrated,r!==null)){if(u)e.flags&256?(xl(e),e.flags&=-257,e=Oc(t,e,l)):e.memoizedState!==null?(vl(),e.child=t.child,e.flags|=128,e=null):(vl(),r=a.fallback,n=e.mode,a=Au({mode:"visible",children:a.children},n),r=Xl(r,n,l,null),r.flags|=2,a.return=e,r.return=e,a.sibling=r,e.child=a,kl(e,t.child,null,l),a=e.child,a.memoizedState=Tc(l),a.childLanes=Ac(t,i,l),e.memoizedState=zc,e=gn(null,a));else if(xl(e),ss(r)){if(i=r.nextSibling&&r.nextSibling.dataset,i)var S=i.dgst;i=S,a=Error(f(419)),a.stack="",a.digest=i,un({value:a,source:null,stack:null}),e=Oc(t,e,l)}else if(Ut||Na(t,e,l,!1),i=(l&t.childLanes)!==0,Ut||i){if(i=yt,i!==null&&(a=Zs(i,l),a!==0&&a!==m.retryLane))throw m.retryLane=a,Ll(t,a),ue(i,t,a),jc;cs(r)||Bu(),e=Oc(t,e,l)}else cs(r)?(e.flags|=192,e.child=t.child,e=null):(t=m.treeContext,bt=Ee(r.nextSibling),Zt=e,nt=!0,ol=null,Te=!1,t!==null&&Lf(e,t),e=Ec(e,a.children),e.flags|=4096);return e}return n?(vl(),r=a.fallback,n=e.mode,m=t.child,S=m.sibling,a=Ze(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&65011712,S!==null?r=Ze(S,r):(r=Xl(r,n,l,null),r.flags|=2),r.return=e,a.return=e,a.sibling=r,e.child=a,gn(null,a),a=e.child,r=t.child.memoizedState,r===null?r=Tc(l):(n=r.cachePool,n!==null?(m=_t._currentValue,n=n.parent!==m?{parent:m,pool:m}:n):n=Kf(),r={baseLanes:r.baseLanes|l,cachePool:n}),a.memoizedState=r,a.childLanes=Ac(t,i,l),e.memoizedState=zc,gn(t.child,a)):(xl(e),l=t.child,t=l.sibling,l=Ze(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(i=e.deletions,i===null?(e.deletions=[t],e.flags|=16):i.push(t)),e.child=l,e.memoizedState=null,l)}function Ec(t,e){return e=Au({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Au(t,e){return t=oe(22,t,null,e),t.lanes=0,t}function Oc(t,e,l){return kl(e,t.child,null,l),t=Ec(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function ir(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Zi(t.return,e,l)}function Mc(t,e,l,a,n,u){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n,i.treeForkCount=u)}function cr(t,e,l){var a=e.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=Et.current,r=(i&2)!==0;if(r?(i=i&1|2,e.flags|=128):i&=1,X(Et,i),Vt(t,e,a,l),a=nt?nn:0,!r&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&ir(t,l,e);else if(t.tag===19)ir(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&hu(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),Mc(e,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&hu(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}Mc(e,!0,l,null,u,a);break;case"together":Mc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function $e(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),bl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Na(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(f(153));if(e.child!==null){for(t=e.child,l=Ze(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Ze(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function _c(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&iu(t)))}function Xh(t,e,l){switch(e.tag){case 3:Xt(e,e.stateNode.containerInfo),dl(e,_t,t.memoizedState.cache),Ql();break;case 27:case 5:Cl(e);break;case 4:Xt(e,e.stateNode.containerInfo);break;case 10:dl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,ec(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(xl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?ur(t,e,l):(xl(e),t=$e(t,e,l),t!==null?t.sibling:null);xl(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(Na(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return cr(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),X(Et,Et.current),a)break;return null;case 22:return e.lanes=0,Po(t,e,l,e.pendingProps);case 24:dl(e,_t,t.memoizedState.cache)}return $e(t,e,l)}function sr(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ut=!0;else{if(!_c(t,l)&&(e.flags&128)===0)return Ut=!1,Xh(t,e,l);Ut=(t.flags&131072)!==0}else Ut=!1,nt&&(e.flags&1048576)!==0&&Gf(e,nn,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=Kl(e.elementType),e.type=t,typeof t=="function")Bi(t)?(a=Wl(t,a),e.tag=1,e=ar(null,e,t,a,l)):(e.tag=0,e=Nc(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===H){e.tag=11,e=Wo(null,e,t,a,l);break t}else if(n===R){e.tag=14,e=Fo(null,e,t,a,l);break t}}throw e=zt(t)||t,Error(f(306,e,""))}}return e;case 0:return Nc(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=Wl(a,e.pendingProps),ar(t,e,a,n,l);case 3:t:{if(Xt(e,e.stateNode.containerInfo),t===null)throw Error(f(387));a=e.pendingProps;var u=e.memoizedState;n=u.element,Wi(t,e),mn(e,a,null,l);var i=e.memoizedState;if(a=i.cache,dl(e,_t,a),a!==u.cache&&wi(e,[_t],l,!0),dn(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=nr(t,e,a,l);break t}else if(a!==n){n=je(Error(f(424)),e),un(n),e=nr(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(bt=Ee(t.firstChild),Zt=e,nt=!0,ol=null,Te=!0,l=If(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ql(),a===n){e=$e(t,e,l);break t}Vt(t,e,a,l)}e=e.child}return e;case 26:return Tu(t,e),t===null?(l=yd(e.type,null,e.pendingProps,null))?e.memoizedState=l:nt||(l=e.type,t=e.pendingProps,a=Qu(Wt.current).createElement(l),a[Qt]=e,a[Pt]=t,Kt(a,l,t),Rt(a),e.stateNode=a):e.memoizedState=yd(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Cl(e),t===null&&nt&&(a=e.stateNode=xd(e.type,e.pendingProps,Wt.current),Zt=e,Te=!0,n=bt,Tl(e.type)?(fs=n,bt=Ee(a.firstChild)):bt=n),Vt(t,e,e.pendingProps.children,l),Tu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&nt&&((n=a=bt)&&(a=v0(a,e.type,e.pendingProps,Te),a!==null?(e.stateNode=a,Zt=e,bt=Ee(a.firstChild),Te=!1,n=!0):n=!1),n||rl(e)),Cl(e),n=e.type,u=e.pendingProps,i=t!==null?t.memoizedProps:null,a=u.children,ns(n,u)?a=null:i!==null&&ns(n,i)&&(e.flags|=32),e.memoizedState!==null&&(n=ac(t,e,Uh,null,null,l),Cn._currentValue=n),Tu(t,e),Vt(t,e,a,l),e.child;case 6:return t===null&&nt&&((t=l=bt)&&(l=g0(l,e.pendingProps,Te),l!==null?(e.stateNode=l,Zt=e,bt=null,t=!0):t=!1),t||rl(e)),null;case 13:return ur(t,e,l);case 4:return Xt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=kl(e,null,a,l):Vt(t,e,a,l),e.child;case 11:return Wo(t,e,e.type,e.pendingProps,l);case 7:return Vt(t,e,e.pendingProps,l),e.child;case 8:return Vt(t,e,e.pendingProps.children,l),e.child;case 12:return Vt(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,dl(e,e.type,a.value),Vt(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,wl(e),n=wt(n),a=a(n),e.flags|=1,Vt(t,e,a,l),e.child;case 14:return Fo(t,e,e.type,e.pendingProps,l);case 15:return Io(t,e,e.type,e.pendingProps,l);case 19:return cr(t,e,l);case 31:return Lh(t,e,l);case 22:return Po(t,e,l,e.pendingProps);case 24:return wl(e),a=wt(_t),t===null?(n=Ji(),n===null&&(n=yt,u=Vi(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),e.memoizedState={parent:a,cache:n},$i(e),dl(e,_t,n)):((t.lanes&l)!==0&&(Wi(t,e),mn(e,null,null,l),dn()),n=t.memoizedState,u=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),dl(e,_t,a)):(a=u.cache,dl(e,_t,a),a!==n.cache&&wi(e,[_t],l,!0))),Vt(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(f(156,e.tag))}function We(t){t.flags|=4}function Dc(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(Br())t.flags|=8192;else throw Jl=ou,ki}else t.flags&=-16777217}function fr(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!zd(e))if(Br())t.flags|=8192;else throw Jl=ou,ki}function Eu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Ls():536870912,t.lanes|=e,Ba|=e)}function yn(t,e){if(!nt)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function St(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=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;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function Qh(t,e,l){var a=e.pendingProps;switch(Gi(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return St(e),null;case 1:return St(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Ke(_t),ge(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(ja(e)?We(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Xi())),St(e),null;case 26:var n=e.type,u=e.memoizedState;return t===null?(We(e),u!==null?(St(e),fr(e,u)):(St(e),Dc(e,n,null,a,l))):u?u!==t.memoizedState?(We(e),St(e),fr(e,u)):(St(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&We(e),St(e),Dc(e,n,t,a,l)),null;case 27:if(Ye(e),l=Wt.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&We(e);else{if(!a){if(e.stateNode===null)throw Error(f(166));return St(e),null}t=Mt.current,ja(e)?Xf(e):(t=xd(n,a,l),e.stateNode=t,We(e))}return St(e),null;case 5:if(Ye(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&We(e);else{if(!a){if(e.stateNode===null)throw Error(f(166));return St(e),null}if(u=Mt.current,ja(e))Xf(e);else{var i=Qu(Wt.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[Qt]=e,u[Pt]=a;t:for(i=e.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===e)break t;for(;i.sibling===null;){if(i.return===null||i.return===e)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}e.stateNode=u;t:switch(Kt(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&&We(e)}}return St(e),Dc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&We(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(f(166));if(t=Wt.current,ja(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=Zt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[Qt]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||ud(t.nodeValue,l)),t||rl(e,!0)}else t=Qu(t).createTextNode(a),t[Qt]=e,e.stateNode=t}return St(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=ja(e),l!==null){if(t===null){if(!a)throw Error(f(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(f(557));t[Qt]=e}else Ql(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;St(e),t=!1}else l=Xi(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(de(e),e):(de(e),null);if((e.flags&128)!==0)throw Error(f(558))}return St(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=ja(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(f(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(f(317));n[Qt]=e}else Ql(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;St(e),n=!1}else n=Xi(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(de(e),e):(de(e),null)}return de(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Eu(e,e.updateQueue),St(e),null);case 4:return ge(),t===null&&Pc(e.stateNode.containerInfo),St(e),null;case 10:return Ke(e.type),St(e),null;case 19:if(ut(Et),a=e.memoizedState,a===null)return St(e),null;if(n=(e.flags&128)!==0,u=a.rendering,u===null)if(n)yn(a,!1);else{if(At!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=hu(t),u!==null){for(e.flags|=128,yn(a,!1),t=u.updateQueue,e.updateQueue=t,Eu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)qf(l,t),l=l.sibling;return X(Et,Et.current&1|2),nt&&we(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ie()>Uu&&(e.flags|=128,n=!0,yn(a,!1),e.lanes=4194304)}else{if(!n)if(t=hu(u),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Eu(e,t),yn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!nt)return St(e),null}else 2*ie()-a.renderingStartTime>Uu&&l!==536870912&&(e.flags|=128,n=!0,yn(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(t=a.last,t!==null?t.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ie(),t.sibling=null,l=Et.current,X(Et,n?l&1|2:l&1),nt&&we(e,a.treeForkCount),t):(St(e),null);case 22:case 23:return de(e),tc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(St(e),e.subtreeFlags&6&&(e.flags|=8192)):St(e),l=e.updateQueue,l!==null&&Eu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&ut(Vl),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Ke(_t),St(e),null;case 25:return null;case 30:return null}throw Error(f(156,e.tag))}function Zh(t,e){switch(Gi(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ke(_t),ge(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Ye(e),null;case 31:if(e.memoizedState!==null){if(de(e),e.alternate===null)throw Error(f(340));Ql()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(de(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(f(340));Ql()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ut(Et),null;case 4:return ge(),null;case 10:return Ke(e.type),null;case 22:case 23:return de(e),tc(),t!==null&&ut(Vl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Ke(_t),null;case 25:return null;default:return null}}function or(t,e){switch(Gi(e),e.tag){case 3:Ke(_t),ge();break;case 26:case 27:case 5:Ye(e);break;case 4:ge();break;case 31:e.memoizedState!==null&&de(e);break;case 13:de(e);break;case 19:ut(Et);break;case 10:Ke(e.type);break;case 22:case 23:de(e),tc(),t!==null&&ut(Vl);break;case 24:Ke(_t)}}function bn(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var u=l.create,i=l.inst;a=u(),i.destroy=a}l=l.next}while(l!==n)}}catch(r){dt(e,e.return,r)}}function gl(t,e,l){try{var a=e.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,r=i.destroy;if(r!==void 0){i.destroy=void 0,n=e;var m=l,S=r;try{S()}catch(A){dt(n,m,A)}}}a=a.next}while(a!==u)}}catch(A){dt(e,e.return,A)}}function rr(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{to(e,l)}catch(a){dt(t,t.return,a)}}}function dr(t,e,l){l.props=Wl(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){dt(t,e,a)}}function Sn(t,e){try{var l=t.ref;if(l!==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 l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){dt(t,e,n)}}function qe(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){dt(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){dt(t,e,n)}else l.current=null}function mr(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){dt(t,t.return,n)}}function Uc(t,e,l){try{var a=t.stateNode;r0(a,t.type,l,e),a[Pt]=e}catch(n){dt(t,t.return,n)}}function hr(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Tl(t.type)||t.tag===4}function Cc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||hr(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&&Tl(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 Hc(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=Xe));else if(a!==4&&(a===27&&Tl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Hc(t,e,l),t=t.sibling;t!==null;)Hc(t,e,l),t=t.sibling}function Ou(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&Tl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Ou(t,e,l),t=t.sibling;t!==null;)Ou(t,e,l),t=t.sibling}function pr(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Kt(e,a,l),e[Qt]=t,e[Pt]=l}catch(u){dt(t,t.return,u)}}var Fe=!1,Ct=!1,Bc=!1,xr=typeof WeakSet=="function"?WeakSet:Set,Yt=null;function wh(t,e){if(t=t.containerInfo,ls=$u,t=Ef(t),Oi(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var i=0,r=-1,m=-1,S=0,A=0,_=t,N=null;e:for(;;){for(var z;_!==l||n!==0&&_.nodeType!==3||(r=i+n),_!==u||a!==0&&_.nodeType!==3||(m=i+a),_.nodeType===3&&(i+=_.nodeValue.length),(z=_.firstChild)!==null;)N=_,_=z;for(;;){if(_===t)break e;if(N===l&&++S===n&&(r=i),N===u&&++A===a&&(m=i),(z=_.nextSibling)!==null)break;_=N,N=_.parentNode}_=z}l=r===-1||m===-1?null:{start:r,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(as={focusedElem:t,selectionRange:l},$u=!1,Yt=e;Yt!==null;)if(e=Yt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Yt=t;else for(;Yt!==null;){switch(e=Yt,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,l=e,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var Y=Wl(l.type,n);t=a.getSnapshotBeforeUpdate(Y,u),a.__reactInternalSnapshotBeforeUpdate=t}catch(K){dt(l,l.return,K)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)is(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":is(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(f(163))}if(t=e.sibling,t!==null){t.return=e.return,Yt=t;break}Yt=e.return}}function vr(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Pe(t,l),a&4&&bn(5,l);break;case 1:if(Pe(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(i){dt(l,l.return,i)}else{var n=Wl(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(i){dt(l,l.return,i)}}a&64&&rr(l),a&512&&Sn(l,l.return);break;case 3:if(Pe(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{to(t,e)}catch(i){dt(l,l.return,i)}}break;case 27:e===null&&a&4&&pr(l);case 26:case 5:Pe(t,l),e===null&&a&4&&mr(l),a&512&&Sn(l,l.return);break;case 12:Pe(t,l);break;case 31:Pe(t,l),a&4&&br(t,l);break;case 13:Pe(t,l),a&4&&Sr(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=Ph.bind(null,l),y0(t,l))));break;case 22:if(a=l.memoizedState!==null||Fe,!a){e=e!==null&&e.memoizedState!==null||Ct,n=Fe;var u=Ct;Fe=a,(Ct=e)&&!u?tl(t,l,(l.subtreeFlags&8772)!==0):Pe(t,l),Fe=n,Ct=u}break;case 30:break;default:Pe(t,l)}}function gr(t){var e=t.alternate;e!==null&&(t.alternate=null,gr(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ri(e)),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 Nt=null,ee=!1;function Ie(t,e,l){for(l=l.child;l!==null;)yr(t,e,l),l=l.sibling}function yr(t,e,l){if(ce&&typeof ce.onCommitFiberUnmount=="function")try{ce.onCommitFiberUnmount(wa,l)}catch{}switch(l.tag){case 26:Ct||qe(l,e),Ie(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ct||qe(l,e);var a=Nt,n=ee;Tl(l.type)&&(Nt=l.stateNode,ee=!1),Ie(t,e,l),_n(l.stateNode),Nt=a,ee=n;break;case 5:Ct||qe(l,e);case 6:if(a=Nt,n=ee,Nt=null,Ie(t,e,l),Nt=a,ee=n,Nt!==null)if(ee)try{(Nt.nodeType===9?Nt.body:Nt.nodeName==="HTML"?Nt.ownerDocument.body:Nt).removeChild(l.stateNode)}catch(u){dt(l,e,u)}else try{Nt.removeChild(l.stateNode)}catch(u){dt(l,e,u)}break;case 18:Nt!==null&&(ee?(t=Nt,rd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Za(t)):rd(Nt,l.stateNode));break;case 4:a=Nt,n=ee,Nt=l.stateNode.containerInfo,ee=!0,Ie(t,e,l),Nt=a,ee=n;break;case 0:case 11:case 14:case 15:gl(2,l,e),Ct||gl(4,l,e),Ie(t,e,l);break;case 1:Ct||(qe(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&dr(l,e,a)),Ie(t,e,l);break;case 21:Ie(t,e,l);break;case 22:Ct=(a=Ct)||l.memoizedState!==null,Ie(t,e,l),Ct=a;break;default:Ie(t,e,l)}}function br(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Za(t)}catch(l){dt(e,e.return,l)}}}function Sr(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Za(t)}catch(l){dt(e,e.return,l)}}function Vh(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new xr),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new xr),e;default:throw Error(f(435,t.tag))}}function Mu(t,e){var l=Vh(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=t0.bind(null,t,a);a.then(n,n)}})}function le(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=t,i=e,r=i;t:for(;r!==null;){switch(r.tag){case 27:if(Tl(r.type)){Nt=r.stateNode,ee=!1;break t}break;case 5:Nt=r.stateNode,ee=!1;break t;case 3:case 4:Nt=r.stateNode.containerInfo,ee=!0;break t}r=r.return}if(Nt===null)throw Error(f(160));yr(u,i,n),Nt=null,ee=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)jr(e,t),e=e.sibling}var De=null;function jr(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:le(e,t),ae(t),a&4&&(gl(3,t,t.return),bn(3,t),gl(5,t,t.return));break;case 1:le(e,t),ae(t),a&512&&(Ct||l===null||qe(l,l.return)),a&64&&Fe&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=De;if(le(e,t),ae(t),a&512&&(Ct||l===null||qe(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Ja]||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"))),Kt(u,a,l),u[Qt]=t,Rt(u),a=u;break t;case"link":var i=jd("link","href",n).get(a+(l.href||""));if(i){for(var r=0;r<i.length;r++)if(u=i[r],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){i.splice(r,1);break e}}u=n.createElement(a),Kt(u,a,l),n.head.appendChild(u);break;case"meta":if(i=jd("meta","content",n).get(a+(l.content||""))){for(r=0;r<i.length;r++)if(u=i[r],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){i.splice(r,1);break e}}u=n.createElement(a),Kt(u,a,l),n.head.appendChild(u);break;default:throw Error(f(468,a))}u[Qt]=t,Rt(u),a=u}t.stateNode=a}else Nd(n,t.type,t.stateNode);else t.stateNode=Sd(n,a,t.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Nd(n,t.type,t.stateNode):Sd(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Uc(t,t.memoizedProps,l.memoizedProps)}break;case 27:le(e,t),ae(t),a&512&&(Ct||l===null||qe(l,l.return)),l!==null&&a&4&&Uc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(le(e,t),ae(t),a&512&&(Ct||l===null||qe(l,l.return)),t.flags&32){n=t.stateNode;try{da(n,"")}catch(Y){dt(t,t.return,Y)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,Uc(t,n,l!==null?l.memoizedProps:n)),a&1024&&(Bc=!0);break;case 6:if(le(e,t),ae(t),a&4){if(t.stateNode===null)throw Error(f(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch(Y){dt(t,t.return,Y)}}break;case 3:if(Vu=null,n=De,De=Zu(e.containerInfo),le(e,t),De=n,ae(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Za(e.containerInfo)}catch(Y){dt(t,t.return,Y)}Bc&&(Bc=!1,Nr(t));break;case 4:a=De,De=Zu(t.stateNode.containerInfo),le(e,t),ae(t),De=a;break;case 12:le(e,t),ae(t);break;case 31:le(e,t),ae(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Mu(t,a)));break;case 13:le(e,t),ae(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Du=ie()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Mu(t,a)));break;case 22:n=t.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,S=Fe,A=Ct;if(Fe=S||n,Ct=A||m,le(e,t),Ct=A,Fe=S,ae(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||m||Fe||Ct||Fl(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){m=l=e;try{if(u=m.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{r=m.stateNode;var _=m.memoizedProps.style,N=_!=null&&_.hasOwnProperty("display")?_.display:null;r.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(Y){dt(m,m.return,Y)}}}else if(e.tag===6){if(l===null){m=e;try{m.stateNode.nodeValue=n?"":m.memoizedProps}catch(Y){dt(m,m.return,Y)}}}else if(e.tag===18){if(l===null){m=e;try{var z=m.stateNode;n?dd(z,!0):dd(m.stateNode,!1)}catch(Y){dt(m,m.return,Y)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Mu(t,l))));break;case 19:le(e,t),ae(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Mu(t,a)));break;case 30:break;case 21:break;default:le(e,t),ae(t)}}function ae(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(hr(a)){l=a;break}a=a.return}if(l==null)throw Error(f(160));switch(l.tag){case 27:var n=l.stateNode,u=Cc(t);Ou(t,u,n);break;case 5:var i=l.stateNode;l.flags&32&&(da(i,""),l.flags&=-33);var r=Cc(t);Ou(t,r,i);break;case 3:case 4:var m=l.stateNode.containerInfo,S=Cc(t);Hc(t,S,m);break;default:throw Error(f(161))}}catch(A){dt(t,t.return,A)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Nr(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Nr(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Pe(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)vr(t,e.alternate,e),e=e.sibling}function Fl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:gl(4,e,e.return),Fl(e);break;case 1:qe(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&dr(e,e.return,l),Fl(e);break;case 27:_n(e.stateNode);case 26:case 5:qe(e,e.return),Fl(e);break;case 22:e.memoizedState===null&&Fl(e);break;case 30:Fl(e);break;default:Fl(e)}t=t.sibling}}function tl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,u=e,i=u.flags;switch(u.tag){case 0:case 11:case 15:tl(n,u,l),bn(4,u);break;case 1:if(tl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(S){dt(a,a.return,S)}if(a=u,n=a.updateQueue,n!==null){var r=a.stateNode;try{var m=n.shared.hiddenCallbacks;if(m!==null)for(n.shared.hiddenCallbacks=null,n=0;n<m.length;n++)Pf(m[n],r)}catch(S){dt(a,a.return,S)}}l&&i&64&&rr(u),Sn(u,u.return);break;case 27:pr(u);case 26:case 5:tl(n,u,l),l&&a===null&&i&4&&mr(u),Sn(u,u.return);break;case 12:tl(n,u,l);break;case 31:tl(n,u,l),l&&i&4&&br(n,u);break;case 13:tl(n,u,l),l&&i&4&&Sr(n,u);break;case 22:u.memoizedState===null&&tl(n,u,l),Sn(u,u.return);break;case 30:break;default:tl(n,u,l)}e=e.sibling}}function qc(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&cn(l))}function Rc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&cn(t))}function Ue(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zr(t,e,l,a),e=e.sibling}function zr(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:Ue(t,e,l,a),n&2048&&bn(9,e);break;case 1:Ue(t,e,l,a);break;case 3:Ue(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&cn(t)));break;case 12:if(n&2048){Ue(t,e,l,a),t=e.stateNode;try{var u=e.memoizedProps,i=u.id,r=u.onPostCommit;typeof r=="function"&&r(i,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(m){dt(e,e.return,m)}}else Ue(t,e,l,a);break;case 31:Ue(t,e,l,a);break;case 13:Ue(t,e,l,a);break;case 23:break;case 22:u=e.stateNode,i=e.alternate,e.memoizedState!==null?u._visibility&2?Ue(t,e,l,a):jn(t,e):u._visibility&2?Ue(t,e,l,a):(u._visibility|=2,Ua(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&qc(i,e);break;case 24:Ue(t,e,l,a),n&2048&&Rc(e.alternate,e);break;default:Ue(t,e,l,a)}}function Ua(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,i=e,r=l,m=a,S=i.flags;switch(i.tag){case 0:case 11:case 15:Ua(u,i,r,m,n),bn(8,i);break;case 23:break;case 22:var A=i.stateNode;i.memoizedState!==null?A._visibility&2?Ua(u,i,r,m,n):jn(u,i):(A._visibility|=2,Ua(u,i,r,m,n)),n&&S&2048&&qc(i.alternate,i);break;case 24:Ua(u,i,r,m,n),n&&S&2048&&Rc(i.alternate,i);break;default:Ua(u,i,r,m,n)}e=e.sibling}}function jn(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:jn(l,a),n&2048&&qc(a.alternate,a);break;case 24:jn(l,a),n&2048&&Rc(a.alternate,a);break;default:jn(l,a)}e=e.sibling}}var Nn=8192;function Ca(t,e,l){if(t.subtreeFlags&Nn)for(t=t.child;t!==null;)Tr(t,e,l),t=t.sibling}function Tr(t,e,l){switch(t.tag){case 26:Ca(t,e,l),t.flags&Nn&&t.memoizedState!==null&&D0(l,De,t.memoizedState,t.memoizedProps);break;case 5:Ca(t,e,l);break;case 3:case 4:var a=De;De=Zu(t.stateNode.containerInfo),Ca(t,e,l),De=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Nn,Nn=16777216,Ca(t,e,l),Nn=a):Ca(t,e,l));break;default:Ca(t,e,l)}}function Ar(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function zn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Yt=a,Or(a,t)}Ar(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Er(t),t=t.sibling}function Er(t){switch(t.tag){case 0:case 11:case 15:zn(t),t.flags&2048&&gl(9,t,t.return);break;case 3:zn(t);break;case 12:zn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,_u(t)):zn(t);break;default:zn(t)}}function _u(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Yt=a,Or(a,t)}Ar(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:gl(8,e,e.return),_u(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,_u(e));break;default:_u(e)}t=t.sibling}}function Or(t,e){for(;Yt!==null;){var l=Yt;switch(l.tag){case 0:case 11:case 15:gl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:cn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Yt=a;else t:for(l=t;Yt!==null;){a=Yt;var n=a.sibling,u=a.return;if(gr(a),a===l){Yt=null;break t}if(n!==null){n.return=u,Yt=n;break t}Yt=u}}}var Kh={getCacheForType:function(t){var e=wt(_t),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return wt(_t).controller.signal}},Jh=typeof WeakMap=="function"?WeakMap:Map,st=0,yt=null,tt=null,lt=0,rt=0,me=null,yl=!1,Ha=!1,Yc=!1,el=0,At=0,bl=0,Il=0,Gc=0,he=0,Ba=0,Tn=null,ne=null,Lc=!1,Du=0,Mr=0,Uu=1/0,Cu=null,Sl=null,Ht=0,jl=null,qa=null,ll=0,Xc=0,Qc=null,_r=null,An=0,Zc=null;function pe(){return(st&2)!==0&&lt!==0?lt&-lt:E.T!==null?$c():ws()}function Dr(){if(he===0)if((lt&536870912)===0||nt){var t=Xn;Xn<<=1,(Xn&3932160)===0&&(Xn=262144),he=t}else he=536870912;return t=re.current,t!==null&&(t.flags|=32),he}function ue(t,e,l){(t===yt&&(rt===2||rt===9)||t.cancelPendingCommit!==null)&&(Ra(t,0),Nl(t,lt,he,!1)),Ka(t,l),((st&2)===0||t!==yt)&&(t===yt&&((st&2)===0&&(Il|=l),At===4&&Nl(t,lt,he,!1)),Re(t))}function Ur(t,e,l){if((st&6)!==0)throw Error(f(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||Va(t,e),n=a?Wh(t,e):Vc(t,e,!0),u=a;do{if(n===0){Ha&&!a&&Nl(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!kh(l)){n=Vc(t,e,!1),u=!1;continue}if(n===2){if(u=e,t.errorRecoveryDisabledLanes&u)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){e=i;t:{var r=t;n=Tn;var m=r.current.memoizedState.isDehydrated;if(m&&(Ra(r,i).flags|=256),i=Vc(r,i,!1),i!==2){if(Yc&&!m){r.errorRecoveryDisabledLanes|=u,Il|=u,n=4;break t}u=ne,ne=n,u!==null&&(ne===null?ne=u:ne.push.apply(ne,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){Ra(t,0),Nl(t,e,0,!0);break}t:{switch(a=t,u=n,u){case 0:case 1:throw Error(f(345));case 4:if((e&4194048)!==e)break;case 6:Nl(a,e,he,!yl);break t;case 2:ne=null;break;case 3:case 5:break;default:throw Error(f(329))}if((e&62914560)===e&&(n=Du+300-ie(),10<n)){if(Nl(a,e,he,!yl),Zn(a,0,!0)!==0)break t;ll=e,a.timeoutHandle=fd(Cr.bind(null,a,l,ne,Cu,Lc,e,he,Il,Ba,yl,u,"Throttled",-0,0),n);break t}Cr(a,l,ne,Cu,Lc,e,he,Il,Ba,yl,u,null,-0,0)}}break}while(!0);Re(t)}function Cr(t,e,l,a,n,u,i,r,m,S,A,_,N,z){if(t.timeoutHandle=-1,_=e.subtreeFlags,_&8192||(_&16785408)===16785408){_={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xe},Tr(e,u,_);var Y=(u&62914560)===u?Du-ie():(u&4194048)===u?Mr-ie():0;if(Y=U0(_,Y),Y!==null){ll=u,t.cancelPendingCommit=Y(Xr.bind(null,t,e,u,l,a,n,i,r,m,A,_,null,N,z)),Nl(t,u,i,!S);return}}Xr(t,e,u,l,a,n,i,r,m)}function kh(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!fe(u(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Nl(t,e,l,a){e&=~Gc,e&=~Il,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var u=31-se(n),i=1<<u;a[u]=-1,n&=~i}l!==0&&Xs(t,l,e)}function Hu(){return(st&6)===0?(En(0),!1):!0}function wc(){if(tt!==null){if(rt===0)var t=tt.return;else t=tt,Ve=Zl=null,ic(t),Ea=null,fn=0,t=tt;for(;t!==null;)or(t.alternate,t),t=t.return;tt=null}}function Ra(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,h0(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),ll=0,wc(),yt=t,tt=l=Ze(t.current,null),lt=e,rt=0,me=null,yl=!1,Ha=Va(t,e),Yc=!1,Ba=he=Gc=Il=bl=At=0,ne=Tn=null,Lc=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-se(a),u=1<<n;e|=t[n],a&=~u}return el=e,eu(),l}function Hr(t,e){F=null,E.H=vn,e===Aa||e===fu?(e=$f(),rt=3):e===ki?(e=$f(),rt=4):rt=e===jc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,me=e,tt===null&&(At=1,Nu(t,je(e,t.current)))}function Br(){var t=re.current;return t===null?!0:(lt&4194048)===lt?Ae===null:(lt&62914560)===lt||(lt&536870912)!==0?t===Ae:!1}function qr(){var t=E.H;return E.H=vn,t===null?vn:t}function Rr(){var t=E.A;return E.A=Kh,t}function Bu(){At=4,yl||(lt&4194048)!==lt&&re.current!==null||(Ha=!0),(bl&134217727)===0&&(Il&134217727)===0||yt===null||Nl(yt,lt,he,!1)}function Vc(t,e,l){var a=st;st|=2;var n=qr(),u=Rr();(yt!==t||lt!==e)&&(Cu=null,Ra(t,e)),e=!1;var i=At;t:do try{if(rt!==0&&tt!==null){var r=tt,m=me;switch(rt){case 8:wc(),i=6;break t;case 3:case 2:case 9:case 6:re.current===null&&(e=!0);var S=rt;if(rt=0,me=null,Ya(t,r,m,S),l&&Ha){i=0;break t}break;default:S=rt,rt=0,me=null,Ya(t,r,m,S)}}$h(),i=At;break}catch(A){Hr(t,A)}while(!0);return e&&t.shellSuspendCounter++,Ve=Zl=null,st=a,E.H=n,E.A=u,tt===null&&(yt=null,lt=0,eu()),i}function $h(){for(;tt!==null;)Yr(tt)}function Wh(t,e){var l=st;st|=2;var a=qr(),n=Rr();yt!==t||lt!==e?(Cu=null,Uu=ie()+500,Ra(t,e)):Ha=Va(t,e);t:do try{if(rt!==0&&tt!==null){e=tt;var u=me;e:switch(rt){case 1:rt=0,me=null,Ya(t,e,u,1);break;case 2:case 9:if(Jf(u)){rt=0,me=null,Gr(e);break}e=function(){rt!==2&&rt!==9||yt!==t||(rt=7),Re(t)},u.then(e,e);break t;case 3:rt=7;break t;case 4:rt=5;break t;case 7:Jf(u)?(rt=0,me=null,Gr(e)):(rt=0,me=null,Ya(t,e,u,7));break;case 5:var i=null;switch(tt.tag){case 26:i=tt.memoizedState;case 5:case 27:var r=tt;if(i?zd(i):r.stateNode.complete){rt=0,me=null;var m=r.sibling;if(m!==null)tt=m;else{var S=r.return;S!==null?(tt=S,qu(S)):tt=null}break e}}rt=0,me=null,Ya(t,e,u,5);break;case 6:rt=0,me=null,Ya(t,e,u,6);break;case 8:wc(),At=6;break t;default:throw Error(f(462))}}Fh();break}catch(A){Hr(t,A)}while(!0);return Ve=Zl=null,E.H=a,E.A=n,st=l,tt!==null?0:(yt=null,lt=0,eu(),At)}function Fh(){for(;tt!==null&&!ot();)Yr(tt)}function Yr(t){var e=sr(t.alternate,t,el);t.memoizedProps=t.pendingProps,e===null?qu(t):tt=e}function Gr(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=lr(l,e,e.pendingProps,e.type,void 0,lt);break;case 11:e=lr(l,e,e.pendingProps,e.type.render,e.ref,lt);break;case 5:ic(e);default:or(l,e),e=tt=qf(e,el),e=sr(l,e,el)}t.memoizedProps=t.pendingProps,e===null?qu(t):tt=e}function Ya(t,e,l,a){Ve=Zl=null,ic(e),Ea=null,fn=0;var n=e.return;try{if(Gh(t,n,e,l,lt)){At=1,Nu(t,je(l,t.current)),tt=null;return}}catch(u){if(n!==null)throw tt=n,u;At=1,Nu(t,je(l,t.current)),tt=null;return}e.flags&32768?(nt||a===1?t=!0:Ha||(lt&536870912)!==0?t=!1:(yl=t=!0,(a===2||a===9||a===3||a===6)&&(a=re.current,a!==null&&a.tag===13&&(a.flags|=16384))),Lr(e,t)):qu(e)}function qu(t){var e=t;do{if((e.flags&32768)!==0){Lr(e,yl);return}t=e.return;var l=Qh(e.alternate,e,el);if(l!==null){tt=l;return}if(e=e.sibling,e!==null){tt=e;return}tt=e=t}while(e!==null);At===0&&(At=5)}function Lr(t,e){do{var l=Zh(t.alternate,t);if(l!==null){l.flags&=32767,tt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){tt=t;return}tt=t=l}while(t!==null);At=6,tt=null}function Xr(t,e,l,a,n,u,i,r,m){t.cancelPendingCommit=null;do Ru();while(Ht!==0);if((st&6)!==0)throw Error(f(327));if(e!==null){if(e===t.current)throw Error(f(177));if(u=e.lanes|e.childLanes,u|=Ci,_m(t,l,u,i,r,m),t===yt&&(tt=yt=null,lt=0),qa=e,jl=t,ll=l,Xc=u,Qc=n,_r=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,e0(Gn,function(){return Kr(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=E.T,E.T=null,n=B.p,B.p=2,i=st,st|=4;try{wh(t,e,l)}finally{st=i,B.p=n,E.T=a}}Ht=1,Qr(),Zr(),wr()}}function Qr(){if(Ht===1){Ht=0;var t=jl,e=qa,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=E.T,E.T=null;var a=B.p;B.p=2;var n=st;st|=4;try{jr(e,t);var u=as,i=Ef(t.containerInfo),r=u.focusedElem,m=u.selectionRange;if(i!==r&&r&&r.ownerDocument&&Af(r.ownerDocument.documentElement,r)){if(m!==null&&Oi(r)){var S=m.start,A=m.end;if(A===void 0&&(A=S),"selectionStart"in r)r.selectionStart=S,r.selectionEnd=Math.min(A,r.value.length);else{var _=r.ownerDocument||document,N=_&&_.defaultView||window;if(N.getSelection){var z=N.getSelection(),Y=r.textContent.length,K=Math.min(m.start,Y),vt=m.end===void 0?K:Math.min(m.end,Y);!z.extend&&K>vt&&(i=vt,vt=K,K=i);var g=Tf(r,K),x=Tf(r,vt);if(g&&x&&(z.rangeCount!==1||z.anchorNode!==g.node||z.anchorOffset!==g.offset||z.focusNode!==x.node||z.focusOffset!==x.offset)){var b=_.createRange();b.setStart(g.node,g.offset),z.removeAllRanges(),K>vt?(z.addRange(b),z.extend(x.node,x.offset)):(b.setEnd(x.node,x.offset),z.addRange(b))}}}}for(_=[],z=r;z=z.parentNode;)z.nodeType===1&&_.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<_.length;r++){var M=_[r];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}$u=!!ls,as=ls=null}finally{st=n,B.p=a,E.T=l}}t.current=e,Ht=2}}function Zr(){if(Ht===2){Ht=0;var t=jl,e=qa,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=E.T,E.T=null;var a=B.p;B.p=2;var n=st;st|=4;try{vr(t,e.alternate,e)}finally{st=n,B.p=a,E.T=l}}Ht=3}}function wr(){if(Ht===4||Ht===3){Ht=0,Ce();var t=jl,e=qa,l=ll,a=_r;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Ht=5:(Ht=0,qa=jl=null,Vr(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(Sl=null),fi(l),e=e.stateNode,ce&&typeof ce.onCommitFiberRoot=="function")try{ce.onCommitFiberRoot(wa,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=E.T,n=B.p,B.p=2,E.T=null;try{for(var u=t.onRecoverableError,i=0;i<a.length;i++){var r=a[i];u(r.value,{componentStack:r.stack})}}finally{E.T=e,B.p=n}}(ll&3)!==0&&Ru(),Re(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===Zc?An++:(An=0,Zc=t):An=0,En(0)}}function Vr(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,cn(e)))}function Ru(){return Qr(),Zr(),wr(),Kr()}function Kr(){if(Ht!==5)return!1;var t=jl,e=Xc;Xc=0;var l=fi(ll),a=E.T,n=B.p;try{B.p=32>l?32:l,E.T=null,l=Qc,Qc=null;var u=jl,i=ll;if(Ht=0,qa=jl=null,ll=0,(st&6)!==0)throw Error(f(331));var r=st;if(st|=4,Er(u.current),zr(u,u.current,i,l),st=r,En(0,!1),ce&&typeof ce.onPostCommitFiberRoot=="function")try{ce.onPostCommitFiberRoot(wa,u)}catch{}return!0}finally{B.p=n,E.T=a,Vr(t,e)}}function Jr(t,e,l){e=je(l,e),e=Sc(t.stateNode,e,2),t=pl(t,e,2),t!==null&&(Ka(t,2),Re(t))}function dt(t,e,l){if(t.tag===3)Jr(t,t,l);else for(;e!==null;){if(e.tag===3){Jr(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Sl===null||!Sl.has(a))){t=je(l,t),l=ko(2),a=pl(e,l,2),a!==null&&($o(l,a,e,t),Ka(a,2),Re(a));break}}e=e.return}}function Kc(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new Jh;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(Yc=!0,n.add(l),t=Ih.bind(null,t,e,l),e.then(t,t))}function Ih(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,yt===t&&(lt&l)===l&&(At===4||At===3&&(lt&62914560)===lt&&300>ie()-Du?(st&2)===0&&Ra(t,0):Gc|=l,Ba===lt&&(Ba=0)),Re(t)}function kr(t,e){e===0&&(e=Ls()),t=Ll(t,e),t!==null&&(Ka(t,e),Re(t))}function Ph(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),kr(t,l)}function t0(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(f(314))}a!==null&&a.delete(e),kr(t,l)}function e0(t,e){return ua(t,e)}var Yu=null,Ga=null,Jc=!1,Gu=!1,kc=!1,zl=0;function Re(t){t!==Ga&&t.next===null&&(Ga===null?Yu=Ga=t:Ga=Ga.next=t),Gu=!0,Jc||(Jc=!0,a0())}function En(t,e){if(!kc&&Gu){kc=!0;do for(var l=!1,a=Yu;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,r=a.pingedLanes;u=(1<<31-se(42|t)+1)-1,u&=n&~(i&~r),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Ir(a,u))}else u=lt,u=Zn(a,a===yt?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Va(a,u)||(l=!0,Ir(a,u));a=a.next}while(l);kc=!1}}function l0(){$r()}function $r(){Gu=Jc=!1;var t=0;zl!==0&&m0()&&(t=zl);for(var e=ie(),l=null,a=Yu;a!==null;){var n=a.next,u=Wr(a,e);u===0?(a.next=null,l===null?Yu=n:l.next=n,n===null&&(Ga=l)):(l=a,(t!==0||(u&3)!==0)&&(Gu=!0)),a=n}Ht!==0&&Ht!==5||En(t),zl!==0&&(zl=0)}function Wr(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var i=31-se(u),r=1<<i,m=n[i];m===-1?((r&l)===0||(r&a)!==0)&&(n[i]=Mm(r,e)):m<=e&&(t.expiredLanes|=r),u&=~r}if(e=yt,l=lt,l=Zn(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(rt===2||rt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&V(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Va(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&V(a),fi(l)){case 2:case 8:l=Ys;break;case 32:l=Gn;break;case 268435456:l=Gs;break;default:l=Gn}return a=Fr.bind(null,t),l=ua(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&V(a),t.callbackPriority=2,t.callbackNode=null,2}function Fr(t,e){if(Ht!==0&&Ht!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Ru()&&t.callbackNode!==l)return null;var a=lt;return a=Zn(t,t===yt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(Ur(t,a,e),Wr(t,ie()),t.callbackNode!=null&&t.callbackNode===l?Fr.bind(null,t):null)}function Ir(t,e){if(Ru())return null;Ur(t,e,!0)}function a0(){p0(function(){(st&6)!==0?ua(Rs,l0):$r()})}function $c(){if(zl===0){var t=za;t===0&&(t=Ln,Ln<<=1,(Ln&261888)===0&&(Ln=256)),zl=t}return zl}function Pr(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Jn(""+t)}function td(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function n0(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var u=Pr((n[Pt]||null).action),i=a.submitter;i&&(e=(e=i[Pt]||null)?Pr(e.formAction):i.getAttribute("formAction"),e!==null&&(u=e,i=null));var r=new Fn("action","action",null,a,n);t.push({event:r,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(zl!==0){var m=i?td(n,i):new FormData(n);pc(l,{pending:!0,data:m,method:n.method,action:u},null,m)}}else typeof u=="function"&&(r.preventDefault(),m=i?td(n,i):new FormData(n),pc(l,{pending:!0,data:m,method:n.method,action:u},u,m))},currentTarget:n}]})}}for(var Wc=0;Wc<Ui.length;Wc++){var Fc=Ui[Wc],u0=Fc.toLowerCase(),i0=Fc[0].toUpperCase()+Fc.slice(1);_e(u0,"on"+i0)}_e(_f,"onAnimationEnd"),_e(Df,"onAnimationIteration"),_e(Uf,"onAnimationStart"),_e("dblclick","onDoubleClick"),_e("focusin","onFocus"),_e("focusout","onBlur"),_e(jh,"onTransitionRun"),_e(Nh,"onTransitionStart"),_e(zh,"onTransitionCancel"),_e(Cf,"onTransitionEnd"),oa("onMouseEnter",["mouseout","mouseover"]),oa("onMouseLeave",["mouseout","mouseover"]),oa("onPointerEnter",["pointerout","pointerover"]),oa("onPointerLeave",["pointerout","pointerover"]),ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ql("onBeforeInput",["compositionend","keypress","textInput","paste"]),ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var On="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),c0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(On));function ed(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var u=void 0;if(e)for(var i=a.length-1;0<=i;i--){var r=a[i],m=r.instance,S=r.currentTarget;if(r=r.listener,m!==u&&n.isPropagationStopped())break t;u=r,n.currentTarget=S;try{u(n)}catch(A){tu(A)}n.currentTarget=null,u=m}else for(i=0;i<a.length;i++){if(r=a[i],m=r.instance,S=r.currentTarget,r=r.listener,m!==u&&n.isPropagationStopped())break t;u=r,n.currentTarget=S;try{u(n)}catch(A){tu(A)}n.currentTarget=null,u=m}}}}function et(t,e){var l=e[oi];l===void 0&&(l=e[oi]=new Set);var a=t+"__bubble";l.has(a)||(ld(e,t,2,!1),l.add(a))}function Ic(t,e,l){var a=0;e&&(a|=4),ld(l,t,a,e)}var Lu="_reactListening"+Math.random().toString(36).slice(2);function Pc(t){if(!t[Lu]){t[Lu]=!0,Js.forEach(function(l){l!=="selectionchange"&&(c0.has(l)||Ic(l,!1,t),Ic(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Lu]||(e[Lu]=!0,Ic("selectionchange",!1,e))}}function ld(t,e,l,a){switch(Dd(e)){case 2:var n=B0;break;case 8:n=q0;break;default:n=hs}l=n.bind(null,e,l,t),n=void 0,!yi||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function ts(t,e,l,a,n){var u=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var r=a.stateNode.containerInfo;if(r===n)break;if(i===4)for(i=a.return;i!==null;){var m=i.tag;if((m===3||m===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;r!==null;){if(i=ca(r),i===null)return;if(m=i.tag,m===5||m===6||m===26||m===27){a=u=i;continue t}r=r.parentNode}}a=a.return}uf(function(){var S=u,A=vi(l),_=[];t:{var N=Hf.get(t);if(N!==void 0){var z=Fn,Y=t;switch(t){case"keypress":if($n(l)===0)break t;case"keydown":case"keyup":z=th;break;case"focusin":Y="focus",z=Ni;break;case"focusout":Y="blur",z=Ni;break;case"beforeblur":case"afterblur":z=Ni;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=ff;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Qm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=ah;break;case _f:case Df:case Uf:z=Vm;break;case Cf:z=uh;break;case"scroll":case"scrollend":z=Lm;break;case"wheel":z=ch;break;case"copy":case"cut":case"paste":z=Jm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=rf;break;case"toggle":case"beforetoggle":z=fh}var K=(e&4)!==0,vt=!K&&(t==="scroll"||t==="scrollend"),g=K?N!==null?N+"Capture":null:N;K=[];for(var x=S,b;x!==null;){var M=x;if(b=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||b===null||g===null||(M=$a(x,g),M!=null&&K.push(Mn(x,M,b))),vt)break;x=x.return}0<K.length&&(N=new z(N,Y,null,l,A),_.push({event:N,listeners:K}))}}if((e&7)===0){t:{if(N=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",N&&l!==xi&&(Y=l.relatedTarget||l.fromElement)&&(ca(Y)||Y[ia]))break t;if((z||N)&&(N=A.window===A?A:(N=A.ownerDocument)?N.defaultView||N.parentWindow:window,z?(Y=l.relatedTarget||l.toElement,z=S,Y=Y?ca(Y):null,Y!==null&&(vt=v(Y),K=Y.tag,Y!==vt||K!==5&&K!==27&&K!==6)&&(Y=null)):(z=null,Y=S),z!==Y)){if(K=ff,M="onMouseLeave",g="onMouseEnter",x="mouse",(t==="pointerout"||t==="pointerover")&&(K=rf,M="onPointerLeave",g="onPointerEnter",x="pointer"),vt=z==null?N:ka(z),b=Y==null?N:ka(Y),N=new K(M,x+"leave",z,l,A),N.target=vt,N.relatedTarget=b,M=null,ca(A)===S&&(K=new K(g,x+"enter",Y,l,A),K.target=b,K.relatedTarget=vt,M=K),vt=M,z&&Y)e:{for(K=s0,g=z,x=Y,b=0,M=g;M;M=K(M))b++;M=0;for(var w=x;w;w=K(w))M++;for(;0<b-M;)g=K(g),b--;for(;0<M-b;)x=K(x),M--;for(;b--;){if(g===x||x!==null&&g===x.alternate){K=g;break e}g=K(g),x=K(x)}K=null}else K=null;z!==null&&ad(_,N,z,K,!1),Y!==null&&vt!==null&&ad(_,vt,Y,K,!0)}}t:{if(N=S?ka(S):window,z=N.nodeName&&N.nodeName.toLowerCase(),z==="select"||z==="input"&&N.type==="file")var it=yf;else if(vf(N))if(bf)it=yh;else{it=vh;var L=xh}else z=N.nodeName,!z||z.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?S&&pi(S.elementType)&&(it=yf):it=gh;if(it&&(it=it(t,S))){gf(_,it,l,A);break t}L&&L(t,N,S),t==="focusout"&&S&&N.type==="number"&&S.memoizedProps.value!=null&&hi(N,"number",N.value)}switch(L=S?ka(S):window,t){case"focusin":(vf(L)||L.contentEditable==="true")&&(xa=L,Mi=S,an=null);break;case"focusout":an=Mi=xa=null;break;case"mousedown":_i=!0;break;case"contextmenu":case"mouseup":case"dragend":_i=!1,Of(_,l,A);break;case"selectionchange":if(Sh)break;case"keydown":case"keyup":Of(_,l,A)}var I;if(Ti)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 pa?pf(t,l)&&(at="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(at="onCompositionStart");at&&(df&&l.locale!=="ko"&&(pa||at!=="onCompositionStart"?at==="onCompositionEnd"&&pa&&(I=cf()):(sl=A,bi="value"in sl?sl.value:sl.textContent,pa=!0)),L=Xu(S,at),0<L.length&&(at=new of(at,t,null,l,A),_.push({event:at,listeners:L}),I?at.data=I:(I=xf(l),I!==null&&(at.data=I)))),(I=rh?dh(t,l):mh(t,l))&&(at=Xu(S,"onBeforeInput"),0<at.length&&(L=new of("onBeforeInput","beforeinput",null,l,A),_.push({event:L,listeners:at}),L.data=I)),n0(_,t,S,l,A)}ed(_,e)})}function Mn(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Xu(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=$a(t,l),n!=null&&a.unshift(Mn(t,n,u)),n=$a(t,e),n!=null&&a.push(Mn(t,n,u))),t.tag===3)return a;t=t.return}return[]}function s0(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ad(t,e,l,a,n){for(var u=e._reactName,i=[];l!==null&&l!==a;){var r=l,m=r.alternate,S=r.stateNode;if(r=r.tag,m!==null&&m===a)break;r!==5&&r!==26&&r!==27||S===null||(m=S,n?(S=$a(l,u),S!=null&&i.unshift(Mn(l,S,m))):n||(S=$a(l,u),S!=null&&i.push(Mn(l,S,m)))),l=l.return}i.length!==0&&t.push({event:e,listeners:i})}var f0=/\r\n?/g,o0=/\u0000|\uFFFD/g;function nd(t){return(typeof t=="string"?t:""+t).replace(f0,`
33
+ `).replace(o0,"")}function ud(t,e){return e=nd(e),nd(t)===e}function xt(t,e,l,a,n,u){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||da(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&da(t,""+a);break;case"className":Vn(t,"class",a);break;case"tabIndex":Vn(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Vn(t,l,a);break;case"style":af(t,a,u);break;case"data":if(e!=="object"){Vn(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Jn(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(e!=="input"&&xt(t,e,"name",n.name,n,null),xt(t,e,"formEncType",n.formEncType,n,null),xt(t,e,"formMethod",n.formMethod,n,null),xt(t,e,"formTarget",n.formTarget,n,null)):(xt(t,e,"encType",n.encType,n,null),xt(t,e,"method",n.method,n,null),xt(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Jn(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=Xe);break;case"onScroll":a!=null&&et("scroll",t);break;case"onScrollEnd":a!=null&&et("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(f(60));t.innerHTML=l}}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}l=Jn(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":et("beforetoggle",t),et("toggle",t),wn(t,"popover",a);break;case"xlinkActuate":Le(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Le(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Le(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Le(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Le(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Le(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Le(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Le(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Le(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":wn(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Ym.get(l)||l,wn(t,l,a))}}function es(t,e,l,a,n,u){switch(l){case"style":af(t,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(f(60));t.innerHTML=l}}break;case"children":typeof a=="string"?da(t,a):(typeof a=="number"||typeof a=="bigint")&&da(t,""+a);break;case"onScroll":a!=null&&et("scroll",t);break;case"onScrollEnd":a!=null&&et("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Xe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ks.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),u=t[Pt]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):wn(t,l,a)}}}function Kt(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":et("error",t),et("load",t);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,e));default:xt(t,e,u,i,l,null)}}n&&xt(t,e,"srcSet",l.srcSet,l,null),a&&xt(t,e,"src",l.src,l,null);return;case"input":et("invalid",t);var r=u=i=n=null,m=null,S=null;for(a in l)if(l.hasOwnProperty(a)){var A=l[a];if(A!=null)switch(a){case"name":n=A;break;case"type":i=A;break;case"checked":m=A;break;case"defaultChecked":S=A;break;case"value":u=A;break;case"defaultValue":r=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(f(137,e));break;default:xt(t,e,a,A,l,null)}}Ps(t,u,r,m,S,i,n,!1);return;case"select":et("invalid",t),a=i=u=null;for(n in l)if(l.hasOwnProperty(n)&&(r=l[n],r!=null))switch(n){case"value":u=r;break;case"defaultValue":i=r;break;case"multiple":a=r;default:xt(t,e,n,r,l,null)}e=u,l=i,t.multiple=!!a,e!=null?ra(t,!!a,e,!1):l!=null&&ra(t,!!a,l,!0);return;case"textarea":et("invalid",t),u=n=a=null;for(i in l)if(l.hasOwnProperty(i)&&(r=l[i],r!=null))switch(i){case"value":a=r;break;case"defaultValue":n=r;break;case"children":u=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(f(91));break;default:xt(t,e,i,r,l,null)}ef(t,a,n,u);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(a=l[m],a!=null))switch(m){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:xt(t,e,m,a,l,null)}return;case"dialog":et("beforetoggle",t),et("toggle",t),et("cancel",t),et("close",t);break;case"iframe":case"object":et("load",t);break;case"video":case"audio":for(a=0;a<On.length;a++)et(On[a],t);break;case"image":et("error",t),et("load",t);break;case"details":et("toggle",t);break;case"embed":case"source":case"link":et("error",t),et("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(S in l)if(l.hasOwnProperty(S)&&(a=l[S],a!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,e));default:xt(t,e,S,a,l,null)}return;default:if(pi(e)){for(A in l)l.hasOwnProperty(A)&&(a=l[A],a!==void 0&&es(t,e,A,a,l,void 0));return}}for(r in l)l.hasOwnProperty(r)&&(a=l[r],a!=null&&xt(t,e,r,a,l,null))}function r0(t,e,l,a){switch(e){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,r=null,m=null,S=null,A=null;for(z in l){var _=l[z];if(l.hasOwnProperty(z)&&_!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":m=_;default:a.hasOwnProperty(z)||xt(t,e,z,null,a,_)}}for(var N in a){var z=a[N];if(_=l[N],a.hasOwnProperty(N)&&(z!=null||_!=null))switch(N){case"type":u=z;break;case"name":n=z;break;case"checked":S=z;break;case"defaultChecked":A=z;break;case"value":i=z;break;case"defaultValue":r=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(f(137,e));break;default:z!==_&&xt(t,e,N,z,a,_)}}mi(t,i,r,m,S,A,u,n);return;case"select":z=i=r=N=null;for(u in l)if(m=l[u],l.hasOwnProperty(u)&&m!=null)switch(u){case"value":break;case"multiple":z=m;default:a.hasOwnProperty(u)||xt(t,e,u,null,a,m)}for(n in a)if(u=a[n],m=l[n],a.hasOwnProperty(n)&&(u!=null||m!=null))switch(n){case"value":N=u;break;case"defaultValue":r=u;break;case"multiple":i=u;default:u!==m&&xt(t,e,n,u,a,m)}e=r,l=i,a=z,N!=null?ra(t,!!l,N,!1):!!a!=!!l&&(e!=null?ra(t,!!l,e,!0):ra(t,!!l,l?[]:"",!1));return;case"textarea":z=N=null;for(r in l)if(n=l[r],l.hasOwnProperty(r)&&n!=null&&!a.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:xt(t,e,r,null,a,n)}for(i in a)if(n=a[i],u=l[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":N=n;break;case"defaultValue":z=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(f(91));break;default:n!==u&&xt(t,e,i,n,a,u)}tf(t,N,z);return;case"option":for(var Y in l)if(N=l[Y],l.hasOwnProperty(Y)&&N!=null&&!a.hasOwnProperty(Y))switch(Y){case"selected":t.selected=!1;break;default:xt(t,e,Y,null,a,N)}for(m in a)if(N=a[m],z=l[m],a.hasOwnProperty(m)&&N!==z&&(N!=null||z!=null))switch(m){case"selected":t.selected=N&&typeof N!="function"&&typeof N!="symbol";break;default:xt(t,e,m,N,a,z)}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 K in l)N=l[K],l.hasOwnProperty(K)&&N!=null&&!a.hasOwnProperty(K)&&xt(t,e,K,null,a,N);for(S in a)if(N=a[S],z=l[S],a.hasOwnProperty(S)&&N!==z&&(N!=null||z!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(f(137,e));break;default:xt(t,e,S,N,a,z)}return;default:if(pi(e)){for(var vt in l)N=l[vt],l.hasOwnProperty(vt)&&N!==void 0&&!a.hasOwnProperty(vt)&&es(t,e,vt,void 0,a,N);for(A in a)N=a[A],z=l[A],!a.hasOwnProperty(A)||N===z||N===void 0&&z===void 0||es(t,e,A,N,a,z);return}}for(var g in l)N=l[g],l.hasOwnProperty(g)&&N!=null&&!a.hasOwnProperty(g)&&xt(t,e,g,null,a,N);for(_ in a)N=a[_],z=l[_],!a.hasOwnProperty(_)||N===z||N==null&&z==null||xt(t,e,_,N,a,z)}function id(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function d0(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,i=n.initiatorType,r=n.duration;if(u&&r&&id(i)){for(i=0,r=n.responseEnd,a+=1;a<l.length;a++){var m=l[a],S=m.startTime;if(S>r)break;var A=m.transferSize,_=m.initiatorType;A&&id(_)&&(m=m.responseEnd,i+=A*(m<r?1:(r-S)/(m-S)))}if(--a,e+=8*(u+i)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var ls=null,as=null;function Qu(t){return t.nodeType===9?t:t.ownerDocument}function cd(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 sd(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function ns(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var us=null;function m0(){var t=window.event;return t&&t.type==="popstate"?t===us?!1:(us=t,!0):(us=null,!1)}var fd=typeof setTimeout=="function"?setTimeout:void 0,h0=typeof clearTimeout=="function"?clearTimeout:void 0,od=typeof Promise=="function"?Promise:void 0,p0=typeof queueMicrotask=="function"?queueMicrotask:typeof od<"u"?function(t){return od.resolve(null).then(t).catch(x0)}:fd;function x0(t){setTimeout(function(){throw t})}function Tl(t){return t==="head"}function rd(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),Za(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")_n(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,_n(l);for(var u=l.firstChild;u;){var i=u.nextSibling,r=u.nodeName;u[Ja]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&_n(t.ownerDocument.body);l=n}while(l);Za(e)}function dd(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function is(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":is(l),ri(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function v0(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Ja])switch(e){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(e==="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=Ee(t.nextSibling),t===null)break}return null}function g0(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ee(t.nextSibling),t===null))return null;return t}function md(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ee(t.nextSibling),t===null))return null;return t}function cs(t){return t.data==="$?"||t.data==="$~"}function ss(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function y0(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Ee(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var fs=null;function hd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ee(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function pd(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function xd(t,e,l){switch(e=Qu(l),t){case"html":if(t=e.documentElement,!t)throw Error(f(452));return t;case"head":if(t=e.head,!t)throw Error(f(453));return t;case"body":if(t=e.body,!t)throw Error(f(454));return t;default:throw Error(f(451))}}function _n(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ri(t)}var Oe=new Map,vd=new Set;function Zu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var al=B.d;B.d={f:b0,r:S0,D:j0,C:N0,L:z0,m:T0,X:E0,S:A0,M:O0};function b0(){var t=al.f(),e=Hu();return t||e}function S0(t){var e=sa(t);e!==null&&e.tag===5&&e.type==="form"?Ho(e):al.r(t)}var La=typeof document>"u"?null:document;function gd(t,e,l){var a=La;if(a&&typeof e=="string"&&e){var n=be(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),vd.has(n)||(vd.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),Kt(e,"link",t),Rt(e),a.head.appendChild(e)))}}function j0(t){al.D(t),gd("dns-prefetch",t,null)}function N0(t,e){al.C(t,e),gd("preconnect",t,e)}function z0(t,e,l){al.L(t,e,l);var a=La;if(a&&t&&e){var n='link[rel="preload"][as="'+be(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+be(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+be(l.imageSizes)+'"]')):n+='[href="'+be(t)+'"]';var u=n;switch(e){case"style":u=Xa(t);break;case"script":u=Qa(t)}Oe.has(u)||(t=T({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Oe.set(u,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(Dn(u))||e==="script"&&a.querySelector(Un(u))||(e=a.createElement("link"),Kt(e,"link",t),Rt(e),a.head.appendChild(e)))}}function T0(t,e){al.m(t,e);var l=La;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+be(a)+'"][href="'+be(t)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Qa(t)}if(!Oe.has(u)&&(t=T({rel:"modulepreload",href:t},e),Oe.set(u,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Un(u)))return}a=l.createElement("link"),Kt(a,"link",t),Rt(a),l.head.appendChild(a)}}}function A0(t,e,l){al.S(t,e,l);var a=La;if(a&&t){var n=fa(a).hoistableStyles,u=Xa(t);e=e||"default";var i=n.get(u);if(!i){var r={loading:0,preload:null};if(i=a.querySelector(Dn(u)))r.loading=5;else{t=T({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Oe.get(u))&&os(t,l);var m=i=a.createElement("link");Rt(m),Kt(m,"link",t),m._p=new Promise(function(S,A){m.onload=S,m.onerror=A}),m.addEventListener("load",function(){r.loading|=1}),m.addEventListener("error",function(){r.loading|=2}),r.loading|=4,wu(i,e,a)}i={type:"stylesheet",instance:i,count:1,state:r},n.set(u,i)}}}function E0(t,e){al.X(t,e);var l=La;if(l&&t){var a=fa(l).hoistableScripts,n=Qa(t),u=a.get(n);u||(u=l.querySelector(Un(n)),u||(t=T({src:t,async:!0},e),(e=Oe.get(n))&&rs(t,e),u=l.createElement("script"),Rt(u),Kt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function O0(t,e){al.M(t,e);var l=La;if(l&&t){var a=fa(l).hoistableScripts,n=Qa(t),u=a.get(n);u||(u=l.querySelector(Un(n)),u||(t=T({src:t,async:!0,type:"module"},e),(e=Oe.get(n))&&rs(t,e),u=l.createElement("script"),Rt(u),Kt(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function yd(t,e,l,a){var n=(n=Wt.current)?Zu(n):null;if(!n)throw Error(f(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Xa(l.href),l=fa(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Xa(l.href);var u=fa(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(Dn(t)))&&!u._p&&(i.instance=u,i.state.loading=5),Oe.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Oe.set(t,l),u||M0(n,t,l,i.state))),e&&a===null)throw Error(f(528,""));return i}if(e&&a!==null)throw Error(f(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Qa(l),l=fa(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,t))}}function Xa(t){return'href="'+be(t)+'"'}function Dn(t){return'link[rel="stylesheet"]['+t+"]"}function bd(t){return T({},t,{"data-precedence":t.precedence,precedence:null})}function M0(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Kt(e,"link",l),Rt(e),t.head.appendChild(e))}function Qa(t){return'[src="'+be(t)+'"]'}function Un(t){return"script[async]"+t}function Sd(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+be(l.href)+'"]');if(a)return e.instance=a,Rt(a),a;var n=T({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Rt(a),Kt(a,"style",n),wu(a,l.precedence,t),e.instance=a;case"stylesheet":n=Xa(l.href);var u=t.querySelector(Dn(n));if(u)return e.state.loading|=4,e.instance=u,Rt(u),u;a=bd(l),(n=Oe.get(n))&&os(a,n),u=(t.ownerDocument||t).createElement("link"),Rt(u);var i=u;return i._p=new Promise(function(r,m){i.onload=r,i.onerror=m}),Kt(u,"link",a),e.state.loading|=4,wu(u,l.precedence,t),e.instance=u;case"script":return u=Qa(l.src),(n=t.querySelector(Un(u)))?(e.instance=n,Rt(n),n):(a=l,(n=Oe.get(u))&&(a=T({},l),rs(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Rt(n),Kt(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(f(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,wu(a,l.precedence,t));return e.instance}function wu(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var r=a[i];if(r.dataset.precedence===e)u=r;else if(u!==n)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function os(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function rs(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Vu=null;function jd(t,e,l){if(Vu===null){var a=new Map,n=Vu=new Map;n.set(l,a)}else n=Vu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var u=l[n];if(!(u[Ja]||u[Qt]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(e)||"";i=t+i;var r=a.get(i);r?r.push(u):a.set(i,[u])}}return a}function Nd(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function _0(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function zd(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function D0(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Xa(a.href),u=e.querySelector(Dn(n));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ku.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=u,Rt(u);return}u=e.ownerDocument||e,a=bd(a),(n=Oe.get(n))&&os(a,n),u=u.createElement("link"),Rt(u);var i=u;i._p=new Promise(function(r,m){i.onload=r,i.onerror=m}),Kt(u,"link",a),l.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Ku.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var ds=0;function U0(t,e){return t.stylesheets&&t.count===0&&ku(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&ku(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&ds===0&&(ds=62500*d0());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ku(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>ds?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Ku(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ku(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ju=null;function ku(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ju=new Map,e.forEach(C0,t),Ju=null,Ku.call(t))}function C0(t,e){if(!(e.state.loading&4)){var l=Ju.get(t);if(l)var a=l.get(null);else{l=new Map,Ju.set(t,l);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")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}n=e.instance,i=n.getAttribute("data-precedence"),u=l.get(i)||a,u===a&&l.set(null,n),l.set(i,n),this.count++,a=Ku.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var Cn={$$typeof:$,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function H0(t,e,l,a,n,u,i,r,m){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=ci(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ci(0),this.hiddenUpdates=ci(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function Td(t,e,l,a,n,u,i,r,m,S,A,_){return t=new H0(t,e,l,i,m,S,A,_,r),e=1,u===!0&&(e|=24),u=oe(3,null,null,e),t.current=u,u.stateNode=t,e=Vi(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:e},$i(u),t}function Ad(t){return t?(t=ya,t):ya}function Ed(t,e,l,a,n,u){n=Ad(n),a.context===null?a.context=n:a.pendingContext=n,a=hl(e),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=pl(t,a,e),l!==null&&(ue(l,t,e),rn(l,t,e))}function Od(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function ms(t,e){Od(t,e),(t=t.alternate)&&Od(t,e)}function Md(t){if(t.tag===13||t.tag===31){var e=Ll(t,67108864);e!==null&&ue(e,t,67108864),ms(t,67108864)}}function _d(t){if(t.tag===13||t.tag===31){var e=pe();e=si(e);var l=Ll(t,e);l!==null&&ue(l,t,e),ms(t,e)}}var $u=!0;function B0(t,e,l,a){var n=E.T;E.T=null;var u=B.p;try{B.p=2,hs(t,e,l,a)}finally{B.p=u,E.T=n}}function q0(t,e,l,a){var n=E.T;E.T=null;var u=B.p;try{B.p=8,hs(t,e,l,a)}finally{B.p=u,E.T=n}}function hs(t,e,l,a){if($u){var n=ps(a);if(n===null)ts(t,e,a,Wu,l),Ud(t,a);else if(Y0(n,t,e,l,a))a.stopPropagation();else if(Ud(t,a),e&4&&-1<R0.indexOf(t)){for(;n!==null;){var u=sa(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=Bl(u.pendingLanes);if(i!==0){var r=u;for(r.pendingLanes|=2,r.entangledLanes|=2;i;){var m=1<<31-se(i);r.entanglements[1]|=m,i&=~m}Re(u),(st&6)===0&&(Uu=ie()+500,En(0))}}break;case 31:case 13:r=Ll(u,2),r!==null&&ue(r,u,2),Hu(),ms(u,2)}if(u=ps(a),u===null&&ts(t,e,a,Wu,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else ts(t,e,a,null,l)}}function ps(t){return t=vi(t),xs(t)}var Wu=null;function xs(t){if(Wu=null,t=ca(t),t!==null){var e=v(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=y(e),t!==null)return t;t=null}else if(l===31){if(t=U(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Wu=t,null}function Dd(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(jm()){case Rs:return 2;case Ys:return 8;case Gn:case Nm:return 32;case Gs:return 268435456;default:return 32}default:return 32}}var vs=!1,Al=null,El=null,Ol=null,Hn=new Map,Bn=new Map,Ml=[],R0="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 Ud(t,e){switch(t){case"focusin":case"focusout":Al=null;break;case"dragenter":case"dragleave":El=null;break;case"mouseover":case"mouseout":Ol=null;break;case"pointerover":case"pointerout":Hn.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bn.delete(e.pointerId)}}function qn(t,e,l,a,n,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},e!==null&&(e=sa(e),e!==null&&Md(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function Y0(t,e,l,a,n){switch(e){case"focusin":return Al=qn(Al,t,e,l,a,n),!0;case"dragenter":return El=qn(El,t,e,l,a,n),!0;case"mouseover":return Ol=qn(Ol,t,e,l,a,n),!0;case"pointerover":var u=n.pointerId;return Hn.set(u,qn(Hn.get(u)||null,t,e,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Bn.set(u,qn(Bn.get(u)||null,t,e,l,a,n)),!0}return!1}function Cd(t){var e=ca(t.target);if(e!==null){var l=v(e);if(l!==null){if(e=l.tag,e===13){if(e=y(l),e!==null){t.blockedOn=e,Vs(t.priority,function(){_d(l)});return}}else if(e===31){if(e=U(l),e!==null){t.blockedOn=e,Vs(t.priority,function(){_d(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Fu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=ps(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);xi=a,l.target.dispatchEvent(a),xi=null}else return e=sa(l),e!==null&&Md(e),t.blockedOn=l,!1;e.shift()}return!0}function Hd(t,e,l){Fu(t)&&l.delete(e)}function G0(){vs=!1,Al!==null&&Fu(Al)&&(Al=null),El!==null&&Fu(El)&&(El=null),Ol!==null&&Fu(Ol)&&(Ol=null),Hn.forEach(Hd),Bn.forEach(Hd)}function Iu(t,e){t.blockedOn===e&&(t.blockedOn=null,vs||(vs=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,G0)))}var Pu=null;function Bd(t){Pu!==t&&(Pu=t,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){Pu===t&&(Pu=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(xs(a||l)===null)continue;break}var u=sa(l);u!==null&&(t.splice(e,3),e-=3,pc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Za(t){function e(m){return Iu(m,t)}Al!==null&&Iu(Al,t),El!==null&&Iu(El,t),Ol!==null&&Iu(Ol,t),Hn.forEach(e),Bn.forEach(e);for(var l=0;l<Ml.length;l++){var a=Ml[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Ml.length&&(l=Ml[0],l.blockedOn===null);)Cd(l),l.blockedOn===null&&Ml.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],i=n[Pt]||null;if(typeof u=="function")i||Bd(l);else if(i){var r=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[Pt]||null)r=i.formAction;else if(xs(n)!==null)continue}else r=i.action;typeof r=="function"?l[a+1]=r:(l.splice(a,3),a-=3),Bd(l)}}}function qd(){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 e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function gs(t){this._internalRoot=t}ti.prototype.render=gs.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(f(409));var l=e.current,a=pe();Ed(l,a,t,e,null,null)},ti.prototype.unmount=gs.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ed(t.current,2,null,t,null,null),Hu(),e[ia]=null}};function ti(t){this._internalRoot=t}ti.prototype.unstable_scheduleHydration=function(t){if(t){var e=ws();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Ml.length&&e!==0&&e<Ml[l].priority;l++);Ml.splice(l,0,t),l===0&&Cd(t)}};var Rd=d.version;if(Rd!=="19.2.7")throw Error(f(527,Rd,"19.2.7"));B.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(f(188)):(t=Object.keys(t).join(","),Error(f(268,t)));return t=h(e),t=t!==null?j(t):null,t=t===null?null:t.stateNode,t};var L0={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:E,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ei=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ei.isDisabled&&ei.supportsFiber)try{wa=ei.inject(L0),ce=ei}catch{}}return Rn.createRoot=function(t,e){if(!p(t))throw Error(f(299));var l=!1,a="",n=wo,u=Vo,i=Ko;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=Td(t,1,!1,null,null,l,a,null,n,u,i,qd),t[ia]=e.current,Pc(t),new gs(e)},Rn.hydrateRoot=function(t,e,l){if(!p(t))throw Error(f(299));var a=!1,n="",u=wo,i=Vo,r=Ko,m=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(r=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),e=Td(t,1,!0,e,l??null,a,n,m,u,i,r,qd),e.context=Ad(null),l=e.current,a=pe(),a=si(a),n=hl(a),n.callback=null,pl(l,n,a),l=a,e.current.lanes=l,Ka(e,l),Re(e),t[ia]=e.current,Pc(t),new ti(e)},Rn.version="19.2.7",Rn}var Zd;function $0(){if(Zd)return ys.exports;Zd=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(d){console.error(d)}}return s(),ys.exports=k0(),ys.exports}var W0=$0();const zs={status:null,conductorYaml:null,statusPath:".conductor/status.json",conductorPath:null};function F0(){const[s,d]=Q.useState({}),[o,f]=Q.useState([]),[p,v]=Q.useState("connecting");return Q.useEffect(()=>{let y=null,U;const O=j=>f(T=>T.includes(j)?T:[...T,j]),h=()=>{y=new EventSource("/events"),y.addEventListener("open",()=>v("live")),y.addEventListener("update",j=>{try{const T=JSON.parse(j.data),D=T.workflow??"workflow";O(D),d(C=>{var G;return{...C,[D]:{snap:T,history:((G=C[D])==null?void 0:G.history)??[]}}}),v("live")}catch{}}),y.addEventListener("history",j=>{try{const T=JSON.parse(j.data);if(Array.isArray(T))return;const D=T.workflow,C=T.runs??[];O(D),d(G=>{var q,k;return{...G,[D]:{snap:((q=G[D])==null?void 0:q.snap)??zs,history:C,ledger:(k=G[D])==null?void 0:k.ledger}}})}catch{}}),y.addEventListener("insights",j=>{try{const T=JSON.parse(j.data),D=T.workflow,C=T.ledger;O(D),d(G=>{var q,k;return{...G,[D]:{snap:((q=G[D])==null?void 0:q.snap)??zs,history:((k=G[D])==null?void 0:k.history)??[],ledger:C}}})}catch{}}),y.addEventListener("error",()=>{v("lost"),y==null||y.close(),clearTimeout(U),U=setTimeout(h,2e3)})};return h(),()=>{y==null||y.close(),clearTimeout(U)}},[]),{workflows:s,order:o,conn:p}}function I0(s){const d=[],o=[];if(!Array.isArray(s))return{soft:d,hard:o};for(const f of s)if(typeof f=="string")d.push(f);else if(f&&typeof f=="object"){const p=f;typeof p.check=="string"?o.push({text:p.check,name:typeof p.name=="string"?p.name:void 0}):d.push(String(f))}return{soft:d,hard:o}}const P0=s=>s.split(`
34
+ `).map(d=>d.trim()).find(d=>d.length>0)??"";function nm(s,d){var U,O,h,j,T,D;const o=(s.instruction??"").trim(),{soft:f,hard:p}=I0(s.gate),v=s.type==="loop",y=s.type==="approval";return{id:s.id,index:d,instruction:o,firstLine:P0(o),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:f,hard:p,isLoop:v,over:s.over,as:s.as,parallel:s.parallel==="auto"?"auto":s.parallel===!0,subSteps:v&&Array.isArray(s.steps)?s.steps.filter(C=>C&&C.id).map((C,G)=>nm(C,G)):void 0,isApproval:y,approval:y?{prompt:(U=s.approval)==null?void 0:U.prompt,items:Array.isArray((O=s.approval)==null?void 0:O.items)?s.approval.items:void 0,approve:(j=(h=s.approval)==null?void 0:h.actions)==null?void 0:j.approve,reject:(D=(T=s.approval)==null?void 0:T.actions)==null?void 0:D.reject}:void 0}}const tp=["emerging","proven","applied","open"],ep=["this-conductor","upstream","template","tooling","corpus"];function lp(s){if(!Array.isArray(s))return[];const d=[];for(const o of s)if(typeof o=="string")d.push({title:o,status:"applied",scope:"this-conductor",observed:1});else if(o&&typeof o=="object"){const f=o;if(typeof f.title!="string")continue;d.push({title:f.title,status:tp.includes(f.status)?f.status:"emerging",scope:ep.includes(f.scope)?f.scope:"this-conductor",observed:typeof f.observed=="number"?f.observed:1,step:typeof f.step=="string"?f.step:void 0,type:typeof f.type=="string"?f.type:void 0,current:typeof f.current=="string"?f.current:void 0,proposed:typeof f.proposed=="string"?f.proposed:void 0,run_applied:typeof f.run_applied=="string"?f.run_applied:void 0,note:typeof f.note=="string"?f.note:void 0})}return d}function ap(s){if(!s)return null;let d;try{d=Z0.load(s)??{}}catch{return null}const f=(Array.isArray(d.steps)?d.steps:[]).filter(p=>p&&p.id).map((p,v)=>nm(p,v));return{name:d.name,description:d.description,knowledge:lp(d.knowledge),steps:f,autoImprove:d.auto_improve!==!1}}function Us(s){return Array.isArray(s.heartbeat)?s.heartbeat.filter(d=>d&&typeof d.at=="string"&&typeof d.note=="string").map(d=>({at:d.at,note:d.note,iteration:d.iteration,sub:d.sub,insight:d.insight&&typeof d.insight.type=="string"?{type:d.insight.type,seed:d.insight.seed??"",step:d.insight.step,scope:d.insight.scope,confidence:d.insight.confidence}:void 0,finalBeat:d.finalBeat===!0,handoff:d.handoff&&typeof d.handoff=="object"?{to:d.handoff.to,to_iteration:d.handoff.to_iteration,context:d.handoff.context,produced:d.handoff.produced}:void 0})):[]}function np(s){const d=[],o=s.iterations??{};for(const f of Object.keys(o)){const p=o[f]??{};for(const v of Object.keys(p))for(const y of Us(p[v]))d.push({...y,iteration:y.iteration??f,sub:y.sub??v})}return d}function up(s,d){if(!s.isLoop)return;const o=s.subSteps??[],f=d.iterations??{},p=Object.keys(f),v=p.map(U=>{const O=f[U]??{},j=(o.length?o.map(T=>T.id):Object.keys(O)).map(T=>{const D=O[T]??{},C=o.find(G=>G.id===T);return{id:T,status:D.status??"pending",gate:D.gate??"pending",attempt:D.attempt??1,started_at:D.started_at,completed_at:D.completed_at,criteria:C?Cs(C,D.gate_detail):[]}});return{item:U,steps:j,done:j.length>0&&j.every(T=>T.status==="done"),failed:j.some(T=>T.status==="failed")}}),y=typeof d.total=="number"&&d.total>0?d.total:0;return{total:Math.max(y,p.length),completed:typeof d.completed=="number"?d.completed:v.filter(U=>U.done).length,currentItem:d.current_item,iterations:v}}function ip(s,d){var v,y,U,O;if(!s.isApproval)return;const o=(v=d.approval)==null?void 0:v.items;let f;Array.isArray(o)&&o.length>0?f=o.map(h=>({label:String((h==null?void 0:h.label)??""),decision:(h==null?void 0:h.decision)==="approved"||(h==null?void 0:h.decision)==="rejected"?h.decision:null})):f=(((y=s.approval)==null?void 0:y.items)??[]).map(h=>({label:h,decision:null}));const p=f.length>0&&f.every(h=>h.decision!==null);return{prompt:((U=d.approval)==null?void 0:U.prompt)??((O=s.approval)==null?void 0:O.prompt),items:f,decided:p}}function um(s,d){return s==="failed"||d==="failed"?"failed":s==="done"?"done":s==="awaiting_approval"||d==="checking"?"gate":s==="running"?"running":"pending"}function Cs(s,d){const o=[],f=p=>d==null?void 0:d.find(v=>v.criterion===p||v.criterion===p.trim());for(const p of s.soft){const v=f(p);o.push({kind:"soft",text:p,passed:v?!!v.passed:null})}for(const p of s.hard){const v=f(p.text)??(p.name?f(p.name):void 0);o.push({kind:"hard",text:p.text,name:p.name,passed:v?!!v.passed:null,exitCode:v==null?void 0:v.exit_code,verified:(v==null?void 0:v.verified)===!0})}return o}function cp(s){return Object.keys(s).map((d,o)=>{var f,p,v,y;return{id:d,index:o,instruction:"",firstLine:"",isCondition:!!((f=s[d])!=null&&f.branch_taken),requires:[],soft:[],hard:[],isLoop:((p=s[d])==null?void 0:p.type)==="loop",isApproval:!!((v=s[d])!=null&&v.approval)||((y=s[d])==null?void 0:y.status)==="awaiting_approval"}})}function im(s){return s.startsWith("_improve::")||s==="_validate"||s==="_improve"}function sp(s,d,o){return o||(d==="validate"||s.endsWith("::validate")?"Validate conductor":d==="read-knowledge"||s.endsWith("::read-knowledge")?"Read knowledge":s.replace("_improve::",""))}function fp(s){return Object.keys(s).filter(im).map((o,f)=>{const p=s[o]??{},v=p.improve??{},y=o==="_validate"||o==="_improve::validate"||v.kind==="validate",U=sp(o,v.kind,v.title),O=p.status??"pending",h=p.gate??"pending",j={step:v.step,title:U,current:v.current,proposed:v.proposed,note:v.note,observed:v.observed,scope:v.scope,structural:v.structural===!0,kind:v.kind??(y?"validate":"instruction")};return{id:o,index:f,instruction:"",firstLine:U,isCondition:!1,requires:[],soft:[],hard:[],isLoop:!1,isApproval:!1,column:um(O,h),rawStatus:O,gateState:h,attempt:p.attempt??1,started_at:p.started_at,completed_at:p.completed_at,improve:j,phase:"improve",branchTaken:void 0,output_value:void 0,criteria:Cs({soft:[],hard:[]},p.gate_detail),loop:void 0,approvalState:void 0,heartbeat:Us(p),learnings:[]}})}const wd=new WeakMap;function li(s){const d=wd.get(s);if(d)return d;const o=op(s);return wd.set(s,o),o}function op(s){var mt,$;const d=s.status??{},o=d.steps??{},f=ap(s.conductorYaml),p=!!f&&f.steps.length>0,v=p?f.steps:cp(o).filter(H=>!im(H.id)),y=d.auto_improve,U=y!==void 0?y!==!1:(f==null?void 0:f.autoImprove)??!0,O=U?fp(o):[],h=v.map(H=>{const Z=o[H.id]??{},W=Z.status??"pending",R=Z.gate??"pending";return{...H,column:um(W,R),rawStatus:W,gateState:R,attempt:Z.attempt??1,started_at:Z.started_at,completed_at:Z.completed_at,phase:"workflow",branchTaken:Z.branch_taken,output_value:Z.output,criteria:Cs(H,Z.gate_detail),loop:up(H,Z),approvalState:ip(H,Z),heartbeat:[...Us(Z),...np(Z)].sort((jt,Lt)=>jt.at<Lt.at?-1:jt.at>Lt.at?1:0),learnings:Array.isArray(Z.learnings)?Z.learnings.filter(jt=>typeof jt=="string"):[]}}),j=[...O,...h],T=h.length,D=h.filter(H=>H.column==="done").length;let C=0,G=0;for(const H of h)if(H.isLoop&&H.loop){const Z=H.loop.iterations,W=((mt=H.subSteps)==null?void 0:mt.length)||(($=Z[0])==null?void 0:$.steps.length)||1,R=H.loop.total||Z.length||0;C+=R*W,G+=Z.reduce((ft,jt)=>ft+jt.steps.filter(Lt=>Lt.status==="done").length,0)}else C+=1,H.column==="done"&&(G+=1);const q=j.flatMap(H=>H.heartbeat.map(Z=>Z.at)).sort().at(-1),k=j.reduce((H,Z)=>H+Z.heartbeat.filter(W=>W.insight).length,0),P=Array.isArray(d.suggestions)?d.suggestions:[];return{workflow:d.workflow??(f==null?void 0:f.name)??"workflow",description:(f==null?void 0:f.description)??d.description,knowledge:(f==null?void 0:f.knowledge)??[],goal:d.goal??(f==null?void 0:f.description),currentStepGoal:d.current_step_goal,lastBeatAt:q,insightCount:k,suggestions:P,runId:d.run_id,runName:d.run_name,autoImprove:U,startedAt:d.started_at,endedAt:d.completed_at,overallStatus:d.status??"idle",currentStep:d.current_step,steps:j,done:D,total:T,unitsDone:G,unitsTotal:C,hasConductor:p,demo:d._demo===!0,error:d._error}}let Vd=null,Kd=0;const cm="cb-mute-ticks",sm="cb-mute-chimes";function fm(s){try{return localStorage.getItem(s)==="1"}catch{return!1}}function om(s,d){try{localStorage.setItem(s,d?"1":"0")}catch{}}const rm=()=>fm(cm),rp=s=>om(cm,s),dm=()=>fm(sm),dp=s=>om(sm,s);function mm(){try{const s=window.AudioContext||window.webkitAudioContext;return Vd??(Vd=new s),Vd}catch{return null}}function hm(s,d){if(dm())return!1;const o=Date.now();if(o-Kd<2e3)return!1;const f=mm();if(!f)return!1;Kd=o;try{f.state==="suspended"&&f.resume();const p=f.currentTime,v=f.createOscillator(),y=f.createGain();return v.type="sine",v.frequency.setValueAtTime(s,p),y.gain.setValueAtTime(.15,p),y.gain.exponentialRampToValueAtTime(1e-4,p+d),v.connect(y).connect(f.destination),v.start(p),v.stop(p+d),!0}catch{return!1}}const mp=()=>hm(800,.5),hp=()=>hm(400,.7);let Jd=0;function pp(){if(rm())return!1;const s=Date.now();if(s-Jd<120)return!1;const d=mm();if(!d)return!1;Jd=s;try{d.state==="suspended"&&d.resume();const o=d.currentTime,f=d.createOscillator(),p=d.createGain();return f.type="sine",f.frequency.setValueAtTime(2e3,o),p.gain.setValueAtTime(1e-4,o),p.gain.exponentialRampToValueAtTime(.03,o+.005),p.gain.exponentialRampToValueAtTime(1e-4,o+.05),f.connect(p).connect(d.destination),f.start(o),f.stop(o+.06),!0}catch{return!1}}function kd(s,d,o,f,p,v){return!o||typeof o.at!="string"||typeof o.note!="string"?null:{key:`${s} ${d} ${p??""} ${v??""} ${o.at} ${f}`,workflow:s,step:d,at:o.at,note:o.note,iteration:o.iteration??p,sub:o.sub??v,finalBeat:o.finalBeat===!0,insight:o.insight&&typeof o.insight.type=="string"?{type:o.insight.type,seed:o.insight.seed??"",step:o.insight.step,confidence:o.insight.confidence}:void 0}}function xp(s,d){var p,v;const o=[],f=y=>{y&&o.push(y)};for(const y of d){const U=(p=s[y])==null?void 0:p.snap.status,O=(U==null?void 0:U.steps)??{};for(const h of Object.keys(O)){const j=O[h];Array.isArray(j==null?void 0:j.heartbeat)&&j.heartbeat.forEach((D,C)=>f(kd(y,h,D,C)));const T=j==null?void 0:j.iterations;if(T&&typeof T=="object")for(const D of Object.keys(T)){const C=T[D]??{};for(const G of Object.keys(C)){const q=(v=C[G])==null?void 0:v.heartbeat;Array.isArray(q)&&q.forEach((k,P)=>f(kd(y,h,k,P,D,G)))}}}}return o.sort((y,U)=>y.at<U.at?-1:y.at>U.at?1:0),o}const Ns=500;function vp(s,d){const o=Q.useMemo(()=>xp(s,d),[s,d]),f=Q.useRef(null),p=Q.useRef(0),[v,y]=Q.useState(null),[U,O]=Q.useState([]);return Q.useEffect(()=>{if(f.current===null){f.current=new Set(o.map(j=>j.key)),O(o.slice(-Ns));return}const h=o.filter(j=>!f.current.has(j.key));if(h.length!==0){for(const j of h)f.current.add(j.key);O(j=>{const T=j.concat(h);return T.length>Ns?T.slice(T.length-Ns):T}),p.current+=1,y({beat:h[h.length-1],nonce:p.current})}},[o]),{beats:o,log:U,arrival:v}}function gp(s){return s.length?s[s.length-1].at:void 0}function ea(s=1e3){const[d,o]=Q.useState(()=>Date.now());return Q.useEffect(()=>{const f=setInterval(()=>o(Date.now()),s);return()=>clearInterval(f)},[s]),d}function pm(s){return s.failed?"failed":s.steps.length>0&&s.steps.every(d=>d.status==="done")?"done":s.steps.some(d=>d.gate==="checking")?"gate":s.steps.some(d=>d.status==="running")?"running":"pending"}function Dl(s){return s.status==="failed"||s.gate==="failed"?"failed":s.status==="done"?"done":s.gate==="checking"?"gate":s.status==="running"?"running":"pending"}function xm(s){var d,o;if(s.isLoop&&s.loop){const f=s.loop.iterations,p=s.loop.currentItem??((d=f.find(y=>!y.done&&!y.failed))==null?void 0:d.item)??((o=f[f.length-1])==null?void 0:o.item),v=f.find(y=>y.item===p);if(v&&p){const y=v.steps.find(h=>Dl(h)==="running")??v.steps.find(h=>Dl(h)==="gate")??v.steps.find(h=>Dl(h)==="pending")??v.steps[v.steps.length-1],U=s.heartbeat.filter(h=>h.iteration===p&&(!y||h.sub===y.id)),O=s.heartbeat.filter(h=>h.iteration===p);return{step:s,title:y?`${p} · ${y.id}`:p,beats:U.length?U:O,criteria:(y==null?void 0:y.criteria)??[],startedAt:y==null?void 0:y.started_at,completedAt:y==null?void 0:y.completed_at,running:y?Dl(y)==="running":!1}}}return{step:s,title:s.id,beats:s.heartbeat,criteria:s.criteria,startedAt:s.started_at,completedAt:s.completed_at,running:s.column==="running"}}function yp(s){const d=s.steps.filter(o=>o.phase==="workflow");return d.find(o=>o.id===s.currentStep)??d.find(o=>o.column==="running")??(s.overallStatus==="done"||s.overallStatus==="failed"?d[d.length-1]??null:null)}function bp(s){var o,f;if(!(s!=null&&s.isLoop)||!s.loop)return;const d=s.loop.iterations;if(d.length!==0)return(s.loop.currentItem&&d.some(p=>p.item===s.loop.currentItem)?s.loop.currentItem:void 0)??((o=d.find(p=>!p.done&&!p.failed))==null?void 0:o.item)??((f=d[d.length-1])==null?void 0:f.item)}function ta(s,d,o){if(!s)return null;const f=new Date(s).getTime();if(Number.isNaN(f))return null;const p=o?new Date(o).getTime():d;if(Number.isNaN(p)||p<f)return null;const v=Math.floor((p-f)/1e3),y=Math.floor(v/60),U=v%60;return`${y}:${String(U).padStart(2,"0")}`}const Sp={check:c.jsx("path",{d:"M4 12l5 5L20 7"}),cross:c.jsx("path",{d:"M6 6l12 12M18 6 6 18"}),chevronRight:c.jsx("path",{d:"M9 6l6 6-6 6"}),chevronDown:c.jsx("path",{d:"M6 9l6 6 6-6"}),arrowLeft:c.jsx("path",{d:"M11 6l-6 6 6 6M5 12h14"}),arrowRight:c.jsx("path",{d:"M13 6l6 6-6 6M19 12H5"}),loop:c.jsx("path",{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"}),clock:c.jsxs(c.Fragment,{children:[c.jsx("circle",{cx:"12",cy:"12",r:"9"}),c.jsx("path",{d:"M12 7v5l3 2"})]}),menu:c.jsx("path",{d:"M4 6h16M4 12h16M4 18h16"}),muted:c.jsxs(c.Fragment,{children:[c.jsx("path",{d:"M11 5 6 9H2v6h4l5 4V5Z"}),c.jsx("path",{d:"m23 9-6 6M17 9l6 6"})]}),sound:c.jsxs(c.Fragment,{children:[c.jsx("path",{d:"M11 5 6 9H2v6h4l5 4V5Z"}),c.jsx("path",{d:"M15.5 8.5a5 5 0 0 1 0 7"})]}),minus:c.jsx("path",{d:"M5 12h14"})};function Jt({name:s,size:d=16,className:o}){return c.jsx("svg",{width:d,height:d,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:o,"aria-hidden":!0,children:Sp[s]})}const $d={running:"led led-running",gate:"led led-gate",done:"led led-done",failed:"led led-failed",stalled:"led led-stalled",pending:"led led-pending",idle:"led led-pending"};function It({state:s,title:d}){return c.jsx("span",{className:$d[s]??$d.pending,title:d,"aria-hidden":!0})}function jp({workflow:s,sidebarOpen:d,onToggleSidebar:o,showBackToLive:f,onBackToLive:p}){return c.jsxs("header",{className:"flex h-12 shrink-0 items-center gap-2.5 border-b border-line bg-panel/60 px-3 backdrop-blur",children:[o&&c.jsx("button",{onClick:o,"aria-label":d?"Collapse sidebar":"Expand sidebar",title:d?"Collapse sidebar":"Expand sidebar",className:"grid h-7 w-7 shrink-0 place-items-center rounded-md text-mist transition-colors hover:bg-panel-2 hover:text-chalk",children:c.jsx(Jt,{name:d?"arrowLeft":"arrowRight",size:16})}),c.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2.5",children:[c.jsx("img",{src:"./conductor.svg",alt:"",className:"h-4 w-4 shrink-0 opacity-70"}),c.jsx("span",{className:"shrink-0 font-mono text-[12px] tracking-wide text-mist",children:"conductor"}),s&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"shrink-0 text-dim",children:"/"}),c.jsx("span",{className:"min-w-0 truncate text-[14px] font-medium text-chalk",children:s})]})]}),f&&c.jsxs("button",{onClick:p,title:"Back to the live run (Esc)",className:"flex shrink-0 items-center gap-1.5 rounded-md border border-line-2 bg-panel-2 py-1 pl-2.5 pr-1.5 text-[12px] text-chalk transition-colors hover:border-mint/50 hover:bg-panel",children:[c.jsx(It,{state:"running"}),c.jsxs("span",{className:"flex items-center gap-1",children:[c.jsx(Jt,{name:"arrowLeft",size:13})," Back to live"]}),c.jsx("kbd",{className:"rounded border border-line bg-ink/60 px-1 font-mono text-[10px] leading-none text-dim",children:"esc"})]})]})}function Np({label:s,timer:d,timerPrefix:o}){return c.jsxs("div",{className:"flex h-11 shrink-0 items-center gap-3 border-b border-line px-5",children:[c.jsx("span",{className:"min-w-0 flex-1 truncate text-[13px] text-mist",children:s}),d&&c.jsxs("span",{className:"shrink-0 text-[12px] tabular-nums text-dim",children:[o?`${o} `:"",d]})]})}const Ts=/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g;function ui(s){const d=[];let o=0,f;Ts.lastIndex=0;let p=0;for(;(f=Ts.exec(s))!==null;)f.index>o&&d.push(s.slice(o,f.index)),d.push(c.jsxs("a",{href:f[2],target:"_blank",rel:"noopener noreferrer",onClick:v=>v.stopPropagation(),className:"text-cyan underline-offset-2 hover:underline",children:[f[1],c.jsx("span",{"aria-hidden":!0,className:"ml-0.5 text-[0.85em]",children:"↗"})]},p++)),o=f.index+f[0].length;return o<s.length&&d.push(s.slice(o)),d}function ai(s){return s.replace(Ts,"$1")}function Hs(s,d){if(!s)return null;const o=new Date(s).getTime();return Number.isNaN(o)?null:Math.max(0,Math.floor((d-o)/1e3))}function zp(s,d){const o=Hs(s,d);if(o===null)return"";if(o<60)return`${o}s ago`;const f=Math.floor(o/60);return f<60?`${f}m ago`:`${Math.floor(f/60)}h ago`}const Tp="easeOut";function As({swap:s,children:d}){return c.jsx(Gt.span,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},transition:{duration:.18,ease:Tp},className:"inline-flex",children:d},String(s))}function Ap({passed:s}){return s===!0?c.jsx(As,{swap:"pass",children:c.jsx("span",{className:"text-mint",children:c.jsx(Jt,{name:"check",size:13})})}):s===!1?c.jsx(As,{swap:"fail",children:c.jsx("span",{className:"text-rose",children:c.jsx(Jt,{name:"cross",size:13})})}):c.jsx(It,{state:"pending"})}function Bs({criteria:s,bordered:d=!0}){return s.length===0?null:c.jsxs("div",{className:d?"mt-4 border-t border-line pt-3":"",children:[c.jsx("div",{className:"mb-2 font-mono text-[10px] uppercase tracking-wide text-mist",children:"gate"}),s.map((o,f)=>c.jsxs(Gt.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.2,ease:"easeOut"},className:"flex items-start gap-2 py-1",children:[c.jsx("span",{className:"mt-0.5 w-3 text-center font-mono text-[11px]",children:c.jsx(Ap,{passed:o.passed})}),c.jsx("span",{className:`rounded border px-1 py-px font-mono text-[9px] ${o.kind==="hard"?"border-mint/25 text-mint":"border-line-2 text-mist"}`,children:o.kind}),o.verified?c.jsx("span",{title:"verified by the gate-runner",className:"font-mono text-[9px] text-mint",children:"verified"}):o.passed===!0?c.jsx("span",{title:"attested by the agent",className:"font-mono text-[9px] text-amber/80",children:"attested"}):null,c.jsxs("span",{className:"flex-1 font-mono text-[11.5px] leading-snug text-mist-2",children:[o.kind==="hard"&&o.name?o.name:o.text,o.kind==="hard"&&typeof o.exitCode=="number"&&c.jsxs("span",{className:"ml-1 text-mist",children:["exit ",o.exitCode]})]})]},f))]})}function Ep(s){const d=new Date(s);return Number.isNaN(d.getTime())?"":d.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",hour12:!1})}function Op({iso:s,running:d,now:o}){return c.jsx("span",{className:"shrink-0 font-mono text-[9px] text-line-2",title:s,children:d?zp(s,o):Ep(s)})}function qs({entries:s,learnings:d,now:o,running:f,loop:p}){const v=(p==null?void 0:p.iterations.map(h=>h.item))??[],[y,U]=Q.useState("all"),O=y==="all"?s:s.filter(h=>h.iteration===y);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(h=>{const j=y===h;return c.jsx("button",{onClick:T=>{T.stopPropagation(),U(h)},className:`rounded-full border px-1.5 py-0.5 font-mono text-[9px] transition-colors ${j?"border-iris/50 bg-iris/15 text-chalk":"border-line text-mist hover:text-chalk"}`,children:h==="all"?"All":h},h)})}),d.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:d.map((h,j)=>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:h})]},j))})]}),O.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"}),[...O].reverse().map((h,j)=>{var T,D;return c.jsxs("div",{className:`relative ${h.insight?"-ml-1 rounded-md border-l-2 border-amber/50 bg-amber/[0.05] pl-2":""}`,children:[h.finalBeat?c.jsx("span",{className:"absolute -left-[15px] top-[3px] font-mono text-[10px] leading-none text-mint",title:(T=h.handoff)!=null&&T.to?`handoff → ${h.handoff.to}`:"final beat",children:"→"}):c.jsx("span",{className:`absolute -left-[13px] top-[5px] h-1.5 w-1.5 rounded-full ${h.insight?"bg-amber":"bg-line-2"}`}),c.jsxs("div",{className:"flex items-start gap-2",children:[c.jsx(Op,{iso:h.at,running:f,now:o}),c.jsxs("span",{className:"flex-1 text-[11px] leading-snug text-mist-2",children:[h.iteration&&y==="all"&&c.jsx("span",{className:"mr-1 rounded bg-cyan/10 px-1 font-mono text-[9px] text-cyan",children:h.iteration}),h.insight&&c.jsx("span",{className:"mr-1 inline-block h-1.5 w-1.5 translate-y-px rounded-full bg-amber",title:"carries an insight"}),ui(h.note),h.insight&&c.jsxs("span",{className:"mt-0.5 block text-[10px] italic text-amber/90",children:["↳ ",h.insight.seed]}),h.finalBeat&&((D=h.handoff)==null?void 0:D.to)&&c.jsxs("span",{className:"mt-0.5 block font-mono text-[9px] text-mint/80",children:["→ handoff to ",h.handoff.to]})]})]})]},j)})]})]})}function Mp({step:s}){const[d,o]=Q.useState(!1),f=ea(1e3),p=xm(s),v=p.beats.at(-1),y=p.beats.find(j=>j.finalBeat),U=p.beats.length>0||p.criteria.length>0||!!(y!=null&&y.handoff),O=p.running?ta(p.startedAt,f):ta(p.startedAt,f,p.completedAt),h=v?ui(v.note):s.firstLine?s.firstLine:c.jsx("span",{className:"text-dim",children:"Working…"});return c.jsx("div",{className:"mx-auto flex h-full max-w-2xl items-center px-8",children:c.jsxs(Gt.div,{layout:!0,transition:{duration:.2,ease:"easeOut"},onClick:()=>U&&o(j=>!j),className:`w-full rounded-lg border border-line bg-panel p-6 ${U?"cursor-pointer transition-colors hover:border-line-2":""}`,children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"text-[14px] font-medium text-chalk",children:p.title}),s.attempt>1&&c.jsxs("span",{className:"text-[12px] text-dim",title:`${s.attempt} attempts`,children:["· attempt ",s.attempt]}),U&&c.jsx("span",{className:"ml-auto text-dim",children:c.jsx(Jt,{name:d?"chevronDown":"chevronRight",size:14})})]}),c.jsx("p",{className:"mt-4 text-[14px] leading-relaxed text-mist",children:h}),O&&c.jsx("div",{className:"mt-5 text-right text-[12px] tabular-nums text-dim",children:O}),c.jsx(Ul,{initial:!1,children:d&&U&&c.jsxs(Gt.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeOut"},className:"overflow-hidden",onClick:j=>j.stopPropagation(),children:[c.jsx(Bs,{criteria:p.criteria}),(y==null?void 0:y.handoff)&&c.jsxs("div",{className:"mt-3 rounded-lg border border-line bg-ink/40 px-3 py-2",children:[c.jsx("div",{className:"text-[11px] uppercase tracking-wide text-dim",children:"handoff"}),y.handoff.to&&c.jsxs("p",{className:"mt-1 font-mono text-[12px] text-mist-2",children:["to ",y.handoff.to]}),y.handoff.context&&c.jsx("p",{className:"mt-0.5 text-[12px] leading-snug text-mist",children:y.handoff.context}),y.handoff.produced&&c.jsxs("p",{className:"mt-0.5 font-mono text-[11px] text-dim",children:["produced: ",y.handoff.produced]})]}),p.beats.length>0&&c.jsx(qs,{entries:p.beats,learnings:s.learnings,now:f,running:p.running})]})})]})})}function vm(s,d){if(!s||!d)return"";const o=new Date(s).getTime(),f=new Date(d).getTime();if(Number.isNaN(o)||Number.isNaN(f)||f<o)return"";const p=Math.round((f-o)/1e3);return p<60?`${p}s`:`${Math.floor(p/60)}m ${p%60}s`}function _p(s,d){if(!s||!d)return"";const o=new Date(s).getTime(),f=new Date(d).getTime();if(Number.isNaN(o)||Number.isNaN(f)||f<o)return"";const p=Math.round((f-o)/1e3);if(p<60)return`${p}s`;const v=Math.floor(p/60);return v<60?`${v}m`:`${Math.floor(v/60)}h ${v%60}m`}function Dp({step:s,onDecide:d}){const o=s.approvalState,f=(o==null?void 0:o.items)??[],p=f.length>0,v=!!(o!=null&&o.decided),[y,U]=Q.useState({});Q.useEffect(()=>{U(Object.fromEntries(f.map(C=>[C.label,C.decision!=="rejected"])))},[s.id,f.length]);const[O,h]=Q.useState(!1),j=async C=>{O||(h(!0),await d(s.id,C),h(!1))},T=()=>j(p?f.map(C=>({label:C.label,decision:y[C.label]?"approved":"rejected"})):[{label:s.id,decision:"approved"}]),D=()=>j(p?f.map(C=>({label:C.label,decision:"rejected"})):[{label:s.id,decision:"rejected"}]);return c.jsxs(Gt.div,{layout:!0,layoutId:s.id,initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:-2},transition:{duration:.2,ease:"easeOut"},className:"rounded-lg border border-line bg-panel px-3 py-2.5",children:[c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx(It,{state:v?"done":"stalled"}),c.jsx("span",{className:"flex-1 truncate text-[13px] text-chalk",children:s.id}),c.jsx("span",{className:"text-[11px] text-dim",children:v?"decided":"needs approval"})]}),(o==null?void 0:o.prompt)&&c.jsx("p",{className:"mt-2 pl-7 text-[12px] font-medium leading-snug text-chalk",children:o.prompt}),p&&c.jsx("div",{className:"mt-2 space-y-1 pl-7",children:f.map(C=>{const G=C.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:G==="approved"?"text-mint":"text-rose",children:c.jsx(Jt,{name:G==="approved"?"check":"cross",size:13})}):c.jsx("input",{type:"checkbox",checked:!!y[C.label],onChange:q=>U(k=>({...k,[C.label]:q.target.checked})),className:"h-3 w-3 accent-mint"}),c.jsx("span",{className:G==="rejected"?"text-rose/80 line-through":"text-mist-2",children:C.label})]},C.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.jsx("button",{onClick:T,disabled:O,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:p?"Approve selected":"Approve"}),c.jsxs("button",{onClick:D,disabled:O,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",p?" all":""]})]})]})}const Up={running:"Running",gate:"Gate Check",done:"Done",failed:"Failed",pending:"Pending"};function Cp({step:s,onApprove:d}){const o=ea(1e3);if(s.isApproval&&s.approvalState)return c.jsx("div",{className:"mx-auto max-w-2xl px-6 py-8",children:c.jsx(Dp,{step:s,onDecide:d??(()=>{})})});const f=s.heartbeat.find(v=>v.finalBeat),p=vm(s.started_at,s.completed_at);return c.jsx("div",{className:"mx-auto max-w-2xl px-6 py-8",children:c.jsxs("div",{className:"rounded-lg border border-line bg-panel p-5",children:[c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx(It,{state:s.column}),c.jsx("span",{className:"flex-1 text-[15px] font-medium text-chalk",children:s.id}),c.jsx("span",{className:"text-[12px] text-dim",children:Up[s.column]??s.column}),p&&c.jsx("span",{className:"text-[12px] tabular-nums text-dim",children:p}),s.attempt>1&&c.jsxs("span",{className:"text-[11px] text-dim",children:["attempt ",s.attempt]})]}),s.firstLine&&c.jsx("p",{className:"mt-3 text-[14px] leading-relaxed text-mist",children:s.firstLine}),c.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-1.5",children:[s.output&&c.jsxs("span",{className:"rounded border border-line px-2 py-0.5 font-mono text-[10px] text-mist",children:["→ ",s.output]}),s.requires.length>0&&c.jsxs("span",{className:"rounded border border-line px-2 py-0.5 font-mono text-[10px] text-mist",children:["requires ",s.requires.join(", ")]}),s.branchTaken&&c.jsxs("span",{className:"rounded border border-line px-2 py-0.5 font-mono text-[10px] text-mist",children:["→ ",s.branchTaken]})]}),c.jsx(Bs,{criteria:s.criteria}),(f==null?void 0:f.handoff)&&c.jsxs("div",{className:"mt-3 rounded-lg border border-line bg-ink/40 px-3 py-2",children:[c.jsx("div",{className:"text-[10px] uppercase tracking-wide text-dim",children:"handoff"}),f.handoff.to&&c.jsxs("p",{className:"mt-1 font-mono text-[11px] text-mist-2",children:["to ",f.handoff.to]}),f.handoff.context&&c.jsx("p",{className:"mt-0.5 text-[11.5px] leading-snug text-mist",children:f.handoff.context}),f.handoff.produced&&c.jsxs("p",{className:"mt-0.5 font-mono text-[10.5px] text-dim",children:["produced: ",f.handoff.produced]})]}),(s.heartbeat.length>0||s.learnings.length>0)&&c.jsx(qs,{entries:s.heartbeat,learnings:s.learnings,now:o,running:s.column==="running"})]})})}function Hp({model:s}){const d=s.overallStatus==="failed";return c.jsxs("div",{className:"mx-auto max-w-2xl px-6 py-8",children:[c.jsxs("div",{className:"flex flex-col items-center text-center",children:[c.jsx(As,{swap:d?"fail":"done",children:c.jsx("span",{className:d?"text-rose":"text-mint",children:c.jsx(Jt,{name:d?"cross":"check",size:28})})}),c.jsxs("h2",{className:"mt-2 text-xl font-medium text-chalk",children:[s.workflow," — ",d?"failed":"complete"]}),c.jsxs("p",{className:"mt-1 text-[13px] text-mist",children:[s.unitsDone,"/",s.unitsTotal," units"]})]}),c.jsx("div",{className:"mt-6 space-y-1.5",children:s.steps.filter(o=>o.phase==="workflow").map(o=>c.jsxs("div",{className:"flex items-center gap-2.5 rounded-lg border border-line bg-panel px-3 py-2",children:[c.jsx(It,{state:o.column}),c.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px] text-chalk",children:o.id}),o.isLoop&&o.loop&&c.jsxs("span",{className:"shrink-0 font-mono text-[10px] text-cyan",children:[o.loop.completed,"/",o.loop.total]}),o.criteria.length>0&&c.jsxs("span",{className:"shrink-0 font-mono text-[10px] text-mist",children:[o.criteria.filter(f=>f.passed===!0).length,"/",o.criteria.length," gates"]})]},o.id))})]})}function Bp({it:s,beats:d,onOpen:o}){const f=pm(s),p=s.steps.filter(v=>v.status==="done").length;return c.jsxs("button",{onClick:o,className:"group flex flex-col gap-2 rounded-lg border border-line bg-panel px-3.5 py-3 text-left transition-colors hover:border-line-2",children:[c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx(It,{state:f}),c.jsx("span",{className:"min-w-0 flex-1 truncate text-[13px] text-chalk",children:s.item}),c.jsxs("span",{className:"shrink-0 text-[11px] tabular-nums text-dim",children:[p,"/",s.steps.length]})]}),c.jsx("div",{className:"flex flex-wrap items-center gap-1.5",children:s.steps.map((v,y)=>c.jsxs("span",{title:`${v.id} — ${Dl(v)}`,className:"inline-flex items-center gap-1.5 rounded border border-line px-1.5 py-0.5 text-[10px] text-mist",children:[c.jsx(It,{state:Dl(v)}),v.id]},y))}),d&&c.jsx("p",{className:"line-clamp-1 text-[11px] leading-snug text-mist",children:ui(d)}),c.jsxs("span",{className:"mt-0.5 inline-flex items-center gap-1 text-[10px] text-mist opacity-0 transition-opacity group-hover:opacity-100",children:["open kanban",c.jsx(Jt,{name:"chevronRight",size:11})]})]})}function qp({loopStep:s,onOpenIteration:d}){const o=s.loop,f=(o==null?void 0:o.iterations)??[];return c.jsxs("div",{className:"mx-auto max-w-[1400px] px-5 py-6",children:[c.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-2.5",children:[c.jsx("span",{className:"grid h-7 w-7 place-items-center rounded-md bg-panel-2 text-mist",children:c.jsx(Jt,{name:"loop",size:15})}),c.jsx("h2",{className:"text-lg font-medium text-chalk",children:s.id}),c.jsxs("span",{className:"text-[12px] text-mist",children:[(o==null?void 0:o.completed)??0,"/",(o==null?void 0:o.total)??f.length," iterations"]}),s.over&&c.jsxs("span",{className:"rounded border border-line px-1.5 py-0.5 font-mono text-[10px] text-mist",children:["over ",s.over]}),s.parallel&&c.jsxs("span",{title:s.parallel==="auto"?"agent decides at runtime":"iterations run in parallel",className:"rounded border border-line px-1.5 py-0.5 font-mono text-[10px] text-mist",children:["∥ ",s.parallel==="auto"?"parallel: auto":"parallel"]}),(o==null?void 0:o.currentItem)&&c.jsxs("span",{className:"ml-auto flex items-center gap-1.5 text-[11px] text-mist",children:[c.jsx(It,{state:"running"})," ",o.currentItem]})]}),f.length===0?c.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-line bg-panel px-4 py-6 text-[12px] text-mist",children:[c.jsx(Jt,{name:"loop",size:14}),"Awaiting iteration list",s.over?` (loop over ${s.over})`:"",". The agent should scope and frontload every iteration before starting work."]}):c.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:f.map(p=>{var y;const v=(y=s.heartbeat.filter(U=>U.iteration===p.item).at(-1))==null?void 0:y.note;return c.jsx(Bp,{it:p,beats:v,onOpen:()=>d(p.item)},p.item)})})]})}const Rp={layout:{duration:.42,ease:[.45,0,.55,1]},default:{duration:.2,ease:"easeOut"}};function Yp({loopId:s,item:d,sub:o,def:f,beats:p}){var $;const[v,y]=Q.useState(!1),U=ea(5e3),O=Dl(o),h=(f==null?void 0:f.soft)??[],j=(f==null?void 0:f.hard)??[],T=p.filter(H=>H.sub===o.id),D=T.length>0?T:p,C=D.at(-1),G=D.find(H=>H.finalBeat),q=o.criteria.filter(H=>H.passed===!0).length,k=o.criteria.length,P=vm(o.started_at,o.completed_at),mt=D.length>0||h.length+j.length>0||k>0;return c.jsxs(Gt.div,{layout:!0,layoutId:`${s}::${d}::${o.id}`,initial:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,y:-2},transition:Rp,onClick:()=>mt&&y(H=>!H),className:`border-b border-line px-2.5 py-2.5 transition-colors duration-200 ${mt?"cursor-pointer hover:bg-panel-2/50":""}`,children:[c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx(It,{state:O}),c.jsx("span",{className:"min-w-0 flex-1 truncate text-[13px] text-chalk",children:o.id}),o.attempt>1&&c.jsxs("span",{title:`${o.attempt} attempts`,className:"shrink-0 text-[11px] text-dim",children:["attempt ",o.attempt]})]}),c.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-2 pl-[18px] text-[11px] text-dim",children:[c.jsx("span",{className:"text-mist",children:d}),k>0&&c.jsxs("span",{className:"tabular-nums",children:[q,"/",k," gates"]}),P&&c.jsx("span",{className:"tabular-nums",children:P}),G&&c.jsxs("span",{title:"handed off",children:["→ ",(($=G.handoff)==null?void 0:$.to)??"handed off"]})]}),C&&c.jsxs("div",{title:C.note,className:"mt-2 flex items-start gap-2 pl-[18px] text-[12px] leading-snug text-mist",children:[C.insight&&c.jsx("span",{className:"mt-1.5 inline-block h-1 w-1 shrink-0 rounded-full bg-amber",title:"carries an insight"}),c.jsx("span",{className:"line-clamp-2",children:ui(C.note)})]}),c.jsx(Ul,{initial:!1,children:v&&mt&&c.jsxs(Gt.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.22},className:"overflow-hidden",children:[o.criteria.length>0?c.jsx("div",{className:"pl-7",children:c.jsx(Bs,{criteria:o.criteria})}):(h.length>0||j.length>0)&&c.jsxs("div",{className:"mt-2.5 space-y-0.5 border-t border-line pt-2 pl-7",children:[h.map((H,Z)=>c.jsxs("div",{className:"flex gap-1.5 text-[11px] leading-snug text-mist",children:[c.jsx("span",{className:"text-cyan",children:"·"}),c.jsx("span",{className:"flex-1",children:H})]},`s${Z}`)),j.map((H,Z)=>c.jsxs("div",{className:"flex gap-1.5 font-mono text-[10px] leading-snug text-mint/80",children:[c.jsx("span",{children:"$"}),c.jsx("span",{className:"flex-1",children:H.name??H.text})]},`h${Z}`))]}),D.length>0&&c.jsx(qs,{entries:D,learnings:[],now:U,running:O==="running"})]})})]})}const Wd=["pending","running","gate","done"],Gp={pending:"Pending",running:"Running",gate:"Gate Check",done:"Done",failed:"Failed"};function gm({loopStep:s,item:d,onBack:o}){var D,C,G;const f=(D=s.loop)==null?void 0:D.iterations.find(q=>q.item===d),p=new Map((s.subSteps??[]).map(q=>[q.id,q])),v=s.heartbeat.filter(q=>q.iteration===d);if(!f)return c.jsx("div",{className:"mx-auto max-w-[1400px] px-5 py-6",children:c.jsxs("div",{className:"grid h-40 place-items-center font-mono text-xs text-line-2",children:["iteration “",d,"” not found"]})});const y=f.steps.some(q=>q.status==="failed"),U=y?[...Wd,"failed"]:Wd,O=y?"lg:grid-cols-5":"lg:grid-cols-4",h=((C=s.loop)==null?void 0:C.iterations)??[],j=h.findIndex(q=>q.item===d)+1,T=((G=s.loop)==null?void 0:G.total)||h.length;return c.jsxs("div",{className:"mx-auto max-w-[1400px] px-5 py-6",children:[c.jsxs("div",{className:"mb-4 flex items-center gap-2.5",children:[o&&c.jsx("button",{onClick:o,title:"Back to the loop overview",className:"grid h-6 w-6 place-items-center rounded-md border border-line text-mist transition-colors hover:border-line-2 hover:text-chalk",children:c.jsx(Jt,{name:"arrowLeft",size:13})}),c.jsx("span",{className:"grid h-6 w-6 place-items-center rounded-md bg-panel-2 text-mist",children:c.jsx(Jt,{name:"loop",size:14})}),c.jsx("h2",{className:"text-lg font-medium text-chalk",children:d}),j>0&&T>0&&c.jsxs("span",{className:"rounded border border-line px-1.5 py-0.5 font-mono text-[11px] tabular-nums text-mist",children:[j,"/",T]}),c.jsx("span",{className:"font-mono text-[11px] text-dim",children:s.id})]}),c.jsx(Q0,{children:c.jsx("div",{className:`grid grid-cols-1 gap-x-4 gap-y-4 sm:grid-cols-2 ${O}`,children:U.map(q=>{const k=f.steps.filter(P=>Dl(P)===q);return c.jsxs("div",{className:"min-w-0",children:[c.jsxs("div",{className:"mb-1 flex items-center gap-2 border-b border-line px-2 pb-1.5",children:[c.jsx(It,{state:q}),c.jsx("span",{className:"text-[11px] text-mist",children:Gp[q]}),c.jsx("span",{className:"ml-auto text-[11px] tabular-nums text-dim",children:k.length})]}),c.jsx("div",{children:c.jsx(Ul,{mode:"popLayout",initial:!1,children:k.map(P=>c.jsx(Yp,{loopId:s.id,item:d,sub:P,def:p.get(P.id),beats:v},P.id))})})]},q)})})})]})}const Lp={running:"Applying",gate:"Gate Check",done:"Done",failed:"Failed",pending:"Pending"};function Xp(s){return s?["Structural change — human approval","conductor still validates"]:["conductor.yaml modified","validation passes","change is ≤ 1 sentence"]}function ym({step:s,onApprove:d}){var h;const o=s.improve,f=(o==null?void 0:o.kind)==="validate",p=(o==null?void 0:o.kind)==="read-knowledge",v=(o==null?void 0:o.structural)===!0,y=((h=s.approvalState)==null?void 0:h.decided)||s.column==="done",U=p?["knowledge read and categorized"]:f?["conductor-board validate passes"]:Xp(v),O=s.criteria.length>0?s.criteria.map(j=>({text:j.kind==="hard"&&j.name?j.name:j.text,passed:j.passed})):U.map(j=>({text:j,passed:null}));return c.jsx("div",{className:"mx-auto max-w-2xl px-6 py-8",children:c.jsxs("div",{className:"rounded-lg border border-line bg-panel p-5",children:[c.jsxs("div",{className:"flex items-center gap-2.5",children:[c.jsx(It,{state:s.column}),c.jsx("span",{className:"flex-1 text-[15px] font-medium text-chalk",children:p?"Read knowledge":f?"Validate conductor":v?`Structural: ${o==null?void 0:o.title}`:o==null?void 0:o.title}),c.jsx("span",{className:"text-[12px] text-dim",children:Lp[s.column]??s.column})]}),!f&&!p&&c.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-1.5",children:[(o==null?void 0:o.step)&&c.jsxs("span",{className:"rounded-md border border-iris/30 bg-iris/10 px-2 py-0.5 font-mono text-[10px] text-iris",children:["step: ",o.step]}),(o==null?void 0:o.observed)!=null&&c.jsxs("span",{className:"rounded-md border border-line-2 bg-ink/40 px-2 py-0.5 font-mono text-[10px] text-mist",children:["observed ",o.observed," run",o.observed===1?"":"s"]}),(o==null?void 0:o.scope)&&c.jsx("span",{className:"rounded-md border border-line-2 bg-ink/40 px-2 py-0.5 font-mono text-[10px] text-mist",children:o.scope}),v&&c.jsx("span",{className:"rounded-md border border-amber/40 bg-amber/10 px-2 py-0.5 font-mono text-[10px] text-amber",children:"needs approval"})]}),((o==null?void 0:o.current)||(o==null?void 0:o.proposed))&&c.jsxs("div",{className:"mt-4 space-y-1.5 rounded-lg border border-line bg-ink/40 p-3 font-mono text-[11.5px] leading-snug",children:[(o==null?void 0:o.current)&&c.jsxs("p",{className:"text-rose/80",children:[c.jsx("span",{className:"select-none text-line-2",children:"− "}),o.current]}),(o==null?void 0:o.proposed)&&c.jsxs("p",{className:"text-mint/90",children:[c.jsx("span",{className:"select-none text-line-2",children:"+ "}),o.proposed]})]}),(o==null?void 0:o.note)&&c.jsx("p",{className:"mt-3 text-sm leading-relaxed text-mist-2",children:o.note}),c.jsxs("div",{className:"mt-4 border-t border-line pt-3",children:[c.jsx("div",{className:"mb-2 font-mono text-[10px] uppercase tracking-wide text-mist",children:"gate"}),O.map((j,T)=>c.jsxs("div",{className:"flex items-start gap-2 py-1",children:[c.jsx("span",{className:"mt-0.5 flex w-3 justify-center",children:j.passed===!0?c.jsx("span",{className:"text-mint",children:c.jsx(Jt,{name:"check",size:13})}):j.passed===!1?c.jsx("span",{className:"text-rose",children:c.jsx(Jt,{name:"cross",size:13})}):c.jsx(It,{state:"pending"})}),c.jsx("span",{className:"flex-1 font-mono text-[11.5px] leading-snug text-mist-2",children:j.text})]},T))]}),v&&!y&&d&&c.jsxs("div",{className:"mt-4 flex items-center gap-2",children:[c.jsx("button",{onClick:()=>d(s.id,[{label:(o==null?void 0:o.title)??s.id,decision:"approved"}]),className:"rounded-lg border border-mint/40 bg-mint/10 px-3 py-1.5 font-mono text-[11px] text-mint transition-colors hover:bg-mint/15",children:"Approve"}),c.jsx("button",{onClick:()=>d(s.id,[{label:(o==null?void 0:o.title)??s.id,decision:"rejected"}]),className:"rounded-lg border border-line px-3 py-1.5 font-mono text-[11px] text-mist transition-colors hover:text-chalk",children:"Skip this run"})]}),v&&y&&s.approvalState&&c.jsxs("div",{className:"mt-4 font-mono text-[11px] text-mist",children:["decision recorded — the agent will"," ",s.approvalState.items.some(j=>j.decision==="rejected")?"skip it":"apply it","."]})]})})}const Es="bg-line-2/40";function ni({children:s}){return c.jsx("span",{className:"flex h-[18px] w-3.5 shrink-0 items-center justify-center",children:s})}function Fd(s,d){return s==="running"||s==="gate"||d?"text-chalk":s==="pending"?"text-dim":"text-mist"}function Id({snap:s,activeStep:d,onSelectStep:o}){const f=li(s),[p,v]=Q.useState(new Set),y=j=>v(T=>{const D=new Set(T);return D.has(j)?D.delete(j):D.add(j),D});if(!f.steps.length)return null;const U=f.steps.filter(j=>{var T;return j.phase==="improve"&&((T=j.improve)==null?void 0:T.structural)===!0}),O=f.steps.filter(j=>j.phase!=="improve"),h=j=>{var q;const T=d===j.id||!!d&&d.startsWith(`${j.id}::`),D=j.phase==="improve"?((q=j.improve)==null?void 0:q.title)??j.id.replace("_improve::",""):j.id,C=j.isLoop&&!!j.loop&&j.loop.iterations.length>0,G=C&&!p.has(j.id);return c.jsxs("div",{children:[c.jsxs("div",{className:`flex items-stretch rounded transition-colors duration-150 ${T?Es:"hover:bg-panel-2/60"}`,children:[C?c.jsx("button",{onClick:()=>y(j.id),"aria-label":G?"Collapse":"Expand",className:"grid w-5 shrink-0 place-items-center text-dim transition-colors hover:text-mist",children:c.jsx(Gt.span,{animate:{rotate:G?90:0},transition:{duration:.2,ease:"easeOut"},className:"grid place-items-center",children:c.jsx(Jt,{name:"chevronRight",size:12})})}):c.jsx("span",{className:"w-5 shrink-0"}),c.jsxs("button",{onClick:()=>o==null?void 0:o(j.id),className:"flex min-w-0 flex-1 items-start gap-2 py-1 pr-2 text-left text-[13px] leading-[18px]",children:[c.jsx(ni,{children:c.jsx(It,{state:j.column})}),c.jsx("span",{className:`min-w-0 flex-1 transition-colors duration-300 ${Fd(j.column,T)}`,children:D})]})]}),c.jsx(Ul,{initial:!1,children:C&&G&&c.jsx(Gt.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.22,ease:"easeOut"},className:"overflow-hidden",children:c.jsx("div",{className:"ml-5 space-y-0.5 pt-0.5",children:j.loop.iterations.map(k=>{const P=pm(k),mt=`${j.id}::${k.item}`,$=d===mt;return c.jsxs("button",{onClick:()=>o==null?void 0:o(mt),className:`flex w-full items-start gap-2 rounded px-2 py-0.5 text-left text-[12.5px] leading-[18px] transition-colors duration-150 ${$?Es:"hover:bg-panel-2/60"}`,children:[c.jsx(ni,{children:c.jsx(It,{state:P})}),c.jsx("span",{className:`min-w-0 flex-1 transition-colors duration-300 ${Fd(P,$)}`,children:k.item})]},k.item)})})})})]},j.id)};return c.jsxs("div",{className:"space-y-0.5",children:[U.length>0&&c.jsxs(c.Fragment,{children:[c.jsx(Os,{text:"Awaiting approval"}),U.map(h),c.jsx("div",{className:"h-1.5"})]}),O.map(h)]})}function Os({text:s}){return c.jsxs("div",{className:"mb-1 mt-1 flex items-center gap-2 px-2",children:[c.jsx("span",{className:"text-[12px] text-dim",children:s}),c.jsx("span",{className:"h-px flex-1 bg-line"})]})}function Qp(s){if(!s)return"";const d=new Date(s);return Number.isNaN(d.getTime())?"":d.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}const Zp={running:"Running",done:"Done",failed:"Failed",idle:"Idle"};function wp({workflows:s,order:d,activeWf:o,selectedRun:f,onPickWorkflow:p,onPickRun:v,width:y,onResize:U,activeStep:O,onSelectStep:h,viewingSnap:j}){const T=ea(1e3),D=H=>{H.preventDefault();const Z=R=>U(Math.max(248,Math.min(600,R.clientX))),W=()=>{window.removeEventListener("pointermove",Z),window.removeEventListener("pointerup",W)};window.addEventListener("pointermove",Z),window.addEventListener("pointerup",W)},C=H=>{var Z;return(Z=s[H])==null?void 0:Z.snap.status},G=o?C(o):null,q=o?li(s[o].snap):null,k=d.filter(H=>H!==o),P=d.map(H=>{var ft;const Z=C(H),W=(Z==null?void 0:Z.status)==="running",R=(((ft=s[H])==null?void 0:ft.history)??[]).filter(jt=>!(W&&jt.run_id===(Z==null?void 0:Z.run_id)));return{name:H,runs:R}}).filter(H=>H.runs.length>0),mt=(G==null?void 0:G.status)??"idle",$=mt==="running"?ta(G==null?void 0:G.started_at,T):null;return c.jsxs("aside",{style:{width:y},className:"relative flex h-full shrink-0 flex-col border-r border-line bg-panel/60",children:[c.jsxs("div",{className:"flex-1 overflow-y-auto board-scroll px-4 py-4",children:[o&&q?c.jsxs(c.Fragment,{children:[c.jsxs("button",{onClick:()=>p(o),className:"block w-full px-2 text-left",children:[c.jsx("div",{className:"truncate text-[15px] font-semibold text-chalk",children:o}),c.jsxs("div",{className:"mt-0.5 flex items-center gap-1.5 text-[13px] text-mist",children:[c.jsx("span",{children:Zp[mt]??mt}),$&&c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-dim",children:"·"}),c.jsx("span",{className:"tabular-nums",children:$})]})]})]}),c.jsx("div",{className:"mt-4",children:f===null&&c.jsx(Id,{snap:s[o].snap,activeStep:O,onSelectStep:h})}),k.length>0&&c.jsxs("div",{className:"mt-5",children:[c.jsx(Os,{text:"Workflows"}),c.jsx("div",{className:"space-y-0.5",children:k.map(H=>{var W;const Z=((W=C(H))==null?void 0:W.status)??"idle";return c.jsxs("button",{onClick:()=>p(H),className:"flex w-full items-center gap-2 rounded px-2 py-1 text-left text-[13px] transition-colors duration-150 hover:bg-panel-2/60",children:[c.jsx(ni,{children:c.jsx(It,{state:Z})}),c.jsx("span",{className:"min-w-0 flex-1 truncate text-mist",children:H})]},H)})})]})]}):c.jsx("p",{className:"px-1 text-[13px] text-dim",children:"No active workflow."}),c.jsxs("div",{className:"mt-6",children:[c.jsx(Os,{text:"History"}),P.length===0?c.jsx("p",{className:"px-1 pt-0.5 text-[12px] text-dim",children:"No past runs yet."}):c.jsx("div",{className:"space-y-0.5 pt-0.5",children:P.map(({name:H,runs:Z})=>c.jsxs("div",{children:[P.length>1&&c.jsx("div",{className:"px-1 pb-0.5 pt-1 text-[11px] text-dim",children:H}),Z.map(W=>{const R=o===H&&f===W.run_id,ft=W.status==="failed",jt=W.run_name||Qp(W.completed_at||W.archived_at||W.started_at),Lt=_p(W.started_at,W.completed_at);return c.jsxs("div",{children:[c.jsxs("button",{onClick:()=>v(H,W.run_id),className:`flex w-full items-center gap-2 rounded px-2 py-1 text-left transition-colors duration-150 ${R?Es:"hover:bg-panel-2/60"}`,children:[c.jsx(ni,{children:c.jsx("span",{className:ft?"text-rose":"text-mist",children:c.jsx(Jt,{name:ft?"cross":"check",size:13})})}),c.jsx("span",{className:"min-w-0 flex-1 truncate text-[12.5px] text-mist",children:jt}),Lt&&c.jsx("span",{className:"shrink-0 text-[11px] tabular-nums text-dim",children:Lt})]}),R&&j&&c.jsx("div",{className:"ml-3 mt-0.5 pl-2",children:c.jsx(Id,{snap:j,activeStep:O,onSelectStep:h})})]},W.run_id)})]},H))})]})]}),c.jsx("div",{onPointerDown:D,className:"absolute inset-y-0 -right-1 w-2 cursor-col-resize",title:"Drag to resize"})]})}const Vp={applied:"bg-mint",proven:"bg-amber",emerging:"bg-mist",open:"bg-dim"};function Kp({k:s}){const[d,o]=Q.useState(!1),f=s.current||s.proposed||s.note;return c.jsxs("div",{className:"rounded-lg border border-line bg-panel/40 px-3 py-2",children:[c.jsxs("button",{onClick:()=>f&&o(p=>!p),className:"flex w-full items-start gap-2 text-left",children:[c.jsx("span",{className:`mt-1.5 h-1.5 w-1.5 shrink-0 rounded-full ${Vp[s.status]??"bg-dim"}`}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[c.jsx("span",{className:"font-mono text-[12px] text-chalk",children:s.title}),s.step&&c.jsx("span",{className:"rounded border border-cyan/25 bg-cyan/[0.08] px-1 font-mono text-[9px] text-cyan",children:s.step}),c.jsx("span",{className:"rounded border border-line-2 px-1 font-mono text-[9px] text-mist",children:s.scope})]}),c.jsxs("div",{className:"mt-0.5 font-mono text-[10px] text-mist",children:[s.status," · observed ",s.observed,"×",s.run_applied?` · applied ${s.run_applied}`:""]})]})]}),d&&f&&c.jsxs("div",{className:"mt-2 space-y-1 border-t border-line/60 pt-2 pl-6",children:[s.current&&c.jsxs("p",{className:"font-mono text-[10.5px] text-rose/80",children:[c.jsx("span",{className:"text-line-2",children:"− "}),s.current]}),s.proposed&&c.jsxs("p",{className:"font-mono text-[10.5px] text-mint/90",children:[c.jsx("span",{className:"text-line-2",children:"+ "}),s.proposed]}),s.note&&c.jsx("p",{className:"text-[11px] leading-snug text-mist-2",children:s.note})]})]})}function Pl({title:s,hint:d,items:o}){return o.length===0?null:c.jsxs("div",{children:[c.jsxs("div",{className:"mb-1.5 flex items-baseline gap-2",children:[c.jsx("h3",{className:"font-mono text-[11px] font-semibold uppercase tracking-[0.12em] text-mist-2",children:s}),c.jsx("span",{className:"font-mono text-[10px] text-line-2",children:o.length}),d&&c.jsx("span",{className:"font-mono text-[10px] text-line-2",children:d})]}),c.jsx("div",{className:"space-y-1.5",children:o.map((f,p)=>c.jsx(Kp,{k:f},`${f.title}-${p}`))})]})}function Jp({workflow:s,knowledge:d,runCount:o}){const f=v=>d.filter(y=>(y.scope||"this-conductor")==="this-conductor"&&y.status===v),p=v=>d.filter(y=>(y.scope||"this-conductor")===v);return c.jsxs("div",{className:"mx-auto max-w-3xl px-6 py-8",children:[c.jsxs("div",{className:"mb-5 flex items-baseline gap-2.5",children:[c.jsxs("h2",{className:"font-mono text-lg font-medium text-chalk",children:[s," · knowledge"]}),c.jsxs("span",{className:"font-mono text-[12px] text-mist",children:[o," run",o===1?"":"s"," · ",d.length," knowledge entr",d.length===1?"y":"ies"]})]}),d.length===0?c.jsx("div",{className:"rounded-xl border border-line bg-panel/40 px-4 py-8 text-center font-mono text-[12px] text-line-2",children:"No knowledge yet. It accumulates in the conductor file as runs complete — the agent writes what it learns, and the board escalates the patterns it keeps seeing until they auto-apply."}):c.jsxs("div",{className:"space-y-6",children:[c.jsx(Pl,{title:"Proven",hint:"auto-applies next run",items:f("proven")}),c.jsx(Pl,{title:"Applied",items:f("applied")}),c.jsx(Pl,{title:"Emerging — watching",items:f("emerging")}),c.jsx(Pl,{title:"Upstream — routed outside this conductor",items:p("upstream")}),c.jsx(Pl,{title:"Template",items:p("template")}),c.jsx(Pl,{title:"Tooling — agent-conductor itself",items:p("tooling")}),c.jsx(Pl,{title:"Corpus",items:p("corpus")})]})]})}const kp=[{keys:["⌘",","],label:"Open / close settings"},{keys:["Esc"],label:"Back to live · close this panel"},{keys:["Ctrl","`"],label:"Expand / minimize the heartbeat monitor"}];function $p({children:s}){return c.jsx("kbd",{className:"rounded border border-line bg-ink/60 px-1.5 py-0.5 font-mono text-[11px] leading-none text-mist-2",children:s})}function Wp(){const[s,d]=Q.useState(!0);return c.jsxs("div",{className:"border-t border-line",children:[c.jsxs("button",{onClick:()=>d(o=>!o),className:"flex w-full items-center gap-2 px-5 pb-1 pt-3 text-left",children:[c.jsx("span",{className:"text-[11px] uppercase tracking-wide text-dim",children:"Shortcuts"}),c.jsx(Gt.span,{animate:{rotate:s?90:0},transition:{duration:.2,ease:"easeOut"},className:"ml-auto text-dim",children:c.jsx(Jt,{name:"chevronRight",size:13})})]}),c.jsx(Ul,{initial:!1,children:s&&c.jsx(Gt.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeOut"},className:"overflow-hidden",children:c.jsx("div",{className:"px-5 pb-3",children:kp.map(o=>c.jsxs("div",{className:"flex items-center gap-3 py-1.5",children:[c.jsx("div",{className:"flex shrink-0 items-center gap-1",children:o.keys.map(f=>c.jsx($p,{children:f},f))}),c.jsx("span",{className:"text-[12.5px] text-mist",children:o.label})]},o.label))})})})]})}function Pd({label:s,hint:d,on:o,onToggle:f}){return c.jsxs("div",{className:"flex items-center gap-3 px-5 py-3",children:[c.jsxs("div",{className:"flex-1",children:[c.jsx("div",{className:"text-[13px] text-chalk",children:s}),c.jsx("div",{className:"text-[12px] text-mist",children:d})]}),c.jsx("button",{onClick:f,role:"switch","aria-checked":o,"aria-label":`${s}: ${o?"on":"off"}`,className:`relative h-5 w-9 shrink-0 rounded-full transition-colors duration-200 ${o?"bg-mint/70":"bg-line-2"}`,children:c.jsx("span",{className:`absolute top-0.5 h-4 w-4 rounded-full bg-chalk transition-all duration-200 ${o?"left-4":"left-0.5"}`})})]})}function Fp({open:s,onClose:d,ticksOn:o,chimesOn:f,onToggleTicks:p,onToggleChimes:v,workflow:y,knowledge:U,runCount:O}){return c.jsx(Ul,{children:s&&c.jsx(Gt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeOut"},onClick:d,className:"fixed inset-0 z-50 grid place-items-center bg-ink/70 backdrop-blur-sm",children:c.jsxs(Gt.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:8},transition:{duration:.2,ease:"easeOut"},onClick:h=>h.stopPropagation(),className:"flex max-h-[80vh] w-[min(640px,92vw)] flex-col overflow-hidden rounded-xl border border-line bg-panel shadow-2xl",children:[c.jsxs("div",{className:"flex items-center gap-3 border-b border-line px-5 py-3.5",children:[c.jsx("span",{className:"text-[14px] font-medium text-chalk",children:"Settings"}),c.jsx("span",{className:"ml-auto text-[11px] text-dim",children:"⌘, or Esc to close"})]}),c.jsxs("div",{className:"board-scroll min-h-0 flex-1 overflow-y-auto",children:[c.jsx("div",{className:"px-5 pb-1 pt-3 text-[11px] uppercase tracking-wide text-dim",children:"Sound"}),c.jsx(Pd,{label:"Heartbeat ticks",hint:"A faint tick on every heartbeat the agent writes.",on:o,onToggle:p}),c.jsx(Pd,{label:"Completion sounds",hint:"A chime when a run finishes, a tone when it fails.",on:f,onToggle:v}),c.jsx(Wp,{}),c.jsx("div",{className:"border-t border-line",children:c.jsx(Jp,{workflow:y,knowledge:U,runCount:O})})]})]})})})}const Ip="var(--color-heart)",Pp=90;function Ms({lastBeatIso:s,size:d=14,title:o}){const f=ea(1e3),p=!!s&&(Hs(s,f)??0)>Pp,[v,y]=Q.useState(!1),U=Q.useRef(void 0),O=Q.useRef(!1);Q.useEffect(()=>{if(!O.current){O.current=!0,U.current=s;return}if(s&&s!==U.current){U.current=s,y(!0);const j=setTimeout(()=>y(!1),470);return()=>clearTimeout(j)}},[s]);const h=v?"heart-strong":p?"heart-weak":"heart-rest";return c.jsxs("svg",{className:h,width:d,height:d,viewBox:"0 0 24 24",style:{color:p&&!v?"var(--color-dim)":Ip},"aria-label":o??"heartbeat",children:[c.jsx("title",{children:o??(p?"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"})]})}function bm({text:s,speed:d=30,className:o,cursor:f=!0,onDone:p}){const[v,y]=Q.useState(0);Q.useEffect(()=>{if(y(0),!s){p==null||p();return}const O=d*.78;let h=0,j;const T=()=>{if(h+=1,y(h),h>=s.length){p==null||p();return}const D=s[h-1];let C=O*(.45+Math.random()*1.25);D==="."||D==="!"||D==="?"?C+=240:D===","||D===";"||D===":"?C+=110:D===" "&&(C+=22),Math.random()<.06&&(C+=120+Math.random()*160),j=setTimeout(T,C)};return j=setTimeout(T,O),()=>clearTimeout(j)},[s,d]);const U=v<s.length;return c.jsxs("span",{className:o,children:[s.slice(0,v),f&&U&&c.jsx("span",{className:"tw-cursor text-cyan",children:"█"})]})}const Sm="cb-monitor",tx=90,tm=["text-chalk","text-mist-2","text-mist","text-mist-2","text-mist"];function ex(s){const d=new Date(s);return Number.isNaN(d.getTime())?"--:--:--":d.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})}function lx(){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(Sm);if(s==="min"||s==="expanded"||s==="hidden")return s}catch{}return"min"}function _s({lastBeatIso:s}){const d=ea(1e3);return!!s&&(Hs(s,d)??0)>tx?c.jsx("span",{title:"beats have gone quiet — the agent may be working without checking in",className:"stall-breathe h-1.5 w-1.5 rounded-full bg-amber"}):null}function Ds({conn:s}){return!s||s==="live"?null:c.jsx("span",{title:s==="lost"?"connection lost — reconnecting":"connecting…",className:"h-1.5 w-1.5 animate-pulse rounded-full bg-rose"})}function ax({beats:s,arrival:d,order:o,mode:f,onMode:p,lastBeatIso:v,conn:y}){const U=T=>tm[Math.max(0,o.indexOf(T))%tm.length],O=o.length>1,h=d==null?void 0:d.beat.key,j=s[s.length-1];return Q.useEffect(()=>{try{localStorage.setItem(Sm,f)}catch{}},[f]),Q.useEffect(()=>{const T=D=>{D.ctrlKey&&(D.key==="`"||D.code==="Backquote")&&(D.preventDefault(),p(f==="expanded"?"min":"expanded"))};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[f,p]),f==="hidden"?c.jsxs(Gt.button,{initial:{opacity:0,scale:.85},animate:{opacity:1,scale:1},transition:{duration:.22,ease:"easeOut"},onClick:()=>p("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(Ms,{lastBeatIso:v,size:15}),c.jsx(_s,{lastBeatIso:v}),c.jsx(Ds,{conn:y})]}):f==="min"?c.jsxs(Gt.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.25,ease:"easeOut"},className:"flex h-9 shrink-0 items-center gap-2.5 border-t border-line bg-panel px-4",children:[c.jsx(Ms,{lastBeatIso:v,size:14}),c.jsx(_s,{lastBeatIso:v}),c.jsx(Ds,{conn:y}),c.jsxs("button",{onClick:()=>p("expanded"),title:"Expand heartbeat monitor (Ctrl+`)","aria-label":"Expand heartbeat monitor",className:"flex min-w-0 flex-1 items-center gap-2 text-left",children:[j?c.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px] text-mist",children:j.key===h?c.jsx(bm,{text:ai(j.note)}):ai(j.note)}):c.jsx("span",{className:"flex-1 font-mono text-[12px] text-dim",children:"waiting for the first heartbeat…"}),c.jsx("span",{className:"shrink-0 font-mono text-[10px] text-dim",children:"▲"})]})]}):c.jsx(nx,{beats:s,order:o,streamKey:h,onMode:p,wfColor:U,multi:O,lastBeatIso:v,conn:y})}function nx({beats:s,order:d,streamKey:o,onMode:f,wfColor:p,multi:v,lastBeatIso:y,conn:U}){const[O,h]=Q.useState("all"),[j,T]=Q.useState(280),D=Q.useRef(null),C=Q.useRef(!0),[G,q]=Q.useState(!1),[k,P]=Q.useState(!1),mt=s.filter(R=>O==="all"?!0:O==="insights"?!!R.insight:R.workflow===O);Q.useLayoutEffect(()=>{const R=D.current;R&&C.current&&(R.scrollTop=R.scrollHeight,q(!1))},[mt.length,O]),Q.useEffect(()=>{if(!o)return;P(!0);const R=setTimeout(()=>P(!1),1e4);return()=>clearTimeout(R)},[o]);const $=()=>{const R=D.current;if(!R)return;const ft=R.scrollHeight-R.scrollTop-R.clientHeight<40;C.current!==ft&&(C.current=ft,q(!ft))},H=()=>{const R=D.current;R&&(R.scrollTop=R.scrollHeight),C.current=!0,q(!1)},Z=R=>{R.preventDefault();const ft=R.clientY,jt=j,Lt=Bt=>T(Math.max(150,Math.min(window.innerHeight*.7,jt+(ft-Bt.clientY)))),Me=()=>{window.removeEventListener("pointermove",Lt),window.removeEventListener("pointerup",Me)};window.addEventListener("pointermove",Lt),window.addEventListener("pointerup",Me)},W=["all",...d,"insights"];return c.jsxs(Gt.div,{initial:{opacity:0,y:14},animate:{opacity:1,y:0},transition:{duration:.25,ease:"easeOut"},style:{height:j},className:"relative flex shrink-0 flex-col border-t border-line bg-ink-2 font-mono",children:[c.jsx("div",{onPointerDown:Z,className:"absolute inset-x-0 -top-1 z-10 h-2 cursor-row-resize",title:"Drag to resize"}),c.jsxs("div",{onClick:()=>f("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(Ms,{lastBeatIso:y,size:13}),c.jsx(_s,{lastBeatIso:y}),c.jsx(Ds,{conn:U}),c.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-mist-2",children:"Heartbeat"}),c.jsx("span",{className:"text-[10px] text-dim",children:s.length}),c.jsxs("span",{className:"ml-auto flex items-center gap-1.5 text-dim",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(),f("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:W.map(R=>{const ft=O===R,jt=R==="all"?"All":R==="insights"?"Insights":R;return c.jsx("button",{onClick:()=>{C.current=!0,h(R)},className:`shrink-0 rounded-full border px-2 py-0.5 text-[10px] transition-colors ${ft?"border-cyan/50 bg-cyan/15 text-chalk":"border-line bg-panel/40 text-mist hover:text-chalk"}`,children:jt},R)})}),c.jsxs("div",{ref:D,onScroll:$,className:"board-scroll relative min-h-0 flex-1 overflow-y-auto px-3 py-2 text-[13px] leading-relaxed",children:[mt.length===0?c.jsxs("div",{className:"grid h-full place-items-center text-[11px] text-dim",children:["no heartbeats",O==="all"?" yet":` for “${O}”`]}):mt.map(R=>c.jsxs("div",{className:"flex items-start gap-2 py-px",children:[c.jsx("span",{className:"shrink-0 select-none text-dim",children:ex(R.at)}),v&&c.jsx("span",{className:`shrink-0 select-none ${p(R.workflow)}`,children:R.workflow}),c.jsx("span",{className:"w-32 shrink-0 select-none truncate text-mist",title:R.step,children:R.step}),c.jsx("span",{className:"min-w-0 flex-1 text-chalk",children:R.key===o?c.jsx(bm,{text:ai(R.note)}):ai(R.note)}),R.finalBeat&&c.jsx("span",{className:"shrink-0 select-none text-dim",title:"final beat — handoff to next step",children:"→"}),R.insight&&c.jsx("span",{className:"mt-1.5 h-1.5 w-1.5 shrink-0 select-none rounded-full bg-amber",title:"carries an insight"})]},R.key)),k&&mt.length>0&&c.jsx("div",{className:"px-0 text-cyan",children:c.jsx("span",{className:"tw-cursor",children:"▌"})})]}),c.jsx(Ul,{children:G&&c.jsx(Gt.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:"easeOut"},onClick:H,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 em=new URLSearchParams(window.location.search);function ux(){try{return localStorage.getItem("cb-sidebar-open")!=="0"}catch{return!0}}function ix(){try{const s=Number(localStorage.getItem("cb-sidebar-w"));if(s>=248&&s<=600)return s}catch{}return 280}function cx(){var na,ua;const{workflows:s,order:d,conn:o}=F0(),[f,p]=Q.useState(em.get("wf")),[v,y]=Q.useState(em.get("run")),[U,O]=Q.useState(null),[h,j]=Q.useState(ux),[T,D]=Q.useState(ix),[C,G]=Q.useState(!rm()),[q,k]=Q.useState(!dm()),[P,mt]=Q.useState(lx),[$,H]=Q.useState(null),[Z,W]=Q.useState(!1),R=ea(1e3);Q.useEffect(()=>{try{localStorage.setItem("cb-sidebar-open",h?"1":"0")}catch{}},[h]),Q.useEffect(()=>{try{localStorage.setItem("cb-sidebar-w",String(T))}catch{}},[T]);const[ft,jt]=Q.useState(!1),{beats:Lt,log:Me,arrival:Bt}=vp(s,d),la=gp(Lt);Q.useEffect(()=>{Bt&&pp()},[Bt]);const zt=(f&&s[f]?f:null)??d.find(V=>lm(s[V])==="running")??d[0]??null,$t=zt&&((na=s[zt])==null?void 0:na.snap)||zs,E=li($t),B=Q.useRef({});Q.useEffect(()=>{for(const V of d){const ot=lm(s[V]);if(!ot)continue;const Ce=B.current[V];Ce!==void 0&&Ce!==ot&&(ot==="done"?mp():ot==="failed"&&hp()),B.current[V]=ot}},[s,d]),Q.useEffect(()=>{const V=new URL(window.location.href);zt?V.searchParams.set("wf",zt):V.searchParams.delete("wf"),v?V.searchParams.set("run",v):V.searchParams.delete("run"),window.history.replaceState(null,"",V)},[zt,v]),Q.useEffect(()=>{if(v===null||!zt){O(null);return}let V=!0;return fetch(`/api/workflow/${encodeURIComponent(zt)}/history/${encodeURIComponent(v)}`).then(ot=>ot.ok?ot.json():null).then(ot=>V&&O(ot)).catch(()=>V&&y(null)),()=>{V=!1}},[v,zt]);const J=V=>{p(V),y(null),H(null)},gt=(V,ot)=>{p(V),y(ot),H(null)},ht=()=>{y(null),H(null)};Q.useEffect(()=>{const V=ot=>{if((ot.metaKey||ot.ctrlKey)&&ot.key===","){ot.preventDefault(),W(Ce=>!Ce);return}ot.key==="Escape"&&(Z?W(!1):($!==null||v!==null)&&ht())};return window.addEventListener("keydown",V),()=>window.removeEventListener("keydown",V)},[Z,$,v]),Q.useEffect(()=>{if(v!==null)return;const V=E.overallStatus;if(V==="done"||V==="failed"){const ot=setTimeout(()=>jt(!0),1600);return()=>clearTimeout(ot)}jt(!1)},[E.overallStatus,E.runId,v]);const qt=async(V,ot)=>{if(!zt)return{ok:!1};try{return{ok:(await fetch(`/api/workflow/${encodeURIComponent(zt)}/approve`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({step:V,decisions:ot})})).ok}}catch{return{ok:!1}}},ut=v!==null,X=ut?U?li(U.snapshot):null:E,Mt=!!($t.status&&typeof $t.status=="object"&&Object.keys($t.status.steps??{}).length>0),xe=ut?!!U:Mt,Wt=X!=null&&X.autoImprove&&!ut?X.steps.find(V=>{var ot,Ce;return V.phase==="improve"&&((ot=V.improve)==null?void 0:ot.structural)===!0&&V.column!=="done"&&!((Ce=V.approvalState)!=null&&Ce.decided)}):void 0,ve=!ut&&$===null,Xt=ve?yp(E):null,ge=bp(Xt),Cl=!!(Xt!=null&&Xt.isLoop&&ge),Ye=$&&$.includes("::")&&!$.startsWith("_improve::")?$.split("::"):null,aa=Ye?Ye[0]:$&&(X!=null&&X.steps.some(V=>V.id===$))?$:(X==null?void 0:X.currentStep)??null,nl=(X==null?void 0:X.steps.find(V=>V.id===aa))??null,Ge=Cl?`${Xt.id}::${ge}`:aa,ul=(ut||ft)&&$===null&&!!X&&(X.overallStatus==="done"||X.overallStatus==="failed"),Hl=ox({model:X,viewing:ut,record:U,liveFollow:ve,follow:Xt,iterSel:Ye,selectedStepObj:nl,structuralPending:Wt,followItem:ge,showSummary:ul,now:R}),ii=$!==null||v!==null,Yn=`${zt}:${v??"live"}:${ul?"sum":Wt&&ve?`imp:${Wt.id}`:ve?`follow:${(Xt==null?void 0:Xt.id)??"none"}:${ge??""}`:$??(nl==null?void 0:nl.id)??"none"}`;return c.jsxs("div",{className:"flex h-screen flex-col overflow-hidden",children:[c.jsx(jp,{workflow:zt??E.workflow,sidebarOpen:h,onToggleSidebar:()=>j(V=>!V),showBackToLive:ii,onBackToLive:ht}),c.jsxs("div",{className:"flex min-h-0 flex-1 overflow-hidden",children:[h&&c.jsx(wp,{workflows:s,order:d,activeWf:zt,selectedRun:v,onPickWorkflow:J,onPickRun:gt,width:T,onResize:D,activeStep:$??Ge,onSelectStep:H,viewingSnap:ut?U==null?void 0:U.snapshot:null}),c.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[(X==null?void 0:X.demo)&&c.jsx("div",{className:"flex items-center justify-center gap-2 border-b border-amber/25 bg-amber/10 px-5 py-1 font-mono text-[10px] uppercase tracking-[0.15em] text-amber",children:"Demo — simulated data"}),c.jsx(Np,{label:Hl.label,timer:Hl.timer,timerPrefix:Hl.timerPrefix}),(X==null?void 0:X.error)&&c.jsx("div",{className:"px-5 pt-4",children:c.jsx("div",{className:"rounded-lg border border-rose/30 bg-rose/10 px-4 py-2.5 font-mono text-xs text-rose",children:X.error})}),c.jsx("div",{className:"relative min-h-0 flex-1 overflow-hidden",children:ut&&!U?c.jsx("div",{className:"grid h-full place-items-center",children:c.jsx("span",{className:"font-mono text-xs text-mist",children:"loading run…"})}):xe&&X?c.jsx(Ul,{mode:"wait",initial:!1,children:c.jsx(Gt.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.16,ease:"easeOut"},className:ve&&!ul&&!Wt&&!Cl?"h-full":"board-scroll h-full overflow-y-auto",children:ul?c.jsx(Hp,{model:X}):Wt&&ve?c.jsx(ym,{step:Wt,onApprove:qt}):ve?Cl?c.jsx(gm,{loopStep:Xt,item:ge}):Xt?c.jsx(Mp,{step:Xt}):c.jsx(fx,{}):c.jsx(sx,{step:nl,iterSel:Ye,viewing:ut,onApprove:qt,onBackToOverview:V=>H(V),onOpenIteration:(V,ot)=>H(`${V}::${ot}`)})},Yn)}):c.jsx(dx,{model:E,statusPath:$t.statusPath})}),c.jsx(ax,{beats:Me,arrival:Bt,order:d,mode:P,onMode:mt,lastBeatIso:la,conn:o})]})]}),c.jsx(Fp,{open:Z,onClose:()=>W(!1),ticksOn:C,chimesOn:q,onToggleTicks:()=>{const V=!C;rp(!V),G(V)},onToggleChimes:()=>{const V=!q;dp(!V),k(V)},workflow:zt??E.workflow,knowledge:(X??E).knowledge,runCount:zt&&((ua=s[zt])==null?void 0:ua.history.length)||0})]})}function lm(s){var d;return(d=s==null?void 0:s.snap.status)==null?void 0:d.status}function sx({step:s,iterSel:d,viewing:o,onApprove:f,onBackToOverview:p,onOpenIteration:v}){return s?s.phase==="improve"?c.jsx(ym,{step:s,onApprove:o?void 0:f}):d&&s.isLoop?c.jsx(gm,{loopStep:s,item:d[1],onBack:()=>p(s.id)}):s.isLoop?c.jsx(qp,{loopStep:s,onOpenIteration:y=>v(s.id,y)}):c.jsx(Cp,{step:s,onApprove:o?void 0:f}):c.jsx("div",{className:"grid h-full place-items-center",children:c.jsx("span",{className:"font-mono text-xs text-mist",children:"select a step from the sidebar"})})}function fx(){return c.jsx("div",{className:"grid h-full place-items-center",children:c.jsx("span",{className:"font-mono text-xs text-mist",children:"preparing…"})})}function ox({model:s,viewing:d,record:o,liveFollow:f,follow:p,iterSel:v,selectedStepObj:y,structuralPending:U,followItem:O,showSummary:h,now:j}){var D,C,G;const T=(s==null?void 0:s.workflow)??"workflow";if(d){const q=(o==null?void 0:o.run_name)||rx((o==null?void 0:o.completed_at)||(o==null?void 0:o.started_at))||T,k=y?y.id:"summary",P=ta((o==null?void 0:o.started_at)??void 0,j,(o==null?void 0:o.completed_at)??void 0);return{label:`${q} · ${k}`,timer:P,timerPrefix:P?(o==null?void 0:o.status)==="failed"?"failed ·":"completed ·":void 0}}if(U&&f)return{label:`improvement · ${((D=U.improve)==null?void 0:D.title)??U.id}`};if(f){if(h){const q=ta(s==null?void 0:s.startedAt,j,s==null?void 0:s.endedAt);return{label:`${T} — ${(s==null?void 0:s.overallStatus)==="failed"?"failed":"complete"}`,timer:q,timerPrefix:q?"ran":void 0}}if(p&&p.isLoop&&O){const q=((C=p.loop)==null?void 0:C.iterations)??[],k=q.findIndex($=>$.item===O)+1,P=((G=p.loop)==null?void 0:G.total)||q.length,mt=k>0&&P>0?` · ${k}/${P}`:"";return{label:`${p.id} · ${O}${mt}`}}if(p){const q=xm(p);return{label:q.title,timer:q.running?ta(q.startedAt,j):null}}return{label:T}}if(v&&y)return{label:`${y.id} · ${v[1]}`};if(y){const q=y.column==="running",k=ta(y.started_at,j,q?void 0:y.completed_at);return{label:y.id,timer:k,timerPrefix:k&&!q?"took":void 0}}return{label:T}}function rx(s){if(!s)return"";const d=new Date(s);return Number.isNaN(d.getTime())?"":d.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function dx({model:s,statusPath:d}){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:d}),"."]})]}):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-dim",children:d})]})})}W0.createRoot(document.getElementById("root")).render(c.jsx(Q.StrictMode,{children:c.jsx(cx,{})}));