groove-dev 0.25.4 → 0.25.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@groove-dev/gui/dist/assets/index-DlWsuLvF.js +623 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-GYcMwmjs.css +1 -0
- package/node_modules/@groove-dev/gui/dist/index.html +2 -2
- package/node_modules/@groove-dev/gui/src/components/agents/agent-chat.jsx +32 -1
- package/node_modules/@groove-dev/gui/src/components/agents/agent-feed.jsx +27 -2
- package/node_modules/@groove-dev/gui/src/components/agents/spawn-wizard.jsx +116 -2
- package/node_modules/@groove-dev/gui/src/views/agents.jsx +5 -1
- package/package.json +1 -1
- package/packages/gui/dist/assets/index-DlWsuLvF.js +623 -0
- package/packages/gui/dist/assets/index-GYcMwmjs.css +1 -0
- package/packages/gui/dist/index.html +2 -2
- package/packages/gui/src/components/agents/agent-chat.jsx +32 -1
- package/packages/gui/src/components/agents/agent-feed.jsx +27 -2
- package/packages/gui/src/components/agents/spawn-wizard.jsx +116 -2
- package/packages/gui/src/views/agents.jsx +5 -1
- package/node_modules/@groove-dev/gui/dist/assets/index-B8gbMMHj.css +0 -1
- package/node_modules/@groove-dev/gui/dist/assets/index-DtW5ej1k.js +0 -617
- package/packages/gui/dist/assets/index-B8gbMMHj.css +0 -1
- package/packages/gui/dist/assets/index-DtW5ej1k.js +0 -617
|
@@ -1,617 +0,0 @@
|
|
|
1
|
-
import{r as hj,c as mj,a as y,j as i,b as g0,A as b0,m as v0,R as Yn}from"./vendor-C0HXlhrU.js";import{r as pj,a as y0,R as xj,H as Un,P as Gn,b as gj,u as bj,c as vj,d as yj,i as Sj,B as Qj}from"./reactflow-BQPfi37R.js";import{P as S0,N as Tf,a as si,D as jj,b as nn,T as ha,I as kc,s as Ps,t as Z,L as Qs,i as Q0,c as j0,d as w0,e as li,f as El,g as wj,h as jl,j as Bo,k as Ns,l as $c,m as Ie,E as zl,n as xa,o as Dn,p as k0,q as Pf,r as $0,u as kj,v as $j,w as Tj,x as ef,y as Pj,z as Dr,A as Nj,B as zj,C as Rj,F as T0,G as Cj,H as Qg,J as Xj,K as _j,M as Zj,O as Aj,Q as Ej,R as qj,S as Mj,U as Yj,V as Vj,W as Uj,X as Gj,Y as Lj,Z as Dj}from"./codemirror-BBL3i_JW.js";import{D as Wj,o as Bj,L as Hj}from"./xterm--7_ns2zW.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function s(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(o){if(o.ep)return;o.ep=!0;const u=s(o);fetch(o.href,u)}})();var cO={exports:{}},Ar={},uO={exports:{}},dO={};/**
|
|
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 jg;function Ij(){return jg||(jg=1,(function(t){function n(z,B){var I=z.length;z.push(B);e:for(;0<I;){var fe=I-1>>>1,te=z[fe];if(0<o(te,B))z[fe]=B,z[I]=te,I=fe;else break e}}function s(z){return z.length===0?null:z[0]}function l(z){if(z.length===0)return null;var B=z[0],I=z.pop();if(I!==B){z[0]=I;e:for(var fe=0,te=z.length,Ae=te>>>1;fe<Ae;){var Se=2*(fe+1)-1,ve=z[Se],Xe=Se+1,D=z[Xe];if(0>o(ve,I))Xe<te&&0>o(D,ve)?(z[fe]=D,z[Xe]=I,fe=Xe):(z[fe]=ve,z[Se]=I,fe=Se);else if(Xe<te&&0>o(D,I))z[fe]=D,z[Xe]=I,fe=Xe;else break e}}return B}function o(z,B){var I=z.sortIndex-B.sortIndex;return I!==0?I:z.id-B.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var d=Date,O=d.now();t.unstable_now=function(){return d.now()-O}}var m=[],p=[],x=1,g=null,b=3,v=!1,Q=!1,k=!1,T=!1,j=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function A(z){for(var B=s(p);B!==null;){if(B.callback===null)l(p);else if(B.startTime<=z)l(p),B.sortIndex=B.expirationTime,n(m,B);else break;B=s(p)}}function U(z){if(k=!1,A(z),!Q)if(s(m)!==null)Q=!0,C||(C=!0,re());else{var B=s(p);B!==null&&J(U,B.startTime-z)}}var C=!1,X=-1,$=5,W=-1;function E(){return T?!0:!(t.unstable_now()-W<$)}function ne(){if(T=!1,C){var z=t.unstable_now();W=z;var B=!0;try{e:{Q=!1,k&&(k=!1,P(X),X=-1),v=!0;var I=b;try{t:{for(A(z),g=s(m);g!==null&&!(g.expirationTime>z&&E());){var fe=g.callback;if(typeof fe=="function"){g.callback=null,b=g.priorityLevel;var te=fe(g.expirationTime<=z);if(z=t.unstable_now(),typeof te=="function"){g.callback=te,A(z),B=!0;break t}g===s(m)&&l(m),A(z)}else l(m);g=s(m)}if(g!==null)B=!0;else{var Ae=s(p);Ae!==null&&J(U,Ae.startTime-z),B=!1}}break e}finally{g=null,b=I,v=!1}B=void 0}}finally{B?re():C=!1}}}var re;if(typeof N=="function")re=function(){N(ne)};else if(typeof MessageChannel<"u"){var xe=new MessageChannel,ie=xe.port2;xe.port1.onmessage=ne,re=function(){ie.postMessage(null)}}else re=function(){j(ne,0)};function J(z,B){X=j(function(){z(t.unstable_now())},B)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(z){z.callback=null},t.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<z?Math.floor(1e3/z):5},t.unstable_getCurrentPriorityLevel=function(){return b},t.unstable_next=function(z){switch(b){case 1:case 2:case 3:var B=3;break;default:B=b}var I=b;b=B;try{return z()}finally{b=I}},t.unstable_requestPaint=function(){T=!0},t.unstable_runWithPriority=function(z,B){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var I=b;b=z;try{return B()}finally{b=I}},t.unstable_scheduleCallback=function(z,B,I){var fe=t.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?fe+I:fe):I=fe,z){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=I+te,z={id:x++,callback:B,priorityLevel:z,startTime:I,expirationTime:te,sortIndex:-1},I>fe?(z.sortIndex=I,n(p,z),s(m)===null&&z===s(p)&&(k?(P(X),X=-1):k=!0,J(U,I-fe))):(z.sortIndex=te,n(m,z),Q||v||(Q=!0,C||(C=!0,re()))),z},t.unstable_shouldYield=E,t.unstable_wrapCallback=function(z){var B=b;return function(){var I=b;b=B;try{return z.apply(this,arguments)}finally{b=I}}}})(dO)),dO}var wg;function Fj(){return wg||(wg=1,uO.exports=Ij()),uO.exports}/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-dom-client.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 kg;function Kj(){if(kg)return Ar;kg=1;var t=Fj(),n=hj(),s=pj();function l(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)a+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var a=e,r=e;if(e.alternate)for(;a.return;)a=a.return;else{e=a;do a=e,(a.flags&4098)!==0&&(r=a.return),e=a.return;while(e)}return a.tag===3?r:null}function d(e){if(e.tag===13){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function O(e){if(e.tag===31){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function m(e){if(u(e)!==e)throw Error(l(188))}function p(e){var a=e.alternate;if(!a){if(a=u(e),a===null)throw Error(l(188));return a!==e?null:e}for(var r=e,c=a;;){var f=r.return;if(f===null)break;var h=f.alternate;if(h===null){if(c=f.return,c!==null){r=c;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===r)return m(f),e;if(h===c)return m(f),a;h=h.sibling}throw Error(l(188))}if(r.return!==c.return)r=f,c=h;else{for(var S=!1,w=f.child;w;){if(w===r){S=!0,r=f,c=h;break}if(w===c){S=!0,c=f,r=h;break}w=w.sibling}if(!S){for(w=h.child;w;){if(w===r){S=!0,r=h,c=f;break}if(w===c){S=!0,c=h,r=f;break}w=w.sibling}if(!S)throw Error(l(189))}}if(r.alternate!==c)throw Error(l(190))}if(r.tag!==3)throw Error(l(188));return r.stateNode.current===r?e:a}function x(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e;for(e=e.child;e!==null;){if(a=x(e),a!==null)return a;e=e.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),N=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),E=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case j:return"Profiler";case T:return"StrictMode";case U:return"Suspense";case C:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Q:return"Portal";case N:return e.displayName||"Context";case P:return(e._context.displayName||"Context")+".Consumer";case A:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return a=e.displayName||null,a!==null?a:ie(e.type)||"Memo";case $:a=e._payload,e=e._init;try{return ie(e(a))}catch{}}return null}var J=Array.isArray,z=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},fe=[],te=-1;function Ae(e){return{current:e}}function Se(e){0>te||(e.current=fe[te],fe[te]=null,te--)}function ve(e,a){te++,fe[te]=e.current,e.current=a}var Xe=Ae(null),D=Ae(null),oe=Ae(null),ze=Ae(null);function Ot(e,a){switch(ve(oe,a),ve(D,e),ve(Xe,null),a.nodeType){case 9:case 11:e=(e=a.documentElement)&&(e=e.namespaceURI)?Dx(e):0;break;default:if(e=a.tagName,a=a.namespaceURI)a=Dx(a),e=Wx(a,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Se(Xe),ve(Xe,e)}function _e(){Se(Xe),Se(D),Se(oe)}function at(e){e.memoizedState!==null&&ve(ze,e);var a=Xe.current,r=Wx(a,e.type);a!==r&&(ve(D,e),ve(Xe,r))}function bt(e){D.current===e&&(Se(Xe),Se(D)),ze.current===e&&(Se(ze),Cr._currentValue=I)}var yt,Bt;function St(e){if(yt===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);yt=a&&a[1]||"",Bt=-1<r.stack.indexOf(`
|
|
18
|
-
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
-
`+yt+e+Bt}var Ul=!1;function Gl(e,a){if(!e||Ul)return"";Ul=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(L){var V=L}Reflect.construct(e,[],K)}else{try{K.call()}catch(L){V=L}e.call(K.prototype)}}else{try{throw Error()}catch(L){V=L}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(L){if(L&&V&&typeof L.stack=="string")return[L.stack,V.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=c.DetermineComponentFrameRoot(),S=h[0],w=h[1];if(S&&w){var R=S.split(`
|
|
20
|
-
`),Y=w.split(`
|
|
21
|
-
`);for(f=c=0;c<R.length&&!R[c].includes("DetermineComponentFrameRoot");)c++;for(;f<Y.length&&!Y[f].includes("DetermineComponentFrameRoot");)f++;if(c===R.length||f===Y.length)for(c=R.length-1,f=Y.length-1;1<=c&&0<=f&&R[c]!==Y[f];)f--;for(;1<=c&&0<=f;c--,f--)if(R[c]!==Y[f]){if(c!==1||f!==1)do if(c--,f--,0>f||R[c]!==Y[f]){var H=`
|
|
22
|
-
`+R[c].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=c&&0<=f);break}}}finally{Ul=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?St(r):""}function Bc(e,a){switch(e.tag){case 26:case 27:case 5:return St(e.type);case 16:return St("Lazy");case 13:return e.child!==a&&a!==null?St("Suspense Fallback"):St("Suspense");case 19:return St("SuspenseList");case 0:case 15:return Gl(e.type,!1);case 11:return Gl(e.type.render,!1);case 1:return Gl(e.type,!0);case 31:return St("Activity");default:return""}}function mi(e){try{var a="",r=null;do a+=Bc(e,r),r=e,e=e.return;while(e);return a}catch(c){return`
|
|
23
|
-
Error generating stack: `+c.message+`
|
|
24
|
-
`+c.stack}}var dn=Object.prototype.hasOwnProperty,Hc=t.unstable_scheduleCallback,Ic=t.unstable_cancelCallback,DS=t.unstable_shouldYield,WS=t.unstable_requestPaint,Ct=t.unstable_now,BS=t.unstable_getCurrentPriorityLevel,jh=t.unstable_ImmediatePriority,wh=t.unstable_UserBlockingPriority,pi=t.unstable_NormalPriority,HS=t.unstable_LowPriority,kh=t.unstable_IdlePriority,IS=t.log,FS=t.unstable_setDisableYieldValue,Ll=null,Xt=null;function On(e){if(typeof IS=="function"&&FS(e),Xt&&typeof Xt.setStrictMode=="function")try{Xt.setStrictMode(Ll,e)}catch{}}var _t=Math.clz32?Math.clz32:eQ,KS=Math.log,JS=Math.LN2;function eQ(e){return e>>>=0,e===0?32:31-(KS(e)/JS|0)|0}var xi=256,gi=262144,bi=4194304;function ts(e){var a=e&42;if(a!==0)return a;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function vi(e,a,r){var c=e.pendingLanes;if(c===0)return 0;var f=0,h=e.suspendedLanes,S=e.pingedLanes;e=e.warmLanes;var w=c&134217727;return w!==0?(c=w&~h,c!==0?f=ts(c):(S&=w,S!==0?f=ts(S):r||(r=w&~e,r!==0&&(f=ts(r))))):(w=c&~h,w!==0?f=ts(w):S!==0?f=ts(S):r||(r=c&~e,r!==0&&(f=ts(r)))),f===0?0:a!==0&&a!==f&&(a&h)===0&&(h=f&-f,r=a&-a,h>=r||h===32&&(r&4194048)!==0)?a:f}function Dl(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function tQ(e,a){switch(e){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 $h(){var e=bi;return bi<<=1,(bi&62914560)===0&&(bi=4194304),e}function Fc(e){for(var a=[],r=0;31>r;r++)a.push(e);return a}function Wl(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function aQ(e,a,r,c,f,h){var S=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var w=e.entanglements,R=e.expirationTimes,Y=e.hiddenUpdates;for(r=S&~r;0<r;){var H=31-_t(r),K=1<<H;w[H]=0,R[H]=-1;var V=Y[H];if(V!==null)for(Y[H]=null,H=0;H<V.length;H++){var L=V[H];L!==null&&(L.lane&=-536870913)}r&=~K}c!==0&&Th(e,c,0),h!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=h&~(S&~a))}function Th(e,a,r){e.pendingLanes|=a,e.suspendedLanes&=~a;var c=31-_t(a);e.entangledLanes|=a,e.entanglements[c]=e.entanglements[c]|1073741824|r&261930}function Ph(e,a){var r=e.entangledLanes|=a;for(e=e.entanglements;r;){var c=31-_t(r),f=1<<c;f&a|e[c]&a&&(e[c]|=a),r&=~f}}function Nh(e,a){var r=a&-a;return r=(r&42)!==0?1:Kc(r),(r&(e.suspendedLanes|a))!==0?0:r}function Kc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Jc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function zh(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:pg(e.type))}function Rh(e,a){var r=B.p;try{return B.p=e,a()}finally{B.p=r}}var fn=Math.random().toString(36).slice(2),ft="__reactFiber$"+fn,jt="__reactProps$"+fn,Cs="__reactContainer$"+fn,eu="__reactEvents$"+fn,nQ="__reactListeners$"+fn,sQ="__reactHandles$"+fn,Ch="__reactResources$"+fn,Bl="__reactMarker$"+fn;function tu(e){delete e[ft],delete e[jt],delete e[eu],delete e[nQ],delete e[sQ]}function Xs(e){var a=e[ft];if(a)return a;for(var r=e.parentNode;r;){if(a=r[Cs]||r[ft]){if(r=a.alternate,a.child!==null||r!==null&&r.child!==null)for(e=eg(e);e!==null;){if(r=e[ft])return r;e=eg(e)}return a}e=r,r=e.parentNode}return null}function _s(e){if(e=e[ft]||e[Cs]){var a=e.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return e}return null}function Hl(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e.stateNode;throw Error(l(33))}function Zs(e){var a=e[Ch];return a||(a=e[Ch]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function ut(e){e[Bl]=!0}var Xh=new Set,_h={};function as(e,a){As(e,a),As(e+"Capture",a)}function As(e,a){for(_h[e]=a,e=0;e<a.length;e++)Xh.add(a[e])}var lQ=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]*$"),Zh={},Ah={};function rQ(e){return dn.call(Ah,e)?!0:dn.call(Zh,e)?!1:lQ.test(e)?Ah[e]=!0:(Zh[e]=!0,!1)}function yi(e,a,r){if(rQ(a))if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){e.removeAttribute(a);return}}e.setAttribute(a,""+r)}}function Si(e,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttribute(a,""+r)}}function za(e,a,r,c){if(c===null)e.removeAttribute(r);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(a,r,""+c)}}function Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Eh(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function iQ(e,a,r){var c=Object.getOwnPropertyDescriptor(e.constructor.prototype,a);if(!e.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var f=c.get,h=c.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return f.call(this)},set:function(S){r=""+S,h.call(this,S)}}),Object.defineProperty(e,a,{enumerable:c.enumerable}),{getValue:function(){return r},setValue:function(S){r=""+S},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function au(e){if(!e._valueTracker){var a=Eh(e)?"checked":"value";e._valueTracker=iQ(e,a,""+e[a])}}function qh(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var r=a.getValue(),c="";return e&&(c=Eh(e)?e.checked?"true":"false":e.value),e=c,e!==r?(a.setValue(e),!0):!1}function Qi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var oQ=/[\n"\\]/g;function It(e){return e.replace(oQ,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function nu(e,a,r,c,f,h,S,w){e.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.type=S:e.removeAttribute("type"),a!=null?S==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+Ht(a)):e.value!==""+Ht(a)&&(e.value=""+Ht(a)):S!=="submit"&&S!=="reset"||e.removeAttribute("value"),a!=null?su(e,S,Ht(a)):r!=null?su(e,S,Ht(r)):c!=null&&e.removeAttribute("value"),f==null&&h!=null&&(e.defaultChecked=!!h),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+Ht(w):e.removeAttribute("name")}function Mh(e,a,r,c,f,h,S,w){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),a!=null||r!=null){if(!(h!=="submit"&&h!=="reset"||a!=null)){au(e);return}r=r!=null?""+Ht(r):"",a=a!=null?""+Ht(a):r,w||a===e.value||(e.value=a),e.defaultValue=a}c=c??f,c=typeof c!="function"&&typeof c!="symbol"&&!!c,e.checked=w?e.checked:!!c,e.defaultChecked=!!c,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(e.name=S),au(e)}function su(e,a,r){a==="number"&&Qi(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Es(e,a,r,c){if(e=e.options,a){a={};for(var f=0;f<r.length;f++)a["$"+r[f]]=!0;for(r=0;r<e.length;r++)f=a.hasOwnProperty("$"+e[r].value),e[r].selected!==f&&(e[r].selected=f),f&&c&&(e[r].defaultSelected=!0)}else{for(r=""+Ht(r),a=null,f=0;f<e.length;f++){if(e[f].value===r){e[f].selected=!0,c&&(e[f].defaultSelected=!0);return}a!==null||e[f].disabled||(a=e[f])}a!==null&&(a.selected=!0)}}function Yh(e,a,r){if(a!=null&&(a=""+Ht(a),a!==e.value&&(e.value=a),r==null)){e.defaultValue!==a&&(e.defaultValue=a);return}e.defaultValue=r!=null?""+Ht(r):""}function Vh(e,a,r,c){if(a==null){if(c!=null){if(r!=null)throw Error(l(92));if(J(c)){if(1<c.length)throw Error(l(93));c=c[0]}r=c}r==null&&(r=""),a=r}r=Ht(a),e.defaultValue=r,c=e.textContent,c===r&&c!==""&&c!==null&&(e.value=c),au(e)}function qs(e,a){if(a){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=a;return}}e.textContent=a}var cQ=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 Uh(e,a,r){var c=a.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?c?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="":c?e.setProperty(a,r):typeof r!="number"||r===0||cQ.has(a)?a==="float"?e.cssFloat=r:e[a]=(""+r).trim():e[a]=r+"px"}function Gh(e,a,r){if(a!=null&&typeof a!="object")throw Error(l(62));if(e=e.style,r!=null){for(var c in r)!r.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?e.setProperty(c,""):c==="float"?e.cssFloat="":e[c]="");for(var f in a)c=a[f],a.hasOwnProperty(f)&&r[f]!==c&&Uh(e,f,c)}else for(var h in a)a.hasOwnProperty(h)&&Uh(e,h,a[h])}function lu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var uQ=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"]]),dQ=/^[\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 ji(e){return dQ.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ra(){}var ru=null;function iu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ms=null,Ys=null;function Lh(e){var a=_s(e);if(a&&(e=a.stateNode)){var r=e[jt]||null;e:switch(e=a.stateNode,a.type){case"input":if(nu(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),a=r.name,r.type==="radio"&&a!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+It(""+a)+'"][type="radio"]'),a=0;a<r.length;a++){var c=r[a];if(c!==e&&c.form===e.form){var f=c[jt]||null;if(!f)throw Error(l(90));nu(c,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(a=0;a<r.length;a++)c=r[a],c.form===e.form&&qh(c)}break e;case"textarea":Yh(e,r.value,r.defaultValue);break e;case"select":a=r.value,a!=null&&Es(e,!!r.multiple,a,!1)}}}var ou=!1;function Dh(e,a,r){if(ou)return e(a,r);ou=!0;try{var c=e(a);return c}finally{if(ou=!1,(Ms!==null||Ys!==null)&&(Oo(),Ms&&(a=Ms,e=Ys,Ys=Ms=null,Lh(a),e)))for(a=0;a<e.length;a++)Lh(e[a])}}function Il(e,a){var r=e.stateNode;if(r===null)return null;var c=r[jt]||null;if(c===null)return null;r=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(e=e.type,c=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!c;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(l(231,a,typeof r));return r}var Ca=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cu=!1;if(Ca)try{var Fl={};Object.defineProperty(Fl,"passive",{get:function(){cu=!0}}),window.addEventListener("test",Fl,Fl),window.removeEventListener("test",Fl,Fl)}catch{cu=!1}var hn=null,uu=null,wi=null;function Wh(){if(wi)return wi;var e,a=uu,r=a.length,c,f="value"in hn?hn.value:hn.textContent,h=f.length;for(e=0;e<r&&a[e]===f[e];e++);var S=r-e;for(c=1;c<=S&&a[r-c]===f[h-c];c++);return wi=f.slice(e,1<c?1-c:void 0)}function ki(e){var a=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&a===13&&(e=13)):e=a,e===10&&(e=13),32<=e||e===13?e:0}function $i(){return!0}function Bh(){return!1}function wt(e){function a(r,c,f,h,S){this._reactName=r,this._targetInst=f,this.type=c,this.nativeEvent=h,this.target=S,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(r=e[w],this[w]=r?r(h):h[w]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?$i:Bh,this.isPropagationStopped=Bh,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=$i)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=$i)},persist:function(){},isPersistent:$i}),a}var ns={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ti=wt(ns),Kl=g({},ns,{view:0,detail:0}),OQ=wt(Kl),du,Ou,Jl,Pi=g({},Kl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Jl&&(Jl&&e.type==="mousemove"?(du=e.screenX-Jl.screenX,Ou=e.screenY-Jl.screenY):Ou=du=0,Jl=e),du)},movementY:function(e){return"movementY"in e?e.movementY:Ou}}),Hh=wt(Pi),fQ=g({},Pi,{dataTransfer:0}),hQ=wt(fQ),mQ=g({},Kl,{relatedTarget:0}),fu=wt(mQ),pQ=g({},ns,{animationName:0,elapsedTime:0,pseudoElement:0}),xQ=wt(pQ),gQ=g({},ns,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bQ=wt(gQ),vQ=g({},ns,{data:0}),Ih=wt(vQ),yQ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},SQ={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"},QQ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jQ(e){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(e):(e=QQ[e])?!!a[e]:!1}function hu(){return jQ}var wQ=g({},Kl,{key:function(e){if(e.key){var a=yQ[e.key]||e.key;if(a!=="Unidentified")return a}return e.type==="keypress"?(e=ki(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?SQ[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hu,charCode:function(e){return e.type==="keypress"?ki(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ki(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),kQ=wt(wQ),$Q=g({},Pi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fh=wt($Q),TQ=g({},Kl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hu}),PQ=wt(TQ),NQ=g({},ns,{propertyName:0,elapsedTime:0,pseudoElement:0}),zQ=wt(NQ),RQ=g({},Pi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),CQ=wt(RQ),XQ=g({},ns,{newState:0,oldState:0}),_Q=wt(XQ),ZQ=[9,13,27,32],mu=Ca&&"CompositionEvent"in window,er=null;Ca&&"documentMode"in document&&(er=document.documentMode);var AQ=Ca&&"TextEvent"in window&&!er,Kh=Ca&&(!mu||er&&8<er&&11>=er),Jh=" ",em=!1;function tm(e,a){switch(e){case"keyup":return ZQ.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function am(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vs=!1;function EQ(e,a){switch(e){case"compositionend":return am(a);case"keypress":return a.which!==32?null:(em=!0,Jh);case"textInput":return e=a.data,e===Jh&&em?null:e;default:return null}}function qQ(e,a){if(Vs)return e==="compositionend"||!mu&&tm(e,a)?(e=Wh(),wi=uu=hn=null,Vs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Kh&&a.locale!=="ko"?null:a.data;default:return null}}var MQ={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 nm(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a==="input"?!!MQ[e.type]:a==="textarea"}function sm(e,a,r,c){Ms?Ys?Ys.push(c):Ys=[c]:Ms=c,a=bo(a,"onChange"),0<a.length&&(r=new Ti("onChange","change",null,r,c),e.push({event:r,listeners:a}))}var tr=null,ar=null;function YQ(e){Mx(e,0)}function Ni(e){var a=Hl(e);if(qh(a))return e}function lm(e,a){if(e==="change")return a}var rm=!1;if(Ca){var pu;if(Ca){var xu="oninput"in document;if(!xu){var im=document.createElement("div");im.setAttribute("oninput","return;"),xu=typeof im.oninput=="function"}pu=xu}else pu=!1;rm=pu&&(!document.documentMode||9<document.documentMode)}function om(){tr&&(tr.detachEvent("onpropertychange",cm),ar=tr=null)}function cm(e){if(e.propertyName==="value"&&Ni(ar)){var a=[];sm(a,ar,e,iu(e)),Dh(YQ,a)}}function VQ(e,a,r){e==="focusin"?(om(),tr=a,ar=r,tr.attachEvent("onpropertychange",cm)):e==="focusout"&&om()}function UQ(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ni(ar)}function GQ(e,a){if(e==="click")return Ni(a)}function LQ(e,a){if(e==="input"||e==="change")return Ni(a)}function DQ(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var Zt=typeof Object.is=="function"?Object.is:DQ;function nr(e,a){if(Zt(e,a))return!0;if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;var r=Object.keys(e),c=Object.keys(a);if(r.length!==c.length)return!1;for(c=0;c<r.length;c++){var f=r[c];if(!dn.call(a,f)||!Zt(e[f],a[f]))return!1}return!0}function um(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dm(e,a){var r=um(e);e=0;for(var c;r;){if(r.nodeType===3){if(c=e+r.textContent.length,e<=a&&c>=a)return{node:r,offset:a-e};e=c}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=um(r)}}function Om(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?Om(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function fm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=Qi(e.document);a instanceof e.HTMLIFrameElement;){try{var r=typeof a.contentWindow.location.href=="string"}catch{r=!1}if(r)e=a.contentWindow;else break;a=Qi(e.document)}return a}function gu(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}var WQ=Ca&&"documentMode"in document&&11>=document.documentMode,Us=null,bu=null,sr=null,vu=!1;function hm(e,a,r){var c=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;vu||Us==null||Us!==Qi(c)||(c=Us,"selectionStart"in c&&gu(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),sr&&nr(sr,c)||(sr=c,c=bo(bu,"onSelect"),0<c.length&&(a=new Ti("onSelect","select",null,a,r),e.push({event:a,listeners:c}),a.target=Us)))}function ss(e,a){var r={};return r[e.toLowerCase()]=a.toLowerCase(),r["Webkit"+e]="webkit"+a,r["Moz"+e]="moz"+a,r}var Gs={animationend:ss("Animation","AnimationEnd"),animationiteration:ss("Animation","AnimationIteration"),animationstart:ss("Animation","AnimationStart"),transitionrun:ss("Transition","TransitionRun"),transitionstart:ss("Transition","TransitionStart"),transitioncancel:ss("Transition","TransitionCancel"),transitionend:ss("Transition","TransitionEnd")},yu={},mm={};Ca&&(mm=document.createElement("div").style,"AnimationEvent"in window||(delete Gs.animationend.animation,delete Gs.animationiteration.animation,delete Gs.animationstart.animation),"TransitionEvent"in window||delete Gs.transitionend.transition);function ls(e){if(yu[e])return yu[e];if(!Gs[e])return e;var a=Gs[e],r;for(r in a)if(a.hasOwnProperty(r)&&r in mm)return yu[e]=a[r];return e}var pm=ls("animationend"),xm=ls("animationiteration"),gm=ls("animationstart"),BQ=ls("transitionrun"),HQ=ls("transitionstart"),IQ=ls("transitioncancel"),bm=ls("transitionend"),vm=new Map,Su="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(" ");Su.push("scrollEnd");function ua(e,a){vm.set(e,a),as(a,[e])}var zi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ft=[],Ls=0,Qu=0;function Ri(){for(var e=Ls,a=Qu=Ls=0;a<e;){var r=Ft[a];Ft[a++]=null;var c=Ft[a];Ft[a++]=null;var f=Ft[a];Ft[a++]=null;var h=Ft[a];if(Ft[a++]=null,c!==null&&f!==null){var S=c.pending;S===null?f.next=f:(f.next=S.next,S.next=f),c.pending=f}h!==0&&ym(r,f,h)}}function Ci(e,a,r,c){Ft[Ls++]=e,Ft[Ls++]=a,Ft[Ls++]=r,Ft[Ls++]=c,Qu|=c,e.lanes|=c,e=e.alternate,e!==null&&(e.lanes|=c)}function ju(e,a,r,c){return Ci(e,a,r,c),Xi(e)}function rs(e,a){return Ci(e,null,null,a),Xi(e)}function ym(e,a,r){e.lanes|=r;var c=e.alternate;c!==null&&(c.lanes|=r);for(var f=!1,h=e.return;h!==null;)h.childLanes|=r,c=h.alternate,c!==null&&(c.childLanes|=r),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(f=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,f&&a!==null&&(f=31-_t(r),e=h.hiddenUpdates,c=e[f],c===null?e[f]=[a]:c.push(a),a.lane=r|536870912),h):null}function Xi(e){if(50<kr)throw kr=0,Cd=null,Error(l(185));for(var a=e.return;a!==null;)e=a,a=e.return;return e.tag===3?e.stateNode:null}var Ds={};function FQ(e,a,r,c){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,a,r,c){return new FQ(e,a,r,c)}function wu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Xa(e,a){var r=e.alternate;return r===null?(r=At(e.tag,a,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=a,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,a=e.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function Sm(e,a){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=a,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,a=r.dependencies,e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),e}function _i(e,a,r,c,f,h){var S=0;if(c=e,typeof e=="function")wu(e)&&(S=1);else if(typeof e=="string")S=aj(e,r,Xe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case W:return e=At(31,r,a,f),e.elementType=W,e.lanes=h,e;case k:return is(r.children,f,h,a);case T:S=8,f|=24;break;case j:return e=At(12,r,a,f|2),e.elementType=j,e.lanes=h,e;case U:return e=At(13,r,a,f),e.elementType=U,e.lanes=h,e;case C:return e=At(19,r,a,f),e.elementType=C,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case N:S=10;break e;case P:S=9;break e;case A:S=11;break e;case X:S=14;break e;case $:S=16,c=null;break e}S=29,r=Error(l(130,e===null?"null":typeof e,"")),c=null}return a=At(S,r,a,f),a.elementType=e,a.type=c,a.lanes=h,a}function is(e,a,r,c){return e=At(7,e,c,a),e.lanes=r,e}function ku(e,a,r){return e=At(6,e,null,a),e.lanes=r,e}function Qm(e){var a=At(18,null,null,0);return a.stateNode=e,a}function $u(e,a,r){return a=At(4,e.children!==null?e.children:[],e.key,a),a.lanes=r,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}var jm=new WeakMap;function Kt(e,a){if(typeof e=="object"&&e!==null){var r=jm.get(e);return r!==void 0?r:(a={value:e,source:a,stack:mi(a)},jm.set(e,a),a)}return{value:e,source:a,stack:mi(a)}}var Ws=[],Bs=0,Zi=null,lr=0,Jt=[],ea=0,mn=null,va=1,ya="";function _a(e,a){Ws[Bs++]=lr,Ws[Bs++]=Zi,Zi=e,lr=a}function wm(e,a,r){Jt[ea++]=va,Jt[ea++]=ya,Jt[ea++]=mn,mn=e;var c=va;e=ya;var f=32-_t(c)-1;c&=~(1<<f),r+=1;var h=32-_t(a)+f;if(30<h){var S=f-f%5;h=(c&(1<<S)-1).toString(32),c>>=S,f-=S,va=1<<32-_t(a)+f|r<<f|c,ya=h+e}else va=1<<h|r<<f|c,ya=e}function Tu(e){e.return!==null&&(_a(e,1),wm(e,1,0))}function Pu(e){for(;e===Zi;)Zi=Ws[--Bs],Ws[Bs]=null,lr=Ws[--Bs],Ws[Bs]=null;for(;e===mn;)mn=Jt[--ea],Jt[ea]=null,ya=Jt[--ea],Jt[ea]=null,va=Jt[--ea],Jt[ea]=null}function km(e,a){Jt[ea++]=va,Jt[ea++]=ya,Jt[ea++]=mn,va=a.id,ya=a.overflow,mn=e}var ht=null,De=null,Pe=!1,pn=null,ta=!1,Nu=Error(l(519));function xn(e){var a=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw rr(Kt(a,e)),Nu}function $m(e){var a=e.stateNode,r=e.type,c=e.memoizedProps;switch(a[ft]=e,a[jt]=c,r){case"dialog":ke("cancel",a),ke("close",a);break;case"iframe":case"object":case"embed":ke("load",a);break;case"video":case"audio":for(r=0;r<Tr.length;r++)ke(Tr[r],a);break;case"source":ke("error",a);break;case"img":case"image":case"link":ke("error",a),ke("load",a);break;case"details":ke("toggle",a);break;case"input":ke("invalid",a),Mh(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":ke("invalid",a);break;case"textarea":ke("invalid",a),Vh(a,c.value,c.defaultValue,c.children)}r=c.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||a.textContent===""+r||c.suppressHydrationWarning===!0||Gx(a.textContent,r)?(c.popover!=null&&(ke("beforetoggle",a),ke("toggle",a)),c.onScroll!=null&&ke("scroll",a),c.onScrollEnd!=null&&ke("scrollend",a),c.onClick!=null&&(a.onclick=Ra),a=!0):a=!1,a||xn(e,!0)}function Tm(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 31:case 13:ta=!1;return;case 27:case 3:ta=!0;return;default:ht=ht.return}}function Hs(e){if(e!==ht)return!1;if(!Pe)return Tm(e),Pe=!0,!1;var a=e.tag,r;if((r=a!==3&&a!==27)&&((r=a===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Bd(e.type,e.memoizedProps)),r=!r),r&&De&&xn(e),Tm(e),a===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));De=Jx(e)}else if(a===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));De=Jx(e)}else a===27?(a=De,zn(e.type)?(e=Jd,Jd=null,De=e):De=a):De=ht?na(e.stateNode.nextSibling):null;return!0}function os(){De=ht=null,Pe=!1}function zu(){var e=pn;return e!==null&&(Pt===null?Pt=e:Pt.push.apply(Pt,e),pn=null),e}function rr(e){pn===null?pn=[e]:pn.push(e)}var Ru=Ae(null),cs=null,Za=null;function gn(e,a,r){ve(Ru,a._currentValue),a._currentValue=r}function Aa(e){e._currentValue=Ru.current,Se(Ru)}function Cu(e,a,r){for(;e!==null;){var c=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),e===r)break;e=e.return}}function Xu(e,a,r,c){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var h=f.dependencies;if(h!==null){var S=f.child;h=h.firstContext;e:for(;h!==null;){var w=h;h=f;for(var R=0;R<a.length;R++)if(w.context===a[R]){h.lanes|=r,w=h.alternate,w!==null&&(w.lanes|=r),Cu(h.return,r,e),c||(S=null);break e}h=w.next}}else if(f.tag===18){if(S=f.return,S===null)throw Error(l(341));S.lanes|=r,h=S.alternate,h!==null&&(h.lanes|=r),Cu(S,r,e),S=null}else S=f.child;if(S!==null)S.return=f;else for(S=f;S!==null;){if(S===e){S=null;break}if(f=S.sibling,f!==null){f.return=S.return,S=f;break}S=S.return}f=S}}function Is(e,a,r,c){e=null;for(var f=a,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var S=f.alternate;if(S===null)throw Error(l(387));if(S=S.memoizedProps,S!==null){var w=f.type;Zt(f.pendingProps.value,S.value)||(e!==null?e.push(w):e=[w])}}else if(f===ze.current){if(S=f.alternate,S===null)throw Error(l(387));S.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Cr):e=[Cr])}f=f.return}e!==null&&Xu(a,e,r,c),a.flags|=262144}function Ai(e){for(e=e.firstContext;e!==null;){if(!Zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function us(e){cs=e,Za=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return Pm(cs,e)}function Ei(e,a){return cs===null&&us(e),Pm(e,a)}function Pm(e,a){var r=a._currentValue;if(a={context:a,memoizedValue:r,next:null},Za===null){if(e===null)throw Error(l(308));Za=a,e.dependencies={lanes:0,firstContext:a},e.flags|=524288}else Za=Za.next=a;return r}var KQ=typeof AbortController<"u"?AbortController:function(){var e=[],a=this.signal={aborted:!1,addEventListener:function(r,c){e.push(c)}};this.abort=function(){a.aborted=!0,e.forEach(function(r){return r()})}},JQ=t.unstable_scheduleCallback,e2=t.unstable_NormalPriority,nt={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _u(){return{controller:new KQ,data:new Map,refCount:0}}function ir(e){e.refCount--,e.refCount===0&&JQ(e2,function(){e.controller.abort()})}var or=null,Zu=0,Fs=0,Ks=null;function t2(e,a){if(or===null){var r=or=[];Zu=0,Fs=qd(),Ks={status:"pending",value:void 0,then:function(c){r.push(c)}}}return Zu++,a.then(Nm,Nm),a}function Nm(){if(--Zu===0&&or!==null){Ks!==null&&(Ks.status="fulfilled");var e=or;or=null,Fs=0,Ks=null;for(var a=0;a<e.length;a++)(0,e[a])()}}function a2(e,a){var r=[],c={status:"pending",value:null,reason:null,then:function(f){r.push(f)}};return e.then(function(){c.status="fulfilled",c.value=a;for(var f=0;f<r.length;f++)(0,r[f])(a)},function(f){for(c.status="rejected",c.reason=f,f=0;f<r.length;f++)(0,r[f])(void 0)}),c}var zm=z.S;z.S=function(e,a){hx=Ct(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&t2(e,a),zm!==null&&zm(e,a)};var ds=Ae(null);function Au(){var e=ds.current;return e!==null?e:Ge.pooledCache}function qi(e,a){a===null?ve(ds,ds.current):ve(ds,a.pool)}function Rm(){var e=Au();return e===null?null:{parent:nt._currentValue,pool:e}}var Js=Error(l(460)),Eu=Error(l(474)),Mi=Error(l(542)),Yi={then:function(){}};function Cm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xm(e,a,r){switch(r=e[r],r===void 0?e.push(a):r!==a&&(a.then(Ra,Ra),a=r),a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,Zm(e),e;default:if(typeof a.status=="string")a.then(Ra,Ra);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=a,e.status="pending",e.then(function(c){if(a.status==="pending"){var f=a;f.status="fulfilled",f.value=c}},function(c){if(a.status==="pending"){var f=a;f.status="rejected",f.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,Zm(e),e}throw fs=a,Js}}function Os(e){try{var a=e._init;return a(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(fs=r,Js):r}}var fs=null;function _m(){if(fs===null)throw Error(l(459));var e=fs;return fs=null,e}function Zm(e){if(e===Js||e===Mi)throw Error(l(483))}var el=null,cr=0;function Vi(e){var a=cr;return cr+=1,el===null&&(el=[]),Xm(el,e,a)}function ur(e,a){a=a.props.ref,e.ref=a!==void 0?a:null}function Ui(e,a){throw a.$$typeof===b?Error(l(525)):(e=Object.prototype.toString.call(a),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e)))}function Am(e){function a(q,_){if(e){var M=q.deletions;M===null?(q.deletions=[_],q.flags|=16):M.push(_)}}function r(q,_){if(!e)return null;for(;_!==null;)a(q,_),_=_.sibling;return null}function c(q){for(var _=new Map;q!==null;)q.key!==null?_.set(q.key,q):_.set(q.index,q),q=q.sibling;return _}function f(q,_){return q=Xa(q,_),q.index=0,q.sibling=null,q}function h(q,_,M){return q.index=M,e?(M=q.alternate,M!==null?(M=M.index,M<_?(q.flags|=67108866,_):M):(q.flags|=67108866,_)):(q.flags|=1048576,_)}function S(q){return e&&q.alternate===null&&(q.flags|=67108866),q}function w(q,_,M,F){return _===null||_.tag!==6?(_=ku(M,q.mode,F),_.return=q,_):(_=f(_,M),_.return=q,_)}function R(q,_,M,F){var me=M.type;return me===k?H(q,_,M.props.children,F,M.key):_!==null&&(_.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===$&&Os(me)===_.type)?(_=f(_,M.props),ur(_,M),_.return=q,_):(_=_i(M.type,M.key,M.props,null,q.mode,F),ur(_,M),_.return=q,_)}function Y(q,_,M,F){return _===null||_.tag!==4||_.stateNode.containerInfo!==M.containerInfo||_.stateNode.implementation!==M.implementation?(_=$u(M,q.mode,F),_.return=q,_):(_=f(_,M.children||[]),_.return=q,_)}function H(q,_,M,F,me){return _===null||_.tag!==7?(_=is(M,q.mode,F,me),_.return=q,_):(_=f(_,M),_.return=q,_)}function K(q,_,M){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=ku(""+_,q.mode,M),_.return=q,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case v:return M=_i(_.type,_.key,_.props,null,q.mode,M),ur(M,_),M.return=q,M;case Q:return _=$u(_,q.mode,M),_.return=q,_;case $:return _=Os(_),K(q,_,M)}if(J(_)||re(_))return _=is(_,q.mode,M,null),_.return=q,_;if(typeof _.then=="function")return K(q,Vi(_),M);if(_.$$typeof===N)return K(q,Ei(q,_),M);Ui(q,_)}return null}function V(q,_,M,F){var me=_!==null?_.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return me!==null?null:w(q,_,""+M,F);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case v:return M.key===me?R(q,_,M,F):null;case Q:return M.key===me?Y(q,_,M,F):null;case $:return M=Os(M),V(q,_,M,F)}if(J(M)||re(M))return me!==null?null:H(q,_,M,F,null);if(typeof M.then=="function")return V(q,_,Vi(M),F);if(M.$$typeof===N)return V(q,_,Ei(q,M),F);Ui(q,M)}return null}function L(q,_,M,F,me){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return q=q.get(M)||null,w(_,q,""+F,me);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case v:return q=q.get(F.key===null?M:F.key)||null,R(_,q,F,me);case Q:return q=q.get(F.key===null?M:F.key)||null,Y(_,q,F,me);case $:return F=Os(F),L(q,_,M,F,me)}if(J(F)||re(F))return q=q.get(M)||null,H(_,q,F,me,null);if(typeof F.then=="function")return L(q,_,M,Vi(F),me);if(F.$$typeof===N)return L(q,_,M,Ei(_,F),me);Ui(_,F)}return null}function ce(q,_,M,F){for(var me=null,Re=null,Oe=_,ye=_=0,Te=null;Oe!==null&&ye<M.length;ye++){Oe.index>ye?(Te=Oe,Oe=null):Te=Oe.sibling;var Ce=V(q,Oe,M[ye],F);if(Ce===null){Oe===null&&(Oe=Te);break}e&&Oe&&Ce.alternate===null&&a(q,Oe),_=h(Ce,_,ye),Re===null?me=Ce:Re.sibling=Ce,Re=Ce,Oe=Te}if(ye===M.length)return r(q,Oe),Pe&&_a(q,ye),me;if(Oe===null){for(;ye<M.length;ye++)Oe=K(q,M[ye],F),Oe!==null&&(_=h(Oe,_,ye),Re===null?me=Oe:Re.sibling=Oe,Re=Oe);return Pe&&_a(q,ye),me}for(Oe=c(Oe);ye<M.length;ye++)Te=L(Oe,q,ye,M[ye],F),Te!==null&&(e&&Te.alternate!==null&&Oe.delete(Te.key===null?ye:Te.key),_=h(Te,_,ye),Re===null?me=Te:Re.sibling=Te,Re=Te);return e&&Oe.forEach(function(Zn){return a(q,Zn)}),Pe&&_a(q,ye),me}function ge(q,_,M,F){if(M==null)throw Error(l(151));for(var me=null,Re=null,Oe=_,ye=_=0,Te=null,Ce=M.next();Oe!==null&&!Ce.done;ye++,Ce=M.next()){Oe.index>ye?(Te=Oe,Oe=null):Te=Oe.sibling;var Zn=V(q,Oe,Ce.value,F);if(Zn===null){Oe===null&&(Oe=Te);break}e&&Oe&&Zn.alternate===null&&a(q,Oe),_=h(Zn,_,ye),Re===null?me=Zn:Re.sibling=Zn,Re=Zn,Oe=Te}if(Ce.done)return r(q,Oe),Pe&&_a(q,ye),me;if(Oe===null){for(;!Ce.done;ye++,Ce=M.next())Ce=K(q,Ce.value,F),Ce!==null&&(_=h(Ce,_,ye),Re===null?me=Ce:Re.sibling=Ce,Re=Ce);return Pe&&_a(q,ye),me}for(Oe=c(Oe);!Ce.done;ye++,Ce=M.next())Ce=L(Oe,q,ye,Ce.value,F),Ce!==null&&(e&&Ce.alternate!==null&&Oe.delete(Ce.key===null?ye:Ce.key),_=h(Ce,_,ye),Re===null?me=Ce:Re.sibling=Ce,Re=Ce);return e&&Oe.forEach(function(fj){return a(q,fj)}),Pe&&_a(q,ye),me}function Ue(q,_,M,F){if(typeof M=="object"&&M!==null&&M.type===k&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case v:e:{for(var me=M.key;_!==null;){if(_.key===me){if(me=M.type,me===k){if(_.tag===7){r(q,_.sibling),F=f(_,M.props.children),F.return=q,q=F;break e}}else if(_.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===$&&Os(me)===_.type){r(q,_.sibling),F=f(_,M.props),ur(F,M),F.return=q,q=F;break e}r(q,_);break}else a(q,_);_=_.sibling}M.type===k?(F=is(M.props.children,q.mode,F,M.key),F.return=q,q=F):(F=_i(M.type,M.key,M.props,null,q.mode,F),ur(F,M),F.return=q,q=F)}return S(q);case Q:e:{for(me=M.key;_!==null;){if(_.key===me)if(_.tag===4&&_.stateNode.containerInfo===M.containerInfo&&_.stateNode.implementation===M.implementation){r(q,_.sibling),F=f(_,M.children||[]),F.return=q,q=F;break e}else{r(q,_);break}else a(q,_);_=_.sibling}F=$u(M,q.mode,F),F.return=q,q=F}return S(q);case $:return M=Os(M),Ue(q,_,M,F)}if(J(M))return ce(q,_,M,F);if(re(M)){if(me=re(M),typeof me!="function")throw Error(l(150));return M=me.call(M),ge(q,_,M,F)}if(typeof M.then=="function")return Ue(q,_,Vi(M),F);if(M.$$typeof===N)return Ue(q,_,Ei(q,M),F);Ui(q,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,_!==null&&_.tag===6?(r(q,_.sibling),F=f(_,M),F.return=q,q=F):(r(q,_),F=ku(M,q.mode,F),F.return=q,q=F),S(q)):r(q,_)}return function(q,_,M,F){try{cr=0;var me=Ue(q,_,M,F);return el=null,me}catch(Oe){if(Oe===Js||Oe===Mi)throw Oe;var Re=At(29,Oe,null,q.mode);return Re.lanes=F,Re.return=q,Re}finally{}}}var hs=Am(!0),Em=Am(!1),bn=!1;function qu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mu(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function vn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function yn(e,a,r){var c=e.updateQueue;if(c===null)return null;if(c=c.shared,(Ze&2)!==0){var f=c.pending;return f===null?a.next=a:(a.next=f.next,f.next=a),c.pending=a,a=Xi(e),ym(e,null,r),a}return Ci(e,c,a,r),Xi(e)}function dr(e,a,r){if(a=a.updateQueue,a!==null&&(a=a.shared,(r&4194048)!==0)){var c=a.lanes;c&=e.pendingLanes,r|=c,a.lanes=r,Ph(e,r)}}function Yu(e,a){var r=e.updateQueue,c=e.alternate;if(c!==null&&(c=c.updateQueue,r===c)){var f=null,h=null;if(r=r.firstBaseUpdate,r!==null){do{var S={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};h===null?f=h=S:h=h.next=S,r=r.next}while(r!==null);h===null?f=h=a:h=h.next=a}else f=h=a;r={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:c.shared,callbacks:c.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=a:e.next=a,r.lastBaseUpdate=a}var Vu=!1;function Or(){if(Vu){var e=Ks;if(e!==null)throw e}}function fr(e,a,r,c){Vu=!1;var f=e.updateQueue;bn=!1;var h=f.firstBaseUpdate,S=f.lastBaseUpdate,w=f.shared.pending;if(w!==null){f.shared.pending=null;var R=w,Y=R.next;R.next=null,S===null?h=Y:S.next=Y,S=R;var H=e.alternate;H!==null&&(H=H.updateQueue,w=H.lastBaseUpdate,w!==S&&(w===null?H.firstBaseUpdate=Y:w.next=Y,H.lastBaseUpdate=R))}if(h!==null){var K=f.baseState;S=0,H=Y=R=null,w=h;do{var V=w.lane&-536870913,L=V!==w.lane;if(L?($e&V)===V:(c&V)===V){V!==0&&V===Fs&&(Vu=!0),H!==null&&(H=H.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var ce=e,ge=w;V=a;var Ue=r;switch(ge.tag){case 1:if(ce=ge.payload,typeof ce=="function"){K=ce.call(Ue,K,V);break e}K=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=ge.payload,V=typeof ce=="function"?ce.call(Ue,K,V):ce,V==null)break e;K=g({},K,V);break e;case 2:bn=!0}}V=w.callback,V!==null&&(e.flags|=64,L&&(e.flags|=8192),L=f.callbacks,L===null?f.callbacks=[V]:L.push(V))}else L={lane:V,tag:w.tag,payload:w.payload,callback:w.callback,next:null},H===null?(Y=H=L,R=K):H=H.next=L,S|=V;if(w=w.next,w===null){if(w=f.shared.pending,w===null)break;L=w,w=L.next,L.next=null,f.lastBaseUpdate=L,f.shared.pending=null}}while(!0);H===null&&(R=K),f.baseState=R,f.firstBaseUpdate=Y,f.lastBaseUpdate=H,h===null&&(f.shared.lanes=0),kn|=S,e.lanes=S,e.memoizedState=K}}function qm(e,a){if(typeof e!="function")throw Error(l(191,e));e.call(a)}function Mm(e,a){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)qm(r[e],a)}var tl=Ae(null),Gi=Ae(0);function Ym(e,a){e=Da,ve(Gi,e),ve(tl,a),Da=e|a.baseLanes}function Uu(){ve(Gi,Da),ve(tl,tl.current)}function Gu(){Da=Gi.current,Se(tl),Se(Gi)}var Et=Ae(null),aa=null;function Sn(e){var a=e.alternate;ve(et,et.current&1),ve(Et,e),aa===null&&(a===null||tl.current!==null||a.memoizedState!==null)&&(aa=e)}function Lu(e){ve(et,et.current),ve(Et,e),aa===null&&(aa=e)}function Vm(e){e.tag===22?(ve(et,et.current),ve(Et,e),aa===null&&(aa=e)):Qn()}function Qn(){ve(et,et.current),ve(Et,Et.current)}function qt(e){Se(Et),aa===e&&(aa=null),Se(et)}var et=Ae(0);function Li(e){for(var a=e;a!==null;){if(a.tag===13){var r=a.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Fd(r)||Kd(r)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Ea=0,be=null,Ye=null,st=null,Di=!1,al=!1,ms=!1,Wi=0,hr=0,nl=null,n2=0;function Fe(){throw Error(l(321))}function Du(e,a){if(a===null)return!1;for(var r=0;r<a.length&&r<e.length;r++)if(!Zt(e[r],a[r]))return!1;return!0}function Wu(e,a,r,c,f,h){return Ea=h,be=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,z.H=e===null||e.memoizedState===null?wp:od,ms=!1,h=r(c,f),ms=!1,al&&(h=Gm(a,r,c,f)),Um(e),h}function Um(e){z.H=xr;var a=Ye!==null&&Ye.next!==null;if(Ea=0,st=Ye=be=null,Di=!1,hr=0,nl=null,a)throw Error(l(300));e===null||lt||(e=e.dependencies,e!==null&&Ai(e)&&(lt=!0))}function Gm(e,a,r,c){be=e;var f=0;do{if(al&&(nl=null),hr=0,al=!1,25<=f)throw Error(l(301));if(f+=1,st=Ye=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}z.H=kp,h=a(r,c)}while(al);return h}function s2(){var e=z.H,a=e.useState()[0];return a=typeof a.then=="function"?mr(a):a,e=e.useState()[0],(Ye!==null?Ye.memoizedState:null)!==e&&(be.flags|=1024),a}function Bu(){var e=Wi!==0;return Wi=0,e}function Hu(e,a,r){a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~r}function Iu(e){if(Di){for(e=e.memoizedState;e!==null;){var a=e.queue;a!==null&&(a.pending=null),e=e.next}Di=!1}Ea=0,st=Ye=be=null,al=!1,hr=Wi=0,nl=null}function Qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?be.memoizedState=st=e:st=st.next=e,st}function tt(){if(Ye===null){var e=be.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var a=st===null?be.memoizedState:st.next;if(a!==null)st=a,Ye=e;else{if(e===null)throw be.alternate===null?Error(l(467)):Error(l(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},st===null?be.memoizedState=st=e:st=st.next=e}return st}function Bi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function mr(e){var a=hr;return hr+=1,nl===null&&(nl=[]),e=Xm(nl,e,a),a=be,(st===null?a.memoizedState:st.next)===null&&(a=a.alternate,z.H=a===null||a.memoizedState===null?wp:od),e}function Hi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return mr(e);if(e.$$typeof===N)return mt(e)}throw Error(l(438,String(e)))}function Fu(e){var a=null,r=be.updateQueue;if(r!==null&&(a=r.memoCache),a==null){var c=be.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(f){return f.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),r===null&&(r=Bi(),be.updateQueue=r),r.memoCache=a,r=a.data[a.index],r===void 0)for(r=a.data[a.index]=Array(e),c=0;c<e;c++)r[c]=E;return a.index++,r}function qa(e,a){return typeof a=="function"?a(e):a}function Ii(e){var a=tt();return Ku(a,Ye,e)}function Ku(e,a,r){var c=e.queue;if(c===null)throw Error(l(311));c.lastRenderedReducer=r;var f=e.baseQueue,h=c.pending;if(h!==null){if(f!==null){var S=f.next;f.next=h.next,h.next=S}a.baseQueue=f=h,c.pending=null}if(h=e.baseState,f===null)e.memoizedState=h;else{a=f.next;var w=S=null,R=null,Y=a,H=!1;do{var K=Y.lane&-536870913;if(K!==Y.lane?($e&K)===K:(Ea&K)===K){var V=Y.revertLane;if(V===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),K===Fs&&(H=!0);else if((Ea&V)===V){Y=Y.next,V===Fs&&(H=!0);continue}else K={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},R===null?(w=R=K,S=h):R=R.next=K,be.lanes|=V,kn|=V;K=Y.action,ms&&r(h,K),h=Y.hasEagerState?Y.eagerState:r(h,K)}else V={lane:K,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},R===null?(w=R=V,S=h):R=R.next=V,be.lanes|=K,kn|=K;Y=Y.next}while(Y!==null&&Y!==a);if(R===null?S=h:R.next=w,!Zt(h,e.memoizedState)&&(lt=!0,H&&(r=Ks,r!==null)))throw r;e.memoizedState=h,e.baseState=S,e.baseQueue=R,c.lastRenderedState=h}return f===null&&(c.lanes=0),[e.memoizedState,c.dispatch]}function Ju(e){var a=tt(),r=a.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=e;var c=r.dispatch,f=r.pending,h=a.memoizedState;if(f!==null){r.pending=null;var S=f=f.next;do h=e(h,S.action),S=S.next;while(S!==f);Zt(h,a.memoizedState)||(lt=!0),a.memoizedState=h,a.baseQueue===null&&(a.baseState=h),r.lastRenderedState=h}return[h,c]}function Lm(e,a,r){var c=be,f=tt(),h=Pe;if(h){if(r===void 0)throw Error(l(407));r=r()}else r=a();var S=!Zt((Ye||f).memoizedState,r);if(S&&(f.memoizedState=r,lt=!0),f=f.queue,ad(Bm.bind(null,c,f,e),[e]),f.getSnapshot!==a||S||st!==null&&st.memoizedState.tag&1){if(c.flags|=2048,sl(9,{destroy:void 0},Wm.bind(null,c,f,r,a),null),Ge===null)throw Error(l(349));h||(Ea&127)!==0||Dm(c,a,r)}return r}function Dm(e,a,r){e.flags|=16384,e={getSnapshot:a,value:r},a=be.updateQueue,a===null?(a=Bi(),be.updateQueue=a,a.stores=[e]):(r=a.stores,r===null?a.stores=[e]:r.push(e))}function Wm(e,a,r,c){a.value=r,a.getSnapshot=c,Hm(a)&&Im(e)}function Bm(e,a,r){return r(function(){Hm(a)&&Im(e)})}function Hm(e){var a=e.getSnapshot;e=e.value;try{var r=a();return!Zt(e,r)}catch{return!0}}function Im(e){var a=rs(e,2);a!==null&&Nt(a,e,2)}function ed(e){var a=Qt();if(typeof e=="function"){var r=e;if(e=r(),ms){On(!0);try{r()}finally{On(!1)}}}return a.memoizedState=a.baseState=e,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:e},a}function Fm(e,a,r,c){return e.baseState=r,Ku(e,Ye,typeof c=="function"?c:qa)}function l2(e,a,r,c,f){if(Ji(e))throw Error(l(485));if(e=a.action,e!==null){var h={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){h.listeners.push(S)}};z.T!==null?r(!0):h.isTransition=!1,c(h),r=a.pending,r===null?(h.next=a.pending=h,Km(a,h)):(h.next=r.next,a.pending=r.next=h)}}function Km(e,a){var r=a.action,c=a.payload,f=e.state;if(a.isTransition){var h=z.T,S={};z.T=S;try{var w=r(f,c),R=z.S;R!==null&&R(S,w),Jm(e,a,w)}catch(Y){td(e,a,Y)}finally{h!==null&&S.types!==null&&(h.types=S.types),z.T=h}}else try{h=r(f,c),Jm(e,a,h)}catch(Y){td(e,a,Y)}}function Jm(e,a,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(c){ep(e,a,c)},function(c){return td(e,a,c)}):ep(e,a,r)}function ep(e,a,r){a.status="fulfilled",a.value=r,tp(a),e.state=r,a=e.pending,a!==null&&(r=a.next,r===a?e.pending=null:(r=r.next,a.next=r,Km(e,r)))}function td(e,a,r){var c=e.pending;if(e.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=r,tp(a),a=a.next;while(a!==c)}e.action=null}function tp(e){e=e.listeners;for(var a=0;a<e.length;a++)(0,e[a])()}function ap(e,a){return a}function np(e,a){if(Pe){var r=Ge.formState;if(r!==null){e:{var c=be;if(Pe){if(De){t:{for(var f=De,h=ta;f.nodeType!==8;){if(!h){f=null;break t}if(f=na(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){De=na(f.nextSibling),c=f.data==="F!";break e}}xn(c)}c=!1}c&&(a=r[0])}}return r=Qt(),r.memoizedState=r.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ap,lastRenderedState:a},r.queue=c,r=Sp.bind(null,be,c),c.dispatch=r,c=ed(!1),h=id.bind(null,be,!1,c.queue),c=Qt(),f={state:a,dispatch:null,action:e,pending:null},c.queue=f,r=l2.bind(null,be,f,h,r),f.dispatch=r,c.memoizedState=e,[a,r,!1]}function sp(e){var a=tt();return lp(a,Ye,e)}function lp(e,a,r){if(a=Ku(e,a,ap)[0],e=Ii(qa)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=mr(a)}catch(S){throw S===Js?Mi:S}else c=a;a=tt();var f=a.queue,h=f.dispatch;return r!==a.memoizedState&&(be.flags|=2048,sl(9,{destroy:void 0},r2.bind(null,f,r),null)),[c,h,e]}function r2(e,a){e.action=a}function rp(e){var a=tt(),r=Ye;if(r!==null)return lp(a,r,e);tt(),a=a.memoizedState,r=tt();var c=r.queue.dispatch;return r.memoizedState=e,[a,c,!1]}function sl(e,a,r,c){return e={tag:e,create:r,deps:c,inst:a,next:null},a=be.updateQueue,a===null&&(a=Bi(),be.updateQueue=a),r=a.lastEffect,r===null?a.lastEffect=e.next=e:(c=r.next,r.next=e,e.next=c,a.lastEffect=e),e}function ip(){return tt().memoizedState}function Fi(e,a,r,c){var f=Qt();be.flags|=e,f.memoizedState=sl(1|a,{destroy:void 0},r,c===void 0?null:c)}function Ki(e,a,r,c){var f=tt();c=c===void 0?null:c;var h=f.memoizedState.inst;Ye!==null&&c!==null&&Du(c,Ye.memoizedState.deps)?f.memoizedState=sl(a,h,r,c):(be.flags|=e,f.memoizedState=sl(1|a,h,r,c))}function op(e,a){Fi(8390656,8,e,a)}function ad(e,a){Ki(2048,8,e,a)}function i2(e){be.flags|=4;var a=be.updateQueue;if(a===null)a=Bi(),be.updateQueue=a,a.events=[e];else{var r=a.events;r===null?a.events=[e]:r.push(e)}}function cp(e){var a=tt().memoizedState;return i2({ref:a,nextImpl:e}),function(){if((Ze&2)!==0)throw Error(l(440));return a.impl.apply(void 0,arguments)}}function up(e,a){return Ki(4,2,e,a)}function dp(e,a){return Ki(4,4,e,a)}function Op(e,a){if(typeof a=="function"){e=e();var r=a(e);return function(){typeof r=="function"?r():a(null)}}if(a!=null)return e=e(),a.current=e,function(){a.current=null}}function fp(e,a,r){r=r!=null?r.concat([e]):null,Ki(4,4,Op.bind(null,a,e),r)}function nd(){}function hp(e,a){var r=tt();a=a===void 0?null:a;var c=r.memoizedState;return a!==null&&Du(a,c[1])?c[0]:(r.memoizedState=[e,a],e)}function mp(e,a){var r=tt();a=a===void 0?null:a;var c=r.memoizedState;if(a!==null&&Du(a,c[1]))return c[0];if(c=e(),ms){On(!0);try{e()}finally{On(!1)}}return r.memoizedState=[c,a],c}function sd(e,a,r){return r===void 0||(Ea&1073741824)!==0&&($e&261930)===0?e.memoizedState=a:(e.memoizedState=r,e=px(),be.lanes|=e,kn|=e,r)}function pp(e,a,r,c){return Zt(r,a)?r:tl.current!==null?(e=sd(e,r,c),Zt(e,a)||(lt=!0),e):(Ea&42)===0||(Ea&1073741824)!==0&&($e&261930)===0?(lt=!0,e.memoizedState=r):(e=px(),be.lanes|=e,kn|=e,a)}function xp(e,a,r,c,f){var h=B.p;B.p=h!==0&&8>h?h:8;var S=z.T,w={};z.T=w,id(e,!1,a,r);try{var R=f(),Y=z.S;if(Y!==null&&Y(w,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var H=a2(R,c);pr(e,a,H,Vt(e))}else pr(e,a,c,Vt(e))}catch(K){pr(e,a,{then:function(){},status:"rejected",reason:K},Vt())}finally{B.p=h,S!==null&&w.types!==null&&(S.types=w.types),z.T=S}}function o2(){}function ld(e,a,r,c){if(e.tag!==5)throw Error(l(476));var f=gp(e).queue;xp(e,f,a,I,r===null?o2:function(){return bp(e),r(c)})}function gp(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:I},next:null};var r={};return a.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:r},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function bp(e){var a=gp(e);a.next===null&&(a=e.alternate.memoizedState),pr(e,a.next.queue,{},Vt())}function rd(){return mt(Cr)}function vp(){return tt().memoizedState}function yp(){return tt().memoizedState}function c2(e){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var r=Vt();e=vn(r);var c=yn(a,e,r);c!==null&&(Nt(c,a,r),dr(c,a,r)),a={cache:_u()},e.payload=a;return}a=a.return}}function u2(e,a,r){var c=Vt();r={lane:c,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ji(e)?Qp(a,r):(r=ju(e,a,r,c),r!==null&&(Nt(r,e,c),jp(r,a,c)))}function Sp(e,a,r){var c=Vt();pr(e,a,r,c)}function pr(e,a,r,c){var f={lane:c,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ji(e))Qp(a,f);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=a.lastRenderedReducer,h!==null))try{var S=a.lastRenderedState,w=h(S,r);if(f.hasEagerState=!0,f.eagerState=w,Zt(w,S))return Ci(e,a,f,0),Ge===null&&Ri(),!1}catch{}finally{}if(r=ju(e,a,f,c),r!==null)return Nt(r,e,c),jp(r,a,c),!0}return!1}function id(e,a,r,c){if(c={lane:2,revertLane:qd(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Ji(e)){if(a)throw Error(l(479))}else a=ju(e,r,c,2),a!==null&&Nt(a,e,2)}function Ji(e){var a=e.alternate;return e===be||a!==null&&a===be}function Qp(e,a){al=Di=!0;var r=e.pending;r===null?a.next=a:(a.next=r.next,r.next=a),e.pending=a}function jp(e,a,r){if((r&4194048)!==0){var c=a.lanes;c&=e.pendingLanes,r|=c,a.lanes=r,Ph(e,r)}}var xr={readContext:mt,use:Hi,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useLayoutEffect:Fe,useInsertionEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useSyncExternalStore:Fe,useId:Fe,useHostTransitionStatus:Fe,useFormState:Fe,useActionState:Fe,useOptimistic:Fe,useMemoCache:Fe,useCacheRefresh:Fe};xr.useEffectEvent=Fe;var wp={readContext:mt,use:Hi,useCallback:function(e,a){return Qt().memoizedState=[e,a===void 0?null:a],e},useContext:mt,useEffect:op,useImperativeHandle:function(e,a,r){r=r!=null?r.concat([e]):null,Fi(4194308,4,Op.bind(null,a,e),r)},useLayoutEffect:function(e,a){return Fi(4194308,4,e,a)},useInsertionEffect:function(e,a){Fi(4,2,e,a)},useMemo:function(e,a){var r=Qt();a=a===void 0?null:a;var c=e();if(ms){On(!0);try{e()}finally{On(!1)}}return r.memoizedState=[c,a],c},useReducer:function(e,a,r){var c=Qt();if(r!==void 0){var f=r(a);if(ms){On(!0);try{r(a)}finally{On(!1)}}}else f=a;return c.memoizedState=c.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},c.queue=e,e=e.dispatch=u2.bind(null,be,e),[c.memoizedState,e]},useRef:function(e){var a=Qt();return e={current:e},a.memoizedState=e},useState:function(e){e=ed(e);var a=e.queue,r=Sp.bind(null,be,a);return a.dispatch=r,[e.memoizedState,r]},useDebugValue:nd,useDeferredValue:function(e,a){var r=Qt();return sd(r,e,a)},useTransition:function(){var e=ed(!1);return e=xp.bind(null,be,e.queue,!0,!1),Qt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,r){var c=be,f=Qt();if(Pe){if(r===void 0)throw Error(l(407));r=r()}else{if(r=a(),Ge===null)throw Error(l(349));($e&127)!==0||Dm(c,a,r)}f.memoizedState=r;var h={value:r,getSnapshot:a};return f.queue=h,op(Bm.bind(null,c,h,e),[e]),c.flags|=2048,sl(9,{destroy:void 0},Wm.bind(null,c,h,r,a),null),r},useId:function(){var e=Qt(),a=Ge.identifierPrefix;if(Pe){var r=ya,c=va;r=(c&~(1<<32-_t(c)-1)).toString(32)+r,a="_"+a+"R_"+r,r=Wi++,0<r&&(a+="H"+r.toString(32)),a+="_"}else r=n2++,a="_"+a+"r_"+r.toString(32)+"_";return e.memoizedState=a},useHostTransitionStatus:rd,useFormState:np,useActionState:np,useOptimistic:function(e){var a=Qt();a.memoizedState=a.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=r,a=id.bind(null,be,!0,r),r.dispatch=a,[e,a]},useMemoCache:Fu,useCacheRefresh:function(){return Qt().memoizedState=c2.bind(null,be)},useEffectEvent:function(e){var a=Qt(),r={impl:e};return a.memoizedState=r,function(){if((Ze&2)!==0)throw Error(l(440));return r.impl.apply(void 0,arguments)}}},od={readContext:mt,use:Hi,useCallback:hp,useContext:mt,useEffect:ad,useImperativeHandle:fp,useInsertionEffect:up,useLayoutEffect:dp,useMemo:mp,useReducer:Ii,useRef:ip,useState:function(){return Ii(qa)},useDebugValue:nd,useDeferredValue:function(e,a){var r=tt();return pp(r,Ye.memoizedState,e,a)},useTransition:function(){var e=Ii(qa)[0],a=tt().memoizedState;return[typeof e=="boolean"?e:mr(e),a]},useSyncExternalStore:Lm,useId:vp,useHostTransitionStatus:rd,useFormState:sp,useActionState:sp,useOptimistic:function(e,a){var r=tt();return Fm(r,Ye,e,a)},useMemoCache:Fu,useCacheRefresh:yp};od.useEffectEvent=cp;var kp={readContext:mt,use:Hi,useCallback:hp,useContext:mt,useEffect:ad,useImperativeHandle:fp,useInsertionEffect:up,useLayoutEffect:dp,useMemo:mp,useReducer:Ju,useRef:ip,useState:function(){return Ju(qa)},useDebugValue:nd,useDeferredValue:function(e,a){var r=tt();return Ye===null?sd(r,e,a):pp(r,Ye.memoizedState,e,a)},useTransition:function(){var e=Ju(qa)[0],a=tt().memoizedState;return[typeof e=="boolean"?e:mr(e),a]},useSyncExternalStore:Lm,useId:vp,useHostTransitionStatus:rd,useFormState:rp,useActionState:rp,useOptimistic:function(e,a){var r=tt();return Ye!==null?Fm(r,Ye,e,a):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Fu,useCacheRefresh:yp};kp.useEffectEvent=cp;function cd(e,a,r,c){a=e.memoizedState,r=r(c,a),r=r==null?a:g({},a,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ud={enqueueSetState:function(e,a,r){e=e._reactInternals;var c=Vt(),f=vn(c);f.payload=a,r!=null&&(f.callback=r),a=yn(e,f,c),a!==null&&(Nt(a,e,c),dr(a,e,c))},enqueueReplaceState:function(e,a,r){e=e._reactInternals;var c=Vt(),f=vn(c);f.tag=1,f.payload=a,r!=null&&(f.callback=r),a=yn(e,f,c),a!==null&&(Nt(a,e,c),dr(a,e,c))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var r=Vt(),c=vn(r);c.tag=2,a!=null&&(c.callback=a),a=yn(e,c,r),a!==null&&(Nt(a,e,r),dr(a,e,r))}};function $p(e,a,r,c,f,h,S){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(c,h,S):a.prototype&&a.prototype.isPureReactComponent?!nr(r,c)||!nr(f,h):!0}function Tp(e,a,r,c){e=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(r,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(r,c),a.state!==e&&ud.enqueueReplaceState(a,a.state,null)}function ps(e,a){var r=a;if("ref"in a){r={};for(var c in a)c!=="ref"&&(r[c]=a[c])}if(e=e.defaultProps){r===a&&(r=g({},r));for(var f in e)r[f]===void 0&&(r[f]=e[f])}return r}function Pp(e){zi(e)}function Np(e){console.error(e)}function zp(e){zi(e)}function eo(e,a){try{var r=e.onUncaughtError;r(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function Rp(e,a,r){try{var c=e.onCaughtError;c(r.value,{componentStack:r.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function dd(e,a,r){return r=vn(r),r.tag=3,r.payload={element:null},r.callback=function(){eo(e,a)},r}function Cp(e){return e=vn(e),e.tag=3,e}function Xp(e,a,r,c){var f=r.type.getDerivedStateFromError;if(typeof f=="function"){var h=c.value;e.payload=function(){return f(h)},e.callback=function(){Rp(a,r,c)}}var S=r.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(e.callback=function(){Rp(a,r,c),typeof f!="function"&&($n===null?$n=new Set([this]):$n.add(this));var w=c.stack;this.componentDidCatch(c.value,{componentStack:w!==null?w:""})})}function d2(e,a,r,c,f){if(r.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=r.alternate,a!==null&&Is(a,r,f,!0),r=Et.current,r!==null){switch(r.tag){case 31:case 13:return aa===null?fo():r.alternate===null&&Ke===0&&(Ke=3),r.flags&=-257,r.flags|=65536,r.lanes=f,c===Yi?r.flags|=16384:(a=r.updateQueue,a===null?r.updateQueue=new Set([c]):a.add(c),Zd(e,c,f)),!1;case 22:return r.flags|=65536,c===Yi?r.flags|=16384:(a=r.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},r.updateQueue=a):(r=a.retryQueue,r===null?a.retryQueue=new Set([c]):r.add(c)),Zd(e,c,f)),!1}throw Error(l(435,r.tag))}return Zd(e,c,f),fo(),!1}if(Pe)return a=Et.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=f,c!==Nu&&(e=Error(l(422),{cause:c}),rr(Kt(e,r)))):(c!==Nu&&(a=Error(l(423),{cause:c}),rr(Kt(a,r))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,c=Kt(c,r),f=dd(e.stateNode,c,f),Yu(e,f),Ke!==4&&(Ke=2)),!1;var h=Error(l(520),{cause:c});if(h=Kt(h,r),wr===null?wr=[h]:wr.push(h),Ke!==4&&(Ke=2),a===null)return!0;c=Kt(c,r),r=a;do{switch(r.tag){case 3:return r.flags|=65536,e=f&-f,r.lanes|=e,e=dd(r.stateNode,c,e),Yu(r,e),!1;case 1:if(a=r.type,h=r.stateNode,(r.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&($n===null||!$n.has(h))))return r.flags|=65536,f&=-f,r.lanes|=f,f=Cp(f),Xp(f,e,r,c),Yu(r,f),!1}r=r.return}while(r!==null);return!1}var Od=Error(l(461)),lt=!1;function pt(e,a,r,c){a.child=e===null?Em(a,null,r,c):hs(a,e.child,r,c)}function _p(e,a,r,c,f){r=r.render;var h=a.ref;if("ref"in c){var S={};for(var w in c)w!=="ref"&&(S[w]=c[w])}else S=c;return us(a),c=Wu(e,a,r,S,h,f),w=Bu(),e!==null&&!lt?(Hu(e,a,f),Ma(e,a,f)):(Pe&&w&&Tu(a),a.flags|=1,pt(e,a,c,f),a.child)}function Zp(e,a,r,c,f){if(e===null){var h=r.type;return typeof h=="function"&&!wu(h)&&h.defaultProps===void 0&&r.compare===null?(a.tag=15,a.type=h,Ap(e,a,h,c,f)):(e=_i(r.type,null,c,a,a.mode,f),e.ref=a.ref,e.return=a,a.child=e)}if(h=e.child,!vd(e,f)){var S=h.memoizedProps;if(r=r.compare,r=r!==null?r:nr,r(S,c)&&e.ref===a.ref)return Ma(e,a,f)}return a.flags|=1,e=Xa(h,c),e.ref=a.ref,e.return=a,a.child=e}function Ap(e,a,r,c,f){if(e!==null){var h=e.memoizedProps;if(nr(h,c)&&e.ref===a.ref)if(lt=!1,a.pendingProps=c=h,vd(e,f))(e.flags&131072)!==0&&(lt=!0);else return a.lanes=e.lanes,Ma(e,a,f)}return fd(e,a,r,c,f)}function Ep(e,a,r,c){var f=c.children,h=e!==null?e.memoizedState:null;if(e===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((a.flags&128)!==0){if(h=h!==null?h.baseLanes|r:r,e!==null){for(c=a.child=e.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;c=f&~h}else c=0,a.child=null;return qp(e,a,h,r,c)}if((r&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},e!==null&&qi(a,h!==null?h.cachePool:null),h!==null?Ym(a,h):Uu(),Vm(a);else return c=a.lanes=536870912,qp(e,a,h!==null?h.baseLanes|r:r,r,c)}else h!==null?(qi(a,h.cachePool),Ym(a,h),Qn(),a.memoizedState=null):(e!==null&&qi(a,null),Uu(),Qn());return pt(e,a,f,r),a.child}function gr(e,a){return e!==null&&e.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function qp(e,a,r,c,f){var h=Au();return h=h===null?null:{parent:nt._currentValue,pool:h},a.memoizedState={baseLanes:r,cachePool:h},e!==null&&qi(a,null),Uu(),Vm(a),e!==null&&Is(e,a,c,!0),a.childLanes=f,null}function to(e,a){return a=no({mode:a.mode,children:a.children},e.mode),a.ref=e.ref,e.child=a,a.return=e,a}function Mp(e,a,r){return hs(a,e.child,null,r),e=to(a,a.pendingProps),e.flags|=2,qt(a),a.memoizedState=null,e}function O2(e,a,r){var c=a.pendingProps,f=(a.flags&128)!==0;if(a.flags&=-129,e===null){if(Pe){if(c.mode==="hidden")return e=to(a,c),a.lanes=536870912,gr(null,e);if(Lu(a),(e=De)?(e=Kx(e,ta),e=e!==null&&e.data==="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:mn!==null?{id:va,overflow:ya}:null,retryLane:536870912,hydrationErrors:null},r=Qm(e),r.return=a,a.child=r,ht=a,De=null)):e=null,e===null)throw xn(a);return a.lanes=536870912,null}return to(a,c)}var h=e.memoizedState;if(h!==null){var S=h.dehydrated;if(Lu(a),f)if(a.flags&256)a.flags&=-257,a=Mp(e,a,r);else if(a.memoizedState!==null)a.child=e.child,a.flags|=128,a=null;else throw Error(l(558));else if(lt||Is(e,a,r,!1),f=(r&e.childLanes)!==0,lt||f){if(c=Ge,c!==null&&(S=Nh(c,r),S!==0&&S!==h.retryLane))throw h.retryLane=S,rs(e,S),Nt(c,e,S),Od;fo(),a=Mp(e,a,r)}else e=h.treeContext,De=na(S.nextSibling),ht=a,Pe=!0,pn=null,ta=!1,e!==null&&km(a,e),a=to(a,c),a.flags|=4096;return a}return e=Xa(e.child,{mode:c.mode,children:c.children}),e.ref=a.ref,a.child=e,e.return=a,e}function ao(e,a){var r=a.ref;if(r===null)e!==null&&e.ref!==null&&(a.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(l(284));(e===null||e.ref!==r)&&(a.flags|=4194816)}}function fd(e,a,r,c,f){return us(a),r=Wu(e,a,r,c,void 0,f),c=Bu(),e!==null&&!lt?(Hu(e,a,f),Ma(e,a,f)):(Pe&&c&&Tu(a),a.flags|=1,pt(e,a,r,f),a.child)}function Yp(e,a,r,c,f,h){return us(a),a.updateQueue=null,r=Gm(a,c,r,f),Um(e),c=Bu(),e!==null&&!lt?(Hu(e,a,h),Ma(e,a,h)):(Pe&&c&&Tu(a),a.flags|=1,pt(e,a,r,h),a.child)}function Vp(e,a,r,c,f){if(us(a),a.stateNode===null){var h=Ds,S=r.contextType;typeof S=="object"&&S!==null&&(h=mt(S)),h=new r(c,h),a.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=ud,a.stateNode=h,h._reactInternals=a,h=a.stateNode,h.props=c,h.state=a.memoizedState,h.refs={},qu(a),S=r.contextType,h.context=typeof S=="object"&&S!==null?mt(S):Ds,h.state=a.memoizedState,S=r.getDerivedStateFromProps,typeof S=="function"&&(cd(a,r,S,c),h.state=a.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(S=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),S!==h.state&&ud.enqueueReplaceState(h,h.state,null),fr(a,c,h,f),Or(),h.state=a.memoizedState),typeof h.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(e===null){h=a.stateNode;var w=a.memoizedProps,R=ps(r,w);h.props=R;var Y=h.context,H=r.contextType;S=Ds,typeof H=="object"&&H!==null&&(S=mt(H));var K=r.getDerivedStateFromProps;H=typeof K=="function"||typeof h.getSnapshotBeforeUpdate=="function",w=a.pendingProps!==w,H||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(w||Y!==S)&&Tp(a,h,c,S),bn=!1;var V=a.memoizedState;h.state=V,fr(a,c,h,f),Or(),Y=a.memoizedState,w||V!==Y||bn?(typeof K=="function"&&(cd(a,r,K,c),Y=a.memoizedState),(R=bn||$p(a,r,R,c,V,Y,S))?(H||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(a.flags|=4194308)):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=Y),h.props=c,h.state=Y,h.context=S,c=R):(typeof h.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{h=a.stateNode,Mu(e,a),S=a.memoizedProps,H=ps(r,S),h.props=H,K=a.pendingProps,V=h.context,Y=r.contextType,R=Ds,typeof Y=="object"&&Y!==null&&(R=mt(Y)),w=r.getDerivedStateFromProps,(Y=typeof w=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(S!==K||V!==R)&&Tp(a,h,c,R),bn=!1,V=a.memoizedState,h.state=V,fr(a,c,h,f),Or();var L=a.memoizedState;S!==K||V!==L||bn||e!==null&&e.dependencies!==null&&Ai(e.dependencies)?(typeof w=="function"&&(cd(a,r,w,c),L=a.memoizedState),(H=bn||$p(a,r,H,c,V,L,R)||e!==null&&e.dependencies!==null&&Ai(e.dependencies))?(Y||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(c,L,R),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(c,L,R)),typeof h.componentDidUpdate=="function"&&(a.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof h.componentDidUpdate!="function"||S===e.memoizedProps&&V===e.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&V===e.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=L),h.props=c,h.state=L,h.context=R,c=H):(typeof h.componentDidUpdate!="function"||S===e.memoizedProps&&V===e.memoizedState||(a.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||S===e.memoizedProps&&V===e.memoizedState||(a.flags|=1024),c=!1)}return h=c,ao(e,a),c=(a.flags&128)!==0,h||c?(h=a.stateNode,r=c&&typeof r.getDerivedStateFromError!="function"?null:h.render(),a.flags|=1,e!==null&&c?(a.child=hs(a,e.child,null,f),a.child=hs(a,null,r,f)):pt(e,a,r,f),a.memoizedState=h.state,e=a.child):e=Ma(e,a,f),e}function Up(e,a,r,c){return os(),a.flags|=256,pt(e,a,r,c),a.child}var hd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function md(e){return{baseLanes:e,cachePool:Rm()}}function pd(e,a,r){return e=e!==null?e.childLanes&~r:0,a&&(e|=Yt),e}function Gp(e,a,r){var c=a.pendingProps,f=!1,h=(a.flags&128)!==0,S;if((S=h)||(S=e!==null&&e.memoizedState===null?!1:(et.current&2)!==0),S&&(f=!0,a.flags&=-129),S=(a.flags&32)!==0,a.flags&=-33,e===null){if(Pe){if(f?Sn(a):Qn(),(e=De)?(e=Kx(e,ta),e=e!==null&&e.data!=="&"?e:null,e!==null&&(a.memoizedState={dehydrated:e,treeContext:mn!==null?{id:va,overflow:ya}:null,retryLane:536870912,hydrationErrors:null},r=Qm(e),r.return=a,a.child=r,ht=a,De=null)):e=null,e===null)throw xn(a);return Kd(e)?a.lanes=32:a.lanes=536870912,null}var w=c.children;return c=c.fallback,f?(Qn(),f=a.mode,w=no({mode:"hidden",children:w},f),c=is(c,f,r,null),w.return=a,c.return=a,w.sibling=c,a.child=w,c=a.child,c.memoizedState=md(r),c.childLanes=pd(e,S,r),a.memoizedState=hd,gr(null,c)):(Sn(a),xd(a,w))}var R=e.memoizedState;if(R!==null&&(w=R.dehydrated,w!==null)){if(h)a.flags&256?(Sn(a),a.flags&=-257,a=gd(e,a,r)):a.memoizedState!==null?(Qn(),a.child=e.child,a.flags|=128,a=null):(Qn(),w=c.fallback,f=a.mode,c=no({mode:"visible",children:c.children},f),w=is(w,f,r,null),w.flags|=2,c.return=a,w.return=a,c.sibling=w,a.child=c,hs(a,e.child,null,r),c=a.child,c.memoizedState=md(r),c.childLanes=pd(e,S,r),a.memoizedState=hd,a=gr(null,c));else if(Sn(a),Kd(w)){if(S=w.nextSibling&&w.nextSibling.dataset,S)var Y=S.dgst;S=Y,c=Error(l(419)),c.stack="",c.digest=S,rr({value:c,source:null,stack:null}),a=gd(e,a,r)}else if(lt||Is(e,a,r,!1),S=(r&e.childLanes)!==0,lt||S){if(S=Ge,S!==null&&(c=Nh(S,r),c!==0&&c!==R.retryLane))throw R.retryLane=c,rs(e,c),Nt(S,e,c),Od;Fd(w)||fo(),a=gd(e,a,r)}else Fd(w)?(a.flags|=192,a.child=e.child,a=null):(e=R.treeContext,De=na(w.nextSibling),ht=a,Pe=!0,pn=null,ta=!1,e!==null&&km(a,e),a=xd(a,c.children),a.flags|=4096);return a}return f?(Qn(),w=c.fallback,f=a.mode,R=e.child,Y=R.sibling,c=Xa(R,{mode:"hidden",children:c.children}),c.subtreeFlags=R.subtreeFlags&65011712,Y!==null?w=Xa(Y,w):(w=is(w,f,r,null),w.flags|=2),w.return=a,c.return=a,c.sibling=w,a.child=c,gr(null,c),c=a.child,w=e.child.memoizedState,w===null?w=md(r):(f=w.cachePool,f!==null?(R=nt._currentValue,f=f.parent!==R?{parent:R,pool:R}:f):f=Rm(),w={baseLanes:w.baseLanes|r,cachePool:f}),c.memoizedState=w,c.childLanes=pd(e,S,r),a.memoizedState=hd,gr(e.child,c)):(Sn(a),r=e.child,e=r.sibling,r=Xa(r,{mode:"visible",children:c.children}),r.return=a,r.sibling=null,e!==null&&(S=a.deletions,S===null?(a.deletions=[e],a.flags|=16):S.push(e)),a.child=r,a.memoizedState=null,r)}function xd(e,a){return a=no({mode:"visible",children:a},e.mode),a.return=e,e.child=a}function no(e,a){return e=At(22,e,null,a),e.lanes=0,e}function gd(e,a,r){return hs(a,e.child,null,r),e=xd(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function Lp(e,a,r){e.lanes|=a;var c=e.alternate;c!==null&&(c.lanes|=a),Cu(e.return,a,r)}function bd(e,a,r,c,f,h){var S=e.memoizedState;S===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:r,tailMode:f,treeForkCount:h}:(S.isBackwards=a,S.rendering=null,S.renderingStartTime=0,S.last=c,S.tail=r,S.tailMode=f,S.treeForkCount=h)}function Dp(e,a,r){var c=a.pendingProps,f=c.revealOrder,h=c.tail;c=c.children;var S=et.current,w=(S&2)!==0;if(w?(S=S&1|2,a.flags|=128):S&=1,ve(et,S),pt(e,a,c,r),c=Pe?lr:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lp(e,r,a);else if(e.tag===19)Lp(e,r,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break e;for(;e.sibling===null;){if(e.return===null||e.return===a)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(r=a.child,f=null;r!==null;)e=r.alternate,e!==null&&Li(e)===null&&(f=r),r=r.sibling;r=f,r===null?(f=a.child,a.child=null):(f=r.sibling,r.sibling=null),bd(a,!1,f,r,h,c);break;case"backwards":case"unstable_legacy-backwards":for(r=null,f=a.child,a.child=null;f!==null;){if(e=f.alternate,e!==null&&Li(e)===null){a.child=f;break}e=f.sibling,f.sibling=r,r=f,f=e}bd(a,!0,r,null,h,c);break;case"together":bd(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function Ma(e,a,r){if(e!==null&&(a.dependencies=e.dependencies),kn|=a.lanes,(r&a.childLanes)===0)if(e!==null){if(Is(e,a,r,!1),(r&a.childLanes)===0)return null}else return null;if(e!==null&&a.child!==e.child)throw Error(l(153));if(a.child!==null){for(e=a.child,r=Xa(e,e.pendingProps),a.child=r,r.return=a;e.sibling!==null;)e=e.sibling,r=r.sibling=Xa(e,e.pendingProps),r.return=a;r.sibling=null}return a.child}function vd(e,a){return(e.lanes&a)!==0?!0:(e=e.dependencies,!!(e!==null&&Ai(e)))}function f2(e,a,r){switch(a.tag){case 3:Ot(a,a.stateNode.containerInfo),gn(a,nt,e.memoizedState.cache),os();break;case 27:case 5:at(a);break;case 4:Ot(a,a.stateNode.containerInfo);break;case 10:gn(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Lu(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(Sn(a),a.flags|=128,null):(r&a.child.childLanes)!==0?Gp(e,a,r):(Sn(a),e=Ma(e,a,r),e!==null?e.sibling:null);Sn(a);break;case 19:var f=(e.flags&128)!==0;if(c=(r&a.childLanes)!==0,c||(Is(e,a,r,!1),c=(r&a.childLanes)!==0),f){if(c)return Dp(e,a,r);a.flags|=128}if(f=a.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),ve(et,et.current),c)break;return null;case 22:return a.lanes=0,Ep(e,a,r,a.pendingProps);case 24:gn(a,nt,e.memoizedState.cache)}return Ma(e,a,r)}function Wp(e,a,r){if(e!==null)if(e.memoizedProps!==a.pendingProps)lt=!0;else{if(!vd(e,r)&&(a.flags&128)===0)return lt=!1,f2(e,a,r);lt=(e.flags&131072)!==0}else lt=!1,Pe&&(a.flags&1048576)!==0&&wm(a,lr,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(e=Os(a.elementType),a.type=e,typeof e=="function")wu(e)?(c=ps(e,c),a.tag=1,a=Vp(null,a,e,c,r)):(a.tag=0,a=fd(null,a,e,c,r));else{if(e!=null){var f=e.$$typeof;if(f===A){a.tag=11,a=_p(null,a,e,c,r);break e}else if(f===X){a.tag=14,a=Zp(null,a,e,c,r);break e}}throw a=ie(e)||e,Error(l(306,a,""))}}return a;case 0:return fd(e,a,a.type,a.pendingProps,r);case 1:return c=a.type,f=ps(c,a.pendingProps),Vp(e,a,c,f,r);case 3:e:{if(Ot(a,a.stateNode.containerInfo),e===null)throw Error(l(387));c=a.pendingProps;var h=a.memoizedState;f=h.element,Mu(e,a),fr(a,c,null,r);var S=a.memoizedState;if(c=S.cache,gn(a,nt,c),c!==h.cache&&Xu(a,[nt],r,!0),Or(),c=S.element,h.isDehydrated)if(h={element:c,isDehydrated:!1,cache:S.cache},a.updateQueue.baseState=h,a.memoizedState=h,a.flags&256){a=Up(e,a,c,r);break e}else if(c!==f){f=Kt(Error(l(424)),a),rr(f),a=Up(e,a,c,r);break e}else{switch(e=a.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(De=na(e.firstChild),ht=a,Pe=!0,pn=null,ta=!0,r=Em(a,null,c,r),a.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(os(),c===f){a=Ma(e,a,r);break e}pt(e,a,c,r)}a=a.child}return a;case 26:return ao(e,a),e===null?(r=sg(a.type,null,a.pendingProps,null))?a.memoizedState=r:Pe||(r=a.type,e=a.pendingProps,c=vo(oe.current).createElement(r),c[ft]=a,c[jt]=e,xt(c,r,e),ut(c),a.stateNode=c):a.memoizedState=sg(a.type,e.memoizedProps,a.pendingProps,e.memoizedState),null;case 27:return at(a),e===null&&Pe&&(c=a.stateNode=tg(a.type,a.pendingProps,oe.current),ht=a,ta=!0,f=De,zn(a.type)?(Jd=f,De=na(c.firstChild)):De=f),pt(e,a,a.pendingProps.children,r),ao(e,a),e===null&&(a.flags|=4194304),a.child;case 5:return e===null&&Pe&&((f=c=De)&&(c=U2(c,a.type,a.pendingProps,ta),c!==null?(a.stateNode=c,ht=a,De=na(c.firstChild),ta=!1,f=!0):f=!1),f||xn(a)),at(a),f=a.type,h=a.pendingProps,S=e!==null?e.memoizedProps:null,c=h.children,Bd(f,h)?c=null:S!==null&&Bd(f,S)&&(a.flags|=32),a.memoizedState!==null&&(f=Wu(e,a,s2,null,null,r),Cr._currentValue=f),ao(e,a),pt(e,a,c,r),a.child;case 6:return e===null&&Pe&&((e=r=De)&&(r=G2(r,a.pendingProps,ta),r!==null?(a.stateNode=r,ht=a,De=null,e=!0):e=!1),e||xn(a)),null;case 13:return Gp(e,a,r);case 4:return Ot(a,a.stateNode.containerInfo),c=a.pendingProps,e===null?a.child=hs(a,null,c,r):pt(e,a,c,r),a.child;case 11:return _p(e,a,a.type,a.pendingProps,r);case 7:return pt(e,a,a.pendingProps,r),a.child;case 8:return pt(e,a,a.pendingProps.children,r),a.child;case 12:return pt(e,a,a.pendingProps.children,r),a.child;case 10:return c=a.pendingProps,gn(a,a.type,c.value),pt(e,a,c.children,r),a.child;case 9:return f=a.type._context,c=a.pendingProps.children,us(a),f=mt(f),c=c(f),a.flags|=1,pt(e,a,c,r),a.child;case 14:return Zp(e,a,a.type,a.pendingProps,r);case 15:return Ap(e,a,a.type,a.pendingProps,r);case 19:return Dp(e,a,r);case 31:return O2(e,a,r);case 22:return Ep(e,a,r,a.pendingProps);case 24:return us(a),c=mt(nt),e===null?(f=Au(),f===null&&(f=Ge,h=_u(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=r),f=h),a.memoizedState={parent:c,cache:f},qu(a),gn(a,nt,f)):((e.lanes&r)!==0&&(Mu(e,a),fr(a,null,null,r),Or()),f=e.memoizedState,h=a.memoizedState,f.parent!==c?(f={parent:c,cache:c},a.memoizedState=f,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=f),gn(a,nt,c)):(c=h.cache,gn(a,nt,c),c!==f.cache&&Xu(a,[nt],r,!0))),pt(e,a,a.pendingProps.children,r),a.child;case 29:throw a.pendingProps}throw Error(l(156,a.tag))}function Ya(e){e.flags|=4}function yd(e,a,r,c,f){if((a=(e.mode&32)!==0)&&(a=!1),a){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(vx())e.flags|=8192;else throw fs=Yi,Eu}else e.flags&=-16777217}function Bp(e,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!cg(a))if(vx())e.flags|=8192;else throw fs=Yi,Eu}function so(e,a){a!==null&&(e.flags|=4),e.flags&16384&&(a=e.tag!==22?$h():536870912,e.lanes|=a,ol|=a)}function br(e,a){if(!Pe)switch(e.tailMode){case"hidden":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var c=null;r!==null;)r.alternate!==null&&(c=r),r=r.sibling;c===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:c.sibling=null}}function We(e){var a=e.alternate!==null&&e.alternate.child===e.child,r=0,c=0;if(a)for(var f=e.child;f!==null;)r|=f.lanes|f.childLanes,c|=f.subtreeFlags&65011712,c|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)r|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=c,e.childLanes=r,a}function h2(e,a,r){var c=a.pendingProps;switch(Pu(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(a),null;case 1:return We(a),null;case 3:return r=a.stateNode,c=null,e!==null&&(c=e.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),Aa(nt),_e(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Hs(a)?Ya(a):e===null||e.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,zu())),We(a),null;case 26:var f=a.type,h=a.memoizedState;return e===null?(Ya(a),h!==null?(We(a),Bp(a,h)):(We(a),yd(a,f,null,c,r))):h?h!==e.memoizedState?(Ya(a),We(a),Bp(a,h)):(We(a),a.flags&=-16777217):(e=e.memoizedProps,e!==c&&Ya(a),We(a),yd(a,f,e,c,r)),null;case 27:if(bt(a),r=oe.current,f=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==c&&Ya(a);else{if(!c){if(a.stateNode===null)throw Error(l(166));return We(a),null}e=Xe.current,Hs(a)?$m(a):(e=tg(f,c,r),a.stateNode=e,Ya(a))}return We(a),null;case 5:if(bt(a),f=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==c&&Ya(a);else{if(!c){if(a.stateNode===null)throw Error(l(166));return We(a),null}if(h=Xe.current,Hs(a))$m(a);else{var S=vo(oe.current);switch(h){case 1:h=S.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=S.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=S.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=S.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=S.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof c.is=="string"?S.createElement("select",{is:c.is}):S.createElement("select"),c.multiple?h.multiple=!0:c.size&&(h.size=c.size);break;default:h=typeof c.is=="string"?S.createElement(f,{is:c.is}):S.createElement(f)}}h[ft]=a,h[jt]=c;e:for(S=a.child;S!==null;){if(S.tag===5||S.tag===6)h.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===a)break e;for(;S.sibling===null;){if(S.return===null||S.return===a)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}a.stateNode=h;e:switch(xt(h,f,c),f){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Ya(a)}}return We(a),yd(a,a.type,e===null?null:e.memoizedProps,a.pendingProps,r),null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==c&&Ya(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(l(166));if(e=oe.current,Hs(a)){if(e=a.stateNode,r=a.memoizedProps,c=null,f=ht,f!==null)switch(f.tag){case 27:case 5:c=f.memoizedProps}e[ft]=a,e=!!(e.nodeValue===r||c!==null&&c.suppressHydrationWarning===!0||Gx(e.nodeValue,r)),e||xn(a,!0)}else e=vo(e).createTextNode(c),e[ft]=a,a.stateNode=e}return We(a),null;case 31:if(r=a.memoizedState,e===null||e.memoizedState!==null){if(c=Hs(a),r!==null){if(e===null){if(!c)throw Error(l(318));if(e=a.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[ft]=a}else os(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;We(a),e=!1}else r=zu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return a.flags&256?(qt(a),a):(qt(a),null);if((a.flags&128)!==0)throw Error(l(558))}return We(a),null;case 13:if(c=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=Hs(a),c!==null&&c.dehydrated!==null){if(e===null){if(!f)throw Error(l(318));if(f=a.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(l(317));f[ft]=a}else os(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;We(a),f=!1}else f=zu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return a.flags&256?(qt(a),a):(qt(a),null)}return qt(a),(a.flags&128)!==0?(a.lanes=r,a):(r=c!==null,e=e!==null&&e.memoizedState!==null,r&&(c=a.child,f=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(f=c.alternate.memoizedState.cachePool.pool),h=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(h=c.memoizedState.cachePool.pool),h!==f&&(c.flags|=2048)),r!==e&&r&&(a.child.flags|=8192),so(a,a.updateQueue),We(a),null);case 4:return _e(),e===null&&Ud(a.stateNode.containerInfo),We(a),null;case 10:return Aa(a.type),We(a),null;case 19:if(Se(et),c=a.memoizedState,c===null)return We(a),null;if(f=(a.flags&128)!==0,h=c.rendering,h===null)if(f)br(c,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(h=Li(e),h!==null){for(a.flags|=128,br(c,!1),e=h.updateQueue,a.updateQueue=e,so(a,e),a.subtreeFlags=0,e=r,r=a.child;r!==null;)Sm(r,e),r=r.sibling;return ve(et,et.current&1|2),Pe&&_a(a,c.treeForkCount),a.child}e=e.sibling}c.tail!==null&&Ct()>co&&(a.flags|=128,f=!0,br(c,!1),a.lanes=4194304)}else{if(!f)if(e=Li(h),e!==null){if(a.flags|=128,f=!0,e=e.updateQueue,a.updateQueue=e,so(a,e),br(c,!0),c.tail===null&&c.tailMode==="hidden"&&!h.alternate&&!Pe)return We(a),null}else 2*Ct()-c.renderingStartTime>co&&r!==536870912&&(a.flags|=128,f=!0,br(c,!1),a.lanes=4194304);c.isBackwards?(h.sibling=a.child,a.child=h):(e=c.last,e!==null?e.sibling=h:a.child=h,c.last=h)}return c.tail!==null?(e=c.tail,c.rendering=e,c.tail=e.sibling,c.renderingStartTime=Ct(),e.sibling=null,r=et.current,ve(et,f?r&1|2:r&1),Pe&&_a(a,c.treeForkCount),e):(We(a),null);case 22:case 23:return qt(a),Gu(),c=a.memoizedState!==null,e!==null?e.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(r&536870912)!==0&&(a.flags&128)===0&&(We(a),a.subtreeFlags&6&&(a.flags|=8192)):We(a),r=a.updateQueue,r!==null&&so(a,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==r&&(a.flags|=2048),e!==null&&Se(ds),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),a.memoizedState.cache!==r&&(a.flags|=2048),Aa(nt),We(a),null;case 25:return null;case 30:return null}throw Error(l(156,a.tag))}function m2(e,a){switch(Pu(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return Aa(nt),_e(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return bt(a),null;case 31:if(a.memoizedState!==null){if(qt(a),a.alternate===null)throw Error(l(340));os()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 13:if(qt(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(l(340));os()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return Se(et),null;case 4:return _e(),null;case 10:return Aa(a.type),null;case 22:case 23:return qt(a),Gu(),e!==null&&Se(ds),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 24:return Aa(nt),null;case 25:return null;default:return null}}function Hp(e,a){switch(Pu(a),a.tag){case 3:Aa(nt),_e();break;case 26:case 27:case 5:bt(a);break;case 4:_e();break;case 31:a.memoizedState!==null&&qt(a);break;case 13:qt(a);break;case 19:Se(et);break;case 10:Aa(a.type);break;case 22:case 23:qt(a),Gu(),e!==null&&Se(ds);break;case 24:Aa(nt)}}function vr(e,a){try{var r=a.updateQueue,c=r!==null?r.lastEffect:null;if(c!==null){var f=c.next;r=f;do{if((r.tag&e)===e){c=void 0;var h=r.create,S=r.inst;c=h(),S.destroy=c}r=r.next}while(r!==f)}}catch(w){Me(a,a.return,w)}}function jn(e,a,r){try{var c=a.updateQueue,f=c!==null?c.lastEffect:null;if(f!==null){var h=f.next;c=h;do{if((c.tag&e)===e){var S=c.inst,w=S.destroy;if(w!==void 0){S.destroy=void 0,f=a;var R=r,Y=w;try{Y()}catch(H){Me(f,R,H)}}}c=c.next}while(c!==h)}}catch(H){Me(a,a.return,H)}}function Ip(e){var a=e.updateQueue;if(a!==null){var r=e.stateNode;try{Mm(a,r)}catch(c){Me(e,e.return,c)}}}function Fp(e,a,r){r.props=ps(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(c){Me(e,a,c)}}function yr(e,a){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var c=e.stateNode;break;case 30:c=e.stateNode;break;default:c=e.stateNode}typeof r=="function"?e.refCleanup=r(c):r.current=c}}catch(f){Me(e,a,f)}}function Sa(e,a){var r=e.ref,c=e.refCleanup;if(r!==null)if(typeof c=="function")try{c()}catch(f){Me(e,a,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(f){Me(e,a,f)}else r.current=null}function Kp(e){var a=e.type,r=e.memoizedProps,c=e.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":r.autoFocus&&c.focus();break e;case"img":r.src?c.src=r.src:r.srcSet&&(c.srcset=r.srcSet)}}catch(f){Me(e,e.return,f)}}function Sd(e,a,r){try{var c=e.stateNode;A2(c,e.type,r,a),c[jt]=a}catch(f){Me(e,e.return,f)}}function Jp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&zn(e.type)||e.tag===4}function Qd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&zn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jd(e,a,r){var c=e.tag;if(c===5||c===6)e=e.stateNode,a?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,a):(a=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,a.appendChild(e),r=r._reactRootContainer,r!=null||a.onclick!==null||(a.onclick=Ra));else if(c!==4&&(c===27&&zn(e.type)&&(r=e.stateNode,a=null),e=e.child,e!==null))for(jd(e,a,r),e=e.sibling;e!==null;)jd(e,a,r),e=e.sibling}function lo(e,a,r){var c=e.tag;if(c===5||c===6)e=e.stateNode,a?r.insertBefore(e,a):r.appendChild(e);else if(c!==4&&(c===27&&zn(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(lo(e,a,r),e=e.sibling;e!==null;)lo(e,a,r),e=e.sibling}function ex(e){var a=e.stateNode,r=e.memoizedProps;try{for(var c=e.type,f=a.attributes;f.length;)a.removeAttributeNode(f[0]);xt(a,c,r),a[ft]=e,a[jt]=r}catch(h){Me(e,e.return,h)}}var Va=!1,rt=!1,wd=!1,tx=typeof WeakSet=="function"?WeakSet:Set,dt=null;function p2(e,a){if(e=e.containerInfo,Dd=$o,e=fm(e),gu(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var c=r.getSelection&&r.getSelection();if(c&&c.rangeCount!==0){r=c.anchorNode;var f=c.anchorOffset,h=c.focusNode;c=c.focusOffset;try{r.nodeType,h.nodeType}catch{r=null;break e}var S=0,w=-1,R=-1,Y=0,H=0,K=e,V=null;t:for(;;){for(var L;K!==r||f!==0&&K.nodeType!==3||(w=S+f),K!==h||c!==0&&K.nodeType!==3||(R=S+c),K.nodeType===3&&(S+=K.nodeValue.length),(L=K.firstChild)!==null;)V=K,K=L;for(;;){if(K===e)break t;if(V===r&&++Y===f&&(w=S),V===h&&++H===c&&(R=S),(L=K.nextSibling)!==null)break;K=V,V=K.parentNode}K=L}r=w===-1||R===-1?null:{start:w,end:R}}else r=null}r=r||{start:0,end:0}}else r=null;for(Wd={focusedElem:e,selectionRange:r},$o=!1,dt=a;dt!==null;)if(a=dt,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,dt=e;else for(;dt!==null;){switch(a=dt,h=a.alternate,e=a.flags,a.tag){case 0:if((e&4)!==0&&(e=a.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)f=e[r],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,r=a,f=h.memoizedProps,h=h.memoizedState,c=r.stateNode;try{var ce=ps(r.type,f);e=c.getSnapshotBeforeUpdate(ce,h),c.__reactInternalSnapshotBeforeUpdate=e}catch(ge){Me(r,r.return,ge)}}break;case 3:if((e&1024)!==0){if(e=a.stateNode.containerInfo,r=e.nodeType,r===9)Id(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Id(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=a.sibling,e!==null){e.return=a.return,dt=e;break}dt=a.return}}function ax(e,a,r){var c=r.flags;switch(r.tag){case 0:case 11:case 15:Ga(e,r),c&4&&vr(5,r);break;case 1:if(Ga(e,r),c&4)if(e=r.stateNode,a===null)try{e.componentDidMount()}catch(S){Me(r,r.return,S)}else{var f=ps(r.type,a.memoizedProps);a=a.memoizedState;try{e.componentDidUpdate(f,a,e.__reactInternalSnapshotBeforeUpdate)}catch(S){Me(r,r.return,S)}}c&64&&Ip(r),c&512&&yr(r,r.return);break;case 3:if(Ga(e,r),c&64&&(e=r.updateQueue,e!==null)){if(a=null,r.child!==null)switch(r.child.tag){case 27:case 5:a=r.child.stateNode;break;case 1:a=r.child.stateNode}try{Mm(e,a)}catch(S){Me(r,r.return,S)}}break;case 27:a===null&&c&4&&ex(r);case 26:case 5:Ga(e,r),a===null&&c&4&&Kp(r),c&512&&yr(r,r.return);break;case 12:Ga(e,r);break;case 31:Ga(e,r),c&4&&lx(e,r);break;case 13:Ga(e,r),c&4&&rx(e,r),c&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=w2.bind(null,r),L2(e,r))));break;case 22:if(c=r.memoizedState!==null||Va,!c){a=a!==null&&a.memoizedState!==null||rt,f=Va;var h=rt;Va=c,(rt=a)&&!h?La(e,r,(r.subtreeFlags&8772)!==0):Ga(e,r),Va=f,rt=h}break;case 30:break;default:Ga(e,r)}}function nx(e){var a=e.alternate;a!==null&&(e.alternate=null,nx(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&tu(a)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var He=null,kt=!1;function Ua(e,a,r){for(r=r.child;r!==null;)sx(e,a,r),r=r.sibling}function sx(e,a,r){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(Ll,r)}catch{}switch(r.tag){case 26:rt||Sa(r,a),Ua(e,a,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:rt||Sa(r,a);var c=He,f=kt;zn(r.type)&&(He=r.stateNode,kt=!1),Ua(e,a,r),Nr(r.stateNode),He=c,kt=f;break;case 5:rt||Sa(r,a);case 6:if(c=He,f=kt,He=null,Ua(e,a,r),He=c,kt=f,He!==null)if(kt)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(r.stateNode)}catch(h){Me(r,a,h)}else try{He.removeChild(r.stateNode)}catch(h){Me(r,a,h)}break;case 18:He!==null&&(kt?(e=He,Ix(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),pl(e)):Ix(He,r.stateNode));break;case 4:c=He,f=kt,He=r.stateNode.containerInfo,kt=!0,Ua(e,a,r),He=c,kt=f;break;case 0:case 11:case 14:case 15:jn(2,r,a),rt||jn(4,r,a),Ua(e,a,r);break;case 1:rt||(Sa(r,a),c=r.stateNode,typeof c.componentWillUnmount=="function"&&Fp(r,a,c)),Ua(e,a,r);break;case 21:Ua(e,a,r);break;case 22:rt=(c=rt)||r.memoizedState!==null,Ua(e,a,r),rt=c;break;default:Ua(e,a,r)}}function lx(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{pl(e)}catch(r){Me(a,a.return,r)}}}function rx(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{pl(e)}catch(r){Me(a,a.return,r)}}function x2(e){switch(e.tag){case 31:case 13:case 19:var a=e.stateNode;return a===null&&(a=e.stateNode=new tx),a;case 22:return e=e.stateNode,a=e._retryCache,a===null&&(a=e._retryCache=new tx),a;default:throw Error(l(435,e.tag))}}function ro(e,a){var r=x2(e);a.forEach(function(c){if(!r.has(c)){r.add(c);var f=k2.bind(null,e,c);c.then(f,f)}})}function $t(e,a){var r=a.deletions;if(r!==null)for(var c=0;c<r.length;c++){var f=r[c],h=e,S=a,w=S;e:for(;w!==null;){switch(w.tag){case 27:if(zn(w.type)){He=w.stateNode,kt=!1;break e}break;case 5:He=w.stateNode,kt=!1;break e;case 3:case 4:He=w.stateNode.containerInfo,kt=!0;break e}w=w.return}if(He===null)throw Error(l(160));sx(h,S,f),He=null,kt=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)ix(a,e),a=a.sibling}var da=null;function ix(e,a){var r=e.alternate,c=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:$t(a,e),Tt(e),c&4&&(jn(3,e,e.return),vr(3,e),jn(5,e,e.return));break;case 1:$t(a,e),Tt(e),c&512&&(rt||r===null||Sa(r,r.return)),c&64&&Va&&(e=e.updateQueue,e!==null&&(c=e.callbacks,c!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?c:r.concat(c))));break;case 26:var f=da;if($t(a,e),Tt(e),c&512&&(rt||r===null||Sa(r,r.return)),c&4){var h=r!==null?r.memoizedState:null;if(c=e.memoizedState,r===null)if(c===null)if(e.stateNode===null){e:{c=e.type,r=e.memoizedProps,f=f.ownerDocument||f;t:switch(c){case"title":h=f.getElementsByTagName("title")[0],(!h||h[Bl]||h[ft]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(c),f.head.insertBefore(h,f.querySelector("head > title"))),xt(h,c,r),h[ft]=e,ut(h),c=h;break e;case"link":var S=ig("link","href",f).get(c+(r.href||""));if(S){for(var w=0;w<S.length;w++)if(h=S[w],h.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&h.getAttribute("rel")===(r.rel==null?null:r.rel)&&h.getAttribute("title")===(r.title==null?null:r.title)&&h.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){S.splice(w,1);break t}}h=f.createElement(c),xt(h,c,r),f.head.appendChild(h);break;case"meta":if(S=ig("meta","content",f).get(c+(r.content||""))){for(w=0;w<S.length;w++)if(h=S[w],h.getAttribute("content")===(r.content==null?null:""+r.content)&&h.getAttribute("name")===(r.name==null?null:r.name)&&h.getAttribute("property")===(r.property==null?null:r.property)&&h.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&h.getAttribute("charset")===(r.charSet==null?null:r.charSet)){S.splice(w,1);break t}}h=f.createElement(c),xt(h,c,r),f.head.appendChild(h);break;default:throw Error(l(468,c))}h[ft]=e,ut(h),c=h}e.stateNode=c}else og(f,e.type,e.stateNode);else e.stateNode=rg(f,c,e.memoizedProps);else h!==c?(h===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):h.count--,c===null?og(f,e.type,e.stateNode):rg(f,c,e.memoizedProps)):c===null&&e.stateNode!==null&&Sd(e,e.memoizedProps,r.memoizedProps)}break;case 27:$t(a,e),Tt(e),c&512&&(rt||r===null||Sa(r,r.return)),r!==null&&c&4&&Sd(e,e.memoizedProps,r.memoizedProps);break;case 5:if($t(a,e),Tt(e),c&512&&(rt||r===null||Sa(r,r.return)),e.flags&32){f=e.stateNode;try{qs(f,"")}catch(ce){Me(e,e.return,ce)}}c&4&&e.stateNode!=null&&(f=e.memoizedProps,Sd(e,f,r!==null?r.memoizedProps:f)),c&1024&&(wd=!0);break;case 6:if($t(a,e),Tt(e),c&4){if(e.stateNode===null)throw Error(l(162));c=e.memoizedProps,r=e.stateNode;try{r.nodeValue=c}catch(ce){Me(e,e.return,ce)}}break;case 3:if(Qo=null,f=da,da=yo(a.containerInfo),$t(a,e),da=f,Tt(e),c&4&&r!==null&&r.memoizedState.isDehydrated)try{pl(a.containerInfo)}catch(ce){Me(e,e.return,ce)}wd&&(wd=!1,ox(e));break;case 4:c=da,da=yo(e.stateNode.containerInfo),$t(a,e),Tt(e),da=c;break;case 12:$t(a,e),Tt(e);break;case 31:$t(a,e),Tt(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,ro(e,c)));break;case 13:$t(a,e),Tt(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(oo=Ct()),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,ro(e,c)));break;case 22:f=e.memoizedState!==null;var R=r!==null&&r.memoizedState!==null,Y=Va,H=rt;if(Va=Y||f,rt=H||R,$t(a,e),rt=H,Va=Y,Tt(e),c&8192)e:for(a=e.stateNode,a._visibility=f?a._visibility&-2:a._visibility|1,f&&(r===null||R||Va||rt||xs(e)),r=null,a=e;;){if(a.tag===5||a.tag===26){if(r===null){R=r=a;try{if(h=R.stateNode,f)S=h.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{w=R.stateNode;var K=R.memoizedProps.style,V=K!=null&&K.hasOwnProperty("display")?K.display:null;w.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(ce){Me(R,R.return,ce)}}}else if(a.tag===6){if(r===null){R=a;try{R.stateNode.nodeValue=f?"":R.memoizedProps}catch(ce){Me(R,R.return,ce)}}}else if(a.tag===18){if(r===null){R=a;try{var L=R.stateNode;f?Fx(L,!0):Fx(R.stateNode,!1)}catch(ce){Me(R,R.return,ce)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===e)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break e;for(;a.sibling===null;){if(a.return===null||a.return===e)break e;r===a&&(r=null),a=a.return}r===a&&(r=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=e.updateQueue,c!==null&&(r=c.retryQueue,r!==null&&(c.retryQueue=null,ro(e,r))));break;case 19:$t(a,e),Tt(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,ro(e,c)));break;case 30:break;case 21:break;default:$t(a,e),Tt(e)}}function Tt(e){var a=e.flags;if(a&2){try{for(var r,c=e.return;c!==null;){if(Jp(c)){r=c;break}c=c.return}if(r==null)throw Error(l(160));switch(r.tag){case 27:var f=r.stateNode,h=Qd(e);lo(e,h,f);break;case 5:var S=r.stateNode;r.flags&32&&(qs(S,""),r.flags&=-33);var w=Qd(e);lo(e,w,S);break;case 3:case 4:var R=r.stateNode.containerInfo,Y=Qd(e);jd(e,Y,R);break;default:throw Error(l(161))}}catch(H){Me(e,e.return,H)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function ox(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var a=e;ox(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),e=e.sibling}}function Ga(e,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)ax(e,a.alternate,a),a=a.sibling}function xs(e){for(e=e.child;e!==null;){var a=e;switch(a.tag){case 0:case 11:case 14:case 15:jn(4,a,a.return),xs(a);break;case 1:Sa(a,a.return);var r=a.stateNode;typeof r.componentWillUnmount=="function"&&Fp(a,a.return,r),xs(a);break;case 27:Nr(a.stateNode);case 26:case 5:Sa(a,a.return),xs(a);break;case 22:a.memoizedState===null&&xs(a);break;case 30:xs(a);break;default:xs(a)}e=e.sibling}}function La(e,a,r){for(r=r&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,f=e,h=a,S=h.flags;switch(h.tag){case 0:case 11:case 15:La(f,h,r),vr(4,h);break;case 1:if(La(f,h,r),c=h,f=c.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(Y){Me(c,c.return,Y)}if(c=h,f=c.updateQueue,f!==null){var w=c.stateNode;try{var R=f.shared.hiddenCallbacks;if(R!==null)for(f.shared.hiddenCallbacks=null,f=0;f<R.length;f++)qm(R[f],w)}catch(Y){Me(c,c.return,Y)}}r&&S&64&&Ip(h),yr(h,h.return);break;case 27:ex(h);case 26:case 5:La(f,h,r),r&&c===null&&S&4&&Kp(h),yr(h,h.return);break;case 12:La(f,h,r);break;case 31:La(f,h,r),r&&S&4&&lx(f,h);break;case 13:La(f,h,r),r&&S&4&&rx(f,h);break;case 22:h.memoizedState===null&&La(f,h,r),yr(h,h.return);break;case 30:break;default:La(f,h,r)}a=a.sibling}}function kd(e,a){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(e=a.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&ir(r))}function $d(e,a){e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&ir(e))}function Oa(e,a,r,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)cx(e,a,r,c),a=a.sibling}function cx(e,a,r,c){var f=a.flags;switch(a.tag){case 0:case 11:case 15:Oa(e,a,r,c),f&2048&&vr(9,a);break;case 1:Oa(e,a,r,c);break;case 3:Oa(e,a,r,c),f&2048&&(e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&ir(e)));break;case 12:if(f&2048){Oa(e,a,r,c),e=a.stateNode;try{var h=a.memoizedProps,S=h.id,w=h.onPostCommit;typeof w=="function"&&w(S,a.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){Me(a,a.return,R)}}else Oa(e,a,r,c);break;case 31:Oa(e,a,r,c);break;case 13:Oa(e,a,r,c);break;case 23:break;case 22:h=a.stateNode,S=a.alternate,a.memoizedState!==null?h._visibility&2?Oa(e,a,r,c):Sr(e,a):h._visibility&2?Oa(e,a,r,c):(h._visibility|=2,ll(e,a,r,c,(a.subtreeFlags&10256)!==0||!1)),f&2048&&kd(S,a);break;case 24:Oa(e,a,r,c),f&2048&&$d(a.alternate,a);break;default:Oa(e,a,r,c)}}function ll(e,a,r,c,f){for(f=f&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var h=e,S=a,w=r,R=c,Y=S.flags;switch(S.tag){case 0:case 11:case 15:ll(h,S,w,R,f),vr(8,S);break;case 23:break;case 22:var H=S.stateNode;S.memoizedState!==null?H._visibility&2?ll(h,S,w,R,f):Sr(h,S):(H._visibility|=2,ll(h,S,w,R,f)),f&&Y&2048&&kd(S.alternate,S);break;case 24:ll(h,S,w,R,f),f&&Y&2048&&$d(S.alternate,S);break;default:ll(h,S,w,R,f)}a=a.sibling}}function Sr(e,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var r=e,c=a,f=c.flags;switch(c.tag){case 22:Sr(r,c),f&2048&&kd(c.alternate,c);break;case 24:Sr(r,c),f&2048&&$d(c.alternate,c);break;default:Sr(r,c)}a=a.sibling}}var Qr=8192;function rl(e,a,r){if(e.subtreeFlags&Qr)for(e=e.child;e!==null;)ux(e,a,r),e=e.sibling}function ux(e,a,r){switch(e.tag){case 26:rl(e,a,r),e.flags&Qr&&e.memoizedState!==null&&nj(r,da,e.memoizedState,e.memoizedProps);break;case 5:rl(e,a,r);break;case 3:case 4:var c=da;da=yo(e.stateNode.containerInfo),rl(e,a,r),da=c;break;case 22:e.memoizedState===null&&(c=e.alternate,c!==null&&c.memoizedState!==null?(c=Qr,Qr=16777216,rl(e,a,r),Qr=c):rl(e,a,r));break;default:rl(e,a,r)}}function dx(e){var a=e.alternate;if(a!==null&&(e=a.child,e!==null)){a.child=null;do a=e.sibling,e.sibling=null,e=a;while(e!==null)}}function jr(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var r=0;r<a.length;r++){var c=a[r];dt=c,fx(c,e)}dx(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ox(e),e=e.sibling}function Ox(e){switch(e.tag){case 0:case 11:case 15:jr(e),e.flags&2048&&jn(9,e,e.return);break;case 3:jr(e);break;case 12:jr(e);break;case 22:var a=e.stateNode;e.memoizedState!==null&&a._visibility&2&&(e.return===null||e.return.tag!==13)?(a._visibility&=-3,io(e)):jr(e);break;default:jr(e)}}function io(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var r=0;r<a.length;r++){var c=a[r];dt=c,fx(c,e)}dx(e)}for(e=e.child;e!==null;){switch(a=e,a.tag){case 0:case 11:case 15:jn(8,a,a.return),io(a);break;case 22:r=a.stateNode,r._visibility&2&&(r._visibility&=-3,io(a));break;default:io(a)}e=e.sibling}}function fx(e,a){for(;dt!==null;){var r=dt;switch(r.tag){case 0:case 11:case 15:jn(8,r,a);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var c=r.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:ir(r.memoizedState.cache)}if(c=r.child,c!==null)c.return=r,dt=c;else e:for(r=e;dt!==null;){c=dt;var f=c.sibling,h=c.return;if(nx(c),c===r){dt=null;break e}if(f!==null){f.return=h,dt=f;break e}dt=h}}}var g2={getCacheForType:function(e){var a=mt(nt),r=a.data.get(e);return r===void 0&&(r=e(),a.data.set(e,r)),r},cacheSignal:function(){return mt(nt).controller.signal}},b2=typeof WeakMap=="function"?WeakMap:Map,Ze=0,Ge=null,we=null,$e=0,qe=0,Mt=null,wn=!1,il=!1,Td=!1,Da=0,Ke=0,kn=0,gs=0,Pd=0,Yt=0,ol=0,wr=null,Pt=null,Nd=!1,oo=0,hx=0,co=1/0,uo=null,$n=null,ot=0,Tn=null,cl=null,Wa=0,zd=0,Rd=null,mx=null,kr=0,Cd=null;function Vt(){return(Ze&2)!==0&&$e!==0?$e&-$e:z.T!==null?qd():zh()}function px(){if(Yt===0)if(($e&536870912)===0||Pe){var e=gi;gi<<=1,(gi&3932160)===0&&(gi=262144),Yt=e}else Yt=536870912;return e=Et.current,e!==null&&(e.flags|=32),Yt}function Nt(e,a,r){(e===Ge&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(ul(e,0),Pn(e,$e,Yt,!1)),Wl(e,r),((Ze&2)===0||e!==Ge)&&(e===Ge&&((Ze&2)===0&&(gs|=r),Ke===4&&Pn(e,$e,Yt,!1)),Qa(e))}function xx(e,a,r){if((Ze&6)!==0)throw Error(l(327));var c=!r&&(a&127)===0&&(a&e.expiredLanes)===0||Dl(e,a),f=c?S2(e,a):_d(e,a,!0),h=c;do{if(f===0){il&&!c&&Pn(e,a,0,!1);break}else{if(r=e.current.alternate,h&&!v2(r)){f=_d(e,a,!1),h=!1;continue}if(f===2){if(h=a,e.errorRecoveryDisabledLanes&h)var S=0;else S=e.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){a=S;e:{var w=e;f=wr;var R=w.current.memoizedState.isDehydrated;if(R&&(ul(w,S).flags|=256),S=_d(w,S,!1),S!==2){if(Td&&!R){w.errorRecoveryDisabledLanes|=h,gs|=h,f=4;break e}h=Pt,Pt=f,h!==null&&(Pt===null?Pt=h:Pt.push.apply(Pt,h))}f=S}if(h=!1,f!==2)continue}}if(f===1){ul(e,0),Pn(e,a,0,!0);break}e:{switch(c=e,h=f,h){case 0:case 1:throw Error(l(345));case 4:if((a&4194048)!==a)break;case 6:Pn(c,a,Yt,!wn);break e;case 2:Pt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((a&62914560)===a&&(f=oo+300-Ct(),10<f)){if(Pn(c,a,Yt,!wn),vi(c,0,!0)!==0)break e;Wa=a,c.timeoutHandle=Bx(gx.bind(null,c,r,Pt,uo,Nd,a,Yt,gs,ol,wn,h,"Throttled",-0,0),f);break e}gx(c,r,Pt,uo,Nd,a,Yt,gs,ol,wn,h,null,-0,0)}}break}while(!0);Qa(e)}function gx(e,a,r,c,f,h,S,w,R,Y,H,K,V,L){if(e.timeoutHandle=-1,K=a.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ra},ux(a,h,K);var ce=(h&62914560)===h?oo-Ct():(h&4194048)===h?hx-Ct():0;if(ce=sj(K,ce),ce!==null){Wa=h,e.cancelPendingCommit=ce(kx.bind(null,e,a,h,r,c,f,S,w,R,H,K,null,V,L)),Pn(e,h,S,!Y);return}}kx(e,a,h,r,c,f,S,w,R)}function v2(e){for(var a=e;;){var r=a.tag;if((r===0||r===11||r===15)&&a.flags&16384&&(r=a.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var c=0;c<r.length;c++){var f=r[c],h=f.getSnapshot;f=f.value;try{if(!Zt(h(),f))return!1}catch{return!1}}if(r=a.child,a.subtreeFlags&16384&&r!==null)r.return=a,a=r;else{if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Pn(e,a,r,c){a&=~Pd,a&=~gs,e.suspendedLanes|=a,e.pingedLanes&=~a,c&&(e.warmLanes|=a),c=e.expirationTimes;for(var f=a;0<f;){var h=31-_t(f),S=1<<h;c[h]=-1,f&=~S}r!==0&&Th(e,r,a)}function Oo(){return(Ze&6)===0?($r(0),!1):!0}function Xd(){if(we!==null){if(qe===0)var e=we.return;else e=we,Za=cs=null,Iu(e),el=null,cr=0,e=we;for(;e!==null;)Hp(e.alternate,e),e=e.return;we=null}}function ul(e,a){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,M2(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Wa=0,Xd(),Ge=e,we=r=Xa(e.current,null),$e=a,qe=0,Mt=null,wn=!1,il=Dl(e,a),Td=!1,ol=Yt=Pd=gs=kn=Ke=0,Pt=wr=null,Nd=!1,(a&8)!==0&&(a|=a&32);var c=e.entangledLanes;if(c!==0)for(e=e.entanglements,c&=a;0<c;){var f=31-_t(c),h=1<<f;a|=e[f],c&=~h}return Da=a,Ri(),r}function bx(e,a){be=null,z.H=xr,a===Js||a===Mi?(a=_m(),qe=3):a===Eu?(a=_m(),qe=4):qe=a===Od?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Mt=a,we===null&&(Ke=1,eo(e,Kt(a,e.current)))}function vx(){var e=Et.current;return e===null?!0:($e&4194048)===$e?aa===null:($e&62914560)===$e||($e&536870912)!==0?e===aa:!1}function yx(){var e=z.H;return z.H=xr,e===null?xr:e}function Sx(){var e=z.A;return z.A=g2,e}function fo(){Ke=4,wn||($e&4194048)!==$e&&Et.current!==null||(il=!0),(kn&134217727)===0&&(gs&134217727)===0||Ge===null||Pn(Ge,$e,Yt,!1)}function _d(e,a,r){var c=Ze;Ze|=2;var f=yx(),h=Sx();(Ge!==e||$e!==a)&&(uo=null,ul(e,a)),a=!1;var S=Ke;e:do try{if(qe!==0&&we!==null){var w=we,R=Mt;switch(qe){case 8:Xd(),S=6;break e;case 3:case 2:case 9:case 6:Et.current===null&&(a=!0);var Y=qe;if(qe=0,Mt=null,dl(e,w,R,Y),r&&il){S=0;break e}break;default:Y=qe,qe=0,Mt=null,dl(e,w,R,Y)}}y2(),S=Ke;break}catch(H){bx(e,H)}while(!0);return a&&e.shellSuspendCounter++,Za=cs=null,Ze=c,z.H=f,z.A=h,we===null&&(Ge=null,$e=0,Ri()),S}function y2(){for(;we!==null;)Qx(we)}function S2(e,a){var r=Ze;Ze|=2;var c=yx(),f=Sx();Ge!==e||$e!==a?(uo=null,co=Ct()+500,ul(e,a)):il=Dl(e,a);e:do try{if(qe!==0&&we!==null){a=we;var h=Mt;t:switch(qe){case 1:qe=0,Mt=null,dl(e,a,h,1);break;case 2:case 9:if(Cm(h)){qe=0,Mt=null,jx(a);break}a=function(){qe!==2&&qe!==9||Ge!==e||(qe=7),Qa(e)},h.then(a,a);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:Cm(h)?(qe=0,Mt=null,jx(a)):(qe=0,Mt=null,dl(e,a,h,7));break;case 5:var S=null;switch(we.tag){case 26:S=we.memoizedState;case 5:case 27:var w=we;if(S?cg(S):w.stateNode.complete){qe=0,Mt=null;var R=w.sibling;if(R!==null)we=R;else{var Y=w.return;Y!==null?(we=Y,ho(Y)):we=null}break t}}qe=0,Mt=null,dl(e,a,h,5);break;case 6:qe=0,Mt=null,dl(e,a,h,6);break;case 8:Xd(),Ke=6;break e;default:throw Error(l(462))}}Q2();break}catch(H){bx(e,H)}while(!0);return Za=cs=null,z.H=c,z.A=f,Ze=r,we!==null?0:(Ge=null,$e=0,Ri(),Ke)}function Q2(){for(;we!==null&&!DS();)Qx(we)}function Qx(e){var a=Wp(e.alternate,e,Da);e.memoizedProps=e.pendingProps,a===null?ho(e):we=a}function jx(e){var a=e,r=a.alternate;switch(a.tag){case 15:case 0:a=Yp(r,a,a.pendingProps,a.type,void 0,$e);break;case 11:a=Yp(r,a,a.pendingProps,a.type.render,a.ref,$e);break;case 5:Iu(a);default:Hp(r,a),a=we=Sm(a,Da),a=Wp(r,a,Da)}e.memoizedProps=e.pendingProps,a===null?ho(e):we=a}function dl(e,a,r,c){Za=cs=null,Iu(a),el=null,cr=0;var f=a.return;try{if(d2(e,f,a,r,$e)){Ke=1,eo(e,Kt(r,e.current)),we=null;return}}catch(h){if(f!==null)throw we=f,h;Ke=1,eo(e,Kt(r,e.current)),we=null;return}a.flags&32768?(Pe||c===1?e=!0:il||($e&536870912)!==0?e=!1:(wn=e=!0,(c===2||c===9||c===3||c===6)&&(c=Et.current,c!==null&&c.tag===13&&(c.flags|=16384))),wx(a,e)):ho(a)}function ho(e){var a=e;do{if((a.flags&32768)!==0){wx(a,wn);return}e=a.return;var r=h2(a.alternate,a,Da);if(r!==null){we=r;return}if(a=a.sibling,a!==null){we=a;return}we=a=e}while(a!==null);Ke===0&&(Ke=5)}function wx(e,a){do{var r=m2(e.alternate,e);if(r!==null){r.flags&=32767,we=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!a&&(e=e.sibling,e!==null)){we=e;return}we=e=r}while(e!==null);Ke=6,we=null}function kx(e,a,r,c,f,h,S,w,R){e.cancelPendingCommit=null;do mo();while(ot!==0);if((Ze&6)!==0)throw Error(l(327));if(a!==null){if(a===e.current)throw Error(l(177));if(h=a.lanes|a.childLanes,h|=Qu,aQ(e,r,h,S,w,R),e===Ge&&(we=Ge=null,$e=0),cl=a,Tn=e,Wa=r,zd=h,Rd=f,mx=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,$2(pi,function(){return zx(),null})):(e.callbackNode=null,e.callbackPriority=0),c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=z.T,z.T=null,f=B.p,B.p=2,S=Ze,Ze|=4;try{p2(e,a,r)}finally{Ze=S,B.p=f,z.T=c}}ot=1,$x(),Tx(),Px()}}function $x(){if(ot===1){ot=0;var e=Tn,a=cl,r=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||r){r=z.T,z.T=null;var c=B.p;B.p=2;var f=Ze;Ze|=4;try{ix(a,e);var h=Wd,S=fm(e.containerInfo),w=h.focusedElem,R=h.selectionRange;if(S!==w&&w&&w.ownerDocument&&Om(w.ownerDocument.documentElement,w)){if(R!==null&&gu(w)){var Y=R.start,H=R.end;if(H===void 0&&(H=Y),"selectionStart"in w)w.selectionStart=Y,w.selectionEnd=Math.min(H,w.value.length);else{var K=w.ownerDocument||document,V=K&&K.defaultView||window;if(V.getSelection){var L=V.getSelection(),ce=w.textContent.length,ge=Math.min(R.start,ce),Ue=R.end===void 0?ge:Math.min(R.end,ce);!L.extend&&ge>Ue&&(S=Ue,Ue=ge,ge=S);var q=dm(w,ge),_=dm(w,Ue);if(q&&_&&(L.rangeCount!==1||L.anchorNode!==q.node||L.anchorOffset!==q.offset||L.focusNode!==_.node||L.focusOffset!==_.offset)){var M=K.createRange();M.setStart(q.node,q.offset),L.removeAllRanges(),ge>Ue?(L.addRange(M),L.extend(_.node,_.offset)):(M.setEnd(_.node,_.offset),L.addRange(M))}}}}for(K=[],L=w;L=L.parentNode;)L.nodeType===1&&K.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<K.length;w++){var F=K[w];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}$o=!!Dd,Wd=Dd=null}finally{Ze=f,B.p=c,z.T=r}}e.current=a,ot=2}}function Tx(){if(ot===2){ot=0;var e=Tn,a=cl,r=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||r){r=z.T,z.T=null;var c=B.p;B.p=2;var f=Ze;Ze|=4;try{ax(e,a.alternate,a)}finally{Ze=f,B.p=c,z.T=r}}ot=3}}function Px(){if(ot===4||ot===3){ot=0,WS();var e=Tn,a=cl,r=Wa,c=mx;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?ot=5:(ot=0,cl=Tn=null,Nx(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&($n=null),Jc(r),a=a.stateNode,Xt&&typeof Xt.onCommitFiberRoot=="function")try{Xt.onCommitFiberRoot(Ll,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=z.T,f=B.p,B.p=2,z.T=null;try{for(var h=e.onRecoverableError,S=0;S<c.length;S++){var w=c[S];h(w.value,{componentStack:w.stack})}}finally{z.T=a,B.p=f}}(Wa&3)!==0&&mo(),Qa(e),f=e.pendingLanes,(r&261930)!==0&&(f&42)!==0?e===Cd?kr++:(kr=0,Cd=e):kr=0,$r(0)}}function Nx(e,a){(e.pooledCacheLanes&=a)===0&&(a=e.pooledCache,a!=null&&(e.pooledCache=null,ir(a)))}function mo(){return $x(),Tx(),Px(),zx()}function zx(){if(ot!==5)return!1;var e=Tn,a=zd;zd=0;var r=Jc(Wa),c=z.T,f=B.p;try{B.p=32>r?32:r,z.T=null,r=Rd,Rd=null;var h=Tn,S=Wa;if(ot=0,cl=Tn=null,Wa=0,(Ze&6)!==0)throw Error(l(331));var w=Ze;if(Ze|=4,Ox(h.current),cx(h,h.current,S,r),Ze=w,$r(0,!1),Xt&&typeof Xt.onPostCommitFiberRoot=="function")try{Xt.onPostCommitFiberRoot(Ll,h)}catch{}return!0}finally{B.p=f,z.T=c,Nx(e,a)}}function Rx(e,a,r){a=Kt(r,a),a=dd(e.stateNode,a,2),e=yn(e,a,2),e!==null&&(Wl(e,2),Qa(e))}function Me(e,a,r){if(e.tag===3)Rx(e,e,r);else for(;a!==null;){if(a.tag===3){Rx(a,e,r);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&($n===null||!$n.has(c))){e=Kt(r,e),r=Cp(2),c=yn(a,r,2),c!==null&&(Xp(r,c,a,e),Wl(c,2),Qa(c));break}}a=a.return}}function Zd(e,a,r){var c=e.pingCache;if(c===null){c=e.pingCache=new b2;var f=new Set;c.set(a,f)}else f=c.get(a),f===void 0&&(f=new Set,c.set(a,f));f.has(r)||(Td=!0,f.add(r),e=j2.bind(null,e,a,r),a.then(e,e))}function j2(e,a,r){var c=e.pingCache;c!==null&&c.delete(a),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Ge===e&&($e&r)===r&&(Ke===4||Ke===3&&($e&62914560)===$e&&300>Ct()-oo?(Ze&2)===0&&ul(e,0):Pd|=r,ol===$e&&(ol=0)),Qa(e)}function Cx(e,a){a===0&&(a=$h()),e=rs(e,a),e!==null&&(Wl(e,a),Qa(e))}function w2(e){var a=e.memoizedState,r=0;a!==null&&(r=a.retryLane),Cx(e,r)}function k2(e,a){var r=0;switch(e.tag){case 31:case 13:var c=e.stateNode,f=e.memoizedState;f!==null&&(r=f.retryLane);break;case 19:c=e.stateNode;break;case 22:c=e.stateNode._retryCache;break;default:throw Error(l(314))}c!==null&&c.delete(a),Cx(e,r)}function $2(e,a){return Hc(e,a)}var po=null,Ol=null,Ad=!1,xo=!1,Ed=!1,Nn=0;function Qa(e){e!==Ol&&e.next===null&&(Ol===null?po=Ol=e:Ol=Ol.next=e),xo=!0,Ad||(Ad=!0,P2())}function $r(e,a){if(!Ed&&xo){Ed=!0;do for(var r=!1,c=po;c!==null;){if(e!==0){var f=c.pendingLanes;if(f===0)var h=0;else{var S=c.suspendedLanes,w=c.pingedLanes;h=(1<<31-_t(42|e)+1)-1,h&=f&~(S&~w),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(r=!0,Ax(c,h))}else h=$e,h=vi(c,c===Ge?h:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(h&3)===0||Dl(c,h)||(r=!0,Ax(c,h));c=c.next}while(r);Ed=!1}}function T2(){Xx()}function Xx(){xo=Ad=!1;var e=0;Nn!==0&&q2()&&(e=Nn);for(var a=Ct(),r=null,c=po;c!==null;){var f=c.next,h=_x(c,a);h===0?(c.next=null,r===null?po=f:r.next=f,f===null&&(Ol=r)):(r=c,(e!==0||(h&3)!==0)&&(xo=!0)),c=f}ot!==0&&ot!==5||$r(e),Nn!==0&&(Nn=0)}function _x(e,a){for(var r=e.suspendedLanes,c=e.pingedLanes,f=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var S=31-_t(h),w=1<<S,R=f[S];R===-1?((w&r)===0||(w&c)!==0)&&(f[S]=tQ(w,a)):R<=a&&(e.expiredLanes|=w),h&=~w}if(a=Ge,r=$e,r=vi(e,e===a?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c=e.callbackNode,r===0||e===a&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return c!==null&&c!==null&&Ic(c),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||Dl(e,r)){if(a=r&-r,a===e.callbackPriority)return a;switch(c!==null&&Ic(c),Jc(r)){case 2:case 8:r=wh;break;case 32:r=pi;break;case 268435456:r=kh;break;default:r=pi}return c=Zx.bind(null,e),r=Hc(r,c),e.callbackPriority=a,e.callbackNode=r,a}return c!==null&&c!==null&&Ic(c),e.callbackPriority=2,e.callbackNode=null,2}function Zx(e,a){if(ot!==0&&ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(mo()&&e.callbackNode!==r)return null;var c=$e;return c=vi(e,e===Ge?c:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),c===0?null:(xx(e,c,a),_x(e,Ct()),e.callbackNode!=null&&e.callbackNode===r?Zx.bind(null,e):null)}function Ax(e,a){if(mo())return null;xx(e,a,!0)}function P2(){Y2(function(){(Ze&6)!==0?Hc(jh,T2):Xx()})}function qd(){if(Nn===0){var e=Fs;e===0&&(e=xi,xi<<=1,(xi&261888)===0&&(xi=256)),Nn=e}return Nn}function Ex(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ji(""+e)}function qx(e,a){var r=a.ownerDocument.createElement("input");return r.name=a.name,r.value=a.value,e.id&&r.setAttribute("form",e.id),a.parentNode.insertBefore(r,a),e=new FormData(e),r.parentNode.removeChild(r),e}function N2(e,a,r,c,f){if(a==="submit"&&r&&r.stateNode===f){var h=Ex((f[jt]||null).action),S=c.submitter;S&&(a=(a=S[jt]||null)?Ex(a.formAction):S.getAttribute("formAction"),a!==null&&(h=a,S=null));var w=new Ti("action","action",null,c,f);e.push({event:w,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Nn!==0){var R=S?qx(f,S):new FormData(f);ld(r,{pending:!0,data:R,method:f.method,action:h},null,R)}}else typeof h=="function"&&(w.preventDefault(),R=S?qx(f,S):new FormData(f),ld(r,{pending:!0,data:R,method:f.method,action:h},h,R))},currentTarget:f}]})}}for(var Md=0;Md<Su.length;Md++){var Yd=Su[Md],z2=Yd.toLowerCase(),R2=Yd[0].toUpperCase()+Yd.slice(1);ua(z2,"on"+R2)}ua(pm,"onAnimationEnd"),ua(xm,"onAnimationIteration"),ua(gm,"onAnimationStart"),ua("dblclick","onDoubleClick"),ua("focusin","onFocus"),ua("focusout","onBlur"),ua(BQ,"onTransitionRun"),ua(HQ,"onTransitionStart"),ua(IQ,"onTransitionCancel"),ua(bm,"onTransitionEnd"),As("onMouseEnter",["mouseout","mouseover"]),As("onMouseLeave",["mouseout","mouseover"]),As("onPointerEnter",["pointerout","pointerover"]),As("onPointerLeave",["pointerout","pointerover"]),as("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),as("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),as("onBeforeInput",["compositionend","keypress","textInput","paste"]),as("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),as("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),as("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tr="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(" "),C2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Tr));function Mx(e,a){a=(a&4)!==0;for(var r=0;r<e.length;r++){var c=e[r],f=c.event;c=c.listeners;e:{var h=void 0;if(a)for(var S=c.length-1;0<=S;S--){var w=c[S],R=w.instance,Y=w.currentTarget;if(w=w.listener,R!==h&&f.isPropagationStopped())break e;h=w,f.currentTarget=Y;try{h(f)}catch(H){zi(H)}f.currentTarget=null,h=R}else for(S=0;S<c.length;S++){if(w=c[S],R=w.instance,Y=w.currentTarget,w=w.listener,R!==h&&f.isPropagationStopped())break e;h=w,f.currentTarget=Y;try{h(f)}catch(H){zi(H)}f.currentTarget=null,h=R}}}}function ke(e,a){var r=a[eu];r===void 0&&(r=a[eu]=new Set);var c=e+"__bubble";r.has(c)||(Yx(a,e,2,!1),r.add(c))}function Vd(e,a,r){var c=0;a&&(c|=4),Yx(r,e,c,a)}var go="_reactListening"+Math.random().toString(36).slice(2);function Ud(e){if(!e[go]){e[go]=!0,Xh.forEach(function(r){r!=="selectionchange"&&(C2.has(r)||Vd(r,!1,e),Vd(r,!0,e))});var a=e.nodeType===9?e:e.ownerDocument;a===null||a[go]||(a[go]=!0,Vd("selectionchange",!1,a))}}function Yx(e,a,r,c){switch(pg(a)){case 2:var f=ij;break;case 8:f=oj;break;default:f=sO}r=f.bind(null,a,r,e),f=void 0,!cu||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(f=!0),c?f!==void 0?e.addEventListener(a,r,{capture:!0,passive:f}):e.addEventListener(a,r,!0):f!==void 0?e.addEventListener(a,r,{passive:f}):e.addEventListener(a,r,!1)}function Gd(e,a,r,c,f){var h=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var S=c.tag;if(S===3||S===4){var w=c.stateNode.containerInfo;if(w===f)break;if(S===4)for(S=c.return;S!==null;){var R=S.tag;if((R===3||R===4)&&S.stateNode.containerInfo===f)return;S=S.return}for(;w!==null;){if(S=Xs(w),S===null)return;if(R=S.tag,R===5||R===6||R===26||R===27){c=h=S;continue e}w=w.parentNode}}c=c.return}Dh(function(){var Y=h,H=iu(r),K=[];e:{var V=vm.get(e);if(V!==void 0){var L=Ti,ce=e;switch(e){case"keypress":if(ki(r)===0)break e;case"keydown":case"keyup":L=kQ;break;case"focusin":ce="focus",L=fu;break;case"focusout":ce="blur",L=fu;break;case"beforeblur":case"afterblur":L=fu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=Hh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=hQ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=PQ;break;case pm:case xm:case gm:L=xQ;break;case bm:L=zQ;break;case"scroll":case"scrollend":L=OQ;break;case"wheel":L=CQ;break;case"copy":case"cut":case"paste":L=bQ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Fh;break;case"toggle":case"beforetoggle":L=_Q}var ge=(a&4)!==0,Ue=!ge&&(e==="scroll"||e==="scrollend"),q=ge?V!==null?V+"Capture":null:V;ge=[];for(var _=Y,M;_!==null;){var F=_;if(M=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||M===null||q===null||(F=Il(_,q),F!=null&&ge.push(Pr(_,F,M))),Ue)break;_=_.return}0<ge.length&&(V=new L(V,ce,null,r,H),K.push({event:V,listeners:ge}))}}if((a&7)===0){e:{if(V=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",V&&r!==ru&&(ce=r.relatedTarget||r.fromElement)&&(Xs(ce)||ce[Cs]))break e;if((L||V)&&(V=H.window===H?H:(V=H.ownerDocument)?V.defaultView||V.parentWindow:window,L?(ce=r.relatedTarget||r.toElement,L=Y,ce=ce?Xs(ce):null,ce!==null&&(Ue=u(ce),ge=ce.tag,ce!==Ue||ge!==5&&ge!==27&&ge!==6)&&(ce=null)):(L=null,ce=Y),L!==ce)){if(ge=Hh,F="onMouseLeave",q="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(ge=Fh,F="onPointerLeave",q="onPointerEnter",_="pointer"),Ue=L==null?V:Hl(L),M=ce==null?V:Hl(ce),V=new ge(F,_+"leave",L,r,H),V.target=Ue,V.relatedTarget=M,F=null,Xs(H)===Y&&(ge=new ge(q,_+"enter",ce,r,H),ge.target=M,ge.relatedTarget=Ue,F=ge),Ue=F,L&&ce)t:{for(ge=X2,q=L,_=ce,M=0,F=q;F;F=ge(F))M++;F=0;for(var me=_;me;me=ge(me))F++;for(;0<M-F;)q=ge(q),M--;for(;0<F-M;)_=ge(_),F--;for(;M--;){if(q===_||_!==null&&q===_.alternate){ge=q;break t}q=ge(q),_=ge(_)}ge=null}else ge=null;L!==null&&Vx(K,V,L,ge,!1),ce!==null&&Ue!==null&&Vx(K,Ue,ce,ge,!0)}}e:{if(V=Y?Hl(Y):window,L=V.nodeName&&V.nodeName.toLowerCase(),L==="select"||L==="input"&&V.type==="file")var Re=lm;else if(nm(V))if(rm)Re=LQ;else{Re=UQ;var Oe=VQ}else L=V.nodeName,!L||L.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?Y&&lu(Y.elementType)&&(Re=lm):Re=GQ;if(Re&&(Re=Re(e,Y))){sm(K,Re,r,H);break e}Oe&&Oe(e,V,Y),e==="focusout"&&Y&&V.type==="number"&&Y.memoizedProps.value!=null&&su(V,"number",V.value)}switch(Oe=Y?Hl(Y):window,e){case"focusin":(nm(Oe)||Oe.contentEditable==="true")&&(Us=Oe,bu=Y,sr=null);break;case"focusout":sr=bu=Us=null;break;case"mousedown":vu=!0;break;case"contextmenu":case"mouseup":case"dragend":vu=!1,hm(K,r,H);break;case"selectionchange":if(WQ)break;case"keydown":case"keyup":hm(K,r,H)}var ye;if(mu)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else Vs?tm(e,r)&&(Te="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Te="onCompositionStart");Te&&(Kh&&r.locale!=="ko"&&(Vs||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Vs&&(ye=Wh()):(hn=H,uu="value"in hn?hn.value:hn.textContent,Vs=!0)),Oe=bo(Y,Te),0<Oe.length&&(Te=new Ih(Te,e,null,r,H),K.push({event:Te,listeners:Oe}),ye?Te.data=ye:(ye=am(r),ye!==null&&(Te.data=ye)))),(ye=AQ?EQ(e,r):qQ(e,r))&&(Te=bo(Y,"onBeforeInput"),0<Te.length&&(Oe=new Ih("onBeforeInput","beforeinput",null,r,H),K.push({event:Oe,listeners:Te}),Oe.data=ye)),N2(K,e,Y,r,H)}Mx(K,a)})}function Pr(e,a,r){return{instance:e,listener:a,currentTarget:r}}function bo(e,a){for(var r=a+"Capture",c=[];e!==null;){var f=e,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=Il(e,r),f!=null&&c.unshift(Pr(e,f,h)),f=Il(e,a),f!=null&&c.push(Pr(e,f,h))),e.tag===3)return c;e=e.return}return[]}function X2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vx(e,a,r,c,f){for(var h=a._reactName,S=[];r!==null&&r!==c;){var w=r,R=w.alternate,Y=w.stateNode;if(w=w.tag,R!==null&&R===c)break;w!==5&&w!==26&&w!==27||Y===null||(R=Y,f?(Y=Il(r,h),Y!=null&&S.unshift(Pr(r,Y,R))):f||(Y=Il(r,h),Y!=null&&S.push(Pr(r,Y,R)))),r=r.return}S.length!==0&&e.push({event:a,listeners:S})}var _2=/\r\n?/g,Z2=/\u0000|\uFFFD/g;function Ux(e){return(typeof e=="string"?e:""+e).replace(_2,`
|
|
25
|
-
`).replace(Z2,"")}function Gx(e,a){return a=Ux(a),Ux(e)===a}function Ve(e,a,r,c,f,h){switch(r){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||qs(e,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&qs(e,""+c);break;case"className":Si(e,"class",c);break;case"tabIndex":Si(e,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Si(e,r,c);break;case"style":Gh(e,c,h);break;case"data":if(a!=="object"){Si(e,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||r!=="href")){e.removeAttribute(r);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(r);break}c=ji(""+c),e.setAttribute(r,c);break;case"action":case"formAction":if(typeof c=="function"){e.setAttribute(r,"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 h=="function"&&(r==="formAction"?(a!=="input"&&Ve(e,a,"name",f.name,f,null),Ve(e,a,"formEncType",f.formEncType,f,null),Ve(e,a,"formMethod",f.formMethod,f,null),Ve(e,a,"formTarget",f.formTarget,f,null)):(Ve(e,a,"encType",f.encType,f,null),Ve(e,a,"method",f.method,f,null),Ve(e,a,"target",f.target,f,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){e.removeAttribute(r);break}c=ji(""+c),e.setAttribute(r,c);break;case"onClick":c!=null&&(e.onclick=Ra);break;case"onScroll":c!=null&&ke("scroll",e);break;case"onScrollEnd":c!=null&&ke("scrollend",e);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(l(61));if(r=c.__html,r!=null){if(f.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"multiple":e.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":e.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){e.removeAttribute("xlink:href");break}r=ji(""+c),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(r,""+c):e.removeAttribute(r);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":c&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":c===!0?e.setAttribute(r,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?e.setAttribute(r,c):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?e.setAttribute(r,c):e.removeAttribute(r);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?e.removeAttribute(r):e.setAttribute(r,c);break;case"popover":ke("beforetoggle",e),ke("toggle",e),yi(e,"popover",c);break;case"xlinkActuate":za(e,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":za(e,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":za(e,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":za(e,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":za(e,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":za(e,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":za(e,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":za(e,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":za(e,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":yi(e,"is",c);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=uQ.get(r)||r,yi(e,r,c))}}function Ld(e,a,r,c,f,h){switch(r){case"style":Gh(e,c,h);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(l(61));if(r=c.__html,r!=null){if(f.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"children":typeof c=="string"?qs(e,c):(typeof c=="number"||typeof c=="bigint")&&qs(e,""+c);break;case"onScroll":c!=null&&ke("scroll",e);break;case"onScrollEnd":c!=null&&ke("scrollend",e);break;case"onClick":c!=null&&(e.onclick=Ra);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_h.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(f=r.endsWith("Capture"),a=r.slice(2,f?r.length-7:void 0),h=e[jt]||null,h=h!=null?h[r]:null,typeof h=="function"&&e.removeEventListener(a,h,f),typeof c=="function")){typeof h!="function"&&h!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(a,c,f);break e}r in e?e[r]=c:c===!0?e.setAttribute(r,""):yi(e,r,c)}}}function xt(e,a,r){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",e),ke("load",e);var c=!1,f=!1,h;for(h in r)if(r.hasOwnProperty(h)){var S=r[h];if(S!=null)switch(h){case"src":c=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,a));default:Ve(e,a,h,S,r,null)}}f&&Ve(e,a,"srcSet",r.srcSet,r,null),c&&Ve(e,a,"src",r.src,r,null);return;case"input":ke("invalid",e);var w=h=S=f=null,R=null,Y=null;for(c in r)if(r.hasOwnProperty(c)){var H=r[c];if(H!=null)switch(c){case"name":f=H;break;case"type":S=H;break;case"checked":R=H;break;case"defaultChecked":Y=H;break;case"value":h=H;break;case"defaultValue":w=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(l(137,a));break;default:Ve(e,a,c,H,r,null)}}Mh(e,h,w,R,Y,S,f,!1);return;case"select":ke("invalid",e),c=S=h=null;for(f in r)if(r.hasOwnProperty(f)&&(w=r[f],w!=null))switch(f){case"value":h=w;break;case"defaultValue":S=w;break;case"multiple":c=w;default:Ve(e,a,f,w,r,null)}a=h,r=S,e.multiple=!!c,a!=null?Es(e,!!c,a,!1):r!=null&&Es(e,!!c,r,!0);return;case"textarea":ke("invalid",e),h=f=c=null;for(S in r)if(r.hasOwnProperty(S)&&(w=r[S],w!=null))switch(S){case"value":c=w;break;case"defaultValue":f=w;break;case"children":h=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(l(91));break;default:Ve(e,a,S,w,r,null)}Vh(e,c,f,h);return;case"option":for(R in r)if(r.hasOwnProperty(R)&&(c=r[R],c!=null))switch(R){case"selected":e.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Ve(e,a,R,c,r,null)}return;case"dialog":ke("beforetoggle",e),ke("toggle",e),ke("cancel",e),ke("close",e);break;case"iframe":case"object":ke("load",e);break;case"video":case"audio":for(c=0;c<Tr.length;c++)ke(Tr[c],e);break;case"image":ke("error",e),ke("load",e);break;case"details":ke("toggle",e);break;case"embed":case"source":case"link":ke("error",e),ke("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Y in r)if(r.hasOwnProperty(Y)&&(c=r[Y],c!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,a));default:Ve(e,a,Y,c,r,null)}return;default:if(lu(a)){for(H in r)r.hasOwnProperty(H)&&(c=r[H],c!==void 0&&Ld(e,a,H,c,r,void 0));return}}for(w in r)r.hasOwnProperty(w)&&(c=r[w],c!=null&&Ve(e,a,w,c,r,null))}function A2(e,a,r,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,S=null,w=null,R=null,Y=null,H=null;for(L in r){var K=r[L];if(r.hasOwnProperty(L)&&K!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":R=K;default:c.hasOwnProperty(L)||Ve(e,a,L,null,c,K)}}for(var V in c){var L=c[V];if(K=r[V],c.hasOwnProperty(V)&&(L!=null||K!=null))switch(V){case"type":h=L;break;case"name":f=L;break;case"checked":Y=L;break;case"defaultChecked":H=L;break;case"value":S=L;break;case"defaultValue":w=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(l(137,a));break;default:L!==K&&Ve(e,a,V,L,c,K)}}nu(e,S,w,R,Y,H,h,f);return;case"select":L=S=w=V=null;for(h in r)if(R=r[h],r.hasOwnProperty(h)&&R!=null)switch(h){case"value":break;case"multiple":L=R;default:c.hasOwnProperty(h)||Ve(e,a,h,null,c,R)}for(f in c)if(h=c[f],R=r[f],c.hasOwnProperty(f)&&(h!=null||R!=null))switch(f){case"value":V=h;break;case"defaultValue":w=h;break;case"multiple":S=h;default:h!==R&&Ve(e,a,f,h,c,R)}a=w,r=S,c=L,V!=null?Es(e,!!r,V,!1):!!c!=!!r&&(a!=null?Es(e,!!r,a,!0):Es(e,!!r,r?[]:"",!1));return;case"textarea":L=V=null;for(w in r)if(f=r[w],r.hasOwnProperty(w)&&f!=null&&!c.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ve(e,a,w,null,c,f)}for(S in c)if(f=c[S],h=r[S],c.hasOwnProperty(S)&&(f!=null||h!=null))switch(S){case"value":V=f;break;case"defaultValue":L=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(l(91));break;default:f!==h&&Ve(e,a,S,f,c,h)}Yh(e,V,L);return;case"option":for(var ce in r)if(V=r[ce],r.hasOwnProperty(ce)&&V!=null&&!c.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:Ve(e,a,ce,null,c,V)}for(R in c)if(V=c[R],L=r[R],c.hasOwnProperty(R)&&V!==L&&(V!=null||L!=null))switch(R){case"selected":e.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:Ve(e,a,R,V,c,L)}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 ge in r)V=r[ge],r.hasOwnProperty(ge)&&V!=null&&!c.hasOwnProperty(ge)&&Ve(e,a,ge,null,c,V);for(Y in c)if(V=c[Y],L=r[Y],c.hasOwnProperty(Y)&&V!==L&&(V!=null||L!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(l(137,a));break;default:Ve(e,a,Y,V,c,L)}return;default:if(lu(a)){for(var Ue in r)V=r[Ue],r.hasOwnProperty(Ue)&&V!==void 0&&!c.hasOwnProperty(Ue)&&Ld(e,a,Ue,void 0,c,V);for(H in c)V=c[H],L=r[H],!c.hasOwnProperty(H)||V===L||V===void 0&&L===void 0||Ld(e,a,H,V,c,L);return}}for(var q in r)V=r[q],r.hasOwnProperty(q)&&V!=null&&!c.hasOwnProperty(q)&&Ve(e,a,q,null,c,V);for(K in c)V=c[K],L=r[K],!c.hasOwnProperty(K)||V===L||V==null&&L==null||Ve(e,a,K,V,c,L)}function Lx(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function E2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,a=0,r=performance.getEntriesByType("resource"),c=0;c<r.length;c++){var f=r[c],h=f.transferSize,S=f.initiatorType,w=f.duration;if(h&&w&&Lx(S)){for(S=0,w=f.responseEnd,c+=1;c<r.length;c++){var R=r[c],Y=R.startTime;if(Y>w)break;var H=R.transferSize,K=R.initiatorType;H&&Lx(K)&&(R=R.responseEnd,S+=H*(R<w?1:(w-Y)/(R-Y)))}if(--c,a+=8*(h+S)/(f.duration/1e3),e++,10<e)break}}if(0<e)return a/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Dd=null,Wd=null;function vo(e){return e.nodeType===9?e:e.ownerDocument}function Dx(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Wx(e,a){if(e===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&a==="foreignObject"?0:e}function Bd(e,a){return e==="textarea"||e==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Hd=null;function q2(){var e=window.event;return e&&e.type==="popstate"?e===Hd?!1:(Hd=e,!0):(Hd=null,!1)}var Bx=typeof setTimeout=="function"?setTimeout:void 0,M2=typeof clearTimeout=="function"?clearTimeout:void 0,Hx=typeof Promise=="function"?Promise:void 0,Y2=typeof queueMicrotask=="function"?queueMicrotask:typeof Hx<"u"?function(e){return Hx.resolve(null).then(e).catch(V2)}:Bx;function V2(e){setTimeout(function(){throw e})}function zn(e){return e==="head"}function Ix(e,a){var r=a,c=0;do{var f=r.nextSibling;if(e.removeChild(r),f&&f.nodeType===8)if(r=f.data,r==="/$"||r==="/&"){if(c===0){e.removeChild(f),pl(a);return}c--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")c++;else if(r==="html")Nr(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,Nr(r);for(var h=r.firstChild;h;){var S=h.nextSibling,w=h.nodeName;h[Bl]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&h.rel.toLowerCase()==="stylesheet"||r.removeChild(h),h=S}}else r==="body"&&Nr(e.ownerDocument.body);r=f}while(r);pl(a)}function Fx(e,a){var r=e;e=0;do{var c=r.nextSibling;if(r.nodeType===1?a?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(a?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),c&&c.nodeType===8)if(r=c.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=c}while(r)}function Id(e){var a=e.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var r=a;switch(a=a.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Id(r),tu(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function U2(e,a,r,c){for(;e.nodeType===1;){var f=r;if(e.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(c){if(!e[Bl])switch(a){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(a==="input"&&e.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=na(e.nextSibling),e===null)break}return null}function G2(e,a,r){if(a==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=na(e.nextSibling),e===null))return null;return e}function Kx(e,a){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=na(e.nextSibling),e===null))return null;return e}function Fd(e){return e.data==="$?"||e.data==="$~"}function Kd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function L2(e,a){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=a;else if(e.data!=="$?"||r.readyState!=="loading")a();else{var c=function(){a(),r.removeEventListener("DOMContentLoaded",c)};r.addEventListener("DOMContentLoaded",c),e._reactRetry=c}}function na(e){for(;e!=null;e=e.nextSibling){var a=e.nodeType;if(a===1||a===3)break;if(a===8){if(a=e.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return e}var Jd=null;function Jx(e){e=e.nextSibling;for(var a=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(a===0)return na(e.nextSibling);a--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||a++}e=e.nextSibling}return null}function eg(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(a===0)return e;a--}else r!=="/$"&&r!=="/&"||a++}e=e.previousSibling}return null}function tg(e,a,r){switch(a=vo(r),e){case"html":if(e=a.documentElement,!e)throw Error(l(452));return e;case"head":if(e=a.head,!e)throw Error(l(453));return e;case"body":if(e=a.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Nr(e){for(var a=e.attributes;a.length;)e.removeAttributeNode(a[0]);tu(e)}var sa=new Map,ag=new Set;function yo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ba=B.d;B.d={f:D2,r:W2,D:B2,C:H2,L:I2,m:F2,X:J2,S:K2,M:ej};function D2(){var e=Ba.f(),a=Oo();return e||a}function W2(e){var a=_s(e);a!==null&&a.tag===5&&a.type==="form"?bp(a):Ba.r(e)}var fl=typeof document>"u"?null:document;function ng(e,a,r){var c=fl;if(c&&typeof a=="string"&&a){var f=It(a);f='link[rel="'+e+'"][href="'+f+'"]',typeof r=="string"&&(f+='[crossorigin="'+r+'"]'),ag.has(f)||(ag.add(f),e={rel:e,crossOrigin:r,href:a},c.querySelector(f)===null&&(a=c.createElement("link"),xt(a,"link",e),ut(a),c.head.appendChild(a)))}}function B2(e){Ba.D(e),ng("dns-prefetch",e,null)}function H2(e,a){Ba.C(e,a),ng("preconnect",e,a)}function I2(e,a,r){Ba.L(e,a,r);var c=fl;if(c&&e&&a){var f='link[rel="preload"][as="'+It(a)+'"]';a==="image"&&r&&r.imageSrcSet?(f+='[imagesrcset="'+It(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(f+='[imagesizes="'+It(r.imageSizes)+'"]')):f+='[href="'+It(e)+'"]';var h=f;switch(a){case"style":h=hl(e);break;case"script":h=ml(e)}sa.has(h)||(e=g({rel:"preload",href:a==="image"&&r&&r.imageSrcSet?void 0:e,as:a},r),sa.set(h,e),c.querySelector(f)!==null||a==="style"&&c.querySelector(zr(h))||a==="script"&&c.querySelector(Rr(h))||(a=c.createElement("link"),xt(a,"link",e),ut(a),c.head.appendChild(a)))}}function F2(e,a){Ba.m(e,a);var r=fl;if(r&&e){var c=a&&typeof a.as=="string"?a.as:"script",f='link[rel="modulepreload"][as="'+It(c)+'"][href="'+It(e)+'"]',h=f;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=ml(e)}if(!sa.has(h)&&(e=g({rel:"modulepreload",href:e},a),sa.set(h,e),r.querySelector(f)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Rr(h)))return}c=r.createElement("link"),xt(c,"link",e),ut(c),r.head.appendChild(c)}}}function K2(e,a,r){Ba.S(e,a,r);var c=fl;if(c&&e){var f=Zs(c).hoistableStyles,h=hl(e);a=a||"default";var S=f.get(h);if(!S){var w={loading:0,preload:null};if(S=c.querySelector(zr(h)))w.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":a},r),(r=sa.get(h))&&eO(e,r);var R=S=c.createElement("link");ut(R),xt(R,"link",e),R._p=new Promise(function(Y,H){R.onload=Y,R.onerror=H}),R.addEventListener("load",function(){w.loading|=1}),R.addEventListener("error",function(){w.loading|=2}),w.loading|=4,So(S,a,c)}S={type:"stylesheet",instance:S,count:1,state:w},f.set(h,S)}}}function J2(e,a){Ba.X(e,a);var r=fl;if(r&&e){var c=Zs(r).hoistableScripts,f=ml(e),h=c.get(f);h||(h=r.querySelector(Rr(f)),h||(e=g({src:e,async:!0},a),(a=sa.get(f))&&tO(e,a),h=r.createElement("script"),ut(h),xt(h,"link",e),r.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},c.set(f,h))}}function ej(e,a){Ba.M(e,a);var r=fl;if(r&&e){var c=Zs(r).hoistableScripts,f=ml(e),h=c.get(f);h||(h=r.querySelector(Rr(f)),h||(e=g({src:e,async:!0,type:"module"},a),(a=sa.get(f))&&tO(e,a),h=r.createElement("script"),ut(h),xt(h,"link",e),r.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},c.set(f,h))}}function sg(e,a,r,c){var f=(f=oe.current)?yo(f):null;if(!f)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(a=hl(r.href),r=Zs(f).hoistableStyles,c=r.get(a),c||(c={type:"style",instance:null,count:0,state:null},r.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=hl(r.href);var h=Zs(f).hoistableStyles,S=h.get(e);if(S||(f=f.ownerDocument||f,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,S),(h=f.querySelector(zr(e)))&&!h._p&&(S.instance=h,S.state.loading=5),sa.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},sa.set(e,r),h||tj(f,e,r,S.state))),a&&c===null)throw Error(l(528,""));return S}if(a&&c!==null)throw Error(l(529,""));return null;case"script":return a=r.async,r=r.src,typeof r=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=ml(r),r=Zs(f).hoistableScripts,c=r.get(a),c||(c={type:"script",instance:null,count:0,state:null},r.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function hl(e){return'href="'+It(e)+'"'}function zr(e){return'link[rel="stylesheet"]['+e+"]"}function lg(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function tj(e,a,r,c){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=e.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),xt(a,"link",r),ut(a),e.head.appendChild(a))}function ml(e){return'[src="'+It(e)+'"]'}function Rr(e){return"script[async]"+e}function rg(e,a,r){if(a.count++,a.instance===null)switch(a.type){case"style":var c=e.querySelector('style[data-href~="'+It(r.href)+'"]');if(c)return a.instance=c,ut(c),c;var f=g({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return c=(e.ownerDocument||e).createElement("style"),ut(c),xt(c,"style",f),So(c,r.precedence,e),a.instance=c;case"stylesheet":f=hl(r.href);var h=e.querySelector(zr(f));if(h)return a.state.loading|=4,a.instance=h,ut(h),h;c=lg(r),(f=sa.get(f))&&eO(c,f),h=(e.ownerDocument||e).createElement("link"),ut(h);var S=h;return S._p=new Promise(function(w,R){S.onload=w,S.onerror=R}),xt(h,"link",c),a.state.loading|=4,So(h,r.precedence,e),a.instance=h;case"script":return h=ml(r.src),(f=e.querySelector(Rr(h)))?(a.instance=f,ut(f),f):(c=r,(f=sa.get(h))&&(c=g({},r),tO(c,f)),e=e.ownerDocument||e,f=e.createElement("script"),ut(f),xt(f,"link",c),e.head.appendChild(f),a.instance=f);case"void":return null;default:throw Error(l(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,So(c,r.precedence,e));return a.instance}function So(e,a,r){for(var c=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=c.length?c[c.length-1]:null,h=f,S=0;S<c.length;S++){var w=c[S];if(w.dataset.precedence===a)h=w;else if(h!==f)break}h?h.parentNode.insertBefore(e,h.nextSibling):(a=r.nodeType===9?r.head:r,a.insertBefore(e,a.firstChild))}function eO(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.title==null&&(e.title=a.title)}function tO(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.integrity==null&&(e.integrity=a.integrity)}var Qo=null;function ig(e,a,r){if(Qo===null){var c=new Map,f=Qo=new Map;f.set(r,c)}else f=Qo,c=f.get(r),c||(c=new Map,f.set(r,c));if(c.has(e))return c;for(c.set(e,null),r=r.getElementsByTagName(e),f=0;f<r.length;f++){var h=r[f];if(!(h[Bl]||h[ft]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var S=h.getAttribute(a)||"";S=e+S;var w=c.get(S);w?w.push(h):c.set(S,[h])}}return c}function og(e,a,r){e=e.ownerDocument||e,e.head.insertBefore(r,a==="title"?e.querySelector("head > title"):null)}function aj(e,a,r){if(r===1||a.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return e=a.disabled,typeof a.precedence=="string"&&e==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function cg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function nj(e,a,r,c){if(r.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var f=hl(c.href),h=a.querySelector(zr(f));if(h){a=h._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(e.count++,e=jo.bind(e),a.then(e,e)),r.state.loading|=4,r.instance=h,ut(h);return}h=a.ownerDocument||a,c=lg(c),(f=sa.get(f))&&eO(c,f),h=h.createElement("link"),ut(h);var S=h;S._p=new Promise(function(w,R){S.onload=w,S.onerror=R}),xt(h,"link",c),r.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,a),(a=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=jo.bind(e),a.addEventListener("load",r),a.addEventListener("error",r))}}var aO=0;function sj(e,a){return e.stylesheets&&e.count===0&&ko(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var c=setTimeout(function(){if(e.stylesheets&&ko(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+a);0<e.imgBytes&&aO===0&&(aO=62500*E2());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ko(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>aO?50:800)+a);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(c),clearTimeout(f)}}:null}function jo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ko(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var wo=null;function ko(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,wo=new Map,a.forEach(lj,e),wo=null,jo.call(e))}function lj(e,a){if(!(a.state.loading&4)){var r=wo.get(e);if(r)var c=r.get(null);else{r=new Map,wo.set(e,r);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var S=f[h];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(r.set(S.dataset.precedence,S),c=S)}c&&r.set(null,c)}f=a.instance,S=f.getAttribute("data-precedence"),h=r.get(S)||c,h===c&&r.set(null,f),r.set(S,f),this.count++,c=jo.bind(this),f.addEventListener("load",c),f.addEventListener("error",c),h?h.parentNode.insertBefore(f,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),a.state.loading|=4}}var Cr={$$typeof:N,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function rj(e,a,r,c,f,h,S,w,R){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Fc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fc(0),this.hiddenUpdates=Fc(null),this.identifierPrefix=c,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function ug(e,a,r,c,f,h,S,w,R,Y,H,K){return e=new rj(e,a,r,S,R,Y,H,K,w),a=1,h===!0&&(a|=24),h=At(3,null,null,a),e.current=h,h.stateNode=e,a=_u(),a.refCount++,e.pooledCache=a,a.refCount++,h.memoizedState={element:c,isDehydrated:r,cache:a},qu(h),e}function dg(e){return e?(e=Ds,e):Ds}function Og(e,a,r,c,f,h){f=dg(f),c.context===null?c.context=f:c.pendingContext=f,c=vn(a),c.payload={element:r},h=h===void 0?null:h,h!==null&&(c.callback=h),r=yn(e,c,a),r!==null&&(Nt(r,e,a),dr(r,e,a))}function fg(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<a?r:a}}function nO(e,a){fg(e,a),(e=e.alternate)&&fg(e,a)}function hg(e){if(e.tag===13||e.tag===31){var a=rs(e,67108864);a!==null&&Nt(a,e,67108864),nO(e,67108864)}}function mg(e){if(e.tag===13||e.tag===31){var a=Vt();a=Kc(a);var r=rs(e,a);r!==null&&Nt(r,e,a),nO(e,a)}}var $o=!0;function ij(e,a,r,c){var f=z.T;z.T=null;var h=B.p;try{B.p=2,sO(e,a,r,c)}finally{B.p=h,z.T=f}}function oj(e,a,r,c){var f=z.T;z.T=null;var h=B.p;try{B.p=8,sO(e,a,r,c)}finally{B.p=h,z.T=f}}function sO(e,a,r,c){if($o){var f=lO(c);if(f===null)Gd(e,a,c,To,r),xg(e,c);else if(uj(f,e,a,r,c))c.stopPropagation();else if(xg(e,c),a&4&&-1<cj.indexOf(e)){for(;f!==null;){var h=_s(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var S=ts(h.pendingLanes);if(S!==0){var w=h;for(w.pendingLanes|=2,w.entangledLanes|=2;S;){var R=1<<31-_t(S);w.entanglements[1]|=R,S&=~R}Qa(h),(Ze&6)===0&&(co=Ct()+500,$r(0))}}break;case 31:case 13:w=rs(h,2),w!==null&&Nt(w,h,2),Oo(),nO(h,2)}if(h=lO(c),h===null&&Gd(e,a,c,To,r),h===f)break;f=h}f!==null&&c.stopPropagation()}else Gd(e,a,c,null,r)}}function lO(e){return e=iu(e),rO(e)}var To=null;function rO(e){if(To=null,e=Xs(e),e!==null){var a=u(e);if(a===null)e=null;else{var r=a.tag;if(r===13){if(e=d(a),e!==null)return e;e=null}else if(r===31){if(e=O(a),e!==null)return e;e=null}else if(r===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;e=null}else a!==e&&(e=null)}}return To=e,null}function pg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(BS()){case jh:return 2;case wh:return 8;case pi:case HS:return 32;case kh:return 268435456;default:return 32}default:return 32}}var iO=!1,Rn=null,Cn=null,Xn=null,Xr=new Map,_r=new Map,_n=[],cj="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 xg(e,a){switch(e){case"focusin":case"focusout":Rn=null;break;case"dragenter":case"dragleave":Cn=null;break;case"mouseover":case"mouseout":Xn=null;break;case"pointerover":case"pointerout":Xr.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":_r.delete(a.pointerId)}}function Zr(e,a,r,c,f,h){return e===null||e.nativeEvent!==h?(e={blockedOn:a,domEventName:r,eventSystemFlags:c,nativeEvent:h,targetContainers:[f]},a!==null&&(a=_s(a),a!==null&&hg(a)),e):(e.eventSystemFlags|=c,a=e.targetContainers,f!==null&&a.indexOf(f)===-1&&a.push(f),e)}function uj(e,a,r,c,f){switch(a){case"focusin":return Rn=Zr(Rn,e,a,r,c,f),!0;case"dragenter":return Cn=Zr(Cn,e,a,r,c,f),!0;case"mouseover":return Xn=Zr(Xn,e,a,r,c,f),!0;case"pointerover":var h=f.pointerId;return Xr.set(h,Zr(Xr.get(h)||null,e,a,r,c,f)),!0;case"gotpointercapture":return h=f.pointerId,_r.set(h,Zr(_r.get(h)||null,e,a,r,c,f)),!0}return!1}function gg(e){var a=Xs(e.target);if(a!==null){var r=u(a);if(r!==null){if(a=r.tag,a===13){if(a=d(r),a!==null){e.blockedOn=a,Rh(e.priority,function(){mg(r)});return}}else if(a===31){if(a=O(r),a!==null){e.blockedOn=a,Rh(e.priority,function(){mg(r)});return}}else if(a===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Po(e){if(e.blockedOn!==null)return!1;for(var a=e.targetContainers;0<a.length;){var r=lO(e.nativeEvent);if(r===null){r=e.nativeEvent;var c=new r.constructor(r.type,r);ru=c,r.target.dispatchEvent(c),ru=null}else return a=_s(r),a!==null&&hg(a),e.blockedOn=r,!1;a.shift()}return!0}function bg(e,a,r){Po(e)&&r.delete(a)}function dj(){iO=!1,Rn!==null&&Po(Rn)&&(Rn=null),Cn!==null&&Po(Cn)&&(Cn=null),Xn!==null&&Po(Xn)&&(Xn=null),Xr.forEach(bg),_r.forEach(bg)}function No(e,a){e.blockedOn===a&&(e.blockedOn=null,iO||(iO=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,dj)))}var zo=null;function vg(e){zo!==e&&(zo=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){zo===e&&(zo=null);for(var a=0;a<e.length;a+=3){var r=e[a],c=e[a+1],f=e[a+2];if(typeof c!="function"){if(rO(c||r)===null)continue;break}var h=_s(r);h!==null&&(e.splice(a,3),a-=3,ld(h,{pending:!0,data:f,method:r.method,action:c},c,f))}}))}function pl(e){function a(R){return No(R,e)}Rn!==null&&No(Rn,e),Cn!==null&&No(Cn,e),Xn!==null&&No(Xn,e),Xr.forEach(a),_r.forEach(a);for(var r=0;r<_n.length;r++){var c=_n[r];c.blockedOn===e&&(c.blockedOn=null)}for(;0<_n.length&&(r=_n[0],r.blockedOn===null);)gg(r),r.blockedOn===null&&_n.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(c=0;c<r.length;c+=3){var f=r[c],h=r[c+1],S=f[jt]||null;if(typeof h=="function")S||vg(r);else if(S){var w=null;if(h&&h.hasAttribute("formAction")){if(f=h,S=h[jt]||null)w=S.formAction;else if(rO(f)!==null)continue}else w=S.action;typeof w=="function"?r[c+1]=w:(r.splice(c,3),c-=3),vg(r)}}}function yg(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(S){return f=S})},focusReset:"manual",scroll:"manual"})}function a(){f!==null&&(f(),f=null),c||setTimeout(r,20)}function r(){if(!c&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(r,100),function(){c=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),f!==null&&(f(),f=null)}}}function oO(e){this._internalRoot=e}Ro.prototype.render=oO.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error(l(409));var r=a.current,c=Vt();Og(r,c,e,a,null,null)},Ro.prototype.unmount=oO.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var a=e.containerInfo;Og(e.current,2,null,e,null,null),Oo(),a[Cs]=null}};function Ro(e){this._internalRoot=e}Ro.prototype.unstable_scheduleHydration=function(e){if(e){var a=zh();e={blockedOn:null,target:e,priority:a};for(var r=0;r<_n.length&&a!==0&&a<_n[r].priority;r++);_n.splice(r,0,e),r===0&&gg(e)}};var Sg=n.version;if(Sg!=="19.2.4")throw Error(l(527,Sg,"19.2.4"));B.findDOMNode=function(e){var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=p(a),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Oj={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Co=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Co.isDisabled&&Co.supportsFiber)try{Ll=Co.inject(Oj),Xt=Co}catch{}}return Ar.createRoot=function(e,a){if(!o(e))throw Error(l(299));var r=!1,c="",f=Pp,h=Np,S=zp;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError)),a=ug(e,1,!1,null,null,r,c,null,f,h,S,yg),e[Cs]=a.current,Ud(e),new oO(a)},Ar.hydrateRoot=function(e,a,r){if(!o(e))throw Error(l(299));var c=!1,f="",h=Pp,S=Np,w=zp,R=null;return r!=null&&(r.unstable_strictMode===!0&&(c=!0),r.identifierPrefix!==void 0&&(f=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(S=r.onCaughtError),r.onRecoverableError!==void 0&&(w=r.onRecoverableError),r.formState!==void 0&&(R=r.formState)),a=ug(e,1,!0,a,r??null,c,f,R,h,S,w,yg),a.context=dg(null),r=a.current,c=Vt(),c=Kc(c),f=vn(c),f.callback=null,yn(r,f,c),r=c,a.current.lanes=r,Wl(a,r),Qa(a),e[Cs]=a.current,Ud(e),new Ro(a)},Ar.version="19.2.4",Ar}var $g;function Jj(){if($g)return cO.exports;$g=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),cO.exports=Kj(),cO.exports}var ew=Jj();const tw="/api";class aw extends Error{constructor(n,s,l){super(n),this.name="ApiError",this.status=s,this.body=l}}async function Er(t,n,s){const l=`${tw}${n}`,o={method:t,headers:{}};s!==void 0&&(o.headers["Content-Type"]="application/json",o.body=JSON.stringify(s));const u=await fetch(l,o),d=await u.text();let O;try{O=JSON.parse(d)}catch{O=d}if(!u.ok)throw new aw((O==null?void 0:O.error)||(O==null?void 0:O.message)||`Request failed: ${u.status}`,u.status,O);return O}const ee={get:t=>Er("GET",t),post:(t,n)=>Er("POST",t,n),put:(t,n)=>Er("PUT",t,n),patch:(t,n)=>Er("PATCH",t,n),delete:(t,n)=>Er("DELETE",t,n)},nw=`ws://${window.location.hostname}:${window.location.port||31415}`;let sw=0;function tf(t,n={}){try{return JSON.parse(localStorage.getItem(t)||JSON.stringify(n))}catch{return n}}function Sl(t,n){try{localStorage.setItem(t,JSON.stringify(n))}catch{}}const Tg="0.22.27";tf("groove:storeVersion")!==Tg&&(localStorage.removeItem("groove:chatHistory"),localStorage.removeItem("groove:activityLog"),Sl("groove:storeVersion",Tg));const G=mj((t,n)=>({agents:[],connected:!1,hydrated:!1,ws:null,daemonHost:null,tunneled:!1,teams:[],activeTeamId:localStorage.getItem("groove:activeTeamId")||null,gateways:[],activeView:"agents",detailPanel:null,commandPaletteOpen:!1,detailPanelWidth:Number(localStorage.getItem("groove:detailWidth"))||480,terminalVisible:localStorage.getItem("groove:terminalVisible")==="true",terminalHeight:Number(localStorage.getItem("groove:terminalHeight"))||260,terminalFullHeight:!1,activityLog:tf("groove:activityLog"),chatHistory:tf("groove:chatHistory"),tokenTimeline:{},dashTelemetry:{},ccChartTimeline:[],pendingApprovals:[],resolvedApprovals:[],recommendedTeam:null,journalistStatus:null,marketplaceUser:null,marketplaceAuthenticated:!1,toasts:[],editorFiles:{},editorActiveFile:null,editorOpenTabs:[],editorTreeCache:{},editorChangedFiles:{},editorRecentSaves:{},connect(){if(n().ws)return;const s=new WebSocket(nw);t({ws:s}),s.onopen=()=>{t({connected:!0}),ee.get("/status").then(l=>{const o={};l.host&&l.host!=="127.0.0.1"&&(o.daemonHost=l.host);const u=window.location.port||"80";String(l.port)!==u&&(o.tunneled=!0),Object.keys(o).length>0&&t(o)}).catch(()=>{}),n().fetchTeams(),n().fetchApprovals(),n().checkMarketplaceAuth()},s.onmessage=l=>{var u,d,O;const o=JSON.parse(l.data);switch(o.type){case"state":{const m={...n().tokenTimeline},p=Date.now();for(const x of o.data){m[x.id]||(m[x.id]=[]);const g=m[x.id],b=g[g.length-1];(!b||x.tokensUsed!==b.v||p-b.t>5e3)&&(g.push({t:p,v:x.tokensUsed||0}),g.length>200&&(m[x.id]=g.slice(-200)))}t({agents:o.data,tokenTimeline:m,hydrated:!0});break}case"agent:output":{const{agentId:m,data:p}=o;let x="",g="";if(typeof p.data=="string"?x=p.data:Array.isArray(p.data)&&(x=p.data.filter(b=>b.type==="text").map(b=>b.text).join(`
|
|
26
|
-
`),g=p.data.filter(b=>b.type==="tool_use").map(b=>{var v,Q,k;return`${b.name}: ${typeof b.input=="string"?b.input.slice(0,80):((v=b.input)==null?void 0:v.command)||((Q=b.input)==null?void 0:Q.path)||((k=b.input)==null?void 0:k.pattern)||JSON.stringify(b.input||"").slice(0,80)}`}).join(`
|
|
27
|
-
`)),p.contextUsage!==void 0||p.tokensUsed!==void 0){const b=n().agents.map(v=>{if(v.id!==m)return v;const Q={};return p.contextUsage!==void 0&&(Q.contextUsage=p.contextUsage),p.tokensUsed!==void 0&&(Q.tokensUsed=p.tokensUsed),{...v,...Q}});t({agents:b})}if((p.subtype==="assistant"||p.type==="result")&&x&&x.trim()){const b={...n().chatHistory};b[m]||(b[m]=[]);const v=[...b[m]],Q=v[v.length-1];Q&&Q.from==="agent"&&Date.now()-Q.timestamp<8e3&&p.subtype==="assistant"?v[v.length-1]={...Q,text:Q.text+`
|
|
28
|
-
|
|
29
|
-
`+x.trim(),timestamp:Date.now()}:v.push({from:"agent",text:x.trim(),timestamp:Date.now()}),b[m]=v.slice(-100),t({chatHistory:b}),Sl("groove:chatHistory",b)}if(g&&g.trim()){const b={...n().activityLog};b[m]||(b[m]=[]),b[m]=[...b[m].slice(-200),{timestamp:Date.now(),text:g.trim(),type:p.type,subtype:"tool"}],t({activityLog:b}),Sl("groove:activityLog",b)}break}case"agent:exit":{const m=n().agents.find(v=>v.id===o.agentId),p=(m==null?void 0:m.name)||o.agentId,x=o.status==="killed"||o.code===143||o.code===137,g=o.status==="completed"?`${p} completed`:x?`${p} stopped`:`${p} crashed (exit ${o.code})`,b=o.status==="completed"?"success":x?"info":"warning";n().addToast(b,g),(m==null?void 0:m.role)==="planner"&&o.status==="completed"&&setTimeout(()=>n().checkRecommendedTeam(),1e3);break}case"phase2:spawned":n().addToast("info",`QC agent ${o.name} auto-spawned`,"Auditing phase 1 work");break;case"phase2:failed":n().addToast("error","QC agent failed to spawn",o.error||"Unknown error");break;case"rotation:start":n().addToast("info",`Rotating ${o.agentName}...`);break;case"rotation:complete":{n().addToast("success",`Rotated ${o.agentName}`,`Saved ${o.tokensSaved} tokens`);const m=n().detailPanel;(m==null?void 0:m.type)==="agent"&&m.agentId===o.oldAgentId&&o.newAgentId&&t(p=>{var b,v;const x={...p.chatHistory},g={...p.tokenTimeline};return(b=x[o.oldAgentId])!=null&&b.length&&(x[o.newAgentId]=[...x[o.oldAgentId]]),(v=g[o.oldAgentId])!=null&&v.length&&(g[o.newAgentId]=[...g[o.oldAgentId]]),{chatHistory:x,tokenTimeline:g,detailPanel:{type:"agent",agentId:o.newAgentId}}});break}case"rotation:failed":n().addToast("error","Rotation failed",o.error);break;case"file:changed":{const m=n().editorRecentSaves[o.path];if(m&&Date.now()-m<2e3)break;t(p=>({editorChangedFiles:{...p.editorChangedFiles,[o.path]:o.timestamp}}));break}case"team:created":case"team:deleted":case"team:updated":n().fetchTeams();break;case"approval:request":t(m=>({pendingApprovals:[...m.pendingApprovals,o.data]})),n().addToast("warning",`Approval needed: ${((u=o.data)==null?void 0:u.agentName)||"agent"}`,(O=(d=o.data)==null?void 0:d.action)==null?void 0:O.description);break;case"approval:resolved":{const m=o.data;t(p=>({pendingApprovals:p.pendingApprovals.filter(x=>x.id!==m.id),resolvedApprovals:[m,...p.resolvedApprovals].slice(0,200)}));break}case"conflict:detected":n().addToast("error",`Scope conflict: ${o.agentName||"agent"}`,o.filePath?`File: ${o.filePath}`:void 0);break;case"qc:activated":n().addToast("info","QC agent activated",`${o.agentCount||"4+"} agents running`);break;case"journalist:cycle":t({journalistStatus:o.data||null});break;case"schedule:execute":n().addToast("info",`Scheduled agent spawned: ${o.name||o.role||"agent"}`);break;case"gateway:status":t({gateways:o.data||[]});break}},s.onclose=()=>{t({connected:!1,hydrated:!1,ws:null,daemonHost:null,tunneled:!1}),setTimeout(()=>n().connect(),2e3)},s.onerror=()=>s.close()},setActiveView(s){t({activeView:s})},async fetchTeams(){try{const s=await ee.get("/teams"),l=s.teams||[],o=s.defaultTeamId,{activeTeamId:u}=n(),O=l.map(m=>m.id).includes(u)?u:o;t({teams:l,activeTeamId:O}),O&&localStorage.setItem("groove:activeTeamId",O)}catch{}},switchTeam(s){t({activeTeamId:s,detailPanel:null}),localStorage.setItem("groove:activeTeamId",s)},async createTeam(s,l){try{const o={name:s};l&&(o.workingDir=l);const u=await ee.post("/teams",o);return t({activeTeamId:u.id}),localStorage.setItem("groove:activeTeamId",u.id),n().addToast("success",`Team "${s}" created`),u}catch(o){throw n().addToast("error","Failed to create team",o.message),o}},async deleteTeam(s){const l=n().teams.find(o=>o.id===s);if(l!=null&&l.isDefault){n().addToast("warning","Cannot delete the default team");return}try{await ee.delete(`/teams/${s}`),n().addToast("info",`Team "${l==null?void 0:l.name}" deleted`)}catch(o){n().addToast("error","Failed to delete team",o.message)}},async renameTeam(s,l){try{const o=await ee.patch(`/teams/${s}`,{name:l});return t(u=>({teams:u.teams.map(d=>d.id===s?o:d)})),o}catch(o){throw n().addToast("error","Failed to rename team",o.message),o}},openDetail(s){t({detailPanel:s})},closeDetail(){t({detailPanel:null})},selectAgent(s){t({detailPanel:{type:"agent",agentId:s}})},clearSelection(){t({detailPanel:null})},toggleCommandPalette(){t(s=>({commandPaletteOpen:!s.commandPaletteOpen}))},setDetailPanelWidth(s){t({detailPanelWidth:s}),localStorage.setItem("groove:detailWidth",String(s))},setTerminalVisible(s){t({terminalVisible:s}),localStorage.setItem("groove:terminalVisible",String(s))},setTerminalHeight(s){t({terminalHeight:s}),localStorage.setItem("groove:terminalHeight",String(s))},setTerminalFullHeight(s){t({terminalFullHeight:s})},addToast(s,l,o){const u=++sw;t(d=>({toasts:[...d.toasts,{id:u,type:s,message:l,detail:o}]}))},removeToast(s){t(l=>({toasts:l.toasts.filter(o=>o.id!==s)}))},async checkMarketplaceAuth(){try{const s=await ee.get("/auth/status");t({marketplaceAuthenticated:s.authenticated||!1,marketplaceUser:s.user||null})}catch{t({marketplaceAuthenticated:!1,marketplaceUser:null})}},async marketplaceLogin(){try{const s=await ee.get("/auth/login-url");s.url&&window.open(s.url,"_blank");const l=setInterval(async()=>{var o,u;try{const d=await ee.get("/auth/status");d.authenticated&&(clearInterval(l),t({marketplaceAuthenticated:!0,marketplaceUser:d.user}),n().addToast("success",`Signed in as ${((o=d.user)==null?void 0:o.displayName)||((u=d.user)==null?void 0:u.id)||"user"}`))}catch{}},2e3);setTimeout(()=>clearInterval(l),3e5)}catch(s){n().addToast("error","Login failed",s.message)}},async marketplaceLogout(){try{await ee.post("/auth/logout"),t({marketplaceAuthenticated:!1,marketplaceUser:null}),n().addToast("info","Signed out of marketplace")}catch(s){n().addToast("error","Logout failed",s.message)}},async marketplaceCheckout(s){try{const l=await ee.post("/auth/checkout",{skillId:s});return l.url&&window.open(l.url,"_blank"),l}catch(l){throw n().addToast("error","Checkout failed",l.message),l}},async fetchApprovals(){try{const s=await ee.get("/approvals");t({pendingApprovals:s.pending||[],resolvedApprovals:s.resolved||[]})}catch{}},async approveRequest(s){try{await ee.post(`/approvals/${s}/approve`),t(l=>({pendingApprovals:l.pendingApprovals.filter(o=>o.id!==s)})),n().addToast("success","Approved")}catch(l){n().addToast("error","Approve failed",l.message)}},async rejectRequest(s,l=""){try{await ee.post(`/approvals/${s}/reject`,{reason:l}),t(o=>({pendingApprovals:o.pendingApprovals.filter(u=>u.id!==s)})),n().addToast("info","Rejected")}catch(o){n().addToast("error","Reject failed",o.message)}},async checkRecommendedTeam(){var s;try{const l=await ee.get("/recommended-team");l&&((s=l.agents)!=null&&s.length)?t({recommendedTeam:l}):t({recommendedTeam:null})}catch{t({recommendedTeam:null})}},async launchRecommendedTeam(){try{t({recommendedTeam:null}),n().addToast("info","Launching team...");const s=await ee.post("/recommended-team/launch"),l=[s.phase2Pending?`${s.phase2Pending} QC queued`:"",s.projectDir?`→ ${s.projectDir}/`:""].filter(Boolean).join(" · ");return n().addToast("success",`Launched ${s.launched} agents`,l||void 0),ee.post("/cleanup").catch(()=>{}),s}catch(s){throw n().addToast("error","Launch failed",s.message),s}},async fetchJournalist(){try{const s=await ee.get("/journalist");return t({journalistStatus:s}),s}catch{return null}},async triggerJournalistCycle(){try{const s=await ee.post("/journalist/cycle");return n().addToast("success","Synthesis cycle triggered"),t({journalistStatus:s}),s}catch(s){throw n().addToast("error","Synthesis failed",s.message),s}},async spawnAgent(s){try{const l=n().activeTeamId,o=await ee.post("/agents",{...s,teamId:l});return n().addToast("success",`Spawned ${o.name}`),o}catch(l){throw n().addToast("error","Spawn failed",l.message),l}},async killAgent(s,l=!1){try{await ee.delete(`/agents/${s}?purge=${l}`)}catch(o){n().addToast("error","Kill failed",o.message)}},async rotateAgent(s){try{return await ee.post(`/agents/${s}/rotate`)}catch(l){throw n().addToast("error","Rotation failed",l.message),l}},async fetchProviders(){return ee.get("/providers")},addChatMessage(s,l,o,u=!1){t(d=>{const O={...d.chatHistory};return O[s]||(O[s]=[]),O[s]=[...O[s].slice(-100),{from:l,text:o,timestamp:Date.now(),isQuery:u}],Sl("groove:chatHistory",O),{chatHistory:O}})},async instructAgent(s,l){var d,O;const o=n().agents.find(m=>m.id===s);if(o&&(o.status==="running"||o.status==="starting")){n().addChatMessage(s,"user",l,!1);try{const m=await ee.post(`/agents/${s}/query`,{message:l});return n().addChatMessage(s,"agent",m.response),m}catch(m){throw n().addChatMessage(s,"system",`failed: ${m.message}`),m}}n().addChatMessage(s,"user",l,!1);try{const m=await ee.post(`/agents/${s}/instruct`,{message:l});for(const p of["chatHistory","activityLog","tokenTimeline"]){const x=n()[p][s];x!=null&&x.length&&t(g=>({[p]:{...g[p],[m.id]:[...x]}}))}return(d=n().chatHistory[s])!=null&&d.length&&Sl("groove:chatHistory",n().chatHistory),(O=n().activityLog[s])!=null&&O.length&&Sl("groove:activityLog",n().activityLog),n().selectAgent(m.id),m}catch(m){throw n().addChatMessage(s,"system",`failed: ${m.message}`),m}},async queryAgent(s,l){n().addChatMessage(s,"user",l,!0);try{const o=await ee.post(`/agents/${s}/query`,{message:l});return n().addChatMessage(s,"agent",o.response),o}catch(o){throw n().addChatMessage(s,"system",`query failed: ${o.message}`),o}},async openFile(s){var u;if(n().editorFiles[s]||n().editorOpenTabs.includes(s)){t(d=>({editorActiveFile:s,editorOpenTabs:d.editorOpenTabs.includes(s)?d.editorOpenTabs:[...d.editorOpenTabs,s]}));return}const l=(u=s.split(".").pop())==null?void 0:u.toLowerCase();if(["png","jpg","jpeg","gif","svg","webp","ico","bmp","avif","mp4","webm","mov","avi","mkv","ogv"].includes(l)){t(d=>({editorActiveFile:s,editorOpenTabs:[...d.editorOpenTabs,s]}));return}try{const d=await ee.get(`/files/read?path=${encodeURIComponent(s)}`);if(d.binary){n().addToast("warning","Binary file — cannot open");return}t(m=>({editorFiles:{...m.editorFiles,[s]:{content:d.content,originalContent:d.content,language:d.language,loadedAt:Date.now()}},editorActiveFile:s,editorOpenTabs:m.editorOpenTabs.includes(s)?m.editorOpenTabs:[...m.editorOpenTabs,s]}));const O=n().ws;(O==null?void 0:O.readyState)===1&&O.send(JSON.stringify({type:"editor:watch",path:s}))}catch(d){n().addToast("error","Failed to open file",d.message)}},closeFile(s){t(o=>{const u=o.editorOpenTabs.filter(p=>p!==s),d={...o.editorFiles};delete d[s];const O={...o.editorChangedFiles};delete O[s];let m=o.editorActiveFile;if(m===s){const p=o.editorOpenTabs.indexOf(s);m=u[Math.min(p,u.length-1)]||null}return{editorOpenTabs:u,editorFiles:d,editorChangedFiles:O,editorActiveFile:m}});const l=n().ws;(l==null?void 0:l.readyState)===1&&l.send(JSON.stringify({type:"editor:unwatch",path:s}))},setActiveFile(s){t({editorActiveFile:s})},updateFileContent(s,l){t(o=>({editorFiles:{...o.editorFiles,[s]:{...o.editorFiles[s],content:l}}}))},async saveFile(s){const l=n().editorFiles[s];if(l)try{await ee.post("/files/write",{path:s,content:l.content}),t(o=>({editorFiles:{...o.editorFiles,[s]:{...o.editorFiles[s],originalContent:l.content}},editorChangedFiles:(()=>{const u={...o.editorChangedFiles};return delete u[s],u})(),editorRecentSaves:{...o.editorRecentSaves,[s]:Date.now()}})),n().addToast("success","File saved")}catch(o){n().addToast("error","Save failed",o.message)}},async reloadFile(s){try{const l=await ee.get(`/files/read?path=${encodeURIComponent(s)}`);if(l.binary)return;t(o=>({editorFiles:{...o.editorFiles,[s]:{content:l.content,originalContent:l.content,language:l.language,loadedAt:Date.now()}},editorChangedFiles:(()=>{const u={...o.editorChangedFiles};return delete u[s],u})()}))}catch{}},dismissFileChange(s){t(l=>{const o={...l.editorChangedFiles};return delete o[s],{editorChangedFiles:o}})},async fetchTreeDir(s){try{const l=await ee.get(`/files/tree?path=${encodeURIComponent(s)}`);t(o=>({editorTreeCache:{...o.editorTreeCache,[s]:l.entries}}))}catch{}},async createFile(s){try{await ee.post("/files/create",{path:s});const l=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(l),n().addToast("success","File created"),!0}catch(l){return n().addToast("error","Create failed",l.message),!1}},async createDir(s){try{await ee.post("/files/mkdir",{path:s});const l=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(l),n().addToast("success","Folder created"),!0}catch(l){return n().addToast("error","Create failed",l.message),!1}},async deleteFile(s){try{await ee.delete(`/files/delete?path=${encodeURIComponent(s)}`),n().editorOpenTabs.includes(s)&&n().closeFile(s);const l=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(l),t(o=>{const u={...o.editorTreeCache};return delete u[s],{editorTreeCache:u}}),n().addToast("success","Deleted"),!0}catch(l){return n().addToast("error","Delete failed",l.message),!1}},async renameFile(s,l){try{await ee.post("/files/rename",{oldPath:s,newPath:l}),t(d=>{const O=d.editorOpenTabs.map(x=>x===s?l:x),m={...d.editorFiles};m[s]&&(m[l]=m[s],delete m[s]);const p=d.editorActiveFile===s?l:d.editorActiveFile;return{editorOpenTabs:O,editorFiles:m,editorActiveFile:p}});const o=s.includes("/")?s.split("/").slice(0,-1).join("/"):"",u=l.includes("/")?l.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(o),u!==o&&await n().fetchTreeDir(u),n().addToast("success","Renamed"),!0}catch(o){return n().addToast("error","Rename failed",o.message),!1}}}));function lw(t){y.useEffect(()=>{function n(s){for(const l of t){const o=l.meta?s.metaKey||s.ctrlKey:!0,u=l.shift?s.shiftKey:!s.shiftKey;if(s.key.toLowerCase()===l.key.toLowerCase()&&o&&u){s.preventDefault(),l.handler();return}}}return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[t])}function Ee(t,n,{checkForDefaultPrevented:s=!0}={}){return function(o){if(t==null||t(o),s===!1||!o.defaultPrevented)return n==null?void 0:n(o)}}function Pg(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function P0(...t){return n=>{let s=!1;const l=t.map(o=>{const u=Pg(o,n);return!s&&typeof u=="function"&&(s=!0),u});if(s)return()=>{for(let o=0;o<l.length;o++){const u=l[o];typeof u=="function"?u():Pg(t[o],null)}}}}function it(...t){return y.useCallback(P0(...t),t)}function rw(t,n){const s=y.createContext(n),l=u=>{const{children:d,...O}=u,m=y.useMemo(()=>O,Object.values(O));return i.jsx(s.Provider,{value:m,children:d})};l.displayName=t+"Provider";function o(u){const d=y.useContext(s);if(d)return d;if(n!==void 0)return n;throw new Error(`\`${u}\` must be used within \`${t}\``)}return[l,o]}function zs(t,n=[]){let s=[];function l(u,d){const O=y.createContext(d),m=s.length;s=[...s,d];const p=g=>{var j;const{scope:b,children:v,...Q}=g,k=((j=b==null?void 0:b[t])==null?void 0:j[m])||O,T=y.useMemo(()=>Q,Object.values(Q));return i.jsx(k.Provider,{value:T,children:v})};p.displayName=u+"Provider";function x(g,b){var k;const v=((k=b==null?void 0:b[t])==null?void 0:k[m])||O,Q=y.useContext(v);if(Q)return Q;if(d!==void 0)return d;throw new Error(`\`${g}\` must be used within \`${u}\``)}return[p,x]}const o=()=>{const u=s.map(d=>y.createContext(d));return function(O){const m=(O==null?void 0:O[t])||u;return y.useMemo(()=>({[`__scope${t}`]:{...O,[t]:m}}),[O,m])}};return o.scopeName=t,[l,iw(o,...n)]}function iw(...t){const n=t[0];if(t.length===1)return n;const s=()=>{const l=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(u){const d=l.reduce((O,{useScope:m,scopeName:p})=>{const g=m(u)[`__scope${p}`];return{...O,...g}},{});return y.useMemo(()=>({[`__scope${n.scopeName}`]:d}),[d])}};return s.scopeName=n.scopeName,s}function nc(t){const n=ow(t),s=y.forwardRef((l,o)=>{const{children:u,...d}=l,O=y.Children.toArray(u),m=O.find(uw);if(m){const p=m.props.children,x=O.map(g=>g===m?y.Children.count(p)>1?y.Children.only(null):y.isValidElement(p)?p.props.children:null:g);return i.jsx(n,{...d,ref:o,children:y.isValidElement(p)?y.cloneElement(p,void 0,x):null})}return i.jsx(n,{...d,ref:o,children:u})});return s.displayName=`${t}.Slot`,s}function ow(t){const n=y.forwardRef((s,l)=>{const{children:o,...u}=s;if(y.isValidElement(o)){const d=Ow(o),O=dw(u,o.props);return o.type!==y.Fragment&&(O.ref=l?P0(l,d):d),y.cloneElement(o,O)}return y.Children.count(o)>1?y.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var N0=Symbol("radix.slottable");function cw(t){const n=({children:s})=>i.jsx(i.Fragment,{children:s});return n.displayName=`${t}.Slottable`,n.__radixId=N0,n}function uw(t){return y.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===N0}function dw(t,n){const s={...n};for(const l in n){const o=t[l],u=n[l];/^on[A-Z]/.test(l)?o&&u?s[l]=(...O)=>{const m=u(...O);return o(...O),m}:o&&(s[l]=o):l==="style"?s[l]={...o,...u}:l==="className"&&(s[l]=[o,u].filter(Boolean).join(" "))}return{...t,...s}}function Ow(t){var l,o;let n=(l=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:l.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var fw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Be=fw.reduce((t,n)=>{const s=nc(`Primitive.${n}`),l=y.forwardRef((o,u)=>{const{asChild:d,...O}=o,m=d?s:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(m,{...O,ref:u})});return l.displayName=`Primitive.${n}`,{...t,[n]:l}},{});function hw(t,n){t&&y0.flushSync(()=>t.dispatchEvent(n))}function zt(t){const n=y.useRef(t);return y.useEffect(()=>{n.current=t}),y.useMemo(()=>(...s)=>{var l;return(l=n.current)==null?void 0:l.call(n,...s)},[])}function mw(t,n=globalThis==null?void 0:globalThis.document){const s=zt(t);y.useEffect(()=>{const l=o=>{o.key==="Escape"&&s(o)};return n.addEventListener("keydown",l,{capture:!0}),()=>n.removeEventListener("keydown",l,{capture:!0})},[s,n])}var pw="DismissableLayer",af="dismissableLayer.update",xw="dismissableLayer.pointerDownOutside",gw="dismissableLayer.focusOutside",Ng,z0=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nf=y.forwardRef((t,n)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:l,onPointerDownOutside:o,onFocusOutside:u,onInteractOutside:d,onDismiss:O,...m}=t,p=y.useContext(z0),[x,g]=y.useState(null),b=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=y.useState({}),Q=it(n,X=>g(X)),k=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),j=k.indexOf(T),P=x?k.indexOf(x):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,A=P>=j,U=yw(X=>{const $=X.target,W=[...p.branches].some(E=>E.contains($));!A||W||(o==null||o(X),d==null||d(X),X.defaultPrevented||O==null||O())},b),C=Sw(X=>{const $=X.target;[...p.branches].some(E=>E.contains($))||(u==null||u(X),d==null||d(X),X.defaultPrevented||O==null||O())},b);return mw(X=>{P===p.layers.size-1&&(l==null||l(X),!X.defaultPrevented&&O&&(X.preventDefault(),O()))},b),y.useEffect(()=>{if(x)return s&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Ng=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),zg(),()=>{s&&p.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Ng)}},[x,b,s,p]),y.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),zg())},[x,p]),y.useEffect(()=>{const X=()=>v({});return document.addEventListener(af,X),()=>document.removeEventListener(af,X)},[]),i.jsx(Be.div,{...m,ref:Q,style:{pointerEvents:N?A?"auto":"none":void 0,...t.style},onFocusCapture:Ee(t.onFocusCapture,C.onFocusCapture),onBlurCapture:Ee(t.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Ee(t.onPointerDownCapture,U.onPointerDownCapture)})});Nf.displayName=pw;var bw="DismissableLayerBranch",vw=y.forwardRef((t,n)=>{const s=y.useContext(z0),l=y.useRef(null),o=it(n,l);return y.useEffect(()=>{const u=l.current;if(u)return s.branches.add(u),()=>{s.branches.delete(u)}},[s.branches]),i.jsx(Be.div,{...t,ref:o})});vw.displayName=bw;function yw(t,n=globalThis==null?void 0:globalThis.document){const s=zt(t),l=y.useRef(!1),o=y.useRef(()=>{});return y.useEffect(()=>{const u=O=>{if(O.target&&!l.current){let m=function(){R0(xw,s,p,{discrete:!0})};const p={originalEvent:O};O.pointerType==="touch"?(n.removeEventListener("click",o.current),o.current=m,n.addEventListener("click",o.current,{once:!0})):m()}else n.removeEventListener("click",o.current);l.current=!1},d=window.setTimeout(()=>{n.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(d),n.removeEventListener("pointerdown",u),n.removeEventListener("click",o.current)}},[n,s]),{onPointerDownCapture:()=>l.current=!0}}function Sw(t,n=globalThis==null?void 0:globalThis.document){const s=zt(t),l=y.useRef(!1);return y.useEffect(()=>{const o=u=>{u.target&&!l.current&&R0(gw,s,{originalEvent:u},{discrete:!1})};return n.addEventListener("focusin",o),()=>n.removeEventListener("focusin",o)},[n,s]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function zg(){const t=new CustomEvent(af);document.dispatchEvent(t)}function R0(t,n,s,{discrete:l}){const o=s.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:s});n&&o.addEventListener(t,n,{once:!0}),l?hw(o,u):o.dispatchEvent(u)}var sn=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},Qw=g0[" useId ".trim().toString()]||(()=>{}),jw=0;function wl(t){const[n,s]=y.useState(Qw());return sn(()=>{s(l=>l??String(jw++))},[t]),t||(n?`radix-${n}`:"")}const ww=["top","right","bottom","left"],Wn=Math.min,Dt=Math.max,sc=Math.round,Xo=Math.floor,ka=t=>({x:t,y:t}),kw={left:"right",right:"left",bottom:"top",top:"bottom"};function nf(t,n,s){return Dt(t,Wn(n,s))}function ln(t,n){return typeof t=="function"?t(n):t}function rn(t){return t.split("-")[0]}function ql(t){return t.split("-")[1]}function zf(t){return t==="x"?"y":"x"}function Rf(t){return t==="y"?"height":"width"}function wa(t){const n=t[0];return n==="t"||n==="b"?"y":"x"}function Cf(t){return zf(wa(t))}function $w(t,n,s){s===void 0&&(s=!1);const l=ql(t),o=Cf(t),u=Rf(o);let d=o==="x"?l===(s?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[u]>n.floating[u]&&(d=lc(d)),[d,lc(d)]}function Tw(t){const n=lc(t);return[sf(t),n,sf(n)]}function sf(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Rg=["left","right"],Cg=["right","left"],Pw=["top","bottom"],Nw=["bottom","top"];function zw(t,n,s){switch(t){case"top":case"bottom":return s?n?Cg:Rg:n?Rg:Cg;case"left":case"right":return n?Pw:Nw;default:return[]}}function Rw(t,n,s,l){const o=ql(t);let u=zw(rn(t),s==="start",l);return o&&(u=u.map(d=>d+"-"+o),n&&(u=u.concat(u.map(sf)))),u}function lc(t){const n=rn(t);return kw[n]+t.slice(n.length)}function Cw(t){return{top:0,right:0,bottom:0,left:0,...t}}function C0(t){return typeof t!="number"?Cw(t):{top:t,right:t,bottom:t,left:t}}function rc(t){const{x:n,y:s,width:l,height:o}=t;return{width:l,height:o,top:s,left:n,right:n+l,bottom:s+o,x:n,y:s}}function Xg(t,n,s){let{reference:l,floating:o}=t;const u=wa(n),d=Cf(n),O=Rf(d),m=rn(n),p=u==="y",x=l.x+l.width/2-o.width/2,g=l.y+l.height/2-o.height/2,b=l[O]/2-o[O]/2;let v;switch(m){case"top":v={x,y:l.y-o.height};break;case"bottom":v={x,y:l.y+l.height};break;case"right":v={x:l.x+l.width,y:g};break;case"left":v={x:l.x-o.width,y:g};break;default:v={x:l.x,y:l.y}}switch(ql(n)){case"start":v[d]-=b*(s&&p?-1:1);break;case"end":v[d]+=b*(s&&p?-1:1);break}return v}async function Xw(t,n){var s;n===void 0&&(n={});const{x:l,y:o,platform:u,rects:d,elements:O,strategy:m}=t,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:g="floating",altBoundary:b=!1,padding:v=0}=ln(n,t),Q=C0(v),T=O[b?g==="floating"?"reference":"floating":g],j=rc(await u.getClippingRect({element:(s=await(u.isElement==null?void 0:u.isElement(T)))==null||s?T:T.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(O.floating)),boundary:p,rootBoundary:x,strategy:m})),P=g==="floating"?{x:l,y:o,width:d.floating.width,height:d.floating.height}:d.reference,N=await(u.getOffsetParent==null?void 0:u.getOffsetParent(O.floating)),A=await(u.isElement==null?void 0:u.isElement(N))?await(u.getScale==null?void 0:u.getScale(N))||{x:1,y:1}:{x:1,y:1},U=rc(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:O,rect:P,offsetParent:N,strategy:m}):P);return{top:(j.top-U.top+Q.top)/A.y,bottom:(U.bottom-j.bottom+Q.bottom)/A.y,left:(j.left-U.left+Q.left)/A.x,right:(U.right-j.right+Q.right)/A.x}}const _w=50,Zw=async(t,n,s)=>{const{placement:l="bottom",strategy:o="absolute",middleware:u=[],platform:d}=s,O=d.detectOverflow?d:{...d,detectOverflow:Xw},m=await(d.isRTL==null?void 0:d.isRTL(n));let p=await d.getElementRects({reference:t,floating:n,strategy:o}),{x,y:g}=Xg(p,l,m),b=l,v=0;const Q={};for(let k=0;k<u.length;k++){const T=u[k];if(!T)continue;const{name:j,fn:P}=T,{x:N,y:A,data:U,reset:C}=await P({x,y:g,initialPlacement:l,placement:b,strategy:o,middlewareData:Q,rects:p,platform:O,elements:{reference:t,floating:n}});x=N??x,g=A??g,Q[j]={...Q[j],...U},C&&v<_w&&(v++,typeof C=="object"&&(C.placement&&(b=C.placement),C.rects&&(p=C.rects===!0?await d.getElementRects({reference:t,floating:n,strategy:o}):C.rects),{x,y:g}=Xg(p,b,m)),k=-1)}return{x,y:g,placement:b,strategy:o,middlewareData:Q}},Aw=t=>({name:"arrow",options:t,async fn(n){const{x:s,y:l,placement:o,rects:u,platform:d,elements:O,middlewareData:m}=n,{element:p,padding:x=0}=ln(t,n)||{};if(p==null)return{};const g=C0(x),b={x:s,y:l},v=Cf(o),Q=Rf(v),k=await d.getDimensions(p),T=v==="y",j=T?"top":"left",P=T?"bottom":"right",N=T?"clientHeight":"clientWidth",A=u.reference[Q]+u.reference[v]-b[v]-u.floating[Q],U=b[v]-u.reference[v],C=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p));let X=C?C[N]:0;(!X||!await(d.isElement==null?void 0:d.isElement(C)))&&(X=O.floating[N]||u.floating[Q]);const $=A/2-U/2,W=X/2-k[Q]/2-1,E=Wn(g[j],W),ne=Wn(g[P],W),re=E,xe=X-k[Q]-ne,ie=X/2-k[Q]/2+$,J=nf(re,ie,xe),z=!m.arrow&&ql(o)!=null&&ie!==J&&u.reference[Q]/2-(ie<re?E:ne)-k[Q]/2<0,B=z?ie<re?ie-re:ie-xe:0;return{[v]:b[v]+B,data:{[v]:J,centerOffset:ie-J-B,...z&&{alignmentOffset:B}},reset:z}}}),Ew=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var s,l;const{placement:o,middlewareData:u,rects:d,initialPlacement:O,platform:m,elements:p}=n,{mainAxis:x=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:Q="none",flipAlignment:k=!0,...T}=ln(t,n);if((s=u.arrow)!=null&&s.alignmentOffset)return{};const j=rn(o),P=wa(O),N=rn(O)===O,A=await(m.isRTL==null?void 0:m.isRTL(p.floating)),U=b||(N||!k?[lc(O)]:Tw(O)),C=Q!=="none";!b&&C&&U.push(...Rw(O,k,Q,A));const X=[O,...U],$=await m.detectOverflow(n,T),W=[];let E=((l=u.flip)==null?void 0:l.overflows)||[];if(x&&W.push($[j]),g){const ie=$w(o,d,A);W.push($[ie[0]],$[ie[1]])}if(E=[...E,{placement:o,overflows:W}],!W.every(ie=>ie<=0)){var ne,re;const ie=(((ne=u.flip)==null?void 0:ne.index)||0)+1,J=X[ie];if(J&&(!(g==="alignment"?P!==wa(J):!1)||E.every(I=>wa(I.placement)===P?I.overflows[0]>0:!0)))return{data:{index:ie,overflows:E},reset:{placement:J}};let z=(re=E.filter(B=>B.overflows[0]<=0).sort((B,I)=>B.overflows[1]-I.overflows[1])[0])==null?void 0:re.placement;if(!z)switch(v){case"bestFit":{var xe;const B=(xe=E.filter(I=>{if(C){const fe=wa(I.placement);return fe===P||fe==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(fe=>fe>0).reduce((fe,te)=>fe+te,0)]).sort((I,fe)=>I[1]-fe[1])[0])==null?void 0:xe[0];B&&(z=B);break}case"initialPlacement":z=O;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function _g(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function Zg(t){return ww.some(n=>t[n]>=0)}const qw=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(n){const{rects:s,platform:l}=n,{strategy:o="referenceHidden",...u}=ln(t,n);switch(o){case"referenceHidden":{const d=await l.detectOverflow(n,{...u,elementContext:"reference"}),O=_g(d,s.reference);return{data:{referenceHiddenOffsets:O,referenceHidden:Zg(O)}}}case"escaped":{const d=await l.detectOverflow(n,{...u,altBoundary:!0}),O=_g(d,s.floating);return{data:{escapedOffsets:O,escaped:Zg(O)}}}default:return{}}}}},X0=new Set(["left","top"]);async function Mw(t,n){const{placement:s,platform:l,elements:o}=t,u=await(l.isRTL==null?void 0:l.isRTL(o.floating)),d=rn(s),O=ql(s),m=wa(s)==="y",p=X0.has(d)?-1:1,x=u&&m?-1:1,g=ln(n,t);let{mainAxis:b,crossAxis:v,alignmentAxis:Q}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return O&&typeof Q=="number"&&(v=O==="end"?Q*-1:Q),m?{x:v*x,y:b*p}:{x:b*p,y:v*x}}const Yw=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){var s,l;const{x:o,y:u,placement:d,middlewareData:O}=n,m=await Mw(n,t);return d===((s=O.offset)==null?void 0:s.placement)&&(l=O.arrow)!=null&&l.alignmentOffset?{}:{x:o+m.x,y:u+m.y,data:{...m,placement:d}}}}},Vw=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:s,y:l,placement:o,platform:u}=n,{mainAxis:d=!0,crossAxis:O=!1,limiter:m={fn:j=>{let{x:P,y:N}=j;return{x:P,y:N}}},...p}=ln(t,n),x={x:s,y:l},g=await u.detectOverflow(n,p),b=wa(rn(o)),v=zf(b);let Q=x[v],k=x[b];if(d){const j=v==="y"?"top":"left",P=v==="y"?"bottom":"right",N=Q+g[j],A=Q-g[P];Q=nf(N,Q,A)}if(O){const j=b==="y"?"top":"left",P=b==="y"?"bottom":"right",N=k+g[j],A=k-g[P];k=nf(N,k,A)}const T=m.fn({...n,[v]:Q,[b]:k});return{...T,data:{x:T.x-s,y:T.y-l,enabled:{[v]:d,[b]:O}}}}}},Uw=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:s,y:l,placement:o,rects:u,middlewareData:d}=n,{offset:O=0,mainAxis:m=!0,crossAxis:p=!0}=ln(t,n),x={x:s,y:l},g=wa(o),b=zf(g);let v=x[b],Q=x[g];const k=ln(O,n),T=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(m){const N=b==="y"?"height":"width",A=u.reference[b]-u.floating[N]+T.mainAxis,U=u.reference[b]+u.reference[N]-T.mainAxis;v<A?v=A:v>U&&(v=U)}if(p){var j,P;const N=b==="y"?"width":"height",A=X0.has(rn(o)),U=u.reference[g]-u.floating[N]+(A&&((j=d.offset)==null?void 0:j[g])||0)+(A?0:T.crossAxis),C=u.reference[g]+u.reference[N]+(A?0:((P=d.offset)==null?void 0:P[g])||0)-(A?T.crossAxis:0);Q<U?Q=U:Q>C&&(Q=C)}return{[b]:v,[g]:Q}}}},Gw=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(n){var s,l;const{placement:o,rects:u,platform:d,elements:O}=n,{apply:m=()=>{},...p}=ln(t,n),x=await d.detectOverflow(n,p),g=rn(o),b=ql(o),v=wa(o)==="y",{width:Q,height:k}=u.floating;let T,j;g==="top"||g==="bottom"?(T=g,j=b===(await(d.isRTL==null?void 0:d.isRTL(O.floating))?"start":"end")?"left":"right"):(j=g,T=b==="end"?"top":"bottom");const P=k-x.top-x.bottom,N=Q-x.left-x.right,A=Wn(k-x[T],P),U=Wn(Q-x[j],N),C=!n.middlewareData.shift;let X=A,$=U;if((s=n.middlewareData.shift)!=null&&s.enabled.x&&($=N),(l=n.middlewareData.shift)!=null&&l.enabled.y&&(X=P),C&&!b){const E=Dt(x.left,0),ne=Dt(x.right,0),re=Dt(x.top,0),xe=Dt(x.bottom,0);v?$=Q-2*(E!==0||ne!==0?E+ne:Dt(x.left,x.right)):X=k-2*(re!==0||xe!==0?re+xe:Dt(x.top,x.bottom))}await m({...n,availableWidth:$,availableHeight:X});const W=await d.getDimensions(O.floating);return Q!==W.width||k!==W.height?{reset:{rects:!0}}:{}}}};function Tc(){return typeof window<"u"}function Ml(t){return _0(t)?(t.nodeName||"").toLowerCase():"#document"}function Wt(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function Ta(t){var n;return(n=(_0(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function _0(t){return Tc()?t instanceof Node||t instanceof Wt(t).Node:!1}function ma(t){return Tc()?t instanceof Element||t instanceof Wt(t).Element:!1}function cn(t){return Tc()?t instanceof HTMLElement||t instanceof Wt(t).HTMLElement:!1}function Ag(t){return!Tc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Wt(t).ShadowRoot}function ri(t){const{overflow:n,overflowX:s,overflowY:l,display:o}=pa(t);return/auto|scroll|overlay|hidden|clip/.test(n+l+s)&&o!=="inline"&&o!=="contents"}function Lw(t){return/^(table|td|th)$/.test(Ml(t))}function Pc(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Dw=/transform|translate|scale|rotate|perspective|filter/,Ww=/paint|layout|strict|content/,bs=t=>!!t&&t!=="none";let OO;function Xf(t){const n=ma(t)?pa(t):t;return bs(n.transform)||bs(n.translate)||bs(n.scale)||bs(n.rotate)||bs(n.perspective)||!_f()&&(bs(n.backdropFilter)||bs(n.filter))||Dw.test(n.willChange||"")||Ww.test(n.contain||"")}function Bw(t){let n=Bn(t);for(;cn(n)&&!Rl(n);){if(Xf(n))return n;if(Pc(n))return null;n=Bn(n)}return null}function _f(){return OO==null&&(OO=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),OO}function Rl(t){return/^(html|body|#document)$/.test(Ml(t))}function pa(t){return Wt(t).getComputedStyle(t)}function Nc(t){return ma(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Bn(t){if(Ml(t)==="html")return t;const n=t.assignedSlot||t.parentNode||Ag(t)&&t.host||Ta(t);return Ag(n)?n.host:n}function Z0(t){const n=Bn(t);return Rl(n)?t.ownerDocument?t.ownerDocument.body:t.body:cn(n)&&ri(n)?n:Z0(n)}function Wr(t,n,s){var l;n===void 0&&(n=[]),s===void 0&&(s=!0);const o=Z0(t),u=o===((l=t.ownerDocument)==null?void 0:l.body),d=Wt(o);if(u){const O=lf(d);return n.concat(d,d.visualViewport||[],ri(o)?o:[],O&&s?Wr(O):[])}else return n.concat(o,Wr(o,[],s))}function lf(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function A0(t){const n=pa(t);let s=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const o=cn(t),u=o?t.offsetWidth:s,d=o?t.offsetHeight:l,O=sc(s)!==u||sc(l)!==d;return O&&(s=u,l=d),{width:s,height:l,$:O}}function Zf(t){return ma(t)?t:t.contextElement}function kl(t){const n=Zf(t);if(!cn(n))return ka(1);const s=n.getBoundingClientRect(),{width:l,height:o,$:u}=A0(n);let d=(u?sc(s.width):s.width)/l,O=(u?sc(s.height):s.height)/o;return(!d||!Number.isFinite(d))&&(d=1),(!O||!Number.isFinite(O))&&(O=1),{x:d,y:O}}const Hw=ka(0);function E0(t){const n=Wt(t);return!_f()||!n.visualViewport?Hw:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Iw(t,n,s){return n===void 0&&(n=!1),!s||n&&s!==Wt(t)?!1:n}function js(t,n,s,l){n===void 0&&(n=!1),s===void 0&&(s=!1);const o=t.getBoundingClientRect(),u=Zf(t);let d=ka(1);n&&(l?ma(l)&&(d=kl(l)):d=kl(t));const O=Iw(u,s,l)?E0(u):ka(0);let m=(o.left+O.x)/d.x,p=(o.top+O.y)/d.y,x=o.width/d.x,g=o.height/d.y;if(u){const b=Wt(u),v=l&&ma(l)?Wt(l):l;let Q=b,k=lf(Q);for(;k&&l&&v!==Q;){const T=kl(k),j=k.getBoundingClientRect(),P=pa(k),N=j.left+(k.clientLeft+parseFloat(P.paddingLeft))*T.x,A=j.top+(k.clientTop+parseFloat(P.paddingTop))*T.y;m*=T.x,p*=T.y,x*=T.x,g*=T.y,m+=N,p+=A,Q=Wt(k),k=lf(Q)}}return rc({width:x,height:g,x:m,y:p})}function zc(t,n){const s=Nc(t).scrollLeft;return n?n.left+s:js(Ta(t)).left+s}function q0(t,n){const s=t.getBoundingClientRect(),l=s.left+n.scrollLeft-zc(t,s),o=s.top+n.scrollTop;return{x:l,y:o}}function Fw(t){let{elements:n,rect:s,offsetParent:l,strategy:o}=t;const u=o==="fixed",d=Ta(l),O=n?Pc(n.floating):!1;if(l===d||O&&u)return s;let m={scrollLeft:0,scrollTop:0},p=ka(1);const x=ka(0),g=cn(l);if((g||!g&&!u)&&((Ml(l)!=="body"||ri(d))&&(m=Nc(l)),g)){const v=js(l);p=kl(l),x.x=v.x+l.clientLeft,x.y=v.y+l.clientTop}const b=d&&!g&&!u?q0(d,m):ka(0);return{width:s.width*p.x,height:s.height*p.y,x:s.x*p.x-m.scrollLeft*p.x+x.x+b.x,y:s.y*p.y-m.scrollTop*p.y+x.y+b.y}}function Kw(t){return Array.from(t.getClientRects())}function Jw(t){const n=Ta(t),s=Nc(t),l=t.ownerDocument.body,o=Dt(n.scrollWidth,n.clientWidth,l.scrollWidth,l.clientWidth),u=Dt(n.scrollHeight,n.clientHeight,l.scrollHeight,l.clientHeight);let d=-s.scrollLeft+zc(t);const O=-s.scrollTop;return pa(l).direction==="rtl"&&(d+=Dt(n.clientWidth,l.clientWidth)-o),{width:o,height:u,x:d,y:O}}const Eg=25;function ek(t,n){const s=Wt(t),l=Ta(t),o=s.visualViewport;let u=l.clientWidth,d=l.clientHeight,O=0,m=0;if(o){u=o.width,d=o.height;const x=_f();(!x||x&&n==="fixed")&&(O=o.offsetLeft,m=o.offsetTop)}const p=zc(l);if(p<=0){const x=l.ownerDocument,g=x.body,b=getComputedStyle(g),v=x.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,Q=Math.abs(l.clientWidth-g.clientWidth-v);Q<=Eg&&(u-=Q)}else p<=Eg&&(u+=p);return{width:u,height:d,x:O,y:m}}function tk(t,n){const s=js(t,!0,n==="fixed"),l=s.top+t.clientTop,o=s.left+t.clientLeft,u=cn(t)?kl(t):ka(1),d=t.clientWidth*u.x,O=t.clientHeight*u.y,m=o*u.x,p=l*u.y;return{width:d,height:O,x:m,y:p}}function qg(t,n,s){let l;if(n==="viewport")l=ek(t,s);else if(n==="document")l=Jw(Ta(t));else if(ma(n))l=tk(n,s);else{const o=E0(t);l={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return rc(l)}function M0(t,n){const s=Bn(t);return s===n||!ma(s)||Rl(s)?!1:pa(s).position==="fixed"||M0(s,n)}function ak(t,n){const s=n.get(t);if(s)return s;let l=Wr(t,[],!1).filter(O=>ma(O)&&Ml(O)!=="body"),o=null;const u=pa(t).position==="fixed";let d=u?Bn(t):t;for(;ma(d)&&!Rl(d);){const O=pa(d),m=Xf(d);!m&&O.position==="fixed"&&(o=null),(u?!m&&!o:!m&&O.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||ri(d)&&!m&&M0(t,d))?l=l.filter(x=>x!==d):o=O,d=Bn(d)}return n.set(t,l),l}function nk(t){let{element:n,boundary:s,rootBoundary:l,strategy:o}=t;const d=[...s==="clippingAncestors"?Pc(n)?[]:ak(n,this._c):[].concat(s),l],O=qg(n,d[0],o);let m=O.top,p=O.right,x=O.bottom,g=O.left;for(let b=1;b<d.length;b++){const v=qg(n,d[b],o);m=Dt(v.top,m),p=Wn(v.right,p),x=Wn(v.bottom,x),g=Dt(v.left,g)}return{width:p-g,height:x-m,x:g,y:m}}function sk(t){const{width:n,height:s}=A0(t);return{width:n,height:s}}function lk(t,n,s){const l=cn(n),o=Ta(n),u=s==="fixed",d=js(t,!0,u,n);let O={scrollLeft:0,scrollTop:0};const m=ka(0);function p(){m.x=zc(o)}if(l||!l&&!u)if((Ml(n)!=="body"||ri(o))&&(O=Nc(n)),l){const v=js(n,!0,u,n);m.x=v.x+n.clientLeft,m.y=v.y+n.clientTop}else o&&p();u&&!l&&o&&p();const x=o&&!l&&!u?q0(o,O):ka(0),g=d.left+O.scrollLeft-m.x-x.x,b=d.top+O.scrollTop-m.y-x.y;return{x:g,y:b,width:d.width,height:d.height}}function fO(t){return pa(t).position==="static"}function Mg(t,n){if(!cn(t)||pa(t).position==="fixed")return null;if(n)return n(t);let s=t.offsetParent;return Ta(t)===s&&(s=s.ownerDocument.body),s}function Y0(t,n){const s=Wt(t);if(Pc(t))return s;if(!cn(t)){let o=Bn(t);for(;o&&!Rl(o);){if(ma(o)&&!fO(o))return o;o=Bn(o)}return s}let l=Mg(t,n);for(;l&&Lw(l)&&fO(l);)l=Mg(l,n);return l&&Rl(l)&&fO(l)&&!Xf(l)?s:l||Bw(t)||s}const rk=async function(t){const n=this.getOffsetParent||Y0,s=this.getDimensions,l=await s(t.floating);return{reference:lk(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function ik(t){return pa(t).direction==="rtl"}const ok={convertOffsetParentRelativeRectToViewportRelativeRect:Fw,getDocumentElement:Ta,getClippingRect:nk,getOffsetParent:Y0,getElementRects:rk,getClientRects:Kw,getDimensions:sk,getScale:kl,isElement:ma,isRTL:ik};function V0(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function ck(t,n){let s=null,l;const o=Ta(t);function u(){var O;clearTimeout(l),(O=s)==null||O.disconnect(),s=null}function d(O,m){O===void 0&&(O=!1),m===void 0&&(m=1),u();const p=t.getBoundingClientRect(),{left:x,top:g,width:b,height:v}=p;if(O||n(),!b||!v)return;const Q=Xo(g),k=Xo(o.clientWidth-(x+b)),T=Xo(o.clientHeight-(g+v)),j=Xo(x),N={rootMargin:-Q+"px "+-k+"px "+-T+"px "+-j+"px",threshold:Dt(0,Wn(1,m))||1};let A=!0;function U(C){const X=C[0].intersectionRatio;if(X!==m){if(!A)return d();X?d(!1,X):l=setTimeout(()=>{d(!1,1e-7)},1e3)}X===1&&!V0(p,t.getBoundingClientRect())&&d(),A=!1}try{s=new IntersectionObserver(U,{...N,root:o.ownerDocument})}catch{s=new IntersectionObserver(U,N)}s.observe(t)}return d(!0),u}function uk(t,n,s,l){l===void 0&&(l={});const{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:O=typeof IntersectionObserver=="function",animationFrame:m=!1}=l,p=Zf(t),x=o||u?[...p?Wr(p):[],...n?Wr(n):[]]:[];x.forEach(j=>{o&&j.addEventListener("scroll",s,{passive:!0}),u&&j.addEventListener("resize",s)});const g=p&&O?ck(p,s):null;let b=-1,v=null;d&&(v=new ResizeObserver(j=>{let[P]=j;P&&P.target===p&&v&&n&&(v.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var N;(N=v)==null||N.observe(n)})),s()}),p&&!m&&v.observe(p),n&&v.observe(n));let Q,k=m?js(t):null;m&&T();function T(){const j=js(t);k&&!V0(k,j)&&s(),k=j,Q=requestAnimationFrame(T)}return s(),()=>{var j;x.forEach(P=>{o&&P.removeEventListener("scroll",s),u&&P.removeEventListener("resize",s)}),g==null||g(),(j=v)==null||j.disconnect(),v=null,m&&cancelAnimationFrame(Q)}}const dk=Yw,Ok=Vw,fk=Ew,hk=Gw,mk=qw,Yg=Aw,pk=Uw,xk=(t,n,s)=>{const l=new Map,o={platform:ok,...s},u={...o.platform,_c:l};return Zw(t,n,{...o,platform:u})};var gk=typeof document<"u",bk=function(){},Ho=gk?y.useLayoutEffect:bk;function ic(t,n){if(t===n)return!0;if(typeof t!=typeof n)return!1;if(typeof t=="function"&&t.toString()===n.toString())return!0;let s,l,o;if(t&&n&&typeof t=="object"){if(Array.isArray(t)){if(s=t.length,s!==n.length)return!1;for(l=s;l--!==0;)if(!ic(t[l],n[l]))return!1;return!0}if(o=Object.keys(t),s=o.length,s!==Object.keys(n).length)return!1;for(l=s;l--!==0;)if(!{}.hasOwnProperty.call(n,o[l]))return!1;for(l=s;l--!==0;){const u=o[l];if(!(u==="_owner"&&t.$$typeof)&&!ic(t[u],n[u]))return!1}return!0}return t!==t&&n!==n}function U0(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Vg(t,n){const s=U0(t);return Math.round(n*s)/s}function hO(t){const n=y.useRef(t);return Ho(()=>{n.current=t}),n}function vk(t){t===void 0&&(t={});const{placement:n="bottom",strategy:s="absolute",middleware:l=[],platform:o,elements:{reference:u,floating:d}={},transform:O=!0,whileElementsMounted:m,open:p}=t,[x,g]=y.useState({x:0,y:0,strategy:s,placement:n,middlewareData:{},isPositioned:!1}),[b,v]=y.useState(l);ic(b,l)||v(l);const[Q,k]=y.useState(null),[T,j]=y.useState(null),P=y.useCallback(I=>{I!==C.current&&(C.current=I,k(I))},[]),N=y.useCallback(I=>{I!==X.current&&(X.current=I,j(I))},[]),A=u||Q,U=d||T,C=y.useRef(null),X=y.useRef(null),$=y.useRef(x),W=m!=null,E=hO(m),ne=hO(o),re=hO(p),xe=y.useCallback(()=>{if(!C.current||!X.current)return;const I={placement:n,strategy:s,middleware:b};ne.current&&(I.platform=ne.current),xk(C.current,X.current,I).then(fe=>{const te={...fe,isPositioned:re.current!==!1};ie.current&&!ic($.current,te)&&($.current=te,y0.flushSync(()=>{g(te)}))})},[b,n,s,ne,re]);Ho(()=>{p===!1&&$.current.isPositioned&&($.current.isPositioned=!1,g(I=>({...I,isPositioned:!1})))},[p]);const ie=y.useRef(!1);Ho(()=>(ie.current=!0,()=>{ie.current=!1}),[]),Ho(()=>{if(A&&(C.current=A),U&&(X.current=U),A&&U){if(E.current)return E.current(A,U,xe);xe()}},[A,U,xe,E,W]);const J=y.useMemo(()=>({reference:C,floating:X,setReference:P,setFloating:N}),[P,N]),z=y.useMemo(()=>({reference:A,floating:U}),[A,U]),B=y.useMemo(()=>{const I={position:s,left:0,top:0};if(!z.floating)return I;const fe=Vg(z.floating,x.x),te=Vg(z.floating,x.y);return O?{...I,transform:"translate("+fe+"px, "+te+"px)",...U0(z.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:fe,top:te}},[s,O,z.floating,x.x,x.y]);return y.useMemo(()=>({...x,update:xe,refs:J,elements:z,floatingStyles:B}),[x,xe,J,z,B])}const yk=t=>{function n(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:t,fn(s){const{element:l,padding:o}=typeof t=="function"?t(s):t;return l&&n(l)?l.current!=null?Yg({element:l.current,padding:o}).fn(s):{}:l?Yg({element:l,padding:o}).fn(s):{}}}},Sk=(t,n)=>{const s=dk(t);return{name:s.name,fn:s.fn,options:[t,n]}},Qk=(t,n)=>{const s=Ok(t);return{name:s.name,fn:s.fn,options:[t,n]}},jk=(t,n)=>({fn:pk(t).fn,options:[t,n]}),wk=(t,n)=>{const s=fk(t);return{name:s.name,fn:s.fn,options:[t,n]}},kk=(t,n)=>{const s=hk(t);return{name:s.name,fn:s.fn,options:[t,n]}},$k=(t,n)=>{const s=mk(t);return{name:s.name,fn:s.fn,options:[t,n]}},Tk=(t,n)=>{const s=yk(t);return{name:s.name,fn:s.fn,options:[t,n]}};var Pk="Arrow",G0=y.forwardRef((t,n)=>{const{children:s,width:l=10,height:o=5,...u}=t;return i.jsx(Be.svg,{...u,ref:n,width:l,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?s:i.jsx("polygon",{points:"0,0 30,0 15,10"})})});G0.displayName=Pk;var Nk=G0;function zk(t){const[n,s]=y.useState(void 0);return sn(()=>{if(t){s({width:t.offsetWidth,height:t.offsetHeight});const l=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let d,O;if("borderBoxSize"in u){const m=u.borderBoxSize,p=Array.isArray(m)?m[0]:m;d=p.inlineSize,O=p.blockSize}else d=t.offsetWidth,O=t.offsetHeight;s({width:d,height:O})});return l.observe(t,{box:"border-box"}),()=>l.unobserve(t)}else s(void 0)},[t]),n}var Af="Popper",[L0,D0]=zs(Af),[Rk,W0]=L0(Af),B0=t=>{const{__scopePopper:n,children:s}=t,[l,o]=y.useState(null);return i.jsx(Rk,{scope:n,anchor:l,onAnchorChange:o,children:s})};B0.displayName=Af;var H0="PopperAnchor",I0=y.forwardRef((t,n)=>{const{__scopePopper:s,virtualRef:l,...o}=t,u=W0(H0,s),d=y.useRef(null),O=it(n,d),m=y.useRef(null);return y.useEffect(()=>{const p=m.current;m.current=(l==null?void 0:l.current)||d.current,p!==m.current&&u.onAnchorChange(m.current)}),l?null:i.jsx(Be.div,{...o,ref:O})});I0.displayName=H0;var Ef="PopperContent",[Ck,Xk]=L0(Ef),F0=y.forwardRef((t,n)=>{var ze,Ot,_e,at,bt,yt;const{__scopePopper:s,side:l="bottom",sideOffset:o=0,align:u="center",alignOffset:d=0,arrowPadding:O=0,avoidCollisions:m=!0,collisionBoundary:p=[],collisionPadding:x=0,sticky:g="partial",hideWhenDetached:b=!1,updatePositionStrategy:v="optimized",onPlaced:Q,...k}=t,T=W0(Ef,s),[j,P]=y.useState(null),N=it(n,Bt=>P(Bt)),[A,U]=y.useState(null),C=zk(A),X=(C==null?void 0:C.width)??0,$=(C==null?void 0:C.height)??0,W=l+(u!=="center"?"-"+u:""),E=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},ne=Array.isArray(p)?p:[p],re=ne.length>0,xe={padding:E,boundary:ne.filter(Zk),altBoundary:re},{refs:ie,floatingStyles:J,placement:z,isPositioned:B,middlewareData:I}=vk({strategy:"fixed",placement:W,whileElementsMounted:(...Bt)=>uk(...Bt,{animationFrame:v==="always"}),elements:{reference:T.anchor},middleware:[Sk({mainAxis:o+$,alignmentAxis:d}),m&&Qk({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?jk():void 0,...xe}),m&&wk({...xe}),kk({...xe,apply:({elements:Bt,rects:St,availableWidth:Ul,availableHeight:Gl})=>{const{width:Bc,height:mi}=St.reference,dn=Bt.floating.style;dn.setProperty("--radix-popper-available-width",`${Ul}px`),dn.setProperty("--radix-popper-available-height",`${Gl}px`),dn.setProperty("--radix-popper-anchor-width",`${Bc}px`),dn.setProperty("--radix-popper-anchor-height",`${mi}px`)}}),A&&Tk({element:A,padding:O}),Ak({arrowWidth:X,arrowHeight:$}),b&&$k({strategy:"referenceHidden",...xe})]}),[fe,te]=eb(z),Ae=zt(Q);sn(()=>{B&&(Ae==null||Ae())},[B,Ae]);const Se=(ze=I.arrow)==null?void 0:ze.x,ve=(Ot=I.arrow)==null?void 0:Ot.y,Xe=((_e=I.arrow)==null?void 0:_e.centerOffset)!==0,[D,oe]=y.useState();return sn(()=>{j&&oe(window.getComputedStyle(j).zIndex)},[j]),i.jsx("div",{ref:ie.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:B?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:D,"--radix-popper-transform-origin":[(at=I.transformOrigin)==null?void 0:at.x,(bt=I.transformOrigin)==null?void 0:bt.y].join(" "),...((yt=I.hide)==null?void 0:yt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:i.jsx(Ck,{scope:s,placedSide:fe,onArrowChange:U,arrowX:Se,arrowY:ve,shouldHideArrow:Xe,children:i.jsx(Be.div,{"data-side":fe,"data-align":te,...k,ref:N,style:{...k.style,animation:B?void 0:"none"}})})})});F0.displayName=Ef;var K0="PopperArrow",_k={top:"bottom",right:"left",bottom:"top",left:"right"},J0=y.forwardRef(function(n,s){const{__scopePopper:l,...o}=n,u=Xk(K0,l),d=_k[u.placedSide];return i.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:i.jsx(Nk,{...o,ref:s,style:{...o.style,display:"block"}})})});J0.displayName=K0;function Zk(t){return t!==null}var Ak=t=>({name:"transformOrigin",options:t,fn(n){var T,j,P;const{placement:s,rects:l,middlewareData:o}=n,d=((T=o.arrow)==null?void 0:T.centerOffset)!==0,O=d?0:t.arrowWidth,m=d?0:t.arrowHeight,[p,x]=eb(s),g={start:"0%",center:"50%",end:"100%"}[x],b=(((j=o.arrow)==null?void 0:j.x)??0)+O/2,v=(((P=o.arrow)==null?void 0:P.y)??0)+m/2;let Q="",k="";return p==="bottom"?(Q=d?g:`${b}px`,k=`${-m}px`):p==="top"?(Q=d?g:`${b}px`,k=`${l.floating.height+m}px`):p==="right"?(Q=`${-m}px`,k=d?g:`${v}px`):p==="left"&&(Q=`${l.floating.width+m}px`,k=d?g:`${v}px`),{data:{x:Q,y:k}}}});function eb(t){const[n,s="center"]=t.split("-");return[n,s]}var Ek=B0,qk=I0,Mk=F0,Yk=J0,Vk="Portal",qf=y.forwardRef((t,n)=>{var O;const{container:s,...l}=t,[o,u]=y.useState(!1);sn(()=>u(!0),[]);const d=s||o&&((O=globalThis==null?void 0:globalThis.document)==null?void 0:O.body);return d?xj.createPortal(i.jsx(Be.div,{...l,ref:n}),d):null});qf.displayName=Vk;function Uk(t,n){return y.useReducer((s,l)=>n[s][l]??s,t)}var ga=t=>{const{present:n,children:s}=t,l=Gk(n),o=typeof s=="function"?s({present:l.isPresent}):y.Children.only(s),u=it(l.ref,Lk(o));return typeof s=="function"||l.isPresent?y.cloneElement(o,{ref:u}):null};ga.displayName="Presence";function Gk(t){const[n,s]=y.useState(),l=y.useRef(null),o=y.useRef(t),u=y.useRef("none"),d=t?"mounted":"unmounted",[O,m]=Uk(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const p=_o(l.current);u.current=O==="mounted"?p:"none"},[O]),sn(()=>{const p=l.current,x=o.current;if(x!==t){const b=u.current,v=_o(p);t?m("MOUNT"):v==="none"||(p==null?void 0:p.display)==="none"?m("UNMOUNT"):m(x&&b!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,m]),sn(()=>{if(n){let p;const x=n.ownerDocument.defaultView??window,g=v=>{const k=_o(l.current).includes(CSS.escape(v.animationName));if(v.target===n&&k&&(m("ANIMATION_END"),!o.current)){const T=n.style.animationFillMode;n.style.animationFillMode="forwards",p=x.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=T)})}},b=v=>{v.target===n&&(u.current=_o(l.current))};return n.addEventListener("animationstart",b),n.addEventListener("animationcancel",g),n.addEventListener("animationend",g),()=>{x.clearTimeout(p),n.removeEventListener("animationstart",b),n.removeEventListener("animationcancel",g),n.removeEventListener("animationend",g)}}else m("ANIMATION_END")},[n,m]),{isPresent:["mounted","unmountSuspended"].includes(O),ref:y.useCallback(p=>{l.current=p?getComputedStyle(p):null,s(p)},[])}}function _o(t){return(t==null?void 0:t.animationName)||"none"}function Lk(t){var l,o;let n=(l=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:l.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var Dk=g0[" useInsertionEffect ".trim().toString()]||sn;function Rc({prop:t,defaultProp:n,onChange:s=()=>{},caller:l}){const[o,u,d]=Wk({defaultProp:n,onChange:s}),O=t!==void 0,m=O?t:o;{const x=y.useRef(t!==void 0);y.useEffect(()=>{const g=x.current;g!==O&&console.warn(`${l} is changing from ${g?"controlled":"uncontrolled"} to ${O?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=O},[O,l])}const p=y.useCallback(x=>{var g;if(O){const b=Bk(x)?x(t):x;b!==t&&((g=d.current)==null||g.call(d,b))}else u(x)},[O,t,u,d]);return[m,p]}function Wk({defaultProp:t,onChange:n}){const[s,l]=y.useState(t),o=y.useRef(s),u=y.useRef(n);return Dk(()=>{u.current=n},[n]),y.useEffect(()=>{var d;o.current!==s&&((d=u.current)==null||d.call(u,s),o.current=s)},[s,o]),[s,l,u]}function Bk(t){return typeof t=="function"}var Hk=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ik="VisuallyHidden",tb=y.forwardRef((t,n)=>i.jsx(Be.span,{...t,ref:n,style:{...Hk,...t.style}}));tb.displayName=Ik;var Fk=tb,[Cc]=zs("Tooltip",[D0]),Xc=D0(),ab="TooltipProvider",Kk=700,rf="tooltip.open",[Jk,Mf]=Cc(ab),nb=t=>{const{__scopeTooltip:n,delayDuration:s=Kk,skipDelayDuration:l=300,disableHoverableContent:o=!1,children:u}=t,d=y.useRef(!0),O=y.useRef(!1),m=y.useRef(0);return y.useEffect(()=>{const p=m.current;return()=>window.clearTimeout(p)},[]),i.jsx(Jk,{scope:n,isOpenDelayedRef:d,delayDuration:s,onOpen:y.useCallback(()=>{window.clearTimeout(m.current),d.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>d.current=!0,l)},[l]),isPointerInTransitRef:O,onPointerInTransitChange:y.useCallback(p=>{O.current=p},[]),disableHoverableContent:o,children:u})};nb.displayName=ab;var Br="Tooltip",[e$,ii]=Cc(Br),sb=t=>{const{__scopeTooltip:n,children:s,open:l,defaultOpen:o,onOpenChange:u,disableHoverableContent:d,delayDuration:O}=t,m=Mf(Br,t.__scopeTooltip),p=Xc(n),[x,g]=y.useState(null),b=wl(),v=y.useRef(0),Q=d??m.disableHoverableContent,k=O??m.delayDuration,T=y.useRef(!1),[j,P]=Rc({prop:l,defaultProp:o??!1,onChange:X=>{X?(m.onOpen(),document.dispatchEvent(new CustomEvent(rf))):m.onClose(),u==null||u(X)},caller:Br}),N=y.useMemo(()=>j?T.current?"delayed-open":"instant-open":"closed",[j]),A=y.useCallback(()=>{window.clearTimeout(v.current),v.current=0,T.current=!1,P(!0)},[P]),U=y.useCallback(()=>{window.clearTimeout(v.current),v.current=0,P(!1)},[P]),C=y.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{T.current=!0,P(!0),v.current=0},k)},[k,P]);return y.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),i.jsx(Ek,{...p,children:i.jsx(e$,{scope:n,contentId:b,open:j,stateAttribute:N,trigger:x,onTriggerChange:g,onTriggerEnter:y.useCallback(()=>{m.isOpenDelayedRef.current?C():A()},[m.isOpenDelayedRef,C,A]),onTriggerLeave:y.useCallback(()=>{Q?U():(window.clearTimeout(v.current),v.current=0)},[U,Q]),onOpen:A,onClose:U,disableHoverableContent:Q,children:s})})};sb.displayName=Br;var of="TooltipTrigger",lb=y.forwardRef((t,n)=>{const{__scopeTooltip:s,...l}=t,o=ii(of,s),u=Mf(of,s),d=Xc(s),O=y.useRef(null),m=it(n,O,o.onTriggerChange),p=y.useRef(!1),x=y.useRef(!1),g=y.useCallback(()=>p.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),i.jsx(qk,{asChild:!0,...d,children:i.jsx(Be.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...l,ref:m,onPointerMove:Ee(t.onPointerMove,b=>{b.pointerType!=="touch"&&!x.current&&!u.isPointerInTransitRef.current&&(o.onTriggerEnter(),x.current=!0)}),onPointerLeave:Ee(t.onPointerLeave,()=>{o.onTriggerLeave(),x.current=!1}),onPointerDown:Ee(t.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:Ee(t.onFocus,()=>{p.current||o.onOpen()}),onBlur:Ee(t.onBlur,o.onClose),onClick:Ee(t.onClick,o.onClose)})})});lb.displayName=of;var Yf="TooltipPortal",[t$,a$]=Cc(Yf,{forceMount:void 0}),rb=t=>{const{__scopeTooltip:n,forceMount:s,children:l,container:o}=t,u=ii(Yf,n);return i.jsx(t$,{scope:n,forceMount:s,children:i.jsx(ga,{present:s||u.open,children:i.jsx(qf,{asChild:!0,container:o,children:l})})})};rb.displayName=Yf;var Cl="TooltipContent",ib=y.forwardRef((t,n)=>{const s=a$(Cl,t.__scopeTooltip),{forceMount:l=s.forceMount,side:o="top",...u}=t,d=ii(Cl,t.__scopeTooltip);return i.jsx(ga,{present:l||d.open,children:d.disableHoverableContent?i.jsx(ob,{side:o,...u,ref:n}):i.jsx(n$,{side:o,...u,ref:n})})}),n$=y.forwardRef((t,n)=>{const s=ii(Cl,t.__scopeTooltip),l=Mf(Cl,t.__scopeTooltip),o=y.useRef(null),u=it(n,o),[d,O]=y.useState(null),{trigger:m,onClose:p}=s,x=o.current,{onPointerInTransitChange:g}=l,b=y.useCallback(()=>{O(null),g(!1)},[g]),v=y.useCallback((Q,k)=>{const T=Q.currentTarget,j={x:Q.clientX,y:Q.clientY},P=i$(j,T.getBoundingClientRect()),N=o$(j,P),A=c$(k.getBoundingClientRect()),U=d$([...N,...A]);O(U),g(!0)},[g]);return y.useEffect(()=>()=>b(),[b]),y.useEffect(()=>{if(m&&x){const Q=T=>v(T,x),k=T=>v(T,m);return m.addEventListener("pointerleave",Q),x.addEventListener("pointerleave",k),()=>{m.removeEventListener("pointerleave",Q),x.removeEventListener("pointerleave",k)}}},[m,x,v,b]),y.useEffect(()=>{if(d){const Q=k=>{const T=k.target,j={x:k.clientX,y:k.clientY},P=(m==null?void 0:m.contains(T))||(x==null?void 0:x.contains(T)),N=!u$(j,d);P?b():N&&(b(),p())};return document.addEventListener("pointermove",Q),()=>document.removeEventListener("pointermove",Q)}},[m,x,d,p,b]),i.jsx(ob,{...t,ref:u})}),[s$,l$]=Cc(Br,{isInside:!1}),r$=cw("TooltipContent"),ob=y.forwardRef((t,n)=>{const{__scopeTooltip:s,children:l,"aria-label":o,onEscapeKeyDown:u,onPointerDownOutside:d,...O}=t,m=ii(Cl,s),p=Xc(s),{onClose:x}=m;return y.useEffect(()=>(document.addEventListener(rf,x),()=>document.removeEventListener(rf,x)),[x]),y.useEffect(()=>{if(m.trigger){const g=b=>{const v=b.target;v!=null&&v.contains(m.trigger)&&x()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[m.trigger,x]),i.jsx(Nf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:g=>g.preventDefault(),onDismiss:x,children:i.jsxs(Mk,{"data-state":m.stateAttribute,...p,...O,ref:n,style:{...O.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[i.jsx(r$,{children:l}),i.jsx(s$,{scope:s,isInside:!0,children:i.jsx(Fk,{id:m.contentId,role:"tooltip",children:o||l})})]})})});ib.displayName=Cl;var cb="TooltipArrow",ub=y.forwardRef((t,n)=>{const{__scopeTooltip:s,...l}=t,o=Xc(s);return l$(cb,s).isInside?null:i.jsx(Yk,{...o,...l,ref:n})});ub.displayName=cb;function i$(t,n){const s=Math.abs(n.top-t.y),l=Math.abs(n.bottom-t.y),o=Math.abs(n.right-t.x),u=Math.abs(n.left-t.x);switch(Math.min(s,l,o,u)){case u:return"left";case o:return"right";case s:return"top";case l:return"bottom";default:throw new Error("unreachable")}}function o$(t,n,s=5){const l=[];switch(n){case"top":l.push({x:t.x-s,y:t.y+s},{x:t.x+s,y:t.y+s});break;case"bottom":l.push({x:t.x-s,y:t.y-s},{x:t.x+s,y:t.y-s});break;case"left":l.push({x:t.x+s,y:t.y-s},{x:t.x+s,y:t.y+s});break;case"right":l.push({x:t.x-s,y:t.y-s},{x:t.x-s,y:t.y+s});break}return l}function c$(t){const{top:n,right:s,bottom:l,left:o}=t;return[{x:o,y:n},{x:s,y:n},{x:s,y:l},{x:o,y:l}]}function u$(t,n){const{x:s,y:l}=t;let o=!1;for(let u=0,d=n.length-1;u<n.length;d=u++){const O=n[u],m=n[d],p=O.x,x=O.y,g=m.x,b=m.y;x>l!=b>l&&s<(g-p)*(l-x)/(b-x)+p&&(o=!o)}return o}function d$(t){const n=t.slice();return n.sort((s,l)=>s.x<l.x?-1:s.x>l.x?1:s.y<l.y?-1:s.y>l.y?1:0),O$(n)}function O$(t){if(t.length<=1)return t.slice();const n=[];for(let l=0;l<t.length;l++){const o=t[l];for(;n.length>=2;){const u=n[n.length-1],d=n[n.length-2];if((u.x-d.x)*(o.y-d.y)>=(u.y-d.y)*(o.x-d.x))n.pop();else break}n.push(o)}n.pop();const s=[];for(let l=t.length-1;l>=0;l--){const o=t[l];for(;s.length>=2;){const u=s[s.length-1],d=s[s.length-2];if((u.x-d.x)*(o.y-d.y)>=(u.y-d.y)*(o.x-d.x))s.pop();else break}s.push(o)}return s.pop(),n.length===1&&s.length===1&&n[0].x===s[0].x&&n[0].y===s[0].y?n:n.concat(s)}var f$=nb,h$=sb,m$=lb,p$=rb,x$=ib,g$=ub;function db(t){var n,s,l="";if(typeof t=="string"||typeof t=="number")l+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(s=db(t[n]))&&(l&&(l+=" "),l+=s)}else for(s in t)t[s]&&(l&&(l+=" "),l+=s);return l}function b$(){for(var t,n,s=0,l="",o=arguments.length;s<o;s++)(t=arguments[s])&&(n=db(t))&&(l&&(l+=" "),l+=n);return l}const v$=(t,n)=>{const s=new Array(t.length+n.length);for(let l=0;l<t.length;l++)s[l]=t[l];for(let l=0;l<n.length;l++)s[t.length+l]=n[l];return s},y$=(t,n)=>({classGroupId:t,validator:n}),Ob=(t=new Map,n=null,s)=>({nextPart:t,validators:n,classGroupId:s}),oc="-",Ug=[],S$="arbitrary..",Q$=t=>{const n=w$(t),{conflictingClassGroups:s,conflictingClassGroupModifiers:l}=t;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return j$(d);const O=d.split(oc),m=O[0]===""&&O.length>1?1:0;return fb(O,m,n)},getConflictingClassGroupIds:(d,O)=>{if(O){const m=l[d],p=s[d];return m?p?v$(p,m):m:p||Ug}return s[d]||Ug}}},fb=(t,n,s)=>{if(t.length-n===0)return s.classGroupId;const o=t[n],u=s.nextPart.get(o);if(u){const p=fb(t,n+1,u);if(p)return p}const d=s.validators;if(d===null)return;const O=n===0?t.join(oc):t.slice(n).join(oc),m=d.length;for(let p=0;p<m;p++){const x=d[p];if(x.validator(O))return x.classGroupId}},j$=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=t.slice(1,-1),s=n.indexOf(":"),l=n.slice(0,s);return l?S$+l:void 0})(),w$=t=>{const{theme:n,classGroups:s}=t;return k$(s,n)},k$=(t,n)=>{const s=Ob();for(const l in t){const o=t[l];Vf(o,s,l,n)}return s},Vf=(t,n,s,l)=>{const o=t.length;for(let u=0;u<o;u++){const d=t[u];$$(d,n,s,l)}},$$=(t,n,s,l)=>{if(typeof t=="string"){T$(t,n,s);return}if(typeof t=="function"){P$(t,n,s,l);return}N$(t,n,s,l)},T$=(t,n,s)=>{const l=t===""?n:hb(n,t);l.classGroupId=s},P$=(t,n,s,l)=>{if(z$(t)){Vf(t(l),n,s,l);return}n.validators===null&&(n.validators=[]),n.validators.push(y$(s,t))},N$=(t,n,s,l)=>{const o=Object.entries(t),u=o.length;for(let d=0;d<u;d++){const[O,m]=o[d];Vf(m,hb(n,O),s,l)}},hb=(t,n)=>{let s=t;const l=n.split(oc),o=l.length;for(let u=0;u<o;u++){const d=l[u];let O=s.nextPart.get(d);O||(O=Ob(),s.nextPart.set(d,O)),s=O}return s},z$=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,R$=t=>{if(t<1)return{get:()=>{},set:()=>{}};let n=0,s=Object.create(null),l=Object.create(null);const o=(u,d)=>{s[u]=d,n++,n>t&&(n=0,l=s,s=Object.create(null))};return{get(u){let d=s[u];if(d!==void 0)return d;if((d=l[u])!==void 0)return o(u,d),d},set(u,d){u in s?s[u]=d:o(u,d)}}},cf="!",Gg=":",C$=[],Lg=(t,n,s,l,o)=>({modifiers:t,hasImportantModifier:n,baseClassName:s,maybePostfixModifierPosition:l,isExternal:o}),X$=t=>{const{prefix:n,experimentalParseClassName:s}=t;let l=o=>{const u=[];let d=0,O=0,m=0,p;const x=o.length;for(let k=0;k<x;k++){const T=o[k];if(d===0&&O===0){if(T===Gg){u.push(o.slice(m,k)),m=k+1;continue}if(T==="/"){p=k;continue}}T==="["?d++:T==="]"?d--:T==="("?O++:T===")"&&O--}const g=u.length===0?o:o.slice(m);let b=g,v=!1;g.endsWith(cf)?(b=g.slice(0,-1),v=!0):g.startsWith(cf)&&(b=g.slice(1),v=!0);const Q=p&&p>m?p-m:void 0;return Lg(u,v,b,Q)};if(n){const o=n+Gg,u=l;l=d=>d.startsWith(o)?u(d.slice(o.length)):Lg(C$,!1,d,void 0,!0)}if(s){const o=l;l=u=>s({className:u,parseClassName:o})}return l},_$=t=>{const n=new Map;return t.orderSensitiveModifiers.forEach((s,l)=>{n.set(s,1e6+l)}),s=>{const l=[];let o=[];for(let u=0;u<s.length;u++){const d=s[u],O=d[0]==="[",m=n.has(d);O||m?(o.length>0&&(o.sort(),l.push(...o),o=[]),l.push(d)):o.push(d)}return o.length>0&&(o.sort(),l.push(...o)),l}},Z$=t=>({cache:R$(t.cacheSize),parseClassName:X$(t),sortModifiers:_$(t),...Q$(t)}),A$=/\s+/,E$=(t,n)=>{const{parseClassName:s,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:u}=n,d=[],O=t.trim().split(A$);let m="";for(let p=O.length-1;p>=0;p-=1){const x=O[p],{isExternal:g,modifiers:b,hasImportantModifier:v,baseClassName:Q,maybePostfixModifierPosition:k}=s(x);if(g){m=x+(m.length>0?" "+m:m);continue}let T=!!k,j=l(T?Q.substring(0,k):Q);if(!j){if(!T){m=x+(m.length>0?" "+m:m);continue}if(j=l(Q),!j){m=x+(m.length>0?" "+m:m);continue}T=!1}const P=b.length===0?"":b.length===1?b[0]:u(b).join(":"),N=v?P+cf:P,A=N+j;if(d.indexOf(A)>-1)continue;d.push(A);const U=o(j,T);for(let C=0;C<U.length;++C){const X=U[C];d.push(N+X)}m=x+(m.length>0?" "+m:m)}return m},q$=(...t)=>{let n=0,s,l,o="";for(;n<t.length;)(s=t[n++])&&(l=mb(s))&&(o&&(o+=" "),o+=l);return o},mb=t=>{if(typeof t=="string")return t;let n,s="";for(let l=0;l<t.length;l++)t[l]&&(n=mb(t[l]))&&(s&&(s+=" "),s+=n);return s},M$=(t,...n)=>{let s,l,o,u;const d=m=>{const p=n.reduce((x,g)=>g(x),t());return s=Z$(p),l=s.cache.get,o=s.cache.set,u=O,O(m)},O=m=>{const p=l(m);if(p)return p;const x=E$(m,s);return o(m,x),x};return u=d,(...m)=>u(q$(...m))},Y$=[],ct=t=>{const n=s=>s[t]||Y$;return n.isThemeGetter=!0,n},pb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,xb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,V$=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,U$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,G$=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,L$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,D$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,W$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,An=t=>V$.test(t),Qe=t=>!!t&&!Number.isNaN(Number(t)),En=t=>!!t&&Number.isInteger(Number(t)),mO=t=>t.endsWith("%")&&Qe(t.slice(0,-1)),Ha=t=>U$.test(t),gb=()=>!0,B$=t=>G$.test(t)&&!L$.test(t),Uf=()=>!1,H$=t=>D$.test(t),I$=t=>W$.test(t),F$=t=>!ue(t)&&!de(t),K$=t=>Kn(t,yb,Uf),ue=t=>pb.test(t),vs=t=>Kn(t,Sb,B$),Dg=t=>Kn(t,r5,Qe),J$=t=>Kn(t,jb,gb),e5=t=>Kn(t,Qb,Uf),Wg=t=>Kn(t,bb,Uf),t5=t=>Kn(t,vb,I$),Zo=t=>Kn(t,wb,H$),de=t=>xb.test(t),qr=t=>Rs(t,Sb),a5=t=>Rs(t,Qb),Bg=t=>Rs(t,bb),n5=t=>Rs(t,yb),s5=t=>Rs(t,vb),Ao=t=>Rs(t,wb,!0),l5=t=>Rs(t,jb,!0),Kn=(t,n,s)=>{const l=pb.exec(t);return l?l[1]?n(l[1]):s(l[2]):!1},Rs=(t,n,s=!1)=>{const l=xb.exec(t);return l?l[1]?n(l[1]):s:!1},bb=t=>t==="position"||t==="percentage",vb=t=>t==="image"||t==="url",yb=t=>t==="length"||t==="size"||t==="bg-size",Sb=t=>t==="length",r5=t=>t==="number",Qb=t=>t==="family-name",jb=t=>t==="number"||t==="weight",wb=t=>t==="shadow",i5=()=>{const t=ct("color"),n=ct("font"),s=ct("text"),l=ct("font-weight"),o=ct("tracking"),u=ct("leading"),d=ct("breakpoint"),O=ct("container"),m=ct("spacing"),p=ct("radius"),x=ct("shadow"),g=ct("inset-shadow"),b=ct("text-shadow"),v=ct("drop-shadow"),Q=ct("blur"),k=ct("perspective"),T=ct("aspect"),j=ct("ease"),P=ct("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...A(),de,ue],C=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],$=()=>[de,ue,m],W=()=>[An,"full","auto",...$()],E=()=>[En,"none","subgrid",de,ue],ne=()=>["auto",{span:["full",En,de,ue]},En,de,ue],re=()=>[En,"auto",de,ue],xe=()=>["auto","min","max","fr",de,ue],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...$()],B=()=>[An,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],I=()=>[An,"screen","full","dvw","lvw","svw","min","max","fit",...$()],fe=()=>[An,"screen","full","lh","dvh","lvh","svh","min","max","fit",...$()],te=()=>[t,de,ue],Ae=()=>[...A(),Bg,Wg,{position:[de,ue]}],Se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ve=()=>["auto","cover","contain",n5,K$,{size:[de,ue]}],Xe=()=>[mO,qr,vs],D=()=>["","none","full",p,de,ue],oe=()=>["",Qe,qr,vs],ze=()=>["solid","dashed","dotted","double"],Ot=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_e=()=>[Qe,mO,Bg,Wg],at=()=>["","none",Q,de,ue],bt=()=>["none",Qe,de,ue],yt=()=>["none",Qe,de,ue],Bt=()=>[Qe,de,ue],St=()=>[An,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ha],breakpoint:[Ha],color:[gb],container:[Ha],"drop-shadow":[Ha],ease:["in","out","in-out"],font:[F$],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ha],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ha],shadow:[Ha],spacing:["px",Qe],text:[Ha],"text-shadow":[Ha],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",An,ue,de,T]}],container:["container"],columns:[{columns:[Qe,ue,de,O]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:U()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{"inset-s":W(),start:W()}],end:[{"inset-e":W(),end:W()}],"inset-bs":[{"inset-bs":W()}],"inset-be":[{"inset-be":W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[En,"auto",de,ue]}],basis:[{basis:[An,"full","auto",O,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Qe,An,"auto","initial","none",ue]}],grow:[{grow:["",Qe,de,ue]}],shrink:[{shrink:["",Qe,de,ue]}],order:[{order:[En,"first","last","none",de,ue]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":xe()}],"auto-rows":[{"auto-rows":xe()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pbs:[{pbs:$()}],pbe:[{pbe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],"inline-size":[{inline:["auto",...I()]}],"min-inline-size":[{"min-inline":["auto",...I()]}],"max-inline-size":[{"max-inline":["none",...I()]}],"block-size":[{block:["auto",...fe()]}],"min-block-size":[{"min-block":["auto",...fe()]}],"max-block-size":[{"max-block":["none",...fe()]}],w:[{w:[O,"screen",...B()]}],"min-w":[{"min-w":[O,"screen","none",...B()]}],"max-w":[{"max-w":[O,"screen","none","prose",{screen:[d]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",s,qr,vs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,l5,J$]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mO,ue]}],"font-family":[{font:[a5,e5,n]}],"font-features":[{"font-features":[ue]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,de,ue]}],"line-clamp":[{"line-clamp":[Qe,"none",de,Dg]}],leading:[{leading:[u,...$()]}],"list-image":[{"list-image":["none",de,ue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",de,ue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:te()}],"text-color":[{text:te()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ze(),"wavy"]}],"text-decoration-thickness":[{decoration:[Qe,"from-font","auto",de,vs]}],"text-decoration-color":[{decoration:te()}],"underline-offset":[{"underline-offset":[Qe,"auto",de,ue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de,ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de,ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ae()}],"bg-repeat":[{bg:Se()}],"bg-size":[{bg:ve()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},En,de,ue],radial:["",de,ue],conic:[En,de,ue]},s5,t5]}],"bg-color":[{bg:te()}],"gradient-from-pos":[{from:Xe()}],"gradient-via-pos":[{via:Xe()}],"gradient-to-pos":[{to:Xe()}],"gradient-from":[{from:te()}],"gradient-via":[{via:te()}],"gradient-to":[{to:te()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-bs":[{"border-bs":oe()}],"border-w-be":[{"border-be":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ze(),"hidden","none"]}],"divide-style":[{divide:[...ze(),"hidden","none"]}],"border-color":[{border:te()}],"border-color-x":[{"border-x":te()}],"border-color-y":[{"border-y":te()}],"border-color-s":[{"border-s":te()}],"border-color-e":[{"border-e":te()}],"border-color-bs":[{"border-bs":te()}],"border-color-be":[{"border-be":te()}],"border-color-t":[{"border-t":te()}],"border-color-r":[{"border-r":te()}],"border-color-b":[{"border-b":te()}],"border-color-l":[{"border-l":te()}],"divide-color":[{divide:te()}],"outline-style":[{outline:[...ze(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Qe,de,ue]}],"outline-w":[{outline:["",Qe,qr,vs]}],"outline-color":[{outline:te()}],shadow:[{shadow:["","none",x,Ao,Zo]}],"shadow-color":[{shadow:te()}],"inset-shadow":[{"inset-shadow":["none",g,Ao,Zo]}],"inset-shadow-color":[{"inset-shadow":te()}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:te()}],"ring-offset-w":[{"ring-offset":[Qe,vs]}],"ring-offset-color":[{"ring-offset":te()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":te()}],"text-shadow":[{"text-shadow":["none",b,Ao,Zo]}],"text-shadow-color":[{"text-shadow":te()}],opacity:[{opacity:[Qe,de,ue]}],"mix-blend":[{"mix-blend":[...Ot(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ot()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":_e()}],"mask-image-linear-to-pos":[{"mask-linear-to":_e()}],"mask-image-linear-from-color":[{"mask-linear-from":te()}],"mask-image-linear-to-color":[{"mask-linear-to":te()}],"mask-image-t-from-pos":[{"mask-t-from":_e()}],"mask-image-t-to-pos":[{"mask-t-to":_e()}],"mask-image-t-from-color":[{"mask-t-from":te()}],"mask-image-t-to-color":[{"mask-t-to":te()}],"mask-image-r-from-pos":[{"mask-r-from":_e()}],"mask-image-r-to-pos":[{"mask-r-to":_e()}],"mask-image-r-from-color":[{"mask-r-from":te()}],"mask-image-r-to-color":[{"mask-r-to":te()}],"mask-image-b-from-pos":[{"mask-b-from":_e()}],"mask-image-b-to-pos":[{"mask-b-to":_e()}],"mask-image-b-from-color":[{"mask-b-from":te()}],"mask-image-b-to-color":[{"mask-b-to":te()}],"mask-image-l-from-pos":[{"mask-l-from":_e()}],"mask-image-l-to-pos":[{"mask-l-to":_e()}],"mask-image-l-from-color":[{"mask-l-from":te()}],"mask-image-l-to-color":[{"mask-l-to":te()}],"mask-image-x-from-pos":[{"mask-x-from":_e()}],"mask-image-x-to-pos":[{"mask-x-to":_e()}],"mask-image-x-from-color":[{"mask-x-from":te()}],"mask-image-x-to-color":[{"mask-x-to":te()}],"mask-image-y-from-pos":[{"mask-y-from":_e()}],"mask-image-y-to-pos":[{"mask-y-to":_e()}],"mask-image-y-from-color":[{"mask-y-from":te()}],"mask-image-y-to-color":[{"mask-y-to":te()}],"mask-image-radial":[{"mask-radial":[de,ue]}],"mask-image-radial-from-pos":[{"mask-radial-from":_e()}],"mask-image-radial-to-pos":[{"mask-radial-to":_e()}],"mask-image-radial-from-color":[{"mask-radial-from":te()}],"mask-image-radial-to-color":[{"mask-radial-to":te()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[Qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":_e()}],"mask-image-conic-to-pos":[{"mask-conic-to":_e()}],"mask-image-conic-from-color":[{"mask-conic-from":te()}],"mask-image-conic-to-color":[{"mask-conic-to":te()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ae()}],"mask-repeat":[{mask:Se()}],"mask-size":[{mask:ve()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",de,ue]}],filter:[{filter:["","none",de,ue]}],blur:[{blur:at()}],brightness:[{brightness:[Qe,de,ue]}],contrast:[{contrast:[Qe,de,ue]}],"drop-shadow":[{"drop-shadow":["","none",v,Ao,Zo]}],"drop-shadow-color":[{"drop-shadow":te()}],grayscale:[{grayscale:["",Qe,de,ue]}],"hue-rotate":[{"hue-rotate":[Qe,de,ue]}],invert:[{invert:["",Qe,de,ue]}],saturate:[{saturate:[Qe,de,ue]}],sepia:[{sepia:["",Qe,de,ue]}],"backdrop-filter":[{"backdrop-filter":["","none",de,ue]}],"backdrop-blur":[{"backdrop-blur":at()}],"backdrop-brightness":[{"backdrop-brightness":[Qe,de,ue]}],"backdrop-contrast":[{"backdrop-contrast":[Qe,de,ue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Qe,de,ue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qe,de,ue]}],"backdrop-invert":[{"backdrop-invert":["",Qe,de,ue]}],"backdrop-opacity":[{"backdrop-opacity":[Qe,de,ue]}],"backdrop-saturate":[{"backdrop-saturate":[Qe,de,ue]}],"backdrop-sepia":[{"backdrop-sepia":["",Qe,de,ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",de,ue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Qe,"initial",de,ue]}],ease:[{ease:["linear","initial",j,de,ue]}],delay:[{delay:[Qe,de,ue]}],animate:[{animate:["none",P,de,ue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,de,ue]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:bt()}],"rotate-x":[{"rotate-x":bt()}],"rotate-y":[{"rotate-y":bt()}],"rotate-z":[{"rotate-z":bt()}],scale:[{scale:yt()}],"scale-x":[{"scale-x":yt()}],"scale-y":[{"scale-y":yt()}],"scale-z":[{"scale-z":yt()}],"scale-3d":["scale-3d"],skew:[{skew:Bt()}],"skew-x":[{"skew-x":Bt()}],"skew-y":[{"skew-y":Bt()}],transform:[{transform:[de,ue,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:St()}],"translate-x":[{"translate-x":St()}],"translate-y":[{"translate-y":St()}],"translate-z":[{"translate-z":St()}],"translate-none":["translate-none"],accent:[{accent:te()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:te()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",de,ue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mbs":[{"scroll-mbs":$()}],"scroll-mbe":[{"scroll-mbe":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pbs":[{"scroll-pbs":$()}],"scroll-pbe":[{"scroll-pbe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",de,ue]}],fill:[{fill:["none",...te()]}],"stroke-w":[{stroke:[Qe,qr,vs,Dg]}],stroke:[{stroke:["none",...te()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},o5=M$(i5);function le(...t){return o5(b$(t))}function c5({children:t}){return i.jsx(f$,{delayDuration:300,children:t})}function Hg({children:t,content:n,side:s="top",className:l}){return n?i.jsxs(h$,{children:[i.jsx(m$,{asChild:!0,children:t}),i.jsx(p$,{children:i.jsxs(x$,{side:s,sideOffset:6,className:le("z-50 px-2.5 py-1.5 text-xs font-sans","bg-surface-4 text-text-0 border border-border rounded-md shadow-lg","animate-in fade-in-0 zoom-in-95",l),children:[n,i.jsx(g$,{className:"fill-surface-4"})]})})]}):t}/**
|
|
30
|
-
* @license lucide-react v1.7.0 - ISC
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the ISC license.
|
|
33
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/const kb=(...t)=>t.filter((n,s,l)=>!!n&&n.trim()!==""&&l.indexOf(n)===s).join(" ").trim();/**
|
|
35
|
-
* @license lucide-react v1.7.0 - ISC
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the ISC license.
|
|
38
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/const u5=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
40
|
-
* @license lucide-react v1.7.0 - ISC
|
|
41
|
-
*
|
|
42
|
-
* This source code is licensed under the ISC license.
|
|
43
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/const d5=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,s,l)=>l?l.toUpperCase():s.toLowerCase());/**
|
|
45
|
-
* @license lucide-react v1.7.0 - ISC
|
|
46
|
-
*
|
|
47
|
-
* This source code is licensed under the ISC license.
|
|
48
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/const Ig=t=>{const n=d5(t);return n.charAt(0).toUpperCase()+n.slice(1)};/**
|
|
50
|
-
* @license lucide-react v1.7.0 - ISC
|
|
51
|
-
*
|
|
52
|
-
* This source code is licensed under the ISC license.
|
|
53
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/var pO={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
55
|
-
* @license lucide-react v1.7.0 - ISC
|
|
56
|
-
*
|
|
57
|
-
* This source code is licensed under the ISC license.
|
|
58
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/const O5=t=>{for(const n in t)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},f5=y.createContext({}),h5=()=>y.useContext(f5),m5=y.forwardRef(({color:t,size:n,strokeWidth:s,absoluteStrokeWidth:l,className:o="",children:u,iconNode:d,...O},m)=>{const{size:p=24,strokeWidth:x=2,absoluteStrokeWidth:g=!1,color:b="currentColor",className:v=""}=h5()??{},Q=l??g?Number(s??x)*24/Number(n??p):s??x;return y.createElement("svg",{ref:m,...pO,width:n??p??pO.width,height:n??p??pO.height,stroke:t??b,strokeWidth:Q,className:kb("lucide",v,o),...!u&&!O5(O)&&{"aria-hidden":"true"},...O},[...d.map(([k,T])=>y.createElement(k,T)),...Array.isArray(u)?u:[u]])});/**
|
|
60
|
-
* @license lucide-react v1.7.0 - ISC
|
|
61
|
-
*
|
|
62
|
-
* This source code is licensed under the ISC license.
|
|
63
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/const ae=(t,n)=>{const s=y.forwardRef(({className:l,...o},u)=>y.createElement(m5,{ref:u,iconNode:n,className:kb(`lucide-${u5(Ig(t))}`,`lucide-${t}`,l),...o}));return s.displayName=Ig(t),s};/**
|
|
65
|
-
* @license lucide-react v1.7.0 - ISC
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the ISC license.
|
|
68
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/const p5=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],cc=ae("activity",p5);/**
|
|
70
|
-
* @license lucide-react v1.7.0 - ISC
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the ISC license.
|
|
73
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/const x5=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],g5=ae("arrow-up",x5);/**
|
|
75
|
-
* @license lucide-react v1.7.0 - ISC
|
|
76
|
-
*
|
|
77
|
-
* This source code is licensed under the ISC license.
|
|
78
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/const b5=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],v5=ae("book-open",b5);/**
|
|
80
|
-
* @license lucide-react v1.7.0 - ISC
|
|
81
|
-
*
|
|
82
|
-
* This source code is licensed under the ISC license.
|
|
83
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/const y5=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],S5=ae("brain",y5);/**
|
|
85
|
-
* @license lucide-react v1.7.0 - ISC
|
|
86
|
-
*
|
|
87
|
-
* This source code is licensed under the ISC license.
|
|
88
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/const Q5=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],j5=ae("calculator",Q5);/**
|
|
90
|
-
* @license lucide-react v1.7.0 - ISC
|
|
91
|
-
*
|
|
92
|
-
* This source code is licensed under the ISC license.
|
|
93
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/const w5=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],uc=ae("calendar",w5);/**
|
|
95
|
-
* @license lucide-react v1.7.0 - ISC
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the ISC license.
|
|
98
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/const k5=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],_c=ae("chart-column",k5);/**
|
|
100
|
-
* @license lucide-react v1.7.0 - ISC
|
|
101
|
-
*
|
|
102
|
-
* This source code is licensed under the ISC license.
|
|
103
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/const $5=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ia=ae("check",$5);/**
|
|
105
|
-
* @license lucide-react v1.7.0 - ISC
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the ISC license.
|
|
108
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/const T5=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Hn=ae("chevron-down",T5);/**
|
|
110
|
-
* @license lucide-react v1.7.0 - ISC
|
|
111
|
-
*
|
|
112
|
-
* This source code is licensed under the ISC license.
|
|
113
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
-
*/const P5=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],$b=ae("chevron-left",P5);/**
|
|
115
|
-
* @license lucide-react v1.7.0 - ISC
|
|
116
|
-
*
|
|
117
|
-
* This source code is licensed under the ISC license.
|
|
118
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/const N5=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],oi=ae("chevron-right",N5);/**
|
|
120
|
-
* @license lucide-react v1.7.0 - ISC
|
|
121
|
-
*
|
|
122
|
-
* This source code is licensed under the ISC license.
|
|
123
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
-
*/const z5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],on=ae("circle-alert",z5);/**
|
|
125
|
-
* @license lucide-react v1.7.0 - ISC
|
|
126
|
-
*
|
|
127
|
-
* This source code is licensed under the ISC license.
|
|
128
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
-
*/const R5=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Hr=ae("circle-check-big",R5);/**
|
|
130
|
-
* @license lucide-react v1.7.0 - ISC
|
|
131
|
-
*
|
|
132
|
-
* This source code is licensed under the ISC license.
|
|
133
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/const C5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],uf=ae("circle-check",C5);/**
|
|
135
|
-
* @license lucide-react v1.7.0 - ISC
|
|
136
|
-
*
|
|
137
|
-
* This source code is licensed under the ISC license.
|
|
138
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
-
*/const X5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],dc=ae("circle-question-mark",X5);/**
|
|
140
|
-
* @license lucide-react v1.7.0 - ISC
|
|
141
|
-
*
|
|
142
|
-
* This source code is licensed under the ISC license.
|
|
143
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
-
*/const _5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Tb=ae("circle-x",_5);/**
|
|
145
|
-
* @license lucide-react v1.7.0 - ISC
|
|
146
|
-
*
|
|
147
|
-
* This source code is licensed under the ISC license.
|
|
148
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
-
*/const Z5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],df=ae("clock",Z5);/**
|
|
150
|
-
* @license lucide-react v1.7.0 - ISC
|
|
151
|
-
*
|
|
152
|
-
* This source code is licensed under the ISC license.
|
|
153
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
-
*/const A5=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],E5=ae("cloud",A5);/**
|
|
155
|
-
* @license lucide-react v1.7.0 - ISC
|
|
156
|
-
*
|
|
157
|
-
* This source code is licensed under the ISC license.
|
|
158
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
-
*/const q5=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],un=ae("code-xml",q5);/**
|
|
160
|
-
* @license lucide-react v1.7.0 - ISC
|
|
161
|
-
*
|
|
162
|
-
* This source code is licensed under the ISC license.
|
|
163
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
-
*/const M5=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Of=ae("copy",M5);/**
|
|
165
|
-
* @license lucide-react v1.7.0 - ISC
|
|
166
|
-
*
|
|
167
|
-
* This source code is licensed under the ISC license.
|
|
168
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
-
*/const Y5=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Gf=ae("cpu",Y5);/**
|
|
170
|
-
* @license lucide-react v1.7.0 - ISC
|
|
171
|
-
*
|
|
172
|
-
* This source code is licensed under the ISC license.
|
|
173
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
-
*/const V5=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],U5=ae("database",V5);/**
|
|
175
|
-
* @license lucide-react v1.7.0 - ISC
|
|
176
|
-
*
|
|
177
|
-
* This source code is licensed under the ISC license.
|
|
178
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
-
*/const G5=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],L5=ae("dollar-sign",G5);/**
|
|
180
|
-
* @license lucide-react v1.7.0 - ISC
|
|
181
|
-
*
|
|
182
|
-
* This source code is licensed under the ISC license.
|
|
183
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
-
*/const D5=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Lf=ae("download",D5);/**
|
|
185
|
-
* @license lucide-react v1.7.0 - ISC
|
|
186
|
-
*
|
|
187
|
-
* This source code is licensed under the ISC license.
|
|
188
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
-
*/const W5=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Oc=ae("external-link",W5);/**
|
|
190
|
-
* @license lucide-react v1.7.0 - ISC
|
|
191
|
-
*
|
|
192
|
-
* This source code is licensed under the ISC license.
|
|
193
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
-
*/const B5=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Df=ae("eye-off",B5);/**
|
|
195
|
-
* @license lucide-react v1.7.0 - ISC
|
|
196
|
-
*
|
|
197
|
-
* This source code is licensed under the ISC license.
|
|
198
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
-
*/const H5=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ci=ae("eye",H5);/**
|
|
200
|
-
* @license lucide-react v1.7.0 - ISC
|
|
201
|
-
*
|
|
202
|
-
* This source code is licensed under the ISC license.
|
|
203
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
-
*/const I5=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],Pb=ae("file-pen",I5);/**
|
|
205
|
-
* @license lucide-react v1.7.0 - ISC
|
|
206
|
-
*
|
|
207
|
-
* This source code is licensed under the ISC license.
|
|
208
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
-
*/const F5=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],xO=ae("file-plus",F5);/**
|
|
210
|
-
* @license lucide-react v1.7.0 - ISC
|
|
211
|
-
*
|
|
212
|
-
* This source code is licensed under the ISC license.
|
|
213
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
-
*/const K5=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ln=ae("file-text",K5);/**
|
|
215
|
-
* @license lucide-react v1.7.0 - ISC
|
|
216
|
-
*
|
|
217
|
-
* This source code is licensed under the ISC license.
|
|
218
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
-
*/const J5=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],eT=ae("file",J5);/**
|
|
220
|
-
* @license lucide-react v1.7.0 - ISC
|
|
221
|
-
*
|
|
222
|
-
* This source code is licensed under the ISC license.
|
|
223
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
-
*/const tT=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],aT=ae("flame",tT);/**
|
|
225
|
-
* @license lucide-react v1.7.0 - ISC
|
|
226
|
-
*
|
|
227
|
-
* This source code is licensed under the ISC license.
|
|
228
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
-
*/const nT=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M2 10h20",key:"1ir3d8"}]],sT=ae("folder-closed",nT);/**
|
|
230
|
-
* @license lucide-react v1.7.0 - ISC
|
|
231
|
-
*
|
|
232
|
-
* This source code is licensed under the ISC license.
|
|
233
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
-
*/const lT=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Ir=ae("folder-open",lT);/**
|
|
235
|
-
* @license lucide-react v1.7.0 - ISC
|
|
236
|
-
*
|
|
237
|
-
* This source code is licensed under the ISC license.
|
|
238
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
-
*/const rT=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],gO=ae("folder-plus",rT);/**
|
|
240
|
-
* @license lucide-react v1.7.0 - ISC
|
|
241
|
-
*
|
|
242
|
-
* This source code is licensed under the ISC license.
|
|
243
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
244
|
-
*/const iT=[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]],Nb=ae("folder-search",iT);/**
|
|
245
|
-
* @license lucide-react v1.7.0 - ISC
|
|
246
|
-
*
|
|
247
|
-
* This source code is licensed under the ISC license.
|
|
248
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
249
|
-
*/const oT=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],zb=ae("folder",oT);/**
|
|
250
|
-
* @license lucide-react v1.7.0 - ISC
|
|
251
|
-
*
|
|
252
|
-
* This source code is licensed under the ISC license.
|
|
253
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
254
|
-
*/const cT=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Rb=ae("gauge",cT);/**
|
|
255
|
-
* @license lucide-react v1.7.0 - ISC
|
|
256
|
-
*
|
|
257
|
-
* This source code is licensed under the ISC license.
|
|
258
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
259
|
-
*/const uT=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],Cb=ae("hard-drive",uT);/**
|
|
260
|
-
* @license lucide-react v1.7.0 - ISC
|
|
261
|
-
*
|
|
262
|
-
* This source code is licensed under the ISC license.
|
|
263
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
264
|
-
*/const dT=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],OT=ae("headphones",dT);/**
|
|
265
|
-
* @license lucide-react v1.7.0 - ISC
|
|
266
|
-
*
|
|
267
|
-
* This source code is licensed under the ISC license.
|
|
268
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
269
|
-
*/const fT=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],hT=ae("heart",fT);/**
|
|
270
|
-
* @license lucide-react v1.7.0 - ISC
|
|
271
|
-
*
|
|
272
|
-
* This source code is licensed under the ISC license.
|
|
273
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
274
|
-
*/const mT=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],pT=ae("house",mT);/**
|
|
275
|
-
* @license lucide-react v1.7.0 - ISC
|
|
276
|
-
*
|
|
277
|
-
* This source code is licensed under the ISC license.
|
|
278
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
279
|
-
*/const xT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Xb=ae("info",xT);/**
|
|
280
|
-
* @license lucide-react v1.7.0 - ISC
|
|
281
|
-
*
|
|
282
|
-
* This source code is licensed under the ISC license.
|
|
283
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
284
|
-
*/const gT=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],fc=ae("key",gT);/**
|
|
285
|
-
* @license lucide-react v1.7.0 - ISC
|
|
286
|
-
*
|
|
287
|
-
* This source code is licensed under the ISC license.
|
|
288
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
-
*/const bT=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Fg=ae("layers",bT);/**
|
|
290
|
-
* @license lucide-react v1.7.0 - ISC
|
|
291
|
-
*
|
|
292
|
-
* This source code is licensed under the ISC license.
|
|
293
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
294
|
-
*/const vT=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],yT=ae("layout-dashboard",vT);/**
|
|
295
|
-
* @license lucide-react v1.7.0 - ISC
|
|
296
|
-
*
|
|
297
|
-
* This source code is licensed under the ISC license.
|
|
298
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
299
|
-
*/const ST=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],QT=ae("list-checks",ST);/**
|
|
300
|
-
* @license lucide-react v1.7.0 - ISC
|
|
301
|
-
*
|
|
302
|
-
* This source code is licensed under the ISC license.
|
|
303
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
304
|
-
*/const jT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Wf=ae("loader-circle",jT);/**
|
|
305
|
-
* @license lucide-react v1.7.0 - ISC
|
|
306
|
-
*
|
|
307
|
-
* This source code is licensed under the ISC license.
|
|
308
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
309
|
-
*/const wT=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],Bf=ae("log-in",wT);/**
|
|
310
|
-
* @license lucide-react v1.7.0 - ISC
|
|
311
|
-
*
|
|
312
|
-
* This source code is licensed under the ISC license.
|
|
313
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
314
|
-
*/const kT=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],_b=ae("log-out",kT);/**
|
|
315
|
-
* @license lucide-react v1.7.0 - ISC
|
|
316
|
-
*
|
|
317
|
-
* This source code is licensed under the ISC license.
|
|
318
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
319
|
-
*/const $T=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],TT=ae("map",$T);/**
|
|
320
|
-
* @license lucide-react v1.7.0 - ISC
|
|
321
|
-
*
|
|
322
|
-
* This source code is licensed under the ISC license.
|
|
323
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
324
|
-
*/const PT=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],NT=ae("maximize-2",PT);/**
|
|
325
|
-
* @license lucide-react v1.7.0 - ISC
|
|
326
|
-
*
|
|
327
|
-
* This source code is licensed under the ISC license.
|
|
328
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
329
|
-
*/const zT=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],RT=ae("megaphone",zT);/**
|
|
330
|
-
* @license lucide-react v1.7.0 - ISC
|
|
331
|
-
*
|
|
332
|
-
* This source code is licensed under the ISC license.
|
|
333
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
334
|
-
*/const CT=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Zb=ae("message-circle",CT);/**
|
|
335
|
-
* @license lucide-react v1.7.0 - ISC
|
|
336
|
-
*
|
|
337
|
-
* This source code is licensed under the ISC license.
|
|
338
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
339
|
-
*/const XT=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],ui=ae("message-square",XT);/**
|
|
340
|
-
* @license lucide-react v1.7.0 - ISC
|
|
341
|
-
*
|
|
342
|
-
* This source code is licensed under the ISC license.
|
|
343
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
344
|
-
*/const _T=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],ZT=ae("minimize-2",_T);/**
|
|
345
|
-
* @license lucide-react v1.7.0 - ISC
|
|
346
|
-
*
|
|
347
|
-
* This source code is licensed under the ISC license.
|
|
348
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
349
|
-
*/const AT=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Hf=ae("monitor",AT);/**
|
|
350
|
-
* @license lucide-react v1.7.0 - ISC
|
|
351
|
-
*
|
|
352
|
-
* This source code is licensed under the ISC license.
|
|
353
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
354
|
-
*/const ET=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],Ab=ae("network",ET);/**
|
|
355
|
-
* @license lucide-react v1.7.0 - ISC
|
|
356
|
-
*
|
|
357
|
-
* This source code is licensed under the ISC license.
|
|
358
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
359
|
-
*/const qT=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],Fr=ae("newspaper",qT);/**
|
|
360
|
-
* @license lucide-react v1.7.0 - ISC
|
|
361
|
-
*
|
|
362
|
-
* This source code is licensed under the ISC license.
|
|
363
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
364
|
-
*/const MT=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Eb=ae("package",MT);/**
|
|
365
|
-
* @license lucide-react v1.7.0 - ISC
|
|
366
|
-
*
|
|
367
|
-
* This source code is licensed under the ISC license.
|
|
368
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
369
|
-
*/const YT=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],VT=ae("pause",YT);/**
|
|
370
|
-
* @license lucide-react v1.7.0 - ISC
|
|
371
|
-
*
|
|
372
|
-
* This source code is licensed under the ISC license.
|
|
373
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
374
|
-
*/const UT=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],GT=ae("pen",UT);/**
|
|
375
|
-
* @license lucide-react v1.7.0 - ISC
|
|
376
|
-
*
|
|
377
|
-
* This source code is licensed under the ISC license.
|
|
378
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
379
|
-
*/const LT=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Zc=ae("pencil",LT);/**
|
|
380
|
-
* @license lucide-react v1.7.0 - ISC
|
|
381
|
-
*
|
|
382
|
-
* This source code is licensed under the ISC license.
|
|
383
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
384
|
-
*/const DT=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],WT=ae("play",DT);/**
|
|
385
|
-
* @license lucide-react v1.7.0 - ISC
|
|
386
|
-
*
|
|
387
|
-
* This source code is licensed under the ISC license.
|
|
388
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
389
|
-
*/const BT=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],Kg=ae("plug-zap",BT);/**
|
|
390
|
-
* @license lucide-react v1.7.0 - ISC
|
|
391
|
-
*
|
|
392
|
-
* This source code is licensed under the ISC license.
|
|
393
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
394
|
-
*/const HT=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],qb=ae("plug",HT);/**
|
|
395
|
-
* @license lucide-react v1.7.0 - ISC
|
|
396
|
-
*
|
|
397
|
-
* This source code is licensed under the ISC license.
|
|
398
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
399
|
-
*/const IT=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],In=ae("plus",IT);/**
|
|
400
|
-
* @license lucide-react v1.7.0 - ISC
|
|
401
|
-
*
|
|
402
|
-
* This source code is licensed under the ISC license.
|
|
403
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
404
|
-
*/const FT=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],KT=ae("presentation",FT);/**
|
|
405
|
-
* @license lucide-react v1.7.0 - ISC
|
|
406
|
-
*
|
|
407
|
-
* This source code is licensed under the ISC license.
|
|
408
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
409
|
-
*/const JT=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],Mb=ae("puzzle",JT);/**
|
|
410
|
-
* @license lucide-react v1.7.0 - ISC
|
|
411
|
-
*
|
|
412
|
-
* This source code is licensed under the ISC license.
|
|
413
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
414
|
-
*/const eP=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],If=ae("radio",eP);/**
|
|
415
|
-
* @license lucide-react v1.7.0 - ISC
|
|
416
|
-
*
|
|
417
|
-
* This source code is licensed under the ISC license.
|
|
418
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
419
|
-
*/const tP=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Jn=ae("refresh-cw",tP);/**
|
|
420
|
-
* @license lucide-react v1.7.0 - ISC
|
|
421
|
-
*
|
|
422
|
-
* This source code is licensed under the ISC license.
|
|
423
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
424
|
-
*/const aP=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],Yb=ae("rocket",aP);/**
|
|
425
|
-
* @license lucide-react v1.7.0 - ISC
|
|
426
|
-
*
|
|
427
|
-
* This source code is licensed under the ISC license.
|
|
428
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
429
|
-
*/const nP=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],Yl=ae("rotate-cw",nP);/**
|
|
430
|
-
* @license lucide-react v1.7.0 - ISC
|
|
431
|
-
*
|
|
432
|
-
* This source code is licensed under the ISC license.
|
|
433
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
434
|
-
*/const sP=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],lP=ae("save",sP);/**
|
|
435
|
-
* @license lucide-react v1.7.0 - ISC
|
|
436
|
-
*
|
|
437
|
-
* This source code is licensed under the ISC license.
|
|
438
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
439
|
-
*/const rP=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Vl=ae("search",rP);/**
|
|
440
|
-
* @license lucide-react v1.7.0 - ISC
|
|
441
|
-
*
|
|
442
|
-
* This source code is licensed under the ISC license.
|
|
443
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
444
|
-
*/const iP=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Ff=ae("send",iP);/**
|
|
445
|
-
* @license lucide-react v1.7.0 - ISC
|
|
446
|
-
*
|
|
447
|
-
* This source code is licensed under the ISC license.
|
|
448
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
449
|
-
*/const oP=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Vb=ae("server",oP);/**
|
|
450
|
-
* @license lucide-react v1.7.0 - ISC
|
|
451
|
-
*
|
|
452
|
-
* This source code is licensed under the ISC license.
|
|
453
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
454
|
-
*/const cP=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ub=ae("settings",cP);/**
|
|
455
|
-
* @license lucide-react v1.7.0 - ISC
|
|
456
|
-
*
|
|
457
|
-
* This source code is licensed under the ISC license.
|
|
458
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
459
|
-
*/const uP=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Gb=ae("shield-check",uP);/**
|
|
460
|
-
* @license lucide-react v1.7.0 - ISC
|
|
461
|
-
*
|
|
462
|
-
* This source code is licensed under the ISC license.
|
|
463
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
464
|
-
*/const dP=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]],OP=ae("shield-x",dP);/**
|
|
465
|
-
* @license lucide-react v1.7.0 - ISC
|
|
466
|
-
*
|
|
467
|
-
* This source code is licensed under the ISC license.
|
|
468
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
469
|
-
*/const fP=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Kr=ae("shield",fP);/**
|
|
470
|
-
* @license lucide-react v1.7.0 - ISC
|
|
471
|
-
*
|
|
472
|
-
* This source code is licensed under the ISC license.
|
|
473
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
474
|
-
*/const hP=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],bO=ae("shopping-bag",hP);/**
|
|
475
|
-
* @license lucide-react v1.7.0 - ISC
|
|
476
|
-
*
|
|
477
|
-
* This source code is licensed under the ISC license.
|
|
478
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
479
|
-
*/const mP=[["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z",key:"1o5pge"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]],Kf=ae("skull",mP);/**
|
|
480
|
-
* @license lucide-react v1.7.0 - ISC
|
|
481
|
-
*
|
|
482
|
-
* This source code is licensed under the ISC license.
|
|
483
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
484
|
-
*/const pP=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Lb=ae("sparkles",pP);/**
|
|
485
|
-
* @license lucide-react v1.7.0 - ISC
|
|
486
|
-
*
|
|
487
|
-
* This source code is licensed under the ISC license.
|
|
488
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
489
|
-
*/const xP=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],Db=ae("star",xP);/**
|
|
490
|
-
* @license lucide-react v1.7.0 - ISC
|
|
491
|
-
*
|
|
492
|
-
* This source code is licensed under the ISC license.
|
|
493
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
494
|
-
*/const gP=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],di=ae("terminal",gP);/**
|
|
495
|
-
* @license lucide-react v1.7.0 - ISC
|
|
496
|
-
*
|
|
497
|
-
* This source code is licensed under the ISC license.
|
|
498
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
499
|
-
*/const bP=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],Jf=ae("test-tube",bP);/**
|
|
500
|
-
* @license lucide-react v1.7.0 - ISC
|
|
501
|
-
*
|
|
502
|
-
* This source code is licensed under the ISC license.
|
|
503
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
504
|
-
*/const vP=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Oi=ae("trash-2",vP);/**
|
|
505
|
-
* @license lucide-react v1.7.0 - ISC
|
|
506
|
-
*
|
|
507
|
-
* This source code is licensed under the ISC license.
|
|
508
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
509
|
-
*/const yP=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ac=ae("triangle-alert",yP);/**
|
|
510
|
-
* @license lucide-react v1.7.0 - ISC
|
|
511
|
-
*
|
|
512
|
-
* This source code is licensed under the ISC license.
|
|
513
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
514
|
-
*/const SP=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],QP=ae("upload",SP);/**
|
|
515
|
-
* @license lucide-react v1.7.0 - ISC
|
|
516
|
-
*
|
|
517
|
-
* This source code is licensed under the ISC license.
|
|
518
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
519
|
-
*/const jP=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],wP=ae("user-check",jP);/**
|
|
520
|
-
* @license lucide-react v1.7.0 - ISC
|
|
521
|
-
*
|
|
522
|
-
* This source code is licensed under the ISC license.
|
|
523
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
524
|
-
*/const kP=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],$P=ae("user-plus",kP);/**
|
|
525
|
-
* @license lucide-react v1.7.0 - ISC
|
|
526
|
-
*
|
|
527
|
-
* This source code is licensed under the ISC license.
|
|
528
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
529
|
-
*/const TP=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Wb=ae("user",TP);/**
|
|
530
|
-
* @license lucide-react v1.7.0 - ISC
|
|
531
|
-
*
|
|
532
|
-
* This source code is licensed under the ISC license.
|
|
533
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
534
|
-
*/const PP=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],fi=ae("users",PP);/**
|
|
535
|
-
* @license lucide-react v1.7.0 - ISC
|
|
536
|
-
*
|
|
537
|
-
* This source code is licensed under the ISC license.
|
|
538
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
539
|
-
*/const NP=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],zP=ae("wrench",NP);/**
|
|
540
|
-
* @license lucide-react v1.7.0 - ISC
|
|
541
|
-
*
|
|
542
|
-
* This source code is licensed under the ISC license.
|
|
543
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
544
|
-
*/const RP=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Rt=ae("x",RP);/**
|
|
545
|
-
* @license lucide-react v1.7.0 - ISC
|
|
546
|
-
*
|
|
547
|
-
* This source code is licensed under the ISC license.
|
|
548
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
549
|
-
*/const CP=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Pa=ae("zap",CP),XP={success:Hr,error:on,info:Xb,warning:Ac},_P={success:"border-l-success",error:"border-l-danger",info:"border-l-accent",warning:"border-l-warning"},ZP={success:"text-success",error:"text-danger",info:"text-accent",warning:"text-warning"},AP={success:3e3,error:0,info:5e3,warning:5e3};function EP({toast:t}){const n=G(o=>o.removeToast),s=XP[t.type]||Xb,l=AP[t.type];return y.useEffect(()=>{if(!l)return;const o=setTimeout(()=>n(t.id),l);return()=>clearTimeout(o)},[t.id,l,n]),i.jsxs(v0.div,{layout:!0,initial:{opacity:0,x:80,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:80,scale:.95},transition:{duration:.2},className:le("w-80 rounded-md border border-border bg-surface-1 shadow-xl","border-l-4 flex items-center gap-3 px-4 py-3",_P[t.type]),children:[i.jsx(s,{size:16,className:le("flex-shrink-0",ZP[t.type])}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("p",{className:"text-sm text-text-0 font-sans",children:t.message}),t.detail&&i.jsx("p",{className:"text-xs text-text-3 font-sans mt-0.5",children:t.detail})]}),i.jsx("button",{onClick:o=>{o.stopPropagation(),n(t.id)},className:"p-1.5 text-text-4 hover:text-text-1 hover:bg-surface-5 rounded transition-colors cursor-pointer flex-shrink-0 z-10",children:i.jsx(Rt,{size:14})})]})}function qP(){const t=G(n=>n.toasts);return i.jsx("div",{className:"fixed bottom-4 right-4 z-[100] flex flex-col-reverse gap-2",children:i.jsx(b0,{mode:"popLayout",children:t.slice(-3).map(n=>i.jsx(EP,{toast:n},n.id))})})}const MP=[{id:"agents",icon:Ab,label:"Agents"},{id:"editor",icon:un,label:"Editor"},{id:"dashboard",icon:_c,label:"Dashboard"},{id:"marketplace",icon:Mb,label:"Marketplace"},{id:"teams",icon:fi,label:"Teams"}],YP=[{id:"journalist",icon:Fr,label:"Journalist",panel:!0},{id:"settings",icon:Ub,label:"Settings",nav:!0}];function VP({activeView:t,detailPanel:n,onNavigate:s,onTogglePanel:l}){return i.jsxs("nav",{className:"w-12 flex-shrink-0 flex flex-col bg-surface-3 border-r border-border",children:[i.jsx("div",{className:"flex flex-col items-center gap-0.5 pt-2",children:MP.map(o=>i.jsx(Hg,{content:o.label,side:"right",children:i.jsx("button",{onClick:()=>s(o.id),className:le("w-10 h-10 flex items-center justify-center rounded-md transition-colors cursor-pointer",t===o.id?"text-text-0 bg-surface-5":"text-text-3 hover:text-text-1 hover:bg-surface-4"),children:i.jsx(o.icon,{size:20,strokeWidth:t===o.id?2:1.5})})},o.id))}),i.jsx("div",{className:"flex-1"}),i.jsx("div",{className:"flex flex-col items-center gap-0.5 pb-2",children:YP.map(o=>{const u=o.panel?(n==null?void 0:n.type)===o.id:t===o.id;return i.jsx(Hg,{content:o.label,side:"right",children:i.jsx("button",{onClick:()=>o.panel?l(o.id):s((o.nav,o.id)),className:le("w-10 h-10 flex items-center justify-center rounded-md transition-colors cursor-pointer",u?"text-text-0 bg-surface-5":"text-text-3 hover:text-text-1 hover:bg-surface-4"),children:i.jsx(o.icon,{size:20,strokeWidth:u?2:1.5})})},o.id)})})]})}const UP={agents:"Agents",editor:"Editor",dashboard:"Dashboard",marketplace:"Marketplace",teams:"Teams"};function GP({activeView:t,connected:n,daemonHost:s,editorActiveFile:l,onOpenCommandPalette:o,onSpawn:u}){const d=["Groove",UP[t]||t];return t==="editor"&&l&&d.push(l.split("/").pop()),i.jsxs("header",{className:"h-11 flex-shrink-0 flex items-center gap-3 px-4 bg-surface-3 border-b border-border",children:[i.jsx("img",{src:"/favicon.png",alt:"Groove",className:"h-7 w-7 rounded-full flex-shrink-0"}),s&&i.jsx("span",{className:"text-2xs font-mono font-semibold text-text-3 bg-surface-5 px-1.5 py-0.5 rounded flex-shrink-0",children:s}),i.jsx("div",{className:"flex-1 min-w-4"}),i.jsxs("button",{onClick:o,className:le("flex items-center gap-2.5 h-8 px-4 rounded-full w-full max-w-md","bg-surface-1 border border-border-subtle","text-sm text-text-4 font-sans","hover:border-border hover:text-text-3 transition-colors cursor-pointer"),children:[i.jsx(Vl,{size:14,className:"flex-shrink-0"}),i.jsx("span",{className:"flex-1 text-left",children:"Search commands..."}),i.jsx("kbd",{className:"text-2xs font-mono bg-surface-4 px-1.5 py-0.5 rounded-full text-text-4",children:"Cmd+K"})]}),i.jsx("div",{className:"flex-1 min-w-4"}),i.jsx("div",{className:"flex items-center gap-1 text-xs font-sans text-text-3 flex-shrink-0",children:d.map((O,m)=>i.jsxs("span",{className:"flex items-center gap-1",children:[m>0&&i.jsx(oi,{size:11,className:"text-text-4"}),i.jsx("span",{className:le(m===d.length-1?"text-text-2":"text-text-4"),children:O})]},m))}),n&&i.jsxs("button",{onClick:u,className:"ml-1 flex items-center gap-1 h-7 px-3.5 rounded-full bg-accent/15 text-accent text-xs font-semibold font-sans hover:bg-accent/25 transition-colors cursor-pointer select-none flex-shrink-0",children:[i.jsx(In,{size:14}),"Spawn"]})]})}const LP={running:"var(--color-success)",starting:"var(--color-warning)",stopped:"var(--color-text-3)",crashed:"var(--color-danger)",completed:"var(--color-accent)",killed:"var(--color-text-3)",rotating:"var(--color-purple)"};function eh(t){return LP[t]||"var(--color-text-3)"}const DP={planner:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},backend:{bg:"rgba(51, 175, 188, 0.12)",text:"#33afbc",border:"#33afbc"},frontend:{bg:"rgba(229, 192, 123, 0.12)",text:"#e5c07b",border:"#e5c07b"},fullstack:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},testing:{bg:"rgba(97, 175, 239, 0.12)",text:"#61afef",border:"#61afef"},devops:{bg:"rgba(209, 154, 102, 0.12)",text:"#d19a66",border:"#d19a66"},docs:{bg:"rgba(139, 146, 158, 0.12)",text:"#8b929e",border:"#8b929e"},security:{bg:"rgba(224, 108, 117, 0.12)",text:"#e06c75",border:"#e06c75"},database:{bg:"rgba(198, 120, 221, 0.12)",text:"#c678dd",border:"#c678dd"},cmo:{bg:"rgba(229, 192, 123, 0.12)",text:"#e5c07b",border:"#e5c07b"},cfo:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},ea:{bg:"rgba(97, 175, 239, 0.12)",text:"#61afef",border:"#61afef"},support:{bg:"rgba(51, 175, 188, 0.12)",text:"#33afbc",border:"#33afbc"},analyst:{bg:"rgba(198, 120, 221, 0.12)",text:"#c678dd",border:"#c678dd"},creative:{bg:"rgba(229, 192, 123, 0.12)",text:"#e5c07b",border:"#e5c07b"},slides:{bg:"rgba(209, 154, 102, 0.12)",text:"#d19a66",border:"#d19a66"}};function Bb(t){const n=(t||"").toLowerCase();return DP[n]||{bg:"rgba(139, 146, 158, 0.12)",text:"#8b929e",border:"#8b929e"}}function ws({status:t,size:n="md",className:s}){const l=t==="running"||t==="starting",o=n==="sm"?"w-1.5 h-1.5":n==="lg"?"w-3 h-3":"w-2 h-2";return i.jsx("span",{className:le("rounded-full inline-block flex-shrink-0",l&&"animate-pulse",o,s),style:{background:eh(t)}})}function Je(t){return t==null||isNaN(t)?"0":t>=1e6?(t/1e6).toFixed(1).replace(/\.0$/,"")+"M":t>=1e3?(t/1e3).toFixed(1).replace(/\.0$/,"")+"k":Math.round(t).toLocaleString()}function Ec(t){return t==null||isNaN(t)?"$0":t>=1e3?"$"+(t/1e3).toFixed(1).replace(/\.0$/,"")+"k":t>=1||t>=.01?"$"+t.toFixed(2):"$"+t.toFixed(3)}function ks(t){return t==null||isNaN(t)?"0%":Math.round(t)+"%"}function qc(t){if(!t||t<0)return"0s";const n=Math.floor(t/86400),s=Math.floor(t%86400/3600),l=Math.floor(t%3600/60),o=Math.floor(t%60);return n>0?`${n}d ${s}h`:s>0?`${s}h ${l}m`:l>0?`${l}m ${o}s`:`${o}s`}function vt(t){if(!t)return"";const n=(Date.now()-new Date(t).getTime())/1e3;return n<5?"just now":n<60?`${Math.floor(n)}s ago`:n<3600?`${Math.floor(n/60)}m ago`:n<86400?`${Math.floor(n/3600)}h ago`:`${Math.floor(n/86400)}d ago`}function WP({connected:t,agentCount:n,runningCount:s,uptime:l,terminalVisible:o,onToggleTerminal:u}){return i.jsxs("footer",{className:"h-6 flex-shrink-0 flex items-center px-3 bg-surface-3 border-t border-border text-2xs font-sans select-none",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx(ws,{status:t?"running":"crashed",size:"sm"}),i.jsx("span",{className:t?"text-text-2":"text-danger",children:t?"Connected":"Offline"})]}),t&&l>0&&i.jsxs("span",{className:"text-text-4",children:["Up ",qc(l)]}),t&&n>0&&i.jsxs("span",{className:"text-text-4",children:[s,"/",n," agents"]})]}),i.jsx("div",{className:"flex-1"}),i.jsxs("a",{href:"https://docs.groovedev.ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 px-2 h-full text-text-3 hover:text-text-1 hover:bg-surface-5 transition-colors no-underline",children:[i.jsx(v5,{size:12}),i.jsx("span",{children:"Docs"})]}),i.jsxs("button",{onClick:u,className:le("flex items-center gap-1.5 px-2 h-full transition-colors cursor-pointer",o?"text-accent bg-accent/8 hover:bg-accent/12":"text-text-3 hover:text-text-1 hover:bg-surface-5"),children:[i.jsx(di,{size:12}),i.jsx("span",{children:"Terminal"}),i.jsx("kbd",{className:"font-mono text-text-4 ml-0.5",children:"Cmd+J"})]})]})}function BP({children:t,width:n,onWidthChange:s,onClose:l,className:o}){const u=y.useRef(!1),d=y.useRef(0),O=y.useRef(0),m=y.useCallback(p=>{p.preventDefault(),u.current=!0,d.current=p.clientX,O.current=n;function x(b){if(!u.current)return;const v=d.current-b.clientX,Q=Math.min(Math.max(O.current+v,380),window.innerWidth*.65);s(Q)}function g(){u.current=!1,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",g)}document.addEventListener("mousemove",x),document.addEventListener("mouseup",g)},[n,s]);return i.jsxs("aside",{className:le("flex-shrink-0 flex bg-surface-1 border-l border-border relative",o),style:{width:n},children:[i.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1 cursor-col-resize hover:bg-accent/30 transition-colors z-10",onMouseDown:m}),i.jsx("button",{onClick:l,className:"absolute top-3 right-3 z-10 p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:i.jsx(Rt,{size:14})}),i.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:t})]})}const HP=[{id:"nav:agents",label:"Go to Agents",icon:Ab,category:"Navigation",action:t=>{t.setActiveView("agents")}},{id:"nav:editor",label:"Go to Editor",icon:un,category:"Navigation",action:t=>{t.setActiveView("editor")}},{id:"nav:dashboard",label:"Go to Dashboard",icon:_c,category:"Navigation",action:t=>{t.setActiveView("dashboard")}},{id:"nav:marketplace",label:"Go to Marketplace",icon:Mb,category:"Navigation",action:t=>{t.setActiveView("marketplace")}},{id:"nav:teams",label:"Go to Teams",icon:fi,category:"Navigation",action:t=>{t.setActiveView("teams")}},{id:"action:spawn",label:"Spawn Agent",icon:In,category:"Actions",action:t=>{t.openDetail({type:"spawn"})}},{id:"action:terminal",label:"Toggle Terminal",icon:di,category:"Actions",action:t=>{t.setTerminalVisible(!t.terminalVisible)},shortcut:"Cmd+J"},{id:"action:journalist",label:"Toggle Journalist",icon:Fr,category:"Actions",action:t=>{var n;((n=t.detailPanel)==null?void 0:n.type)==="journalist"?t.closeDetail():t.openDetail({type:"journalist"})}}];function IP(){const t=G(v=>v.commandPaletteOpen),n=G(v=>v.toggleCommandPalette),s=G(v=>v.agents),l=G,[o,u]=y.useState(""),[d,O]=y.useState(0),m=y.useRef(null),p=y.useMemo(()=>{const v=s.flatMap(Q=>[{id:`chat:${Q.id}`,label:`Chat with ${Q.name}`,icon:ui,category:"Agents",action:k=>{k.selectAgent(Q.id)}},...Q.status==="running"?[{id:`rotate:${Q.id}`,label:`Rotate ${Q.name}`,icon:Yl,category:"Agents",action:k=>{k.rotateAgent(Q.id)}},{id:`kill:${Q.id}`,label:`Kill ${Q.name}`,icon:Kf,category:"Agents",action:k=>{k.killAgent(Q.id)}}]:[]]);return[...HP,...v]},[s]),x=y.useMemo(()=>{if(!o.trim())return p.slice(0,12);const v=o.toLowerCase();return p.filter(Q=>Q.label.toLowerCase().includes(v)||Q.category.toLowerCase().includes(v)).slice(0,12)},[p,o]);y.useEffect(()=>{t&&(u(""),O(0),setTimeout(()=>{var v;return(v=m.current)==null?void 0:v.focus()},50))},[t]),y.useEffect(()=>{d>=x.length&&O(Math.max(0,x.length-1))},[x.length,d]);function g(v){v.action(l.getState()),n()}function b(v){v.key==="ArrowDown"?(v.preventDefault(),O(Q=>Math.min(Q+1,x.length-1))):v.key==="ArrowUp"?(v.preventDefault(),O(Q=>Math.max(Q-1,0))):v.key==="Enter"&&x[d]?(v.preventDefault(),g(x[d])):v.key==="Escape"&&n()}return t?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"fixed inset-0 z-50 bg-black/40 backdrop-blur-sm",onClick:n}),i.jsx(b0,{children:i.jsxs(v0.div,{initial:{opacity:0,y:-20,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.98},transition:{duration:.15},className:"fixed top-[15%] left-1/2 -translate-x-1/2 z-50 w-[480px] max-h-[400px] bg-surface-1 border border-border rounded-lg shadow-2xl overflow-hidden",onKeyDown:b,children:[i.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 border-b border-border-subtle",children:[i.jsx(Vl,{size:16,className:"text-text-3 flex-shrink-0"}),i.jsx("input",{ref:m,value:o,onChange:v=>{u(v.target.value),O(0)},placeholder:"Type a command...",className:"flex-1 bg-transparent text-sm text-text-0 font-sans placeholder:text-text-4 focus:outline-none"})]}),i.jsxs("div",{className:"overflow-y-auto max-h-[320px] py-1",children:[x.length===0&&i.jsx("div",{className:"px-4 py-6 text-sm text-text-3 text-center font-sans",children:"No results"}),x.map((v,Q)=>i.jsxs("button",{onClick:()=>g(v),onMouseEnter:()=>O(Q),className:le("w-full flex items-center gap-3 px-4 py-2 text-sm font-sans cursor-pointer",Q===d?"bg-surface-5 text-text-0":"text-text-1 hover:bg-surface-4"),children:[i.jsx(v.icon,{size:16,className:"text-text-3 flex-shrink-0"}),i.jsx("span",{className:"flex-1 text-left",children:v.label}),i.jsx("span",{className:"text-2xs text-text-4",children:v.category}),v.shortcut&&i.jsx("kbd",{className:"text-2xs font-mono bg-surface-4 px-1 py-0.5 rounded text-text-3 ml-1",children:v.shortcut})]},v.id))]})]})})]}):null}function FP({children:t,detailContent:n,terminalContent:s}){const l=G(C=>C.activeView),o=G(C=>C.detailPanel),u=G(C=>C.connected),d=G(C=>C.tunneled),O=G(C=>C.daemonHost),m=G(C=>C.agents),p=G(C=>C.editorActiveFile),x=G(C=>C.detailPanelWidth),g=G(C=>C.terminalVisible),b=G(C=>C.terminalFullHeight),v=G(C=>C.setActiveView),Q=G(C=>C.openDetail),k=G(C=>C.closeDetail),T=G(C=>C.setDetailPanelWidth),j=G(C=>C.setTerminalVisible),P=G(C=>C.toggleCommandPalette),N=y.useMemo(()=>m.filter(C=>C.status==="running").length,[m]),A=y.useMemo(()=>[{key:"k",meta:!0,handler:()=>G.getState().toggleCommandPalette()},{key:"p",meta:!0,shift:!0,handler:()=>G.getState().toggleCommandPalette()},{key:"j",meta:!0,handler:()=>{const C=G.getState();C.setTerminalVisible(!C.terminalVisible)}},{key:"n",meta:!0,handler:()=>G.getState().openDetail({type:"spawn"})},{key:"1",meta:!0,handler:()=>G.getState().setActiveView("agents")},{key:"2",meta:!0,handler:()=>G.getState().setActiveView("editor")},{key:"3",meta:!0,handler:()=>G.getState().setActiveView("dashboard")},{key:"4",meta:!0,handler:()=>G.getState().setActiveView("marketplace")},{key:"5",meta:!0,handler:()=>G.getState().setActiveView("teams")},{key:"Escape",handler:()=>{const C=G.getState();C.commandPaletteOpen?C.toggleCommandPalette():C.detailPanel&&C.closeDetail()}}],[]);lw(A);const U=o&&o.type!=="spawn";return i.jsx(c5,{children:i.jsxs("div",{className:"w-full h-full flex flex-col bg-surface-2 text-text-1 font-sans",children:[i.jsx(GP,{activeView:l,connected:u,tunneled:d,daemonHost:O,editorActiveFile:p,onOpenCommandPalette:P,onSpawn:()=>Q({type:"spawn"})}),i.jsxs("div",{className:"flex-1 flex min-h-0",children:[i.jsx(VP,{activeView:l,detailPanel:o,onNavigate:v,onTogglePanel:C=>{(o==null?void 0:o.type)===C?k():Q({type:C})}}),i.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0",children:[!(g&&b)&&i.jsx("main",{className:"flex-1 min-h-0 overflow-hidden relative",children:t}),s]}),U&&i.jsx(BP,{width:x,onWidthChange:T,onClose:k,children:n})]}),i.jsx(WP,{connected:u,agentCount:m.length,runningCount:N,terminalVisible:g,onToggleTerminal:()=>j(!g)}),i.jsx(IP,{}),i.jsx(qP,{})]})})}const KP=[];function JP(t){if(!t||t==="auto")return"auto";const n=t.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)(?:-\d+)?$/);return n?`${n[1][0].toUpperCase()+n[1].slice(1)} ${n[2]}.${n[3]}`:t.startsWith("gemini-")?t.replace("gemini-","Gemini ").replace("-preview","").replace("-flash-lite"," Flash Lite").replace("-flash"," Flash").replace("-pro"," Pro"):t.startsWith("gpt-")?t.toUpperCase().replace("GPT-","GPT-"):t}function eN(t){if(!t)return null;const n=t.toLowerCase();return n.includes("read")?"READ":n.includes("edit")||n.includes("writ")?"WRITE":n.includes("search")||n.includes("grep")||n.includes("glob")?"SEARCH":n.includes("bash")||n.includes("exec")||n.includes("running")?"EXEC":n.includes("test")?"TEST":n.includes("error")||n.includes("fail")?"ERR":n.includes("complet")||n.includes("done")?"DONE":"WORK"}function tN(t){if(!t)return"";const n=Math.floor((Date.now()-t)/1e3);return n<60?`${n}s`:n<3600?`${Math.floor(n/60)}m`:`${Math.floor(n/3600)}h`}function aN({agent:t}){const s=(G(l=>l.activityLog[t.id])||KP).slice(-8);return i.jsx("div",{className:"absolute left-full top-0 ml-2 z-50 pointer-events-none",style:{width:220,animation:"tooltip-slide-in 0.15s ease-out"},children:i.jsxs("div",{className:"overflow-hidden",style:{background:"#181b21",border:"1px solid #262a32",borderRadius:4},children:[t.prompt&&i.jsx("div",{className:"px-2.5 py-2 border-b border-[#262a32]",children:i.jsx("p",{className:"text-[9px] font-sans text-[#8b929e] line-clamp-3 leading-snug",children:t.prompt})}),s.length>0?i.jsxs("div",{children:[i.jsx("div",{className:"px-2.5 pt-1.5 pb-1",children:i.jsx("span",{className:"text-[8px] font-mono text-[#3a3f4b] uppercase tracking-widest",children:"Activity"})}),s.map((l,o)=>{var O;const u=eN(l.text),d=((O=l.text)==null?void 0:O.length)>45?l.text.slice(0,45)+"...":l.text;return i.jsxs("div",{className:"px-2.5 py-[3px] flex items-start gap-1.5",children:[i.jsx("span",{className:"text-[8px] font-mono text-[#333842] w-5 flex-shrink-0 text-right",children:tN(l.timestamp)}),u&&i.jsx("span",{className:le("text-[7px] font-mono w-7 flex-shrink-0 text-center rounded-sm px-0.5 py-px",u==="ERR"?"text-[#e06c75] bg-[#e06c75]/10":"text-[#505862] bg-[#505862]/10"),children:u}),i.jsx("span",{className:"text-[9px] font-sans text-[#6e7681] truncate flex-1",children:d})]},o)}),i.jsx("div",{className:"h-1.5"})]}):i.jsx("div",{className:"px-2.5 py-3",children:i.jsx("span",{className:"text-[9px] font-mono text-[#333842]",children:"Awaiting activity..."})})]})})}const nN={running:"LIVE",starting:"INIT",stopped:"IDLE",crashed:"ERR",completed:"DONE",killed:"KILL",rotating:"ROT"},Hb=y.memo(({data:t,selected:n})=>{const{agent:s}=t,l=s.status==="running"||s.status==="starting",o=Math.round((s.contextUsage||0)*100),u=eh(s.status),d=s.tokensUsed||0,[O,m]=y.useState(!1);return i.jsxs("div",{className:"relative",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[i.jsxs("div",{className:"w-[220px] overflow-hidden transition-all duration-150",style:{background:"#1c1f26",border:`1px solid ${n?"#2e323a":"#262a32"}`,borderRadius:4},children:[i.jsx(Un,{id:"top",type:"target",position:Gn.Top,className:"!w-1 !h-1 !bg-transparent !border-0"}),i.jsx(Un,{id:"bottom",type:"target",position:Gn.Bottom,className:"!w-1 !h-1 !bg-transparent !border-0"}),i.jsx(Un,{id:"left",type:"target",position:Gn.Left,className:"!w-1 !h-1 !bg-transparent !border-0"}),i.jsx(Un,{id:"right",type:"target",position:Gn.Right,className:"!w-1 !h-1 !bg-transparent !border-0"}),l&&i.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",style:{borderRadius:3},children:i.jsx("div",{className:"absolute left-0 right-0 h-px",style:{background:"linear-gradient(90deg, transparent 0%, rgba(97,175,239,0.25) 50%, transparent 100%)",animation:"node-scan 3s ease-in-out infinite"}})}),i.jsxs("div",{className:"px-3 pt-2.5 pb-1.5",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[i.jsx("span",{className:"absolute inset-0 rounded-sm",style:{background:u}}),l&&i.jsx("span",{className:"absolute inset-[-2px] rounded-sm",style:{background:u,opacity:.15,animation:"node-pulse-bar 2s ease-in-out infinite"}})]}),i.jsx("span",{className:"text-[12px] font-semibold text-[#e6e6e6] font-sans truncate flex-1 leading-none",children:s.name}),i.jsx("span",{className:"text-[7px] font-mono font-bold uppercase tracking-wider px-1 py-px rounded-sm",style:{color:u,background:u+"12"},children:nN[s.status]||s.status})]}),i.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5",children:[i.jsx("span",{className:"text-[9px] font-mono text-[#505862] uppercase tracking-[0.05em]",children:s.role}),i.jsx("span",{className:"text-[9px] text-[#2a2e36]",children:"/"}),i.jsx("span",{className:"text-[9px] font-mono text-[#505862]",children:JP(s.model)})]})]}),i.jsxs("div",{className:"px-3 pt-1 pb-2",children:[i.jsxs("div",{className:"flex items-baseline gap-1.5",children:[i.jsx("span",{className:"text-[14px] font-mono font-medium text-[#bcc2cd] leading-none",children:Je(d)}),i.jsx("span",{className:"text-[8px] font-mono text-[#505862]",children:"tok"}),i.jsx("span",{className:"flex-1"}),i.jsxs("span",{className:"text-[9px] font-mono text-[#505862]",children:[o,"%"]})]}),i.jsx("div",{className:"mt-1.5 h-[2px] rounded-sm bg-[#262a32] overflow-hidden",children:i.jsx("div",{className:"h-full rounded-sm transition-all duration-700",style:{width:`${Math.max(o,1)}%`,background:o>80?"#e06c75":o>60?"#e5c07b":l?"#61afef":"#333842"}})})]})]}),O&&i.jsx(aN,{agent:s})]})});Hb.displayName="AgentNode";const Ib=y.memo(({data:t})=>{const{agentCount:n,runningCount:s}=t,l=s>0,o={background:"transparent",border:0,width:2,height:2};return i.jsxs("div",{className:"relative flex items-center justify-center",style:{width:84,height:84},children:[i.jsx("div",{className:le("absolute inset-0 rounded-full transition-all duration-500",l&&"animate-[spin-slow_30s_linear_infinite]"),style:{border:`1px dashed ${l?"rgba(97,175,239,0.5)":"rgba(97,175,239,0.25)"}`}}),i.jsx("div",{className:"absolute inset-[10px] rounded-full",style:{background:l?"radial-gradient(circle, rgba(97,175,239,0.15) 0%, transparent 70%)":"radial-gradient(circle, rgba(97,175,239,0.05) 0%, transparent 70%)",animation:l?"node-pulse-bar 2.5s ease-in-out infinite":"none"}}),i.jsx("div",{className:le("w-14 h-14 rounded-full flex items-center justify-center relative z-10 transition-all duration-300",l?"bg-[#1c1f26] border-2 border-[#61afef]/35 shadow-[0_0_28px_rgba(97,175,239,0.15)]":"bg-[#1c1f26] border border-[#61afef]/20"),children:i.jsx("img",{src:"/favicon.png",alt:"G",className:le("h-7 w-7 rounded-full transition-opacity",l?"opacity-90":"opacity-60")})}),n>0&&i.jsx("div",{className:le("absolute z-20 min-w-[20px] h-[20px] rounded-sm flex items-center justify-center","text-[10px] font-mono font-bold px-1 transition-all duration-300",l?"bg-[#1c1f26] text-[#61afef] border border-[#61afef]/40":"bg-[#1c1f26] text-[#61afef]/60 border border-[#61afef]/20"),style:{bottom:2,right:2},children:n}),i.jsx(Un,{id:"bottom",type:"source",position:Gn.Bottom,style:o}),i.jsx(Un,{id:"right",type:"source",position:Gn.Right,style:o}),i.jsx(Un,{id:"left",type:"source",position:Gn.Left,style:o}),i.jsx(Un,{id:"top",type:"source",position:Gn.Top,style:o})]})});Ib.displayName="RootNode";const sN={primary:"bg-accent/20 text-accent border border-accent/25 hover:bg-accent/30 font-medium",secondary:"bg-surface-5/40 text-text-1 border border-border-subtle hover:bg-surface-5/70 hover:text-text-0",ghost:"bg-transparent text-text-2 border border-transparent hover:bg-surface-5/50 hover:text-text-0",danger:"bg-danger/12 text-danger border border-danger/15 hover:bg-danger/20",info:"bg-info/12 text-info border border-info/15 hover:bg-info/20",outline:"bg-transparent text-accent border border-accent/30 hover:bg-accent/10"},lN={sm:"h-7 px-2.5 text-xs gap-1.5 rounded",md:"h-8 px-3 text-sm gap-2 rounded",lg:"h-9 px-4 text-sm gap-2 rounded",icon:"h-8 w-8 rounded"},je=y.forwardRef(({className:t,variant:n="secondary",size:s="md",children:l,...o},u)=>i.jsx("button",{ref:u,className:le("inline-flex items-center justify-center font-sans transition-colors duration-100","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent","disabled:opacity-40 disabled:pointer-events-none","cursor-pointer select-none",sN[n],lN[s],t),...o,children:l}));je.displayName="Button";const rN={default:"bg-surface-4 text-text-2",accent:"bg-accent/12 text-accent",success:"bg-success/12 text-success",warning:"bg-warning/12 text-warning",danger:"bg-danger/12 text-danger",info:"bg-info/12 text-info",purple:"bg-purple/12 text-purple",orange:"bg-orange/12 text-orange"};function Le({children:t,variant:n="default",className:s,dot:l,...o}){return i.jsxs("span",{className:le("inline-flex items-center gap-1 px-1.5 py-0.5","text-2xs font-semibold uppercase tracking-wider rounded","font-sans select-none whitespace-nowrap",rN[n],s),...o,children:[l&&i.jsx("span",{className:le("w-1.5 h-1.5 rounded-full",l==="pulse"&&"animate-pulse"),style:{background:"currentColor"}}),t]})}const iN={agentNode:Hb,rootNode:Ib},Jg=220,e1=82,Eo=260,vO=130,qn=4,Ia="__groove_root__";function yO(){try{return JSON.parse(localStorage.getItem("groove:nodePositions")||"{}")}catch{return{}}}function oN(t){try{localStorage.setItem("groove:nodePositions",JSON.stringify(t))}catch{}}function cN(){const t=G(N=>N.teams),n=G(N=>N.activeTeamId),s=G(N=>N.agents),l=G(N=>N.switchTeam),o=G(N=>N.createTeam),u=G(N=>N.deleteTeam),d=G(N=>N.renameTeam),[O,m]=y.useState(!1),[p,x]=y.useState(""),[g,b]=y.useState(null),[v,Q]=y.useState(""),k=y.useRef(!1);function T(){const N=p.trim();!N||k.current||(k.current=!0,x(""),m(!1),o(N).finally(()=>{k.current=!1}))}function j(N){b(N.id),Q(N.name)}function P(){const N=v.trim();if(!N||!g){b(null);return}d(g,N),b(null)}return i.jsxs("div",{className:"flex items-end px-0 pt-0 pb-0 bg-surface-1 border-b border-border gap-0 flex-shrink-0",children:[t.map(N=>{const A=s.filter($=>$.teamId===N.id).length,U=N.id===n,C=g===N.id,X=s.filter($=>$.teamId===N.id&&($.status==="running"||$.status==="starting")).length;return i.jsxs("div",{onClick:()=>!C&&l(N.id),onDoubleClick:()=>j(N),className:le("group relative flex items-center gap-2 px-4 h-9 text-xs font-sans cursor-pointer select-none transition-colors",U?"bg-surface-0 text-text-0 font-semibold border-x border-x-border":"text-text-3 hover:text-text-1 hover:bg-surface-3/50"),children:[U&&i.jsx("div",{className:"absolute top-0 left-0 right-0 h-px bg-accent",style:{height:"0.5px"}}),i.jsx(fi,{size:13,className:U?"text-accent":"text-text-4"}),C?i.jsx("input",{value:v,onChange:$=>Q($.target.value),onKeyDown:$=>{$.key==="Enter"&&P(),$.key==="Escape"&&b(null)},onBlur:P,className:"h-5 w-24 px-1.5 text-xs bg-surface-0 border border-accent rounded text-text-0 font-sans focus:outline-none",autoFocus:!0,onClick:$=>$.stopPropagation()}):i.jsx("span",{className:"truncate max-w-[120px]",children:N.name}),A>0&&!C&&i.jsx("span",{className:le("flex items-center justify-center min-w-[18px] h-[18px] px-1 rounded-full text-2xs font-mono font-semibold",X>0?"bg-accent/15 text-accent":"bg-surface-4 text-text-3"),children:A}),!C&&i.jsxs("div",{className:"flex items-center gap-0.5 ml-0.5 opacity-0 group-hover:opacity-100 transition-opacity",children:[i.jsx("button",{onClick:$=>{$.stopPropagation(),j(N)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 cursor-pointer",title:"Rename team",children:i.jsx(Zc,{size:10})}),!N.isDefault&&i.jsx("button",{onClick:$=>{$.stopPropagation(),u(N.id)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-danger cursor-pointer",title:"Delete team",children:i.jsx(Rt,{size:10})})]}),U&&i.jsx("div",{className:"absolute bottom-[-1px] left-0 right-0 h-px bg-surface-0"})]},N.id)}),O?i.jsxs("div",{className:"flex items-center gap-1.5 px-3 h-9 bg-surface-3/50",children:[i.jsx("input",{value:p,onChange:N=>x(N.target.value),onKeyDown:N=>{N.key==="Enter"&&T(),N.key==="Escape"&&(m(!1),x(""))},placeholder:"Team name...",className:"h-5 w-28 px-1.5 text-xs bg-surface-0 border border-border-subtle rounded text-text-0 font-sans placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),i.jsx("button",{onClick:T,disabled:!p.trim(),className:"p-1 rounded text-accent hover:bg-accent/10 cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed",children:i.jsx(ia,{size:12})}),i.jsx("button",{onClick:()=>{m(!1),x("")},className:"p-1 rounded text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(Rt,{size:12})})]}):i.jsx("button",{onClick:()=>m(!0),className:"flex items-center justify-center w-9 h-9 text-text-4 hover:text-text-1 hover:bg-surface-3/50 cursor-pointer transition-colors",title:"New team",children:i.jsx(In,{size:14})})]})}function uN(){const t=G(C=>C.agents),n=G(C=>C.activeTeamId),s=G(C=>C.tokenTimeline),l=G(C=>C.selectAgent),o=G(C=>C.closeDetail),u=y.useMemo(()=>t.filter(C=>C.teamId===n),[t,n]),{fitView:d}=bj(),[O,m]=y.useState(0),p=y.useMemo(()=>{const C=yO(),X=u.filter(re=>re.status==="running").length,$=[{id:Ia,type:"rootNode",position:C[Ia]||{x:0,y:0},data:{agentCount:u.length,runningCount:X},draggable:!0,selectable:!1}],W=new Set,E=(re,xe)=>`${Math.round(re/100)},${Math.round(xe/100)}`,ne=[];u.forEach((re,xe)=>{const ie=re.name||re.id;if(C[ie]){const J=C[ie];W.add(E(J.x,J.y)),$.push({id:re.id,type:"agentNode",position:J,data:{agent:re,timeline:s[re.id]||[]},draggable:!0,selectable:!0})}else ne.push({agent:re,index:xe})});for(const{agent:re,index:xe}of ne){const ie=Math.floor(xe/qn),J=xe%qn;let I={x:-((Math.min(u.length-ie*qn,qn)-1)*Eo)/2+J*Eo,y:140+ie*vO};for(;W.has(E(I.x,I.y));)I={x:I.x,y:I.y+vO};W.add(E(I.x,I.y)),$.push({id:re.id,type:"agentNode",position:I,data:{agent:re,timeline:s[re.id]||[]},draggable:!0,selectable:!0})}return $},[u,s]),x=y.useMemo(()=>{const C=yO(),X=C[Ia]||{x:0,y:0};return u.map(($,W)=>{const E=$.name||$.id,ne=Math.floor(W/qn),re=W%qn,ie=-((Math.min(u.length-ne*qn,qn)-1)*Eo)/2,J=C[E]||{x:ie+re*Eo,y:140+ne*vO},z=J.x+Jg/2-X.x,B=J.y+e1/2-X.y;let I,fe;return Math.abs(B)>Math.abs(z)?(I=B>0?"bottom":"top",fe=B>0?"top":"bottom"):(I=z>0?"right":"left",fe=z>0?"left":"right"),{id:`e-${Ia}-${$.id}`,source:Ia,target:$.id,sourceHandle:I,targetHandle:fe,type:"default",animated:$.status==="running"}})},[u]),[g,b,v]=vj(p),[Q,k,T]=yj(x),j=y.useRef(new Set);y.useEffect(()=>{b(C=>{const X=new Map(C.map($=>[$.id,$]));return new Set(p.map($=>$.id)),p.map($=>{const W=X.get($.id);return W?{...W,data:$.data}:$})})},[p,b]),y.useEffect(()=>{k(x)},[x,k]),y.useEffect(()=>{const C=new Set(u.map($=>$.id)),X=u.length>0&&[...C].some($=>!j.current.has($));j.current=C,O===0&&u.length>0?setTimeout(()=>d({padding:.3,maxZoom:1.2,duration:0}),50):X&&setTimeout(()=>d({padding:.3,maxZoom:1.2,duration:300}),100),m(u.length)},[u.length,u,O,d]);const P=y.useCallback((C,X)=>{X.id!==Ia&&l(X.id)},[l]),N=y.useCallback(()=>{o()},[o]),A=y.useCallback((C,X)=>{const $=g.find(E=>E.id===Ia);if(!$)return;const W=$.position;k(E=>E.map(ne=>{const re=ne.source===X.id,xe=ne.target===X.id;if(!re&&!xe)return ne;const ie=X.position,J=ie.x+Jg/2-W.x,z=ie.y+e1/2-W.y;let B,I;return Math.abs(z)>Math.abs(J)?(B=z>0?"bottom":"top",I=z>0?"top":"bottom"):(B=J>0?"right":"left",I=J>0?"left":"right"),{...ne,sourceHandle:B,targetHandle:I}}))},[g,k]),U=y.useCallback((C,X)=>{const $=u.find(ne=>ne.id===X.id),W=X.id===Ia?Ia:($==null?void 0:$.name)||X.id,E=yO();E[W]=X.position,oN(E)},[u]);return i.jsx(Sj,{nodes:g,edges:Q,nodeTypes:iN,onNodesChange:v,onEdgesChange:T,onNodeClick:P,onPaneClick:N,onNodeDrag:A,onNodeDragStop:U,defaultViewport:{x:0,y:0,zoom:1.2},proOptions:{hideAttribution:!0},minZoom:.2,maxZoom:1.5,className:"bg-surface-2",children:i.jsx(Qj,{color:"rgba(97,175,239,0.03)",gap:24,size:1})})}function dN({onPlanner:t,onSpawn:n}){return i.jsx("div",{className:"w-full h-full flex items-center justify-center",children:i.jsxs("div",{className:"max-w-2xl w-full text-center space-y-10 px-8",children:[i.jsxs("div",{className:"relative mx-auto w-20 h-20",children:[i.jsx("div",{className:"absolute inset-0 rounded-full bg-accent/8 animate-pulse"}),i.jsx("div",{className:"absolute inset-1 rounded-full bg-surface-3 border border-border-subtle flex items-center justify-center shadow-lg shadow-accent/5",children:i.jsx("img",{src:"/favicon.png",alt:"Groove",className:"h-10 w-10 rounded-full"})})]}),i.jsxs("div",{className:"space-y-3",children:[i.jsx("h1",{className:"text-3xl font-bold text-text-0 font-sans tracking-tight",children:"Welcome to Groove"}),i.jsx("p",{className:"text-base text-text-2 font-sans max-w-md mx-auto leading-relaxed",children:"Your mission control for AI agents. Spawn, orchestrate, and ship faster than ever."})]}),i.jsxs("div",{className:"space-y-3 max-w-xl mx-auto",children:[i.jsxs("button",{onClick:t,className:"w-full flex items-center gap-4 p-5 rounded-lg border border-accent/25 bg-gradient-to-r from-accent/8 to-accent/3 hover:from-accent/14 hover:to-accent/6 hover:border-accent/40 transition-all cursor-pointer group text-left",children:[i.jsx("div",{className:"w-12 h-12 rounded-lg bg-accent/20 flex items-center justify-center group-hover:scale-110 transition-transform flex-shrink-0",children:i.jsx(Pa,{size:24,className:"text-accent"})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-base font-semibold text-text-0 font-sans",children:"Start with a Planner"}),i.jsx("div",{className:"text-sm text-text-2 font-sans mt-0.5",children:"Describe what you want to build and let AI plan the perfect team"})]}),i.jsx("div",{className:"text-accent text-xs font-semibold font-sans flex-shrink-0 opacity-60 group-hover:opacity-100 transition-opacity",children:"Recommended"})]}),i.jsxs("button",{onClick:n,className:"w-full flex items-center gap-3 p-4 rounded-lg border border-border bg-surface-1 hover:bg-surface-2 hover:border-border transition-all cursor-pointer group text-left",children:[i.jsx("div",{className:"w-10 h-10 rounded-lg bg-surface-4 flex items-center justify-center group-hover:scale-110 transition-transform flex-shrink-0",children:i.jsx(In,{size:20,className:"text-text-1"})}),i.jsxs("div",{className:"min-w-0",children:[i.jsx("div",{className:"text-sm font-semibold text-text-0 font-sans",children:"Spawn Agent"}),i.jsx("div",{className:"text-xs text-text-3 font-sans mt-0.5",children:"Choose a role and configure"})]})]})]}),i.jsxs("p",{className:"text-xs text-text-4 font-sans",children:[i.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+K"}),i.jsx("span",{className:"mx-1.5",children:"command palette"}),i.jsx("span",{className:"text-text-4 mx-1",children:"·"}),i.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+N"}),i.jsx("span",{className:"mx-1.5",children:"spawn"}),i.jsx("span",{className:"text-text-4 mx-1",children:"·"}),i.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+J"}),i.jsx("span",{className:"mx-1.5",children:"terminal"})]})]})})}const ON={backend:Vb,frontend:Hf,fullstack:un,testing:Jf,security:Kr};function fN(){var p;const t=G(x=>x.recommendedTeam),n=G(x=>x.launchRecommendedTeam);G(x=>x.checkRecommendedTeam);const[s,l]=y.useState(!1);if(!((p=t==null?void 0:t.agents)!=null&&p.length))return null;const o=t.agents,u=o.filter(x=>!x.phase||x.phase===1),d=o.filter(x=>x.phase===2);async function O(){l(!0);try{await n()}catch{}l(!1)}function m(){G.setState({recommendedTeam:null})}return i.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-50 w-full max-w-lg",children:i.jsxs("div",{className:"mx-4 rounded-lg border border-accent/30 bg-surface-2/95 backdrop-blur-md shadow-xl shadow-accent/5 overflow-hidden",children:[i.jsxs("div",{className:"px-4 py-3 border-b border-border-subtle flex items-center gap-2",children:[i.jsx(Yb,{size:16,className:"text-accent"}),i.jsx("span",{className:"text-sm font-semibold text-text-0 font-sans flex-1",children:"Planner Recommends a Team"}),i.jsx("button",{onClick:m,className:"text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(Rt,{size:14})})]}),i.jsxs("div",{className:"px-4 py-3 space-y-2",children:[i.jsx("div",{className:"flex flex-wrap gap-2",children:u.map((x,g)=>{var v;const b=ON[x.role]||un;return i.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded-md bg-surface-4 border border-border-subtle",children:[i.jsx(b,{size:12,className:"text-text-2"}),i.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans capitalize",children:x.name||x.role}),((v=x.scope)==null?void 0:v.length)>0&&i.jsxs("span",{className:"text-2xs text-text-4 font-mono",children:[x.scope[0],x.scope.length>1?` +${x.scope.length-1}`:""]})]},g)})}),t.projectDir&&i.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-2 font-mono",children:[i.jsx("span",{className:"text-text-4",children:"Project:"}),i.jsxs("span",{className:"text-accent",children:[t.projectDir,"/"]})]}),d.length>0&&i.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-3 font-sans",children:[i.jsx(Kr,{size:10}),i.jsxs("span",{children:[d.length," QC agent",d.length>1?"s":""," will auto-spawn after builders complete"]})]})]}),i.jsx("div",{className:"px-4 py-3 border-t border-border-subtle",children:i.jsxs(je,{variant:"primary",size:"md",onClick:O,disabled:s,className:"w-full gap-2",children:[i.jsx(Pa,{size:14}),s?"Launching...":`Launch ${u.length} Agent${u.length>1?"s":""}`]})})]})})}function t1(){const t=G(b=>b.agents),n=G(b=>b.activeTeamId),s=G(b=>b.openDetail),l=G(b=>b.spawnAgent),o=G(b=>b.selectAgent);G(b=>b.recommendedTeam);const u=G(b=>b.checkRecommendedTeam);y.useEffect(()=>{if(!t.some(Q=>Q.role==="planner"&&(Q.status==="running"||Q.status==="starting")))return;const v=setInterval(()=>u(),5e3);return()=>clearInterval(v)},[t,u]);async function d(){try{const b=await l({role:"planner"});b!=null&&b.id&&o(b.id)}catch{}}const O=t.filter(b=>b.teamId===n),m=G(b=>b.hydrated),[p,x]=y.useState(!0);y.useEffect(()=>{const b=setTimeout(()=>x(!1),1200);return()=>clearTimeout(b)},[]);const g=p||!m;return i.jsxs("div",{className:"flex flex-col h-full relative",children:[i.jsx(cN,{}),i.jsx("div",{className:"flex-1 min-h-0",children:g?i.jsxs("div",{className:le("flex flex-col items-center justify-center h-full transition-opacity duration-500",!p&&m?"opacity-0":"opacity-100"),children:[i.jsxs("div",{className:"relative w-12 h-12 mb-5",children:[i.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-accent/20 animate-ping",style:{animationDuration:"2s"}}),i.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-transparent border-t-accent animate-spin",style:{animationDuration:"1s"}}),i.jsx("span",{className:"absolute inset-[6px] rounded-full bg-accent/8 flex items-center justify-center",children:i.jsx(Pa,{size:16,className:"text-accent animate-pulse"})})]}),i.jsx("p",{className:"text-sm font-medium text-text-1 font-sans animate-pulse",children:"Connecting to agents"}),i.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Syncing with daemon..."})]}):O.length===0?i.jsx(dN,{onPlanner:d,onSpawn:()=>s({type:"spawn"})}):i.jsx(gj,{children:i.jsx(uN,{})})}),i.jsx(fN,{})]})}var hN=y.createContext(void 0);function th(t){const n=y.useContext(hN);return t||n||"ltr"}function mN(t,[n,s]){return Math.min(s,Math.max(n,t))}function pN(t,n){return y.useReducer((s,l)=>n[s][l]??s,t)}var ah="ScrollArea",[Fb]=zs(ah),[xN,oa]=Fb(ah),Kb=y.forwardRef((t,n)=>{const{__scopeScrollArea:s,type:l="hover",dir:o,scrollHideDelay:u=600,...d}=t,[O,m]=y.useState(null),[p,x]=y.useState(null),[g,b]=y.useState(null),[v,Q]=y.useState(null),[k,T]=y.useState(null),[j,P]=y.useState(0),[N,A]=y.useState(0),[U,C]=y.useState(!1),[X,$]=y.useState(!1),W=it(n,ne=>m(ne)),E=th(o);return i.jsx(xN,{scope:s,type:l,dir:E,scrollHideDelay:u,scrollArea:O,viewport:p,onViewportChange:x,content:g,onContentChange:b,scrollbarX:v,onScrollbarXChange:Q,scrollbarXEnabled:U,onScrollbarXEnabledChange:C,scrollbarY:k,onScrollbarYChange:T,scrollbarYEnabled:X,onScrollbarYEnabledChange:$,onCornerWidthChange:P,onCornerHeightChange:A,children:i.jsx(Be.div,{dir:E,...d,ref:W,style:{position:"relative","--radix-scroll-area-corner-width":j+"px","--radix-scroll-area-corner-height":N+"px",...t.style}})})});Kb.displayName=ah;var Jb="ScrollAreaViewport",ev=y.forwardRef((t,n)=>{const{__scopeScrollArea:s,children:l,nonce:o,...u}=t,d=oa(Jb,s),O=y.useRef(null),m=it(n,O,d.onViewportChange);return i.jsxs(i.Fragment,{children:[i.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),i.jsx(Be.div,{"data-radix-scroll-area-viewport":"",...u,ref:m,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...t.style},children:i.jsx("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});ev.displayName=Jb;var Na="ScrollAreaScrollbar",tv=y.forwardRef((t,n)=>{const{forceMount:s,...l}=t,o=oa(Na,t.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:d}=o,O=t.orientation==="horizontal";return y.useEffect(()=>(O?u(!0):d(!0),()=>{O?u(!1):d(!1)}),[O,u,d]),o.type==="hover"?i.jsx(gN,{...l,ref:n,forceMount:s}):o.type==="scroll"?i.jsx(bN,{...l,ref:n,forceMount:s}):o.type==="auto"?i.jsx(av,{...l,ref:n,forceMount:s}):o.type==="always"?i.jsx(nh,{...l,ref:n}):null});tv.displayName=Na;var gN=y.forwardRef((t,n)=>{const{forceMount:s,...l}=t,o=oa(Na,t.__scopeScrollArea),[u,d]=y.useState(!1);return y.useEffect(()=>{const O=o.scrollArea;let m=0;if(O){const p=()=>{window.clearTimeout(m),d(!0)},x=()=>{m=window.setTimeout(()=>d(!1),o.scrollHideDelay)};return O.addEventListener("pointerenter",p),O.addEventListener("pointerleave",x),()=>{window.clearTimeout(m),O.removeEventListener("pointerenter",p),O.removeEventListener("pointerleave",x)}}},[o.scrollArea,o.scrollHideDelay]),i.jsx(ga,{present:s||u,children:i.jsx(av,{"data-state":u?"visible":"hidden",...l,ref:n})})}),bN=y.forwardRef((t,n)=>{const{forceMount:s,...l}=t,o=oa(Na,t.__scopeScrollArea),u=t.orientation==="horizontal",d=Yc(()=>m("SCROLL_END"),100),[O,m]=pN("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return y.useEffect(()=>{if(O==="idle"){const p=window.setTimeout(()=>m("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(p)}},[O,o.scrollHideDelay,m]),y.useEffect(()=>{const p=o.viewport,x=u?"scrollLeft":"scrollTop";if(p){let g=p[x];const b=()=>{const v=p[x];g!==v&&(m("SCROLL"),d()),g=v};return p.addEventListener("scroll",b),()=>p.removeEventListener("scroll",b)}},[o.viewport,u,m,d]),i.jsx(ga,{present:s||O!=="hidden",children:i.jsx(nh,{"data-state":O==="hidden"?"hidden":"visible",...l,ref:n,onPointerEnter:Ee(t.onPointerEnter,()=>m("POINTER_ENTER")),onPointerLeave:Ee(t.onPointerLeave,()=>m("POINTER_LEAVE"))})})}),av=y.forwardRef((t,n)=>{const s=oa(Na,t.__scopeScrollArea),{forceMount:l,...o}=t,[u,d]=y.useState(!1),O=t.orientation==="horizontal",m=Yc(()=>{if(s.viewport){const p=s.viewport.offsetWidth<s.viewport.scrollWidth,x=s.viewport.offsetHeight<s.viewport.scrollHeight;d(O?p:x)}},10);return Xl(s.viewport,m),Xl(s.content,m),i.jsx(ga,{present:l||u,children:i.jsx(nh,{"data-state":u?"visible":"hidden",...o,ref:n})})}),nh=y.forwardRef((t,n)=>{const{orientation:s="vertical",...l}=t,o=oa(Na,t.__scopeScrollArea),u=y.useRef(null),d=y.useRef(0),[O,m]=y.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=iv(O.viewport,O.content),x={...l,sizes:O,onSizesChange:m,hasThumb:p>0&&p<1,onThumbChange:b=>u.current=b,onThumbPointerUp:()=>d.current=0,onThumbPointerDown:b=>d.current=b};function g(b,v){return wN(b,d.current,O,v)}return s==="horizontal"?i.jsx(vN,{...x,ref:n,onThumbPositionChange:()=>{if(o.viewport&&u.current){const b=o.viewport.scrollLeft,v=a1(b,O,o.dir);u.current.style.transform=`translate3d(${v}px, 0, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollLeft=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollLeft=g(b,o.dir))}}):s==="vertical"?i.jsx(yN,{...x,ref:n,onThumbPositionChange:()=>{if(o.viewport&&u.current){const b=o.viewport.scrollTop,v=a1(b,O);u.current.style.transform=`translate3d(0, ${v}px, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollTop=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollTop=g(b))}}):null}),vN=y.forwardRef((t,n)=>{const{sizes:s,onSizesChange:l,...o}=t,u=oa(Na,t.__scopeScrollArea),[d,O]=y.useState(),m=y.useRef(null),p=it(n,m,u.onScrollbarXChange);return y.useEffect(()=>{m.current&&O(getComputedStyle(m.current))},[m]),i.jsx(sv,{"data-orientation":"horizontal",...o,ref:p,sizes:s,style:{bottom:0,left:u.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:u.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Mc(s)+"px",...t.style},onThumbPointerDown:x=>t.onThumbPointerDown(x.x),onDragScroll:x=>t.onDragScroll(x.x),onWheelScroll:(x,g)=>{if(u.viewport){const b=u.viewport.scrollLeft+x.deltaX;t.onWheelScroll(b),cv(b,g)&&x.preventDefault()}},onResize:()=>{m.current&&u.viewport&&d&&l({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:m.current.clientWidth,paddingStart:mc(d.paddingLeft),paddingEnd:mc(d.paddingRight)}})}})}),yN=y.forwardRef((t,n)=>{const{sizes:s,onSizesChange:l,...o}=t,u=oa(Na,t.__scopeScrollArea),[d,O]=y.useState(),m=y.useRef(null),p=it(n,m,u.onScrollbarYChange);return y.useEffect(()=>{m.current&&O(getComputedStyle(m.current))},[m]),i.jsx(sv,{"data-orientation":"vertical",...o,ref:p,sizes:s,style:{top:0,right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Mc(s)+"px",...t.style},onThumbPointerDown:x=>t.onThumbPointerDown(x.y),onDragScroll:x=>t.onDragScroll(x.y),onWheelScroll:(x,g)=>{if(u.viewport){const b=u.viewport.scrollTop+x.deltaY;t.onWheelScroll(b),cv(b,g)&&x.preventDefault()}},onResize:()=>{m.current&&u.viewport&&d&&l({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:m.current.clientHeight,paddingStart:mc(d.paddingTop),paddingEnd:mc(d.paddingBottom)}})}})}),[SN,nv]=Fb(Na),sv=y.forwardRef((t,n)=>{const{__scopeScrollArea:s,sizes:l,hasThumb:o,onThumbChange:u,onThumbPointerUp:d,onThumbPointerDown:O,onThumbPositionChange:m,onDragScroll:p,onWheelScroll:x,onResize:g,...b}=t,v=oa(Na,s),[Q,k]=y.useState(null),T=it(n,W=>k(W)),j=y.useRef(null),P=y.useRef(""),N=v.viewport,A=l.content-l.viewport,U=zt(x),C=zt(m),X=Yc(g,10);function $(W){if(j.current){const E=W.clientX-j.current.left,ne=W.clientY-j.current.top;p({x:E,y:ne})}}return y.useEffect(()=>{const W=E=>{const ne=E.target;(Q==null?void 0:Q.contains(ne))&&U(E,A)};return document.addEventListener("wheel",W,{passive:!1}),()=>document.removeEventListener("wheel",W,{passive:!1})},[N,Q,A,U]),y.useEffect(C,[l,C]),Xl(Q,X),Xl(v.content,X),i.jsx(SN,{scope:s,scrollbar:Q,hasThumb:o,onThumbChange:zt(u),onThumbPointerUp:zt(d),onThumbPositionChange:C,onThumbPointerDown:zt(O),children:i.jsx(Be.div,{...b,ref:T,style:{position:"absolute",...b.style},onPointerDown:Ee(t.onPointerDown,W=>{W.button===0&&(W.target.setPointerCapture(W.pointerId),j.current=Q.getBoundingClientRect(),P.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",v.viewport&&(v.viewport.style.scrollBehavior="auto"),$(W))}),onPointerMove:Ee(t.onPointerMove,$),onPointerUp:Ee(t.onPointerUp,W=>{const E=W.target;E.hasPointerCapture(W.pointerId)&&E.releasePointerCapture(W.pointerId),document.body.style.webkitUserSelect=P.current,v.viewport&&(v.viewport.style.scrollBehavior=""),j.current=null})})})}),hc="ScrollAreaThumb",lv=y.forwardRef((t,n)=>{const{forceMount:s,...l}=t,o=nv(hc,t.__scopeScrollArea);return i.jsx(ga,{present:s||o.hasThumb,children:i.jsx(QN,{ref:n,...l})})}),QN=y.forwardRef((t,n)=>{const{__scopeScrollArea:s,style:l,...o}=t,u=oa(hc,s),d=nv(hc,s),{onThumbPositionChange:O}=d,m=it(n,g=>d.onThumbChange(g)),p=y.useRef(void 0),x=Yc(()=>{p.current&&(p.current(),p.current=void 0)},100);return y.useEffect(()=>{const g=u.viewport;if(g){const b=()=>{if(x(),!p.current){const v=kN(g,O);p.current=v,O()}};return O(),g.addEventListener("scroll",b),()=>g.removeEventListener("scroll",b)}},[u.viewport,x,O]),i.jsx(Be.div,{"data-state":d.hasThumb?"visible":"hidden",...o,ref:m,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:Ee(t.onPointerDownCapture,g=>{const v=g.target.getBoundingClientRect(),Q=g.clientX-v.left,k=g.clientY-v.top;d.onThumbPointerDown({x:Q,y:k})}),onPointerUp:Ee(t.onPointerUp,d.onThumbPointerUp)})});lv.displayName=hc;var sh="ScrollAreaCorner",rv=y.forwardRef((t,n)=>{const s=oa(sh,t.__scopeScrollArea),l=!!(s.scrollbarX&&s.scrollbarY);return s.type!=="scroll"&&l?i.jsx(jN,{...t,ref:n}):null});rv.displayName=sh;var jN=y.forwardRef((t,n)=>{const{__scopeScrollArea:s,...l}=t,o=oa(sh,s),[u,d]=y.useState(0),[O,m]=y.useState(0),p=!!(u&&O);return Xl(o.scrollbarX,()=>{var g;const x=((g=o.scrollbarX)==null?void 0:g.offsetHeight)||0;o.onCornerHeightChange(x),m(x)}),Xl(o.scrollbarY,()=>{var g;const x=((g=o.scrollbarY)==null?void 0:g.offsetWidth)||0;o.onCornerWidthChange(x),d(x)}),p?i.jsx(Be.div,{...l,ref:n,style:{width:u,height:O,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function mc(t){return t?parseInt(t,10):0}function iv(t,n){const s=t/n;return isNaN(s)?0:s}function Mc(t){const n=iv(t.viewport,t.content),s=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,l=(t.scrollbar.size-s)*n;return Math.max(l,18)}function wN(t,n,s,l="ltr"){const o=Mc(s),u=o/2,d=n||u,O=o-d,m=s.scrollbar.paddingStart+d,p=s.scrollbar.size-s.scrollbar.paddingEnd-O,x=s.content-s.viewport,g=l==="ltr"?[0,x]:[x*-1,0];return ov([m,p],g)(t)}function a1(t,n,s="ltr"){const l=Mc(n),o=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,u=n.scrollbar.size-o,d=n.content-n.viewport,O=u-l,m=s==="ltr"?[0,d]:[d*-1,0],p=mN(t,m);return ov([0,d],[0,O])(p)}function ov(t,n){return s=>{if(t[0]===t[1]||n[0]===n[1])return n[0];const l=(n[1]-n[0])/(t[1]-t[0]);return n[0]+l*(s-t[0])}}function cv(t,n){return t>0&&t<n}var kN=(t,n=()=>{})=>{let s={left:t.scrollLeft,top:t.scrollTop},l=0;return(function o(){const u={left:t.scrollLeft,top:t.scrollTop},d=s.left!==u.left,O=s.top!==u.top;(d||O)&&n(),s=u,l=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(l)};function Yc(t,n){const s=zt(t),l=y.useRef(0);return y.useEffect(()=>()=>window.clearTimeout(l.current),[]),y.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(s,n)},[s,n])}function Xl(t,n){const s=zt(n);sn(()=>{let l=0;if(t){const o=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(s)});return o.observe(t),()=>{window.cancelAnimationFrame(l),o.unobserve(t)}}},[t,s])}var $N=Kb,TN=ev,n1=tv,s1=lv,PN=rv;function es({children:t,className:n,...s}){return i.jsxs($N,{className:le("overflow-hidden",n),...s,children:[i.jsx(TN,{className:"h-full w-full rounded-[inherit]",children:t}),i.jsx(n1,{orientation:"vertical",className:"flex touch-none select-none p-0.5 transition-colors w-2",children:i.jsx(s1,{className:"relative flex-1 rounded-full bg-surface-5 hover:bg-surface-6"})}),i.jsx(n1,{orientation:"horizontal",className:"flex touch-none select-none flex-col p-0.5 transition-colors h-2",children:i.jsx(s1,{className:"relative flex-1 rounded-full bg-surface-5 hover:bg-surface-6"})}),i.jsx(PN,{})]})}const NN={js:"text-warning",jsx:"text-warning",ts:"text-info",tsx:"text-info",css:"text-info",html:"text-orange",json:"text-warning",md:"text-text-2",py:"text-success",rs:"text-orange",go:"text-accent",sh:"text-success",yaml:"text-danger",yml:"text-danger",sql:"text-purple",xml:"text-orange",svg:"text-warning"};function zN(t){var s;const n=(s=t.split(".").pop())==null?void 0:s.toLowerCase();return NN[n]||"text-text-3"}function RN({x:t,y:n,items:s,onClose:l}){const o=y.useRef(null);return y.useEffect(()=>{function u(d){o.current&&!o.current.contains(d.target)&&l()}return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[l]),i.jsx("div",{ref:o,className:"fixed z-50 min-w-[160px] py-1 bg-surface-2 border border-border rounded-lg shadow-xl",style:{left:t,top:n},children:s.map((u,d)=>u.separator?i.jsx("div",{className:"h-px bg-border-subtle my-1"},d):i.jsxs("button",{onClick:()=>{u.action(),l()},className:le("w-full flex items-center gap-2.5 px-3 py-1.5 text-xs font-sans text-left cursor-pointer transition-colors",u.danger?"text-danger hover:bg-danger/10":"text-text-1 hover:bg-surface-5"),children:[u.icon&&i.jsx(u.icon,{size:12,className:u.danger?"text-danger":"text-text-3"}),u.label]},d))})}function pc({defaultValue:t="",placeholder:n,onSubmit:s,onCancel:l,depth:o=0}){const[u,d]=y.useState(t),O=y.useRef(null);y.useEffect(()=>{var p,x;(p=O.current)==null||p.focus(),t&&((x=O.current)==null||x.select())},[t]);function m(p){if(p.key==="Enter"){const x=u.trim();x&&s(x)}p.key==="Escape"&&l()}return i.jsx("div",{className:"flex items-center py-0.5",style:{paddingLeft:o*16+8},children:i.jsx("input",{ref:O,value:u,onChange:p=>d(p.target.value),onKeyDown:m,onBlur:l,placeholder:n,className:"w-full h-5 px-1.5 text-xs bg-surface-0 border border-accent rounded text-text-0 font-sans focus:outline-none"})})}function uv({entry:t,depth:n=0,activePath:s,onFileClick:l,onDirToggle:o,expanded:u,onContextMenu:d}){const O=t.type==="dir",m=s===t.path,p=u.has(t.path),x=n*16+8;function g(b){b.preventDefault(),b.stopPropagation(),d(b,t)}return i.jsxs("button",{onClick:()=>O?o(t.path):l(t.path),onContextMenu:g,className:le("w-full flex items-center gap-1.5 py-1 text-xs font-sans cursor-pointer","hover:bg-surface-5 transition-colors text-left select-none",m&&"bg-accent/10 text-text-0",!m&&"text-text-1"),style:{paddingLeft:x},children:[O?i.jsxs(i.Fragment,{children:[p?i.jsx(Hn,{size:12,className:"text-text-4 flex-shrink-0"}):i.jsx(oi,{size:12,className:"text-text-4 flex-shrink-0"}),p?i.jsx(Ir,{size:14,className:"text-accent flex-shrink-0"}):i.jsx(zb,{size:14,className:"text-text-3 flex-shrink-0"})]}):i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"w-3"}),i.jsx(eT,{size:14,className:le("flex-shrink-0",zN(t.name))})]}),i.jsx("span",{className:"truncate",children:t.name})]})}function dv({dirPath:t,depth:n,activePath:s,onFileClick:l,expanded:o,onDirToggle:u,treeCache:d,fetchTreeDir:O,onContextMenu:m,inlineInput:p}){const x=d[t]||[];return y.useEffect(()=>{o.has(t)&&!d[t]&&O(t)},[o,t,d,O]),o.has(t)?i.jsxs(i.Fragment,{children:[(p==null?void 0:p.parentPath)===t&&i.jsx(pc,{placeholder:p.type==="file"?"filename.ext":"folder-name",onSubmit:p.onSubmit,onCancel:p.onCancel,depth:n}),x.map(g=>i.jsxs("div",{children:[(p==null?void 0:p.renamePath)===g.path?i.jsx(pc,{defaultValue:g.name,onSubmit:p.onSubmit,onCancel:p.onCancel,depth:n}):i.jsx(uv,{entry:g,depth:n,activePath:s,onFileClick:l,onDirToggle:u,expanded:o,onContextMenu:m}),g.type==="dir"&&i.jsx(dv,{dirPath:g.path,depth:n+1,activePath:s,onFileClick:l,expanded:o,onDirToggle:u,treeCache:d,fetchTreeDir:O,onContextMenu:m,inlineInput:p})]},g.path))]}):null}function CN({rootDir:t}){const n=G($=>$.editorTreeCache),s=G($=>$.editorActiveFile),l=G($=>$.openFile),o=G($=>$.fetchTreeDir),u=G($=>$.addToast),[d,O]=y.useState(new Set([""])),[m,p]=y.useState(""),[x,g]=y.useState(null),[b,v]=y.useState(null);y.useEffect(()=>{o("")},[o,t]);function Q($){O(W=>{const E=new Set(W);return E.has($)?E.delete($):E.add($),E})}function k($,W){g({x:$.clientX,y:$.clientY,entry:W})}function T($){$.preventDefault(),g({x:$.clientX,y:$.clientY,entry:{type:"dir",path:"",name:"root"}})}function j($){const W=$.split("/");return W.pop(),W.join("/")}async function P($){O(W=>new Set([...W,$])),v({type:"file",parentPath:$,onSubmit:async W=>{const E=$?`${$}/${W}`:W;try{await ee.post("/files/create",{path:E,content:""}),o($),l(E),u("success",`Created ${W}`)}catch(ne){u("error","Create failed",ne.message)}v(null)},onCancel:()=>v(null)})}async function N($){O(W=>new Set([...W,$])),v({type:"folder",parentPath:$,onSubmit:async W=>{const E=$?`${$}/${W}`:W;try{await ee.post("/files/mkdir",{path:E}),o($),O(ne=>new Set([...ne,E])),u("success",`Created ${W}/`)}catch(ne){u("error","Create folder failed",ne.message)}v(null)},onCancel:()=>v(null)})}async function A($){v({type:"rename",renamePath:$.path,onSubmit:async W=>{const E=j($.path),ne=E?`${E}/${W}`:W;try{await ee.post("/files/rename",{oldPath:$.path,newPath:ne}),o(E),u("success",`Renamed to ${W}`)}catch(re){u("error","Rename failed",re.message)}v(null)},onCancel:()=>v(null)})}async function U($){const W=$.type==="dir"?`folder "${$.name}" and all contents`:`"${$.name}"`;if(window.confirm(`Delete ${W}?`))try{await ee.delete(`/files/delete?path=${encodeURIComponent($.path)}`),o(j($.path)),u("success",`Deleted ${$.name}`)}catch(E){u("error","Delete failed",E.message)}}function C($){const W=$.type==="dir",E=[];return W&&(E.push({icon:xO,label:"New File",action:()=>P($.path)}),E.push({icon:gO,label:"New Folder",action:()=>N($.path)})),$.name!=="root"?(E.length>0&&E.push({separator:!0}),E.push({icon:Zc,label:"Rename",action:()=>A($)}),E.push({icon:Oi,label:"Delete",danger:!0,action:()=>U($)})):(E.length=0,E.push({icon:xO,label:"New File",action:()=>P("")}),E.push({icon:gO,label:"New Folder",action:()=>N("")})),E}const X=n[""]||[];return i.jsxs("div",{className:"flex flex-col h-full bg-surface-1",onContextMenu:T,children:[i.jsxs("div",{className:"flex items-center gap-1 px-2 py-1.5 border-b border-border-subtle",children:[i.jsxs("div",{className:"flex-1 relative",children:[i.jsx(Vl,{size:12,className:"absolute left-2 top-1/2 -translate-y-1/2 text-text-4"}),i.jsx("input",{value:m,onChange:$=>p($.target.value),placeholder:"Filter...",className:"w-full h-6 pl-6 pr-2 text-xs bg-surface-0 border border-border-subtle rounded text-text-1 placeholder:text-text-4 focus:outline-none focus:border-accent font-sans"})]}),i.jsx("button",{onClick:()=>P(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"New file",children:i.jsx(xO,{size:12})}),i.jsx("button",{onClick:()=>N(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"New folder",children:i.jsx(gO,{size:12})}),i.jsx("button",{onClick:()=>o(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"Refresh",children:i.jsx(Jn,{size:12})})]}),i.jsx(es,{className:"flex-1",children:i.jsxs("div",{className:"py-1",children:[(b==null?void 0:b.parentPath)===""&&i.jsx(pc,{placeholder:b.type==="file"?"filename.ext":"folder-name",onSubmit:b.onSubmit,onCancel:b.onCancel,depth:0}),X.filter($=>!m||$.name.toLowerCase().includes(m.toLowerCase())).map($=>i.jsxs("div",{children:[(b==null?void 0:b.renamePath)===$.path?i.jsx(pc,{defaultValue:$.name,onSubmit:b.onSubmit,onCancel:b.onCancel,depth:0}):i.jsx(uv,{entry:$,depth:0,activePath:s,onFileClick:l,onDirToggle:Q,expanded:d,onContextMenu:k}),$.type==="dir"&&i.jsx(dv,{dirPath:$.path,depth:1,activePath:s,onFileClick:l,expanded:d,onDirToggle:Q,treeCache:n,fetchTreeDir:o,onContextMenu:k,inlineInput:b})]},$.path))]})}),x&&i.jsx(RN,{x:x.x,y:x.y,items:C(x.entry),onClose:()=>g(null)})]})}function XN(){const t=G(u=>u.editorOpenTabs),n=G(u=>u.editorActiveFile),s=G(u=>u.editorFiles),l=G(u=>u.setActiveFile),o=G(u=>u.closeFile);return t.length===0?null:i.jsx("div",{className:"flex items-center h-8 bg-surface-3 border-b border-border overflow-x-auto flex-shrink-0",children:t.map(u=>{const d=u===n,O=s[u],m=O&&O.content!==O.originalContent,p=u.split("/").pop();return i.jsxs("div",{className:le("flex items-center gap-1.5 h-full px-3 text-xs font-sans cursor-pointer select-none","border-r border-border-subtle","transition-colors duration-75",d?"bg-surface-2 text-text-0 border-b-2 border-b-accent":"bg-surface-3 text-text-3 hover:text-text-1 hover:bg-surface-4"),onClick:()=>l(u),children:[i.jsx("span",{className:"truncate max-w-[120px]",children:p}),m&&i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-warning flex-shrink-0"}),i.jsx("button",{onClick:x=>{x.stopPropagation(),o(u)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 transition-colors cursor-pointer ml-0.5",children:i.jsx(Rt,{size:12})})]},u)})})}var l1={};class xc{constructor(n,s,l,o,u,d,O,m,p,x=0,g){this.p=n,this.stack=s,this.state=l,this.reducePos=o,this.pos=u,this.score=d,this.buffer=O,this.bufferBase=m,this.curContext=p,this.lookAhead=x,this.parent=g}toString(){return`[${this.stack.filter((n,s)=>s%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(n,s,l=0){let o=n.parser.context;return new xc(n,[],s,l,l,0,[],0,o?new r1(o,o.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(n,s){this.stack.push(this.state,s,this.bufferBase+this.buffer.length),this.state=n}reduce(n){var s;let l=n>>19,o=n&65535,{parser:u}=this.p,d=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),O=u.dynamicPrecedence(o);if(O&&(this.score+=O),l==0){this.pushState(u.getGoto(this.state,o,!0),this.reducePos),o<u.minRepeatTerm&&this.storeNode(o,this.reducePos,this.reducePos,d?8:4,!0),this.reduceContext(o,this.reducePos);return}let m=this.stack.length-(l-1)*3-(n&262144?6:0),p=m?this.stack[m-2]:this.p.ranges[0].from,x=this.reducePos-p;x>=2e3&&!(!((s=this.p.parser.nodeSet.types[o])===null||s===void 0)&&s.isAnonymous)&&(p==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=x):this.p.lastBigReductionSize<x&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=p,this.p.lastBigReductionSize=x));let g=m?this.stack[m-1]:0,b=this.bufferBase+this.buffer.length-g;if(o<u.minRepeatTerm||n&131072){let v=u.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(o,p,v,b+4,!0)}if(n&262144)this.state=this.stack[m];else{let v=this.stack[m-3];this.state=u.getGoto(v,o,!0)}for(;this.stack.length>m;)this.stack.pop();this.reduceContext(o,p)}storeNode(n,s,l,o=4,u=!1){if(n==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let d=this,O=this.buffer.length;if(O==0&&d.parent&&(O=d.bufferBase-d.parent.bufferBase,d=d.parent),O>0&&d.buffer[O-4]==0&&d.buffer[O-1]>-1){if(s==l)return;if(d.buffer[O-2]>=s){d.buffer[O-2]=l;return}}}if(!u||this.pos==l)this.buffer.push(n,s,l,o);else{let d=this.buffer.length;if(d>0&&(this.buffer[d-4]!=0||this.buffer[d-1]<0)){let O=!1;for(let m=d;m>0&&this.buffer[m-2]>l;m-=4)if(this.buffer[m-1]>=0){O=!0;break}if(O)for(;d>0&&this.buffer[d-2]>l;)this.buffer[d]=this.buffer[d-4],this.buffer[d+1]=this.buffer[d-3],this.buffer[d+2]=this.buffer[d-2],this.buffer[d+3]=this.buffer[d-1],d-=4,o>4&&(o-=4)}this.buffer[d]=n,this.buffer[d+1]=s,this.buffer[d+2]=l,this.buffer[d+3]=o}}shift(n,s,l,o){if(n&131072)this.pushState(n&65535,this.pos);else if((n&262144)==0){let u=n,{parser:d}=this.p;this.pos=o;let O=d.stateFlag(u,1);!O&&(o>l||s<=d.maxNode)&&(this.reducePos=o),this.pushState(u,O?l:Math.min(l,this.reducePos)),this.shiftContext(s,l),s<=d.maxNode&&this.buffer.push(s,l,o,4)}else this.pos=o,this.shiftContext(s,l),s<=this.p.parser.maxNode&&this.buffer.push(s,l,o,4)}apply(n,s,l,o){n&65536?this.reduce(n):this.shift(n,s,l,o)}useNode(n,s){let l=this.p.reused.length-1;(l<0||this.p.reused[l]!=n)&&(this.p.reused.push(n),l++);let o=this.pos;this.reducePos=this.pos=o+n.length,this.pushState(s,o),this.buffer.push(l,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}split(){let n=this,s=n.buffer.length;for(;s>0&&n.buffer[s-2]>n.reducePos;)s-=4;let l=n.buffer.slice(s),o=n.bufferBase+s;for(;n&&o==n.bufferBase;)n=n.parent;return new xc(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,l,o,this.curContext,this.lookAhead,n)}recoverByDelete(n,s){let l=n<=this.p.parser.maxNode;l&&this.storeNode(n,this.pos,s,4),this.storeNode(0,this.pos,s,l?8:4),this.pos=this.reducePos=s,this.score-=190}canShift(n){for(let s=new _N(this);;){let l=this.p.parser.stateSlot(s.state,4)||this.p.parser.hasAction(s.state,n);if(l==0)return!1;if((l&65536)==0)return!0;s.reduce(l)}}recoverByInsert(n){if(this.stack.length>=300)return[];let s=this.p.parser.nextStates(this.state);if(s.length>8||this.stack.length>=120){let o=[];for(let u=0,d;u<s.length;u+=2)(d=s[u+1])!=this.state&&this.p.parser.hasAction(d,n)&&o.push(s[u],d);if(this.stack.length<120)for(let u=0;o.length<8&&u<s.length;u+=2){let d=s[u+1];o.some((O,m)=>m&1&&O==d)||o.push(s[u],d)}s=o}let l=[];for(let o=0;o<s.length&&l.length<4;o+=2){let u=s[o+1];if(u==this.state)continue;let d=this.split();d.pushState(u,this.pos),d.storeNode(0,d.pos,d.pos,4,!0),d.shiftContext(s[o],this.pos),d.reducePos=this.pos,d.score-=200,l.push(d)}return l}forceReduce(){let{parser:n}=this.p,s=n.stateSlot(this.state,5);if((s&65536)==0)return!1;if(!n.validAction(this.state,s)){let l=s>>19,o=s&65535,u=this.stack.length-l*3;if(u<0||n.getGoto(this.stack[u],o,!1)<0){let d=this.findForcedReduction();if(d==null)return!1;s=d}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(s),!0}findForcedReduction(){let{parser:n}=this.p,s=[],l=(o,u)=>{if(!s.includes(o))return s.push(o),n.allActions(o,d=>{if(!(d&393216))if(d&65536){let O=(d>>19)-u;if(O>1){let m=d&65535,p=this.stack.length-O*3;if(p>=0&&n.getGoto(this.stack[p],m,!1)>=0)return O<<19|65536|m}}else{let O=l(d,u+1);if(O!=null)return O}})};return l(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:n}=this.p;return n.data[n.stateSlot(this.state,1)]==65535&&!n.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(let s=0;s<this.stack.length;s+=3)if(this.stack[s]!=n.stack[s])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(n){return this.p.parser.dialect.flags[n]}shiftContext(n,s){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,n,this,this.p.stream.reset(s)))}reduceContext(n,s){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,n,this,this.p.stream.reset(s)))}emitContext(){let n=this.buffer.length-1;(n<0||this.buffer[n]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let n=this.buffer.length-1;(n<0||this.buffer[n]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(n){if(n!=this.curContext.context){let s=new r1(this.curContext.tracker,n);s.hash!=this.curContext.hash&&this.emitContext(),this.curContext=s}}setLookAhead(n){return n<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=n,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class r1{constructor(n,s){this.tracker=n,this.context=s,this.hash=n.strict?n.hash(s):0}}class _N{constructor(n){this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}reduce(n){let s=n&65535,l=n>>19;l==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(l-1)*3;let o=this.start.p.parser.getGoto(this.stack[this.base-3],s,!0);this.state=o}}class gc{constructor(n,s,l){this.stack=n,this.pos=s,this.index=l,this.buffer=n.buffer,this.index==0&&this.maybeNext()}static create(n,s=n.bufferBase+n.buffer.length){return new gc(n,s,s-n.bufferBase)}maybeNext(){let n=this.stack.parent;n!=null&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new gc(this.stack,this.pos,this.index)}}function Ur(t,n=Uint16Array){if(typeof t!="string")return t;let s=null;for(let l=0,o=0;l<t.length;){let u=0;for(;;){let d=t.charCodeAt(l++),O=!1;if(d==126){u=65535;break}d>=92&&d--,d>=34&&d--;let m=d-32;if(m>=46&&(m-=46,O=!0),u+=m,O)break;u*=46}s?s[o++]=u:s=new n(u)}return s}class Io{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const i1=new Io;class ZN{constructor(n,s){this.input=n,this.ranges=s,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=i1,this.rangeIndex=0,this.pos=this.chunkPos=s[0].from,this.range=s[0],this.end=s[s.length-1].to,this.readNext()}resolveOffset(n,s){let l=this.range,o=this.rangeIndex,u=this.pos+n;for(;u<l.from;){if(!o)return null;let d=this.ranges[--o];u-=l.from-d.to,l=d}for(;s<0?u>l.to:u>=l.to;){if(o==this.ranges.length-1)return null;let d=this.ranges[++o];u+=d.from-l.to,l=d}return u}clipPos(n){if(n>=this.range.from&&n<this.range.to)return n;for(let s of this.ranges)if(s.to>n)return Math.max(n,s.from);return this.end}peek(n){let s=this.chunkOff+n,l,o;if(s>=0&&s<this.chunk.length)l=this.pos+n,o=this.chunk.charCodeAt(s);else{let u=this.resolveOffset(n,1);if(u==null)return-1;if(l=u,l>=this.chunk2Pos&&l<this.chunk2Pos+this.chunk2.length)o=this.chunk2.charCodeAt(l-this.chunk2Pos);else{let d=this.rangeIndex,O=this.range;for(;O.to<=l;)O=this.ranges[++d];this.chunk2=this.input.chunk(this.chunk2Pos=l),l+this.chunk2.length>O.to&&(this.chunk2=this.chunk2.slice(0,O.to-l)),o=this.chunk2.charCodeAt(0)}}return l>=this.token.lookAhead&&(this.token.lookAhead=l+1),o}acceptToken(n,s=0){let l=s?this.resolveOffset(s,-1):this.pos;if(l==null||l<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=n,this.token.end=l}acceptTokenTo(n,s){this.token.value=n,this.token.end=s}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:n,chunkPos:s}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=n,this.chunk2Pos=s,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let n=this.input.chunk(this.pos),s=this.pos+n.length;this.chunk=s>this.range.to?n.slice(0,this.range.to-this.pos):n,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(n=1){for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(n,s){if(s?(this.token=s,s.start=n,s.lookAhead=n+1,s.value=s.extended=-1):this.token=i1,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;n>=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n<this.chunkPos+this.chunk.length?this.chunkOff=n-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(n,s){if(n>=this.chunkPos&&s<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,s-this.chunkPos);if(n>=this.chunk2Pos&&s<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,s-this.chunk2Pos);if(n>=this.range.from&&s<=this.range.to)return this.input.read(n,s);let l="";for(let o of this.ranges){if(o.from>=s)break;o.to>n&&(l+=this.input.read(Math.max(o.from,n),Math.min(o.to,s)))}return l}}class $l{constructor(n,s){this.data=n,this.id=s}token(n,s){let{parser:l}=s.p;Ov(this.data,n,s,this.id,l.data,l.tokenPrecTable)}}$l.prototype.contextual=$l.prototype.fallback=$l.prototype.extend=!1;class bc{constructor(n,s,l){this.precTable=s,this.elseToken=l,this.data=typeof n=="string"?Ur(n):n}token(n,s){let l=n.pos,o=0;for(;;){let u=n.next<0,d=n.resolveOffset(1,1);if(Ov(this.data,n,s,0,this.data,this.precTable),n.token.value>-1)break;if(this.elseToken==null)return;if(u||o++,d==null)break;n.reset(d,n.token)}o&&(n.reset(l,n.token),n.acceptToken(this.elseToken,o))}}bc.prototype.contextual=$l.prototype.fallback=$l.prototype.extend=!1;class gt{constructor(n,s={}){this.token=n,this.contextual=!!s.contextual,this.fallback=!!s.fallback,this.extend=!!s.extend}}function Ov(t,n,s,l,o,u){let d=0,O=1<<l,{dialect:m}=s.p.parser;e:for(;(O&t[d])!=0;){let p=t[d+1];for(let v=d+3;v<p;v+=2)if((t[v+1]&O)>0){let Q=t[v];if(m.allows(Q)&&(n.token.value==-1||n.token.value==Q||AN(Q,n.token.value,o,u))){n.acceptToken(Q);break}}let x=n.next,g=0,b=t[d+2];if(n.next<0&&b>g&&t[p+b*3-3]==65535){d=t[p+b*3-1];continue e}for(;g<b;){let v=g+b>>1,Q=p+v+(v<<1),k=t[Q],T=t[Q+1]||65536;if(x<k)b=v;else if(x>=T)g=v+1;else{d=t[Q+2],n.advance();continue e}}break}}function o1(t,n,s){for(let l=n,o;(o=t[l])!=65535;l++)if(o==s)return l-n;return-1}function AN(t,n,s,l){let o=o1(s,l,n);return o<0||o1(s,l,t)<o}const Ut=typeof process<"u"&&l1&&/\bparse\b/.test(l1.LOG);let SO=null;function c1(t,n,s){let l=t.cursor(kc.IncludeAnonymous);for(l.moveTo(n);;)if(!(s<0?l.childBefore(n):l.childAfter(n)))for(;;){if((s<0?l.to<n:l.from>n)&&!l.type.isError)return s<0?Math.max(0,Math.min(l.to-1,n-25)):Math.min(t.length,Math.max(l.from+1,n+25));if(s<0?l.prevSibling():l.nextSibling())break;if(!l.parent())return s<0?0:t.length}}let EN=class{constructor(n,s){this.fragments=n,this.nodeSet=s,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?c1(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?c1(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(n){if(n<this.nextStart)return null;for(;this.fragment&&this.safeTo<=n;)this.nextFragment();if(!this.fragment)return null;for(;;){let s=this.trees.length-1;if(s<0)return this.nextFragment(),null;let l=this.trees[s],o=this.index[s];if(o==l.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let u=l.children[o],d=this.start[s]+l.positions[o];if(d>n)return this.nextStart=d,null;if(u instanceof ha){if(d==n){if(d<this.safeFrom)return null;let O=d+u.length;if(O<=this.safeTo){let m=u.prop(nn.lookAhead);if(!m||O+m<this.fragment.to)return u}}this.index[s]++,d+u.length>=Math.max(this.safeFrom,n)&&(this.trees.push(u),this.start.push(d),this.index.push(0))}else this.index[s]++,this.nextStart=d+u.length}}};class qN{constructor(n,s){this.stream=s,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(l=>new Io)}getActions(n){let s=0,l=null,{parser:o}=n.p,{tokenizers:u}=o,d=o.stateSlot(n.state,3),O=n.curContext?n.curContext.hash:0,m=0;for(let p=0;p<u.length;p++){if((1<<p&d)==0)continue;let x=u[p],g=this.tokens[p];if(!(l&&!x.fallback)&&((x.contextual||g.start!=n.pos||g.mask!=d||g.context!=O)&&(this.updateCachedToken(g,x,n),g.mask=d,g.context=O),g.lookAhead>g.end+25&&(m=Math.max(g.lookAhead,m)),g.value!=0)){let b=s;if(g.extended>-1&&(s=this.addActions(n,g.extended,g.end,s)),s=this.addActions(n,g.value,g.end,s),!x.extend&&(l=g,s>b))break}}for(;this.actions.length>s;)this.actions.pop();return m&&n.setLookAhead(m),!l&&n.pos==this.stream.end&&(l=new Io,l.value=n.p.parser.eofTerm,l.start=l.end=n.pos,s=this.addActions(n,l.value,l.end,s)),this.mainToken=l,this.actions}getMainToken(n){if(this.mainToken)return this.mainToken;let s=new Io,{pos:l,p:o}=n;return s.start=l,s.end=Math.min(l+1,o.stream.end),s.value=l==o.stream.end?o.parser.eofTerm:0,s}updateCachedToken(n,s,l){let o=this.stream.clipPos(l.pos);if(s.token(this.stream.reset(o,n),l),n.value>-1){let{parser:u}=l.p;for(let d=0;d<u.specialized.length;d++)if(u.specialized[d]==n.value){let O=u.specializers[d](this.stream.read(n.start,n.end),l);if(O>=0&&l.p.parser.dialect.allows(O>>1)){(O&1)==0?n.value=O>>1:n.extended=O>>1;break}}}else n.value=0,n.end=this.stream.clipPos(o+1)}putAction(n,s,l,o){for(let u=0;u<o;u+=3)if(this.actions[u]==n)return o;return this.actions[o++]=n,this.actions[o++]=s,this.actions[o++]=l,o}addActions(n,s,l,o){let{state:u}=n,{parser:d}=n.p,{data:O}=d;for(let m=0;m<2;m++)for(let p=d.stateSlot(u,m?2:1);;p+=3){if(O[p]==65535)if(O[p+1]==1)p=an(O,p+2);else{o==0&&O[p+1]==2&&(o=this.putAction(an(O,p+2),s,l,o));break}O[p]==s&&(o=this.putAction(an(O,p+1),s,l,o))}return o}}class MN{constructor(n,s,l,o){this.parser=n,this.input=s,this.ranges=o,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new ZN(s,o),this.tokens=new qN(n,this.stream),this.topTerm=n.top[1];let{from:u}=o[0];this.stacks=[xc.start(this,n.top[0],u)],this.fragments=l.length&&this.stream.end-u>n.bufferLength*4?new EN(l,n.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let n=this.stacks,s=this.minStackPos,l=this.stacks=[],o,u;if(this.bigReductionCount>300&&n.length==1){let[d]=n;for(;d.forceReduce()&&d.stack.length&&d.stack[d.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let d=0;d<n.length;d++){let O=n[d];for(;;){if(this.tokens.mainToken=null,O.pos>s)l.push(O);else{if(this.advanceStack(O,l,n))continue;{o||(o=[],u=[]),o.push(O);let m=this.tokens.getMainToken(O);u.push(m.value,m.end)}}break}}if(!l.length){let d=o&&VN(o);if(d)return Ut&&console.log("Finish with "+this.stackID(d)),this.stackToTree(d);if(this.parser.strict)throw Ut&&o&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+s);this.recovering||(this.recovering=5)}if(this.recovering&&o){let d=this.stoppedAt!=null&&o[0].pos>this.stoppedAt?o[0]:this.runRecovery(o,u,l);if(d)return Ut&&console.log("Force-finish "+this.stackID(d)),this.stackToTree(d.forceAll())}if(this.recovering){let d=this.recovering==1?1:this.recovering*3;if(l.length>d)for(l.sort((O,m)=>m.score-O.score);l.length>d;)l.pop();l.some(O=>O.reducePos>s)&&this.recovering--}else if(l.length>1){e:for(let d=0;d<l.length-1;d++){let O=l[d];for(let m=d+1;m<l.length;m++){let p=l[m];if(O.sameState(p)||O.buffer.length>500&&p.buffer.length>500)if((O.score-p.score||O.buffer.length-p.buffer.length)>0)l.splice(m--,1);else{l.splice(d--,1);continue e}}}l.length>12&&(l.sort((d,O)=>O.score-d.score),l.splice(12,l.length-12))}this.minStackPos=l[0].pos;for(let d=1;d<l.length;d++)l[d].pos<this.minStackPos&&(this.minStackPos=l[d].pos);return null}stopAt(n){if(this.stoppedAt!=null&&this.stoppedAt<n)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=n}advanceStack(n,s,l){let o=n.pos,{parser:u}=this,d=Ut?this.stackID(n)+" -> ":"";if(this.stoppedAt!=null&&o>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments){let p=n.curContext&&n.curContext.tracker.strict,x=p?n.curContext.hash:0;for(let g=this.fragments.nodeAt(o);g;){let b=this.parser.nodeSet.types[g.type.id]==g.type?u.getGoto(n.state,g.type.id):-1;if(b>-1&&g.length&&(!p||(g.prop(nn.contextHash)||0)==x))return n.useNode(g,b),Ut&&console.log(d+this.stackID(n)+` (via reuse of ${u.getName(g.type.id)})`),!0;if(!(g instanceof ha)||g.children.length==0||g.positions[0]>0)break;let v=g.children[0];if(v instanceof ha&&g.positions[0]==0)g=v;else break}}let O=u.stateSlot(n.state,4);if(O>0)return n.reduce(O),Ut&&console.log(d+this.stackID(n)+` (via always-reduce ${u.getName(O&65535)})`),!0;if(n.stack.length>=8400)for(;n.stack.length>6e3&&n.forceReduce(););let m=this.tokens.getActions(n);for(let p=0;p<m.length;){let x=m[p++],g=m[p++],b=m[p++],v=p==m.length||!l,Q=v?n:n.split(),k=this.tokens.mainToken;if(Q.apply(x,g,k?k.start:Q.pos,b),Ut&&console.log(d+this.stackID(Q)+` (via ${(x&65536)==0?"shift":`reduce of ${u.getName(x&65535)}`} for ${u.getName(g)} @ ${o}${Q==n?"":", split"})`),v)return!0;Q.pos>o?s.push(Q):l.push(Q)}return!1}advanceFully(n,s){let l=n.pos;for(;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>l)return u1(n,s),!0}}runRecovery(n,s,l){let o=null,u=!1;for(let d=0;d<n.length;d++){let O=n[d],m=s[d<<1],p=s[(d<<1)+1],x=Ut?this.stackID(O)+" -> ":"";if(O.deadEnd&&(u||(u=!0,O.restart(),Ut&&console.log(x+this.stackID(O)+" (restarted)"),this.advanceFully(O,l))))continue;let g=O.split(),b=x;for(let v=0;v<10&&g.forceReduce()&&(Ut&&console.log(b+this.stackID(g)+" (via force-reduce)"),!this.advanceFully(g,l));v++)Ut&&(b=this.stackID(g)+" -> ");for(let v of O.recoverByInsert(m))Ut&&console.log(x+this.stackID(v)+" (via recover-insert)"),this.advanceFully(v,l);this.stream.end>O.pos?(p==O.pos&&(p++,m=0),O.recoverByDelete(m,p),Ut&&console.log(x+this.stackID(O)+` (via recover-delete ${this.parser.getName(m)})`),u1(O,l)):(!o||o.score<g.score)&&(o=g)}return o}stackToTree(n){return n.close(),ha.build({buffer:gc.create(n),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:n.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(n){let s=(SO||(SO=new WeakMap)).get(n);return s||SO.set(n,s=String.fromCodePoint(this.nextStackID++)),s+n}}function u1(t,n){for(let s=0;s<n.length;s++){let l=n[s];if(l.pos==t.pos&&l.sameState(t)){n[s].score<t.score&&(n[s]=t);return}}n.push(t)}class YN{constructor(n,s,l){this.source=n,this.flags=s,this.disabled=l}allows(n){return!this.disabled||this.disabled[n]==0}}const QO=t=>t;class lh{constructor(n){this.start=n.start,this.shift=n.shift||QO,this.reduce=n.reduce||QO,this.reuse=n.reuse||QO,this.hash=n.hash||(()=>0),this.strict=n.strict!==!1}}class Fn extends S0{constructor(n){if(super(),this.wrappers=[],n.version!=14)throw new RangeError(`Parser version (${n.version}) doesn't match runtime version (14)`);let s=n.nodeNames.split(" ");this.minRepeatTerm=s.length;for(let O=0;O<n.repeatNodeCount;O++)s.push("");let l=Object.keys(n.topRules).map(O=>n.topRules[O][1]),o=[];for(let O=0;O<s.length;O++)o.push([]);function u(O,m,p){o[O].push([m,m.deserialize(String(p))])}if(n.nodeProps)for(let O of n.nodeProps){let m=O[0];typeof m=="string"&&(m=nn[m]);for(let p=1;p<O.length;){let x=O[p++];if(x>=0)u(x,m,O[p++]);else{let g=O[p+-x];for(let b=-x;b>0;b--)u(O[p++],m,g);p++}}}this.nodeSet=new Tf(s.map((O,m)=>si.define({name:m>=this.minRepeatTerm?void 0:O,id:m,props:o[m],top:l.indexOf(m)>-1,error:m==0,skipped:n.skippedNodes&&n.skippedNodes.indexOf(m)>-1}))),n.propSources&&(this.nodeSet=this.nodeSet.extend(...n.propSources)),this.strict=!1,this.bufferLength=jj;let d=Ur(n.tokenData);this.context=n.context,this.specializerSpecs=n.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let O=0;O<this.specializerSpecs.length;O++)this.specialized[O]=this.specializerSpecs[O].term;this.specializers=this.specializerSpecs.map(d1),this.states=Ur(n.states,Uint32Array),this.data=Ur(n.stateData),this.goto=Ur(n.goto),this.maxTerm=n.maxTerm,this.tokenizers=n.tokenizers.map(O=>typeof O=="number"?new $l(d,O):O),this.topRules=n.topRules,this.dialects=n.dialects||{},this.dynamicPrecedences=n.dynamicPrecedences||null,this.tokenPrecTable=n.tokenPrec,this.termNames=n.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(n,s,l){let o=new MN(this,n,s,l);for(let u of this.wrappers)o=u(o,n,s,l);return o}getGoto(n,s,l=!1){let o=this.goto;if(s>=o[0])return-1;for(let u=o[s+1];;){let d=o[u++],O=d&1,m=o[u++];if(O&&l)return m;for(let p=u+(d>>1);u<p;u++)if(o[u]==n)return m;if(O)return-1}}hasAction(n,s){let l=this.data;for(let o=0;o<2;o++)for(let u=this.stateSlot(n,o?2:1),d;;u+=3){if((d=l[u])==65535)if(l[u+1]==1)d=l[u=an(l,u+2)];else{if(l[u+1]==2)return an(l,u+2);break}if(d==s||d==0)return an(l,u+1)}return 0}stateSlot(n,s){return this.states[n*6+s]}stateFlag(n,s){return(this.stateSlot(n,0)&s)>0}validAction(n,s){return!!this.allActions(n,l=>l==s?!0:null)}allActions(n,s){let l=this.stateSlot(n,4),o=l?s(l):void 0;for(let u=this.stateSlot(n,1);o==null;u+=3){if(this.data[u]==65535)if(this.data[u+1]==1)u=an(this.data,u+2);else break;o=s(an(this.data,u+1))}return o}nextStates(n){let s=[];for(let l=this.stateSlot(n,1);;l+=3){if(this.data[l]==65535)if(this.data[l+1]==1)l=an(this.data,l+2);else break;if((this.data[l+2]&1)==0){let o=this.data[l+1];s.some((u,d)=>d&1&&u==o)||s.push(this.data[l],o)}}return s}configure(n){let s=Object.assign(Object.create(Fn.prototype),this);if(n.props&&(s.nodeSet=this.nodeSet.extend(...n.props)),n.top){let l=this.topRules[n.top];if(!l)throw new RangeError(`Invalid top rule name ${n.top}`);s.top=l}return n.tokenizers&&(s.tokenizers=this.tokenizers.map(l=>{let o=n.tokenizers.find(u=>u.from==l);return o?o.to:l})),n.specializers&&(s.specializers=this.specializers.slice(),s.specializerSpecs=this.specializerSpecs.map((l,o)=>{let u=n.specializers.find(O=>O.from==l.external);if(!u)return l;let d=Object.assign(Object.assign({},l),{external:u.to});return s.specializers[o]=d1(d),d})),n.contextTracker&&(s.context=n.contextTracker),n.dialect&&(s.dialect=this.parseDialect(n.dialect)),n.strict!=null&&(s.strict=n.strict),n.wrap&&(s.wrappers=s.wrappers.concat(n.wrap)),n.bufferLength!=null&&(s.bufferLength=n.bufferLength),s}hasWrappers(){return this.wrappers.length>0}getName(n){return this.termNames?this.termNames[n]:String(n<=this.maxNode&&this.nodeSet.types[n].name||n)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(n){let s=this.dynamicPrecedences;return s==null?0:s[n]||0}parseDialect(n){let s=Object.keys(this.dialects),l=s.map(()=>!1);if(n)for(let u of n.split(" ")){let d=s.indexOf(u);d>=0&&(l[d]=!0)}let o=null;for(let u=0;u<s.length;u++)if(!l[u])for(let d=this.dialects[s[u]],O;(O=this.data[d++])!=65535;)(o||(o=new Uint8Array(this.maxTerm+1)))[O]=1;return new YN(n,l,o)}static deserialize(n){return new Fn(n)}}function an(t,n){return t[n]|t[n+1]<<16}function VN(t){let n=null;for(let s of t){let l=s.p.stoppedAt;(s.pos==s.p.stream.end||l!=null&&s.pos>l)&&s.p.parser.stateFlag(s.state,2)&&(!n||n.score<s.score)&&(n=s)}return n}function d1(t){if(t.external){let n=t.extend?1:0;return(s,l)=>t.external(s,l)<<1|n}return t.get}const UN=316,GN=317,O1=1,LN=2,DN=3,WN=4,BN=318,HN=320,IN=321,FN=5,KN=6,JN=0,ff=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],fv=125,e3=59,hf=47,t3=42,a3=43,n3=45,s3=60,l3=44,r3=63,i3=46,o3=91,c3=new lh({start:!1,shift(t,n){return n==FN||n==KN||n==HN?t:n==IN},strict:!1}),u3=new gt((t,n)=>{let{next:s}=t;(s==fv||s==-1||n.context)&&t.acceptToken(BN)},{contextual:!0,fallback:!0}),d3=new gt((t,n)=>{let{next:s}=t,l;ff.indexOf(s)>-1||s==hf&&((l=t.peek(1))==hf||l==t3)||s!=fv&&s!=e3&&s!=-1&&!n.context&&t.acceptToken(UN)},{contextual:!0}),O3=new gt((t,n)=>{t.next==o3&&!n.context&&t.acceptToken(GN)},{contextual:!0}),f3=new gt((t,n)=>{let{next:s}=t;if(s==a3||s==n3){if(t.advance(),s==t.next){t.advance();let l=!n.context&&n.canShift(O1);t.acceptToken(l?O1:LN)}}else s==r3&&t.peek(1)==i3&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(DN))},{contextual:!0});function jO(t,n){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!n&&t>=48&&t<=57}const h3=new gt((t,n)=>{if(t.next!=s3||!n.dialectEnabled(JN)||(t.advance(),t.next==hf))return;let s=0;for(;ff.indexOf(t.next)>-1;)t.advance(),s++;if(jO(t.next,!0)){for(t.advance(),s++;jO(t.next,!1);)t.advance(),s++;for(;ff.indexOf(t.next)>-1;)t.advance(),s++;if(t.next==l3)return;for(let l=0;;l++){if(l==7){if(!jO(t.next,!0))return;break}if(t.next!="extends".charCodeAt(l))break;t.advance(),s++}}t.acceptToken(WN,-s)}),m3=Ps({"get set async static":Z.modifier,"for while do if else switch try catch finally return throw break continue default case defer":Z.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":Z.operatorKeyword,"let var const using function class extends":Z.definitionKeyword,"import export from":Z.moduleKeyword,"with debugger new":Z.keyword,TemplateString:Z.special(Z.string),super:Z.atom,BooleanLiteral:Z.bool,this:Z.self,null:Z.null,Star:Z.modifier,VariableName:Z.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Z.function(Z.variableName),VariableDefinition:Z.definition(Z.variableName),Label:Z.labelName,PropertyName:Z.propertyName,PrivatePropertyName:Z.special(Z.propertyName),"CallExpression/MemberExpression/PropertyName":Z.function(Z.propertyName),"FunctionDeclaration/VariableDefinition":Z.function(Z.definition(Z.variableName)),"ClassDeclaration/VariableDefinition":Z.definition(Z.className),"NewExpression/VariableName":Z.className,PropertyDefinition:Z.definition(Z.propertyName),PrivatePropertyDefinition:Z.definition(Z.special(Z.propertyName)),UpdateOp:Z.updateOperator,"LineComment Hashbang":Z.lineComment,BlockComment:Z.blockComment,Number:Z.number,String:Z.string,Escape:Z.escape,ArithOp:Z.arithmeticOperator,LogicOp:Z.logicOperator,BitOp:Z.bitwiseOperator,CompareOp:Z.compareOperator,RegExp:Z.regexp,Equals:Z.definitionOperator,Arrow:Z.function(Z.punctuation),": Spread":Z.punctuation,"( )":Z.paren,"[ ]":Z.squareBracket,"{ }":Z.brace,"InterpolationStart InterpolationEnd":Z.special(Z.brace),".":Z.derefOperator,", ;":Z.separator,"@":Z.meta,TypeName:Z.typeName,TypeDefinition:Z.definition(Z.typeName),"type enum interface implements namespace module declare":Z.definitionKeyword,"abstract global Privacy readonly override":Z.modifier,"is keyof unique infer asserts":Z.operatorKeyword,JSXAttributeValue:Z.attributeValue,JSXText:Z.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Z.angleBracket,"JSXIdentifier JSXNameSpacedName":Z.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Z.attributeName,"JSXBuiltin/JSXIdentifier":Z.standard(Z.tagName)}),p3={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},x3={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},g3={__proto__:null,"<":193},b3=Fn.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO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6{3QQ7Q3WQ7a3lQ7b=PQ7k=RQ7l=ZQ8k5wQ9X6sQ9]6|Q9g=[Q9m=eQ9n=fQ:o9_Q;W:ZQ;`:mQ<W#SR=v>SR#[WR'Z!el!tQ!r!v!y!z'`'l'm'n-e-u1o5{5}S'V!e-]U*j$|*Z*oS-Y'W'_S0U*k*qQ0^*rQ2u-cQ4v0[R4{0_R({#xQ!fQT-d'`-e]!qQ!r'`-e1o5{Q#p]R'i<VR)f$dY!uQ'`-e1o5{Q'k!rS'u!v!yS'w!z5}S-t'l'mQ-v'nR3T-uT#kZ%eS#jZ%eS%km,oU(g#h#i#lS.Y(h(iQ.^(jQ0t+^Q3Y.ZU3Z.[.]._S7S3[3]R9`7Td#^W#W#Z%h(T(^*Y+Z.T/mr#gZm#h#i#l%e(h(i(j+^.Z.[.]._3[3]7TS*]$x*bQ/t*^Q2U,oQ2l-VQ4`/pQ6q2dQ7s4aQ9W6rT=m'X+[V#aW%h*YU#`W%h*YS(U#W(^U(Z#Z+Z/mS-['X+[T.O(T.TV'^!e%i*ZQ$lfR)x$qT)m$l)nR4V/UT*_$x*bT*h${*YQ0w+fQ1g,VQ3_.fQ5t1iQ6P1qQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;n;[R;q;dnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&l!VR,h&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:c3,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[m3],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$i&jO!^&c!_#o&c#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er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[d3,O3,f3,h3,2,3,4,5,6,7,8,9,10,11,12,13,14,u3,new bc("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new bc("j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~",25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:t=>p3[t]||-1},{term:343,get:t=>x3[t]||-1},{term:95,get:t=>g3[t]||-1}],tokenPrec:15201}),hv=[Ie("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Ie("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Ie("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Ie("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Ie("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Ie(`try {
|
|
550
|
-
\${}
|
|
551
|
-
} catch (\${error}) {
|
|
552
|
-
\${}
|
|
553
|
-
}`,{label:"try",detail:"/ catch block",type:"keyword"}),Ie("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Ie(`if (\${}) {
|
|
554
|
-
\${}
|
|
555
|
-
} else {
|
|
556
|
-
\${}
|
|
557
|
-
}`,{label:"if",detail:"/ else block",type:"keyword"}),Ie(`class \${name} {
|
|
558
|
-
constructor(\${params}) {
|
|
559
|
-
\${}
|
|
560
|
-
}
|
|
561
|
-
}`,{label:"class",detail:"definition",type:"keyword"}),Ie('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Ie('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],v3=hv.concat([Ie("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Ie("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Ie("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),f1=new Pf,mv=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Mr(t){return(n,s)=>{let l=n.node.getChild("VariableDefinition");return l&&s(l,t),!0}}const y3=["FunctionDeclaration"],S3={FunctionDeclaration:Mr("function"),ClassDeclaration:Mr("class"),ClassExpression:()=>!0,EnumDeclaration:Mr("constant"),TypeAliasDeclaration:Mr("type"),NamespaceDeclaration:Mr("namespace"),VariableDefinition(t,n){t.matchContext(y3)||n(t,"variable")},TypeDefinition(t,n){n(t,"type")},__proto__:null};function pv(t,n){let s=f1.get(n);if(s)return s;let l=[],o=!0;function u(d,O){let m=t.sliceString(d.from,d.to);l.push({label:m,type:O})}return n.cursor(kc.IncludeAnonymous).iterate(d=>{if(o)o=!1;else if(d.name){let O=S3[d.name];if(O&&O(d,u)||mv.has(d.name))return!1}else if(d.to-d.from>8192){for(let O of pv(t,d.node))l.push(O);return!1}}),f1.set(n,l),l}const h1=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,xv=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function Q3(t){let n=xa(t.state).resolveInner(t.pos,-1);if(xv.indexOf(n.name)>-1)return null;let s=n.name=="VariableName"||n.to-n.from<20&&h1.test(t.state.sliceDoc(n.from,n.to));if(!s&&!t.explicit)return null;let l=[];for(let o=n;o;o=o.parent)mv.has(o.name)&&(l=l.concat(pv(t.state.doc,o)));return{options:l,from:s?n.from:t.pos,validFor:h1}}const $a=li.define({name:"javascript",parser:b3.configure({props:[El.add({IfStatement:jl({except:/^\s*({|else\b)/}),TryStatement:jl({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:wj,SwitchBody:t=>{let n=t.textAfter,s=/^\s*\}/.test(n),l=/^\s*(case|default)\b/.test(n);return t.baseIndent+(s?0:l?1:2)*t.unit},Block:Bo({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":jl({except:/^\s*{/}),JSXElement(t){let n=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(n?0:t.unit)},JSXEscape(t){let n=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(n?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),Ns.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":$c,BlockComment(t){return{from:t.from+2,to:t.to-2}},JSXElement(t){let n=t.firstChild;if(!n||n.name=="JSXSelfClosingTag")return null;let s=t.lastChild;return{from:n.to,to:s.type.isError?t.to:s.from}},"JSXSelfClosingTag JSXOpenTag"(t){var n;let s=(n=t.firstChild)===null||n===void 0?void 0:n.nextSibling,l=t.lastChild;return!s||s.type.isError?null:{from:s.to,to:l.type.isError?t.to:l.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),gv={test:t=>/^JSX/.test(t.name),facet:k0({commentTokens:{block:{open:"{/*",close:"*/}"}}})},bv=$a.configure({dialect:"ts"},"typescript"),vv=$a.configure({dialect:"jsx",props:[w0.add(t=>t.isTop?[gv]:void 0)]}),yv=$a.configure({dialect:"jsx ts",props:[w0.add(t=>t.isTop?[gv]:void 0)]},"typescript");let Sv=t=>({label:t,type:"keyword"});const Qv="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Sv),j3=Qv.concat(["declare","implements","private","protected","public"].map(Sv));function mf(t={}){let n=t.jsx?t.typescript?yv:vv:t.typescript?bv:$a,s=t.typescript?v3.concat(j3):hv.concat(Qv);return new Qs(n,[$a.data.of({autocomplete:Q0(xv,j0(s))}),$a.data.of({autocomplete:Q3}),t.jsx?$3:[]])}function w3(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function m1(t,n,s=t.length){for(let l=n==null?void 0:n.firstChild;l;l=l.nextSibling)if(l.name=="JSXIdentifier"||l.name=="JSXBuiltin"||l.name=="JSXNamespacedName"||l.name=="JSXMemberExpression")return t.sliceString(l.from,Math.min(l.to,s));return""}const k3=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),$3=zl.inputHandler.of((t,n,s,l,o)=>{if((k3?t.composing:t.compositionStarted)||t.state.readOnly||n!=s||l!=">"&&l!="/"||!$a.isActiveAt(t.state,n,-1))return!1;let u=o(),{state:d}=u,O=d.changeByRange(m=>{var p;let{head:x}=m,g=xa(d).resolveInner(x-1,-1),b;if(g.name=="JSXStartTag"&&(g=g.parent),!(d.doc.sliceString(x-1,x)!=l||g.name=="JSXAttributeValue"&&g.to>x)){if(l==">"&&g.name=="JSXFragmentTag")return{range:m,changes:{from:x,insert:"</>"}};if(l=="/"&&g.name=="JSXStartCloseTag"){let v=g.parent,Q=v.parent;if(Q&&v.from==x-2&&((b=m1(d.doc,Q.firstChild,x))||((p=Q.firstChild)===null||p===void 0?void 0:p.name)=="JSXFragmentTag")){let k=`${b}>`;return{range:Dn.cursor(x+k.length,-1),changes:{from:x,insert:k}}}}else if(l==">"){let v=w3(g);if(v&&v.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(d.doc.sliceString(x,x+2))&&(b=m1(d.doc,v,x)))return{range:m,changes:{from:x,insert:`</${b}>`}}}}return{range:m}});return O.changes.empty?!1:(t.dispatch([u,d.update(O,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),T3=135,p1=1,P3=136,N3=137,jv=2,z3=138,R3=3,C3=4,wv=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],X3=58,_3=40,kv=95,Z3=91,Fo=45,A3=46,E3=35,q3=37,M3=38,Y3=92,V3=10,U3=42;function Jr(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function rh(t){return t>=48&&t<=57}function x1(t){return rh(t)||t>=97&&t<=102||t>=65&&t<=70}const $v=(t,n,s)=>(l,o)=>{for(let u=!1,d=0,O=0;;O++){let{next:m}=l;if(Jr(m)||m==Fo||m==kv||u&&rh(m))!u&&(m!=Fo||O>0)&&(u=!0),d===O&&m==Fo&&d++,l.advance();else if(m==Y3&&l.peek(1)!=V3){if(l.advance(),x1(l.next)){do l.advance();while(x1(l.next));l.next==32&&l.advance()}else l.next>-1&&l.advance();u=!0}else{u&&l.acceptToken(d==2&&o.canShift(jv)?n:m==_3?s:t);break}}},G3=new gt($v(P3,jv,N3),{contextual:!0}),L3=new gt($v(z3,R3,C3),{contextual:!0}),D3=new gt(t=>{if(wv.includes(t.peek(-1))){let{next:n}=t;(Jr(n)||n==kv||n==E3||n==A3||n==U3||n==Z3||n==X3&&Jr(t.peek(1))||n==Fo||n==M3)&&t.acceptToken(T3)}}),W3=new gt(t=>{if(!wv.includes(t.peek(-1))){let{next:n}=t;if(n==q3&&(t.advance(),t.acceptToken(p1)),Jr(n)){do t.advance();while(Jr(t.next)||rh(t.next));t.acceptToken(p1)}}}),B3=Ps({"AtKeyword import charset namespace keyframes media supports font-feature-values":Z.definitionKeyword,"from to selector scope MatchFlag":Z.keyword,NamespaceName:Z.namespace,KeyframeName:Z.labelName,KeyframeRangeName:Z.operatorKeyword,TagName:Z.tagName,ClassName:Z.className,PseudoClassName:Z.constant(Z.className),IdName:Z.labelName,"FeatureName PropertyName":Z.propertyName,AttributeName:Z.attributeName,NumberLiteral:Z.number,KeywordQuery:Z.keyword,UnaryQueryOp:Z.operatorKeyword,"CallTag ValueName FontName":Z.atom,VariableName:Z.variableName,Callee:Z.operatorKeyword,Unit:Z.unit,"UniversalSelector NestingSelector":Z.definitionOperator,"MatchOp CompareOp":Z.compareOperator,"ChildOp SiblingOp, LogicOp":Z.logicOperator,BinOp:Z.arithmeticOperator,Important:Z.modifier,Comment:Z.blockComment,ColorLiteral:Z.color,"ParenthesizedContent StringLiteral":Z.string,":":Z.punctuation,"PseudoOp #":Z.derefOperator,"; , |":Z.separator,"( )":Z.paren,"[ ]":Z.squareBracket,"{ }":Z.brace}),H3={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},I3={__proto__:null,or:104,and:104,not:112,only:112,layer:186},F3={__proto__:null,selector:118,layer:182},K3={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":198,"@keyframes":204,"@supports":216,"@scope":220,"@font-feature-values":226},J3={__proto__:null,to:223},e4=Fn.deserialize({version:14,states:"IpQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FdO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#DtO'dQdO'#DvO'oQdO'#D}O'oQdO'#EQOOQP'#Fd'#FdO)OQhO'#EsOOQS'#Fc'#FcOOQS'#Ev'#EvQYQdOOO)VQdO'#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R#fzQ!_[R#g{T!^[{Q#r!]R%]#sQ!SXQ!i`Q#SjQ#m!QQ$P!dQ$l!yQ$r#QQ$u#UQ$x#XQ%e$OQ&S$tQ&y&OQ&|&TR'h&xSnP!RQ#]oQ$|#ZR&Z$}ZmPo!R#Z$}Q${#YQ&X$yR'P&WR$e!qQ&n%oR'm'_R!}gR#PhR$q#PS&O$p&PR'f&wV%|$p&P&wR#XkQ#_qR%Q#_QcOSoP!RU!kco$}R$}#ZQ%Z#pY&`%Z&f'U'^'sQ&f%_Q'U&aQ'^&kR's'kQ$Y!mQ$[!nQ$^!oV%j$Y$[$^Q%t$gR&t%tQ&j%gS']&j'lR'l'^Q&b%ZR'V&bQ&^%WR'T&^Q!QXR#l!QQ&W$yR'O&WQ#[nS%O#[%PR%P#]Q'`&nR'n'`Q$k!xR%x$kQ&P$pR&z&PQ&x&OR'g&xQ#WkR$w#WQ$O!dR%d$O_bOPco!R#Z$}^XOPco!R#Z$}Q!`]Q!a^Q#h|Q#i}Q#j!OQ#k!PQ$s#RQ%W#oR'S&]R%[#pQ!qdQ!zf[$V!m!n!o$Y$[$^Q$y#Yd%Y#p%Z%_&a&f&k'U'^'k'sQ%^#uQ%n$aS&U$y&WQ&[%UQ&}&VR'b&p]$X!m!n!o$Y$[$^Q!d`U!xe!q$eQ#QiQ#x!cS#{!d$OQ$Q!eQ%b#|Q%c#}Q%g$RS%r$g%tQ%w$jR'Z&iQ#z!cQ&h%`R'j'YR%i$RR%X#oQpPR#n!RQ!yeQ$d!qR%q$e",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:159,nodeProps:[["isolate",-2,5,39,""],["openedBy",23,"(",31,"[",34,"{"],["closedBy",24,")",32,"]",35,"}"]],propSources:[B3],skippedNodes:[0,5,117],repeatNodeCount:17,tokenData:"K`~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu2Xuv%Zvw3Rwx3dxy5Ryz5dz{5i{|6S|}:u}!O;W!O!P;u!P!Q<^!Q![=V![!]>Q!]!^>|!^!_?_!_!`@Z!`!a@n!a!b%Z!b!cAo!c!k%Z!k!lC|!l!u%Z!u!vC|!v!}%Z!}#OD_#O#P%Z#P#QDp#Q#R2X#R#]%Z#]#^ER#^#g%Z#g#hC|#h#o%Z#o#pIf#p#qIw#q#rJ`#r#sJq#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`KY<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!e`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l%j~&Wh$Q~OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j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Oy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jjJeSrYOy%jz;'S%j;'S;=`%{<%lO%jfJvU!uQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%j`K]P;=`<%l%Z",tokenizers:[D3,W3,G3,L3,1,2,3,4,new bc("m~RRYZ[z{a~~g~aO$T~~dP!P!Qg~lO$U~~",28,142)],topRules:{StyleSheet:[0,6],Styles:[1,116]},dynamicPrecedences:{84:1},specialized:[{term:137,get:t=>H3[t]||-1},{term:138,get:t=>I3[t]||-1},{term:4,get:t=>F3[t]||-1},{term:28,get:t=>K3[t]||-1},{term:136,get:t=>J3[t]||-1}],tokenPrec:2256});let wO=null;function kO(){if(!wO&&typeof document=="object"&&document.body){let{style:t}=document.body,n=[],s=new Set;for(let l in t)l!="cssText"&&l!="cssFloat"&&typeof t[l]=="string"&&(/[A-Z]/.test(l)&&(l=l.replace(/[A-Z]/g,o=>"-"+o.toLowerCase())),s.has(l)||(n.push(l),s.add(l)));wO=n.sort().map(l=>({type:"property",label:l,apply:l+": "}))}return wO||[]}const g1=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),b1=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),t4=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),a4=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(t=>({type:"keyword",label:t})),Fa=/^(\w[\w-]*|-\w[\w-]*|)$/,n4=/^-(-[\w-]*)?$/;function s4(t,n){var s;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let l=(s=t.parent)===null||s===void 0?void 0:s.firstChild;return(l==null?void 0:l.name)!="Callee"?!1:n.sliceString(l.from,l.to)=="var"}const v1=new Pf,l4=["Declaration"];function r4(t){for(let n=t;;){if(n.type.isTop)return n;if(!(n=n.parent))return t}}function Tv(t,n,s){if(n.to-n.from>4096){let l=v1.get(n);if(l)return l;let o=[],u=new Set,d=n.cursor(kc.IncludeAnonymous);if(d.firstChild())do for(let O of Tv(t,d.node,s))u.has(O.label)||(u.add(O.label),o.push(O));while(d.nextSibling());return v1.set(n,o),o}else{let l=[],o=new Set;return n.cursor().iterate(u=>{var d;if(s(u)&&u.matchContext(l4)&&((d=u.node.nextSibling)===null||d===void 0?void 0:d.name)==":"){let O=t.sliceString(u.from,u.to);o.has(O)||(o.add(O),l.push({label:O,type:"variable"}))}}),l}}const i4=t=>n=>{let{state:s,pos:l}=n,o=xa(s).resolveInner(l,-1),u=o.type.isError&&o.from==o.to-1&&s.doc.sliceString(o.from,o.to)=="-";if(o.name=="PropertyName"||(u||o.name=="TagName")&&/^(Block|Styles)$/.test(o.resolve(o.to).name))return{from:o.from,options:kO(),validFor:Fa};if(o.name=="ValueName")return{from:o.from,options:b1,validFor:Fa};if(o.name=="PseudoClassName")return{from:o.from,options:g1,validFor:Fa};if(t(o)||(n.explicit||u)&&s4(o,s.doc))return{from:t(o)||u?o.from:l,options:Tv(s.doc,r4(o),t),validFor:n4};if(o.name=="TagName"){for(let{parent:m}=o;m;m=m.parent)if(m.name=="Block")return{from:o.from,options:kO(),validFor:Fa};return{from:o.from,options:t4,validFor:Fa}}if(o.name=="AtKeyword")return{from:o.from,options:a4,validFor:Fa};if(!n.explicit)return null;let d=o.resolve(l),O=d.childBefore(l);return O&&O.name==":"&&d.name=="PseudoClassSelector"?{from:l,options:g1,validFor:Fa}:O&&O.name==":"&&d.name=="Declaration"||d.name=="ArgList"?{from:l,options:b1,validFor:Fa}:d.name=="Block"||d.name=="Styles"?{from:l,options:kO(),validFor:Fa}:null},o4=i4(t=>t.name=="VariableName"),vc=li.define({name:"css",parser:e4.configure({props:[El.add({Declaration:jl()}),Ns.add({"Block KeyframeList":$c})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Pv(){return new Qs(vc,vc.data.of({autocomplete:o4}))}const c4=55,u4=1,d4=56,O4=2,f4=57,h4=3,y1=4,m4=5,ih=6,Nv=7,zv=8,Rv=9,Cv=10,p4=11,x4=12,g4=13,$O=58,b4=14,v4=15,S1=59,Xv=21,y4=23,_v=24,S4=25,pf=27,Zv=28,Q4=29,j4=32,w4=35,k4=37,$4=38,T4=0,P4=1,N4={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},z4={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Q1={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function R4(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}let j1=null,w1=null,k1=0;function xf(t,n){let s=t.pos+n;if(k1==s&&w1==t)return j1;let l=t.peek(n),o="";for(;R4(l);)o+=String.fromCharCode(l),l=t.peek(++n);return w1=t,k1=s,j1=o?o.toLowerCase():l==C4||l==X4?void 0:null}const Av=60,yc=62,oh=47,C4=63,X4=33,_4=45;function $1(t,n){this.name=t,this.parent=n}const Z4=[ih,Cv,Nv,zv,Rv],A4=new lh({start:null,shift(t,n,s,l){return Z4.indexOf(n)>-1?new $1(xf(l,1)||"",t):t},reduce(t,n){return n==Xv&&t?t.parent:t},reuse(t,n,s,l){let o=n.type.id;return o==ih||o==k4?new $1(xf(l,1)||"",t):t},strict:!1}),E4=new gt((t,n)=>{if(t.next!=Av){t.next<0&&n.context&&t.acceptToken($O);return}t.advance();let s=t.next==oh;s&&t.advance();let l=xf(t,0);if(l===void 0)return;if(!l)return t.acceptToken(s?v4:b4);let o=n.context?n.context.name:null;if(s){if(l==o)return t.acceptToken(p4);if(o&&z4[o])return t.acceptToken($O,-2);if(n.dialectEnabled(T4))return t.acceptToken(x4);for(let u=n.context;u;u=u.parent)if(u.name==l)return;t.acceptToken(g4)}else{if(l=="script")return t.acceptToken(Nv);if(l=="style")return t.acceptToken(zv);if(l=="textarea")return t.acceptToken(Rv);if(N4.hasOwnProperty(l))return t.acceptToken(Cv);o&&Q1[o]&&Q1[o][l]?t.acceptToken($O,-1):t.acceptToken(ih)}},{contextual:!0}),q4=new gt(t=>{for(let n=0,s=0;;s++){if(t.next<0){s&&t.acceptToken(S1);break}if(t.next==_4)n++;else if(t.next==yc&&n>=2){s>=3&&t.acceptToken(S1,-2);break}else n=0;t.advance()}});function M4(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const Y4=new gt((t,n)=>{if(t.next==oh&&t.peek(1)==yc){let s=n.dialectEnabled(P4)||M4(n.context);t.acceptToken(s?m4:y1,2)}else t.next==yc&&t.acceptToken(y1,1)});function ch(t,n,s){let l=2+t.length;return new gt(o=>{for(let u=0,d=0,O=0;;O++){if(o.next<0){O&&o.acceptToken(n);break}if(u==0&&o.next==Av||u==1&&o.next==oh||u>=2&&u<l&&o.next==t.charCodeAt(u-2))u++,d++;else if(u==l&&o.next==yc){O>d?o.acceptToken(n,-d):o.acceptToken(s,-(d-2));break}else if((o.next==10||o.next==13)&&O){o.acceptToken(n,1);break}else u=d=0;o.advance()}})}const V4=ch("script",c4,u4),U4=ch("style",d4,O4),G4=ch("textarea",f4,h4),L4=Ps({"Text RawText IncompleteTag IncompleteCloseTag":Z.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Z.angleBracket,TagName:Z.tagName,"MismatchedCloseTag/TagName":[Z.tagName,Z.invalid],AttributeName:Z.attributeName,"AttributeValue UnquotedAttributeValue":Z.attributeValue,Is:Z.definitionOperator,"EntityReference CharacterReference":Z.character,Comment:Z.blockComment,ProcessingInst:Z.processingInstruction,DoctypeDecl:Z.documentMeta}),D4=Fn.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^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PPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:A4,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[L4],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et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`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[V4,U4,G4,Y4,E4,q4,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function Ev(t,n){let s=Object.create(null);for(let l of t.getChildren(_v)){let o=l.getChild(S4),u=l.getChild(pf)||l.getChild(Zv);o&&(s[n.read(o.from,o.to)]=u?u.type.id==pf?n.read(u.from+1,u.to-1):n.read(u.from,u.to):"")}return s}function T1(t,n){let s=t.getChild(y4);return s?n.read(s.from,s.to):" "}function TO(t,n,s){let l;for(let o of s)if(!o.attrs||o.attrs(l||(l=Ev(t.node.parent.firstChild,n))))return{parser:o.parser,bracketed:!0};return null}function qv(t=[],n=[]){let s=[],l=[],o=[],u=[];for(let O of t)(O.tag=="script"?s:O.tag=="style"?l:O.tag=="textarea"?o:u).push(O);let d=n.length?Object.create(null):null;for(let O of n)(d[O.name]||(d[O.name]=[])).push(O);return $0((O,m)=>{let p=O.type.id;if(p==Q4)return TO(O,m,s);if(p==j4)return TO(O,m,l);if(p==w4)return TO(O,m,o);if(p==Xv&&u.length){let x=O.node,g=x.firstChild,b=g&&T1(g,m),v;if(b){for(let Q of u)if(Q.tag==b&&(!Q.attrs||Q.attrs(v||(v=Ev(g,m))))){let k=x.lastChild,T=k.type.id==$4?k.from:x.to;if(T>g.to)return{parser:Q.parser,overlay:[{from:g.to,to:T}]}}}}if(d&&p==_v){let x=O.node,g;if(g=x.firstChild){let b=d[m.read(g.from,g.to)];if(b)for(let v of b){if(v.tagName&&v.tagName!=T1(x.parent,m))continue;let Q=x.lastChild;if(Q.type.id==pf){let k=Q.from+1,T=Q.lastChild,j=Q.to-(T&&T.isError?0:1);if(j>k)return{parser:v.parser,overlay:[{from:k,to:j}],bracketed:!0}}else if(Q.type.id==Zv)return{parser:v.parser,overlay:[{from:Q.from,to:Q.to}]}}}}return null})}const Yr=["_blank","_self","_top","_parent"],PO=["ascii","utf-8","utf-16","latin1","latin1"],NO=["get","post","put","delete"],zO=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Gt=["true","false"],he={},W4={a:{attrs:{href:null,ping:null,type:null,media:null,target:Yr,hreflang:null}},abbr:he,address:he,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:he,aside:he,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:he,base:{attrs:{href:null,target:Yr}},bdi:he,bdo:he,blockquote:{attrs:{cite:null}},body:he,br:he,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:zO,formmethod:NO,formnovalidate:["novalidate"],formtarget:Yr,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:he,center:he,cite:he,code:he,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:he,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:he,div:he,dl:he,dt:he,em:he,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:he,figure:he,footer:he,form:{attrs:{action:null,name:null,"accept-charset":PO,autocomplete:["on","off"],enctype:zO,method:NO,novalidate:["novalidate"],target:Yr}},h1:he,h2:he,h3:he,h4:he,h5:he,h6:he,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:he,hgroup:he,hr:he,html:{attrs:{manifest:null}},i:he,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:zO,formmethod:NO,formnovalidate:["novalidate"],formtarget:Yr,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:he,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:he,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:he,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:PO,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:he,noscript:he,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:he,param:{attrs:{name:null,value:null}},pre:he,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:he,rt:he,ruby:he,samp:he,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:PO}},section:he,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:he,source:{attrs:{src:null,type:null,media:null}},span:he,strong:he,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:he,summary:he,sup:he,table:he,tbody:he,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:he,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:he,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:he,time:{attrs:{datetime:null}},title:he,tr:he,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:he,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:he},Mv={accesskey:null,class:null,contenteditable:Gt,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Gt,autocorrect:Gt,autocapitalize:Gt,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Gt,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Gt,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Gt,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Gt,"aria-hidden":Gt,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Gt,"aria-multiselectable":Gt,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Gt,"aria-relevant":null,"aria-required":Gt,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Yv="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of Yv)Mv[t]=null;class ei{constructor(n,s){this.tags={...W4,...n},this.globalAttrs={...Mv,...s},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}ei.default=new ei;function _l(t,n,s=t.length){if(!n)return"";let l=n.firstChild,o=l&&l.getChild("TagName");return o?t.sliceString(o.from,Math.min(o.to,s)):""}function Zl(t,n=!1){for(;t;t=t.parent)if(t.name=="Element")if(n)n=!1;else return t;return null}function Vv(t,n,s){let l=s.tags[_l(t,Zl(n))];return(l==null?void 0:l.children)||s.allTags}function uh(t,n){let s=[];for(let l=Zl(n);l&&!l.type.isTop;l=Zl(l.parent)){let o=_l(t,l);if(o&&l.lastChild.name=="CloseTag")break;o&&s.indexOf(o)<0&&(n.name=="EndTag"||n.from>=l.firstChild.to)&&s.push(o)}return s}const Uv=/^[:\-\.\w\u00b7-\uffff]*$/;function P1(t,n,s,l,o){let u=/\s*>/.test(t.sliceDoc(o,o+5))?"":">",d=Zl(s,s.name=="StartTag"||s.name=="TagName");return{from:l,to:o,options:Vv(t.doc,d,n).map(O=>({label:O,type:"type"})).concat(uh(t.doc,s).map((O,m)=>({label:"/"+O,apply:"/"+O+u,type:"type",boost:99-m}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function N1(t,n,s,l){let o=/\s*>/.test(t.sliceDoc(l,l+5))?"":">";return{from:s,to:l,options:uh(t.doc,n).map((u,d)=>({label:u,apply:u+o,type:"type",boost:99-d})),validFor:Uv}}function B4(t,n,s,l){let o=[],u=0;for(let d of Vv(t.doc,s,n))o.push({label:"<"+d,type:"type"});for(let d of uh(t.doc,s))o.push({label:"</"+d+">",type:"type",boost:99-u++});return{from:l,to:l,options:o,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function H4(t,n,s,l,o){let u=Zl(s),d=u?n.tags[_l(t.doc,u)]:null,O=d&&d.attrs?Object.keys(d.attrs):[],m=d&&d.globalAttrs===!1?O:O.length?O.concat(n.globalAttrNames):n.globalAttrNames;return{from:l,to:o,options:m.map(p=>({label:p,type:"property"})),validFor:Uv}}function I4(t,n,s,l,o){var u;let d=(u=s.parent)===null||u===void 0?void 0:u.getChild("AttributeName"),O=[],m;if(d){let p=t.sliceDoc(d.from,d.to),x=n.globalAttrs[p];if(!x){let g=Zl(s),b=g?n.tags[_l(t.doc,g)]:null;x=(b==null?void 0:b.attrs)&&b.attrs[p]}if(x){let g=t.sliceDoc(l,o).toLowerCase(),b='"',v='"';/^['"]/.test(g)?(m=g[0]=='"'?/^[^"]*$/:/^[^']*$/,b="",v=t.sliceDoc(o,o+1)==g[0]?"":g[0],g=g.slice(1),l++):m=/^[^\s<>='"]*$/;for(let Q of x)O.push({label:Q,apply:b+Q+v,type:"constant"})}}return{from:l,to:o,options:O,validFor:m}}function Gv(t,n){let{state:s,pos:l}=n,o=xa(s).resolveInner(l,-1),u=o.resolve(l);for(let d=l,O;u==o&&(O=o.childBefore(d));){let m=O.lastChild;if(!m||!m.type.isError||m.from<m.to)break;u=o=O,d=m.from}return o.name=="TagName"?o.parent&&/CloseTag$/.test(o.parent.name)?N1(s,o,o.from,l):P1(s,t,o,o.from,l):o.name=="StartTag"||o.name=="IncompleteTag"?P1(s,t,o,l,l):o.name=="StartCloseTag"||o.name=="IncompleteCloseTag"?N1(s,o,l,l):o.name=="OpenTag"||o.name=="SelfClosingTag"||o.name=="AttributeName"?H4(s,t,o,o.name=="AttributeName"?o.from:l,l):o.name=="Is"||o.name=="AttributeValue"||o.name=="UnquotedAttributeValue"?I4(s,t,o,o.name=="Is"?l:o.from,l):n.explicit&&(u.name=="Element"||u.name=="Text"||u.name=="Document")?B4(s,t,o,l):null}function F4(t){return Gv(ei.default,t)}function K4(t){let{extraTags:n,extraGlobalAttributes:s}=t,l=s||n?new ei(n,s):ei.default;return o=>Gv(l,o)}const J4=$a.parser.configure({top:"SingleExpression"}),Lv=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:bv.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:vv.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:yv.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:J4},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:$a.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:vc.parser}],Dv=[{name:"style",parser:vc.parser.configure({top:"Styles"})}].concat(Yv.map(t=>({name:t,parser:$a.parser}))),Wv=li.define({name:"html",parser:D4.configure({props:[El.add({Element(t){let n=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+n[0].length?t.continue():t.lineIndent(t.node.from)+(n[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let n=null,s;for(let l=t.node;;){let o=l.lastChild;if(!o||o.name!="Element"||o.to!=l.to)break;n=l=o}return n&&!((s=n.lastChild)&&(s.name=="CloseTag"||s.name=="SelfClosingTag"))?t.lineIndent(n.from)+t.unit:null}}),Ns.add({Element(t){let n=t.firstChild,s=t.lastChild;return!n||n.name!="OpenTag"?null:{from:n.to,to:s.name=="CloseTag"?s.from:t.to}}}),kj.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),Ko=Wv.configure({wrap:qv(Lv,Dv)});function Bv(t={}){let n="",s;t.matchClosingTags===!1&&(n="noMatch"),t.selfClosingTags===!0&&(n=(n?n+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(s=qv((t.nestedLanguages||[]).concat(Lv),(t.nestedAttributes||[]).concat(Dv)));let l=s?Wv.configure({wrap:s,dialect:n}):n?Ko.configure({dialect:n}):Ko;return new Qs(l,[Ko.data.of({autocomplete:K4(t)}),t.autoCloseTags!==!1?ez:[],mf().support,Pv().support])}const z1=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),ez=zl.inputHandler.of((t,n,s,l,o)=>{if(t.composing||t.state.readOnly||n!=s||l!=">"&&l!="/"||!Ko.isActiveAt(t.state,n,-1))return!1;let u=o(),{state:d}=u,O=d.changeByRange(m=>{var p,x,g;let b=d.doc.sliceString(m.from-1,m.to)==l,{head:v}=m,Q=xa(d).resolveInner(v,-1),k;if(b&&l==">"&&Q.name=="EndTag"){let T=Q.parent;if(((x=(p=T.parent)===null||p===void 0?void 0:p.lastChild)===null||x===void 0?void 0:x.name)!="CloseTag"&&(k=_l(d.doc,T.parent,v))&&!z1.has(k)){let j=v+(d.doc.sliceString(v,v+1)===">"?1:0),P=`</${k}>`;return{range:m,changes:{from:v,to:j,insert:P}}}}else if(b&&l=="/"&&Q.name=="IncompleteCloseTag"){let T=Q.parent;if(Q.from==v-2&&((g=T.lastChild)===null||g===void 0?void 0:g.name)!="CloseTag"&&(k=_l(d.doc,T,v))&&!z1.has(k)){let j=v+(d.doc.sliceString(v,v+1)===">"?1:0),P=`${k}>`;return{range:Dn.cursor(v+P.length,-1),changes:{from:v,to:j,insert:P}}}}return{range:m}});return O.changes.empty?!1:(t.dispatch([u,d.update(O,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),tz=Ps({String:Z.string,Number:Z.number,"True False":Z.bool,PropertyName:Z.propertyName,Null:Z.null,", :":Z.separator,"[ ]":Z.squareBracket,"{ }":Z.brace}),az=Fn.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[tz],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),nz=li.define({name:"json",parser:az.configure({props:[El.add({Object:jl({except:/^\s*\}/}),Array:jl({except:/^\s*\]/})}),Ns.add({"Object Array":$c})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function sz(){return new Qs(nz)}class Sc{static create(n,s,l,o,u){let d=o+(o<<8)+n+(s<<4)|0;return new Sc(n,s,l,d,u,[],[])}constructor(n,s,l,o,u,d,O){this.type=n,this.value=s,this.from=l,this.hash=o,this.end=u,this.children=d,this.positions=O,this.hashProp=[[nn.contextHash,o]]}addChild(n,s){n.prop(nn.contextHash)!=this.hash&&(n=new ha(n.type,n.children,n.positions,n.length,this.hashProp)),this.children.push(n),this.positions.push(s)}toTree(n,s=this.end){let l=this.children.length-1;return l>=0&&(s=Math.max(s,this.positions[l]+this.children[l].length+this.from)),new ha(n.types[this.type],this.children,this.positions,s-this.from).balance({makeTree:(o,u,d)=>new ha(si.none,o,u,d,this.hashProp)})}}var se;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.Autolink=33]="Autolink",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel",t[t.URL=44]="URL"})(se||(se={}));class lz{constructor(n,s){this.start=n,this.content=s,this.marks=[],this.parsers=[]}}class rz{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let n=this.skipSpace(this.basePos);this.indent=this.countIndent(n,this.pos,this.indent),this.pos=n,this.next=n==this.text.length?-1:this.text.charCodeAt(n)}skipSpace(n){return Gr(this.text,n)}reset(n){for(this.text=n,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(n){this.basePos=n,this.baseIndent=this.countIndent(n,this.pos,this.indent)}moveBaseColumn(n){this.baseIndent=n,this.basePos=this.findColumn(n)}addMarker(n){this.markers.push(n)}countIndent(n,s=0,l=0){for(let o=s;o<n;o++)l+=this.text.charCodeAt(o)==9?4-l%4:1;return l}findColumn(n){let s=0;for(let l=0;s<this.text.length&&l<n;s++)l+=this.text.charCodeAt(s)==9?4-l%4:1;return s}scrub(){if(!this.baseIndent)return this.text;let n="";for(let s=0;s<this.basePos;s++)n+=" ";return n+this.text.slice(this.basePos)}}function R1(t,n,s){if(s.pos==s.text.length||t!=n.block&&s.indent>=n.stack[s.depth+1].value+s.baseIndent)return!0;if(s.indent>=s.baseIndent+4)return!1;let l=(t.type==se.OrderedList?fh:Oh)(s,n,!1);return l>0&&(t.type!=se.BulletList||dh(s,n,!1)<0)&&s.text.charCodeAt(s.pos+l-1)==t.value}const Hv={[se.Blockquote](t,n,s){return s.next!=62?!1:(s.markers.push(Ne(se.QuoteMark,n.lineStart+s.pos,n.lineStart+s.pos+1)),s.moveBase(s.pos+(ca(s.text.charCodeAt(s.pos+1))?2:1)),t.end=n.lineStart+s.text.length,!0)},[se.ListItem](t,n,s){return s.indent<s.baseIndent+t.value&&s.next>-1?!1:(s.moveBaseColumn(s.baseIndent+t.value),!0)},[se.OrderedList]:R1,[se.BulletList]:R1,[se.Document](){return!0}};function ca(t){return t==32||t==9||t==10||t==13}function Gr(t,n=0){for(;n<t.length&&ca(t.charCodeAt(n));)n++;return n}function C1(t,n,s){for(;n>s&&ca(t.charCodeAt(n-1));)n--;return n}function Iv(t){if(t.next!=96&&t.next!=126)return-1;let n=t.pos+1;for(;n<t.text.length&&t.text.charCodeAt(n)==t.next;)n++;if(n<t.pos+3)return-1;if(t.next==96){for(let s=n;s<t.text.length;s++)if(t.text.charCodeAt(s)==96)return-1}return n}function Fv(t){return t.next!=62?-1:t.text.charCodeAt(t.pos+1)==32?2:1}function dh(t,n,s){if(t.next!=42&&t.next!=45&&t.next!=95)return-1;let l=1;for(let o=t.pos+1;o<t.text.length;o++){let u=t.text.charCodeAt(o);if(u==t.next)l++;else if(!ca(u))return-1}return s&&t.next==45&&ey(t)>-1&&t.depth==n.stack.length&&n.parser.leafBlockParsers.indexOf(sy.SetextHeading)>-1||l<3?-1:1}function Kv(t,n){for(let s=t.stack.length-1;s>=0;s--)if(t.stack[s].type==n)return!0;return!1}function Oh(t,n,s){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||ca(t.text.charCodeAt(t.pos+1)))&&(!s||Kv(n,se.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?1:-1}function fh(t,n,s){let l=t.pos,o=t.next;for(;o>=48&&o<=57;){l++;if(l==t.text.length)return-1;o=t.text.charCodeAt(l)}return l==t.pos||l>t.pos+9||o!=46&&o!=41||l<t.text.length-1&&!ca(t.text.charCodeAt(l+1))||s&&!Kv(n,se.OrderedList)&&(t.skipSpace(l+1)==t.text.length||l>t.pos+1||t.next!=49)?-1:l+1-t.pos}function Jv(t){if(t.next!=35)return-1;let n=t.pos+1;for(;n<t.text.length&&t.text.charCodeAt(n)==35;)n++;if(n<t.text.length&&t.text.charCodeAt(n)!=32)return-1;let s=n-t.pos;return s>6?-1:s}function ey(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let n=t.pos+1;for(;n<t.text.length&&t.text.charCodeAt(n)==t.next;)n++;let s=n;for(;n<t.text.length&&ca(t.text.charCodeAt(n));)n++;return n==t.text.length?s:-1}const gf=/^[ \t]*$/,ty=/-->/,ay=/\?>/,bf=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,ty],[/^\s*<\?/,ay],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,gf],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,gf]];function ny(t,n,s){if(t.next!=60)return-1;let l=t.text.slice(t.pos);for(let o=0,u=bf.length-(s?1:0);o<u;o++)if(bf[o][0].test(l))return o;return-1}function X1(t,n){let s=t.countIndent(n,t.pos,t.indent),l=t.countIndent(t.skipSpace(n),n,s);return l>=s+5?s+1:l}function Mn(t,n,s){let l=t.length-1;l>=0&&t[l].to==n&&t[l].type==se.CodeText?t[l].to=s:t.push(Ne(se.CodeText,n,s))}const qo={LinkReference:void 0,IndentedCode(t,n){let s=n.baseIndent+4;if(n.indent<s)return!1;let l=n.findColumn(s),o=t.lineStart+l,u=t.lineStart+n.text.length,d=[],O=[];for(Mn(d,o,u);t.nextLine()&&n.depth>=t.stack.length;)if(n.pos==n.text.length){Mn(O,t.lineStart-1,t.lineStart);for(let m of n.markers)O.push(m)}else{if(n.indent<s)break;{if(O.length){for(let p of O)p.type==se.CodeText?Mn(d,p.from,p.to):d.push(p);O=[]}Mn(d,t.lineStart-1,t.lineStart);for(let p of n.markers)d.push(p);u=t.lineStart+n.text.length;let m=t.lineStart+n.findColumn(n.baseIndent+4);m<u&&Mn(d,m,u)}}return O.length&&(O=O.filter(m=>m.type!=se.CodeText),O.length&&(n.markers=O.concat(n.markers))),t.addNode(t.buffer.writeElements(d,-o).finish(se.CodeBlock,u-o),o),!0},FencedCode(t,n){let s=Iv(n);if(s<0)return!1;let l=t.lineStart+n.pos,o=n.next,u=s-n.pos,d=n.skipSpace(s),O=C1(n.text,n.text.length,d),m=[Ne(se.CodeMark,l,l+u)];d<O&&m.push(Ne(se.CodeInfo,t.lineStart+d,t.lineStart+O));for(let p=!0,x=!0,g=!1;t.nextLine()&&n.depth>=t.stack.length;p=!1){let b=n.pos;if(n.indent-n.baseIndent<4)for(;b<n.text.length&&n.text.charCodeAt(b)==o;)b++;if(b-n.pos>=u&&n.skipSpace(b)==n.text.length){for(let v of n.markers)m.push(v);x&&g&&Mn(m,t.lineStart-1,t.lineStart),m.push(Ne(se.CodeMark,t.lineStart+n.pos,t.lineStart+b)),t.nextLine();break}else{g=!0,p||(Mn(m,t.lineStart-1,t.lineStart),x=!1);for(let k of n.markers)m.push(k);let v=t.lineStart+n.basePos,Q=t.lineStart+n.text.length;v<Q&&(Mn(m,v,Q),x=!1)}}return t.addNode(t.buffer.writeElements(m,-l).finish(se.FencedCode,t.prevLineEnd()-l),l),!0},Blockquote(t,n){let s=Fv(n);return s<0?!1:(t.startContext(se.Blockquote,n.pos),t.addNode(se.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1),n.moveBase(n.pos+s),null)},HorizontalRule(t,n){if(dh(n,t,!1)<0)return!1;let s=t.lineStart+n.pos;return t.nextLine(),t.addNode(se.HorizontalRule,s),!0},BulletList(t,n){let s=Oh(n,t,!1);if(s<0)return!1;t.block.type!=se.BulletList&&t.startContext(se.BulletList,n.basePos,n.next);let l=X1(n,n.pos+1);return t.startContext(se.ListItem,n.basePos,l-n.baseIndent),t.addNode(se.ListMark,t.lineStart+n.pos,t.lineStart+n.pos+s),n.moveBaseColumn(l),null},OrderedList(t,n){let s=fh(n,t,!1);if(s<0)return!1;t.block.type!=se.OrderedList&&t.startContext(se.OrderedList,n.basePos,n.text.charCodeAt(n.pos+s-1));let l=X1(n,n.pos+s);return t.startContext(se.ListItem,n.basePos,l-n.baseIndent),t.addNode(se.ListMark,t.lineStart+n.pos,t.lineStart+n.pos+s),n.moveBaseColumn(l),null},ATXHeading(t,n){let s=Jv(n);if(s<0)return!1;let l=n.pos,o=t.lineStart+l,u=C1(n.text,n.text.length,l),d=u;for(;d>l&&n.text.charCodeAt(d-1)==n.next;)d--;(d==u||d==l||!ca(n.text.charCodeAt(d-1)))&&(d=n.text.length);let O=t.buffer.write(se.HeaderMark,0,s).writeElements(t.parser.parseInline(n.text.slice(l+s+1,d),o+s+1),-o);d<n.text.length&&O.write(se.HeaderMark,d-l,u-l);let m=O.finish(se.ATXHeading1-1+s,n.text.length-l);return t.nextLine(),t.addNode(m,o),!0},HTMLBlock(t,n){let s=ny(n,t,!1);if(s<0)return!1;let l=t.lineStart+n.pos,o=bf[s][1],u=[],d=o!=gf;for(;!o.test(n.text)&&t.nextLine();){if(n.depth<t.stack.length){d=!1;break}for(let p of n.markers)u.push(p)}d&&t.nextLine();let O=o==ty?se.CommentBlock:o==ay?se.ProcessingInstructionBlock:se.HTMLBlock,m=t.prevLineEnd();return t.addNode(t.buffer.writeElements(u,-l).finish(O,m-l),l),!0},SetextHeading:void 0};class iz{constructor(n){this.stage=0,this.elts=[],this.pos=0,this.start=n.start,this.advance(n.content)}nextLine(n,s,l){if(this.stage==-1)return!1;let o=l.content+`
|
|
562
|
-
`+s.scrub(),u=this.advance(o);return u>-1&&u<o.length?this.complete(n,l,u):!1}finish(n,s){return(this.stage==2||this.stage==3)&&Gr(s.content,this.pos)==s.content.length?this.complete(n,s,s.content.length):!1}complete(n,s,l){return n.addLeafElement(s,Ne(se.LinkReference,this.start,this.start+l,this.elts)),!0}nextStage(n){return n?(this.pos=n.to-this.start,this.elts.push(n),this.stage++,!0):(n===!1&&(this.stage=-1),!1)}advance(n){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(fy(n,this.pos,this.start,!0)))return-1;if(n.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(Ne(se.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(dy(n,Gr(n,this.pos),this.start)))return-1}else if(this.stage==2){let s=Gr(n,this.pos),l=0;if(s>this.pos){let o=Oy(n,s,this.start);if(o){let u=RO(n,o.to-this.start);u>0&&(this.nextStage(o),l=u)}}return l||(l=RO(n,this.pos)),l>0&&l<n.length?l:-1}else return RO(n,this.pos)}}}function RO(t,n){for(;n<t.length;n++){let s=t.charCodeAt(n);if(s==10)break;if(!ca(s))return-1}return n}class oz{nextLine(n,s,l){let o=s.depth<n.stack.length?-1:ey(s),u=s.next;if(o<0)return!1;let d=Ne(se.HeaderMark,n.lineStart+s.pos,n.lineStart+o);return n.nextLine(),n.addLeafElement(l,Ne(u==61?se.SetextHeading1:se.SetextHeading2,l.start,n.prevLineEnd(),[...n.parser.parseInline(l.content,l.start),d])),!0}finish(){return!1}}const sy={LinkReference(t,n){return n.content.charCodeAt(0)==91?new iz(n):null},SetextHeading(){return new oz}},cz=[(t,n)=>Jv(n)>=0,(t,n)=>Iv(n)>=0,(t,n)=>Fv(n)>=0,(t,n)=>Oh(n,t,!0)>=0,(t,n)=>fh(n,t,!0)>=0,(t,n)=>dh(n,t,!0)>=0,(t,n)=>ny(n,t,!0)>=0],uz={text:"",end:0};class dz{constructor(n,s,l,o){this.parser=n,this.input=s,this.ranges=o,this.line=new rz,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=o[o.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=o[0].from,this.block=Sc.create(se.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=l.length?new hz(l,s):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:n}=this;for(;;){for(let l=0;;){let o=n.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;l<n.markers.length&&(!o||n.markers[l].from<o.end);){let u=n.markers[l++];this.addNode(u.type,u.from,u.to)}if(!o)break;this.finishContext()}if(n.pos<n.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(n.basePos))return null;e:for(;;){for(let l of this.parser.blockParsers)if(l){let o=l(this,n);if(o!=!1){if(o==!0)return null;n.forward();continue e}}break}let s=new lz(this.lineStart+n.pos,n.text.slice(n.pos));for(let l of this.parser.leafBlockParsers)if(l){let o=l(this,s);o&&s.parsers.push(o)}e:for(;this.nextLine()&&n.pos!=n.text.length;){if(n.indent<n.baseIndent+4){for(let l of this.parser.endLeafBlock)if(l(this,n,s))break e}for(let l of s.parsers)if(l.nextLine(this,n,s))return null;s.content+=`
|
|
563
|
-
`+n.scrub();for(let l of n.markers)s.marks.push(l)}return this.finishLeaf(s),null}stopAt(n){if(this.stoppedAt!=null&&this.stoppedAt<n)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=n}reuseFragment(n){if(!this.fragments.moveTo(this.absoluteLineStart+n,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let s=this.fragments.takeNodes(this);return s?(this.absoluteLineStart+=s,this.lineStart=hy(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(n=this.depth-1){return this.parser.nodeSet.types[this.stack[n].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(n){let s=uz;if(s.end=n,n>=this.to)s.text="";else if(s.text=this.lineChunkAt(n),s.end+=s.text.length,this.ranges.length>1){let l=this.absoluteLineStart,o=this.rangeI;for(;this.ranges[o].to<s.end;){o++;let u=this.ranges[o].from,d=this.lineChunkAt(u);s.end=u+d.length,s.text=s.text.slice(0,this.ranges[o-1].to-l)+d,l=s.end-s.text.length}}return s}readLine(){let{line:n}=this,{text:s,end:l}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=l,n.reset(s);n.depth<this.stack.length;n.depth++){let o=this.stack[n.depth],u=this.parser.skipContextMarkup[o.type];if(!u)throw new Error("Unhandled block context "+se[o.type]);let d=this.line.markers.length;if(!u(o,this,n)){this.line.markers.length>d&&(o.end=this.line.markers[this.line.markers.length-1].to),n.forward();break}n.forward()}}lineChunkAt(n){let s=this.input.chunk(n),l;if(this.input.lineChunks)l=s==`
|
|
564
|
-
`?"":s;else{let o=s.indexOf(`
|
|
565
|
-
`);l=o<0?s:s.slice(0,o)}return n+l.length>this.to?l.slice(0,this.to-n):l}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(n,s,l=0){this.block=Sc.create(n,l,this.lineStart+s,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(n,s,l=0){this.startContext(this.parser.getNodeType(n),s,l)}addNode(n,s,l){typeof n=="number"&&(n=new ha(this.parser.nodeSet.types[n],Al,Al,(l??this.prevLineEnd())-s)),this.block.addChild(n,s-this.block.from)}addElement(n){this.block.addChild(n.toTree(this.parser.nodeSet),n.from-this.block.from)}addLeafElement(n,s){this.addNode(this.buffer.writeElements(yf(s.children,n.marks),-s.from).finish(s.type,s.to-s.from),s.from)}finishContext(){let n=this.stack.pop(),s=this.stack[this.stack.length-1];s.addChild(n.toTree(this.parser.nodeSet),n.from-s.from),this.block=s}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(n){return this.ranges.length>1?ly(this.ranges,0,n.topNode,this.ranges[0].from,this.reusePlaceholders):n}finishLeaf(n){for(let l of n.parsers)if(l.finish(this,n))return;let s=yf(this.parser.parseInline(n.content,n.start),n.marks);this.addNode(this.buffer.writeElements(s,-n.start).finish(se.Paragraph,n.content.length),n.start)}elt(n,s,l,o){return typeof n=="string"?Ne(this.parser.getNodeType(n),s,l,o):new oy(n,s)}get buffer(){return new iy(this.parser.nodeSet)}}function ly(t,n,s,l,o){let u=t[n].to,d=[],O=[],m=s.from+l;function p(x,g){for(;g?x>=u:x>u;){let b=t[n+1].from-u;l+=b,x+=b,n++,u=t[n].to}}for(let x=s.firstChild;x;x=x.nextSibling){p(x.from+l,!0);let g=x.from+l,b,v=o.get(x.tree);v?b=v:x.to+l>u?(b=ly(t,n,x,l,o),p(x.to+l,!1)):b=x.toTree(),d.push(b),O.push(g-m)}return p(s.to+l,!1),new ha(s.type,d,O,s.to+l-m,s.tree?s.tree.propValues:void 0)}class Vc extends S0{constructor(n,s,l,o,u,d,O,m,p){super(),this.nodeSet=n,this.blockParsers=s,this.leafBlockParsers=l,this.blockNames=o,this.endLeafBlock=u,this.skipContextMarkup=d,this.inlineParsers=O,this.inlineNames=m,this.wrappers=p,this.nodeTypes=Object.create(null);for(let x of n.types)this.nodeTypes[x.name]=x.id}createParse(n,s,l){let o=new dz(this,n,s,l);for(let u of this.wrappers)o=u(o,n,s,l);return o}configure(n){let s=vf(n);if(!s)return this;let{nodeSet:l,skipContextMarkup:o}=this,u=this.blockParsers.slice(),d=this.leafBlockParsers.slice(),O=this.blockNames.slice(),m=this.inlineParsers.slice(),p=this.inlineNames.slice(),x=this.endLeafBlock.slice(),g=this.wrappers;if(Vr(s.defineNodes)){o=Object.assign({},o);let b=l.types.slice(),v;for(let Q of s.defineNodes){let{name:k,block:T,composite:j,style:P}=typeof Q=="string"?{name:Q}:Q;if(b.some(U=>U.name==k))continue;j&&(o[b.length]=(U,C,X)=>j(C,X,U.value));let N=b.length,A=j?["Block","BlockContext"]:T?N>=se.ATXHeading1&&N<=se.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;b.push(si.define({id:N,name:k,props:A&&[[nn.group,A]]})),P&&(v||(v={}),Array.isArray(P)||P instanceof $j?v[k]=P:Object.assign(v,P))}l=new Tf(b),v&&(l=l.extend(Ps(v)))}if(Vr(s.props)&&(l=l.extend(...s.props)),Vr(s.remove))for(let b of s.remove){let v=this.blockNames.indexOf(b),Q=this.inlineNames.indexOf(b);v>-1&&(u[v]=d[v]=void 0),Q>-1&&(m[Q]=void 0)}if(Vr(s.parseBlock))for(let b of s.parseBlock){let v=O.indexOf(b.name);if(v>-1)u[v]=b.parse,d[v]=b.leaf;else{let Q=b.before?Mo(O,b.before):b.after?Mo(O,b.after)+1:O.length-1;u.splice(Q,0,b.parse),d.splice(Q,0,b.leaf),O.splice(Q,0,b.name)}b.endLeaf&&x.push(b.endLeaf)}if(Vr(s.parseInline))for(let b of s.parseInline){let v=p.indexOf(b.name);if(v>-1)m[v]=b.parse;else{let Q=b.before?Mo(p,b.before):b.after?Mo(p,b.after)+1:p.length-1;m.splice(Q,0,b.parse),p.splice(Q,0,b.name)}}return s.wrap&&(g=g.concat(s.wrap)),new Vc(l,u,d,O,x,o,m,p,g)}getNodeType(n){let s=this.nodeTypes[n];if(s==null)throw new RangeError(`Unknown node type '${n}'`);return s}parseInline(n,s){let l=new hh(this,n,s);e:for(let o=s;o<l.end;){let u=l.char(o);for(let d of this.inlineParsers)if(d){let O=d(l,u,o);if(O>=0){o=O;continue e}}o++}return l.resolveMarkers(0)}}function Vr(t){return t!=null&&t.length>0}function vf(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let n=vf(t[0]);if(t.length==1)return n;let s=vf(t.slice(1));if(!s||!n)return n||s;let l=(d,O)=>(d||Al).concat(O||Al),o=n.wrap,u=s.wrap;return{props:l(n.props,s.props),defineNodes:l(n.defineNodes,s.defineNodes),parseBlock:l(n.parseBlock,s.parseBlock),parseInline:l(n.parseInline,s.parseInline),remove:l(n.remove,s.remove),wrap:o?u?(d,O,m,p)=>o(u(d,O,m,p),O,m,p):o:u}}function Mo(t,n){let s=t.indexOf(n);if(s<0)throw new RangeError(`Position specified relative to unknown parser ${n}`);return s}let ry=[si.none];for(let t=1,n;n=se[t];t++)ry[t]=si.define({id:t,name:n,props:t>=se.Escape?[]:[[nn.group,t in Hv?["Block","BlockContext"]:["Block","LeafBlock"]]],top:n=="Document"});const Al=[];class iy{constructor(n){this.nodeSet=n,this.content=[],this.nodes=[]}write(n,s,l,o=0){return this.content.push(n,s,l,4+o*4),this}writeElements(n,s=0){for(let l of n)l.writeTo(this,s);return this}finish(n,s){return ha.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:n,length:s})}}let ti=class{constructor(n,s,l,o=Al){this.type=n,this.from=s,this.to=l,this.children=o}writeTo(n,s){let l=n.content.length;n.writeElements(this.children,s),n.content.push(this.type,this.from+s,this.to+s,n.content.length+4-l)}toTree(n){return new iy(n).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class oy{constructor(n,s){this.tree=n,this.from=s}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return Al}writeTo(n,s){n.nodes.push(this.tree),n.content.push(n.nodes.length-1,this.from+s,this.to+s,-1)}toTree(){return this.tree}}function Ne(t,n,s,l){return new ti(t,n,s,l)}const cy={resolve:"Emphasis",mark:"EmphasisMark"},uy={resolve:"Emphasis",mark:"EmphasisMark"},ys={},Qc={};class Lt{constructor(n,s,l,o){this.type=n,this.from=s,this.to=l,this.side=o}}const _1="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let ai=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{ai=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}const CO={Escape(t,n,s){if(n!=92||s==t.end-1)return-1;let l=t.char(s+1);for(let o=0;o<_1.length;o++)if(_1.charCodeAt(o)==l)return t.append(Ne(se.Escape,s,s+2));return-1},Entity(t,n,s){if(n!=38)return-1;let l=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(t.slice(s+1,s+31));return l?t.append(Ne(se.Entity,s,s+1+l[0].length)):-1},InlineCode(t,n,s){if(n!=96||s&&t.char(s-1)==96)return-1;let l=s+1;for(;l<t.end&&t.char(l)==96;)l++;let o=l-s,u=0;for(;l<t.end;l++)if(t.char(l)==96){if(u++,u==o&&t.char(l+1)!=96)return t.append(Ne(se.InlineCode,s,l+1,[Ne(se.CodeMark,s,s+o),Ne(se.CodeMark,l+1-o,l+1)]))}else u=0;return-1},HTMLTag(t,n,s){if(n!=60||s==t.end-1)return-1;let l=t.slice(s+1,t.end),o=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(l);if(o)return t.append(Ne(se.Autolink,s,s+1+o[0].length,[Ne(se.LinkMark,s,s+1),Ne(se.URL,s+1,s+o[0].length),Ne(se.LinkMark,s+o[0].length,s+1+o[0].length)]));let u=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(l);if(u)return t.append(Ne(se.Comment,s,s+1+u[0].length));let d=/^\?[^]*?\?>/.exec(l);if(d)return t.append(Ne(se.ProcessingInstruction,s,s+1+d[0].length));let O=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(l);return O?t.append(Ne(se.HTMLTag,s,s+1+O[0].length)):-1},Emphasis(t,n,s){if(n!=95&&n!=42)return-1;let l=s+1;for(;t.char(l)==n;)l++;let o=t.slice(s-1,s),u=t.slice(l,l+1),d=ai.test(o),O=ai.test(u),m=/\s|^$/.test(o),p=/\s|^$/.test(u),x=!p&&(!O||m||d),g=!m&&(!d||p||O),b=x&&(n==42||!g||d),v=g&&(n==42||!x||O);return t.append(new Lt(n==95?cy:uy,s,l,(b?1:0)|(v?2:0)))},HardBreak(t,n,s){if(n==92&&t.char(s+1)==10)return t.append(Ne(se.HardBreak,s,s+2));if(n==32){let l=s+1;for(;t.char(l)==32;)l++;if(t.char(l)==10&&l>=s+2)return t.append(Ne(se.HardBreak,s,l+1))}return-1},Link(t,n,s){return n==91?t.append(new Lt(ys,s,s+1,1)):-1},Image(t,n,s){return n==33&&t.char(s+1)==91?t.append(new Lt(Qc,s,s+2,1)):-1},LinkEnd(t,n,s){if(n!=93)return-1;for(let l=t.parts.length-1;l>=0;l--){let o=t.parts[l];if(o instanceof Lt&&(o.type==ys||o.type==Qc)){if(!o.side||t.skipSpace(o.to)==s&&!/[(\[]/.test(t.slice(s+1,s+2)))return t.parts[l]=null,-1;let u=t.takeContent(l),d=t.parts[l]=Oz(t,u,o.type==ys?se.Link:se.Image,o.from,s+1);if(o.type==ys)for(let O=0;O<l;O++){let m=t.parts[O];m instanceof Lt&&m.type==ys&&(m.side=0)}return d.to}}return-1}};function Oz(t,n,s,l,o){let{text:u}=t,d=t.char(o),O=o;if(n.unshift(Ne(se.LinkMark,l,l+(s==se.Image?2:1))),n.push(Ne(se.LinkMark,o-1,o)),d==40){let m=t.skipSpace(o+1),p=dy(u,m-t.offset,t.offset),x;p&&(m=t.skipSpace(p.to),m!=p.to&&(x=Oy(u,m-t.offset,t.offset),x&&(m=t.skipSpace(x.to)))),t.char(m)==41&&(n.push(Ne(se.LinkMark,o,o+1)),O=m+1,p&&n.push(p),x&&n.push(x),n.push(Ne(se.LinkMark,m,O)))}else if(d==91){let m=fy(u,o-t.offset,t.offset,!1);m&&(n.push(m),O=m.to)}return Ne(s,l,O,n)}function dy(t,n,s){if(t.charCodeAt(n)==60){for(let o=n+1;o<t.length;o++){let u=t.charCodeAt(o);if(u==62)return Ne(se.URL,n+s,o+1+s);if(u==60||u==10)return!1}return null}else{let o=0,u=n;for(let d=!1;u<t.length;u++){let O=t.charCodeAt(u);if(ca(O))break;if(d)d=!1;else if(O==40)o++;else if(O==41){if(!o)break;o--}else O==92&&(d=!0)}return u>n?Ne(se.URL,n+s,u+s):u==t.length?null:!1}}function Oy(t,n,s){let l=t.charCodeAt(n);if(l!=39&&l!=34&&l!=40)return!1;let o=l==40?41:l;for(let u=n+1,d=!1;u<t.length;u++){let O=t.charCodeAt(u);if(d)d=!1;else{if(O==o)return Ne(se.LinkTitle,n+s,u+1+s);O==92&&(d=!0)}}return null}function fy(t,n,s,l){for(let o=!1,u=n+1,d=Math.min(t.length,u+999);u<d;u++){let O=t.charCodeAt(u);if(o)o=!1;else{if(O==93)return l?!1:Ne(se.LinkLabel,n+s,u+1+s);if(l&&!ca(O)&&(l=!1),O==91)return!1;O==92&&(o=!0)}}return null}class hh{constructor(n,s,l){this.parser=n,this.text=s,this.offset=l,this.parts=[]}char(n){return n>=this.end?-1:this.text.charCodeAt(n-this.offset)}get end(){return this.offset+this.text.length}slice(n,s){return this.text.slice(n-this.offset,s-this.offset)}append(n){return this.parts.push(n),n.to}addDelimiter(n,s,l,o,u){return this.append(new Lt(n,s,l,(o?1:0)|(u?2:0)))}get hasOpenLink(){for(let n=this.parts.length-1;n>=0;n--){let s=this.parts[n];if(s instanceof Lt&&(s.type==ys||s.type==Qc))return!0}return!1}addElement(n){return this.append(n)}resolveMarkers(n){for(let l=n;l<this.parts.length;l++){let o=this.parts[l];if(!(o instanceof Lt&&o.type.resolve&&o.side&2))continue;let u=o.type==cy||o.type==uy,d=o.to-o.from,O,m=l-1;for(;m>=n;m--){let k=this.parts[m];if(k instanceof Lt&&k.side&1&&k.type==o.type&&!(u&&(o.side&1||k.side&2)&&(k.to-k.from+d)%3==0&&((k.to-k.from)%3||d%3))){O=k;break}}if(!O)continue;let p=o.type.resolve,x=[],g=O.from,b=o.to;if(u){let k=Math.min(2,O.to-O.from,d);g=O.to-k,b=o.from+k,p=k==1?"Emphasis":"StrongEmphasis"}O.type.mark&&x.push(this.elt(O.type.mark,g,O.to));for(let k=m+1;k<l;k++)this.parts[k]instanceof ti&&x.push(this.parts[k]),this.parts[k]=null;o.type.mark&&x.push(this.elt(o.type.mark,o.from,b));let v=this.elt(p,g,b,x);this.parts[m]=u&&O.from!=g?new Lt(O.type,O.from,g,O.side):null,(this.parts[l]=u&&o.to!=b?new Lt(o.type,b,o.to,o.side):null)?this.parts.splice(l,0,v):this.parts[l]=v}let s=[];for(let l=n;l<this.parts.length;l++){let o=this.parts[l];o instanceof ti&&s.push(o)}return s}findOpeningDelimiter(n){for(let s=this.parts.length-1;s>=0;s--){let l=this.parts[s];if(l instanceof Lt&&l.type==n&&l.side&1)return s}return null}takeContent(n){let s=this.resolveMarkers(n);return this.parts.length=n,s}getDelimiterAt(n){let s=this.parts[n];return s instanceof Lt?s:null}skipSpace(n){return Gr(this.text,n-this.offset)+this.offset}elt(n,s,l,o){return typeof n=="string"?Ne(this.parser.getNodeType(n),s,l,o):new oy(n,s)}}hh.linkStart=ys;hh.imageStart=Qc;function yf(t,n){if(!n.length)return t;if(!t.length)return n;let s=t.slice(),l=0;for(let o of n){for(;l<s.length&&s[l].to<o.to;)l++;if(l<s.length&&s[l].from<o.from){let u=s[l];u instanceof ti&&(s[l]=new ti(u.type,u.from,u.to,yf(u.children,[o])))}else s.splice(l++,0,o)}return s}const fz=[se.CodeBlock,se.ListItem,se.OrderedList,se.BulletList];class hz{constructor(n,s){this.fragments=n,this.input=s,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,n.length&&(this.fragment=n[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(n,s){for(;this.fragment&&this.fragment.to<=n;)this.nextFragment();if(!this.fragment||this.fragment.from>(n?n-1:0))return!1;if(this.fragmentEnd<0){let u=this.fragment.to;for(;u>0&&this.input.read(u-1,u)!=`
|
|
566
|
-
`;)u--;this.fragmentEnd=u?u-1:0}let l=this.cursor;l||(l=this.cursor=this.fragment.tree.cursor(),l.firstChild());let o=n+this.fragment.offset;for(;l.to<=o;)if(!l.parent())return!1;for(;;){if(l.from>=o)return this.fragment.from<=s;if(!l.childAfter(o))return!1}}matches(n){let s=this.cursor.tree;return s&&s.prop(nn.contextHash)==n}takeNodes(n){let s=this.cursor,l=this.fragment.offset,o=this.fragmentEnd-(this.fragment.openEnd?1:0),u=n.absoluteLineStart,d=u,O=n.block.children.length,m=d,p=O;for(;;){if(s.to-l>o){if(s.type.isAnonymous&&s.firstChild())continue;break}let x=hy(s.from-l,n.ranges);if(s.to-l<=n.ranges[n.rangeI].to)n.addNode(s.tree,x);else{let g=new ha(n.parser.nodeSet.types[se.Paragraph],[],[],0,n.block.hashProp);n.reusePlaceholders.set(g,s.tree),n.addNode(g,x)}if(s.type.is("Block")&&(fz.indexOf(s.type.id)<0?(d=s.to-l,O=n.block.children.length):(d=m,O=p),m=s.to-l,p=n.block.children.length),!s.nextSibling())break}for(;n.block.children.length>O;)n.block.children.pop(),n.block.positions.pop();return d-u}}function hy(t,n){let s=t;for(let l=1;l<n.length;l++){let o=n[l-1].to,u=n[l].from;o<t&&(s-=u-o)}return s}const mz=Ps({"Blockquote/...":Z.quote,HorizontalRule:Z.contentSeparator,"ATXHeading1/... SetextHeading1/...":Z.heading1,"ATXHeading2/... SetextHeading2/...":Z.heading2,"ATXHeading3/...":Z.heading3,"ATXHeading4/...":Z.heading4,"ATXHeading5/...":Z.heading5,"ATXHeading6/...":Z.heading6,"Comment CommentBlock":Z.comment,Escape:Z.escape,Entity:Z.character,"Emphasis/...":Z.emphasis,"StrongEmphasis/...":Z.strong,"Link/... Image/...":Z.link,"OrderedList/... BulletList/...":Z.list,"BlockQuote/...":Z.quote,"InlineCode CodeText":Z.monospace,"URL Autolink":Z.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":Z.processingInstruction,"CodeInfo LinkLabel":Z.labelName,LinkTitle:Z.string,Paragraph:Z.content}),pz=new Vc(new Tf(ry).extend(mz),Object.keys(qo).map(t=>qo[t]),Object.keys(qo).map(t=>sy[t]),Object.keys(qo),cz,Hv,Object.keys(CO).map(t=>CO[t]),Object.keys(CO),[]);function xz(t,n,s){let l=[];for(let o=t.firstChild,u=n;;o=o.nextSibling){let d=o?o.from:s;if(d>u&&l.push({from:u,to:d}),!o)break;u=o.to}return l}function gz(t){let{codeParser:n,htmlParser:s}=t;return{wrap:$0((o,u)=>{let d=o.type.id;if(n&&(d==se.CodeBlock||d==se.FencedCode)){let O="";if(d==se.FencedCode){let p=o.node.getChild(se.CodeInfo);p&&(O=u.read(p.from,p.to))}let m=n(O);if(m)return{parser:m,overlay:p=>p.type.id==se.CodeText,bracketed:d==se.FencedCode}}else if(s&&(d==se.HTMLBlock||d==se.HTMLTag||d==se.CommentBlock))return{parser:s,overlay:xz(o.node,o.from,o.to)};return null})}}const bz={resolve:"Strikethrough",mark:"StrikethroughMark"},vz={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Z.strikethrough}},{name:"StrikethroughMark",style:Z.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,n,s){if(n!=126||t.char(s+1)!=126||t.char(s+2)==126)return-1;let l=t.slice(s-1,s),o=t.slice(s+2,s+3),u=/\s|^$/.test(l),d=/\s|^$/.test(o),O=ai.test(l),m=ai.test(o);return t.addDelimiter(bz,s,s+2,!d&&(!m||u||O),!u&&(!O||d||m))},after:"Emphasis"}]};function Lr(t,n,s=0,l,o=0){let u=0,d=!0,O=-1,m=-1,p=!1,x=()=>{l.push(t.elt("TableCell",o+O,o+m,t.parser.parseInline(n.slice(O,m),o+O)))};for(let g=s;g<n.length;g++){let b=n.charCodeAt(g);b==124&&!p?((!d||O>-1)&&u++,d=!1,l&&(O>-1&&x(),l.push(t.elt("TableDelimiter",g+o,g+o+1))),O=m=-1):(p||b!=32&&b!=9)&&(O<0&&(O=g),m=g+1),p=!p&&b==92}return O>-1&&(u++,l&&x()),u}function Z1(t,n){for(let s=n;s<t.length;s++){let l=t.charCodeAt(s);if(l==124)return!0;l==92&&s++}return!1}const my=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class A1{constructor(){this.rows=null}nextLine(n,s,l){if(this.rows==null){this.rows=!1;let o;if((s.next==45||s.next==58||s.next==124)&&my.test(o=s.text.slice(s.pos))){let u=[];Lr(n,l.content,0,u,l.start)==Lr(n,o,s.pos)&&(this.rows=[n.elt("TableHeader",l.start,l.start+l.content.length,u),n.elt("TableDelimiter",n.lineStart+s.pos,n.lineStart+s.text.length)])}}else if(this.rows){let o=[];Lr(n,s.text,s.pos,o,n.lineStart),this.rows.push(n.elt("TableRow",n.lineStart+s.pos,n.lineStart+s.text.length,o))}return!1}finish(n,s){return this.rows?(n.addLeafElement(s,n.elt("Table",s.start,s.start+s.content.length,this.rows)),!0):!1}}const yz={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":Z.heading}},"TableRow",{name:"TableCell",style:Z.content},{name:"TableDelimiter",style:Z.processingInstruction}],parseBlock:[{name:"Table",leaf(t,n){return Z1(n.content,0)?new A1:null},endLeaf(t,n,s){if(s.parsers.some(o=>o instanceof A1)||!Z1(n.text,n.basePos))return!1;let l=t.peekLine();return my.test(l)&&Lr(t,n.text,n.basePos)==Lr(t,l,n.basePos)},before:"SetextHeading"}]};class Sz{nextLine(){return!1}finish(n,s){return n.addLeafElement(s,n.elt("Task",s.start,s.start+s.content.length,[n.elt("TaskMarker",s.start,s.start+3),...n.parser.parseInline(s.content.slice(3),s.start+3)])),!0}}const Qz={defineNodes:[{name:"Task",block:!0,style:Z.list},{name:"TaskMarker",style:Z.atom}],parseBlock:[{name:"TaskList",leaf(t,n){return/^\[[ xX]\][ \t]/.test(n.content)&&t.parentType().name=="ListItem"?new Sz:null},after:"SetextHeading"}]},E1=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,q1=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,jz=/[\w-]+\.[\w-]+($|\/)/,M1=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,Y1=/\/[a-zA-Z\d@.]+/gy;function V1(t,n,s,l){let o=0;for(let u=n;u<s;u++)t[u]==l&&o++;return o}function wz(t,n){q1.lastIndex=n;let s=q1.exec(t);if(!s||jz.exec(s[0])[0].indexOf("_")>-1)return-1;let l=n+s[0].length;for(;;){let o=t[l-1],u;if(/[?!.,:*_~]/.test(o)||o==")"&&V1(t,n,l,")")>V1(t,n,l,"("))l--;else if(o==";"&&(u=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(n,l))))l=n+u.index;else break}return l}function U1(t,n){M1.lastIndex=n;let s=M1.exec(t);if(!s)return-1;let l=s[0][s[0].length-1];return l=="_"||l=="-"?-1:n+s[0].length-(l=="."?1:0)}const kz={parseInline:[{name:"Autolink",parse(t,n,s){let l=s-t.offset;if(l&&/\w/.test(t.text[l-1]))return-1;E1.lastIndex=l;let o=E1.exec(t.text),u=-1;if(!o)return-1;if(o[1]||o[2]){if(u=wz(t.text,l+o[0].length),u>-1&&t.hasOpenLink){let d=/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(l,u));u=l+d[0].length}}else o[3]?u=U1(t.text,l):(u=U1(t.text,l+o[0].length),u>-1&&o[0]=="xmpp:"&&(Y1.lastIndex=u,o=Y1.exec(t.text),o&&(u=o.index+o[0].length)));return u<0?-1:(t.addElement(t.elt("URL",s,u+t.offset)),u+t.offset)}}]},$z=[yz,Qz,vz,kz];function py(t,n,s){return(l,o,u)=>{if(o!=t||l.char(u+1)==t)return-1;let d=[l.elt(s,u,u+1)];for(let O=u+1;O<l.end;O++){let m=l.char(O);if(m==t)return l.addElement(l.elt(n,u,O+1,d.concat(l.elt(s,O,O+1))));if(m==92&&d.push(l.elt("Escape",O,O+++2)),ca(m))break}return-1}}const Tz={defineNodes:[{name:"Superscript",style:Z.special(Z.content)},{name:"SuperscriptMark",style:Z.processingInstruction}],parseInline:[{name:"Superscript",parse:py(94,"Superscript","SuperscriptMark")}]},Pz={defineNodes:[{name:"Subscript",style:Z.special(Z.content)},{name:"SubscriptMark",style:Z.processingInstruction}],parseInline:[{name:"Subscript",parse:py(126,"Subscript","SubscriptMark")}]},Nz={defineNodes:[{name:"Emoji",style:Z.character}],parseInline:[{name:"Emoji",parse(t,n,s){let l;return n!=58||!(l=/^[a-zA-Z_0-9]+:/.exec(t.slice(s+1,t.end)))?-1:t.addElement(t.elt("Emoji",s,s+1+l[0].length))}}]},xy=k0({commentTokens:{block:{open:"<!--",close:"-->"}}}),gy=new nn,by=pz.configure({props:[Ns.add(t=>!t.is("Block")||t.is("Document")||Sf(t)!=null||zz(t)?void 0:(n,s)=>({from:s.doc.lineAt(n.from).to,to:n.to})),gy.add(Sf),El.add({Document:()=>null}),Cj.add({Document:xy})]});function Sf(t){let n=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return n?+n[1]:void 0}function zz(t){return t.name=="OrderedList"||t.name=="BulletList"}function Rz(t,n){let s=t;for(;;){let l=s.nextSibling,o;if(!l||(o=Sf(l.type))!=null&&o<=n)break;s=l}return s.to}const Cz=Pj.of((t,n,s)=>{for(let l=xa(t).resolveInner(s,-1);l&&!(l.from<n);l=l.parent){let o=l.type.prop(gy);if(o==null)continue;let u=Rz(l,o);if(u>s)return{from:s,to:u}}return null});function mh(t){return new Nj(xy,t,[],"markdown")}const Xz=mh(by),_z=by.configure([$z,Pz,Tz,Nz,{props:[Ns.add({Table:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})})]}]),jc=mh(_z);function Zz(t,n){return s=>{if(s&&t){let l=null;if(s=/\S*/.exec(s)[0],typeof t=="function"?l=t(s):l=Qg.matchLanguageName(t,s,!0),l instanceof Qg)return l.support?l.support.language.parser:Xj.getSkippingParser(l.load());if(l)return l.parser}return n?n.parser:null}}let XO=class{constructor(n,s,l,o,u,d,O){this.node=n,this.from=s,this.to=l,this.spaceBefore=o,this.spaceAfter=u,this.type=d,this.item=O}blank(n,s=!0){let l=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(n!=null){for(;l.length<n;)l+=" ";return l}else{for(let o=this.to-this.from-l.length-this.spaceAfter.length;o>0;o--)l+=" ";return l+(s?this.spaceAfter:"")}}marker(n,s){let l=this.node.name=="OrderedList"?String(+yy(this.item,n)[2]+s):"";return this.spaceBefore+l+this.type+this.spaceAfter}};function vy(t,n){let s=[],l=[];for(let o=t;o;o=o.parent){if(o.name=="FencedCode")return l;(o.name=="ListItem"||o.name=="Blockquote")&&s.push(o)}for(let o=s.length-1;o>=0;o--){let u=s[o],d,O=n.lineAt(u.from),m=u.from-O.from;if(u.name=="Blockquote"&&(d=/^ *>( ?)/.exec(O.text.slice(m))))l.push(new XO(u,m,m+d[0].length,"",d[1],">",null));else if(u.name=="ListItem"&&u.parent.name=="OrderedList"&&(d=/^( *)\d+([.)])( *)/.exec(O.text.slice(m)))){let p=d[3],x=d[0].length;p.length>=4&&(p=p.slice(0,p.length-4),x-=4),l.push(new XO(u.parent,m,m+x,d[1],p,d[2],u))}else if(u.name=="ListItem"&&u.parent.name=="BulletList"&&(d=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(O.text.slice(m)))){let p=d[4],x=d[0].length;p.length>4&&(p=p.slice(0,p.length-4),x-=4);let g=d[2];d[3]&&(g+=d[3].replace(/[xX]/," ")),l.push(new XO(u.parent,m,m+x,d[1],p,g,u))}}return l}function yy(t,n){return/^(\s*)(\d+)(?=[.)])/.exec(n.sliceString(t.from,t.from+10))}function _O(t,n,s,l=0){for(let o=-1,u=t;;){if(u.name=="ListItem"){let O=yy(u,n),m=+O[2];if(o>=0){if(m!=o+1)return;s.push({from:u.from+O[1].length,to:u.from+O[0].length,insert:String(o+2+l)})}o=m}let d=u.nextSibling;if(!d)break;u=d}}function ph(t,n){let s=/^[ \t]*/.exec(t)[0].length;if(!s||n.facet(zj)!=" ")return t;let l=Dr(t,4,s),o="";for(let u=l;u>0;)u>=4?(o+=" ",u-=4):(o+=" ",u--);return o+t.slice(s)}const Az=(t={})=>({state:n,dispatch:s})=>{let l=xa(n),{doc:o}=n,u=null,d=n.changeByRange(O=>{if(!O.empty||!jc.isActiveAt(n,O.from,-1)&&!jc.isActiveAt(n,O.from,1))return u={range:O};let m=O.from,p=o.lineAt(m),x=vy(l.resolveInner(m,-1),o);for(;x.length&&x[x.length-1].from>m-p.from;)x.pop();if(!x.length)return u={range:O};let g=x[x.length-1];if(g.to-g.spaceAfter.length>m-p.from)return u={range:O};let b=m>=g.to-g.spaceAfter.length&&!/\S/.test(p.text.slice(g.to));if(g.item&&b){let j=g.node.firstChild,P=g.node.getChild("ListItem","ListItem");if(j.to>=m||P&&P.to<m||p.from>0&&!/[^\s>]/.test(o.lineAt(p.from-1).text)||t.nonTightLists===!1){let N=x.length>1?x[x.length-2]:null,A,U="";N&&N.item?(A=p.from+N.from,U=N.marker(o,1)):A=p.from+(N?N.to:0);let C=[{from:A,to:m,insert:U}];return g.node.name=="OrderedList"&&_O(g.item,o,C,-2),N&&N.node.name=="OrderedList"&&_O(N.item,o,C),{range:Dn.cursor(A+U.length),changes:C}}else{let N=L1(x,n,p);return{range:Dn.cursor(m+N.length+1),changes:{from:p.from,insert:N+n.lineBreak}}}}if(g.node.name=="Blockquote"&&b&&p.from){let j=o.lineAt(p.from-1),P=/>\s*$/.exec(j.text);if(P&&P.index==g.from){let N=n.changes([{from:j.from+P.index,to:j.to},{from:p.from+g.from,to:p.to}]);return{range:O.map(N),changes:N}}}let v=[];g.node.name=="OrderedList"&&_O(g.item,o,v);let Q=g.item&&g.item.from<p.from,k="";if(!Q||/^[\s\d.)\-+*>]*/.exec(p.text)[0].length>=g.to)for(let j=0,P=x.length-1;j<=P;j++)k+=j==P&&!Q?x[j].marker(o,1):x[j].blank(j<P?Dr(p.text,4,x[j+1].from)-k.length:null);let T=m;for(;T>p.from&&/\s/.test(p.text.charAt(T-p.from-1));)T--;return k=ph(k,n),qz(g.node,n.doc)&&(k=L1(x,n,p)+n.lineBreak+k),v.push({from:T,to:m,insert:n.lineBreak+k}),{range:Dn.cursor(T+k.length+1),changes:v}});return u?!1:(s(n.update(d,{scrollIntoView:!0,userEvent:"input"})),!0)},Ez=Az();function G1(t){return t.name=="QuoteMark"||t.name=="ListMark"}function qz(t,n){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let s=t.firstChild,l=t.getChild("ListItem","ListItem");if(!l)return!1;let o=n.lineAt(s.to),u=n.lineAt(l.from),d=/^[\s>]*$/.test(o.text);return o.number+(d?0:1)<u.number}function L1(t,n,s){let l="";for(let o=0,u=t.length-2;o<=u;o++)l+=t[o].blank(o<u?Dr(s.text,4,t[o+1].from)-l.length:null,o<u);return ph(l,n)}function Mz(t,n){let s=t.resolveInner(n,-1),l=n;G1(s)&&(l=s.from,s=s.parent);for(let o;o=s.childBefore(l);)if(G1(o))l=o.from;else if(o.name=="OrderedList"||o.name=="BulletList")s=o.lastChild,l=s.to;else break;return s}const Yz=({state:t,dispatch:n})=>{let s=xa(t),l=null,o=t.changeByRange(u=>{let d=u.from,{doc:O}=t;if(u.empty&&jc.isActiveAt(t,u.from)){let m=O.lineAt(d),p=vy(Mz(s,d),O);if(p.length){let x=p[p.length-1],g=x.to-x.spaceAfter.length+(x.spaceAfter?1:0);if(d-m.from>g&&!/\S/.test(m.text.slice(g,d-m.from)))return{range:Dn.cursor(m.from+g),changes:{from:m.from+g,to:d}};if(d-m.from==g&&(!x.item||m.from<=x.item.from||!/\S/.test(m.text.slice(0,x.to)))){let b=m.from+x.from;if(x.item&&x.node.from<x.item.from&&/\S/.test(m.text.slice(x.from,x.to))){let v=x.blank(Dr(m.text,4,x.to)-Dr(m.text,4,x.from));return b==m.from&&(v=ph(v,t)),{range:Dn.cursor(b+v.length),changes:{from:b,to:m.from+x.to,insert:v}}}if(b<d)return{range:Dn.cursor(b),changes:{from:b,to:d}}}}}return l={range:u}});return l?!1:(n(t.update(o,{scrollIntoView:!0,userEvent:"delete"})),!0)},Vz=[{key:"Enter",run:Ez},{key:"Backspace",run:Yz}],Sy=Bv({matchClosingTags:!1});function Uz(t={}){let{codeLanguages:n,defaultCodeLanguage:s,addKeymap:l=!0,base:{parser:o}=Xz,completeHTMLTags:u=!0,pasteURLAsLink:d=!0,htmlTagLanguage:O=Sy}=t;if(!(o instanceof Vc))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let m=t.extensions?[t.extensions]:[],p=[O.support,Cz],x;d&&p.push(Wz),s instanceof Qs?(p.push(s.support),x=s.language):s&&(x=s);let g=n||x?Zz(n,x):void 0;m.push(gz({codeParser:g,htmlParser:O.language.parser})),l&&p.push(Tj.high(ef.of(Vz)));let b=mh(o.configure(m));return u&&p.push(b.data.of({autocomplete:Gz})),new Qs(b,p)}function Gz(t){let{state:n,pos:s}=t,l=/<[:\-\.\w\u00b7-\uffff]*$/.exec(n.sliceDoc(s-25,s));if(!l)return null;let o=xa(n).resolveInner(s,-1);for(;o&&!o.type.isTop;){if(o.name=="CodeBlock"||o.name=="FencedCode"||o.name=="ProcessingInstructionBlock"||o.name=="CommentBlock"||o.name=="Link"||o.name=="Image")return null;o=o.parent}return{from:s-l[0].length,to:s,options:Lz(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let ZO=null;function Lz(){if(ZO)return ZO;let t=F4(new Rj(T0.create({extensions:Sy}),0,!0));return ZO=t?t.options:[]}const Dz=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,Wz=zl.domEventHandlers({paste:(t,n)=>{var s;let{main:l}=n.state.selection;if(l.empty)return!1;let o=(s=t.clipboardData)===null||s===void 0?void 0:s.getData("text/plain");if(!o||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(o)||(/^www\./.test(o)&&(o="https://"+o),!jc.isActiveAt(n.state,l.from,1)))return!1;let u=xa(n.state),d=!1;return u.iterate({from:l.from,to:l.to,enter:O=>{(O.from>l.from||Dz.test(O.name))&&(d=!0)},leave:O=>{O.to<l.to&&(d=!0)}}),d?!1:(n.dispatch({changes:[{from:l.from,insert:"["},{from:l.to,insert:`](${o})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),Bz=1,Qy=194,jy=195,Hz=196,D1=197,Iz=198,Fz=199,Kz=200,Jz=2,wy=3,W1=201,eR=24,tR=25,aR=49,nR=50,sR=55,lR=56,rR=57,iR=59,oR=60,cR=61,uR=62,dR=63,OR=65,fR=238,hR=71,mR=241,pR=242,xR=243,gR=244,bR=245,vR=246,yR=247,SR=248,ky=72,QR=249,jR=250,wR=251,kR=252,$R=253,TR=254,PR=255,NR=256,zR=73,RR=77,CR=263,XR=112,_R=130,ZR=151,AR=152,ER=155,$s=10,ni=13,xh=32,Uc=9,gh=35,qR=40,MR=46,Qf=123,B1=125,$y=39,Ty=34,H1=92,YR=111,VR=120,UR=78,GR=117,LR=85,DR=new Set([tR,aR,nR,CR,OR,_R,lR,rR,fR,uR,dR,ky,zR,RR,oR,cR,ZR,AR,ER,XR]);function AO(t){return t==$s||t==ni}function EO(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}const WR=new gt((t,n)=>{let s;if(t.next<0)t.acceptToken(Fz);else if(n.context.flags&Jo)AO(t.next)&&t.acceptToken(Iz,1);else if(((s=t.peek(-1))<0||AO(s))&&n.canShift(D1)){let l=0;for(;t.next==xh||t.next==Uc;)t.advance(),l++;(t.next==$s||t.next==ni||t.next==gh)&&t.acceptToken(D1,-l)}else AO(t.next)&&t.acceptToken(Hz,1)},{contextual:!0}),BR=new gt((t,n)=>{let s=n.context;if(s.flags)return;let l=t.peek(-1);if(l==$s||l==ni){let o=0,u=0;for(;;){if(t.next==xh)o++;else if(t.next==Uc)o+=8-o%8;else break;t.advance(),u++}o!=s.indent&&t.next!=$s&&t.next!=ni&&t.next!=gh&&(o<s.indent?t.acceptToken(jy,-u):t.acceptToken(Qy))}}),Jo=1,Py=2,Ka=4,Ja=8,en=16,tn=32;function ec(t,n,s){this.parent=t,this.indent=n,this.flags=s,this.hash=(t?t.hash+t.hash<<8:0)+n+(n<<4)+s+(s<<6)}const HR=new ec(null,0,0);function IR(t){let n=0;for(let s=0;s<t.length;s++)n+=t.charCodeAt(s)==Uc?8-n%8:1;return n}const I1=new Map([[mR,0],[pR,Ka],[xR,Ja],[gR,Ja|Ka],[bR,en],[vR,en|Ka],[yR,en|Ja],[SR,en|Ja|Ka],[QR,tn],[jR,tn|Ka],[wR,tn|Ja],[kR,tn|Ja|Ka],[$R,tn|en],[TR,tn|en|Ka],[PR,tn|en|Ja],[NR,tn|en|Ja|Ka]].map(([t,n])=>[t,n|Py])),FR=new lh({start:HR,reduce(t,n,s,l){return t.flags&Jo&&DR.has(n)||(n==hR||n==ky)&&t.flags&Py?t.parent:t},shift(t,n,s,l){return n==Qy?new ec(t,IR(l.read(l.pos,s.pos)),0):n==jy?t.parent:n==eR||n==sR||n==iR||n==wy?new ec(t,0,Jo):I1.has(n)?new ec(t,0,I1.get(n)|t.flags&Jo):t},hash(t){return t.hash}}),KR=new gt(t=>{for(let n=0;n<5;n++){if(t.next!="print".charCodeAt(n))return;t.advance()}if(!/\w/.test(String.fromCharCode(t.next)))for(let n=0;;n++){let s=t.peek(n);if(!(s==xh||s==Uc)){s!=qR&&s!=MR&&s!=$s&&s!=ni&&s!=gh&&t.acceptToken(Bz);return}}}),JR=new gt((t,n)=>{let{flags:s}=n.context,l=s&Ka?Ty:$y,o=(s&Ja)>0,u=!(s&en),d=(s&tn)>0,O=t.pos;for(;!(t.next<0);)if(d&&t.next==Qf)if(t.peek(1)==Qf)t.advance(2);else{if(t.pos==O){t.acceptToken(wy,1);return}break}else if(u&&t.next==H1){if(t.pos==O){t.advance();let m=t.next;m>=0&&(t.advance(),eC(t,m)),t.acceptToken(Jz);return}break}else if(t.next==H1&&!u&&t.peek(1)>-1)t.advance(2);else if(t.next==l&&(!o||t.peek(1)==l&&t.peek(2)==l)){if(t.pos==O){t.acceptToken(W1,o?3:1);return}break}else if(t.next==$s){if(o)t.advance();else if(t.pos==O){t.acceptToken(W1);return}break}else t.advance();t.pos>O&&t.acceptToken(Kz)});function eC(t,n){if(n==YR)for(let s=0;s<2&&t.next>=48&&t.next<=55;s++)t.advance();else if(n==VR)for(let s=0;s<2&&EO(t.next);s++)t.advance();else if(n==GR)for(let s=0;s<4&&EO(t.next);s++)t.advance();else if(n==LR)for(let s=0;s<8&&EO(t.next);s++)t.advance();else if(n==UR&&t.next==Qf){for(t.advance();t.next>=0&&t.next!=B1&&t.next!=$y&&t.next!=Ty&&t.next!=$s;)t.advance();t.next==B1&&t.advance()}}const tC=Ps({'async "*" "**" FormatConversion FormatSpec':Z.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":Z.controlKeyword,"in not and or is del":Z.operatorKeyword,"from def class global nonlocal lambda":Z.definitionKeyword,import:Z.moduleKeyword,"with as print":Z.keyword,Boolean:Z.bool,None:Z.null,VariableName:Z.variableName,"CallExpression/VariableName":Z.function(Z.variableName),"FunctionDefinition/VariableName":Z.function(Z.definition(Z.variableName)),"ClassDefinition/VariableName":Z.definition(Z.className),PropertyName:Z.propertyName,"CallExpression/MemberExpression/PropertyName":Z.function(Z.propertyName),Comment:Z.lineComment,Number:Z.number,String:Z.string,FormatString:Z.special(Z.string),Escape:Z.escape,UpdateOp:Z.updateOperator,"ArithOp!":Z.arithmeticOperator,BitOp:Z.bitwiseOperator,CompareOp:Z.compareOperator,AssignOp:Z.definitionOperator,Ellipsis:Z.punctuation,At:Z.meta,"( )":Z.paren,"[ ]":Z.squareBracket,"{ }":Z.brace,".":Z.derefOperator,", ;":Z.separator}),aC={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},nC=Fn.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'#G^O1^QdO'#FXOOQV'#IS'#ISOOQV'#Gq'#GqOOQV'#Fq'#FqQ`QeOOO'vQdO'#CqO1lQdO'#C}O1sQdO'#DRO2RQdO'#HYO2cQtO'#EVO'vQdO'#EWOOQS'#EY'#EYOOQS'#E['#E[OOQS'#E^'#E^O2wQdO'#E`O3_QdO'#EdO3rQdO'#EfO3zQtO'#EfO1XQdO'#EiO0rQdO'#ElO1XQdO'#EnO0rQdO'#EtO0rQdO'#EwO4VQdO'#EyO4^QdO'#FOO4iQdO'#EzO0rQdO'#FOO1XQdO'#FQO1XQdO'#FVO4nQdO'#F[P4uOdO'#GpPOOO)CBd)CBdOOQS'#Ce'#CeOOQS'#Cf'#CfOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Cl'#ClO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO'vQdO,59OO5TQdO'#DoOOQS,5:Y,5:YO5hQdO'#HdOOQS,5:],5:]O5uQ!fO,5:]O5zQtO,59YO1lQdO,59bO1lQdO,59bO1lQdO,59bO8jQdO,59bO8oQdO,59bO8vQdO,59jO8}QdO'#HTO:TQdO'#HSOOQS'#HS'#HSOOQS'#D['#D[O:lQdO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TQ.d-lQ/P.^R/Q._U.]-l.^._Q/U.aQ/b.tQ/g.zU/i.|/j/yQ/n/RQ/|/oQ0O/tU0Q/u0S0[Q0]0UQ0a0ZR0b0^R/T.`R/d.t",nodeNames:"⚠ print Escape { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatSelfDoc FormatConversion FormatSpec FormatReplacement FormatSelfDoc ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:277,context:FR,nodeProps:[["isolate",-5,4,71,72,73,77,""],["group",-15,6,85,87,88,90,92,94,96,98,99,100,102,105,108,110,"Statement Statement",-22,8,18,21,25,40,49,50,56,57,60,61,62,63,64,67,70,71,72,79,80,81,82,"Expression",-10,114,116,119,121,122,126,128,133,135,138,"Statement",-9,143,144,147,148,150,151,152,153,154,"Pattern"],["openedBy",23,"(",54,"[",58,"{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'S%T;'S;=`%i<%lO%Tk!,PV&n`Ow%Twx!,fx#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tk!,mT&n`&iZO#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%To!-Vi&n`&YS%uZOr%TrsNWsw%Twx! vx!Q%T!Q![JU![!c%T!c!dJU!d!eLx!e!hJU!h!i!(`!i!}JU!}#R%T#R#SJU#S#T%T#T#UJU#U#VLx#V#YJU#Y#Z!(`#Z#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUo!.}a&n`&YS%uZOr%Trs)Ysw%Twx.Ux!Q%T!Q![JU![!c%T!c!}JU!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[KR,BR,WR,JR,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:t=>aC[t]||-1}],tokenPrec:7668}),F1=new Pf,Ny=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function Yo(t){return(n,s,l)=>{if(l)return!1;let o=n.node.getChild("VariableName");return o&&s(o,t),!0}}const sC={FunctionDefinition:Yo("function"),ClassDefinition:Yo("class"),ForStatement(t,n,s){if(s){for(let l=t.node.firstChild;l;l=l.nextSibling)if(l.name=="VariableName")n(l,"variable");else if(l.name=="in")break}},ImportStatement(t,n){var s,l;let{node:o}=t,u=((s=o.firstChild)===null||s===void 0?void 0:s.name)=="from";for(let d=o.getChild("import");d;d=d.nextSibling)d.name=="VariableName"&&((l=d.nextSibling)===null||l===void 0?void 0:l.name)!="as"&&n(d,u?"variable":"namespace")},AssignStatement(t,n){for(let s=t.node.firstChild;s;s=s.nextSibling)if(s.name=="VariableName")n(s,"variable");else if(s.name==":"||s.name=="AssignOp")break},ParamList(t,n){for(let s=null,l=t.node.firstChild;l;l=l.nextSibling)l.name=="VariableName"&&(!s||!/\*|AssignOp/.test(s.name))&&n(l,"variable"),s=l},CapturePattern:Yo("variable"),AsPattern:Yo("variable"),__proto__:null};function zy(t,n){let s=F1.get(n);if(s)return s;let l=[],o=!0;function u(d,O){let m=t.sliceString(d.from,d.to);l.push({label:m,type:O})}return n.cursor(kc.IncludeAnonymous).iterate(d=>{if(d.name){let O=sC[d.name];if(O&&O(d,u,o)||!o&&Ny.has(d.name))return!1;o=!1}else if(d.to-d.from>8192){for(let O of zy(t,d.node))l.push(O);return!1}}),F1.set(n,l),l}const K1=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,Ry=["String","FormatString","Comment","PropertyName"];function lC(t){let n=xa(t.state).resolveInner(t.pos,-1);if(Ry.indexOf(n.name)>-1)return null;let s=n.name=="VariableName"||n.to-n.from<20&&K1.test(t.state.sliceDoc(n.from,n.to));if(!s&&!t.explicit)return null;let l=[];for(let o=n;o;o=o.parent)Ny.has(o.name)&&(l=l.concat(zy(t.state.doc,o)));return{options:l,from:s?n.from:t.pos,validFor:K1}}const rC=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(t=>({label:t,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(t=>({label:t,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(t=>({label:t,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(t=>({label:t,type:"function"}))),iC=[Ie("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),Ie("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),Ie("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),Ie("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),Ie(`if \${}:
|
|
567
|
-
|
|
568
|
-
`,{label:"if",detail:"block",type:"keyword"}),Ie("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Ie("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Ie("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Ie("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],oC=Q0(Ry,j0(rC.concat(iC)));function qO(t){let{node:n,pos:s}=t,l=t.lineIndent(s,-1),o=null;for(;;){let u=n.childBefore(s);if(u)if(u.name=="Comment")s=u.from;else if(u.name=="Body"||u.name=="MatchBody")t.baseIndentFor(u)+t.unit<=l&&(o=u),n=u;else if(u.name=="MatchClause")n=u;else if(u.type.is("Statement"))n=u;else break;else break}return o}function MO(t,n){let s=t.baseIndentFor(n),l=t.lineAt(t.pos,-1),o=l.from+l.text.length;return/^\s*($|#)/.test(l.text)&&t.node.to<o+100&&!/\S/.test(t.state.sliceDoc(o,t.node.to))&&t.lineIndent(t.pos,-1)<=s||/^\s*(else:|elif |except |finally:|case\s+[^=:]+:)/.test(t.textAfter)&&t.lineIndent(t.pos,-1)>s?null:s+t.unit}const YO=li.define({name:"python",parser:nC.configure({props:[El.add({Body:t=>{var n;let s=/^\s*(#|$)/.test(t.textAfter)&&qO(t)||t.node;return(n=MO(t,s))!==null&&n!==void 0?n:t.continue()},MatchBody:t=>{var n;let s=qO(t);return(n=MO(t,s||t.node))!==null&&n!==void 0?n:t.continue()},IfStatement:t=>/^\s*(else:|elif )/.test(t.textAfter)?t.baseIndent:t.continue(),"ForStatement WhileStatement":t=>/^\s*else:/.test(t.textAfter)?t.baseIndent:t.continue(),TryStatement:t=>/^\s*(except[ :]|finally:|else:)/.test(t.textAfter)?t.baseIndent:t.continue(),MatchStatement:t=>/^\s*case /.test(t.textAfter)?t.baseIndent+t.unit:t.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":Bo({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":Bo({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":Bo({closing:"]"}),MemberExpression:t=>t.baseIndent+t.unit,"String FormatString":()=>null,Script:t=>{var n;let s=qO(t);return(n=s&&MO(t,s))!==null&&n!==void 0?n:t.continue()}}),Ns.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":$c,Body:(t,n)=>({from:t.from+1,to:t.to-(t.to==n.doc.length?0:1)}),"String FormatString":(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function cC(){return new Qs(YO,[YO.data.of({autocomplete:lC}),YO.data.of({autocomplete:oC})])}const Vo={javascript:()=>mf({jsx:!0,typescript:!1}),typescript:()=>mf({jsx:!0,typescript:!0}),css:()=>Pv(),html:()=>Bv(),json:()=>sz(),markdown:()=>Uz(),python:()=>cC()},uC=zl.theme({"&":{backgroundColor:"#24282f",color:"#bcc2cd",fontFamily:"var(--font-mono)",fontSize:"13px",height:"100%"},".cm-scroller":{overflow:"auto"},".cm-content":{caretColor:"#33afbc"},".cm-cursor":{borderLeftColor:"#33afbc"},".cm-gutters":{backgroundColor:"#24282f",borderRight:"1px solid #2c313a",color:"#505862"},".cm-activeLineGutter":{backgroundColor:"#2c313a"},".cm-activeLine":{backgroundColor:"rgba(44, 49, 58, 0.5)"},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground":{backgroundColor:"rgba(51, 175, 188, 0.15)"}},{dark:!0});function dC({content:t,language:n,onChange:s,onSave:l}){const o=y.useRef(null),u=y.useRef(null),d=y.useRef(new _j),O=y.useRef(s),m=y.useRef(l);return O.current=s,m.current=l,y.useEffect(()=>{if(!o.current)return;const p=Vo[n]||Vo.javascript,x=ef.of([{key:"Mod-s",run:()=>{var v;return(v=m.current)==null||v.call(m),!0}}]),g=T0.create({doc:t||"",extensions:[Aj(),Ej(),qj(),Mj(),Yj(),Vj(),Uj(),ef.of([...Gj,...Lj,...Dj]),x,Zj,uC,d.current.of(p()),zl.updateListener.of(v=>{var Q;v.docChanged&&((Q=O.current)==null||Q.call(O,v.state.doc.toString()))})]}),b=new zl({state:g,parent:o.current});return u.current=b,()=>{b.destroy(),u.current=null}},[]),y.useEffect(()=>{const p=u.current;if(!p)return;const x=p.state.doc.toString();t!==x&&p.dispatch({changes:{from:0,to:x.length,insert:t||""}})},[t]),y.useEffect(()=>{const p=u.current;if(!p)return;const x=Vo[n]||Vo.javascript;p.dispatch({effects:d.current.reconfigure(x())})},[n]),i.jsx("div",{ref:o,className:"w-full h-full overflow-hidden"})}const OC=["png","jpg","jpeg","gif","svg","webp","ico","bmp","avif"],Cy=["mp4","webm","mov","avi","mkv","ogv"];function fC(t){var s;const n=(s=t.split(".").pop())==null?void 0:s.toLowerCase();return OC.includes(n)||Cy.includes(n)}function hC({path:t}){var u;const n=(u=t.split(".").pop())==null?void 0:u.toLowerCase(),s=`/api/files/raw?path=${encodeURIComponent(t)}`,l=t.split("/").pop(),o=Cy.includes(n);return i.jsxs("div",{className:"w-full h-full flex flex-col items-center justify-center bg-surface-0 p-8 gap-4",children:[i.jsxs("div",{className:"flex items-center gap-2 text-xs text-text-3 font-sans",children:[i.jsx(Le,{children:n==null?void 0:n.toUpperCase()}),i.jsx("span",{className:"font-mono",children:l}),i.jsx("a",{href:s,target:"_blank",rel:"noopener",className:"text-accent hover:text-accent/80 transition-colors",children:i.jsx(Oc,{size:12})})]}),o?i.jsx("video",{src:s,controls:!0,className:"max-w-full max-h-[70vh] rounded-md border border-border"}):i.jsx("img",{src:s,alt:l,className:"max-w-full max-h-[70vh] rounded-md border border-border object-contain"})]})}function mC(){const t=G(b=>b.editorActiveFile),n=G(b=>b.editorFiles),s=G(b=>b.editorChangedFiles),l=G(b=>b.updateFileContent),o=G(b=>b.saveFile),u=G(b=>b.reloadFile),d=G(b=>b.dismissFileChange),[O,m]=y.useState("");y.useEffect(()=>{ee.get("/files/root").then(b=>m(b.root||"")).catch(()=>{})},[]);const p=t?n[t]:null,x=t&&fC(t),g=t&&s[t];return i.jsxs("div",{className:"flex h-full",children:[i.jsx("div",{className:"w-60 flex-shrink-0 border-r border-border",children:i.jsx(CN,{rootDir:O})}),i.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[i.jsx(XN,{}),i.jsxs("div",{className:"flex-1 relative min-h-0",children:[g&&i.jsxs("div",{className:"absolute top-0 left-0 right-0 z-10 flex items-center gap-2 px-4 py-2 bg-warning/10 border-b border-warning/20",children:[i.jsx(Ac,{size:14,className:"text-warning"}),i.jsx("span",{className:"text-xs text-warning font-sans flex-1",children:"File modified externally"}),i.jsxs(je,{variant:"ghost",size:"sm",onClick:()=>u(t),children:[i.jsx(Jn,{size:12})," Reload"]}),i.jsxs(je,{variant:"ghost",size:"sm",onClick:()=>d(t),children:[i.jsx(Rt,{size:12})," Dismiss"]})]}),!t&&i.jsx("div",{className:"w-full h-full flex items-center justify-center text-text-4 font-sans",children:i.jsxs("div",{className:"text-center space-y-2",children:[i.jsx(un,{size:32,className:"mx-auto"}),i.jsx("p",{className:"text-sm",children:"Open a file from the tree"})]})}),t&&x&&i.jsx(hC,{path:t}),t&&!x&&p&&i.jsx(dC,{content:p.content,language:p.language,onChange:b=>l(t,b),onSave:()=>o(t)})]})]})]})}function pC(){var k;const t=G(T=>T.connected),n=G(T=>T.agents),[s,l]=y.useState(null),[o,u]=y.useState(!0),[d,O]=y.useState({tokens:[],cost:[],saved:[],efficiency:[],cache:[],inputOutput:[],agents:[],turns:[]}),m=y.useRef(0);y.useEffect(()=>{if(!t)return;let T=!0;async function j(){try{const N=await ee.get("/dashboard");if(!T)return;l(N),u(!1),m.current=Date.now(),O(A=>{var re,xe,ie,J,z,B,I,fe,te;const U=Date.now(),C=(Ae,Se)=>[...Ae.slice(-59),{t:U,v:Se||0}],X=((re=N.tokens)==null?void 0:re.totalTokens)||0,$=((ie=(xe=N.tokens)==null?void 0:xe.savings)==null?void 0:ie.total)||0,W=X+$,E=((J=N.tokens)==null?void 0:J.totalInputTokens)||0,ne=((z=N.tokens)==null?void 0:z.totalOutputTokens)||0;return{tokens:C(A.tokens,X),cost:C(A.cost,(B=N.tokens)==null?void 0:B.totalCostUsd),saved:C(A.saved,$),efficiency:C(A.efficiency,W>0?$/W*100:0),cache:C(A.cache,(I=N.tokens)==null?void 0:I.cacheHitRate),inputOutput:C(A.inputOutput,ne>0?E/ne:0),agents:C(A.agents,((fe=N.agents)==null?void 0:fe.running)||0),turns:C(A.turns,(te=N.tokens)==null?void 0:te.totalTurns)}})}catch{T&&u(!1)}}j();const P=setInterval(j,4e3);return()=>{T=!1,clearInterval(P)}},[t]);const p=((k=s==null?void 0:s.agents)==null?void 0:k.breakdown)||[],x=(s==null?void 0:s.routing)||null,g=(s==null?void 0:s.rotation)||null,b=(s==null?void 0:s.adaptive)||[],v=(s==null?void 0:s.journalist)||null,Q=(g==null?void 0:g.rotating)||[];return{data:s,loading:o,agents:n,connected:t,kpiHistory:d,lastFetch:m.current,agentBreakdown:p,routing:x,rotation:g,adaptive:b,journalist:v,rotating:Q}}const J1=y.memo(function({connected:n,runningCount:s,totalCount:l,uptime:o,lastFetch:u,activeTeam:d}){return i.jsxs("div",{className:"flex items-center gap-4 px-4 py-2 bg-surface-1 border-b border-border",children:[i.jsx("h2",{className:"text-xs font-semibold text-text-0 font-sans tracking-wide uppercase",children:"Command Center"}),d&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-text-4",children:"/"}),i.jsx("span",{className:"text-xs font-mono text-text-2",children:d.name})]}),i.jsx("div",{className:"flex-1"}),n&&i.jsxs("div",{className:"flex items-center gap-3.5 text-xs font-mono text-text-2",children:[i.jsxs("span",{children:[i.jsx("span",{className:"text-text-1",children:s}),i.jsxs("span",{className:"text-text-3",children:["/",l]}),i.jsx("span",{className:"ml-1 text-text-3",children:"agents"})]}),o>0&&i.jsxs("span",{className:"text-text-3",children:["Up ",qc(o)]}),u>0&&i.jsxs("span",{className:"flex items-center gap-1 text-text-4",children:[i.jsx(Jn,{size:9}),i.jsx("span",{children:vt(u)})]})]}),i.jsx(ws,{status:n?"running":"crashed",size:"sm"})]})});function la(t,n){const s=parseInt(t.slice(1,3),16),l=parseInt(t.slice(3,5),16),o=parseInt(t.slice(5,7),16);return`rgba(${s},${l},${o},${n})`}const pe={surface0:"#1a1e25",surface4:"#2c313a",surface5:"#333842",text0:"#e6e6e6",text1:"#bcc2cd",text2:"#8b929e",text3:"#6e7681",text4:"#505862",accent:"#33afbc",success:"#4ae168",warning:"#e5c07b",danger:"#e06c75",info:"#61afef",purple:"#c678dd",orange:"#d19a66"};function xC({data:t,color:n=pe.accent,width:s=72,height:l=22}){if(!t||t.length<2)return i.jsx("div",{style:{width:s,height:l}});const o=t.map(x=>x.v),u=Math.min(...o),O=Math.max(...o)-u||1,m=t.map((x,g)=>{const b=g/(t.length-1)*s,v=l-(x.v-u)/O*(l-2)-1;return`${b},${v}`}).join(" "),p=`kpi-${n.replace("#","")}`;return i.jsxs("svg",{width:s,height:l,className:"flex-shrink-0",children:[i.jsx("defs",{children:i.jsxs("linearGradient",{id:p,x1:"0",y1:"0",x2:"0",y2:"1",children:[i.jsx("stop",{offset:"0%",stopColor:n,stopOpacity:"0.2"}),i.jsx("stop",{offset:"100%",stopColor:n,stopOpacity:"0"})]})}),i.jsx("polygon",{points:`0,${l} ${m} ${s},${l}`,fill:`url(#${p})`}),i.jsx("polyline",{points:m,fill:"none",stroke:n,strokeWidth:"1.5",strokeLinejoin:"round",strokeOpacity:"0.8"})]})}const gC=y.memo(function({label:n,value:s,sparkData:l,color:o=pe.accent,className:u}){return i.jsxs("div",{className:le("flex items-center gap-2.5 px-3 py-2.5 min-w-0","bg-surface-1",u),children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5 truncate",children:n}),i.jsx("div",{className:"text-base font-semibold font-mono text-text-0 tabular-nums leading-none",children:s})]}),i.jsx(xC,{data:l,color:o})]})});function bC({kpis:t}){return i.jsx("div",{className:"flex flex-wrap border-b border-border",style:{background:"var(--color-surface-0)"},children:t.map(n=>i.jsx(gC,{label:n.label,value:n.value,sparkData:n.sparkData,color:n.color,className:le("flex-1 basis-[12.5%] min-w-[140px]","border-b border-r border-border")},n.label))})}const vC={actual:"ACT",estimated:"EST",local:"LOC"},yC=y.memo(function({agent:n,isRotating:s}){const l=n.status==="running"||n.status==="starting",o=Math.round((n.contextUsage||0)*100),u=s?"#c678dd":eh(n.status),d=n.quality,O=(d==null?void 0:d.toolSuccessRate)!=null?Math.round(d.toolSuccessRate*100):null,m=n.rotationThreshold?Math.round(n.rotationThreshold*100):null;return i.jsxs("div",{className:"px-3 py-2 hover:bg-surface-3 transition-colors space-y-1.5",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[i.jsx("span",{className:"absolute inset-0 rounded-sm",style:{background:u}}),l&&i.jsx("span",{className:"absolute inset-[-2px] rounded-sm",style:{background:u,opacity:.15,animation:"node-pulse-bar 2s ease-in-out infinite"}})]}),i.jsxs("div",{className:"min-w-0",children:[i.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate leading-none",children:n.name}),i.jsxs("div",{className:"flex items-center gap-1 mt-0.5",children:[i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider",children:n.role}),i.jsx("span",{className:"text-2xs text-text-4",children:"/"}),i.jsx("span",{className:"text-2xs font-mono text-text-3",children:SC(n.model)})]})]}),i.jsx("div",{className:"flex-1"}),O!=null&&i.jsxs("span",{className:"text-2xs font-mono font-bold uppercase px-1 py-px rounded-sm flex-shrink-0",style:{color:O>=90?"#4ae168":O>=70?"#e5c07b":"#e06c75",background:O>=90?"rgba(74,225,104,0.1)":O>=70?"rgba(229,192,123,0.1)":"rgba(224,108,117,0.1)"},children:[O,"%"]}),n.costSource&&n.costSource!=="actual"&&i.jsx("span",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider flex-shrink-0",children:vC[n.costSource]||""}),i.jsxs("div",{className:"text-right flex-shrink-0",children:[i.jsx("div",{className:"text-xs font-mono text-text-1 tabular-nums leading-none",children:Je(n.tokens||0)}),(n.costUsd||0)>0&&i.jsx("div",{className:"text-2xs font-mono text-text-3 mt-0.5",children:Ec(n.costUsd)})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("div",{className:"relative flex-1 h-[3px] bg-surface-0 rounded-full overflow-visible",children:[i.jsx("div",{className:"absolute inset-y-0 left-0 rounded-full transition-all duration-700",style:{width:`${Math.max(o,1)}%`,background:o>80?"#e06c75":o>60?"#e5c07b":l?"#61afef":"#333842"}}),m&&i.jsx("div",{className:"absolute top-[-2px] w-px h-[7px]",style:{left:`${m}%`,background:"#c678dd"},title:`Rotation at ${m}%`})]}),i.jsxs("span",{className:"text-2xs font-mono text-text-2 tabular-nums flex-shrink-0 w-7 text-right",children:[o,"%"]})]})]})});function SC(t){if(!t||t==="auto"||t==="default")return"default";const n=t.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)/);return n?`${n[1][0].toUpperCase()}${n[1].slice(1)} ${n[2]}.${n[3]}`:t.startsWith("gemini-")?t.replace("gemini-","Gem ").replace("-preview",""):t.length>12?t.slice(0,12)+"...":t}const QC=y.memo(function({agentBreakdown:n,rotating:s=[]}){if(!(n!=null&&n.length))return i.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono p-4",children:"No agents"});const l={};for(const u of n){const d=u.teamId||"ungrouped";l[d]||(l[d]=[]),l[d].push(u)}const o=new Set(s);return i.jsx(es,{className:"flex-1",children:i.jsx("div",{className:"py-1",children:Object.entries(l).map(([u,d])=>i.jsxs("div",{children:[i.jsx("div",{className:"px-3 pt-2 pb-1",children:i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:u})}),d.map(O=>i.jsx(yC,{agent:O,isRotating:o.has(O.id)},O.id))]},u))})})}),jC=y.memo(function({data:n}){const s=y.useRef(null),l=y.useRef(null),[o,u]=y.useState({width:0,height:0}),[d,O]=y.useState(null),{width:m,height:p}=o,x={top:28,right:12,bottom:8,left:12},g=Math.max(m-x.left-x.right,0),b=Math.max(p-x.top-x.bottom,0),v=y.useMemo(()=>!n||n.length<2?[]:n.slice(1).map((T,j)=>{const P=n[j],N=(T.t-P.t)/6e4,A=Math.max((T.tokens||0)-(P.tokens||0),0);return{burnRate:N>0?Math.round(A/N):0,cacheHitRate:T.cacheHitRate||0,running:T.running||0,agents:T.agents||0,t:T.t}}),[n]);y.useEffect(()=>{const T=s.current;if(!T)return;const j=new ResizeObserver(P=>{const{width:N,height:A}=P[0].contentRect;N>0&&A>0&&u({width:Math.floor(N),height:Math.floor(A)})});return j.observe(T),()=>j.disconnect()},[]);const Q=y.useCallback(T=>{const j=l.current;if(!j||!v.length||g<=0)return;const P=j.getBoundingClientRect(),N=T.clientX-P.left-x.left;if(N<0||N>g){O(null);return}const A=Math.round(N/g*(v.length-1));O({x:x.left+A/Math.max(v.length-1,1)*g,index:A})},[v,g,x.left]),k=y.useCallback(()=>O(null),[]);return y.useEffect(()=>{const T=l.current;if(!T||!v.length||m<=0||p<=0||g<=0||b<=0)return;const j=T.getContext("2d"),P=window.devicePixelRatio||1;T.width=m*P,T.height=p*P,j.scale(P,P),j.clearRect(0,0,m,p);const N=v.map(z=>z.burnRate),A=v.map(z=>z.cacheHitRate),U=v.map(z=>z.running),C=Math.max(...N,100),X=Math.max(...U,1),$=z=>x.left+z/Math.max(v.length-1,1)*g,W=z=>x.top+b-z/C*b,E=z=>x.top+b-z*b,ne=Math.max(g/v.length-1,2);for(let z=0;z<v.length;z++){const B=U[z];if(B<=0)continue;const I=B/X*b*.3,fe=$(z)-ne/2,te=x.top+b-I;j.fillStyle=la(pe.surface5,.5),j.fillRect(fe,te,ne,I)}j.setLineDash([2,4]),j.strokeStyle=la(pe.text4,.2),j.lineWidth=1;for(let z=1;z<=3;z++){const B=x.top+b/4*z;j.beginPath(),j.moveTo(x.left,B),j.lineTo(x.left+g,B),j.stroke()}j.setLineDash([]),j.font="9px 'JetBrains Mono Variable', monospace",j.textAlign="left",j.fillStyle=la(pe.text3,.5),j.fillText(`${Je(C)}/m`,x.left+4,x.top+10),j.fillText(`${Je(Math.round(C/2))}/m`,x.left+4,x.top+b/2+4),j.beginPath(),j.moveTo(x.left,x.top+b);for(let z=0;z<v.length;z++)j.lineTo($(z),W(N[z]));j.lineTo($(v.length-1),x.top+b),j.closePath();const re=j.createLinearGradient(0,x.top,0,x.top+b);re.addColorStop(0,la(pe.accent,.2)),re.addColorStop(.7,la(pe.accent,.04)),re.addColorStop(1,la(pe.accent,0)),j.fillStyle=re,j.fill(),j.beginPath(),j.strokeStyle=pe.accent,j.lineWidth=1.5,j.lineJoin="round";for(let z=0;z<v.length;z++){const B=$(z),I=W(N[z]);z===0?j.moveTo(B,I):j.lineTo(B,I)}j.stroke();const xe=A.some(z=>z>0);if(xe){j.beginPath(),j.strokeStyle=la(pe.info,.45),j.lineWidth=1,j.lineJoin="round",j.setLineDash([2,3]);for(let z=0;z<v.length;z++){const B=$(z),I=E(A[z]);z===0?j.moveTo(B,I):j.lineTo(B,I)}j.stroke(),j.setLineDash([])}j.font="9px 'Inter Variable', sans-serif",j.textAlign="right";let ie=m-x.right-4;const J=14;if(xe&&(j.fillStyle=la(pe.info,.5),j.fillText("Cache %",ie,J),ie-=j.measureText("Cache %").width+4,j.beginPath(),j.arc(ie,J-3,2.5,0,Math.PI*2),j.fill(),ie-=14),j.fillStyle=la(pe.surface5,.7),j.fillText("Agents",ie,J),ie-=j.measureText("Agents").width+4,j.beginPath(),j.arc(ie,J-3,2.5,0,Math.PI*2),j.fill(),ie-=14,j.fillStyle=pe.accent,j.fillText("Burn Rate",ie,J),ie-=j.measureText("Burn Rate").width+4,j.beginPath(),j.arc(ie,J-3,2.5,0,Math.PI*2),j.fill(),d&&d.index>=0&&d.index<v.length){const z=d.x,B=v[d.index];j.beginPath(),j.moveTo(z,x.top),j.lineTo(z,x.top+b),j.strokeStyle=la(pe.text1,.15),j.lineWidth=1,j.stroke();const I=W(B.burnRate);j.beginPath(),j.arc(z,I,3,0,Math.PI*2),j.fillStyle=pe.accent,j.fill();const fe=[{label:"Burn",value:`${Je(B.burnRate)}/m`,color:pe.accent},{label:"Cache",value:ks(B.cacheHitRate*100),color:pe.info},{label:"Agents",value:`${B.running}/${B.agents}`,color:pe.text2}],te=104,Ae=fe.length*16+12;let Se=z+12;Se+te>m-8&&(Se=z-te-12);const ve=Math.max(x.top,I-Ae/2);j.fillStyle=la(pe.surface0,.92),j.beginPath(),j.roundRect(Se,ve,te,Ae,4),j.fill(),j.strokeStyle=la(pe.text4,.2),j.lineWidth=1,j.stroke(),j.textAlign="left",fe.forEach((Xe,D)=>{const oe=ve+14+D*16;j.beginPath(),j.arc(Se+8,oe-3,2,0,Math.PI*2),j.fillStyle=Xe.color,j.fill(),j.font="8px 'Inter Variable', sans-serif",j.fillStyle=pe.text3,j.fillText(Xe.label,Se+14,oe),j.font="9px 'JetBrains Mono Variable', monospace",j.fillStyle=pe.text0,j.textAlign="right",j.fillText(Xe.value,Se+te-8,oe),j.textAlign="left"})}},[v,m,p,d,g,b,x]),i.jsx("div",{ref:s,className:"absolute inset-0",children:m>0&&p>0&&i.jsx("canvas",{ref:l,style:{width:m,height:p},className:"block cursor-crosshair",onMouseMove:Q,onMouseLeave:k})})}),wC=y.memo(function({cacheRead:n=0,cacheCreation:s=0,totalInput:l=0,size:o=140}){const u=y.useRef(null),d=n+s+l,O=d>0?n/d*100:0;return y.useEffect(()=>{const m=u.current;if(!m)return;const p=window.devicePixelRatio||1;m.width=o*p,m.height=o*p;const x=m.getContext("2d");x.scale(p,p),x.clearRect(0,0,o,o);const g=o/2,b=o/2,v=(o-12)/2,Q=5,k=135*Math.PI/180,T=405*Math.PI/180,j=T-k;if(x.beginPath(),x.arc(g,b,v,k,T),x.strokeStyle=pe.surface4,x.lineWidth=Q,x.lineCap="round",x.stroke(),d>0){const P=n/d,N=s/d;if(P>0){const A=k+j*P;x.beginPath(),x.arc(g,b,v,k,A),x.strokeStyle=pe.accent,x.lineWidth=Q,x.lineCap="round",x.stroke()}if(N>0){const A=k+j*P,U=A+j*N;x.beginPath(),x.arc(g,b,v,A,U),x.strokeStyle=pe.purple,x.lineWidth=Q,x.lineCap="butt",x.stroke()}}x.textAlign="center",x.textBaseline="middle",x.font=`600 ${o*.2}px 'JetBrains Mono Variable', monospace`,x.fillStyle=pe.text0,x.fillText(`${Math.round(O)}%`,g,b-3),x.font=`500 ${o*.08}px 'JetBrains Mono Variable', monospace`,x.fillStyle=pe.text3,x.fillText("CACHE",g,b+o*.13)},[n,s,l,o,d,O]),i.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-3 py-3",children:[i.jsx("canvas",{ref:u,className:"flex-shrink-0",style:{width:o,height:o}}),i.jsxs("div",{className:"w-full mt-3 space-y-1.5 max-w-[160px]",children:[i.jsx(VO,{color:pe.accent,label:"Read",value:Je(n)}),i.jsx(VO,{color:pe.purple,label:"Create",value:Je(s)}),i.jsx(VO,{color:pe.surface5,label:"Miss",value:Je(Math.max(l-n-s,0))})]})]})});function VO({color:t,label:n,value:s}){return i.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono",children:[i.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:t}}),i.jsx("span",{className:"text-text-3 uppercase tracking-wider flex-1",children:n}),i.jsx("span",{className:"text-text-1 tabular-nums",children:s})]})}const e0={heavy:pe.danger,medium:pe.warning,light:pe.success},t0={heavy:"Heavy",medium:"Medium",light:"Light"},kC=y.memo(function({routing:n,agentBreakdown:s}){if(!n)return null;const{byTier:l={},totalDecisions:o=0,autoRoutedCount:u=0}=n,d=["heavy","medium","light"],O=d.reduce((g,b)=>g+(l[b]||0),0),m={};for(const g of s||[]){const b=g.model||"default";m[b]||(m[b]={tokens:0,agents:0}),m[b].tokens+=g.tokens||0,m[b].agents+=1}const p=Object.entries(m).sort((g,b)=>b[1].tokens-g[1].tokens),x=p.length>0?p[0][1].tokens:0;return i.jsxs("div",{className:"flex flex-col h-full px-3 py-3 overflow-y-auto",children:[O>0&&i.jsxs("div",{className:"space-y-1.5 mb-3",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider",children:"Tier Distribution"}),i.jsxs("span",{className:"text-2xs font-mono text-text-4 ml-auto tabular-nums",children:[Je(O)," decisions"]})]}),i.jsx("div",{className:"h-[6px] bg-surface-0 rounded-full overflow-hidden flex",children:d.map(g=>{const b=l[g]||0;if(b===0)return null;const v=b/O*100;return i.jsx("div",{className:"h-full transition-all duration-500",style:{width:`${v}%`,background:e0[g]},title:`${t0[g]}: ${b} (${Math.round(v)}%)`},g)})}),i.jsx("div",{className:"flex items-center gap-3",children:d.map(g=>{const b=l[g]||0;if(b===0)return null;const v=O>0?b/O*100:0;return i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:e0[g]}}),i.jsx("span",{className:"text-2xs font-mono text-text-2",children:t0[g]}),i.jsx("span",{className:"text-2xs font-mono text-text-4 tabular-nums",children:ks(v)})]},g)})})]}),p.length>0&&i.jsxs("div",{className:"space-y-1.5 flex-1",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider",children:"Models in Use"}),u>0&&i.jsxs("span",{className:"text-2xs font-mono text-text-4 ml-auto",children:[u," auto"]})]}),i.jsx("div",{className:"space-y-1.5",children:p.map(([g,b])=>{const v=x>0?b.tokens/x*100:0;return i.jsxs("div",{className:"space-y-0.5",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-xs font-mono text-text-1 flex-1 truncate",children:$C(g)}),i.jsxs("span",{className:"text-2xs font-mono text-text-3 tabular-nums",children:[b.agents," agent",b.agents!==1?"s":""]}),i.jsx("span",{className:"text-xs font-mono text-text-1 tabular-nums",children:Je(b.tokens)})]}),i.jsx("div",{className:"h-[3px] bg-surface-0 rounded-full overflow-hidden",children:i.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${Math.max(v,2)}%`,background:pe.accent}})})]},g)})})]}),O===0&&p.length===0&&i.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono",children:"No routing data"})]})});function $C(t){if(!t||t==="auto"||t==="default")return"Default";const n=t.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)/);return n?`${n[1][0].toUpperCase()}${n[1].slice(1)} ${n[2]}.${n[3]}`:t.startsWith("gemini-")?t.replace("gemini-","Gemini ").replace("-preview",""):t}function TC(t){const n=t+"CollectionProvider",[s,l]=zs(n),[o,u]=s(n,{collectionRef:{current:null},itemMap:new Map}),d=k=>{const{scope:T,children:j}=k,P=Yn.useRef(null),N=Yn.useRef(new Map).current;return i.jsx(o,{scope:T,itemMap:N,collectionRef:P,children:j})};d.displayName=n;const O=t+"CollectionSlot",m=nc(O),p=Yn.forwardRef((k,T)=>{const{scope:j,children:P}=k,N=u(O,j),A=it(T,N.collectionRef);return i.jsx(m,{ref:A,children:P})});p.displayName=O;const x=t+"CollectionItemSlot",g="data-radix-collection-item",b=nc(x),v=Yn.forwardRef((k,T)=>{const{scope:j,children:P,...N}=k,A=Yn.useRef(null),U=it(T,A),C=u(x,j);return Yn.useEffect(()=>(C.itemMap.set(A,{ref:A,...N}),()=>void C.itemMap.delete(A))),i.jsx(b,{[g]:"",ref:U,children:P})});v.displayName=x;function Q(k){const T=u(t+"CollectionConsumer",k);return Yn.useCallback(()=>{const P=T.collectionRef.current;if(!P)return[];const N=Array.from(P.querySelectorAll(`[${g}]`));return Array.from(T.itemMap.values()).sort((C,X)=>N.indexOf(C.ref.current)-N.indexOf(X.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:d,Slot:p,ItemSlot:v},Q,l]}var UO="rovingFocusGroup.onEntryFocus",PC={bubbles:!1,cancelable:!0},hi="RovingFocusGroup",[jf,Xy,NC]=TC(hi),[zC,_y]=zs(hi,[NC]),[RC,CC]=zC(hi),Zy=y.forwardRef((t,n)=>i.jsx(jf.Provider,{scope:t.__scopeRovingFocusGroup,children:i.jsx(jf.Slot,{scope:t.__scopeRovingFocusGroup,children:i.jsx(XC,{...t,ref:n})})}));Zy.displayName=hi;var XC=y.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:s,orientation:l,loop:o=!1,dir:u,currentTabStopId:d,defaultCurrentTabStopId:O,onCurrentTabStopIdChange:m,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...g}=t,b=y.useRef(null),v=it(n,b),Q=th(u),[k,T]=Rc({prop:d,defaultProp:O??null,onChange:m,caller:hi}),[j,P]=y.useState(!1),N=zt(p),A=Xy(s),U=y.useRef(!1),[C,X]=y.useState(0);return y.useEffect(()=>{const $=b.current;if($)return $.addEventListener(UO,N),()=>$.removeEventListener(UO,N)},[N]),i.jsx(RC,{scope:s,orientation:l,dir:Q,loop:o,currentTabStopId:k,onItemFocus:y.useCallback($=>T($),[T]),onItemShiftTab:y.useCallback(()=>P(!0),[]),onFocusableItemAdd:y.useCallback(()=>X($=>$+1),[]),onFocusableItemRemove:y.useCallback(()=>X($=>$-1),[]),children:i.jsx(Be.div,{tabIndex:j||C===0?-1:0,"data-orientation":l,...g,ref:v,style:{outline:"none",...t.style},onMouseDown:Ee(t.onMouseDown,()=>{U.current=!0}),onFocus:Ee(t.onFocus,$=>{const W=!U.current;if($.target===$.currentTarget&&W&&!j){const E=new CustomEvent(UO,PC);if($.currentTarget.dispatchEvent(E),!E.defaultPrevented){const ne=A().filter(z=>z.focusable),re=ne.find(z=>z.active),xe=ne.find(z=>z.id===k),J=[re,xe,...ne].filter(Boolean).map(z=>z.ref.current);qy(J,x)}}U.current=!1}),onBlur:Ee(t.onBlur,()=>P(!1))})})}),Ay="RovingFocusGroupItem",Ey=y.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:s,focusable:l=!0,active:o=!1,tabStopId:u,children:d,...O}=t,m=wl(),p=u||m,x=CC(Ay,s),g=x.currentTabStopId===p,b=Xy(s),{onFocusableItemAdd:v,onFocusableItemRemove:Q,currentTabStopId:k}=x;return y.useEffect(()=>{if(l)return v(),()=>Q()},[l,v,Q]),i.jsx(jf.ItemSlot,{scope:s,id:p,focusable:l,active:o,children:i.jsx(Be.span,{tabIndex:g?0:-1,"data-orientation":x.orientation,...O,ref:n,onMouseDown:Ee(t.onMouseDown,T=>{l?x.onItemFocus(p):T.preventDefault()}),onFocus:Ee(t.onFocus,()=>x.onItemFocus(p)),onKeyDown:Ee(t.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){x.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const j=AC(T,x.orientation,x.dir);if(j!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let N=b().filter(A=>A.focusable).map(A=>A.ref.current);if(j==="last")N.reverse();else if(j==="prev"||j==="next"){j==="prev"&&N.reverse();const A=N.indexOf(T.currentTarget);N=x.loop?EC(N,A+1):N.slice(A+1)}setTimeout(()=>qy(N))}}),children:typeof d=="function"?d({isCurrentTabStop:g,hasTabStop:k!=null}):d})})});Ey.displayName=Ay;var _C={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ZC(t,n){return n!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function AC(t,n,s){const l=ZC(t.key,s);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(l))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(l)))return _C[l]}function qy(t,n=!1){const s=document.activeElement;for(const l of t)if(l===s||(l.focus({preventScroll:n}),document.activeElement!==s))return}function EC(t,n){return t.map((s,l)=>t[(n+l)%t.length])}var qC=Zy,MC=Ey,Gc="Tabs",[YC]=zs(Gc,[_y]),My=_y(),[VC,bh]=YC(Gc),Yy=y.forwardRef((t,n)=>{const{__scopeTabs:s,value:l,onValueChange:o,defaultValue:u,orientation:d="horizontal",dir:O,activationMode:m="automatic",...p}=t,x=th(O),[g,b]=Rc({prop:l,onChange:o,defaultProp:u??"",caller:Gc});return i.jsx(VC,{scope:s,baseId:wl(),value:g,onValueChange:b,orientation:d,dir:x,activationMode:m,children:i.jsx(Be.div,{dir:x,"data-orientation":d,...p,ref:n})})});Yy.displayName=Gc;var Vy="TabsList",Uy=y.forwardRef((t,n)=>{const{__scopeTabs:s,loop:l=!0,...o}=t,u=bh(Vy,s),d=My(s);return i.jsx(qC,{asChild:!0,...d,orientation:u.orientation,dir:u.dir,loop:l,children:i.jsx(Be.div,{role:"tablist","aria-orientation":u.orientation,...o,ref:n})})});Uy.displayName=Vy;var Gy="TabsTrigger",Ly=y.forwardRef((t,n)=>{const{__scopeTabs:s,value:l,disabled:o=!1,...u}=t,d=bh(Gy,s),O=My(s),m=By(d.baseId,l),p=Hy(d.baseId,l),x=l===d.value;return i.jsx(MC,{asChild:!0,...O,focusable:!o,active:x,children:i.jsx(Be.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":p,"data-state":x?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:m,...u,ref:n,onMouseDown:Ee(t.onMouseDown,g=>{!o&&g.button===0&&g.ctrlKey===!1?d.onValueChange(l):g.preventDefault()}),onKeyDown:Ee(t.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&d.onValueChange(l)}),onFocus:Ee(t.onFocus,()=>{const g=d.activationMode!=="manual";!x&&!o&&g&&d.onValueChange(l)})})})});Ly.displayName=Gy;var Dy="TabsContent",Wy=y.forwardRef((t,n)=>{const{__scopeTabs:s,value:l,forceMount:o,children:u,...d}=t,O=bh(Dy,s),m=By(O.baseId,l),p=Hy(O.baseId,l),x=l===O.value,g=y.useRef(x);return y.useEffect(()=>{const b=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(b)},[]),i.jsx(ga,{present:o||x,children:({present:b})=>i.jsx(Be.div,{"data-state":x?"active":"inactive","data-orientation":O.orientation,role:"tabpanel","aria-labelledby":m,hidden:!b,id:p,tabIndex:0,...d,ref:n,style:{...t.style,animationDuration:g.current?"0s":void 0},children:b&&u})})});Wy.displayName=Dy;function By(t,n){return`${t}-trigger-${n}`}function Hy(t,n){return`${t}-content-${n}`}var UC=Yy,GC=Uy,LC=Ly,DC=Wy;function Iy({children:t,...n}){return i.jsx(UC,{...n,children:t})}function Fy({children:t,className:n,...s}){return i.jsx(GC,{className:le("flex items-center gap-0 border-b border-border-subtle",n),...s,children:t})}function Tl({children:t,className:n,...s}){return i.jsx(LC,{className:le("px-3 py-2 text-sm font-medium font-sans text-text-2","border-b-2 border-transparent","hover:text-text-0 hover:bg-surface-5/50","data-[state=active]:text-text-0 data-[state=active]:border-accent","transition-colors duration-100 cursor-pointer select-none","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent",n),...s,children:t})}function Pl({children:t,className:n,...s}){return i.jsx(DC,{className:le("flex-1 min-h-0",n),...s,children:t})}function a0({data:t,color:n=pe.accent,width:s=60,height:l=16}){if(!t||t.length<2)return i.jsx("div",{style:{width:s,height:l}});const o=Array.isArray(t[0])?t:t.map(p=>typeof p=="number"?p:p.v),u=Math.min(...o),O=Math.max(...o)-u||1,m=o.map((p,x)=>{const g=x/(o.length-1)*s,b=l-(p-u)/O*(l-2)-1;return`${g},${b}`}).join(" ");return i.jsx("svg",{width:s,height:l,className:"flex-shrink-0",children:i.jsx("polyline",{points:m,fill:"none",stroke:n,strokeWidth:"1",strokeLinejoin:"round",strokeOpacity:"0.7"})})}function GO({label:t,value:n,total:s,color:l}){const o=s>0?n/s*100:0;return i.jsxs("div",{className:"space-y-0.5",children:[i.jsxs("div",{className:"flex items-center justify-between text-xs font-mono",children:[i.jsx("span",{className:"text-text-2",children:t}),i.jsx("span",{className:"text-text-1 tabular-nums",children:Je(n)})]}),i.jsx("div",{className:"h-[2px] bg-surface-0 rounded-full overflow-hidden",children:i.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${Math.min(o,100)}%`,background:l}})})]})}function WC({tokens:t,rotation:n}){var d;const s=(t==null?void 0:t.savings)||{},l=s.total||0,u=((t==null?void 0:t.totalTokens)||0)+l;return i.jsxs("div",{className:"p-3 space-y-4",children:[i.jsxs("div",{className:"flex gap-4",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Rotations"}),i.jsx("div",{className:"text-xl font-mono font-semibold text-text-0 tabular-nums leading-none",children:(n==null?void 0:n.totalRotations)||0})]}),i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Saved"}),i.jsx("div",{className:"text-xl font-mono font-semibold text-success tabular-nums leading-none",children:Je(l)}),u>0&&i.jsxs("div",{className:"text-2xs font-mono text-text-3 mt-0.5",children:[ks(l/u*100)," of total"]})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(GO,{label:"Rotation",value:s.fromRotation||0,total:u,color:pe.accent}),i.jsx(GO,{label:"Conflict prevention",value:s.fromConflictPrevention||0,total:u,color:pe.purple}),i.jsx(GO,{label:"Cold-start skip",value:s.fromColdStartSkip||0,total:u,color:pe.info})]}),((d=n==null?void 0:n.history)==null?void 0:d.length)>0&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1.5",children:"Recent"}),i.jsx("div",{className:"space-y-1",children:n.history.slice(-8).reverse().map((O,m)=>i.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono px-2 py-1 bg-surface-0 rounded",children:[i.jsx("span",{className:"text-text-1 font-medium capitalize truncate flex-1",children:O.agentName||O.role}),i.jsx("span",{className:"text-text-3 tabular-nums",children:ks((O.contextUsage||0)*100)}),i.jsx("span",{className:"text-text-4",children:vt(O.timestamp)})]},m))})]})]})}function BC({adaptive:t}){if(!(t!=null&&t.length))return i.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono p-4",children:"No adaptive profiles"});function n(s){const l=s.split(":");return{provider:l[0]||s,role:l[1]||""}}return i.jsx("div",{children:i.jsxs("div",{className:"p-3 space-y-1",children:[i.jsxs("div",{className:"flex items-center gap-2 px-2 pb-1 text-2xs font-mono text-text-4 uppercase tracking-wider",children:[i.jsx("span",{className:"flex-1",children:"Role"}),i.jsx("span",{className:"w-12 text-right",children:"Threshold"}),i.jsx("span",{className:"w-12 text-right",children:"Adj."}),i.jsx("span",{className:"w-14 text-right",children:"Status"})]}),t.map(s=>{var O,m;const{provider:l,role:o}=n(s.key),u=((O=s.thresholdHistory)==null?void 0:O.length)>1,d=((m=s.recentScores)==null?void 0:m.length)>1;return i.jsxs("div",{className:"bg-surface-0 rounded px-2 py-1.5",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("span",{className:"text-xs font-mono text-text-1 capitalize",children:o||l}),o&&i.jsx("span",{className:"text-2xs font-mono text-text-4 ml-1.5",children:l})]}),i.jsx("span",{className:"w-12 text-right text-xs font-mono font-semibold text-text-0 tabular-nums",children:ks(s.threshold*100)}),i.jsx("span",{className:"w-12 text-right text-2xs font-mono text-text-3 tabular-nums",children:s.adjustments}),i.jsx("span",{className:le("w-14 text-right text-2xs font-mono font-bold uppercase",s.converged?"text-success":"text-text-4"),children:s.converged?"Converged":"Learning"})]}),(u||d)&&i.jsxs("div",{className:"flex items-center gap-3 mt-1.5 pl-1",children:[u&&i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"text-2xs font-mono text-text-4",children:"Threshold"}),i.jsx(a0,{data:s.thresholdHistory.map(p=>p.v),color:s.converged?pe.success:pe.accent,width:70,height:12})]}),d&&i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"text-2xs font-mono text-text-4",children:"Quality"}),i.jsx(a0,{data:s.recentScores,color:pe.warning,width:70,height:12})]})]})]},s.key)})]})})}function HC({journalist:t}){var n;return t?i.jsx("div",{children:i.jsxs("div",{className:"p-3 space-y-3",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Cycles"}),i.jsx("div",{className:"text-lg font-mono font-semibold text-text-0 tabular-nums leading-none",children:t.cycleCount||0})]}),t.lastCycleAt&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Last"}),i.jsx("div",{className:"text-xs font-mono text-text-2",children:vt(t.lastCycleAt)})]}),t.synthesizing&&i.jsx("span",{className:"text-2xs font-mono font-bold text-accent uppercase tracking-wider animate-pulse",children:"Synthesizing"})]}),t.lastSummary&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Summary"}),i.jsx("div",{className:"text-xs font-sans text-text-2 leading-relaxed",children:t.lastSummary})]}),t.projectMap&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Project Map"}),i.jsx("div",{className:"text-xs font-mono text-text-2 leading-relaxed whitespace-pre-wrap",children:t.projectMap})]}),t.decisions&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Decisions"}),i.jsx("div",{className:"text-xs font-mono text-text-2 leading-relaxed whitespace-pre-wrap",children:t.decisions})]}),((n=t.recentHistory)==null?void 0:n.length)>0&&i.jsxs("div",{children:[i.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1.5",children:"History"}),i.jsx("div",{className:"space-y-1",children:t.recentHistory.slice().reverse().map((s,l)=>i.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono px-2 py-1 bg-surface-0 rounded",children:[i.jsxs("span",{className:"text-text-3",children:["#",s.cycle]}),i.jsxs("span",{className:"text-text-2 flex-1 truncate",children:[s.agentCount," agents"]}),i.jsx("span",{className:"text-text-4",children:vt(s.timestamp)})]},l))})]})]})}):i.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono p-4",children:"Journalist inactive"})}const IC=y.memo(function({tokens:n,rotation:s,adaptive:l,journalist:o}){return i.jsxs(Iy,{defaultValue:"rotation",className:"flex flex-col h-full",children:[i.jsxs(Fy,{className:"flex-shrink-0 px-1",children:[i.jsxs(Tl,{value:"rotation",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[i.jsx(Yl,{size:11}),"Rotation"]}),i.jsxs(Tl,{value:"adaptive",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[i.jsx(S5,{size:11}),"Adaptive"]}),i.jsxs(Tl,{value:"journalist",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[i.jsx(If,{size:11}),"Journalist"]})]}),i.jsx(Pl,{value:"rotation",className:"flex-1 min-h-0 relative",children:i.jsx("div",{className:"absolute inset-0 overflow-y-auto",children:i.jsx(WC,{tokens:n,rotation:s})})}),i.jsx(Pl,{value:"adaptive",className:"flex-1 min-h-0 relative",children:i.jsx("div",{className:"absolute inset-0 overflow-y-auto",children:i.jsx(BC,{adaptive:l})})}),i.jsx(Pl,{value:"journalist",className:"flex-1 min-h-0 relative",children:i.jsx("div",{className:"absolute inset-0 overflow-y-auto",children:i.jsx(HC,{journalist:o})})})]})}),FC={spawn:$P,complete:Hr,crash:Ac,kill:Tb,rotate:Yl,error:Kf},KC={spawn:"text-accent",complete:"text-success",crash:"text-danger",kill:"text-text-3",rotate:"text-purple",error:"text-danger"};function JC(t){const n=t.agentName||t.role||"";switch(t.type){case"spawn":return`${n} spawned`;case"complete":return`${n} completed`;case"crash":return`${n} crashed`;case"kill":return`${n} killed`;case"rotate":return`${n} rotated`;default:return t.text||t.type||"event"}}const eX=y.memo(function({events:n=[]}){return n.length?i.jsx("div",{className:"flex items-center gap-3 overflow-x-auto py-2 px-3",children:n.slice(-15).reverse().map((s,l)=>{const o=FC[s.type]||Pa,u=KC[s.type]||"text-text-3",d=JC(s);return i.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[i.jsx(o,{size:11,className:u}),i.jsx("span",{className:"text-xs font-sans text-text-2 whitespace-nowrap",children:d}),i.jsx("span",{className:"text-2xs font-mono text-text-4",children:vt(s.t||s.timestamp)})]},l)})}):i.jsx("div",{className:"text-xs text-text-3 font-mono py-2.5 text-center",children:"No recent activity"})});function ra({className:t,...n}){return i.jsx("div",{className:le("rounded-md bg-surface-4","bg-gradient-to-r from-surface-4 via-surface-5 to-surface-4","bg-[length:200%_100%] animate-[shimmer_1.5s_ease-in-out_infinite]",t),...n})}function tX(){return i.jsxs("div",{className:"flex-1 grid gap-px p-0",style:{gridTemplateRows:"auto minmax(0, 1fr) minmax(0, 1fr)",gridTemplateColumns:"3fr 1.5fr 1.5fr",background:"#282c34"},children:[i.jsx("div",{className:"col-span-3",children:i.jsx(ra,{className:"h-[72px] rounded-none"})}),i.jsx(ra,{className:"rounded-none"}),i.jsx(ra,{className:"rounded-none"}),i.jsx(ra,{className:"rounded-none"}),i.jsx(ra,{className:"rounded-none"}),i.jsx("div",{className:"col-span-2",children:i.jsx(ra,{className:"h-full rounded-none"})})]})}function aX(){const{data:t,loading:n,agents:s,connected:l,kpiHistory:o,lastFetch:u,agentBreakdown:d,routing:O,rotation:m,adaptive:p,journalist:x,rotating:g}=pC(),b=s.filter(C=>C.status==="running").length;if(!l)return i.jsx("div",{className:"w-full h-full flex items-center justify-center",children:i.jsxs("div",{className:"text-center space-y-2 text-text-3 font-mono",children:[i.jsx(_c,{size:28,className:"mx-auto"}),i.jsx("p",{className:"text-xs",children:"Connecting to daemon..."})]})});if(n||!t)return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsx(J1,{connected:l,runningCount:0,totalCount:0,uptime:0,lastFetch:0}),i.jsx(tX,{})]});const v=t.tokens||{},Q={totalTokens:v.totalTokens||0,totalCostUsd:v.totalCostUsd||0,totalInputTokens:v.totalInputTokens||0,totalOutputTokens:v.totalOutputTokens||0,cacheReadTokens:v.cacheReadTokens||0,cacheCreationTokens:v.cacheCreationTokens||0,cacheHitRate:v.cacheHitRate||0,totalTurns:v.totalTurns||0,agentCount:v.agentCount||0,savings:v.savings||{}},k=Q.totalTokens+(Q.savings.total||0),T=k>0?(Q.savings.total||0)/k*100:0,j=Q.totalOutputTokens>0?(Q.totalInputTokens/Q.totalOutputTokens).toFixed(1):"—",P=t.timeline||{},N=P.snapshots||[],A=P.events||t.events||[],U=[{label:"Tokens Used",value:Je(Q.totalTokens),sparkData:o.tokens,color:pe.accent},{label:"Total Cost",value:Ec(Q.totalCostUsd),sparkData:o.cost,color:pe.warning},{label:"Tokens Saved",value:Je(Q.savings.total||0),sparkData:o.saved,color:pe.success},{label:"Efficiency",value:ks(T),sparkData:o.efficiency,color:pe.purple},{label:"Cache Rate",value:ks(Q.cacheHitRate*100),sparkData:o.cache,color:pe.info},{label:"I/O Ratio",value:`${j}:1`,sparkData:o.inputOutput,color:pe.orange},{label:"Agents",value:`${b}/${s.length}`,sparkData:o.agents,color:pe.accent},{label:"Turns",value:Je(Q.totalTurns),sparkData:o.turns,color:pe.text2}];return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsx(J1,{connected:l,runningCount:b,totalCount:s.length,uptime:t.uptime||0,lastFetch:u,activeTeam:t.activeTeam}),i.jsx(bC,{kpis:U}),i.jsxs("div",{className:"flex-1 min-h-0 grid",style:{gridTemplateRows:"minmax(0, 1fr) minmax(0, 1fr)",gridTemplateColumns:"3fr 1.5fr 1.5fr",background:"#282c34",gap:"1px"},children:[i.jsx("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 relative",children:i.jsx(jC,{data:N})}),i.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-l border-border",children:[i.jsx("div",{className:"px-3 pt-2.5 pb-1",children:i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Cache Performance"})}),i.jsx(wC,{cacheRead:Q.cacheReadTokens,cacheCreation:Q.cacheCreationTokens,totalInput:Q.totalInputTokens})]}),i.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-l border-border",children:[i.jsx("div",{className:"px-3 pt-2.5 pb-1",children:i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Model Routing"})}),i.jsx(kC,{routing:O,agentBreakdown:d})]}),i.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-t border-border",children:[i.jsx("div",{className:"px-3 pt-2.5 pb-1 flex-shrink-0",children:i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Agent Fleet"})}),i.jsx(QC,{agentBreakdown:d,rotating:g})]}),i.jsx("div",{className:"col-span-2 min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-t border-l border-border",children:i.jsx(IC,{tokens:Q,rotation:m,adaptive:p,journalist:x})})]}),i.jsx("div",{className:"flex-shrink-0 bg-surface-1 border-t border-border",children:i.jsx(eX,{events:A})})]})}const n0={sm:12,md:16,lg:20};function nX({fill:t="full",size:n,color:s="#fbbf24",emptyColor:l="rgba(255,255,255,0.4)"}){const o=`star-${Math.random().toString(36).slice(2,8)}`;return i.jsxs("svg",{width:n,height:n,viewBox:"0 0 20 20",fill:"none",children:[t==="half"&&i.jsx("defs",{children:i.jsxs("linearGradient",{id:o,children:[i.jsx("stop",{offset:"50%",stopColor:s}),i.jsx("stop",{offset:"50%",stopColor:l})]})}),i.jsx("path",{d:"M10 1.5l2.47 5.01 5.53.8-4 3.9.94 5.49L10 14.27 5.06 16.7 6 11.21l-4-3.9 5.53-.8L10 1.5z",fill:t==="full"?s:t==="half"?`url(#${o})`:l})]})}function Ky({rating:t=0,count:n,size:s="sm"}){const l=n0[s]||n0.sm,o=[];for(let u=1;u<=5;u++)t>=u?o.push("full"):t>=u-.5?o.push("half"):o.push("empty");return i.jsxs("span",{className:"inline-flex items-center",style:{gap:1},children:[o.map((u,d)=>i.jsx(nX,{fill:u,size:l},d)),n!=null&&i.jsxs("span",{className:"ml-1 text-[11px] text-[var(--text-dim,#6b7f95)] font-sans",children:["(",n,")"]})]})}const s0={design:{color:"#c678dd",bg:"rgba(198,120,221,0.12)"},quality:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},devtools:{color:"#33afbc",bg:"rgba(51,175,188,0.14)"},workflow:{color:"#fbbf24",bg:"rgba(251,191,36,0.12)"},security:{color:"#f87171",bg:"rgba(248,113,113,0.12)"},specialized:{color:"#f59e0b",bg:"rgba(245,158,11,0.12)"},verified:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},anthropic:{color:"#f59e0b",bg:"rgba(245,158,11,0.12)"},published:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},draft:{color:"#6b7f95",bg:"rgba(255,255,255,0.06)"},review:{color:"#c678dd",bg:"rgba(198,120,221,0.12)"},rejected:{color:"#f87171",bg:"rgba(248,113,113,0.12)"},free:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"}};function Jy({label:t,variant:n,className:s}){const l=s0[n]||s0.draft;return i.jsx("span",{className:le("inline-flex items-center whitespace-nowrap font-sans select-none",s),style:{padding:"3px 8px",borderRadius:4,fontSize:10,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.5px",lineHeight:1.4,color:l.color,background:l.bg},children:t})}function eS({price:t=0,size:n="sm"}){const s=!t||t===0,l={sm:"text-2xs px-2 py-0.5",md:"text-xs px-2.5 py-0.5",lg:"text-xs px-3 py-1"};return i.jsx("span",{className:`inline-flex items-center font-mono font-semibold rounded whitespace-nowrap ${l[n]||l.sm} ${s?"bg-success/12 text-success":"bg-white/8 text-text-1"}`,children:s?"Free":`$${t.toFixed(2)}`})}function tS({type:t="verified",size:n=12}){const s=t==="claude-official"||t==="anthropic"?"#f59e0b":"#4ade80";return i.jsxs("svg",{width:n,height:n,viewBox:"0 0 20 20",fill:"none",className:"inline-block flex-shrink-0",children:[i.jsx("path",{d:"M10 0l2.36 3.15L16.18 2l.68 3.93L20.8 7.1l-1.87 3.52L20.8 14.14l-3.94 1.17-.68 3.93-3.82-1.15L10 21.24l-2.36-3.15-3.82 1.15-.68-3.93-3.94-1.17 1.87-3.52L-.8 7.1l3.94-1.17.68-3.93 3.82 1.15L10 0z",fill:s}),i.jsx("path",{d:"M7 10.5l2 2 4-4.5",fill:"none",stroke:"#24282f",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const aS="groove_favorites";function vh(){try{return JSON.parse(localStorage.getItem(aS)||"[]")}catch{return[]}}function sX(t){return vh().includes(t)}function lX(t){const n=vh(),s=n.indexOf(t);return s>=0?n.splice(s,1):n.push(t),localStorage.setItem(aS,JSON.stringify(n)),s<0}function rX(t){const n=new Set(vh());return t.map(s=>({...s,favorited:n.has(s.id)}))}function iX({filled:t,size:n=16}){return i.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:t?"#f87171":"none",stroke:t?"#f87171":"rgba(255,255,255,0.3)",strokeWidth:"2",children:i.jsx("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})})}function oX(){return i.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[i.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),i.jsx("polyline",{points:"7 10 12 15 17 10"}),i.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}function cX({skill:t,onClick:n}){var u,d;const[s,l]=y.useState(()=>sX(t.id));function o(O){O.stopPropagation(),l(lX(t.id))}return i.jsxs("div",{onClick:()=>n==null?void 0:n(t),className:le("flex flex-col cursor-pointer group","bg-surface-1 border border-border-subtle rounded-md","hover:border-accent/30 hover:bg-surface-2","transition-all duration-150"),style:{padding:20,minHeight:280},children:[i.jsxs("div",{className:"flex justify-between items-start",children:[i.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0 bg-accent/12 text-[20px]",children:t.icon||((d=(u=t.name)==null?void 0:u[0])==null?void 0:d.toUpperCase())||"?"}),i.jsx("button",{onClick:o,className:"opacity-40 group-hover:opacity-80 hover:!opacity-100 transition-opacity cursor-pointer bg-transparent border-0 p-0",children:i.jsx(iX,{filled:s})})]}),i.jsx("div",{className:"mt-3 text-[15px] font-semibold text-text-0 font-sans line-clamp-2 leading-snug",children:t.name}),i.jsxs("div",{className:"mt-1 flex items-center gap-1.5 text-xs text-text-3 font-sans",children:[i.jsxs("span",{children:["by ",t.author||"Community"]}),(t.source==="claude-official"||t.verified)&&i.jsx(tS,{type:t.source,size:12})]}),i.jsx("div",{className:"mt-2.5 text-xs text-text-2 font-sans line-clamp-3 flex-1 leading-relaxed",children:t.description}),i.jsx("div",{className:"mt-3",children:i.jsx(Jy,{label:t.category||"general",variant:t.category||"draft"})}),i.jsx("div",{className:"h-px bg-border-subtle my-3"}),i.jsxs("div",{className:"flex items-center justify-between gap-2",children:[i.jsx(Ky,{rating:t.rating||0,count:t.rating_count||t.ratingCount||0,size:"sm"}),i.jsxs("span",{className:"flex items-center gap-1 text-xs text-text-3 font-mono",children:[i.jsx(oX,{}),Je(t.downloads||0)]}),i.jsx(eS,{price:t.price||0,size:"sm"})]})]})}function nS(){return i.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md animate-pulse",style:{padding:20,minHeight:280},children:[i.jsx("div",{className:"w-10 h-10 rounded-full bg-surface-4"}),i.jsx("div",{className:"mt-3 h-4 w-[70%] rounded bg-surface-4"}),i.jsx("div",{className:"mt-2 h-3 w-[40%] rounded bg-surface-4"}),i.jsx("div",{className:"mt-3.5 h-3 w-full rounded bg-surface-4"}),i.jsx("div",{className:"mt-1.5 h-3 w-[90%] rounded bg-surface-4"}),i.jsx("div",{className:"mt-1.5 h-3 w-[60%] rounded bg-surface-4"}),i.jsx("div",{className:"mt-3.5 h-5 w-[50px] rounded bg-surface-4"}),i.jsx("div",{className:"h-px bg-surface-4 my-3"}),i.jsxs("div",{className:"flex justify-between",children:[i.jsx("div",{className:"h-3 w-16 rounded bg-surface-4"}),i.jsx("div",{className:"h-3 w-12 rounded bg-surface-4"}),i.jsx("div",{className:"h-3 w-10 rounded bg-surface-4"})]})]})}const uX={slack:"https://cdn.simpleicons.org/slack/E01E5A",github:"https://cdn.simpleicons.org/github/white",stripe:"https://cdn.simpleicons.org/stripe/635BFF",gmail:"https://cdn.simpleicons.org/gmail/EA4335","google-calendar":"https://cdn.simpleicons.org/googlecalendar/4285F4","google-drive":"https://cdn.simpleicons.org/googledrive/4285F4","google-maps":"https://cdn.simpleicons.org/googlemaps/4285F4",postgres:"https://cdn.simpleicons.org/postgresql/4169E1",notion:"https://cdn.simpleicons.org/notion/white",discord:"https://cdn.simpleicons.org/discord/5865F2",linear:"https://cdn.simpleicons.org/linear/5E6AD2","brave-search":"https://cdn.simpleicons.org/brave/FB542B","home-assistant":"https://cdn.simpleicons.org/homeassistant/18BCF2"};function dX({item:t,size:n=40}){const s=uX[t.id];if(s)return i.jsxs("div",{className:"rounded-md bg-surface-4 flex items-center justify-center flex-shrink-0 overflow-hidden",style:{width:n,height:n},children:[i.jsx("img",{src:s,alt:t.name,className:"w-5 h-5",onError:u=>{u.target.style.display="none",u.target.nextSibling.style.display="flex"}}),i.jsx("div",{className:"hidden items-center justify-center w-full h-full text-lg font-bold font-sans text-text-1",children:(t.name||"?")[0]})]});const l=(t.name||"?")[0].toUpperCase(),o=t.name?t.name.charCodeAt(0)*37%360:200;return i.jsx("div",{className:"rounded-md flex items-center justify-center flex-shrink-0 text-lg font-bold font-sans",style:{width:n,height:n,background:`hsl(${o}, 40%, 18%)`,color:`hsl(${o}, 60%, 65%)`},children:l})}function OX({item:t,onClick:n,className:s}){var o;const l=t.installed;return i.jsxs("button",{onClick:()=>n(t),className:le("flex flex-col p-5 rounded-md border border-border-subtle bg-surface-1 text-left","hover:border-accent/30 hover:bg-surface-2","transition-all duration-150 cursor-pointer group",s),style:{minHeight:200},children:[i.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[i.jsx(dX,{item:t,size:36}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"text-[14px] font-semibold text-text-0 font-sans truncate",children:t.name}),(t.verified||t.verified==="mcp-official")&&i.jsx(Hr,{size:11,className:"text-accent flex-shrink-0"})]}),i.jsx("span",{className:"text-2xs text-text-3 font-sans",children:t.author||"Community"})]})]}),i.jsx("p",{className:"text-xs text-text-2 font-sans line-clamp-3 mb-3 flex-1 leading-relaxed",children:t.description}),i.jsx("div",{className:"h-px bg-border-subtle my-2"}),i.jsxs("div",{className:"flex items-center gap-3 text-2xs text-text-3 font-sans",children:[i.jsxs("span",{className:"flex items-center gap-1",children:[i.jsx(Lf,{size:10}),Je(t.downloads||0)]}),(t.rating||0)>0&&i.jsxs("span",{className:"flex items-center gap-1",children:[i.jsx(Db,{size:10,className:"text-warning",fill:"currentColor"}),(o=t.rating)==null?void 0:o.toFixed(1)]}),i.jsx("span",{className:"flex-1"}),l&&i.jsx(Le,{variant:"accent",className:"text-2xs",children:"Installed"})]})]})}function sS({value:t,onChange:n,placeholder:s="Search skills, tags, authors...",large:l}){const[o,u]=y.useState(t||""),d=y.useRef(null);y.useEffect(()=>{u(t||"")},[t]);function O(m){const p=m.target.value;u(p),clearTimeout(d.current),d.current=setTimeout(()=>n(p),300)}return i.jsxs("div",{className:"relative w-full",children:[i.jsx(Vl,{size:16,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-text-4 pointer-events-none"}),i.jsx("input",{value:o,onChange:O,placeholder:s,className:le("w-full font-sans outline-none","bg-surface-0 border border-border text-text-0 placeholder:text-text-4","focus:border-accent/40 transition-colors",l?"py-3 pl-11 pr-12 text-[15px] rounded-lg":"py-2.5 pl-10 pr-3 text-sm rounded-md")}),l&&i.jsx("kbd",{className:"absolute right-3.5 top-1/2 -translate-y-1/2 bg-surface-4 text-text-4 px-2 py-0.5 rounded text-xs font-mono",children:"/"})]})}const fX=[{id:"",label:"All"},{id:"design",label:"Design"},{id:"quality",label:"Quality"},{id:"devtools",label:"Dev Tools"},{id:"workflow",label:"Workflow"},{id:"security",label:"Security"},{id:"specialized",label:"Specialized"}];function hX({selected:t="",categories:n=fX,onSelect:s}){return i.jsx("div",{className:"flex gap-2 overflow-x-auto",style:{scrollbarWidth:"none"},children:n.map(l=>{const o=t===l.id;return i.jsx("button",{onClick:()=>s(l.id),className:le("whitespace-nowrap font-sans cursor-pointer select-none transition-all text-[13px] rounded-full border",o?"bg-accent text-surface-0 border-accent font-semibold":"bg-surface-1 text-text-3 border-border-subtle hover:text-text-1 hover:border-border font-medium"),style:{padding:"7px 16px"},children:l.label},l.id)})})}function Lc(){const t=G(n=>n.addToast);return{success:(n,s)=>t("success",n,s),error:(n,s)=>t("error",n,s),info:(n,s)=>t("info",n,s),warning:(n,s)=>t("warning",n,s)}}function mX({skill:t,onBack:n}){var k,T,j;const s=Lc(),[l,o]=y.useState(""),[u,d]=y.useState(!1),[O,m]=y.useState(!1),[p,x]=y.useState(t.installed),[g,b]=y.useState(!0);y.useEffect(()=>{b(!0),ee.get(`/skills/${t.id}/content`).then(P=>{o(P.content||""),d(P.requiresPurchase||!1)}).catch(()=>{}).finally(()=>b(!1))},[t.id]);async function v(){m(!0);try{await ee.post(`/skills/${t.id}/install`),x(!0),s.success(`${t.name} installed`)}catch(P){s.error("Install failed",P.message)}m(!1)}async function Q(){const{marketplaceAuthenticated:P,marketplaceLogin:N,marketplaceCheckout:A}=G.getState();if(!P){N();return}try{await A(t.id)}catch{}}return i.jsx(es,{className:"h-full",children:i.jsxs("div",{className:"px-6 py-5",children:[i.jsxs("button",{onClick:n,className:"flex items-center gap-1 text-xs text-text-3 font-sans hover:text-text-0 cursor-pointer bg-transparent border-0 mb-4",children:[i.jsx($b,{size:14})," Back"]}),i.jsxs("div",{className:"flex gap-8",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-start gap-3",children:[i.jsx("div",{className:"w-11 h-11 rounded-lg flex items-center justify-center flex-shrink-0 bg-accent/10 border border-accent/20 text-[22px]",children:t.icon||((T=(k=t.name)==null?void 0:k[0])==null?void 0:T.toUpperCase())}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("h1",{className:"text-lg font-bold text-text-0 font-sans",children:t.name}),i.jsxs("div",{className:"flex items-center gap-2 mt-0.5 text-xs text-text-3 font-sans",children:[i.jsx("span",{children:t.author||"Community"}),(t.source==="claude-official"||t.verified)&&i.jsx(tS,{type:t.source,size:13})]})]})]}),i.jsx("p",{className:"mt-3 text-sm text-text-2 font-sans leading-relaxed",children:t.description}),((j=t.tags)==null?void 0:j.length)>0&&i.jsx("div",{className:"flex flex-wrap gap-1.5 mt-3",children:t.tags.map(P=>i.jsx("span",{className:"text-2xs text-text-3 font-sans px-2 py-0.5 rounded bg-surface-4",children:P},P))}),i.jsx("div",{className:"h-px bg-border-subtle my-5"}),g?i.jsxs("div",{className:"space-y-2",children:[i.jsx("div",{className:"h-3 w-48 bg-surface-4 rounded animate-pulse"}),i.jsx("div",{className:"h-3 w-full bg-surface-4 rounded animate-pulse"}),i.jsx("div",{className:"h-3 w-3/4 bg-surface-4 rounded animate-pulse"})]}):l?i.jsxs("div",{className:"text-sm text-text-2 font-sans leading-relaxed",children:[i.jsx("h2",{className:"text-sm font-semibold text-text-0 mb-2",children:"About"}),i.jsx("pre",{className:"whitespace-pre-wrap font-sans",children:l})]}):u?i.jsxs("div",{className:"bg-warning/5 border border-warning/15 rounded-lg px-4 py-3",children:[i.jsx("p",{className:"text-sm text-text-1 font-sans font-medium",children:"Paid skill — purchase to view content"}),i.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Sign in and purchase this skill to access its full instructions."})]}):i.jsx("p",{className:"text-xs text-text-4 font-sans",children:"Content loading failed — check your connection."})]}),i.jsx("div",{className:"w-[240px] flex-shrink-0",children:i.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-lg p-4 sticky top-4",children:[i.jsx(eS,{price:t.price||0,size:"md"}),u&&!p?i.jsxs("button",{onClick:Q,className:"w-full mt-3 py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 flex items-center justify-center gap-2 border bg-warning/15 text-warning border-warning/20 hover:bg-warning/25",children:["Buy $",(t.price||0).toFixed(2)]}):i.jsx("button",{onClick:v,disabled:O||p,className:`w-full mt-3 py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 disabled:opacity-60 disabled:cursor-not-allowed flex items-center justify-center gap-2 border ${p?"bg-success/15 text-success border-success/20":"bg-accent/15 text-accent border-accent/20 hover:bg-accent/25"}`,children:O?"Installing...":p?"✓ Installed":"Install"}),i.jsx("div",{className:"mt-4 flex flex-col gap-2.5",children:[["Downloads",i.jsx("span",{className:"font-mono text-text-0",children:Je(t.downloads||0)},"d")],["Rating",i.jsx(Ky,{rating:t.rating||0,count:t.rating_count||t.ratingCount,size:"sm"},"r")],["Version",i.jsx("span",{className:"font-mono text-text-0",children:t.version||"1.0.0"},"v")],["Category",i.jsx(Jy,{label:t.category||"general",variant:t.category||"draft"},"c")],["Source",i.jsx("span",{className:"text-text-0",children:t.source==="claude-official"?"Anthropic":"Community"},"s")]].map(([P,N])=>i.jsxs("div",{className:"flex justify-between items-center text-xs font-sans",children:[i.jsx("span",{className:"text-text-3",children:P}),N]},P))})]})})]})]})})}function pX(){const[t,n]=y.useState([]),[s,l]=y.useState(!0),[o,u]=y.useState(""),[d,O]=y.useState(""),[m,p]=y.useState("popular"),[x,g]=y.useState(null);return y.useEffect(()=>{l(!0);const b=new URLSearchParams;o&&b.set("search",o),d&&b.set("category",d),m&&b.set("sort",m),ee.get(`/skills/registry?${b}`).then(v=>n(rX(v.skills||v.items||(Array.isArray(v)?v:[])))).catch(()=>n([])).finally(()=>l(!1))},[o,d,m]),x?i.jsx(mX,{skill:x,onBack:()=>g(null)}):i.jsx(es,{className:"h-full",children:i.jsxs("div",{className:"px-5 py-4",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-72",children:i.jsx(sS,{value:o,onChange:u})}),i.jsx(hX,{selected:d,onSelect:O}),i.jsx("div",{className:"flex-1"}),i.jsxs("div",{className:"relative flex-shrink-0",children:[i.jsxs("select",{value:m,onChange:b=>p(b.target.value),className:"appearance-none font-sans cursor-pointer pr-7 py-2 pl-3 text-xs bg-surface-0 border border-border-subtle rounded text-text-1 focus:outline-none",children:[i.jsx("option",{value:"popular",children:"Popular"}),i.jsx("option",{value:"rating",children:"Top Rated"}),i.jsx("option",{value:"newest",children:"Newest"}),i.jsx("option",{value:"name",children:"A-Z"})]}),i.jsx(Hn,{size:12,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-4 pointer-events-none"})]}),i.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:t.length})]}),i.jsx("div",{className:"mt-4 grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))"},children:s?Array.from({length:8}).map((b,v)=>i.jsx(nS,{},v)):t.map(b=>i.jsx(cX,{skill:b,onClick:g},b.id))}),!s&&t.length===0&&i.jsx("div",{className:"text-center py-16 text-text-4 font-sans text-sm",children:"No skills found."})]})})}function xX(){const[t,n]=y.useState([]),[s,l]=y.useState(!0),[o,u]=y.useState(""),d=Lc();return y.useEffect(()=>{l(!0),ee.get(`/integrations/registry?search=${encodeURIComponent(o)}`).then(O=>n(O.integrations||O.items||(Array.isArray(O)?O:[]))).catch(()=>n([])).finally(()=>l(!1))},[o]),i.jsx(es,{className:"h-full",children:i.jsxs("div",{className:"px-5 py-4",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-72",children:i.jsx(sS,{value:o,onChange:u,placeholder:"Search integrations..."})}),i.jsx("div",{className:"flex-1"}),i.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:t.length})]}),i.jsx("div",{className:"mt-4 grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))"},children:s?Array.from({length:6}).map((O,m)=>i.jsx(nS,{},m)):t.map(O=>i.jsx(OX,{item:O,onClick:()=>d.info(`${O.name} — install via CLI: groove integrations install ${O.id}`)},O.id))}),!s&&t.length===0&&i.jsx("div",{className:"text-center py-16 text-text-4 font-sans text-sm",children:"No integrations found."})]})})}function gX(){const t=G(g=>g.marketplaceAuthenticated),n=G(g=>g.marketplaceLogin),[s,l]=y.useState([]),[o,u]=y.useState([]),[d,O]=y.useState(!0),m=Lc(),p=y.useRef(null);y.useEffect(()=>{O(!0),Promise.all([t?ee.get("/auth/purchases").then(g=>g.purchases||[]).catch(()=>[]):Promise.resolve([]),ee.get("/skills/installed").then(g=>Array.isArray(g)?g:g.skills||[]).catch(()=>[])]).then(([g,b])=>{l(g),u(b)}).finally(()=>O(!1))},[t]);async function x(g){var v;const b=(v=g.target.files)==null?void 0:v[0];if(b){try{const Q=await b.text(),k=b.name.replace(/\.md$/i,"");await ee.post("/skills/import",{name:k,content:Q}),m.success(`Imported "${k}"`);const T=await ee.get("/skills/installed");u(Array.isArray(T)?T:T.skills||[])}catch(Q){m.error("Import failed",Q.message)}g.target.value=""}}return d?i.jsx("div",{className:"p-5 space-y-3",children:[...Array(4)].map((g,b)=>i.jsx(ra,{className:"h-14 rounded-md"},b))}):i.jsx(es,{className:"h-full",children:i.jsxs("div",{className:"px-5 py-4 space-y-6",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("input",{ref:p,type:"file",accept:".md",onChange:x,className:"hidden"}),i.jsxs(je,{variant:"secondary",size:"md",onClick:()=>{var g;return(g=p.current)==null?void 0:g.click()},className:"gap-1.5",children:[i.jsx(QP,{size:13}),"Import .md Skill"]}),i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"Drop a markdown skill file to install locally"})]}),t&&s.length>0&&i.jsxs("div",{children:[i.jsxs("h3",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider mb-3 flex items-center gap-1.5",children:[i.jsx(bO,{size:12}),"Purchases (",s.length,")"]}),i.jsx("div",{className:"space-y-1.5",children:s.map(g=>{var b,v;return i.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-1 border border-border-subtle",children:[i.jsx("div",{className:"w-8 h-8 rounded-md bg-accent/10 flex items-center justify-center text-sm flex-shrink-0",children:g.skill_icon||((v=(b=g.skill_name)==null?void 0:b[0])==null?void 0:v.toUpperCase())||"?"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:g.skill_name||g.skill_id}),i.jsxs("div",{className:"text-2xs text-text-4 font-sans",children:["$",(g.amount||0).toFixed(2)," · ",vt(g.created_at)]})]}),i.jsx(Le,{variant:"success",className:"text-2xs flex-shrink-0",children:"Owned"})]},g.id||g.skill_id)})})]}),t&&s.length===0&&i.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[i.jsx(bO,{size:20,className:"mx-auto text-text-4 mb-2"}),i.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No purchases yet"})]}),!t&&i.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[i.jsx(bO,{size:20,className:"mx-auto text-text-4 mb-2"}),i.jsx("p",{className:"text-xs text-text-2 font-sans mb-3",children:"Sign in to see your purchases"}),i.jsxs(je,{variant:"primary",size:"sm",onClick:n,className:"gap-1.5 mx-auto",children:[i.jsx(Bf,{size:12})," Sign in"]})]}),i.jsxs("div",{children:[i.jsxs("h3",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider mb-3 flex items-center gap-1.5",children:[i.jsx(Eb,{size:12}),"Installed (",o.length,")"]}),o.length===0?i.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[i.jsx(Lf,{size:20,className:"mx-auto text-text-4 mb-2"}),i.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No skills installed — browse the Skills tab or import a .md file"})]}):i.jsx("div",{className:"space-y-1.5",children:o.map(g=>{var b,v;return i.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-1 border border-border-subtle group",children:[i.jsx("div",{className:"w-8 h-8 rounded-md bg-accent/10 flex items-center justify-center text-sm flex-shrink-0",children:g.icon||((v=(b=g.name)==null?void 0:b[0])==null?void 0:v.toUpperCase())||"?"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:g.name||g.id}),i.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:g.description||g.category||"local skill"})]}),i.jsx(Le,{variant:"accent",className:"text-2xs flex-shrink-0",children:"Installed"})]},g.id)})})]})]})})}function bX(){const t=G(o=>o.marketplaceAuthenticated),n=G(o=>o.marketplaceUser),s=G(o=>o.marketplaceLogin),l=G(o=>o.marketplaceLogout);return t?i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded bg-surface-3 border border-border-subtle",children:[i.jsx("div",{className:"w-4 h-4 rounded-full bg-accent/20 flex items-center justify-center",children:i.jsx(Wb,{size:9,className:"text-accent"})}),i.jsx("span",{className:"text-xs text-text-0 font-sans font-medium max-w-[120px] truncate",children:(n==null?void 0:n.displayName)||(n==null?void 0:n.id)||"Account"})]}),i.jsx("button",{onClick:l,className:"flex items-center gap-1 px-2 py-1.5 rounded text-xs text-text-3 hover:text-text-0 hover:bg-surface-3 font-sans cursor-pointer transition-colors",children:i.jsx(_b,{size:11})})]}):i.jsxs("button",{onClick:s,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold font-sans text-text-0 bg-accent/15 border border-accent/25 rounded hover:bg-accent/25 cursor-pointer transition-colors",children:[i.jsx(Bf,{size:12}),"Sign in"]})}function vX(){const[t,n]=y.useState("skills"),s=[{id:"skills",label:"Skills",icon:Lb},{id:"integrations",label:"Integrations",icon:qb},{id:"library",label:"My Library",icon:Eb}];return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsx("div",{className:"flex-shrink-0 bg-surface-1 border-b border-border-subtle",children:i.jsxs("div",{className:"flex items-center px-5 h-11",children:[i.jsx("div",{className:"flex items-center",children:s.map(l=>{const o=l.icon;return i.jsxs("button",{onClick:()=>n(l.id),className:`flex items-center gap-1.5 px-3 py-2.5 text-xs font-semibold font-sans cursor-pointer select-none border-b-2 -mb-px transition-colors ${t===l.id?"border-accent text-text-0":"border-transparent text-text-3 hover:text-text-1"}`,children:[i.jsx(o,{size:12}),l.label]},l.id)})}),i.jsx("div",{className:"flex-1"}),i.jsx(bX,{})]})}),i.jsxs("div",{className:"flex-1 min-h-0",children:[t==="skills"&&i.jsx(pX,{}),t==="integrations"&&i.jsx(xX,{}),t==="library"&&i.jsx(gX,{})]})]})}function yX(){const t=G(u=>u.teams),n=G(u=>u.agents),s=G(u=>u.activeTeamId),l=G(u=>u.deleteTeam),o=G(u=>u.addToast);return t.length===0?i.jsx("div",{className:"flex-1 flex items-center justify-center",children:i.jsxs("div",{className:"text-center space-y-2",children:[i.jsx(fi,{size:28,className:"mx-auto text-text-4"}),i.jsx("p",{className:"text-xs font-sans text-text-3",children:"No teams yet"}),i.jsx("p",{className:"text-2xs font-sans text-text-4",children:"Teams are created when you spawn agents or launch a planner"})]})}):i.jsx("div",{className:"flex-1 overflow-y-auto",children:i.jsx("div",{className:"p-4 space-y-3",children:t.map(u=>{const d=n.filter(v=>v.teamId===u.id),O=d.filter(v=>v.status==="running"||v.status==="starting"),m=d.filter(v=>v.status==="completed"),p=d.filter(v=>v.status==="crashed"),x=d.reduce((v,Q)=>v+(Q.tokensUsed||0),0),g=d.reduce((v,Q)=>v+(Q.costUsd||0),0),b=u.id===s;return i.jsxs("div",{className:le("rounded-md border bg-surface-1 overflow-hidden transition-colors",b?"border-accent/30":"border-border-subtle"),children:[i.jsxs("div",{className:"px-4 py-3 flex items-center gap-3",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-sm font-semibold text-text-0 font-sans",children:u.name}),b&&i.jsx(Le,{variant:"accent",className:"text-2xs",children:"Active"})]}),u.workingDir&&i.jsxs("div",{className:"flex items-center gap-1 mt-0.5",children:[i.jsx(zb,{size:10,className:"text-text-4"}),i.jsx("span",{className:"text-2xs font-mono text-text-3 truncate",children:u.workingDir})]})]}),i.jsx("button",{onClick:()=>{if(d.some(v=>v.status==="running")){o("error","Stop running agents first");return}l(u.id)},className:"p-1.5 text-text-4 hover:text-danger rounded transition-colors cursor-pointer",title:"Delete team",children:i.jsx(Oi,{size:13})})]}),i.jsxs("div",{className:"px-4 py-2.5 border-t border-border-subtle bg-surface-0 flex items-center gap-4",children:[i.jsx(xl,{label:"Agents",value:d.length}),i.jsx(xl,{label:"Running",value:O.length,color:O.length>0?"text-success":void 0}),i.jsx(xl,{label:"Done",value:m.length}),i.jsx(xl,{label:"Crashed",value:p.length,color:p.length>0?"text-danger":void 0}),i.jsx("div",{className:"flex-1"}),i.jsx(xl,{label:"Tokens",value:Je(x)}),g>0&&i.jsx(xl,{label:"Cost",value:Ec(g)})]}),d.length>0&&i.jsx("div",{className:"border-t border-border-subtle",children:d.map(v=>i.jsxs("div",{className:"flex items-center gap-2 px-4 py-1.5 border-b border-border-subtle last:border-b-0",children:[i.jsx(ws,{status:v.status,size:"sm"}),i.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:v.name}),i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase",children:v.role}),i.jsx("div",{className:"flex-1"}),i.jsx("span",{className:"text-2xs font-mono text-text-2 tabular-nums",children:Je(v.tokensUsed||0)})]},v.id))})]},u.id)})})})}function xl({label:t,value:n,color:s}){return i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:le("text-xs font-mono tabular-nums",s||"text-text-1"),children:n}),i.jsx("div",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider",children:t})]})}function SX(){const t=G(l=>l.pendingApprovals),n=G(l=>l.approveRequest),s=G(l=>l.rejectRequest);return t.length===0?null:i.jsxs("div",{className:"px-4 pt-4 space-y-2",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[i.jsx(Ac,{size:12,className:"text-warning"}),i.jsxs("span",{className:"text-2xs font-mono text-warning uppercase tracking-wider",children:["Pending (",t.length,")"]})]}),t.map(l=>{var o,u,d;return i.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-md bg-warning/5 border border-warning/20",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"text-xs text-text-0 font-sans font-medium truncate",children:[l.agentName,": ",((o=l.action)==null?void 0:o.description)||((u=l.action)==null?void 0:u.type)||"action"]}),((d=l.action)==null?void 0:d.filePath)&&i.jsx("div",{className:"text-2xs font-mono text-text-3 truncate mt-0.5",children:l.action.filePath}),i.jsx("div",{className:"text-2xs text-text-4 font-mono mt-0.5",children:vt(l.requestedAt)})]}),i.jsxs("div",{className:"flex gap-1.5 flex-shrink-0",children:[i.jsxs(je,{variant:"primary",size:"sm",onClick:()=>n(l.id),className:"h-7 px-2.5 gap-1 text-2xs",children:[i.jsx(Gb,{size:10})," Approve"]}),i.jsxs(je,{variant:"danger",size:"sm",onClick:()=>s(l.id),className:"h-7 px-2.5 gap-1 text-2xs",children:[i.jsx(OP,{size:10})," Reject"]})]})]},l.id)})]})}function QX(){const t=G(m=>m.resolvedApprovals),[n,s]=y.useState([]),[l,o]=y.useState(!0);y.useEffect(()=>{const m=setInterval(u,4e3);return u(),()=>clearInterval(m)},[]);async function u(){try{const m=await ee.get("/pm/history");s(m.history||m||[])}catch{}o(!1)}const d=new Set,O=[...t,...n].filter(m=>{const p=m.id||`${m.agentName}-${m.timestamp}`;return d.has(p)?!1:(d.add(p),!0)});return i.jsxs("div",{className:"flex-1 overflow-y-auto",children:[i.jsx(SX,{}),i.jsxs("div",{className:"p-4 space-y-1.5",children:[l&&O.length===0&&i.jsx("div",{className:"text-center py-12 text-text-4 font-mono text-xs",children:"Loading..."}),!l&&O.length===0&&i.jsxs("div",{className:"text-center py-12",children:[i.jsx(Hr,{size:24,className:"mx-auto mb-2 text-text-4"}),i.jsx("p",{className:"text-xs font-sans text-text-3",children:"No approval history"}),i.jsx("p",{className:"text-2xs text-text-4 font-sans mt-1",children:"Approvals appear when agents use Auto permission mode"})]}),O.map((m,p)=>{var g;const x=m.status==="approved"||m.verdict==="approved";return i.jsxs("div",{className:"flex items-center gap-2.5 px-3 py-2 rounded-md bg-surface-0 border border-border-subtle",children:[x?i.jsx(Hr,{size:12,className:"text-success flex-shrink-0"}):i.jsx(Tb,{size:12,className:"text-danger flex-shrink-0"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"text-xs text-text-1 font-sans truncate",children:[i.jsx("span",{className:"font-medium text-text-0",children:m.agentName}),i.jsx("span",{className:"text-text-3 mx-1",children:"·"}),i.jsx("span",{children:((g=m.action)==null?void 0:g.description)||m.action||"action"})]}),m.reason&&i.jsx("div",{className:"text-2xs text-text-3 font-sans truncate mt-0.5",children:m.reason})]}),i.jsx("span",{className:"text-2xs font-mono text-text-4 flex-shrink-0",children:vt(m.resolvedAt||m.timestamp)})]},m.id||p)})]})]})}function jX(){const[t,n]=y.useState([]),[s,l]=y.useState(!0),o=Lc();y.useEffect(()=>{const O=setInterval(u,1e4);return u(),()=>clearInterval(O)},[]);async function u(){try{const O=await ee.get("/schedules");n(O.schedules||O||[])}catch{}l(!1)}async function d(O,m){try{await ee.post(`/schedules/${O}/${m?"disable":"enable"}`),u()}catch(p){o.error("Failed to toggle schedule",p.message)}}return i.jsx("div",{className:"flex-1 overflow-y-auto",children:i.jsxs("div",{className:"p-4 space-y-2",children:[s&&t.length===0&&i.jsx("div",{className:"text-center py-12 text-text-4 font-mono text-xs",children:"Loading..."}),!s&&t.length===0&&i.jsxs("div",{className:"text-center py-12",children:[i.jsx(uc,{size:24,className:"mx-auto mb-2 text-text-4"}),i.jsx("p",{className:"text-xs font-sans text-text-3",children:"No schedules configured"}),i.jsx("p",{className:"text-2xs text-text-4 font-sans mt-1",children:"Use the CLI to create agent schedules"})]}),t.map(O=>i.jsxs("div",{className:"rounded-md border border-border-subtle bg-surface-0 overflow-hidden",children:[i.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans",children:O.name}),i.jsx(Le,{variant:O.enabled?"success":"default",className:"text-2xs",children:O.enabled?"Active":"Paused"})]}),i.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[i.jsx("span",{className:"text-2xs font-mono text-text-2",children:O.cron}),i.jsx("span",{className:"text-2xs text-text-4",children:"·"}),i.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase",children:O.role}),O.teamId&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-2xs text-text-4",children:"·"}),i.jsx("span",{className:"text-2xs font-sans text-text-3",children:O.teamName||O.teamId})]})]}),O.prompt&&i.jsx("div",{className:"text-2xs font-sans text-text-4 mt-1 truncate",children:O.prompt})]}),i.jsx(je,{variant:"secondary",size:"sm",onClick:()=>d(O.id,O.enabled),className:"h-7 px-2.5 gap-1 text-2xs",children:O.enabled?i.jsxs(i.Fragment,{children:[i.jsx(VT,{size:10})," Pause"]}):i.jsxs(i.Fragment,{children:[i.jsx(WT,{size:10})," Enable"]})})]}),O.lastRunAt&&i.jsxs("div",{className:"px-4 py-1.5 border-t border-border-subtle bg-surface-1 text-2xs font-mono text-text-4",children:["Last run: ",vt(O.lastRunAt),O.nextRunAt&&i.jsxs("span",{className:"ml-3",children:["Next: ",vt(O.nextRunAt)]})]})]},O.id))]})})}function wX(){return i.jsxs(Iy,{defaultValue:"dashboard",className:"flex flex-col h-full",children:[i.jsxs("div",{className:"px-4 pt-3 bg-surface-1 border-b border-border",children:[i.jsx("div",{className:"flex items-center gap-4 mb-0",children:i.jsx("h2",{className:"text-xs font-semibold text-text-0 font-sans tracking-wide uppercase",children:"Management"})}),i.jsxs(Fy,{className:"border-b-0",children:[i.jsxs(Tl,{value:"dashboard",className:"inline-flex items-center gap-1.5",children:[i.jsx(yT,{size:12}),"Teams"]}),i.jsxs(Tl,{value:"approvals",className:"inline-flex items-center gap-1.5",children:[i.jsx(QT,{size:12}),"Approvals"]}),i.jsxs(Tl,{value:"schedules",className:"inline-flex items-center gap-1.5",children:[i.jsx(uc,{size:12}),"Schedules"]})]})]}),i.jsx(Pl,{value:"dashboard",className:"flex-1 min-h-0",children:i.jsx(yX,{})}),i.jsx(Pl,{value:"approvals",className:"flex-1 min-h-0",children:i.jsx(QX,{})}),i.jsx(Pl,{value:"schedules",className:"flex-1 min-h-0",children:i.jsx(jX,{})})]})}const kX={code:"Code",general:"General"},$X={light:"text-success",medium:"text-accent",heavy:"text-warning"};function TX(t){return t<1?`${Math.round(t*1024)} MB`:`${t} GB`}function lS({hardware:t}){if(!t)return null;const{totalRamGb:n,gpu:s,isAppleSilicon:l}=t;return i.jsxs("div",{className:"flex items-center gap-3 bg-surface-0 rounded-lg border border-border-subtle px-3 py-2.5",children:[i.jsx(Hf,{size:14,className:"text-text-3 flex-shrink-0"}),i.jsx("div",{className:"flex-1 min-w-0",children:i.jsxs("div",{className:"flex items-center gap-2 text-xs font-sans",children:[i.jsxs("span",{className:"text-text-0 font-semibold",children:[n," GB RAM"]}),s&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-text-4",children:"·"}),i.jsx("span",{className:"text-text-2",children:s.name})]}),l&&i.jsx(Le,{variant:"accent",className:"text-2xs",children:"Unified Memory"})]})})]})}function PX({onRecheck:t}){const[n,s]=y.useState(null),[l,o]=y.useState(!1),[u,d]=y.useState(!1),[O,m]=y.useState(!1),p=G(A=>A.addToast);y.useEffect(()=>{ee.post("/providers/ollama/check").then(s).catch(()=>{})},[]);async function x(){o(!0);try{const A=await ee.post("/providers/ollama/check");s(A),A.installed&&A.serverRunning?(p("success","Ollama is ready!"),t()):A.installed?p("info","Ollama installed — server needs to start"):p("info","Ollama not found — install and try again")}catch{}o(!1)}async function g(){d(!0);try{if((await ee.post("/providers/ollama/serve")).ok){p("success","Ollama server started!");let U=!1;for(let C=0;C<5;C++){await new Promise($=>setTimeout($,2e3));const X=await ee.post("/providers/ollama/check");if(s(X),X.serverRunning){U=!0;break}}U&&t()}}catch(A){p("error","Could not start server",A.message)}d(!1)}function b(A){navigator.clipboard.writeText(A),m(!0),setTimeout(()=>m(!1),2e3)}if(!n)return i.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Loading..."});const{hardware:v,install:Q,requirements:k,installed:T,serverRunning:j}=n,P=v.totalRamGb>=k.minRAM,N=v.recommended;return i.jsxs("div",{className:"space-y-3 p-3",children:[i.jsx(lS,{hardware:v}),P?i.jsxs("div",{className:"flex items-start gap-2 bg-success/8 border border-success/20 rounded-lg px-3 py-2.5",children:[i.jsx(ia,{size:14,className:"text-success flex-shrink-0 mt-0.5"}),i.jsxs("div",{className:"text-xs font-sans",children:[i.jsx("span",{className:"text-success font-semibold",children:"Your system is ready."}),i.jsx("span",{className:"text-text-2 ml-1",children:N.code?`Recommended: ${N.code}`:`${v.totalRamGb} GB RAM available`})]})]}):i.jsxs("div",{className:"flex items-start gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[i.jsx(on,{size:14,className:"text-warning flex-shrink-0 mt-0.5"}),i.jsxs("div",{className:"text-xs font-sans text-text-2",children:[i.jsxs("span",{className:"text-warning font-semibold",children:[v.totalRamGb," GB RAM detected."]})," ","Minimum ",k.minRAM," GB needed. Smallest models may still work."]})]}),T&&!j&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{className:"flex items-start gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[i.jsx(on,{size:14,className:"text-warning flex-shrink-0 mt-0.5"}),i.jsxs("div",{className:"text-xs font-sans text-text-2",children:[i.jsx("span",{className:"text-warning font-semibold",children:"Ollama installed but server not running."})," ","The server needs to be running to pull and use models."]})]}),i.jsxs(je,{variant:"primary",size:"md",onClick:g,disabled:u,className:"w-full gap-1.5",children:[i.jsx(Pa,{size:12}),u?"Starting...":"Start Ollama Server"]})]}),!T&&i.jsxs("div",{className:"space-y-1.5",children:[i.jsx("p",{className:"text-xs font-semibold text-text-1 font-sans",children:"Install Ollama"}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("code",{className:"flex-1 bg-surface-0 border border-border-subtle rounded-md px-3 py-2 text-xs font-mono text-text-1 truncate",children:Q.command}),i.jsxs(je,{variant:"secondary",size:"sm",onClick:()=>b(Q.command),className:"h-8 px-2.5 gap-1 flex-shrink-0",children:[O?i.jsx(ia,{size:12}):i.jsx(Of,{size:12}),O?"Copied":"Copy"]})]}),Q.alt&&i.jsx("p",{className:"text-2xs text-text-4 font-sans",children:Q.alt})]}),i.jsxs(je,{variant:"secondary",size:"md",onClick:x,disabled:l,className:"w-full gap-1.5",children:[i.jsx(Jn,{size:12,className:l?"animate-spin":""}),l?"Checking...":T?"Check again":"I installed it — check again"]})]})}function NX({model:t,isInstalled:n,isRecommended:s,canRun:l,onPull:o,onDelete:u,pulling:d}){const O=d===t.id;return i.jsxs("div",{className:le("flex items-center gap-2 px-3 py-2 border-t border-border-subtle transition-colors",!l&&"opacity-40"),children:[n?i.jsx(ia,{size:12,className:"text-success flex-shrink-0"}):i.jsx("div",{className:"w-3"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"text-xs font-mono text-text-1 truncate",children:t.name}),s&&i.jsx(Db,{size:10,className:"text-warning flex-shrink-0"})]}),i.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[i.jsx("span",{className:le("text-2xs font-semibold font-sans",$X[t.tier]),children:t.tier}),i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:TX(t.sizeGb)}),i.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:["· ",t.ramGb," GB RAM"]})]})]}),n?i.jsx("button",{onClick:()=>u(t.id),className:"p-1.5 text-text-4 hover:text-danger rounded transition-colors cursor-pointer",title:"Remove model",children:i.jsx(Oi,{size:12})}):l?i.jsx(je,{variant:"secondary",size:"sm",onClick:()=>o(t.id),disabled:!!d,className:"h-7 px-2 text-2xs gap-1",children:O?i.jsxs(i.Fragment,{children:[i.jsx(Jn,{size:10,className:"animate-spin"})," Pulling..."]}):i.jsxs(i.Fragment,{children:[i.jsx(Lf,{size:10})," Pull"]})}):i.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:["Needs ",t.ramGb," GB"]})]})}function zX({onStopped:t}){const[n,s]=y.useState(null),l=G(d=>d.addToast);async function o(){s("stopping");try{(await ee.post("/providers/ollama/stop")).ok?(l("info","Ollama server stopped"),t&&t()):l("error","Could not stop server")}catch(d){l("error","Stop failed",d.message)}s(null)}async function u(){s("restarting");try{(await ee.post("/providers/ollama/restart")).ok?l("success","Ollama server restarted"):l("error","Restart failed")}catch(d){l("error","Restart failed",d.message)}s(null)}return i.jsxs("div",{className:"flex items-center gap-2 bg-success/8 border border-success/20 rounded-lg px-3 py-2",children:[i.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[i.jsx("span",{className:"absolute inset-0 rounded-full bg-success"}),i.jsx("span",{className:"absolute inset-[-2px] rounded-full bg-success opacity-20 animate-pulse"})]}),i.jsx("span",{className:"text-xs font-sans text-success font-semibold",children:"Server Running"}),i.jsx("span",{className:"text-2xs font-mono text-text-4",children:":11434"}),i.jsx("div",{className:"flex-1"}),i.jsxs("button",{onClick:u,disabled:!!n,className:"flex items-center gap-1 text-2xs font-sans text-text-3 hover:text-accent cursor-pointer transition-colors disabled:opacity-40",children:[i.jsx(Jn,{size:10,className:n==="restarting"?"animate-spin":""}),n==="restarting"?"Restarting...":"Restart"]}),i.jsxs("button",{onClick:o,disabled:!!n,className:"flex items-center gap-1 text-2xs font-sans text-text-3 hover:text-danger cursor-pointer transition-colors disabled:opacity-40",children:[i.jsx(on,{size:10}),n==="stopping"?"Stopping...":"Stop"]})]})}function RX({onModelChange:t}){var $,W;const[n,s]=y.useState(null),[l,o]=y.useState(null),[u,d]=y.useState("code"),[O,m]=y.useState(!1),[p,x]=y.useState(!1),g=G(E=>E.addToast),b=y.useRef(!1);function v(){ee.get("/providers/ollama/models").then(E=>{var ne;s(E),!b.current&&((ne=E.installed)==null?void 0:ne.length)===0&&(b.current=!0,setTimeout(v,2e3))}).catch(()=>{})}y.useEffect(()=>{v()},[]);async function Q(E){o(E);try{await ee.post("/providers/ollama/pull",{model:E}),g("success",`Pulled ${E}`),v(),t&&t()}catch(ne){g("error",`Pull failed: ${ne.message}`)}o(null)}async function k(E){try{await ee.delete(`/providers/ollama/models/${encodeURIComponent(E)}`),g("info",`Removed ${E}`),v(),t&&t()}catch(ne){g("error",`Delete failed: ${ne.message}`)}}if(!n)return i.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Loading..."});const{installed:T,catalog:j,hardware:P}=n,N=new Set(T.map(E=>E.id)),A=P.totalRamGb,U=[($=P.recommended)==null?void 0:$.code,(W=P.recommended)==null?void 0:W.general].filter(Boolean),C=j.filter(E=>E.category===u),X=O?C:C.filter(E=>E.ramGb<=A);return p?i.jsxs("div",{className:"space-y-3 p-3",children:[i.jsxs("div",{className:"flex items-center gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[i.jsx(on,{size:14,className:"text-warning flex-shrink-0"}),i.jsxs("span",{className:"text-xs font-sans text-text-2",children:[i.jsx("span",{className:"text-warning font-semibold",children:"Ollama server stopped."})," ","Start it again to pull and use models."]})]}),i.jsxs(je,{variant:"primary",size:"md",onClick:async()=>{try{(await ee.post("/providers/ollama/serve")).ok&&(g("success","Ollama server started!"),x(!1),b.current=!1,setTimeout(v,2e3))}catch(E){g("error","Could not start server",E.message)}},className:"w-full gap-1.5",children:[i.jsx(Pa,{size:12}),"Start Ollama Server"]})]}):i.jsxs("div",{className:"space-y-2 p-3",children:[i.jsx(zX,{onStopped:()=>x(!0)}),i.jsx(lS,{hardware:P}),T.length>0&&i.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-sans text-text-2",children:[i.jsx(Cb,{size:12,className:"text-text-3"}),i.jsx("span",{className:"font-semibold",children:T.length})," model",T.length!==1?"s":""," installed"]}),i.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:Object.entries(kX).map(([E,ne])=>i.jsx("button",{onClick:()=>d(E),className:le("flex-1 px-3 py-1.5 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",u===E?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:ne},E))}),i.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-0 overflow-hidden",children:[X.map(E=>i.jsx(NX,{model:E,isInstalled:N.has(E.id),isRecommended:U.includes(E.id),canRun:E.ramGb<=A,onPull:Q,onDelete:k,pulling:l},E.id)),X.length===0&&i.jsxs("div",{className:"px-3 py-4 text-center text-xs text-text-4 font-sans",children:["No ",u," models available for your hardware"]})]}),!O&&C.length>X.length&&i.jsxs("button",{onClick:()=>m(!0),className:"flex items-center gap-1 text-2xs text-text-3 hover:text-accent font-sans cursor-pointer transition-colors",children:[i.jsx(Hn,{size:10}),"Show ",C.length-X.length," more (exceed your RAM)"]})]})}function rS({isInstalled:t,onModelChange:n}){const[s,l]=y.useState(!1),[o,u]=y.useState(!1);return y.useEffect(()=>{t?ee.post("/providers/ollama/check").then(d=>{l(d.installed&&d.serverRunning),u(!0)}).catch(()=>u(!0)):u(!0)},[t]),o?s?i.jsx(RX,{onModelChange:n}):i.jsx(PX,{onRecheck:()=>{l(!0),n&&n()}}):i.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Checking Ollama..."})}var LO="focusScope.autoFocusOnMount",DO="focusScope.autoFocusOnUnmount",l0={bubbles:!1,cancelable:!0},CX="FocusScope",iS=y.forwardRef((t,n)=>{const{loop:s=!1,trapped:l=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...d}=t,[O,m]=y.useState(null),p=zt(o),x=zt(u),g=y.useRef(null),b=it(n,k=>m(k)),v=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(l){let k=function(N){if(v.paused||!O)return;const A=N.target;O.contains(A)?g.current=A:Vn(g.current,{select:!0})},T=function(N){if(v.paused||!O)return;const A=N.relatedTarget;A!==null&&(O.contains(A)||Vn(g.current,{select:!0}))},j=function(N){if(document.activeElement===document.body)for(const U of N)U.removedNodes.length>0&&Vn(O)};document.addEventListener("focusin",k),document.addEventListener("focusout",T);const P=new MutationObserver(j);return O&&P.observe(O,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",T),P.disconnect()}}},[l,O,v.paused]),y.useEffect(()=>{if(O){i0.add(v);const k=document.activeElement;if(!O.contains(k)){const j=new CustomEvent(LO,l0);O.addEventListener(LO,p),O.dispatchEvent(j),j.defaultPrevented||(XX(qX(oS(O)),{select:!0}),document.activeElement===k&&Vn(O))}return()=>{O.removeEventListener(LO,p),setTimeout(()=>{const j=new CustomEvent(DO,l0);O.addEventListener(DO,x),O.dispatchEvent(j),j.defaultPrevented||Vn(k??document.body,{select:!0}),O.removeEventListener(DO,x),i0.remove(v)},0)}}},[O,p,x,v]);const Q=y.useCallback(k=>{if(!s&&!l||v.paused)return;const T=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,j=document.activeElement;if(T&&j){const P=k.currentTarget,[N,A]=_X(P);N&&A?!k.shiftKey&&j===A?(k.preventDefault(),s&&Vn(N,{select:!0})):k.shiftKey&&j===N&&(k.preventDefault(),s&&Vn(A,{select:!0})):j===P&&k.preventDefault()}},[s,l,v.paused]);return i.jsx(Be.div,{tabIndex:-1,...d,ref:b,onKeyDown:Q})});iS.displayName=CX;function XX(t,{select:n=!1}={}){const s=document.activeElement;for(const l of t)if(Vn(l,{select:n}),document.activeElement!==s)return}function _X(t){const n=oS(t),s=r0(n,t),l=r0(n.reverse(),t);return[s,l]}function oS(t){const n=[],s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const o=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||o?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)n.push(s.currentNode);return n}function r0(t,n){for(const s of t)if(!ZX(s,{upTo:n}))return s}function ZX(t,{upTo:n}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(n!==void 0&&t===n)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function AX(t){return t instanceof HTMLInputElement&&"select"in t}function Vn(t,{select:n=!1}={}){if(t&&t.focus){const s=document.activeElement;t.focus({preventScroll:!0}),t!==s&&AX(t)&&n&&t.select()}}var i0=EX();function EX(){let t=[];return{add(n){const s=t[0];n!==s&&(s==null||s.pause()),t=o0(t,n),t.unshift(n)},remove(n){var s;t=o0(t,n),(s=t[0])==null||s.resume()}}}function o0(t,n){const s=[...t],l=s.indexOf(n);return l!==-1&&s.splice(l,1),s}function qX(t){return t.filter(n=>n.tagName!=="A")}var WO=0;function MX(){y.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??c0()),document.body.insertAdjacentElement("beforeend",t[1]??c0()),WO++,()=>{WO===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),WO--}},[])}function c0(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var ja=function(){return ja=Object.assign||function(n){for(var s,l=1,o=arguments.length;l<o;l++){s=arguments[l];for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(n[u]=s[u])}return n},ja.apply(this,arguments)};function cS(t,n){var s={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&n.indexOf(l)<0&&(s[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(t);o<l.length;o++)n.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(t,l[o])&&(s[l[o]]=t[l[o]]);return s}function YX(t,n,s){if(s||arguments.length===2)for(var l=0,o=n.length,u;l<o;l++)(u||!(l in n))&&(u||(u=Array.prototype.slice.call(n,0,l)),u[l]=n[l]);return t.concat(u||Array.prototype.slice.call(n))}var tc="right-scroll-bar-position",ac="width-before-scroll-bar",VX="with-scroll-bars-hidden",UX="--removed-body-scroll-bar-size";function BO(t,n){return typeof t=="function"?t(n):t&&(t.current=n),t}function GX(t,n){var s=y.useState(function(){return{value:t,callback:n,facade:{get current(){return s.value},set current(l){var o=s.value;o!==l&&(s.value=l,s.callback(l,o))}}}})[0];return s.callback=n,s.facade}var LX=typeof window<"u"?y.useLayoutEffect:y.useEffect,u0=new WeakMap;function DX(t,n){var s=GX(null,function(l){return t.forEach(function(o){return BO(o,l)})});return LX(function(){var l=u0.get(s);if(l){var o=new Set(l),u=new Set(t),d=s.current;o.forEach(function(O){u.has(O)||BO(O,null)}),u.forEach(function(O){o.has(O)||BO(O,d)})}u0.set(s,t)},[t]),s}function WX(t){return t}function BX(t,n){n===void 0&&(n=WX);var s=[],l=!1,o={read:function(){if(l)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:t},useMedium:function(u){var d=n(u,l);return s.push(d),function(){s=s.filter(function(O){return O!==d})}},assignSyncMedium:function(u){for(l=!0;s.length;){var d=s;s=[],d.forEach(u)}s={push:function(O){return u(O)},filter:function(){return s}}},assignMedium:function(u){l=!0;var d=[];if(s.length){var O=s;s=[],O.forEach(u),d=s}var m=function(){var x=d;d=[],x.forEach(u)},p=function(){return Promise.resolve().then(m)};p(),s={push:function(x){d.push(x),p()},filter:function(x){return d=d.filter(x),s}}}};return o}function HX(t){t===void 0&&(t={});var n=BX(null);return n.options=ja({async:!0,ssr:!1},t),n}var uS=function(t){var n=t.sideCar,s=cS(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=n.read();if(!l)throw new Error("Sidecar medium not found");return y.createElement(l,ja({},s))};uS.isSideCarExport=!0;function IX(t,n){return t.useMedium(n),uS}var dS=HX(),HO=function(){},Dc=y.forwardRef(function(t,n){var s=y.useRef(null),l=y.useState({onScrollCapture:HO,onWheelCapture:HO,onTouchMoveCapture:HO}),o=l[0],u=l[1],d=t.forwardProps,O=t.children,m=t.className,p=t.removeScrollBar,x=t.enabled,g=t.shards,b=t.sideCar,v=t.noRelative,Q=t.noIsolation,k=t.inert,T=t.allowPinchZoom,j=t.as,P=j===void 0?"div":j,N=t.gapMode,A=cS(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),U=b,C=DX([s,n]),X=ja(ja({},A),o);return y.createElement(y.Fragment,null,x&&y.createElement(U,{sideCar:dS,removeScrollBar:p,shards:g,noRelative:v,noIsolation:Q,inert:k,setCallbacks:u,allowPinchZoom:!!T,lockRef:s,gapMode:N}),d?y.cloneElement(y.Children.only(O),ja(ja({},X),{ref:C})):y.createElement(P,ja({},X,{className:m,ref:C}),O))});Dc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Dc.classNames={fullWidth:ac,zeroRight:tc};var FX=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function KX(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var n=FX();return n&&t.setAttribute("nonce",n),t}function JX(t,n){t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n))}function e_(t){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(t)}var t_=function(){var t=0,n=null;return{add:function(s){t==0&&(n=KX())&&(JX(n,s),e_(n)),t++},remove:function(){t--,!t&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},a_=function(){var t=t_();return function(n,s){y.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&s])}},OS=function(){var t=a_(),n=function(s){var l=s.styles,o=s.dynamic;return t(l,o),null};return n},n_={left:0,top:0,right:0,gap:0},IO=function(t){return parseInt(t||"",10)||0},s_=function(t){var n=window.getComputedStyle(document.body),s=n[t==="padding"?"paddingLeft":"marginLeft"],l=n[t==="padding"?"paddingTop":"marginTop"],o=n[t==="padding"?"paddingRight":"marginRight"];return[IO(s),IO(l),IO(o)]},l_=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return n_;var n=s_(t),s=document.documentElement.clientWidth,l=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,l-s+n[2]-n[0])}},r_=OS(),Nl="data-scroll-locked",i_=function(t,n,s,l){var o=t.left,u=t.top,d=t.right,O=t.gap;return s===void 0&&(s="margin"),`
|
|
569
|
-
.`.concat(VX,` {
|
|
570
|
-
overflow: hidden `).concat(l,`;
|
|
571
|
-
padding-right: `).concat(O,"px ").concat(l,`;
|
|
572
|
-
}
|
|
573
|
-
body[`).concat(Nl,`] {
|
|
574
|
-
overflow: hidden `).concat(l,`;
|
|
575
|
-
overscroll-behavior: contain;
|
|
576
|
-
`).concat([n&&"position: relative ".concat(l,";"),s==="margin"&&`
|
|
577
|
-
padding-left: `.concat(o,`px;
|
|
578
|
-
padding-top: `).concat(u,`px;
|
|
579
|
-
padding-right: `).concat(d,`px;
|
|
580
|
-
margin-left:0;
|
|
581
|
-
margin-top:0;
|
|
582
|
-
margin-right: `).concat(O,"px ").concat(l,`;
|
|
583
|
-
`),s==="padding"&&"padding-right: ".concat(O,"px ").concat(l,";")].filter(Boolean).join(""),`
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
.`).concat(tc,` {
|
|
587
|
-
right: `).concat(O,"px ").concat(l,`;
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
.`).concat(ac,` {
|
|
591
|
-
margin-right: `).concat(O,"px ").concat(l,`;
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
.`).concat(tc," .").concat(tc,` {
|
|
595
|
-
right: 0 `).concat(l,`;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
.`).concat(ac," .").concat(ac,` {
|
|
599
|
-
margin-right: 0 `).concat(l,`;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
body[`).concat(Nl,`] {
|
|
603
|
-
`).concat(UX,": ").concat(O,`px;
|
|
604
|
-
}
|
|
605
|
-
`)},d0=function(){var t=parseInt(document.body.getAttribute(Nl)||"0",10);return isFinite(t)?t:0},o_=function(){y.useEffect(function(){return document.body.setAttribute(Nl,(d0()+1).toString()),function(){var t=d0()-1;t<=0?document.body.removeAttribute(Nl):document.body.setAttribute(Nl,t.toString())}},[])},c_=function(t){var n=t.noRelative,s=t.noImportant,l=t.gapMode,o=l===void 0?"margin":l;o_();var u=y.useMemo(function(){return l_(o)},[o]);return y.createElement(r_,{styles:i_(u,!n,o,s?"":"!important")})},wf=!1;if(typeof window<"u")try{var Uo=Object.defineProperty({},"passive",{get:function(){return wf=!0,!0}});window.addEventListener("test",Uo,Uo),window.removeEventListener("test",Uo,Uo)}catch{wf=!1}var gl=wf?{passive:!1}:!1,u_=function(t){return t.tagName==="TEXTAREA"},fS=function(t,n){if(!(t instanceof Element))return!1;var s=window.getComputedStyle(t);return s[n]!=="hidden"&&!(s.overflowY===s.overflowX&&!u_(t)&&s[n]==="visible")},d_=function(t){return fS(t,"overflowY")},O_=function(t){return fS(t,"overflowX")},O0=function(t,n){var s=n.ownerDocument,l=n;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var o=hS(t,l);if(o){var u=mS(t,l),d=u[1],O=u[2];if(d>O)return!0}l=l.parentNode}while(l&&l!==s.body);return!1},f_=function(t){var n=t.scrollTop,s=t.scrollHeight,l=t.clientHeight;return[n,s,l]},h_=function(t){var n=t.scrollLeft,s=t.scrollWidth,l=t.clientWidth;return[n,s,l]},hS=function(t,n){return t==="v"?d_(n):O_(n)},mS=function(t,n){return t==="v"?f_(n):h_(n)},m_=function(t,n){return t==="h"&&n==="rtl"?-1:1},p_=function(t,n,s,l,o){var u=m_(t,window.getComputedStyle(n).direction),d=u*l,O=s.target,m=n.contains(O),p=!1,x=d>0,g=0,b=0;do{if(!O)break;var v=mS(t,O),Q=v[0],k=v[1],T=v[2],j=k-T-u*Q;(Q||j)&&hS(t,O)&&(g+=j,b+=Q);var P=O.parentNode;O=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!m&&O!==document.body||m&&(n.contains(O)||n===O));return(x&&Math.abs(g)<1||!x&&Math.abs(b)<1)&&(p=!0),p},Go=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},f0=function(t){return[t.deltaX,t.deltaY]},h0=function(t){return t&&"current"in t?t.current:t},x_=function(t,n){return t[0]===n[0]&&t[1]===n[1]},g_=function(t){return`
|
|
606
|
-
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
607
|
-
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
608
|
-
`)},b_=0,bl=[];function v_(t){var n=y.useRef([]),s=y.useRef([0,0]),l=y.useRef(),o=y.useState(b_++)[0],u=y.useState(OS)[0],d=y.useRef(t);y.useEffect(function(){d.current=t},[t]),y.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var k=YX([t.lockRef.current],(t.shards||[]).map(h0),!0).filter(Boolean);return k.forEach(function(T){return T.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),k.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var O=y.useCallback(function(k,T){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!d.current.allowPinchZoom;var j=Go(k),P=s.current,N="deltaX"in k?k.deltaX:P[0]-j[0],A="deltaY"in k?k.deltaY:P[1]-j[1],U,C=k.target,X=Math.abs(N)>Math.abs(A)?"h":"v";if("touches"in k&&X==="h"&&C.type==="range")return!1;var $=window.getSelection(),W=$&&$.anchorNode,E=W?W===C||W.contains(C):!1;if(E)return!1;var ne=O0(X,C);if(!ne)return!0;if(ne?U=X:(U=X==="v"?"h":"v",ne=O0(X,C)),!ne)return!1;if(!l.current&&"changedTouches"in k&&(N||A)&&(l.current=U),!U)return!0;var re=l.current||U;return p_(re,T,k,re==="h"?N:A)},[]),m=y.useCallback(function(k){var T=k;if(!(!bl.length||bl[bl.length-1]!==u)){var j="deltaY"in T?f0(T):Go(T),P=n.current.filter(function(U){return U.name===T.type&&(U.target===T.target||T.target===U.shadowParent)&&x_(U.delta,j)})[0];if(P&&P.should){T.cancelable&&T.preventDefault();return}if(!P){var N=(d.current.shards||[]).map(h0).filter(Boolean).filter(function(U){return U.contains(T.target)}),A=N.length>0?O(T,N[0]):!d.current.noIsolation;A&&T.cancelable&&T.preventDefault()}}},[]),p=y.useCallback(function(k,T,j,P){var N={name:k,delta:T,target:j,should:P,shadowParent:y_(j)};n.current.push(N),setTimeout(function(){n.current=n.current.filter(function(A){return A!==N})},1)},[]),x=y.useCallback(function(k){s.current=Go(k),l.current=void 0},[]),g=y.useCallback(function(k){p(k.type,f0(k),k.target,O(k,t.lockRef.current))},[]),b=y.useCallback(function(k){p(k.type,Go(k),k.target,O(k,t.lockRef.current))},[]);y.useEffect(function(){return bl.push(u),t.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:b}),document.addEventListener("wheel",m,gl),document.addEventListener("touchmove",m,gl),document.addEventListener("touchstart",x,gl),function(){bl=bl.filter(function(k){return k!==u}),document.removeEventListener("wheel",m,gl),document.removeEventListener("touchmove",m,gl),document.removeEventListener("touchstart",x,gl)}},[]);var v=t.removeScrollBar,Q=t.inert;return y.createElement(y.Fragment,null,Q?y.createElement(u,{styles:g_(o)}):null,v?y.createElement(c_,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function y_(t){for(var n=null;t!==null;)t instanceof ShadowRoot&&(n=t.host,t=t.host),t=t.parentNode;return n}const S_=IX(dS,v_);var pS=y.forwardRef(function(t,n){return y.createElement(Dc,ja({},t,{ref:n,sideCar:S_}))});pS.classNames=Dc.classNames;var Q_=function(t){if(typeof document>"u")return null;var n=Array.isArray(t)?t[0]:t;return n.ownerDocument.body},vl=new WeakMap,Lo=new WeakMap,Do={},FO=0,xS=function(t){return t&&(t.host||xS(t.parentNode))},j_=function(t,n){return n.map(function(s){if(t.contains(s))return s;var l=xS(s);return l&&t.contains(l)?l:(console.error("aria-hidden",s,"in not contained inside",t,". Doing nothing"),null)}).filter(function(s){return!!s})},w_=function(t,n,s,l){var o=j_(n,Array.isArray(t)?t:[t]);Do[s]||(Do[s]=new WeakMap);var u=Do[s],d=[],O=new Set,m=new Set(o),p=function(g){!g||O.has(g)||(O.add(g),p(g.parentNode))};o.forEach(p);var x=function(g){!g||m.has(g)||Array.prototype.forEach.call(g.children,function(b){if(O.has(b))x(b);else try{var v=b.getAttribute(l),Q=v!==null&&v!=="false",k=(vl.get(b)||0)+1,T=(u.get(b)||0)+1;vl.set(b,k),u.set(b,T),d.push(b),k===1&&Q&&Lo.set(b,!0),T===1&&b.setAttribute(s,"true"),Q||b.setAttribute(l,"true")}catch(j){console.error("aria-hidden: cannot operate on ",b,j)}})};return x(n),O.clear(),FO++,function(){d.forEach(function(g){var b=vl.get(g)-1,v=u.get(g)-1;vl.set(g,b),u.set(g,v),b||(Lo.has(g)||g.removeAttribute(l),Lo.delete(g)),v||g.removeAttribute(s)}),FO--,FO||(vl=new WeakMap,vl=new WeakMap,Lo=new WeakMap,Do={})}},k_=function(t,n,s){s===void 0&&(s="data-aria-hidden");var l=Array.from(Array.isArray(t)?t:[t]),o=Q_(t);return o?(l.push.apply(l,Array.from(o.querySelectorAll("[aria-live], script"))),w_(l,o,s,"aria-hidden")):function(){return null}},Wc="Dialog",[gS]=zs(Wc),[$_,ba]=gS(Wc),bS=t=>{const{__scopeDialog:n,children:s,open:l,defaultOpen:o,onOpenChange:u,modal:d=!0}=t,O=y.useRef(null),m=y.useRef(null),[p,x]=Rc({prop:l,defaultProp:o??!1,onChange:u,caller:Wc});return i.jsx($_,{scope:n,triggerRef:O,contentRef:m,contentId:wl(),titleId:wl(),descriptionId:wl(),open:p,onOpenChange:x,onOpenToggle:y.useCallback(()=>x(g=>!g),[x]),modal:d,children:s})};bS.displayName=Wc;var vS="DialogTrigger",T_=y.forwardRef((t,n)=>{const{__scopeDialog:s,...l}=t,o=ba(vS,s),u=it(n,o.triggerRef);return i.jsx(Be.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Qh(o.open),...l,ref:u,onClick:Ee(t.onClick,o.onOpenToggle)})});T_.displayName=vS;var yh="DialogPortal",[P_,yS]=gS(yh,{forceMount:void 0}),SS=t=>{const{__scopeDialog:n,forceMount:s,children:l,container:o}=t,u=ba(yh,n);return i.jsx(P_,{scope:n,forceMount:s,children:y.Children.map(l,d=>i.jsx(ga,{present:s||u.open,children:i.jsx(qf,{asChild:!0,container:o,children:d})}))})};SS.displayName=yh;var wc="DialogOverlay",QS=y.forwardRef((t,n)=>{const s=yS(wc,t.__scopeDialog),{forceMount:l=s.forceMount,...o}=t,u=ba(wc,t.__scopeDialog);return u.modal?i.jsx(ga,{present:l||u.open,children:i.jsx(z_,{...o,ref:n})}):null});QS.displayName=wc;var N_=nc("DialogOverlay.RemoveScroll"),z_=y.forwardRef((t,n)=>{const{__scopeDialog:s,...l}=t,o=ba(wc,s);return i.jsx(pS,{as:N_,allowPinchZoom:!0,shards:[o.contentRef],children:i.jsx(Be.div,{"data-state":Qh(o.open),...l,ref:n,style:{pointerEvents:"auto",...l.style}})})}),Ts="DialogContent",jS=y.forwardRef((t,n)=>{const s=yS(Ts,t.__scopeDialog),{forceMount:l=s.forceMount,...o}=t,u=ba(Ts,t.__scopeDialog);return i.jsx(ga,{present:l||u.open,children:u.modal?i.jsx(R_,{...o,ref:n}):i.jsx(C_,{...o,ref:n})})});jS.displayName=Ts;var R_=y.forwardRef((t,n)=>{const s=ba(Ts,t.__scopeDialog),l=y.useRef(null),o=it(n,s.contentRef,l);return y.useEffect(()=>{const u=l.current;if(u)return k_(u)},[]),i.jsx(wS,{...t,ref:o,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(t.onCloseAutoFocus,u=>{var d;u.preventDefault(),(d=s.triggerRef.current)==null||d.focus()}),onPointerDownOutside:Ee(t.onPointerDownOutside,u=>{const d=u.detail.originalEvent,O=d.button===0&&d.ctrlKey===!0;(d.button===2||O)&&u.preventDefault()}),onFocusOutside:Ee(t.onFocusOutside,u=>u.preventDefault())})}),C_=y.forwardRef((t,n)=>{const s=ba(Ts,t.__scopeDialog),l=y.useRef(!1),o=y.useRef(!1);return i.jsx(wS,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var d,O;(d=t.onCloseAutoFocus)==null||d.call(t,u),u.defaultPrevented||(l.current||(O=s.triggerRef.current)==null||O.focus(),u.preventDefault()),l.current=!1,o.current=!1},onInteractOutside:u=>{var m,p;(m=t.onInteractOutside)==null||m.call(t,u),u.defaultPrevented||(l.current=!0,u.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const d=u.target;((p=s.triggerRef.current)==null?void 0:p.contains(d))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&o.current&&u.preventDefault()}})}),wS=y.forwardRef((t,n)=>{const{__scopeDialog:s,trapFocus:l,onOpenAutoFocus:o,onCloseAutoFocus:u,...d}=t,O=ba(Ts,s),m=y.useRef(null),p=it(n,m);return MX(),i.jsxs(i.Fragment,{children:[i.jsx(iS,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:o,onUnmountAutoFocus:u,children:i.jsx(Nf,{role:"dialog",id:O.contentId,"aria-describedby":O.descriptionId,"aria-labelledby":O.titleId,"data-state":Qh(O.open),...d,ref:p,onDismiss:()=>O.onOpenChange(!1)})}),i.jsxs(i.Fragment,{children:[i.jsx(X_,{titleId:O.titleId}),i.jsx(Z_,{contentRef:m,descriptionId:O.descriptionId})]})]})}),Sh="DialogTitle",kS=y.forwardRef((t,n)=>{const{__scopeDialog:s,...l}=t,o=ba(Sh,s);return i.jsx(Be.h2,{id:o.titleId,...l,ref:n})});kS.displayName=Sh;var $S="DialogDescription",TS=y.forwardRef((t,n)=>{const{__scopeDialog:s,...l}=t,o=ba($S,s);return i.jsx(Be.p,{id:o.descriptionId,...l,ref:n})});TS.displayName=$S;var PS="DialogClose",NS=y.forwardRef((t,n)=>{const{__scopeDialog:s,...l}=t,o=ba(PS,s);return i.jsx(Be.button,{type:"button",...l,ref:n,onClick:Ee(t.onClick,()=>o.onOpenChange(!1))})});NS.displayName=PS;function Qh(t){return t?"open":"closed"}var zS="DialogTitleWarning",[_Z,RS]=rw(zS,{contentName:Ts,titleName:Sh,docsSlug:"dialog"}),X_=({titleId:t})=>{const n=RS(zS),s=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
609
|
-
|
|
610
|
-
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
611
|
-
|
|
612
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return y.useEffect(()=>{t&&(document.getElementById(t)||console.error(s))},[s,t]),null},__="DialogDescriptionWarning",Z_=({contentRef:t,descriptionId:n})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${RS(__).contentName}}.`;return y.useEffect(()=>{var u;const o=(u=t.current)==null?void 0:u.getAttribute("aria-describedby");n&&o&&(document.getElementById(n)||console.warn(l))},[l,t,n]),null},CS=bS,XS=SS,_S=QS,ZS=jS,AS=kS,ES=TS,qS=NS;function A_({children:t,...n}){return i.jsx(CS,{...n,children:t})}function E_({children:t,className:n,title:s,description:l,...o}){return i.jsxs(XS,{children:[i.jsx(_S,{className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),i.jsxs(ZS,{className:le("fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2","w-full max-w-lg max-h-[85vh] overflow-y-auto","bg-surface-1 border border-border rounded-lg shadow-2xl","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",n),...o,children:[s&&i.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border-subtle",children:[i.jsx(AS,{className:"text-base font-semibold text-text-0 font-sans",children:s}),i.jsx(qS,{className:"p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors",children:i.jsx(Rt,{size:16})})]}),l&&i.jsx(ES,{className:"sr-only",children:l}),t]})]})}var m0={};function q_({path:t,onNavigate:n}){const s=t.split("/").filter(Boolean);return i.jsxs("div",{className:"flex items-center gap-0.5 min-w-0 overflow-x-auto py-1.5 scrollbar-none",children:[i.jsx("button",{onClick:()=>n("/"),className:"flex-shrink-0 p-1 rounded hover:bg-surface-5 cursor-pointer text-text-3 hover:text-text-0 transition-colors",children:i.jsx(Cb,{size:13})}),s.map((l,o)=>{const u="/"+s.slice(0,o+1).join("/"),d=o===s.length-1;return i.jsxs("div",{className:"flex items-center gap-0.5 flex-shrink-0",children:[i.jsx(oi,{size:11,className:"text-text-4"}),i.jsx("button",{onClick:()=>n(u),className:le("px-1.5 py-0.5 rounded text-xs font-mono cursor-pointer transition-colors",d?"text-text-0 bg-surface-4 font-medium":"text-text-3 hover:text-text-0 hover:bg-surface-5"),children:l})]},o)})]})}function MS({open:t,onOpenChange:n,currentPath:s,onSelect:l}){const[o,u]=y.useState(s||m0.HOME||"/"),[d,O]=y.useState([]),[m,p]=y.useState(!1),[x,g]=y.useState(null);y.useEffect(()=>{t&&b(s||"/")},[t]);async function b(T){p(!0),g(null);try{const j=await ee.get(`/browse-system?path=${encodeURIComponent(T)}`);u(j.current||T),O(j.dirs||[])}catch(j){g(j.message),O([])}p(!1)}function v(){const T=o==="/"?"/":o.split("/").slice(0,-1).join("/")||"/";b(T)}function Q(){b(m0.HOME||"/Users")}function k(){l(o),n(!1)}return i.jsx(A_,{open:t,onOpenChange:n,children:i.jsx(E_,{title:"Select Working Directory",description:"Choose a directory for this agent to work in",className:"max-w-[520px]",children:i.jsxs("div",{className:"px-5 py-4 space-y-3",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("button",{onClick:v,disabled:o==="/",className:"p-1.5 rounded-md bg-surface-4 border border-border text-text-2 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed",children:i.jsx(g5,{size:14})}),i.jsx("button",{onClick:Q,className:"p-1.5 rounded-md bg-surface-4 border border-border text-text-2 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:i.jsx(pT,{size:14})}),i.jsx("div",{className:"flex-1 min-w-0 bg-surface-0 rounded-md border border-border-subtle px-2",children:i.jsx(q_,{path:o,onNavigate:b})})]}),i.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle overflow-hidden",children:i.jsxs("div",{className:"max-h-[340px] overflow-y-auto",children:[m&&i.jsx("div",{className:"flex items-center justify-center py-8",children:i.jsx(Wf,{size:18,className:"text-text-3 animate-spin"})}),x&&i.jsx("div",{className:"px-4 py-6 text-center",children:i.jsx("p",{className:"text-xs text-danger font-sans",children:x})}),!m&&!x&&d.length===0&&i.jsx("div",{className:"px-4 py-6 text-center",children:i.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No subdirectories"})}),!m&&!x&&d.map(T=>i.jsxs("button",{onClick:()=>b(T.path),className:le("w-full flex items-center gap-2.5 px-3.5 py-2 text-left cursor-pointer","hover:bg-surface-4 transition-colors border-b border-border-subtle last:border-0"),children:[T.hasChildren?i.jsx(sT,{size:15,className:"text-warning flex-shrink-0"}):i.jsx(Ir,{size:15,className:"text-text-3 flex-shrink-0"}),i.jsx("span",{className:"text-sm text-text-0 font-sans truncate flex-1",children:T.name}),T.hasChildren&&i.jsx(oi,{size:12,className:"text-text-4 flex-shrink-0"})]},T.path))]})}),i.jsxs("div",{className:"flex items-center gap-3 bg-surface-4/50 rounded-lg px-3.5 py-2.5 border border-border-subtle",children:[i.jsx(Ir,{size:16,className:"text-accent flex-shrink-0"}),i.jsx("span",{className:"text-xs font-mono text-text-1 truncate flex-1",children:o})]}),i.jsxs("div",{className:"flex justify-end gap-2",children:[i.jsx(je,{variant:"ghost",size:"md",onClick:()=>n(!1),children:"Cancel"}),i.jsxs(je,{variant:"primary",size:"md",onClick:k,className:"gap-1.5",children:[i.jsx(ia,{size:14})," Select Folder"]})]})]})})})}function YS({children:t,...n}){return i.jsx(CS,{...n,children:t})}function VS({children:t,className:n,title:s,side:l="right",width:o=400,...u}){return i.jsxs(XS,{children:[i.jsx(_S,{className:"fixed inset-0 z-40 bg-black/30"}),i.jsxs(ZS,{className:le("fixed top-0 z-50 h-full overflow-y-auto","bg-surface-1 border-l border-border shadow-2xl","data-[state=open]:animate-in data-[state=closed]:animate-out",l==="right"&&"right-0 data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",l==="left"&&"left-0 data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",n),style:{width:o},...u,children:[s&&i.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border-subtle sticky top-0 bg-surface-1 z-10",children:[i.jsx(AS,{className:"text-base font-semibold text-text-0 font-sans",children:s}),i.jsx(qS,{className:"p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:i.jsx(Rt,{size:16})})]}),i.jsx(ES,{className:"sr-only",children:"Panel"}),t]})]})}function M_({value:t,onChange:n}){return i.jsx("button",{onClick:()=>n(!t),className:le("w-9 h-5 rounded-full p-0.5 transition-colors cursor-pointer",t?"bg-accent":"bg-surface-5"),children:i.jsx("div",{className:le("w-4 h-4 rounded-full bg-white shadow-sm transition-transform",t?"translate-x-4":"translate-x-0")})})}function Y_({user:t}){const[n,s]=y.useState(!1),l=(t==null?void 0:t.avatar)||(t==null?void 0:t.picture)||(t==null?void 0:t.photoURL)||(t==null?void 0:t.photo);return l&&!n?i.jsx("img",{src:l,alt:"",className:"w-6 h-6 rounded-full",referrerPolicy:"no-referrer",crossOrigin:"anonymous",onError:()=>s(!0)}):i.jsx("div",{className:"w-6 h-6 rounded-full bg-accent/10 flex items-center justify-center",children:i.jsx(Wb,{size:12,className:"text-accent"})})}function V_({provider:t,onKeyChange:n}){var T,j;const[s,l]=y.useState(!1),[o,u]=y.useState(""),[d,O]=y.useState(!1),[m,p]=y.useState(!1),x=G(P=>P.addToast),g=t.authType==="local",b=t.authType==="subscription",v=g||b?t.installed:t.hasKey;async function Q(){if(o.trim())try{await ee.post(`/credentials/${t.id}`,{key:o.trim()}),x("success",`API key set for ${t.name}`),u(""),l(!1),n&&n()}catch(P){x("error","Failed to set key",P.message)}}async function k(){try{await ee.delete(`/credentials/${t.id}`),x("info",`Removed ${t.name} key`),n&&n()}catch(P){x("error","Remove failed",P.message)}}return g?i.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[i.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[i.jsx(ws,{status:v?"running":"crashed",size:"sm"}),i.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:t.name}),i.jsx("div",{className:"flex-1"}),v?i.jsxs(Le,{variant:"success",className:"text-2xs gap-1",children:[i.jsx(ia,{size:8})," Ready"]}):i.jsx(Le,{variant:"default",className:"text-2xs",children:"Not installed"})]}),i.jsx("div",{className:"flex-1",children:m?i.jsx(rS,{isInstalled:v,onModelChange:n}):i.jsxs("div",{className:"px-4 py-3 flex flex-col h-full",children:[i.jsx("div",{className:"text-xs text-text-3 font-sans flex-1",children:v?`${((T=t.models)==null?void 0:T.length)||0} models available`:"Local AI models — free, private, no API key"}),i.jsxs(je,{variant:v?"secondary":"primary",size:"sm",onClick:()=>p(!0),className:"w-full h-7 text-2xs gap-1.5 mt-3",children:[i.jsx(Gf,{size:11}),v?"Manage Models":"Set Up Ollama"]})]})})]}):i.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[i.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[i.jsx(ws,{status:v?"running":"crashed",size:"sm"}),i.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:t.name}),i.jsx("div",{className:"flex-1"}),v?i.jsxs(Le,{variant:"success",className:"text-2xs gap-1",children:[i.jsx(ia,{size:8})," Ready"]}):i.jsx(Le,{variant:"default",className:"text-2xs",children:b?"Not installed":"No key"})]}),i.jsxs("div",{className:"flex-1 flex flex-col px-4 py-3 min-h-[120px]",children:[((j=t.models)==null?void 0:j.length)>0&&i.jsx("div",{className:"flex flex-wrap gap-1 mb-3",children:t.models.map(P=>i.jsx("span",{className:"px-1.5 py-0.5 rounded bg-surface-4 text-2xs font-mono text-text-3",children:P.name||P.id},P.id))}),b&&v&&!t.hasKey&&!s&&i.jsxs("div",{className:"flex items-center gap-1.5 h-8 px-2.5 bg-accent/8 border border-accent/20 rounded-md text-2xs font-sans text-accent mb-3",children:[i.jsx(ia,{size:10})," Subscription active"]}),t.hasKey&&!s&&i.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[i.jsxs("div",{className:"flex-1 flex items-center gap-1.5 h-8 px-2.5 bg-success/8 border border-success/20 rounded-md text-2xs font-sans text-success",children:[i.jsx(ia,{size:10})," API Connected"]}),i.jsx("button",{onClick:()=>{l(!0),O(!1),u("")},className:"text-2xs text-text-4 hover:text-accent cursor-pointer font-sans",children:"Edit"}),i.jsx("button",{onClick:k,className:"text-2xs text-text-4 hover:text-danger cursor-pointer font-sans",children:"Remove"})]}),i.jsx("div",{className:"flex-1"}),s&&i.jsxs("div",{className:"space-y-2.5 pt-1",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:t.hasKey?"Update API Key":`${t.name} API Key`}),i.jsxs("div",{className:"relative",children:[i.jsx("input",{value:o,onChange:P=>u(P.target.value),onKeyDown:P=>P.key==="Enter"&&Q(),type:d?"text":"password",placeholder:"sk-...",className:"w-full h-9 px-3 pr-9 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),i.jsx("button",{onClick:()=>O(!d),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:d?i.jsx(Df,{size:12}):i.jsx(ci,{size:12})})]})]}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(je,{variant:"primary",size:"sm",onClick:Q,disabled:!o.trim(),className:"flex-1 h-8 text-xs",children:"Save Key"}),i.jsx(je,{variant:"ghost",size:"sm",onClick:()=>{l(!1),u("")},className:"h-8 text-xs px-3",children:"Cancel"})]})]}),!s&&!t.hasKey&&i.jsxs(je,{variant:b?"secondary":"primary",size:"sm",onClick:()=>{l(!0),O(!1),u("")},className:"w-full h-8 text-2xs gap-1.5 mt-2",children:[i.jsx(fc,{size:11}),b?"Add API key for headless mode":"Add API Key"]})]})]})}function yl({icon:t,label:n,description:s,children:l}){return i.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-1 px-4 py-3.5 flex flex-col gap-2",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("div",{className:"w-6 h-6 rounded bg-accent/8 flex items-center justify-center flex-shrink-0",children:i.jsx(t,{size:12,className:"text-accent"})}),i.jsx("div",{className:"text-[13px] font-medium text-text-0 font-sans leading-tight",children:n})]}),i.jsx("div",{className:"text-2xs text-text-4 font-sans leading-relaxed",children:s}),i.jsx("div",{className:"mt-auto pt-1",children:l})]})}const US={telegram:Ff,discord:ui,slack:Zb},Ss={telegram:"Telegram",discord:"Discord",slack:"Slack"},U_={telegram:"Bot token from @BotFather",discord:"Bot token from Developer Portal",slack:"Bot token (xoxb-...)"},G_=["critical","lifecycle","all"];function L_({type:t,open:n,onOpenChange:s}){if(!t)return null;const o={telegram:{title:"Set Up Telegram",icon:Ff,intro:"Create a Telegram bot and connect it to Groove in under 2 minutes. No dependencies required.",sections:[{title:"Create Your Bot",steps:[{text:"Open Telegram on any device and search for",link:"https://t.me/BotFather",linkText:"@BotFather"},{text:"Send /newbot to start the setup"},{text:"Choose a display name — we suggest GroovePilot"},{text:'Choose a username (must end in "bot") — e.g. GroovePilot_bot'},{text:"BotFather will reply with your bot token — copy it"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Telegram card"},{text:"Paste your bot token and click Save"},{text:"The gateway will connect automatically"}]},{title:"Link a Chat",steps:[{text:"Open a chat with your new bot in Telegram"},{text:'Send any message (e.g. "hello") — Groove captures the chat ID automatically'},{text:"Click Test in the gateway card to verify"}]},{title:"Commands",note:"All commands use / prefix in Telegram:",commands:["/instruct <team> <msg>","/query <team> <question>","/plan <description>","/log <team>","/brief","/tokens","/status","/agents","/help"]}]},discord:{title:"Set Up Discord",icon:ui,intro:"Create a Discord bot and add it to your server. Requires discord.js (installed automatically with Groove).",sections:[{title:"Create the Application",steps:[{text:"Go to the",link:"https://discord.com/developers/applications",linkText:"Discord Developer Portal"},{text:"Click New Application and name it GroovePilot"},{text:"Go to the Bot tab in the left sidebar"},{text:"Click Reset Token and copy the bot token"}]},{title:"Set Permissions & Invite",steps:[{text:"Go to OAuth2 > URL Generator"},{text:"Under Scopes, check bot"},{text:"Under Bot Permissions, check:"}],scopes:["Send Messages","Read Message History","Embed Links","Use External Emojis"],after:[{text:"Copy the generated URL at the bottom and open it in your browser"},{text:"Select your server and click Authorize"}]},{title:"Enable Message Content Intent",steps:[{text:"Go back to the Bot tab in the Developer Portal"},{text:"Scroll to Privileged Gateway Intents"},{text:"Enable Message Content Intent — required for the bot to read commands"},{text:"Click Save Changes"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Discord card"},{text:"Paste your bot token and click Save"},{text:"Send a message in any channel where the bot is — Groove captures the channel automatically"}]},{title:"Commands",note:"All commands use / prefix in Discord:",commands:["/instruct <team> <msg>","/query <team> <question>","/plan <description>","/log <team>","/brief","/tokens","/status","/agents","/help"]}]},slack:{title:"Set Up Slack",icon:Zb,intro:"Create a Slack app with Socket Mode — no public URL needed. Requires @slack/bolt (installed automatically with Groove).",sections:[{title:"Create the App",steps:[{text:"Go to",link:"https://api.slack.com/apps",linkText:"api.slack.com/apps"},{text:"Click Create New App > From scratch"},{text:"Name it GroovePilot and select your workspace"}]},{title:"Enable Socket Mode",steps:[{text:"In the left sidebar, go to Settings > Socket Mode"},{text:"Toggle Enable Socket Mode to on"},{text:"It will ask you to create an App-Level Token"},{text:'Name it "groove", add the connections:write scope'},{text:"Click Generate — copy the xapp-... token (this is your App Token)"}],important:"Save this token now — you can't view it again after closing the dialog."},{title:"Set Bot Token Scopes",steps:[{text:"Go to Features > OAuth & Permissions"},{text:"Scroll to Bot Token Scopes and add all of these:"}],scopes:["chat:write","channels:read","channels:history","groups:read","groups:history","im:history","app_mentions:read"],after:[{text:"Scroll up and click Install to Workspace"},{text:"Click Allow to grant permissions"},{text:"Copy the Bot User OAuth Token (xoxb-...) — this is your Bot Token"}]},{title:"Enable Events",steps:[{text:"Go to Features > Event Subscriptions"},{text:"Toggle Enable Events to on"},{text:"Under Subscribe to bot events, add:"}],scopes:["message.channels","message.im","app_mention"],after:[{text:"Click Save Changes at the bottom"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Slack card"},{text:"Paste your Bot Token (xoxb-...) in the first field"},{text:"Paste your App Token (xapp-...) in the second field"},{text:"Click Save — Groove will auto-connect"}]},{title:"Link a Channel",steps:[{text:"Invite the bot to a channel: /invite @GroovePilot"},{text:"Select the channel from the dropdown in the gateway card"},{text:"Or @mention the bot — it will auto-capture the channel"},{text:"Click Test to verify"}],important:"For private channels, make sure you added the groups:read scope."},{title:"Commands",note:"In Slack, use plain text commands (no / prefix) or @mention the bot:",commands:["instruct <team> <msg>","query <team> <question>","plan <description>","log <team>","brief","tokens","status","agents","help","@GroovePilot status"]}]}}[t];if(!o)return null;const u=o.icon;return i.jsx(YS,{open:n,onOpenChange:s,children:i.jsx(VS,{title:o.title,width:480,children:i.jsxs("div",{className:"px-5 py-4 space-y-5",children:[i.jsxs("div",{className:"flex items-start gap-3 p-3 bg-accent/5 border border-accent/15 rounded-lg",children:[i.jsx("div",{className:"w-8 h-8 rounded-lg bg-accent/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:i.jsx(u,{size:16,className:"text-accent"})}),i.jsx("p",{className:"text-xs text-text-2 font-sans leading-relaxed",children:o.intro})]}),o.sections.map((d,O)=>{var m;return i.jsxs("div",{children:[i.jsxs("h3",{className:"text-xs font-semibold text-text-0 font-sans mb-2.5 flex items-center gap-2",children:[i.jsx("span",{className:"w-5 h-5 rounded-full bg-accent/10 flex items-center justify-center text-2xs font-bold text-accent",children:O+1}),d.title]}),d.note&&i.jsx("p",{className:"text-2xs text-text-3 font-sans mb-2",children:d.note}),d.steps&&i.jsx("ol",{className:"space-y-2 mb-2",children:d.steps.map((p,x)=>i.jsxs("li",{className:"flex gap-2 text-2xs text-text-2 font-sans leading-relaxed",children:[i.jsxs("span",{className:"text-text-4 font-mono w-4 flex-shrink-0 pt-px",children:[x+1,"."]}),i.jsxs("span",{children:[p.text,p.link&&i.jsxs(i.Fragment,{children:[" ",i.jsxs("a",{href:p.link,target:"_blank",rel:"noopener noreferrer",className:"text-accent hover:underline inline-flex items-center gap-0.5 font-medium",children:[p.linkText,i.jsx(Oc,{size:9})]})]})]})]},x))}),d.scopes&&i.jsx("div",{className:"flex flex-wrap gap-1.5 mb-2 ml-6",children:d.scopes.map(p=>i.jsx("code",{className:"px-2 py-0.5 rounded bg-surface-4 text-2xs font-mono text-accent",children:p},p))}),d.after&&i.jsx("ol",{className:"space-y-2 mb-2",start:(((m=d.steps)==null?void 0:m.length)||0)+1,children:d.after.map((p,x)=>{var g;return i.jsxs("li",{className:"flex gap-2 text-2xs text-text-2 font-sans leading-relaxed",children:[i.jsxs("span",{className:"text-text-4 font-mono w-4 flex-shrink-0 pt-px",children:[(((g=d.steps)==null?void 0:g.length)||0)+x+1,"."]}),i.jsx("span",{children:p.text})]},x)})}),d.important&&i.jsx("div",{className:"ml-6 p-2 bg-warning/8 border border-warning/20 rounded-md text-2xs text-warning font-sans",children:d.important}),d.commands&&i.jsx("div",{className:"ml-6 p-2.5 bg-surface-0 border border-border-subtle rounded-md space-y-1",children:d.commands.map(p=>i.jsx("code",{className:"block text-2xs font-mono text-text-1",children:p},p))})]},O)}),i.jsxs("a",{href:"https://docs.groovedev.ai/guide/gateways",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium mt-2",children:[i.jsx(Oc,{size:10}),"Full documentation at docs.groovedev.ai"]})]})})})}function D_({gateway:t,onRefresh:n}){var xe,ie;const[s,l]=y.useState(!1),[o,u]=y.useState(""),[d,O]=y.useState(""),[m,p]=y.useState(!1),[x,g]=y.useState(!1),[b,v]=y.useState(!1),[Q,k]=y.useState([]),[T,j]=y.useState(!1),P=G(J=>J.addToast);y.useEffect(()=>{t.connected&&!t.chatId&&t.type==="slack"&&ee.get(`/gateways/${t.id}/channels`).then(J=>k(Array.isArray(J)?J:[])).catch(()=>{})},[t.connected,t.chatId,t.id,t.type]);const N=US[t.type]||If,A=t.type==="slack";async function U(){if(o.trim())try{await ee.post(`/gateways/${t.id}/credentials`,{key:"bot_token",value:o.trim()}),A&&d.trim()&&await ee.post(`/gateways/${t.id}/credentials`,{key:"app_token",value:d.trim()}),P("success","Token saved — connecting..."),u(""),O(""),l(!1);try{await ee.post(`/gateways/${t.id}/connect`),P("success",`${Ss[t.type]} connected!`)}catch(J){P("error","Token saved but connect failed",J.message)}n()}catch(J){P("error","Failed to save token",J.message)}}async function C(){g(!0);try{await ee.post(`/gateways/${t.id}/test`),P("success","Test message sent!")}catch(J){P("error","Test failed",J.message)}g(!1)}async function X(){v(!0);try{t.connected?(await ee.post(`/gateways/${t.id}/disconnect`),P("info",`${Ss[t.type]} disconnected`)):(await ee.post(`/gateways/${t.id}/connect`),P("success",`${Ss[t.type]} connected!`)),n()}catch(J){P("error",t.connected?"Disconnect failed":"Connect failed",J.message)}v(!1)}async function $(J){try{await ee.patch(`/gateways/${t.id}`,{enabled:J}),n()}catch(z){P("error","Update failed",z.message)}}async function W(J){try{await ee.patch(`/gateways/${t.id}`,{notifications:{preset:J}}),n()}catch(z){P("error","Update failed",z.message)}}async function E(J){try{await ee.patch(`/gateways/${t.id}`,{commandPermission:J}),n()}catch(z){P("error","Update failed",z.message)}}async function ne(){try{await ee.delete(`/gateways/${t.id}`),P("info",`${Ss[t.type]} gateway removed`),n()}catch(J){P("error","Delete failed",J.message)}}const re=((xe=t.notifications)==null?void 0:xe.preset)||"critical";return i.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[i.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[i.jsx(ws,{status:t.connected?"running":"crashed",size:"sm"}),i.jsx(N,{size:13,className:"text-text-2"}),i.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:Ss[t.type]}),i.jsx("div",{className:"flex-1"}),t.connected?i.jsxs(Le,{variant:"success",className:"text-2xs gap-1",children:[i.jsx(Kg,{size:8})," Connected"]}):t.enabled?i.jsx(Le,{variant:"warning",className:"text-2xs",children:"Disconnected"}):i.jsx(Le,{variant:"default",className:"text-2xs",children:"Disabled"})]}),i.jsxs("div",{className:"flex-1 flex flex-col px-4 py-3 min-h-[140px]",children:[t.connected&&!s&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"flex items-center gap-1.5 h-8 px-2.5 bg-success/8 border border-success/20 rounded-md text-2xs font-sans text-success mb-3",children:[i.jsx(ia,{size:10})," Gateway active",t.botUsername&&i.jsxs("span",{className:"text-text-4 ml-1",children:["@",t.botUsername]}),t.botTag&&i.jsx("span",{className:"text-text-4 ml-1",children:t.botTag})]}),i.jsxs("div",{className:"mb-3",children:[i.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:t.type==="slack"?"Channel":"Chat ID"}),t.chatId?i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("code",{className:"flex-1 flex items-center h-7 px-2 bg-surface-0 border border-border-subtle rounded-md text-2xs font-mono text-text-2",children:t.type==="slack"&&Q.length>0?`#${((ie=Q.find(J=>J.id===t.chatId))==null?void 0:ie.name)||t.chatId}`:t.chatId}),i.jsx("button",{onClick:async()=>{try{await ee.patch(`/gateways/${t.id}`,{chatId:null}),n()}catch(J){P("error","Failed",J.message)}},className:"text-2xs text-text-4 hover:text-text-1 cursor-pointer font-sans",children:"Change"})]}):t.type==="slack"&&Q.length>0?i.jsxs("select",{onChange:async J=>{if(J.target.value)try{await ee.patch(`/gateways/${t.id}`,{chatId:J.target.value}),n()}catch(z){P("error","Failed to set channel",z.message)}},className:"w-full h-7 px-2 text-2xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-sans focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",defaultValue:"",children:[i.jsx("option",{value:"",disabled:!0,children:"Select a channel..."}),Q.map(J=>i.jsxs("option",{value:J.id,children:["#",J.name]},J.id))]}):i.jsxs("div",{className:"text-2xs text-warning font-sans",children:[t.type==="slack"?"No channels found — invite the bot to a channel first.":"Send a message to the bot to auto-capture, or enter manually:",i.jsx("input",{placeholder:t.type==="slack"?"C0123456789":"Chat ID",className:"mt-1 w-full h-7 px-2 text-2xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",onKeyDown:async J=>{if(J.key==="Enter"&&J.target.value.trim())try{await ee.patch(`/gateways/${t.id}`,{chatId:J.target.value.trim()}),n()}catch(z){P("error","Failed to set channel",z.message)}}})]})]}),i.jsxs("div",{className:"mb-3",children:[i.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:"Notifications"}),i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:G_.map(J=>i.jsx("button",{onClick:()=>W(J),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer capitalize",re===J?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:J},J))})]}),i.jsxs("div",{className:"mb-3",children:[i.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:"Commands"}),i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:["full","read-only"].map(J=>i.jsx("button",{onClick:()=>E(J),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer capitalize",(t.commandPermission||"full")===J?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:J==="full"?"Full Access":"Read Only"},J))})]})]}),!t.connected&&!s&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"text-xs text-text-3 font-sans mb-2",children:t.enabled?t.hasCredentials?"Tokens saved — click Connect.":"Configure bot token to connect.":"Gateway is disabled."}),!t.hasCredentials&&i.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium cursor-pointer mb-2",children:[i.jsx(dc,{size:11}),"How to set up",i.jsx(Oc,{size:9})]})]}),i.jsx(L_,{type:t.type,open:T,onOpenChange:j}),i.jsx("div",{className:"flex-1"}),s&&i.jsxs("div",{className:"space-y-2.5 pt-1",children:[i.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium cursor-pointer",children:[i.jsx(dc,{size:11}),"Where do I get these?"]}),i.jsxs("div",{children:[i.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:"Bot Token"}),i.jsxs("div",{className:"relative",children:[i.jsx("input",{value:o,onChange:J=>u(J.target.value),onKeyDown:J=>J.key==="Enter"&&!A&&U(),type:m?"text":"password",placeholder:U_[t.type],className:"w-full h-9 px-3 pr-9 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),i.jsx("button",{onClick:()=>p(!m),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:m?i.jsx(Df,{size:12}):i.jsx(ci,{size:12})})]})]}),A&&i.jsxs("div",{children:[i.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:"App Token (Socket Mode)"}),i.jsx("input",{value:d,onChange:J=>O(J.target.value),onKeyDown:J=>J.key==="Enter"&&U(),type:m?"text":"password",placeholder:"xapp-...",className:"w-full h-9 px-3 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent"})]}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(je,{variant:"primary",size:"sm",onClick:U,disabled:!o.trim(),className:"flex-1 h-8 text-xs",children:"Save Token"}),i.jsx(je,{variant:"ghost",size:"sm",onClick:()=>{l(!1),u(""),O("")},className:"h-8 text-xs px-3",children:"Cancel"})]})]}),!s&&i.jsxs("div",{className:"flex gap-2 mt-2",children:[!t.connected&&i.jsxs(je,{variant:"primary",size:"sm",onClick:()=>l(!0),className:"flex-1 h-7 text-2xs gap-1.5",children:[i.jsx(fc,{size:11}),t.enabled?"Set Token":"Configure"]}),t.connected&&i.jsxs(i.Fragment,{children:[i.jsxs(je,{variant:"secondary",size:"sm",onClick:C,disabled:x,className:"flex-1 h-7 text-2xs gap-1.5",children:[i.jsx(Jf,{size:11}),x?"Sending...":"Test"]}),i.jsx(je,{variant:"secondary",size:"sm",onClick:()=>l(!0),className:"h-7 text-2xs px-2.5",children:i.jsx(fc,{size:11})})]}),i.jsx(je,{variant:"ghost",size:"sm",onClick:X,disabled:b,className:"h-7 text-2xs px-2.5",title:t.connected?"Disconnect":"Connect",children:t.connected?i.jsx(qb,{size:11}):i.jsx(Kg,{size:11})}),i.jsx(M_,{value:t.enabled,onChange:$}),i.jsx("button",{onClick:ne,className:"text-text-4 hover:text-danger cursor-pointer p-1",title:"Remove gateway",children:i.jsx(Oi,{size:11})})]})]})]})}function W_({existingTypes:t,onAdd:n}){const[s,l]=y.useState(!1),o=["telegram","discord","slack"].filter(u=>!t.includes(u));return o.length===0?null:s?i.jsxs("div",{className:"flex flex-col rounded-lg border border-accent/30 bg-surface-1 overflow-hidden min-w-[220px]",children:[i.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[i.jsx(If,{size:13,className:"text-accent"}),i.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:"Add Gateway"}),i.jsx("div",{className:"flex-1"}),i.jsx("button",{onClick:()=>l(!1),className:"text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(Rt,{size:12})})]}),i.jsx("div",{className:"p-3 space-y-2",children:o.map(u=>{const d=US[u];return i.jsxs("button",{onClick:()=>{n(u),l(!1)},className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-0 hover:bg-accent/8 border border-border-subtle hover:border-accent/20 cursor-pointer transition-all group",children:[i.jsx(d,{size:14,className:"text-text-3 group-hover:text-accent"}),i.jsx("span",{className:"text-xs font-medium text-text-1 group-hover:text-accent font-sans",children:Ss[u]})]},u)})})]}):i.jsxs("button",{onClick:()=>l(!0),className:"flex flex-col items-center justify-center rounded-lg border border-dashed border-border-subtle bg-surface-1/50 hover:bg-surface-1 hover:border-accent/30 min-h-[140px] min-w-[220px] cursor-pointer transition-all group",children:[i.jsx("div",{className:"w-8 h-8 rounded-full bg-accent/8 group-hover:bg-accent/15 flex items-center justify-center mb-2 transition-colors",children:i.jsx(In,{size:14,className:"text-accent"})}),i.jsx("span",{className:"text-2xs font-semibold text-text-3 group-hover:text-text-1 font-sans transition-colors",children:"Add Gateway"})]})}function B_(){const[t,n]=y.useState([]),[s,l]=y.useState(null),[o,u]=y.useState(null),[d,O]=y.useState([]),[m,p]=y.useState(!0),[x,g]=y.useState(!1),b=G(X=>X.addToast),v=G(X=>X.marketplaceUser),Q=G(X=>X.marketplaceAuthenticated),k=G(X=>X.marketplaceLogin),T=G(X=>X.marketplaceLogout);function j(){ee.get("/providers").then(X=>n(Array.isArray(X)?X:[])).catch(()=>{})}function P(){ee.get("/gateways").then(X=>O(Array.isArray(X)?X:[])).catch(()=>{})}y.useEffect(()=>{Promise.all([ee.get("/providers"),ee.get("/config"),ee.get("/status"),ee.get("/gateways")]).then(([X,$,W,E])=>{n(Array.isArray(X)?X:[]),l($),u(W),O(Array.isArray(E)?E:[]),p(!1)}).catch(()=>p(!1))},[]);async function N(X){try{await ee.post("/gateways",{type:X}),b("success",`${Ss[X]} gateway added`),P()}catch($){b("error","Failed to add gateway",$.message)}}async function A(X,$){try{const W=await ee.patch("/config",{[X]:$});l(W)}catch(W){b("error","Update failed",W.message)}}if(m)return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsx("div",{className:"h-12 bg-surface-1 border-b border-border"}),i.jsxs("div",{className:"flex-1 p-4 space-y-4",children:[i.jsx("div",{className:"grid grid-cols-4 gap-3",children:[...Array(4)].map((X,$)=>i.jsx(ra,{className:"h-40 rounded-lg"},$))}),i.jsx("div",{className:"grid grid-cols-3 gap-3",children:[...Array(6)].map((X,$)=>i.jsx(ra,{className:"h-28 rounded-lg"},$))})]})]});const U=t.filter(X=>X.authType==="local"||X.authType==="subscription"?X.installed:X.hasKey).length,C=(s==null?void 0:s.rotationThreshold)||0;return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"flex items-center gap-4 px-4 py-2.5 bg-surface-1 border-b border-border flex-shrink-0",children:[i.jsx("h2",{className:"text-sm font-semibold text-text-0 font-sans",children:"Settings"}),i.jsx("div",{className:"flex-1"}),i.jsxs("div",{className:"flex items-center gap-4 text-2xs text-text-3 font-sans",children:[(o==null?void 0:o.version)&&i.jsxs("span",{children:["v",o.version]}),(o==null?void 0:o.port)&&i.jsxs("span",{children:[":",o.port]}),(o==null?void 0:o.uptime)>0&&i.jsxs("span",{children:["Up ",qc(o.uptime)]})]}),i.jsx("div",{className:"w-px h-4 bg-border-subtle"}),Q?i.jsxs("div",{className:"flex items-center gap-2.5",children:[i.jsx(Y_,{user:v}),i.jsx("span",{className:"text-xs font-medium text-text-0 font-sans",children:(v==null?void 0:v.displayName)||"User"}),i.jsxs("button",{onClick:T,className:"text-2xs text-text-4 hover:text-text-1 cursor-pointer font-sans flex items-center gap-1",children:[i.jsx(_b,{size:10})," Sign out"]})]}):i.jsxs(je,{variant:"ghost",size:"sm",onClick:k,className:"h-7 text-2xs gap-1.5 text-text-3",children:[i.jsx(Bf,{size:11})," Sign in"]}),i.jsx(ws,{status:"running",size:"sm"})]}),i.jsx(es,{className:"flex-1",children:i.jsxs("div",{className:"p-4 space-y-4",children:[i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Providers"}),i.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),i.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:[U,"/",t.length," connected"]})]}),i.jsx("div",{className:"grid grid-cols-4 gap-3",children:t.map(X=>i.jsx(V_,{provider:X,onKeyChange:j},X.id))})]}),i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Gateways"}),i.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),i.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:[d.filter(X=>X.connected).length,"/",d.length," connected"]})]}),i.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[d.map(X=>i.jsx(D_,{gateway:X,onRefresh:P},X.id)),i.jsx(W_,{existingTypes:d.map(X=>X.type),onAdd:N})]})]}),s&&i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Configuration"}),i.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"Auto-saves"})]}),i.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[i.jsx(yl,{icon:Gf,label:"Default Provider",description:"Provider used when spawning new agents.",children:i.jsx("select",{value:s.defaultProvider||"claude-code",onChange:X=>A("defaultProvider",X.target.value),className:"w-full h-8 px-2.5 text-xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",children:t.filter(X=>X.installed||X.hasKey).map(X=>i.jsx("option",{value:X.id,children:X.name},X.id))})}),i.jsx(yl,{icon:Ir,label:"Working Directory",description:"Default root directory for new agents.",children:i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("code",{className:"flex-1 h-8 px-2 flex items-center bg-surface-0 border border-border-subtle rounded-md text-2xs font-mono text-text-2 truncate min-w-0",children:s.defaultWorkingDir||"Project root"}),i.jsx(je,{variant:"secondary",size:"sm",onClick:()=>g(!0),className:"h-8 px-2 flex-shrink-0",children:i.jsx(Nb,{size:12})})]})}),i.jsx(yl,{icon:Rb,label:"Rotation Threshold",description:"Context usage that triggers auto-rotation.",children:i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:["auto","50%","65%","75%","85%"].map(X=>{const $=X==="auto"?0:parseInt(X,10)/100,W=C===$;return i.jsx("button",{onClick:()=>A("rotationThreshold",$),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",W?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:X==="auto"?"Auto":X},X)})})}),i.jsx(yl,{icon:Gb,label:"QC Threshold",description:"Running agents count that triggers auto-QC.",children:i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[2,3,4,6,8].map(X=>{const $=(s.qcThreshold||2)===X;return i.jsx("button",{onClick:()=>A("qcThreshold",X),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",$?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:X},X)})})}),i.jsx(yl,{icon:fi,label:"Max Agents",description:"Concurrent agent limit. 0 = unlimited.",children:i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[0,4,8,12,20].map(X=>{const $=(s.maxAgents||0)===X;return i.jsx("button",{onClick:()=>A("maxAgents",X),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",$?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:X===0?"∞":X},X)})})}),i.jsx(yl,{icon:Fr,label:"Journalist Interval",description:"Seconds between synthesis cycles.",children:i.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[60,120,300,600].map(X=>{const $=(s.journalistInterval||120)===X,W=X<60?`${X}s`:`${X/60}m`;return i.jsx("button",{onClick:()=>A("journalistInterval",X),className:le("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",$?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:W},X)})})})]})]})]})}),i.jsx(MS,{open:x,onOpenChange:g,currentPath:(s==null?void 0:s.defaultWorkingDir)||"/",onSelect:X=>A("defaultWorkingDir",X)})]})}const kf=[];function GS(t){const n=(t||"").toLowerCase();return n.includes("reading")||n.includes("read ")?{icon:ci,color:"text-info",label:"Reading"}:n.includes("editing")||n.includes("wrote")||n.includes("writing")||n.includes("edit ")?{icon:Pb,color:"text-warning",label:"Editing"}:n.includes("searching")||n.includes("search")||n.includes("grep")||n.includes("glob")?{icon:Vl,color:"text-purple",label:"Searching"}:n.includes("running")||n.includes("bash")||n.includes("command")||n.includes("exec")?{icon:di,color:"text-orange",label:"Running"}:n.includes("test")||n.includes("pass")?{icon:uf,color:"text-success",label:"Testing"}:n.includes("error")||n.includes("fail")||n.includes("crash")?{icon:on,color:"text-danger",label:"Error"}:n.includes("rotat")?{icon:Yl,color:"text-accent",label:"Rotating"}:n.includes("spawn")||n.includes("start")?{icon:Pa,color:"text-success",label:"Spawned"}:n.includes("tool")||n.includes("function")?{icon:zP,color:"text-text-2",label:"Tool"}:n.includes("complet")||n.includes("done")||n.includes("finish")?{icon:uf,color:"text-success",label:"Done"}:{icon:un,color:"text-text-3",label:"Activity"}}function Ql({text:t}){return t?t.split(/(\*\*[^*]+\*\*|`[^`]+`)/g).map((n,s)=>n.startsWith("**")&&n.endsWith("**")?i.jsx("strong",{className:"font-semibold text-text-0",children:n.slice(2,-2)},s):n.startsWith("`")&&n.endsWith("`")?i.jsx("code",{className:"px-1 py-px rounded bg-accent/8 text-[11px] font-mono text-accent",children:n.slice(1,-1)},s):i.jsx("span",{children:n},s)):null}function H_({text:t}){if(!t)return null;const n=[],s=t.split(`
|
|
613
|
-
`);let l=0;for(;l<s.length;){const o=s[l];if(o.trimStart().startsWith("```")){const d=[],O=o.trim().slice(3);for(l++;l<s.length&&!s[l].trimStart().startsWith("```");)d.push(s[l]),l++;l++,n.push({type:"code",content:d.join(`
|
|
614
|
-
`),lang:O});continue}if(/^#{1,3}\s/.test(o)||/^\*\*[^*]+:\*\*\s*$/.test(o.trim())){const d=o.replace(/^#+\s*/,"").replace(/^\*\*/,"").replace(/:\*\*\s*$/,":").trim();n.push({type:"heading",content:d}),l++;continue}if(/^\s*[-*]\s/.test(o)){const d=[];for(;l<s.length&&/^\s*[-*]\s/.test(s[l]);)d.push(s[l].replace(/^\s*[-*]\s+/,"").trim()),l++;n.push({type:"list",items:d});continue}if(/^\s*\d+[\.)]\s/.test(o)){const d=[];for(;l<s.length&&/^\s*\d+[\.)]\s/.test(s[l]);)d.push(s[l].replace(/^\s*\d+[\.)]\s+/,"").trim()),l++;n.push({type:"numbered",items:d});continue}if(!o.trim()){l++;continue}if(/^(Note|Warning|Important|IMPORTANT|TODO):/i.test(o.trim())){n.push({type:"note",content:o.trim()}),l++;continue}const u=[];for(;l<s.length&&s[l].trim()&&!/^#{1,3}\s/.test(s[l])&&!/^\s*[-*]\s/.test(s[l])&&!/^\s*\d+[\.)]\s/.test(s[l])&&!s[l].trimStart().startsWith("```");)u.push(s[l].trim()),l++;u.length>0&&n.push({type:"para",content:u.join(" ")})}return i.jsx("div",{className:"space-y-2",children:n.map((o,u)=>{switch(o.type){case"heading":return i.jsxs("div",{className:"flex items-center gap-1.5 pt-1.5 first:pt-0",children:[i.jsx("div",{className:"w-1 h-3.5 rounded-full bg-accent/40 flex-shrink-0"}),i.jsx("span",{className:"text-[12px] font-semibold text-text-0 font-sans",children:i.jsx(Ql,{text:o.content})})]},u);case"list":return i.jsx("div",{className:"space-y-1 pl-2",children:o.items.map((d,O)=>i.jsxs("div",{className:"flex gap-2 text-[12px] text-text-0 font-sans leading-relaxed",children:[i.jsx("span",{className:"text-accent/50 mt-0.5 flex-shrink-0",children:"-"}),i.jsx("span",{className:"min-w-0",children:i.jsx(Ql,{text:d})})]},O))},u);case"numbered":return i.jsx("div",{className:"space-y-1 pl-2",children:o.items.map((d,O)=>i.jsxs("div",{className:"flex gap-2 text-[12px] text-text-0 font-sans leading-relaxed",children:[i.jsxs("span",{className:"text-text-4 font-mono w-4 text-right flex-shrink-0",children:[O+1,"."]}),i.jsx("span",{className:"min-w-0",children:i.jsx(Ql,{text:d})})]},O))},u);case"code":return i.jsx("pre",{className:"p-2.5 rounded-md bg-[#0d1117] text-[11px] font-mono text-[#c9d1d9] overflow-x-auto whitespace-pre-wrap border border-white/[0.06] leading-relaxed",children:o.content},u);case"note":return i.jsxs("div",{className:"flex items-start gap-1.5 px-2.5 py-1.5 rounded-md bg-warning/6 border border-warning/12",children:[i.jsx(on,{size:10,className:"text-warning mt-0.5 flex-shrink-0"}),i.jsx("span",{className:"text-[11px] text-warning/80 font-sans",children:i.jsx(Ql,{text:o.content})})]},u);case"para":default:return i.jsx("p",{className:"text-[12px] text-text-0 font-sans leading-relaxed",children:i.jsx(Ql,{text:o.content})},u)}})})}function I_({text:t}){if(!t)return null;const n=t.split(/(```[\s\S]*?```)/g);return i.jsx("span",{children:n.map((s,l)=>{if(s.startsWith("```")&&s.endsWith("```")){const o=s.slice(3,-3).replace(/^\w+\n/,"");return i.jsx("pre",{className:"my-1.5 p-2 rounded-md bg-[#0d1117] text-[11px] font-mono text-[#c9d1d9] overflow-x-auto whitespace-pre-wrap border border-white/[0.06]",children:o},l)}return i.jsx("span",{children:i.jsx(Ql,{text:s})},l)})})}function F_({msg:t}){const n=t.isQuery;return i.jsx("div",{className:"flex justify-end pl-8",children:i.jsxs("div",{className:"max-w-[90%]",children:[n&&i.jsxs("div",{className:"flex items-center justify-end gap-1 mb-1",children:[i.jsx(dc,{size:9,className:"text-info"}),i.jsx("span",{className:"text-2xs text-info font-sans font-medium",children:"Query"})]}),i.jsx("div",{className:le("px-3.5 py-2.5 rounded-lg border","bg-info/10 border-info/25"),children:i.jsx("div",{className:"text-[12px] font-sans whitespace-pre-wrap break-words leading-relaxed text-text-0",children:i.jsx(I_,{text:t.text})})}),i.jsx("div",{className:"text-[10px] text-text-4 font-sans mt-1 text-right",children:vt(t.timestamp)})]})})}function K_({msg:t,agent:n}){var u,d;const[s,l]=y.useState(((u=t.text)==null?void 0:u.length)>600),o=((d=t.text)==null?void 0:d.length)>600;return i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[i.jsx("span",{className:"text-2xs font-semibold text-text-1 font-sans",children:(n==null?void 0:n.name)||"Agent"}),i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:n==null?void 0:n.role}),i.jsx("span",{className:"text-[10px] text-text-4 font-sans ml-auto",children:vt(t.timestamp)})]}),i.jsx("div",{className:"border-l border-accent pl-3.5 py-1",children:i.jsx(H_,{text:s?t.text.slice(0,600)+"...":t.text})}),s&&i.jsxs("button",{onClick:()=>l(!1),className:"ml-3.5 mt-1.5 flex items-center gap-1.5 text-[11px] text-accent/70 hover:text-accent font-sans font-medium cursor-pointer transition-colors",children:[i.jsx(Hn,{size:11}),"Show full response"]}),o&&!s&&i.jsxs("button",{onClick:()=>l(!0),className:"ml-3.5 mt-1.5 flex items-center gap-1.5 text-[11px] text-accent/70 hover:text-accent font-sans font-medium cursor-pointer transition-colors",children:[i.jsx(Hn,{size:11,className:"rotate-180"}),"Collapse"]})]})}function J_({msg:t}){return i.jsxs("div",{className:"flex items-center gap-3 py-2",children:[i.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),i.jsx("span",{className:"text-[10px] text-text-4 font-sans flex-shrink-0 uppercase tracking-wide",children:t.text}),i.jsx("div",{className:"flex-1 h-px bg-border-subtle"})]})}function eZ({entries:t}){var u;const[n,s]=y.useState(0);y.useEffect(()=>{if(t.length<=1)return;const d=setInterval(()=>s(O=>(O+1)%t.length),1500);return()=>clearInterval(d)},[t.length]);const l=t[Math.min(n,t.length-1)];GS(l.text);const o=((u=l.text)==null?void 0:u.length)>60?l.text.slice(0,60)+"...":l.text;return i.jsxs("div",{className:"ml-7 flex items-center gap-2 px-3 py-2 rounded-md bg-surface-3/50 border border-border-subtle/30",children:[i.jsx(Wf,{size:11,className:"text-accent animate-spin flex-shrink-0"}),i.jsx("span",{className:"text-[11px] text-text-2 font-mono truncate flex-1 min-w-0 transition-opacity duration-300",children:o}),t.length>1&&i.jsx("span",{className:"text-[10px] text-text-4 font-mono flex-shrink-0",children:t.length})]})}function tZ({agent:t}){const n=G(m=>m.activityLog[t.id])||kf,s=n[n.length-1],l=s?GS(s.text):null,o=(l==null?void 0:l.icon)||un,u=s&&Date.now()-s.timestamp<1e4,d=u&&s.text?s.text.length>60?s.text.slice(0,60)+"...":s.text:null,O=Math.round((t.contextUsage||0)*100);return i.jsxs("div",{className:"flex items-center gap-3 px-4 h-8 border-b border-border-subtle bg-surface-1/80 flex-shrink-0",children:[i.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[i.jsxs("div",{className:"relative flex items-center justify-center w-4 h-4",children:[i.jsx("span",{className:"absolute inset-0 rounded-full bg-accent/15 animate-ping",style:{animationDuration:"2s"}}),i.jsx("span",{className:"relative w-1.5 h-1.5 rounded-full bg-accent"})]}),u?i.jsxs(i.Fragment,{children:[i.jsx(o,{size:10,className:le(l.color,"flex-shrink-0")}),i.jsx("span",{className:"text-[11px] text-text-2 font-sans truncate",children:d})]}):i.jsx("span",{className:"text-[11px] text-text-3 font-sans",children:"Working..."})]}),i.jsxs("div",{className:"flex items-center gap-3 flex-shrink-0",children:[i.jsx("span",{className:"text-[10px] text-text-4 font-mono",children:aZ(t.tokensUsed)}),i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("div",{className:"w-14 h-1 rounded-full bg-surface-4 overflow-hidden",children:i.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${O}%`,background:O>=75?"var(--color-danger)":O>=50?"var(--color-warning)":"var(--color-accent)"}})}),i.jsxs("span",{className:"text-[10px] text-text-4 font-mono w-7 text-right",children:[O,"%"]})]})]})]})}function aZ(t){return t?t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":String(t):"0"}function nZ({agent:t}){const[n,s]=y.useState([]),l=[{text:`Initializing ${t.name}`,delay:0},{text:`Role: ${t.role}`,delay:400},{text:`Provider: ${t.provider||"claude-code"}`,delay:700},{text:"Loading workspace context",delay:1e3},{text:"Scanning project structure",delay:1400},{text:"Session active",delay:1900}];return y.useEffect(()=>{const o=l.map((u,d)=>setTimeout(()=>s(O=>[...O,d]),u.delay));return()=>o.forEach(clearTimeout)},[]),i.jsxs("div",{className:"flex flex-col px-4 pt-6",children:[i.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[i.jsxs("div",{className:"relative w-9 h-9",children:[i.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-accent/20 animate-ping",style:{animationDuration:"2s"}}),i.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-transparent border-t-accent animate-spin",style:{animationDuration:"1s"}}),i.jsx("span",{className:"absolute inset-[5px] rounded-full bg-accent/8"})]}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-bold text-text-0 font-sans",children:t.name}),i.jsx("p",{className:"text-2xs text-accent font-mono",children:"starting up"})]})]}),i.jsx("div",{className:"space-y-2 pl-3 border-l border-accent/15",children:l.map((o,u)=>{const d=n.includes(u),O=u===l.length-1;return i.jsxs("div",{className:le("flex items-center gap-2.5 transition-all duration-300",d?"opacity-100 translate-x-0":"opacity-0 -translate-x-2"),children:[i.jsx("span",{className:le("w-1 h-1 rounded-full flex-shrink-0",O&&d?"bg-accent":d?"bg-text-3":"bg-transparent")}),i.jsx("span",{className:le("text-[11px] font-mono",O&&d?"text-accent":"text-text-3"),children:o.text}),O&&d&&i.jsxs("span",{className:"flex gap-0.5 ml-1",children:[i.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"0ms"}}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"200ms"}}),i.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"400ms"}})]})]},u)})})]})}function sZ({agent:t}){const n=G(j=>j.chatHistory[t.id])||kf,s=G(j=>j.activityLog[t.id])||kf,l=G(j=>j.instructAgent),o=G(j=>j.queryAgent),[u,d]=y.useState(""),[O,m]=y.useState("instruct"),[p,x]=y.useState(!1),g=y.useRef(null),b=y.useRef(null),v=y.useMemo(()=>{var X;const j=[],P=new Set;for(const $ of n){const W=`${$.from}:${(X=$.text)==null?void 0:X.slice(0,100)}`;j.find(ne=>{var re;return ne.kind==="chat"&&`${ne.from}:${(re=ne.text)==null?void 0:re.slice(0,100)}`===W&&Math.abs(ne.ts-$.timestamp)<5e3})||(j.push({...$,kind:"chat",ts:$.timestamp}),P.add($.text))}const N=P,A=s.slice(-30);for(const $ of A)($.text||"").trim()&&!N.has($.text)&&j.push({...$,kind:"activity",ts:$.timestamp});j.sort(($,W)=>$.ts-W.ts);const U=[];let C=[];for(const $ of j)$.kind==="activity"?C.push($):(C.length>0&&(U.push({kind:"activity-group",entries:C}),C=[]),U.push($));return C.length>0&&U.push({kind:"activity-group",entries:C}),U},[n,s]);y.useEffect(()=>{g.current&&requestAnimationFrame(()=>{g.current&&(g.current.scrollTop=g.current.scrollHeight)})},[v.length]);async function Q(){var P;const j=u.trim();if(!(!j||p)){if(j==="/rotate"){const N=G.getState().rotateAgent;d("");try{await N(t.id)}catch{}return}d(""),x(!0);try{O==="query"?await o(t.id,j):await l(t.id,j)}catch{}x(!1),(P=b.current)==null||P.focus()}}function k(j){j.key==="Enter"&&!j.shiftKey&&(j.preventDefault(),Q())}const T=t.status==="running"||t.status==="starting";return i.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[T&&i.jsx(tZ,{agent:t}),i.jsxs("div",{ref:g,className:"flex-1 overflow-y-auto px-4 py-4 space-y-4",children:[!v.some(j=>j.from==="agent"||j.kind==="activity-group")&&(T?i.jsx(nZ,{agent:t}):i.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center py-8",children:[i.jsx("div",{className:"w-10 h-10 rounded-xl bg-surface-3 flex items-center justify-center mb-3",children:i.jsx(ui,{size:18,className:"text-text-4"})}),i.jsx("p",{className:"text-sm font-semibold text-text-0 font-sans",children:t.name}),i.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Session complete — send a message to continue"})]})),v.map((j,P)=>j.kind==="activity-group"?i.jsx(eZ,{entries:j.entries},`grp-${P}`):j.from==="user"?i.jsx(F_,{msg:j},`msg-${P}`):j.from==="system"?i.jsx(J_,{msg:j},`msg-${P}`):i.jsx(K_,{msg:j,agent:t},`msg-${P}`)),p&&i.jsxs("div",{className:"flex items-center gap-2 ml-7 py-2",children:[i.jsx("div",{className:"w-5 h-5 rounded-md bg-accent/12 flex items-center justify-center",children:i.jsx(un,{size:10,className:"text-accent"})}),i.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-2 rounded-2xl bg-surface-2/60 border border-border-subtle",children:[i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-accent/60 animate-pulse",style:{animationDelay:"0ms"}}),i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-accent/60 animate-pulse",style:{animationDelay:"200ms"}}),i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-accent/60 animate-pulse",style:{animationDelay:"400ms"}})]})]})]}),i.jsxs("div",{className:"border-t border-border px-4 py-3 bg-surface-1/50 flex-shrink-0",children:[i.jsxs("div",{className:"flex items-center gap-1 mb-2",children:[i.jsxs("button",{onClick:()=>m("instruct"),className:le("flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-sans font-medium transition-colors cursor-pointer",O==="instruct"?"bg-accent/12 text-accent border border-accent/20":"text-text-3 hover:text-text-1 hover:bg-surface-3"),children:[i.jsx(Zc,{size:10}),"Instruct"]}),i.jsxs("button",{onClick:()=>m("query"),className:le("flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-sans font-medium transition-colors cursor-pointer",O==="query"?"bg-info/12 text-info border border-info/20":"text-text-3 hover:text-text-1 hover:bg-surface-3"),children:[i.jsx(dc,{size:10}),"Query"]}),i.jsx("span",{className:"text-[10px] text-text-4 font-sans ml-auto",children:O==="query"?"Read-only — agent keeps working":T?"Directs the agent":"Continues the session"})]}),i.jsxs("div",{className:le("flex items-end gap-2 rounded-xl border bg-surface-0 p-1 transition-colors",O==="query"?"border-info/20 focus-within:border-info/40":"border-border-subtle focus-within:border-accent/30"),children:[i.jsx("textarea",{ref:b,value:u,onChange:j=>d(j.target.value),onKeyDown:k,placeholder:O==="query"?"Ask about this agent's work...":T?"Send an instruction...":"Continue this session...",rows:1,className:le("flex-1 resize-none px-3 py-2 text-[13px]","bg-transparent text-text-0 font-sans","placeholder:text-text-4","focus:outline-none","max-h-[120px] min-h-[36px]"),style:{height:Math.min(Math.max(36,u.split(`
|
|
615
|
-
`).length*20),120)}}),i.jsx("button",{onClick:Q,disabled:!u.trim()||p,className:le("w-9 h-9 flex items-center justify-center rounded-lg transition-all cursor-pointer flex-shrink-0 mb-px","disabled:opacity-15 disabled:cursor-not-allowed",u.trim()?O==="query"?"bg-info text-white hover:bg-info/85":"bg-accent text-white hover:bg-accent/85":"bg-transparent text-text-4"),children:p?i.jsx(Wf,{size:15,className:"animate-spin"}):i.jsx(Ff,{size:15})})]})]})]})}function KO({options:t,value:n,onChange:s}){return i.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:t.map(l=>i.jsx("button",{onClick:()=>s(l.value),className:le("flex-1 px-3 py-1.5 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",n===l.value?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:l.label},l.value))})}function fa({label:t,icon:n,children:s,description:l}){return i.jsxs("div",{className:"space-y-2",children:[i.jsxs("div",{children:[i.jsxs("label",{className:"flex items-center gap-1.5 text-xs font-semibold text-text-1 font-sans",children:[n&&i.jsx(n,{size:13,className:"text-text-3"}),t]}),l&&i.jsx("p",{className:"text-2xs text-text-4 font-sans mt-0.5",children:l})]}),s]})}function lZ({agent:t}){const n=G(Q=>Q.killAgent),s=G(Q=>Q.rotateAgent),l=G(Q=>Q.spawnAgent),o=G(Q=>Q.closeDetail),u=G(Q=>Q.addToast),[d,O]=y.useState(null),[m,p]=y.useState(!1),x=t.status==="running"||t.status==="starting";async function g(){O("rotate");try{await s(t.id)}catch{}O(null)}async function b(){if(!m){p(!0),setTimeout(()=>p(!1),3e3);return}O("kill");try{await n(t.id),o()}catch{}O(null),p(!1)}async function v(){O("clone");try{await l({role:t.role,provider:t.provider,model:t.model,name:`${t.name}-clone`,scope:t.scope,workingDir:t.workingDir}),u("success",`Cloned ${t.name}`)}catch{}O(null)}return x?i.jsx("div",{className:"space-y-2",children:i.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[i.jsxs(je,{variant:"primary",size:"md",onClick:g,disabled:d==="rotate",className:"gap-1.5",children:[i.jsx(Yl,{size:12,className:d==="rotate"?"animate-spin":""}),"Rotate"]}),i.jsxs(je,{variant:"info",size:"md",onClick:v,disabled:!!d,className:"gap-1.5",children:[i.jsx(Of,{size:12})," Clone"]}),i.jsxs(je,{variant:"danger",size:"md",onClick:b,disabled:d==="kill",className:"gap-1.5",children:[i.jsx(Kf,{size:12}),m?"Confirm":"Kill"]})]})}):i.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[i.jsxs(je,{variant:"info",size:"md",onClick:v,disabled:!!d,className:"gap-1.5",children:[i.jsx(Of,{size:12})," Clone"]}),i.jsxs(je,{variant:"danger",size:"md",onClick:b,disabled:d==="kill",className:"gap-1.5",children:[i.jsx(Oi,{size:12}),m?"Confirm":"Remove"]})]})}function rZ({agent:t}){var Xe;const n=G(D=>D.addToast),[s,l]=y.useState([]),[o,u]=y.useState(t.model||""),[d,O]=y.useState(""),[m,p]=y.useState(t.effort||"default"),[x,g]=y.useState(!1),[b,v]=y.useState(""),[Q,k]=y.useState(null),[T,j]=y.useState(!1),[P,N]=y.useState(null),[A,U]=y.useState(t.routingMode||"auto"),[C,X]=y.useState([]),[$,W]=y.useState("hr"),[E,ne]=y.useState("1"),[re,xe]=y.useState(!1),ie=t.status==="running"||t.status==="starting";y.useEffect(()=>{J(),ee.get("/skills/installed").then(oe=>X(Array.isArray(oe)?oe:oe.skills||[])).catch(()=>{});function D(){J()}return window.addEventListener("groove:providers-changed",D),()=>window.removeEventListener("groove:providers-changed",D)},[]);function J(){ee.get("/providers").then(D=>l(Array.isArray(D)?D:[])).catch(()=>{})}y.useEffect(()=>{u(t.model||""),ee.get(`/agents/${t.id}/routing/recommend`).then(D=>{U((D==null?void 0:D.mode)||"fixed")}).catch(()=>{})},[t.id,t.model]);const z=s.find(D=>D.id===t.provider);async function B(D,oe){u(oe);try{await ee.patch(`/agents/${t.id}`,{model:oe}),n("success",`Model → ${oe}`)}catch(ze){n("error","Model swap failed",ze.message)}}async function I(D){try{await ee.patch(`/agents/${t.id}`,{workingDir:D}),n("success",`Working dir → ${D.split("/").pop()||D}`)}catch(oe){n("error","Update failed",oe.message)}}async function fe(D){p(D);try{await ee.patch(`/agents/${t.id}`,{effort:D}),n("success",`Effort → ${D}`)}catch(oe){n("error","Update failed",oe.message)}}async function te(D){if(!D.trim())return;const oe=[...t.scope||[],D.trim()];try{await ee.patch(`/agents/${t.id}`,{scope:oe}),O("")}catch(ze){n("error","Scope update failed",ze.message)}}async function Ae(D){const oe=(t.scope||[]).filter((ze,Ot)=>Ot!==D);try{await ee.patch(`/agents/${t.id}`,{scope:oe})}catch(ze){n("error","Scope update failed",ze.message)}}async function Se(D){if(b.trim())try{await ee.post(`/credentials/${D}`,{key:b.trim()}),n("success",`API key set for ${D}`),v(""),k(null),J(),window.dispatchEvent(new CustomEvent("groove:providers-changed"))}catch(oe){n("error","Failed to set key",oe.message)}}const ve=t.spawnedAt||t.createdAt;return i.jsxs("div",{className:"px-5 py-5 space-y-6 overflow-y-auto h-full",children:[i.jsx(fa,{label:"Active Model",icon:Gf,children:i.jsxs("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("div",{className:"text-sm font-bold font-mono text-text-0",children:t.model||"auto"}),i.jsx("div",{className:"text-2xs text-text-3 font-sans mt-0.5",children:(z==null?void 0:z.name)||t.provider})]}),(z==null?void 0:z.canHotSwap)&&ie&&i.jsxs(Le,{variant:"accent",className:"text-2xs gap-1",children:[i.jsx(Pa,{size:8})," Hot-swap"]})]}),((Xe=z==null?void 0:z.models)==null?void 0:Xe.length)>1&&i.jsx("div",{className:"flex flex-wrap gap-1.5 mt-3 pt-3 border-t border-border-subtle",children:z.models.map(D=>{const oe=D.id===t.model,ze=!ie||z.canHotSwap;return i.jsx("button",{onClick:()=>ze&&B(t.provider,D.id),disabled:!ze,className:le("px-2.5 py-1 rounded-md text-xs font-mono transition-all",ze?"cursor-pointer":"cursor-not-allowed opacity-40",oe?"bg-accent/15 text-accent font-semibold":"bg-surface-4 text-text-2 hover:bg-surface-5 hover:text-text-0"),children:D.name||D.id},D.id)})})]})}),i.jsx(lZ,{agent:t}),i.jsxs(fa,{label:"Providers",icon:Fg,description:"Click a provider to see its models and connection status.",children:[i.jsx("div",{className:"space-y-1.5",children:s.map(D=>{const oe=D.id===t.provider,ze=D.installed||D.hasKey,Ot=P===D.id,_e=D.models||[];return i.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-0 overflow-hidden",children:[i.jsxs("button",{onClick:()=>N(Ot?null:D.id),className:"w-full flex items-center gap-2.5 px-3 py-2 cursor-pointer hover:bg-surface-4/50 transition-colors",children:[i.jsx("div",{className:le("w-2 h-2 rounded-full flex-shrink-0",ze?"bg-success":"bg-text-4")}),i.jsx("span",{className:le("text-xs font-semibold font-sans flex-1 text-left",ze?"text-text-0":"text-text-3"),children:D.name||D.id}),oe&&i.jsx(Le,{variant:"accent",className:"text-2xs",children:"Active"}),!ze&&i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:D.authType==="local"?"Not installed":"No key"}),i.jsx(Hn,{size:12,className:le("text-text-4 transition-transform",Ot&&"rotate-180")})]}),Ot&&D.authType==="local"&&i.jsx("div",{className:"border-t border-border-subtle",children:i.jsx(rS,{isInstalled:ze,onModelChange:J})}),Ot&&D.authType!=="local"&&i.jsxs("div",{className:"border-t border-border-subtle",children:[(!ze||D.hasKey)&&i.jsx("div",{className:"px-3 py-2 bg-surface-1/50",children:Q===D.id?i.jsxs("div",{className:"flex gap-1.5",children:[i.jsxs("div",{className:"flex-1 relative",children:[i.jsx("input",{value:b,onChange:at=>v(at.target.value),onKeyDown:at=>at.key==="Enter"&&Se(D.id),type:T?"text":"password",placeholder:`${D.name||D.id} API key...`,className:"w-full h-7 px-2.5 pr-7 text-2xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),i.jsx("button",{onClick:()=>j(!T),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:T?i.jsx(Df,{size:10}):i.jsx(ci,{size:10})})]}),i.jsx(je,{variant:"primary",size:"sm",onClick:()=>Se(D.id),disabled:!b.trim(),className:"h-7 px-2 text-2xs",children:"Save"}),i.jsx(je,{variant:"ghost",size:"sm",onClick:()=>{k(null),v("")},className:"h-7 px-2 text-2xs",children:"Cancel"})]}):i.jsxs("button",{onClick:()=>{k(D.id),v(""),j(!1)},className:"flex items-center gap-1.5 text-2xs text-text-3 hover:text-accent font-sans cursor-pointer transition-colors",children:[i.jsx(fc,{size:10}),ze?"Update API key":"Add API key to enable"]})}),ze&&_e.length>0&&_e.map(at=>{const bt=D.id===t.provider&&at.id===t.model,yt=!ie;return i.jsxs("button",{onClick:()=>yt&&B(D.id,at.id),disabled:!yt,className:le("w-full flex items-center gap-2 px-3 py-2 text-left text-xs font-sans transition-colors","border-t border-border-subtle",yt?"cursor-pointer hover:bg-surface-4/50":"cursor-not-allowed opacity-40",bt?"text-accent":"text-text-2"),children:[bt?i.jsx(ia,{size:11,className:"text-accent flex-shrink-0"}):i.jsx("div",{className:"w-[11px]"}),i.jsx("span",{className:"font-mono flex-1 truncate",children:at.name||at.id}),i.jsx(Le,{variant:bt?"accent":"default",className:"text-2xs",children:at.tier})]},at.id)})]})]},D.id)})}),ie&&i.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-3 font-sans mt-1.5",children:[i.jsx(on,{size:10}),i.jsx("span",{children:"Stop agent to switch providers."})]})]}),i.jsx(fa,{label:"Working Directory",icon:Ir,description:"The root directory this agent operates in.",children:i.jsxs("div",{className:"flex gap-2",children:[i.jsx("div",{className:"flex-1 bg-surface-0 rounded-lg px-3 py-2.5 text-sm font-mono text-text-1 border border-border-subtle truncate min-w-0",children:t.workingDir||"Project root"}),i.jsxs(je,{variant:"secondary",size:"md",onClick:()=>g(!0),className:"gap-1.5 flex-shrink-0",children:[i.jsx(Nb,{size:14})," Browse"]})]})}),i.jsx(fa,{label:"Permission Mode",icon:Kr,description:"Full Send = no approvals. Agent Approve = Fullstack Manager reviews risky operations.",children:i.jsx(KO,{options:[{value:"full",label:"Full Send"},{value:"auto",label:"Agent Approve"}],value:t.permission||"full",onChange:async D=>{try{await ee.patch(`/agents/${t.id}`,{permission:D}),n("success",`Permission → ${D==="full"?"Full Send":"Agent Approve"}`)}catch(oe){n("error","Update failed",oe.message)}}})}),i.jsxs(fa,{label:"Model Routing",icon:cc,description:"How Groove selects models for this agent's tasks.",children:[i.jsx(KO,{options:[{value:"fixed",label:"Fixed"},{value:"auto",label:"Auto"},{value:"auto-floor",label:"Auto + Floor"}],value:A,onChange:async D=>{U(D);try{await ee.post(`/agents/${t.id}/routing`,{mode:D}),n("success",`Routing → ${D}`)}catch(oe){n("error","Update failed",oe.message)}}}),i.jsxs("div",{className:"text-2xs text-text-4 font-sans mt-1",children:[A==="fixed"&&"Uses the selected model for all tasks.",A==="auto"&&"Groove picks Opus/Sonnet/Haiku based on task complexity.",A==="auto-floor"&&"Auto-routes but never drops below Sonnet."]})]}),i.jsx(fa,{label:"File Scope",icon:Kr,description:"Restrict which files this agent can access. Empty = unrestricted.",children:i.jsxs("div",{className:"flex flex-wrap gap-2",children:[(t.scope||[]).map((D,oe)=>i.jsxs(Le,{variant:"default",className:"font-mono text-xs gap-1.5 px-2.5 py-1",children:[D,i.jsx("button",{onClick:()=>Ae(oe),className:"hover:text-danger cursor-pointer",children:i.jsx(Rt,{size:10})})]},oe)),i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("input",{value:d,onChange:D=>O(D.target.value),onKeyDown:D=>D.key==="Enter"&&te(d),placeholder:"e.g. src/**",className:"w-28 h-7 px-2.5 text-xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent"}),i.jsx("button",{onClick:()=>te(d),disabled:!d.trim(),className:"w-7 h-7 flex items-center justify-center rounded-md bg-surface-4 border border-border-subtle text-text-3 hover:text-accent cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:i.jsx(In,{size:12})})]})]})}),i.jsx(fa,{label:"Effort Level",icon:Rb,description:"Controls how deep the agent reasons. Higher = more tokens but better results.",children:i.jsx(KO,{options:[{value:"min",label:"Min"},{value:"low",label:"Low"},{value:"default",label:"Default"},{value:"high",label:"High"},{value:"max",label:"Max"}],value:m,onChange:fe})}),i.jsx(fa,{label:"Agent Details",icon:Fg,children:i.jsxs("div",{className:"bg-surface-0 rounded-lg border border-border-subtle divide-y divide-border-subtle",children:[i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"ID"}),i.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.id})]}),i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Role"}),i.jsx("span",{className:"text-xs text-text-1 font-sans capitalize",children:t.role})]}),i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Provider"}),i.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.provider})]}),i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Model"}),i.jsx("span",{className:"text-xs text-text-1 font-mono",children:t.model||"auto"})]}),i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Status"}),i.jsx("span",{className:"text-xs text-text-1 font-sans capitalize",children:t.status})]}),i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Spawned"}),i.jsx("span",{className:"text-xs text-text-1 font-sans",children:ve?vt(ve):"—"})]}),t.sessionId&&i.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[i.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Session"}),i.jsxs("span",{className:"text-xs text-text-1 font-mono",children:[t.sessionId.slice(0,16),"..."]})]})]})}),i.jsx(fa,{label:"Skills",icon:Lb,description:"Attach installed skills to this agent's context.",children:i.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[(t.skills||[]).map(D=>i.jsxs(Le,{variant:"accent",className:"font-mono text-xs gap-1.5 px-2.5 py-1",children:[D,i.jsx("button",{onClick:async()=>{try{await ee.delete(`/agents/${t.id}/skills/${D}`),n("success",`Detached ${D}`)}catch(oe){n("error","Detach failed",oe.message)}},className:"hover:text-danger cursor-pointer",children:i.jsx(Rt,{size:10})})]},D)),C.filter(D=>!(t.skills||[]).includes(D.id)).length>0&&i.jsxs("div",{className:"relative group",children:[i.jsx("button",{className:"w-7 h-7 flex items-center justify-center rounded-md bg-surface-4 border border-border-subtle text-text-3 hover:text-accent cursor-pointer transition-colors",children:i.jsx(In,{size:12})}),i.jsx("div",{className:"absolute top-full left-0 mt-1 z-20 hidden group-hover:block bg-surface-2 border border-border-subtle rounded-lg shadow-xl py-1 min-w-[160px]",children:C.filter(D=>!(t.skills||[]).includes(D.id)).map(D=>i.jsx("button",{onClick:async()=>{try{await ee.post(`/agents/${t.id}/skills/${D.id}`),n("success",`Attached ${D.name||D.id}`)}catch(oe){n("error","Attach failed",oe.message)}},className:"w-full text-left px-3 py-1.5 text-xs font-sans text-text-1 hover:bg-surface-4 cursor-pointer transition-colors",children:D.name||D.id},D.id))})]}),(t.skills||[]).length===0&&C.length===0&&i.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"No skills installed — browse the Marketplace"})]})}),i.jsx(fa,{label:"Schedule",icon:uc,description:"Run this agent on a recurring schedule.",children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("span",{className:"text-xs text-text-2 font-sans",children:"Every"}),i.jsx("input",{value:E,onChange:D=>ne(D.target.value.replace(/\D/g,"").slice(0,3)),className:"w-12 h-7 px-2 text-xs text-center bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono focus:outline-none focus:ring-1 focus:ring-accent",placeholder:"1"}),i.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:[{value:"min",label:"Min"},{value:"hr",label:"Hr"},{value:"day",label:"Day"},{value:"wk",label:"Wk"},{value:"mo",label:"Mo"}].map(D=>i.jsx("button",{onClick:()=>W(D.value),className:le("px-2 py-1 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",$===D.value?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:D.label},D.value))}),i.jsxs(je,{variant:"primary",size:"sm",disabled:re||!E||parseInt(E,10)<1,onClick:async()=>{const D=parseInt(E,10);if(!D||D<1)return;const oe={min:D===1?"* * * * *":`*/${D} * * * *`,hr:D===1?"0 * * * *":`0 */${D} * * *`,day:D===1?"0 0 * * *":`0 0 */${D} * *`,wk:`0 0 * * ${D===1?"1":"*"}`,mo:`0 0 ${D===1?"1":D} * *`};xe(!0);try{await ee.post("/schedules",{name:`${t.name} schedule`,cron:oe[$],agentConfig:{role:t.role,provider:t.provider,model:t.model,scope:t.scope,workingDir:t.workingDir,prompt:t.prompt}}),n("success",`Scheduled every ${D} ${$}`)}catch(ze){n("error","Schedule failed",ze.message)}xe(!1)},className:"h-7 px-3 text-2xs gap-1",children:[i.jsx(uc,{size:10}),re?"...":"Set"]})]})}),t.prompt&&i.jsx(fa,{label:"Original Prompt",icon:cc,children:i.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3 py-3 text-xs text-text-2 font-sans leading-relaxed max-h-40 overflow-y-auto",children:t.prompt})}),i.jsx(MS,{open:x,onOpenChange:g,currentPath:t.workingDir||"/",onSelect:I})]})}const p0=[];function iZ({data:t,isAlive:n,height:s=48}){const l=y.useRef(null);return y.useEffect(()=>{const o=l.current;if(!o||!t.length)return;const u=o.getContext("2d"),d=window.devicePixelRatio||1,O=o.clientWidth,m=o.clientHeight;o.width=O*d,o.height=m*d,u.scale(d,d),u.clearRect(0,0,O,m);const p=t.map(Q=>Q.v),x=Math.min(...p),b=Math.max(...p,1)-x||1;u.beginPath(),u.moveTo(0,m),t.forEach((Q,k)=>{const T=k/(t.length-1)*O,j=m-(Q.v-x)/b*(m-4)-2;u.lineTo(T,j)}),u.lineTo(O,m),u.closePath();const v=u.createLinearGradient(0,0,0,m);if(v.addColorStop(0,n?"rgba(51,175,188,0.15)":"rgba(110,118,129,0.08)"),v.addColorStop(1,"rgba(0,0,0,0)"),u.fillStyle=v,u.fill(),u.beginPath(),u.strokeStyle=n?pe.accent:pe.text3,u.lineWidth=1.5,t.forEach((Q,k)=>{const T=k/(t.length-1)*O,j=m-(Q.v-x)/b*(m-4)-2;k===0?u.moveTo(T,j):u.lineTo(T,j)}),u.stroke(),t.length>1&&n){const Q=t[t.length-1],k=O-1,T=m-(Q.v-x)/b*(m-4)-2;u.beginPath(),u.arc(k,T,5,0,Math.PI*2),u.fillStyle="rgba(51,175,188,0.3)",u.fill(),u.beginPath(),u.arc(k,T,2.5,0,Math.PI*2),u.fillStyle=pe.accent,u.fill()}},[t,n]),i.jsx("div",{className:"w-full rounded-lg bg-surface-0 overflow-hidden border border-border-subtle",style:{height:s},children:i.jsx("canvas",{ref:l,className:"w-full h-full"})})}function Wo({icon:t,label:n,value:s,color:l,sub:o}){return i.jsxs("div",{className:"bg-surface-0 rounded-lg px-3 py-2.5 border border-border-subtle",children:[i.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[i.jsx(t,{size:12,className:l||"text-text-3"}),i.jsx("span",{className:"text-2xs text-text-4 font-sans uppercase tracking-wider",children:n})]}),i.jsx("div",{className:le("text-lg font-bold font-mono tabular-nums",l||"text-text-0"),children:s}),o&&i.jsx("div",{className:"text-2xs text-text-4 font-sans mt-0.5",children:o})]})}function oZ({score:t}){const n=Math.min(Math.max(t,0),100);let s=pe.success,l="Healthy";return n<40?(s=pe.danger,l="Degraded"):n<70&&(s=pe.warning,l="Fair"),i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[i.jsxs("span",{className:"text-2xs text-text-3 font-sans flex items-center gap-1.5",children:[i.jsx(hT,{size:11}),"Session Health"]}),i.jsxs("span",{className:"text-xs font-bold font-mono",style:{color:s},children:[n,"/100"]})]}),i.jsx("div",{className:"h-2 bg-surface-0 rounded-full overflow-hidden border border-border-subtle",children:i.jsx("div",{className:"h-full rounded-full transition-all duration-700",style:{width:`${n}%`,background:s}})}),i.jsx("span",{className:"text-2xs font-sans mt-1 block",style:{color:s},children:l})]})}function cZ(t){const n=(t||"").toLowerCase();return n.includes("edit")||n.includes("writ")?{icon:Pb,color:"text-warning"}:n.includes("read")||n.includes("view")?{icon:ci,color:"text-info"}:n.includes("search")||n.includes("grep")||n.includes("glob")?{icon:Vl,color:"text-purple"}:n.includes("bash")||n.includes("command")||n.includes("terminal")?{icon:di,color:"text-orange"}:n.includes("error")||n.includes("fail")?{icon:on,color:"text-danger"}:n.includes("spawn")||n.includes("start")?{icon:Pa,color:"text-success"}:n.includes("complet")||n.includes("done")?{icon:uf,color:"text-success"}:{icon:df,color:"text-text-4"}}function uZ({agent:t}){const n=G(d=>d.tokenTimeline[t.id])||p0,s=G(d=>d.activityLog[t.id])||p0,l=t.status==="running"||t.status==="starting",o=y.useMemo(()=>{if(n.length<2)return 0;const d=n.slice(-10),O=(d[d.length-1].t-d[0].t)/6e4,m=d[d.length-1].v-d[0].v;return O>0?Math.round(m/O):0},[n]),u=y.useMemo(()=>{const d=t.contextUsage||0;let O=100;return d>90?O-=50:d>70?O-=25:d>50&&(O-=10),o>5e3?O-=15:o>3e3&&(O-=8),t.status==="crashed"&&(O=10),t.status==="completed"&&(O=95),Math.max(0,Math.min(100,O))},[t.contextUsage,t.status,o]);return i.jsxs("div",{className:"px-5 py-5 space-y-5 overflow-y-auto h-full",children:[i.jsxs("div",{children:[i.jsxs("div",{className:"flex items-center justify-between mb-2",children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Token Burn"}),l&&i.jsx("span",{className:"text-2xs text-accent font-mono animate-pulse",children:"LIVE"})]}),i.jsx(iZ,{data:n,isAlive:l,height:56})]}),i.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[i.jsx(Wo,{icon:aT,label:"Burn Rate",value:o>0?`${Je(o)}/m`:"—",color:o>5e3?"text-danger":o>2e3?"text-warning":"text-text-0"}),i.jsx(Wo,{icon:L5,label:"Cost",value:Ec(t.costUsd||0),color:"text-text-0"}),i.jsx(Wo,{icon:Yl,label:"Rotations",value:t.rotations||"0",color:"text-text-0"}),i.jsx(Wo,{icon:Pa,label:"Turns",value:t.turns||"0",color:"text-text-0"})]}),i.jsx(oZ,{score:u}),t.prompt&&i.jsxs("div",{children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider block mb-1.5",children:"Task"}),i.jsx("div",{className:"bg-surface-0 rounded-lg px-3 py-2.5 text-xs text-text-2 font-sans leading-relaxed max-h-28 overflow-y-auto border border-border-subtle",children:t.prompt})]}),s.length>0&&i.jsxs("div",{children:[i.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider block mb-2",children:"Activity"}),i.jsxs("div",{className:"space-y-0 relative",children:[i.jsx("div",{className:"absolute left-[9px] top-2 bottom-2 w-px bg-border-subtle"}),s.slice(-12).reverse().map((d,O)=>{const m=cZ(d.text),p=m.icon;return i.jsxs("div",{className:"flex items-start gap-3 py-1.5 relative",children:[i.jsx("div",{className:le("w-[18px] h-[18px] rounded-full flex items-center justify-center flex-shrink-0 z-10","bg-surface-1 border border-border-subtle"),children:i.jsx(p,{size:9,className:m.color})}),i.jsx("span",{className:"text-2xs text-text-2 font-sans flex-1 line-clamp-1 pt-0.5",children:d.text}),i.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0 pt-0.5",children:vt(d.timestamp)})]},O)})]})]})]})}function dZ({agent:t}){const n=G(P=>P.addToast),[s,l]=y.useState([]),[o,u]=y.useState(""),[d,O]=y.useState(null),[m,p]=y.useState(""),[x,g]=y.useState(""),[b,v]=y.useState(!1);async function Q(){try{const P=await ee.get(`/agents/${t.id}/mdfiles`);l(P.files||[]),u(P.workingDir||"")}catch{}}y.useEffect(()=>{Q()},[t.id]);async function k(P){try{const N=await ee.get(`/agents/${t.id}/mdfiles/read?path=${encodeURIComponent(P)}`);p(N.content||""),g(N.content||""),O(P)}catch(N){n("error","Failed to read file",N.message)}}async function T(){if(d){v(!0);try{await ee.put(`/agents/${t.id}/mdfiles/write`,{path:d,content:m}),g(m),n("success",`Saved ${d}`)}catch(P){n("error","Save failed",P.message)}v(!1)}}const j=m!==x;return d?i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-border-subtle",children:[i.jsx("button",{onClick:()=>{O(null),p(""),g("")},className:"p-1 text-text-3 hover:text-text-0 cursor-pointer",children:i.jsx($b,{size:14})}),i.jsx(Ln,{size:12,className:"text-accent"}),i.jsx("span",{className:"text-xs text-text-0 font-sans font-medium flex-1 truncate",children:d}),j&&i.jsx("span",{className:"text-[10px] text-warning font-sans",children:"unsaved"}),i.jsxs("button",{onClick:T,disabled:!j||b,className:le("flex items-center gap-1 px-2.5 py-1 rounded text-2xs font-sans font-medium cursor-pointer transition-colors",j?"bg-accent/15 text-accent hover:bg-accent/25":"text-text-4 opacity-50 cursor-not-allowed"),children:[i.jsx(lP,{size:10}),b?"Saving...":"Save"]})]}),i.jsx("textarea",{value:m,onChange:P=>p(P.target.value),className:"flex-1 w-full px-4 py-3 bg-surface-0 text-[12px] font-mono text-text-1 leading-relaxed resize-none focus:outline-none",spellCheck:!1})]}):i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"flex items-center gap-2 px-4 py-2.5 border-b border-border-subtle",children:[i.jsx(Ln,{size:12,className:"text-text-3"}),i.jsx("span",{className:"text-2xs font-semibold text-text-2 font-sans uppercase tracking-wider flex-1",children:"Markdown Files"}),i.jsx("button",{onClick:Q,className:"p-1 text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(Jn,{size:11})})]}),o&&i.jsx("div",{className:"px-4 py-1.5 text-[10px] text-text-4 font-mono truncate border-b border-border-subtle/50",children:o}),i.jsx("div",{className:"flex-1 overflow-y-auto",children:s.length===0?i.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-4",children:[i.jsx(Ln,{size:20,className:"text-text-4 mb-2"}),i.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No markdown files found"}),i.jsx("p",{className:"text-[10px] text-text-4 font-sans mt-1",children:"MD files in the agent's working directory will appear here"})]}):i.jsx("div",{className:"py-1",children:s.map(P=>i.jsxs("button",{onClick:()=>k(P.path),className:"w-full flex items-center gap-2.5 px-4 py-2 text-left hover:bg-surface-5 transition-colors cursor-pointer",children:[i.jsx(Ln,{size:13,className:"text-accent flex-shrink-0"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("span",{className:"text-xs text-text-0 font-sans block truncate",children:P.name}),i.jsx("span",{className:"text-[10px] text-text-4 font-mono",children:P.path})]}),i.jsx("span",{className:"text-[10px] text-text-4 font-mono flex-shrink-0",children:P.size>1024?`${(P.size/1024).toFixed(1)}K`:`${P.size}B`})]},P.path))})})]})}const OZ={running:"success",starting:"warning",stopped:"default",crashed:"danger",completed:"accent",killed:"default",rotating:"purple"},fZ={running:"Running",starting:"Starting",stopped:"Stopped",crashed:"Crashed",completed:"Done",killed:"Killed",rotating:"Rotating"},hZ=[{id:"command",label:"Chat",icon:ui},{id:"config",label:"Config",icon:Ub},{id:"telemetry",label:"Monitor",icon:cc},{id:"mdfiles",label:"Files",icon:Ln}];function mZ({agent:t}){const n=G(m=>m.addToast),[s,l]=y.useState(!1),[o,u]=y.useState(t.name),d=y.useRef(null);async function O(){const m=o.trim();if(!m||m===t.name){l(!1);return}try{await ee.patch(`/agents/${t.id}`,{name:m.replace(/\s+/g,"-")}),n("success",`Renamed → ${m}`)}catch(p){n("error","Rename failed",p.message),u(t.name)}l(!1)}return s?i.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0",children:[i.jsx("input",{ref:d,value:o,onChange:m=>u(m.target.value),onKeyDown:m=>{m.key==="Enter"&&O(),m.key==="Escape"&&(u(t.name),l(!1))},className:"flex-1 min-w-0 h-6 px-1.5 text-sm font-bold bg-surface-0 border border-accent/30 rounded text-text-0 font-sans focus:outline-none focus:ring-1 focus:ring-accent/40",autoFocus:!0}),i.jsx("button",{onClick:O,className:"p-0.5 text-accent hover:text-accent/80 cursor-pointer",children:i.jsx(ia,{size:12})}),i.jsx("button",{onClick:()=>{u(t.name),l(!1)},className:"p-0.5 text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(Rt,{size:12})})]}):i.jsxs("div",{className:"flex items-center gap-1.5 flex-1 min-w-0 group",children:[i.jsx("h2",{className:"text-sm font-bold text-text-0 font-sans truncate",children:t.name}),i.jsx("button",{onClick:()=>{u(t.name),l(!0)},className:"p-0.5 text-text-4 opacity-0 group-hover:opacity-100 hover:text-text-1 cursor-pointer transition-opacity",children:i.jsx(Zc,{size:10})})]})}function pZ(){const t=G(p=>p.detailPanel),n=G(p=>p.agents),[s,l]=y.useState("command");if((t==null?void 0:t.type)!=="agent")return null;const o=n.find(p=>p.id===t.agentId);if(!o)return null;const u=o.status==="running"||o.status==="starting",d=Math.round((o.contextUsage||0)*100),O=o.spawnedAt||o.createdAt,m=O?Math.floor((Date.now()-new Date(O).getTime())/1e3):0;return Bb(o.role),i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"flex-shrink-0",children:[i.jsxs("div",{className:"pl-4 pr-10 pt-3 pb-2",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(mZ,{agent:o}),i.jsx(Le,{variant:OZ[o.status]||"default",dot:u?"pulse":void 0,className:"text-2xs flex-shrink-0",children:fZ[o.status]||o.status})]}),i.jsxs("div",{className:"flex items-center gap-2 mt-1 text-2xs text-text-3 font-mono",children:[i.jsx("span",{className:"capitalize",children:o.role}),i.jsx("span",{className:"text-text-4",children:"·"}),i.jsxs("span",{children:[o.provider,":",o.model||"auto"]}),i.jsx("span",{className:"text-text-4",children:"·"}),i.jsxs("span",{children:[Je(o.tokensUsed||0)," tok"]}),d>0&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-text-4",children:"·"}),i.jsxs("span",{className:le(d>80?"text-danger":d>60?"text-warning":"text-text-3"),children:[d,"% ctx"]})]}),i.jsx("span",{className:"text-text-4",children:"·"}),i.jsx("span",{children:qc(m)})]})]}),i.jsx("div",{className:"flex items-center px-4 border-b border-border-subtle",children:hZ.map(p=>{const x=p.icon,g=s===p.id;return i.jsxs("button",{onClick:()=>l(p.id),className:le("flex items-center gap-1.5 px-3 py-2 text-2xs font-semibold font-sans transition-all cursor-pointer select-none border-b-2 -mb-px",g?"border-accent text-text-0":"border-transparent text-text-3 hover:text-text-1"),children:[i.jsx(x,{size:11}),p.label]},p.id)})})]}),i.jsxs("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[s==="command"&&i.jsx(sZ,{agent:o}),s==="config"&&i.jsx(rZ,{agent:o}),s==="telemetry"&&i.jsx(uZ,{agent:o}),s==="mdfiles"&&i.jsx(dZ,{agent:o})]})]})}const $f=y.forwardRef(({className:t,label:n,error:s,mono:l,...o},u)=>i.jsxs("div",{className:"flex flex-col gap-1",children:[n&&i.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:n}),i.jsx("input",{ref:u,className:le("h-8 w-full rounded-md px-3 text-sm","bg-surface-1 border border-border text-text-0","placeholder:text-text-4","focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent","disabled:opacity-40 disabled:cursor-not-allowed","transition-colors duration-100",l?"font-mono":"font-sans",s&&"border-danger focus:ring-danger",t),...o}),s&&i.jsx("span",{className:"text-2xs text-danger font-sans",children:s})]}));$f.displayName="Input";const LS=y.forwardRef(({className:t,label:n,error:s,mono:l,...o},u)=>i.jsxs("div",{className:"flex flex-col gap-1",children:[n&&i.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:n}),i.jsx("textarea",{ref:u,className:le("w-full rounded-md px-3 py-2 text-sm resize-none","bg-surface-1 border border-border text-text-0","placeholder:text-text-4","focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent","disabled:opacity-40 disabled:cursor-not-allowed","transition-colors duration-100",l?"font-mono":"font-sans",s&&"border-danger focus:ring-danger",t),...o}),s&&i.jsx("span",{className:"text-2xs text-danger font-sans",children:s})]}));LS.displayName="Textarea";const xZ=[{id:"planner",label:"Planner",desc:"Plans the team and tasks",icon:Yb,tier:"Heavy"},{id:"backend",label:"Backend",desc:"APIs, services, databases",icon:Vb,tier:"Medium"},{id:"frontend",label:"Frontend",desc:"UI, components, styling",icon:Hf,tier:"Medium"},{id:"fullstack",label:"Fullstack",desc:"End-to-end implementation",icon:un,tier:"Heavy"},{id:"testing",label:"Testing",desc:"Tests, coverage, QA",icon:Jf,tier:"Medium"},{id:"devops",label:"DevOps",desc:"CI/CD, infra, deployment",icon:E5,tier:"Medium"},{id:"docs",label:"Docs",desc:"Documentation, guides",icon:Ln,tier:"Light"},{id:"security",label:"Security",desc:"Audits, vulnerabilities",icon:Kr,tier:"Medium"},{id:"database",label:"Database",desc:"Schema, migrations, queries",icon:U5,tier:"Medium"},{id:"cmo",label:"CMO",desc:"Marketing, content, growth",icon:RT,tier:"Medium"},{id:"cfo",label:"CFO",desc:"Finance, metrics, forecasting",icon:j5,tier:"Medium"},{id:"ea",label:"EA",desc:"Executive assistant, scheduling",icon:wP,tier:"Light"},{id:"support",label:"Support",desc:"Customer support, FAQs",icon:OT,tier:"Medium"},{id:"analyst",label:"Analyst",desc:"Data analysis, insights",icon:_c,tier:"Medium"},{id:"creative",label:"Writer",desc:"Copy, articles, proposals",icon:GT,tier:"Heavy",skillHint:!0},{id:"slides",label:"Slides",desc:"Pitch decks, presentations",icon:KT,tier:"Heavy",skillHint:!0}];function gZ(){const t=G(E=>E.detailPanel),n=G(E=>E.closeDetail),s=G(E=>E.spawnAgent),l=G(E=>E.fetchProviders),o=(t==null?void 0:t.type)==="spawn",[u,d]=y.useState(""),[O,m]=y.useState(""),[p,x]=y.useState(""),[g,b]=y.useState(""),[v,Q]=y.useState(""),[k,T]=y.useState(""),[j,P]=y.useState([]),[N,A]=y.useState(!1);y.useEffect(()=>{o&&(l().then(E=>{P(Array.isArray(E)?E:E.providers||[])}).catch(()=>{}),d(""),m(""),x(""),b(""),Q(""),T(""))},[o,l]);const U=u||O,C=j.find(E=>E.id===g),X=(C==null?void 0:C.models)||[],$=j.filter(E=>E.installed);async function W(){if(U){A(!0);try{const E={role:U,...p&&{name:p.replace(/\s+/g,"-")},...g&&{provider:g},...v&&{model:v},...k&&{prompt:k}};await s(E),n()}catch{}A(!1)}}return i.jsx(YS,{open:o,onOpenChange:E=>{E||n()},children:i.jsx(VS,{title:"Spawn Agent",width:480,children:i.jsxs("div",{className:"flex flex-col h-[calc(100%-57px)]",children:[i.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-4 space-y-6",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider block mb-3",children:"Choose Role"}),i.jsx("div",{className:"grid grid-cols-2 gap-2",children:xZ.map(E=>{const ne=Bb(E.id),re=u===E.id;return i.jsxs("button",{onClick:()=>{d(E.id),m("")},className:le("flex items-center gap-2.5 p-3 rounded-md border text-left transition-all cursor-pointer",re?"border-accent bg-accent/5":"border-border-subtle bg-surface-1 hover:border-border hover:bg-surface-2"),children:[i.jsx("div",{className:"w-8 h-8 rounded-md flex items-center justify-center flex-shrink-0",style:{background:ne.bg},children:i.jsx(E.icon,{size:16,style:{color:ne.text}})}),i.jsxs("div",{className:"min-w-0",children:[i.jsxs("div",{className:"flex items-center gap-1.5",children:[i.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans",children:E.label}),E.skillHint&&i.jsx("span",{className:"text-2xs font-mono text-warning/70 bg-warning/8 px-1 py-px rounded",children:"skill"})]}),i.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:E.desc})]})]},E.id)})}),i.jsx("div",{className:"mt-3",children:i.jsx($f,{placeholder:"or type a custom role...",value:O,onChange:E=>{m(E.target.value),d("")},className:"text-xs"})})]}),U&&i.jsxs("div",{className:"space-y-4",children:[i.jsx("label",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider block",children:"Configuration"}),i.jsx($f,{label:"Name (optional)",value:p,onChange:E=>x(E.target.value),placeholder:`${U}-1`}),i.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[i.jsxs("div",{className:"space-y-1",children:[i.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Provider"}),i.jsxs("div",{className:"relative",children:[i.jsxs("select",{value:g,onChange:E=>{b(E.target.value),Q("")},className:"w-full h-8 px-3 pr-8 text-sm rounded-md bg-surface-1 border border-border text-text-0 font-sans appearance-none cursor-pointer focus:outline-none focus:ring-1 focus:ring-accent",children:[i.jsx("option",{value:"",children:"Auto"}),$.map(E=>i.jsx("option",{value:E.id,children:E.name},E.id))]}),i.jsx(Hn,{size:14,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-3 pointer-events-none"})]})]}),i.jsxs("div",{className:"space-y-1",children:[i.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Model"}),i.jsxs("div",{className:"relative",children:[i.jsxs("select",{value:v,onChange:E=>Q(E.target.value),disabled:!g,className:"w-full h-8 px-3 pr-8 text-sm rounded-md bg-surface-1 border border-border text-text-0 font-sans appearance-none cursor-pointer focus:outline-none focus:ring-1 focus:ring-accent disabled:opacity-40",children:[i.jsx("option",{value:"",children:"Auto"}),X.map(E=>i.jsx("option",{value:E.id,children:E.name},E.id))]}),i.jsx(Hn,{size:14,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-3 pointer-events-none"})]})]})]}),g&&C&&i.jsx("div",{className:"text-2xs text-text-3 font-sans flex items-center gap-2",children:C.hasKey?i.jsx(Le,{variant:"success",children:"API key set"}):C.authType==="subscription"?i.jsx(Le,{variant:"accent",children:"Subscription"}):i.jsxs(Le,{variant:"warning",children:["No API key — set with: groove set-key ",g," YOUR_KEY"]})}),i.jsx(LS,{label:"Prompt (optional)",value:k,onChange:E=>T(E.target.value),placeholder:"What should this agent work on?",rows:3})]})]}),i.jsxs("div",{className:"border-t border-border-subtle px-5 py-4 bg-surface-1",children:[U&&i.jsxs("div",{className:"flex items-center gap-2 mb-3 text-xs text-text-3 font-sans",children:[i.jsx("span",{children:"Spawning"}),i.jsx(Le,{variant:"accent",children:U}),g&&i.jsxs("span",{children:["on ",(C==null?void 0:C.name)||g]}),p&&i.jsxs("span",{children:["as ",p.replace(/\s+/g,"-")]})]}),i.jsx(je,{variant:"primary",size:"lg",onClick:W,disabled:!U||N,className:"w-full",children:N?"Spawning...":"Spawn Agent"})]})]})})})}function x0({title:t,icon:n,defaultOpen:s=!1,badge:l,children:o,className:u}){const[d,O]=y.useState(s);return i.jsxs("div",{className:le("border-t border-border-subtle",u),children:[i.jsxs("button",{onClick:()=>O(!d),className:"w-full flex items-center gap-2 px-5 py-3 text-left cursor-pointer hover:bg-surface-5/30 transition-colors group",children:[i.jsx(oi,{size:12,className:le("text-text-4 transition-transform duration-200 flex-shrink-0",d&&"rotate-90")}),n&&i.jsx(n,{size:13,className:"text-text-3 flex-shrink-0"}),i.jsx("span",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider flex-1",children:t}),l&&i.jsx("span",{className:"text-2xs font-mono text-text-4 bg-surface-4 px-1.5 py-0.5 rounded",children:l})]}),d&&i.jsx("div",{className:"px-5 pb-4",children:o})]})}function bZ(){const t=G(g=>g.journalistStatus),n=G(g=>g.fetchJournalist),s=G(g=>g.triggerJournalistCycle),[l,o]=y.useState(!0),[u,d]=y.useState(!1);y.useEffect(()=>{n().then(()=>o(!1));const g=setInterval(n,1e4);return()=>clearInterval(g)},[n]);async function O(){d(!0);try{await s()}catch{}d(!1)}if(l)return i.jsxs("div",{className:"p-5 space-y-4",children:[i.jsx(ra,{className:"h-6 w-32 rounded"}),i.jsx(ra,{className:"h-20 rounded-md"}),i.jsx(ra,{className:"h-20 rounded-md"})]});const m=t||{},p=m.lastSynthesis,x=m.history||[];return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{className:"px-5 py-4 border-b border-border-subtle flex items-center gap-2",children:[i.jsx(Fr,{size:16,className:"text-accent"}),i.jsx("h3",{className:"text-sm font-semibold text-text-0 font-sans flex-1",children:"Journalist"}),i.jsxs(je,{variant:"secondary",size:"sm",onClick:O,disabled:u,className:"gap-1.5 text-2xs",children:[i.jsx(Jn,{size:11,className:u?"animate-spin":""}),u?"Running...":"Run Synthesis"]})]}),i.jsx(es,{className:"flex-1",children:i.jsxs("div",{className:"px-5 py-4 space-y-5",children:[i.jsxs("div",{className:"flex items-center gap-3 text-2xs text-text-3 font-sans",children:[i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx(cc,{size:10}),i.jsxs("span",{children:[m.cycleCount||0," cycles"]})]}),m.lastCycleTime&&i.jsxs("div",{className:"flex items-center gap-1",children:[i.jsx(df,{size:10}),i.jsxs("span",{children:["Last: ",vt(m.lastCycleTime)]})]}),i.jsx(Le,{variant:m.cycleCount>0?"success":"default",className:"text-2xs",children:m.cycleCount>0?"Active":"Idle"})]}),(p==null?void 0:p.summary)&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("label",{className:"text-xs font-semibold text-text-1 font-sans flex items-center gap-1.5",children:[i.jsx(Ln,{size:12,className:"text-text-3"}),"Latest Summary"]}),i.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-sans leading-relaxed",children:p.summary})]}),(p==null?void 0:p.projectMap)&&i.jsx(x0,{title:"Project Map",icon:TT,children:i.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-mono leading-relaxed max-h-64 overflow-y-auto whitespace-pre-wrap",children:p.projectMap})}),(p==null?void 0:p.decisions)&&i.jsx(x0,{title:"Decisions Log",icon:Ln,children:i.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-mono leading-relaxed max-h-64 overflow-y-auto whitespace-pre-wrap",children:p.decisions})}),x.length>0&&i.jsxs("div",{className:"space-y-2",children:[i.jsxs("label",{className:"text-xs font-semibold text-text-1 font-sans flex items-center gap-1.5",children:[i.jsx(df,{size:12,className:"text-text-3"}),"History (",x.length,")"]}),i.jsx("div",{className:"space-y-1.5",children:x.slice().reverse().slice(0,20).map((g,b)=>i.jsxs("div",{className:"bg-surface-0 rounded-md border border-border-subtle px-3 py-2",children:[i.jsxs("div",{className:"flex items-center gap-2 text-2xs",children:[i.jsxs(Le,{variant:"default",className:"text-2xs",children:["Cycle ",g.cycle]}),i.jsxs("span",{className:"text-text-4 font-sans",children:[g.agentCount," agent",g.agentCount!==1?"s":""]}),i.jsx("span",{className:"text-text-4 font-sans ml-auto",children:vt(g.timestamp)})]}),g.summary&&i.jsx("p",{className:"text-xs text-text-2 font-sans mt-1 leading-relaxed",children:g.summary})]},b))})]}),!p&&x.length===0&&i.jsxs("div",{className:"text-center py-8 text-text-4 font-sans",children:[i.jsx(Fr,{size:28,className:"mx-auto mb-2"}),i.jsx("p",{className:"text-sm",children:"No synthesis data yet"}),i.jsx("p",{className:"text-2xs mt-1",children:"The journalist runs automatically when agents are active, or trigger manually above"})]})]})})]})}function vZ({children:t,height:n,onHeightChange:s,visible:l,fullHeight:o,tabs:u,activeTab:d,onSelectTab:O,onAddTab:m,onCloseTab:p,onToggleFullHeight:x,onMinimize:g}){const b=y.useRef(!1),v=y.useRef(0),Q=y.useRef(0),k=y.useCallback(j=>{if(o)return;j.preventDefault(),b.current=!0,v.current=j.clientY,Q.current=n;function P(A){if(!b.current)return;const U=v.current-A.clientY,C=Math.min(Math.max(Q.current+U,120),600);s(C)}function N(){b.current=!1,document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",N)}document.addEventListener("mousemove",P),document.addEventListener("mouseup",N)},[n,s,o]);if(!l)return null;const T=u||[{id:"default",label:"Terminal"}];return i.jsxs("div",{className:"flex flex-col border-t border-border bg-surface-0 relative",style:o?{flex:1,minHeight:0}:{height:n,flexShrink:0},children:[!o&&i.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 cursor-row-resize hover:bg-accent/30 transition-colors z-10",onMouseDown:k}),i.jsxs("div",{className:"flex items-center h-9 bg-surface-1 border-b border-border-subtle flex-shrink-0 pl-3 pr-1.5",children:[i.jsxs("div",{className:"flex items-center gap-0 flex-1 min-w-0 overflow-x-auto scrollbar-none",children:[T.map(j=>i.jsxs("button",{onClick:()=>O==null?void 0:O(j.id),className:le("flex items-center gap-1.5 pl-2.5 pr-1 h-7 text-2xs font-sans cursor-pointer select-none transition-colors flex-shrink-0 rounded-t",j.id===d?"text-text-0 bg-surface-0":"text-text-3 hover:text-text-1 hover:bg-surface-0/50"),children:[i.jsx(di,{size:10}),i.jsx("span",{className:"truncate max-w-[80px]",children:j.label}),T.length>1&&i.jsx("button",{onClick:P=>{P.stopPropagation(),p==null||p(j.id)},className:"ml-0.5 p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 cursor-pointer",children:i.jsx(Rt,{size:9})})]},j.id)),i.jsx("button",{onClick:m,className:"flex items-center justify-center w-6 h-6 text-text-4 hover:text-text-1 hover:bg-surface-0/50 rounded cursor-pointer transition-colors flex-shrink-0 ml-0.5",title:"New terminal",children:i.jsx(In,{size:11})})]}),i.jsx("div",{className:"flex items-center gap-0.5 flex-shrink-0 ml-2",children:o?i.jsx("button",{onClick:g,className:"p-1.5 rounded text-text-3 hover:text-text-0 hover:bg-surface-5 cursor-pointer transition-colors",title:"Restore",children:i.jsx(ZT,{size:12})}):i.jsx("button",{onClick:x,className:"p-1.5 rounded text-text-3 hover:text-text-0 hover:bg-surface-5 cursor-pointer transition-colors",title:"Maximize",children:i.jsx(NT,{size:12})})})]}),i.jsx("div",{className:"flex-1 min-h-0 p-2",children:t})]})}const yZ={background:"#1a1e25",foreground:"#bcc2cd",cursor:"#33afbc",cursorAccent:"#1a1e25",selectionBackground:"rgba(51, 175, 188, 0.25)",black:"#1a1e25",red:"#e06c75",green:"#4ae168",yellow:"#e5c07b",blue:"#61afef",magenta:"#c678dd",cyan:"#33afbc",white:"#bcc2cd",brightBlack:"#505862",brightRed:"#e06c75",brightGreen:"#4ae168",brightYellow:"#e5c07b",brightBlue:"#61afef",brightMagenta:"#c678dd",brightCyan:"#33afbc",brightWhite:"#e6e6e6"};let JO=0;function SZ({tabId:t,visible:n}){const s=y.useRef(null),l=y.useRef(null),o=y.useRef(null),u=y.useRef(null),d=y.useRef(!1);return y.useEffect(()=>{if(!s.current||d.current)return;d.current=!0;const O=new Wj({theme:yZ,fontFamily:"'JetBrains Mono Variable', 'SF Mono', monospace",fontSize:13,lineHeight:1.4,cursorBlink:!0,cursorStyle:"bar",scrollback:5e3,allowProposedApi:!0}),m=new Bj;O.loadAddon(m),O.loadAddon(new Hj),O.open(s.current),l.current=O,requestAnimationFrame(()=>m.fit());function p(){const g=G.getState().ws;if(!g||g.readyState!==WebSocket.OPEN){setTimeout(p,500);return}g.send(JSON.stringify({type:"terminal:spawn",cols:O.cols,rows:O.rows}));function b(v){let Q;try{Q=JSON.parse(v.data)}catch{return}Q.type==="terminal:spawned"&&!o.current?o.current=Q.id:Q.type==="terminal:output"&&Q.id===o.current?O.write(Q.data):Q.type==="terminal:exit"&&Q.id===o.current&&(O.write(`\r
|
|
616
|
-
\x1B[90m[session ended]\x1B[0m\r
|
|
617
|
-
`),o.current=null)}g.addEventListener("message",b),u.current={ws:g,handler:b},O.onData(v=>{const Q=G.getState().ws;(Q==null?void 0:Q.readyState)===WebSocket.OPEN&&o.current&&Q.send(JSON.stringify({type:"terminal:input",id:o.current,data:v}))}),O.onResize(({cols:v,rows:Q})=>{const k=G.getState().ws;(k==null?void 0:k.readyState)===WebSocket.OPEN&&o.current&&k.send(JSON.stringify({type:"terminal:resize",id:o.current,rows:Q,cols:v}))})}p();const x=new ResizeObserver(()=>{requestAnimationFrame(()=>{try{m.fit()}catch{}})});return x.observe(s.current),()=>{x.disconnect();const g=G.getState().ws;(g==null?void 0:g.readyState)===WebSocket.OPEN&&o.current&&g.send(JSON.stringify({type:"terminal:kill",id:o.current})),u.current&&u.current.ws.removeEventListener("message",u.current.handler),O.dispose(),d.current=!1}},[]),y.useEffect(()=>{n&&l.current&&requestAnimationFrame(()=>{var O,m,p,x,g;try{(g=(x=(p=(m=(O=l.current._addonManager)==null?void 0:O._addons)==null?void 0:m[0])==null?void 0:p.instance)==null?void 0:x.fit)==null||g.call(x)}catch{}})},[n]),i.jsx("div",{ref:s,className:"w-full h-full",style:{display:n?"block":"none"}})}function QZ(){const t=G(b=>b.terminalVisible),n=G(b=>b.terminalHeight),s=G(b=>b.setTerminalVisible),l=G(b=>b.setTerminalHeight),o=G(b=>b.terminalFullHeight),u=G(b=>b.setTerminalFullHeight),[d,O]=y.useState([{id:"term-0",label:"Terminal"}]),[m,p]=y.useState("term-0"),x=y.useCallback(()=>{JO++;const b=`term-${JO}`;O(v=>[...v,{id:b,label:`Terminal ${JO+1}`}]),p(b)},[]),g=y.useCallback(b=>{O(v=>{const Q=v.filter(k=>k.id!==b);if(Q.length===0)return s(!1),v;if(m===b){const k=v.findIndex(j=>j.id===b),T=Q[Math.min(k,Q.length-1)];p(T.id)}return Q})},[m,s]);return i.jsx(vZ,{visible:t,height:n,onHeightChange:l,fullHeight:o,tabs:d,activeTab:m,onSelectTab:p,onAddTab:x,onCloseTab:g,onToggleFullHeight:()=>u(!0),onMinimize:()=>u(!1),children:d.map(b=>i.jsx(SZ,{tabId:b.id,visible:b.id===m},b.id))})}class jZ extends Yn.Component{constructor(n){super(n),this.state={error:null}}static getDerivedStateFromError(n){return{error:n}}render(){return this.state.error?i.jsxs("div",{className:"h-screen bg-surface-0 p-10 font-sans",children:[i.jsx("h2",{className:"text-lg font-semibold text-text-0 mb-4",children:"Groove — Render Error"}),i.jsx("pre",{className:"text-sm text-danger whitespace-pre-wrap mb-4",children:this.state.error.message}),i.jsx("pre",{className:"text-xs text-text-3 whitespace-pre-wrap",children:this.state.error.stack}),i.jsx("button",{onClick:()=>this.setState({error:null}),className:"mt-6 px-4 py-2 bg-accent text-surface-0 rounded-md font-medium text-sm cursor-pointer",children:"Try Again"})]}):this.props.children}}function wZ(){const t=G(o=>o.activeView),n=G(o=>o.detailPanel);let s;switch(t){case"agents":s=i.jsx(t1,{});break;case"editor":s=i.jsx(mC,{});break;case"dashboard":s=i.jsx(aX,{});break;case"marketplace":s=i.jsx(vX,{});break;case"teams":s=i.jsx(wX,{});break;case"settings":s=i.jsx(B_,{});break;default:s=i.jsx(t1,{})}let l=null;if(n)switch(n.type){case"agent":l=i.jsx(pZ,{});break;case"journalist":l=i.jsx(bZ,{});break;case"spawn":l=null;break}return i.jsxs(FP,{detailContent:l,terminalContent:i.jsx(QZ,{}),children:[s,i.jsx(gZ,{})]})}function kZ(){return i.jsxs("div",{className:"h-screen bg-surface-0 flex flex-col items-center justify-center gap-4",children:[i.jsx("img",{src:"/favicon.png",alt:"",className:"w-10 h-10 opacity-60 animate-pulse"}),i.jsx("p",{className:"text-sm text-text-3 font-sans",children:"Connecting..."})]})}function $Z(){const t=G(s=>s.connect),n=G(s=>s.hydrated);return y.useEffect(()=>{t()},[t]),n?i.jsx(jZ,{children:i.jsx(wZ,{})}):i.jsx(kZ,{})}ew.createRoot(document.getElementById("root")).render(i.jsx(y.StrictMode,{children:i.jsx($Z,{})}));
|