loki-mode 6.43.0 → 6.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,131 +0,0 @@
1
- var jt=e=>{throw TypeError(e)};var St=(e,t,n)=>t.has(e)||jt("Cannot "+n);var Ee=(e,t,n)=>(St(e,t,"read from private field"),n?n.call(e):t.get(e)),zt=(e,t,n)=>t.has(e)?jt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),kt=(e,t,n,r)=>(St(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);import{c as H,r as d,W as Se,j as i,a as Y,B as Ct,d as Dn,u as $n}from"./index-DwD8nlZM.js";import{T as In,E as Tn}from"./TerminalOutput-D4fJL3KY.js";import{B as Fn}from"./Button-DL_d8JtL.js";import{C as An,a as _n}from"./clock-GSX6RVry.js";import{E as Bn}from"./external-link-gjVZ6bJU.js";/**
2
- * @license lucide-react v0.577.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const Hn=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Vn=H("arrow-left",Hn);/**
7
- * @license lucide-react v0.577.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const qn=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Wn=H("arrow-right",qn);/**
12
- * @license lucide-react v0.577.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const Un=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Gn=H("bot",Un);/**
17
- * @license lucide-react v0.577.0 - ISC
18
- *
19
- * This source code is licensed under the ISC license.
20
- * See the LICENSE file in the root directory of this source tree.
21
- */const Kn=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xn=H("chevron-down",Kn);/**
22
- * @license lucide-react v0.577.0 - ISC
23
- *
24
- * This source code is licensed under the ISC license.
25
- * See the LICENSE file in the root directory of this source tree.
26
- */const Qn=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Yn=H("chevron-right",Qn);/**
27
- * @license lucide-react v0.577.0 - ISC
28
- *
29
- * This source code is licensed under the ISC license.
30
- * See the LICENSE file in the root directory of this source tree.
31
- */const Jn=[["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"}]],Je=H("eye",Jn);/**
32
- * @license lucide-react v0.577.0 - ISC
33
- *
34
- * This source code is licensed under the ISC license.
35
- * See the LICENSE file in the root directory of this source tree.
36
- */const Zn=[["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 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],er=H("file-braces",Zn);/**
37
- * @license lucide-react v0.577.0 - ISC
38
- *
39
- * This source code is licensed under the ISC license.
40
- * See the LICENSE file in the root directory of this source tree.
41
- */const tr=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],ae=H("file-code-corner",tr);/**
42
- * @license lucide-react v0.577.0 - ISC
43
- *
44
- * This source code is licensed under the ISC license.
45
- * See the LICENSE file in the root directory of this source tree.
46
- */const nr=[["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 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],rr=H("file-code",nr);/**
47
- * @license lucide-react v0.577.0 - ISC
48
- *
49
- * This source code is licensed under the ISC license.
50
- * See the LICENSE file in the root directory of this source tree.
51
- */const ar=[["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"}]],or=H("file-plus",ar);/**
52
- * @license lucide-react v0.577.0 - ISC
53
- *
54
- * This source code is licensed under the ISC license.
55
- * See the LICENSE file in the root directory of this source tree.
56
- */const ir=[["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"}]],sr=H("file-text",ir);/**
57
- * @license lucide-react v0.577.0 - ISC
58
- *
59
- * This source code is licensed under the ISC license.
60
- * See the LICENSE file in the root directory of this source tree.
61
- */const lr=[["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:"M11 18h2",key:"12mj7e"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M9 13v-.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v.5",key:"qbrxap"}]],cr=H("file-type",lr);/**
62
- * @license lucide-react v0.577.0 - ISC
63
- *
64
- * This source code is licensed under the ISC license.
65
- * See the LICENSE file in the root directory of this source tree.
66
- */const ur=[["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"}]],dr=H("file",ur);/**
67
- * @license lucide-react v0.577.0 - ISC
68
- *
69
- * This source code is licensed under the ISC license.
70
- * See the LICENSE file in the root directory of this source tree.
71
- */const fr=[["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"}]],pr=H("folder-open",fr);/**
72
- * @license lucide-react v0.577.0 - ISC
73
- *
74
- * This source code is licensed under the ISC license.
75
- * See the LICENSE file in the root directory of this source tree.
76
- */const hr=[["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"}]],mr=H("folder-plus",hr);/**
77
- * @license lucide-react v0.577.0 - ISC
78
- *
79
- * This source code is licensed under the ISC license.
80
- * See the LICENSE file in the root directory of this source tree.
81
- */const gr=[["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"}]],xr=H("folder",gr);/**
82
- * @license lucide-react v0.577.0 - ISC
83
- *
84
- * This source code is licensed under the ISC license.
85
- * See the LICENSE file in the root directory of this source tree.
86
- */const vr=[["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"}]],yr=H("message-square",vr);/**
87
- * @license lucide-react v0.577.0 - ISC
88
- *
89
- * This source code is licensed under the ISC license.
90
- * See the LICENSE file in the root directory of this source tree.
91
- */const br=[["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"}]],wr=H("rotate-cw",br);/**
92
- * @license lucide-react v0.577.0 - ISC
93
- *
94
- * This source code is licensed under the ISC license.
95
- * See the LICENSE file in the root directory of this source tree.
96
- */const jr=[["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"}]],Sr=H("send",jr);/**
97
- * @license lucide-react v0.577.0 - ISC
98
- *
99
- * This source code is licensed under the ISC license.
100
- * See the LICENSE file in the root directory of this source tree.
101
- */const zr=[["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"}]],kr=H("shield-check",zr);/**
102
- * @license lucide-react v0.577.0 - ISC
103
- *
104
- * This source code is licensed under the ISC license.
105
- * See the LICENSE file in the root directory of this source tree.
106
- */const Cr=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Nr=H("terminal",Cr);/**
107
- * @license lucide-react v0.577.0 - ISC
108
- *
109
- * This source code is licensed under the ISC license.
110
- * See the LICENSE file in the root directory of this source tree.
111
- */const Mr=[["path",{d:"M21 7 6.82 21.18a2.83 2.83 0 0 1-3.99-.01a2.83 2.83 0 0 1 0-4L17 3",key:"1ub6xw"}],["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"M12 16H4",key:"1cjfip"}]],Ze=H("test-tube-diagonal",Mr);/**
112
- * @license lucide-react v0.577.0 - ISC
113
- *
114
- * This source code is licensed under the ISC license.
115
- * See the LICENSE file in the root directory of this source tree.
116
- */const Pr=[["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"}]],Er=H("trash-2",Pr);/**
117
- * @license lucide-react v0.577.0 - ISC
118
- *
119
- * This source code is licensed under the ISC license.
120
- * See the LICENSE file in the root directory of this source tree.
121
- */const Lr=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ue=H("x",Lr);function Nt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rr(e){if(Array.isArray(e))return e}function Or(e,t,n){return(t=_r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dr(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,u,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw a}}return s}}function $r(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
122
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mt(Object(n),!0).forEach(function(r){Or(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ir(e,t){if(e==null)return{};var n,r,a=Tr(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Tr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Fr(e,t){return Rr(e)||Dr(e,t)||Br(e,t)||$r()}function Ar(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _r(e){var t=Ar(e,"string");return typeof t=="symbol"?t:t+""}function Br(e,t){if(e){if(typeof e=="string")return Nt(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nt(e,t):void 0}}function Hr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Lt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Et(Object(n),!0).forEach(function(r){Hr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(a,o){return o(a)},r)}}function Le(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return a.length>=e.length?e.apply(this,a):function(){for(var u=arguments.length,s=new Array(u),l=0;l<u;l++)s[l]=arguments[l];return t.apply(n,[].concat(a,s))}}}function Ge(e){return{}.toString.call(e).includes("Object")}function qr(e){return!Object.keys(e).length}function $e(e){return typeof e=="function"}function Wr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ur(e,t){return Ge(t)||le("changeType"),Object.keys(t).some(function(n){return!Wr(e,n)})&&le("changeField"),t}function Gr(e){$e(e)||le("selectorType")}function Kr(e){$e(e)||Ge(e)||le("handlerType"),Ge(e)&&Object.values(e).some(function(t){return!$e(t)})&&le("handlersType")}function Xr(e){e||le("initialIsRequired"),Ge(e)||le("initialType"),qr(e)&&le("initialContent")}function Qr(e,t){throw new Error(e[t]||e.default)}var Yr={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},le=Le(Qr)(Yr),_e={changes:Ur,selector:Gr,handler:Kr,initial:Xr};function Jr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_e.initial(e),_e.handler(t);var n={current:e},r=Le(ta)(n,t),a=Le(ea)(n),o=Le(_e.changes)(e),u=Le(Zr)(n);function s(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return _e.selector(c),c(n.current)}function l(c){Vr(r,a,o,u)(c)}return[s,l]}function Zr(e,t){return $e(t)?t(e.current):t}function ea(e,t){return e.current=Lt(Lt({},e.current),t),t}function ta(e,t,n){return $e(t)?t(e.current):Object.keys(n).forEach(function(r){var a;return(a=t[r])===null||a===void 0?void 0:a.call(t,e.current[r])}),n}var na={create:Jr},ra={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function aa(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return a.length>=e.length?e.apply(this,a):function(){for(var u=arguments.length,s=new Array(u),l=0;l<u;l++)s[l]=arguments[l];return t.apply(n,[].concat(a,s))}}}function oa(e){return{}.toString.call(e).includes("Object")}function ia(e){return e||Rt("configIsRequired"),oa(e)||Rt("configType"),e.urls?(sa(),{paths:{vs:e.urls.monacoBase}}):e}function sa(){console.warn(Qt.deprecation)}function la(e,t){throw new Error(e[t]||e.default)}var Qt={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
123
- You are using deprecated way of configuration.
124
-
125
- Instead of using
126
- monaco.config({ urls: { monacoBase: '...' } })
127
- use
128
- monaco.config({ paths: { vs: '...' } })
129
-
130
- For more please check the link https://github.com/suren-atoyan/monaco-loader#config
131
- `},Rt=aa(la)(Qt),ca={config:ia},ua=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(a){return n.reduceRight(function(o,u){return u(o)},a)}};function Yt(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],Yt(e[n],t[n]))}),Pt(Pt({},e),t)}var da={type:"cancelation",msg:"operation is manually canceled"};function et(e){var t=!1,n=new Promise(function(r,a){e.then(function(o){return t?a(da):r(o)}),e.catch(a)});return n.cancel=function(){return t=!0},n}var fa=["monaco"],pa=na.create({config:ra,isInitialized:!1,resolve:null,reject:null,monaco:null}),Jt=Fr(pa,2),Te=Jt[0],Ke=Jt[1];function ha(e){var t=ca.config(e),n=t.monaco,r=Ir(t,fa);Ke(function(a){return{config:Yt(a.config,r),monaco:n}})}function ma(){var e=Te(function(t){var n=t.monaco,r=t.isInitialized,a=t.resolve;return{monaco:n,isInitialized:r,resolve:a}});if(!e.isInitialized){if(Ke({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),et(tt);if(window.monaco&&window.monaco.editor)return Zt(window.monaco),e.resolve(window.monaco),et(tt);ua(ga,va)(ya)}return et(tt)}function ga(e){return document.body.appendChild(e)}function xa(e){var t=document.createElement("script");return e&&(t.src=e),t}function va(e){var t=Te(function(r){var a=r.config,o=r.reject;return{config:a,reject:o}}),n=xa("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function ya(){var e=Te(function(n){var r=n.config,a=n.resolve,o=n.reject;return{config:r,resolve:a,reject:o}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var r=n.m||n;Zt(r),e.resolve(r)},function(n){e.reject(n)})}function Zt(e){Te().monaco||Ke({monaco:e})}function ba(){return Te(function(e){var t=e.monaco;return t})}var tt=new Promise(function(e,t){return Ke({resolve:e,reject:t})}),en={config:ha,init:ma,__getMonacoInstance:ba},wa={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},nt=wa,ja={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Sa=ja;function za({children:e}){return Se.createElement("div",{style:Sa.container},e)}var ka=za,Ca=ka;function Na({width:e,height:t,isEditorReady:n,loading:r,_ref:a,className:o,wrapperProps:u}){return Se.createElement("section",{style:{...nt.wrapper,width:e,height:t},...u},!n&&Se.createElement(Ca,null,r),Se.createElement("div",{ref:a,style:{...nt.fullWidth,...!n&&nt.hide},className:o}))}var Ma=Na,tn=d.memo(Ma);function Pa(e){d.useEffect(e,[])}var nn=Pa;function Ea(e,t,n=!0){let r=d.useRef(!0);d.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Q=Ea;function Oe(){}function we(e,t,n,r){return La(e,r)||Ra(e,t,n,r)}function La(e,t){return e.editor.getModel(rn(e,t))}function Ra(e,t,n,r){return e.editor.createModel(t,n,r?rn(e,r):void 0)}function rn(e,t){return e.Uri.parse(t)}function Oa({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:a,originalModelPath:o,modifiedModelPath:u,keepCurrentOriginalModel:s=!1,keepCurrentModifiedModel:l=!1,theme:c="light",loading:f="Loading...",options:v={},height:m="100%",width:y="100%",className:j,wrapperProps:g={},beforeMount:w=Oe,onMount:b=Oe}){let[h,k]=d.useState(!1),[S,x]=d.useState(!0),N=d.useRef(null),C=d.useRef(null),D=d.useRef(null),_=d.useRef(b),L=d.useRef(w),M=d.useRef(!1);nn(()=>{let z=en.init();return z.then(O=>(C.current=O)&&x(!1)).catch(O=>(O==null?void 0:O.type)!=="cancelation"&&console.error("Monaco initialization: error:",O)),()=>N.current?I():z.cancel()}),Q(()=>{if(N.current&&C.current){let z=N.current.getOriginalEditor(),O=we(C.current,e||"",r||n||"text",o||"");O!==z.getModel()&&z.setModel(O)}},[o],h),Q(()=>{if(N.current&&C.current){let z=N.current.getModifiedEditor(),O=we(C.current,t||"",a||n||"text",u||"");O!==z.getModel()&&z.setModel(O)}},[u],h),Q(()=>{let z=N.current.getModifiedEditor();z.getOption(C.current.editor.EditorOption.readOnly)?z.setValue(t||""):t!==z.getValue()&&(z.executeEdits("",[{range:z.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),z.pushUndoStop())},[t],h),Q(()=>{var z,O;(O=(z=N.current)==null?void 0:z.getModel())==null||O.original.setValue(e||"")},[e],h),Q(()=>{let{original:z,modified:O}=N.current.getModel();C.current.editor.setModelLanguage(z,r||n||"text"),C.current.editor.setModelLanguage(O,a||n||"text")},[n,r,a],h),Q(()=>{var z;(z=C.current)==null||z.editor.setTheme(c)},[c],h),Q(()=>{var z;(z=N.current)==null||z.updateOptions(v)},[v],h);let E=d.useCallback(()=>{var q;if(!C.current)return;L.current(C.current);let z=we(C.current,e||"",r||n||"text",o||""),O=we(C.current,t||"",a||n||"text",u||"");(q=N.current)==null||q.setModel({original:z,modified:O})},[n,t,a,e,r,o,u]),T=d.useCallback(()=>{var z;!M.current&&D.current&&(N.current=C.current.editor.createDiffEditor(D.current,{automaticLayout:!0,...v}),E(),(z=C.current)==null||z.editor.setTheme(c),k(!0),M.current=!0)},[v,c,E]);d.useEffect(()=>{h&&_.current(N.current,C.current)},[h]),d.useEffect(()=>{!S&&!h&&T()},[S,h,T]);function I(){var O,q,J,ee;let z=(O=N.current)==null?void 0:O.getModel();s||((q=z==null?void 0:z.original)==null||q.dispose()),l||((J=z==null?void 0:z.modified)==null||J.dispose()),(ee=N.current)==null||ee.dispose()}return Se.createElement(tn,{width:y,height:m,isEditorReady:h,loading:f,_ref:D,className:j,wrapperProps:g})}var Da=Oa;d.memo(Da);function $a(e){let t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}var Ia=$a,Be=new Map;function Ta({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:a,path:o,theme:u="light",line:s,loading:l="Loading...",options:c={},overrideServices:f={},saveViewState:v=!0,keepCurrentModel:m=!1,width:y="100%",height:j="100%",className:g,wrapperProps:w={},beforeMount:b=Oe,onMount:h=Oe,onChange:k,onValidate:S=Oe}){let[x,N]=d.useState(!1),[C,D]=d.useState(!0),_=d.useRef(null),L=d.useRef(null),M=d.useRef(null),E=d.useRef(h),T=d.useRef(b),I=d.useRef(),z=d.useRef(r),O=Ia(o),q=d.useRef(!1),J=d.useRef(!1);nn(()=>{let R=en.init();return R.then($=>(_.current=$)&&D(!1)).catch($=>($==null?void 0:$.type)!=="cancelation"&&console.error("Monaco initialization: error:",$)),()=>L.current?W():R.cancel()}),Q(()=>{var $,V,te,K;let R=we(_.current,e||r||"",t||a||"",o||n||"");R!==(($=L.current)==null?void 0:$.getModel())&&(v&&Be.set(O,(V=L.current)==null?void 0:V.saveViewState()),(te=L.current)==null||te.setModel(R),v&&((K=L.current)==null||K.restoreViewState(Be.get(o))))},[o],x),Q(()=>{var R;(R=L.current)==null||R.updateOptions(c)},[c],x),Q(()=>{!L.current||r===void 0||(L.current.getOption(_.current.editor.EditorOption.readOnly)?L.current.setValue(r):r!==L.current.getValue()&&(J.current=!0,L.current.executeEdits("",[{range:L.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),L.current.pushUndoStop(),J.current=!1))},[r],x),Q(()=>{var $,V;let R=($=L.current)==null?void 0:$.getModel();R&&a&&((V=_.current)==null||V.editor.setModelLanguage(R,a))},[a],x),Q(()=>{var R;s!==void 0&&((R=L.current)==null||R.revealLine(s))},[s],x),Q(()=>{var R;(R=_.current)==null||R.editor.setTheme(u)},[u],x);let ee=d.useCallback(()=>{var R;if(!(!M.current||!_.current)&&!q.current){T.current(_.current);let $=o||n,V=we(_.current,r||e||"",t||a||"",$||"");L.current=(R=_.current)==null?void 0:R.editor.create(M.current,{model:V,automaticLayout:!0,...c},f),v&&L.current.restoreViewState(Be.get($)),_.current.editor.setTheme(u),s!==void 0&&L.current.revealLine(s),N(!0),q.current=!0}},[e,t,n,r,a,o,c,f,v,u,s]);d.useEffect(()=>{x&&E.current(L.current,_.current)},[x]),d.useEffect(()=>{!C&&!x&&ee()},[C,x,ee]),z.current=r,d.useEffect(()=>{var R,$;x&&k&&((R=I.current)==null||R.dispose(),I.current=($=L.current)==null?void 0:$.onDidChangeModelContent(V=>{J.current||k(L.current.getValue(),V)}))},[x,k]),d.useEffect(()=>{if(x){let R=_.current.editor.onDidChangeMarkers($=>{var te;let V=(te=L.current.getModel())==null?void 0:te.uri;if(V&&$.find(K=>K.path===V.path)){let K=_.current.editor.getModelMarkers({resource:V});S==null||S(K)}});return()=>{R==null||R.dispose()}}return()=>{}},[x,S]);function W(){var R,$;(R=I.current)==null||R.dispose(),m?v&&Be.set(o,L.current.saveViewState()):($=L.current.getModel())==null||$.dispose(),L.current.dispose()}return Se.createElement(tn,{width:y,height:j,isEditorReady:x,loading:l,_ref:M,className:g,wrapperProps:w})}var Fa=Ta,Aa=d.memo(Fa),_a=Aa;function Ba(e,t){const n=getComputedStyle(e),r=parseFloat(n.fontSize);return t*r}function Ha(e,t){const n=getComputedStyle(e.ownerDocument.body),r=parseFloat(n.fontSize);return t*r}function Va(e){return e/100*window.innerHeight}function qa(e){return e/100*window.innerWidth}function Wa(e){switch(typeof e){case"number":return[e,"px"];case"string":{const t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function Re({groupSize:e,panelElement:t,styleProp:n}){let r;const[a,o]=Wa(n);switch(o){case"%":{r=a/100*e;break}case"px":{r=a;break}case"rem":{r=Ha(t,a);break}case"em":{r=Ba(t,a);break}case"vh":{r=Va(a);break}case"vw":{r=qa(a);break}}return r}function G(e){return parseFloat(e.toFixed(3))}function Ce({group:e}){const{orientation:t,panels:n}=e;return n.reduce((r,a)=>(r+=t==="horizontal"?a.element.offsetWidth:a.element.offsetHeight,r),0)}function at(e){const{panels:t}=e,n=Ce({group:e});return n===0?t.map(r=>({groupResizeBehavior:r.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:r.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:r.panelConstraints.disabled,minSize:0,maxSize:100,panelId:r.id})):t.map(r=>{const{element:a,panelConstraints:o}=r;let u=0;if(o.collapsedSize!==void 0){const f=Re({groupSize:n,panelElement:a,styleProp:o.collapsedSize});u=G(f/n*100)}let s;if(o.defaultSize!==void 0){const f=Re({groupSize:n,panelElement:a,styleProp:o.defaultSize});s=G(f/n*100)}let l=0;if(o.minSize!==void 0){const f=Re({groupSize:n,panelElement:a,styleProp:o.minSize});l=G(f/n*100)}let c=100;if(o.maxSize!==void 0){const f=Re({groupSize:n,panelElement:a,styleProp:o.maxSize});c=G(f/n*100)}return{groupResizeBehavior:o.groupResizeBehavior,collapsedSize:u,collapsible:o.collapsible===!0,defaultSize:s,disabled:o.disabled,minSize:l,maxSize:c,panelId:r.id}})}function F(e,t="Assertion error"){if(!e)throw Error(t)}function ot(e,t){return Array.from(t).sort(e==="horizontal"?Ua:Ga)}function Ua(e,t){const n=e.element.offsetLeft-t.element.offsetLeft;return n!==0?n:e.element.offsetWidth-t.element.offsetWidth}function Ga(e,t){const n=e.element.offsetTop-t.element.offsetTop;return n!==0?n:e.element.offsetHeight-t.element.offsetHeight}function an(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function on(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function Ka({orientation:e,rects:t,targetRect:n}){const r={x:n.x+n.width/2,y:n.y+n.height/2};let a,o=Number.MAX_VALUE;for(const u of t){const{x:s,y:l}=on(r,u),c=e==="horizontal"?s:l;c<o&&(o=c,a=u)}return F(a,"No rect found"),a}let He;function Xa(){return He===void 0&&(typeof matchMedia=="function"?He=!!matchMedia("(pointer:coarse)").matches:He=!1),He}function sn(e){const{element:t,orientation:n,panels:r,separators:a}=e,o=ot(n,Array.from(t.children).filter(an).map(j=>({element:j}))).map(({element:j})=>j),u=[];let s=!1,l=!1,c=-1,f=-1,v=0,m,y=[];{let j=-1;for(const g of o)g.hasAttribute("data-panel")&&(j++,g.ariaDisabled===null&&(v++,c===-1&&(c=j),f=j))}if(v>1){let j=-1;for(const g of o)if(g.hasAttribute("data-panel")){j++;const w=r.find(b=>b.element===g);if(w){if(m){const b=m.element.getBoundingClientRect(),h=g.getBoundingClientRect();let k;if(l){const S=n==="horizontal"?new DOMRect(b.right,b.top,0,b.height):new DOMRect(b.left,b.bottom,b.width,0),x=n==="horizontal"?new DOMRect(h.left,h.top,0,h.height):new DOMRect(h.left,h.top,h.width,0);switch(y.length){case 0:{k=[S,x];break}case 1:{const N=y[0],C=Ka({orientation:n,rects:[b,h],targetRect:N.element.getBoundingClientRect()});k=[N,C===b?x:S];break}default:{k=y;break}}}else y.length?k=y:k=[n==="horizontal"?new DOMRect(b.right,h.top,h.left-b.right,h.height):new DOMRect(h.left,b.bottom,h.width,h.top-b.bottom)];for(const S of k){let x="width"in S?S:S.element.getBoundingClientRect();const N=Xa()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(x.width<N){const D=N-x.width;x=new DOMRect(x.x-D/2,x.y,x.width+D,x.height)}if(x.height<N){const D=N-x.height;x=new DOMRect(x.x,x.y-D/2,x.width,x.height+D)}const C=j<=c||j>f;!s&&!C&&u.push({group:e,groupSize:Ce({group:e}),panels:[m,w],separator:"width"in S?void 0:S,rect:x}),s=!1}}l=!1,m=w,y=[]}}else if(g.hasAttribute("data-separator")){g.ariaDisabled!==null&&(s=!0);const w=a.find(b=>b.element===g);w?y.push(w):(m=void 0,y=[])}else l=!0}return u}var se;class ln{constructor(){zt(this,se,{})}addListener(t,n){const r=Ee(this,se)[t];return r===void 0?Ee(this,se)[t]=[n]:r.includes(n)||r.push(n),()=>{this.removeListener(t,n)}}emit(t,n){const r=Ee(this,se)[t];if(r!==void 0)if(r.length===1)r[0].call(null,n);else{let a=!1,o=null;const u=Array.from(r);for(let s=0;s<u.length;s++){const l=u[s];try{l.call(null,n)}catch(c){o===null&&(a=!0,o=c)}}if(a)throw o}}removeAllListeners(){kt(this,se,{})}removeListener(t,n){const r=Ee(this,se)[t];if(r!==void 0){const a=r.indexOf(n);a>=0&&r.splice(a,1)}}}se=new WeakMap;let re=new Map;const cn=new ln;function Qa(e){re=new Map(re),re.delete(e)}function Ot(e,t){for(const[n]of re)if(n.id===e)return n}function ce(e,t){for(const[n,r]of re)if(n.id===e)return r;if(t)throw Error(`Could not find data for Group with id ${e}`)}function ge(){return re}function lt(e,t){return cn.addListener("groupChange",n=>{n.group.id===e&&t(n)})}function oe(e,t){const n=re.get(e);re=new Map(re),re.set(e,t),cn.emit("groupChange",{group:e,prev:n,next:t})}function Ya(e,t,n){let r,a={x:1/0,y:1/0};for(const o of t){const u=on(n,o.rect);switch(e){case"horizontal":{u.x<=a.x&&(r=o,a=u);break}case"vertical":{u.y<=a.y&&(r=o,a=u);break}}}return r?{distance:a,hitRegion:r}:void 0}function Ja(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function Za(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:It(e),b:It(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)r=n.a.pop(),n.b.pop();F(r,"Stacking order can only be calculated for elements with a common ancestor");const a={a:$t(Dt(n.a)),b:$t(Dt(n.b))};if(a.a===a.b){const o=r.childNodes,u={a:n.a.at(-1),b:n.b.at(-1)};let s=o.length;for(;s--;){const l=o[s];if(l===u.a)return 1;if(l===u.b)return-1}}return Math.sign(a.a-a.b)}const eo=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function to(e){const t=getComputedStyle(un(e)??e).display;return t==="flex"||t==="inline-flex"}function no(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||to(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||eo.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Dt(e){let t=e.length;for(;t--;){const n=e[t];if(F(n,"Missing node"),no(n))return n}return null}function $t(e){return e&&Number(getComputedStyle(e).zIndex)||0}function It(e){const t=[];for(;e;)t.push(e),e=un(e);return t}function un(e){const{parentNode:t}=e;return Ja(t)?t.host:t}function ro(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function ao({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!an(n)||n.contains(e)||e.contains(n))return!0;if(Za(n,e)>0){let r=n;for(;r;){if(r.contains(e))return!0;if(ro(r.getBoundingClientRect(),t))return!1;r=r.parentElement}}return!0}function ct(e,t){const n=[];return t.forEach((r,a)=>{if(a.disabled)return;const o=sn(a),u=Ya(a.orientation,o,{x:e.clientX,y:e.clientY});u&&u.distance.x<=0&&u.distance.y<=0&&ao({groupElement:a.element,hitRegion:u.hitRegion.rect,pointerEventTarget:e.target})&&n.push(u.hitRegion)}),n}function oo(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function U(e,t,n=0){return Math.abs(G(e)-G(t))<=n}function ne(e,t){return U(e,t)?0:e>t?1:-1}function je({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:r}){const{collapsedSize:a=0,collapsible:o,disabled:u,maxSize:s=100,minSize:l=0}=t;if(u&&!e)return n;if(ne(r,l)<0)if(o){const c=(a+l)/2;ne(r,c)<0?r=a:r=l}else r=l;return r=Math.min(s,r),r=G(r),r}function Ie({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:a,trigger:o}){if(U(e,0))return t;const u=o==="imperative-api",s=Object.values(t),l=Object.values(a),c=[...s],[f,v]=r;F(f!=null,"Invalid first pivot index"),F(v!=null,"Invalid second pivot index");let m=0;switch(o){case"keyboard":{{const g=e<0?v:f,w=n[g];F(w,`Panel constraints not found for index ${g}`);const{collapsedSize:b=0,collapsible:h,minSize:k=0}=w;if(h){const S=s[g];if(F(S!=null,`Previous layout not found for panel index ${g}`),U(S,b)){const x=k-S;ne(x,Math.abs(e))>0&&(e=e<0?0-x:x)}}}{const g=e<0?f:v,w=n[g];F(w,`No panel constraints found for index ${g}`);const{collapsedSize:b=0,collapsible:h,minSize:k=0}=w;if(h){const S=s[g];if(F(S!=null,`Previous layout not found for panel index ${g}`),U(S,k)){const x=S-b;ne(x,Math.abs(e))>0&&(e=e<0?0-x:x)}}}break}default:{const g=e<0?v:f,w=n[g];F(w,`Panel constraints not found for index ${g}`);const b=s[g],{collapsible:h,collapsedSize:k,minSize:S}=w;if(h&&ne(b,S)<0)if(e>0){const x=S-k,N=x/2,C=b+e;ne(C,S)<0&&(e=ne(e,N)<=0?0:x)}else{const x=S-k,N=100-x/2,C=b-e;ne(C,S)<0&&(e=ne(100+e,N)>0?0:-x)}break}}{const g=e<0?1:-1;let w=e<0?v:f,b=0;for(;;){const k=s[w];F(k!=null,`Previous layout not found for panel index ${w}`);const S=je({overrideDisabledPanels:u,panelConstraints:n[w],prevSize:k,size:100})-k;if(b+=S,w+=g,w<0||w>=n.length)break}const h=Math.min(Math.abs(e),Math.abs(b));e=e<0?0-h:h}{let g=e<0?f:v;for(;g>=0&&g<n.length;){const w=Math.abs(e)-Math.abs(m),b=s[g];F(b!=null,`Previous layout not found for panel index ${g}`);const h=b-w,k=je({overrideDisabledPanels:u,panelConstraints:n[g],prevSize:b,size:h});if(!U(b,k)&&(m+=b-k,c[g]=k,m.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?g--:g++}}if(oo(l,c))return a;{const g=e<0?v:f,w=s[g];F(w!=null,`Previous layout not found for panel index ${g}`);const b=w+m,h=je({overrideDisabledPanels:u,panelConstraints:n[g],prevSize:w,size:b});if(c[g]=h,!U(h,b)){let k=b-h,S=e<0?v:f;for(;S>=0&&S<n.length;){const x=c[S];F(x!=null,`Previous layout not found for panel index ${S}`);const N=x+k,C=je({overrideDisabledPanels:u,panelConstraints:n[S],prevSize:x,size:N});if(U(x,C)||(k-=C-x,c[S]=C),U(k,0))break;e>0?S--:S++}}}const y=Object.values(c).reduce((g,w)=>w+g,0);if(!U(y,100,.1))return a;const j=Object.keys(a);return c.reduce((g,w,b)=>(g[j[b]]=w,g),{})}function pe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(t[n]===void 0||ne(e[n],t[n])!==0)return!1;return!0}function he({layout:e,panelConstraints:t}){const n=Object.values(e),r=[...n],a=r.reduce((s,l)=>s+l,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(s=>`${s}%`).join(", ")}`);if(!U(a,100)&&r.length>0)for(let s=0;s<t.length;s++){const l=r[s];F(l!=null,`No layout data found for index ${s}`);const c=100/a*l;r[s]=c}let o=0;for(let s=0;s<t.length;s++){const l=n[s];F(l!=null,`No layout data found for index ${s}`);const c=r[s];F(c!=null,`No layout data found for index ${s}`);const f=je({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:l,size:c});c!=f&&(o+=c-f,r[s]=f)}if(!U(o,0))for(let s=0;s<t.length;s++){const l=r[s];F(l!=null,`No layout data found for index ${s}`);const c=l+o,f=je({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:l,size:c});if(l!==f&&(o-=f-l,r[s]=f,U(o,0)))break}const u=Object.keys(e);return r.reduce((s,l,c)=>(s[u[c]]=l,s),{})}function dn({groupId:e,panelId:t}){const n=()=>{const s=ge();for(const[l,{defaultLayoutDeferred:c,derivedPanelConstraints:f,layout:v,groupSize:m,separatorToPanels:y}]of s)if(l.id===e)return{defaultLayoutDeferred:c,derivedPanelConstraints:f,group:l,groupSize:m,layout:v,separatorToPanels:y};throw Error(`Group ${e} not found`)},r=()=>{const s=n().derivedPanelConstraints.find(l=>l.panelId===t);if(s!==void 0)return s;throw Error(`Panel constraints not found for Panel ${t}`)},a=()=>{const s=n().group.panels.find(l=>l.id===t);if(s!==void 0)return s;throw Error(`Layout not found for Panel ${t}`)},o=()=>{const s=n().layout[t];if(s!==void 0)return s;throw Error(`Layout not found for Panel ${t}`)},u=s=>{const l=o();if(s===l)return;const{defaultLayoutDeferred:c,derivedPanelConstraints:f,group:v,groupSize:m,layout:y,separatorToPanels:j}=n(),g=v.panels.findIndex(k=>k.id===t),w=g===v.panels.length-1,b=Ie({delta:w?l-s:s-l,initialLayout:y,panelConstraints:f,pivotIndices:w?[g-1,g]:[g,g+1],prevLayout:y,trigger:"imperative-api"}),h=he({layout:b,panelConstraints:f});pe(y,h)||oe(v,{defaultLayoutDeferred:c,derivedPanelConstraints:f,groupSize:m,layout:h,separatorToPanels:j})};return{collapse:()=>{const{collapsible:s,collapsedSize:l}=r(),{mutableValues:c}=a(),f=o();s&&f!==l&&(c.expandToSize=f,u(l))},expand:()=>{const{collapsible:s,collapsedSize:l,minSize:c}=r(),{mutableValues:f}=a(),v=o();if(s&&v===l){let m=f.expandToSize??c;m===0&&(m=1),u(m)}},getSize:()=>{const{group:s}=n(),l=o(),{element:c}=a(),f=s.orientation==="horizontal"?c.offsetWidth:c.offsetHeight;return{asPercentage:l,inPixels:f}},isCollapsed:()=>{const{collapsible:s,collapsedSize:l}=r(),c=o();return s&&U(l,c)},resize:s=>{const{group:l}=n(),{element:c}=a(),f=Ce({group:l}),v=Re({groupSize:f,panelElement:c,styleProp:s}),m=G(v/f*100);u(m)}}}function Tt(e){if(e.defaultPrevented)return;const t=ge();ct(e,t).forEach(n=>{if(n.separator){const r=n.panels.find(a=>a.panelConstraints.defaultSize!==void 0);if(r){const a=r.panelConstraints.defaultSize,o=dn({groupId:n.group.id,panelId:r.id});o&&a!==void 0&&(o.resize(a),e.preventDefault())}}})}function qe(e){const t=ge();for(const[n]of t)if(n.separators.some(r=>r.element===e))return n;throw Error("Could not find parent Group for separator element")}function fn({groupId:e}){const t=()=>{const n=ge();for(const[r,a]of n)if(r.id===e)return{group:r,...a};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){const{defaultLayoutDeferred:n,layout:r}=t();return n?{}:r},setLayout(n){const{defaultLayoutDeferred:r,derivedPanelConstraints:a,group:o,groupSize:u,layout:s,separatorToPanels:l}=t(),c=he({layout:n,panelConstraints:a});return r?s:(pe(s,c)||oe(o,{defaultLayoutDeferred:r,derivedPanelConstraints:a,groupSize:u,layout:c,separatorToPanels:l}),c)}}}function fe(e,t){const n=qe(e),r=ce(n.id,!0),a=n.separators.find(f=>f.element===e);F(a,"Matching separator not found");const o=r.separatorToPanels.get(a);F(o,"Matching panels not found");const u=o.map(f=>n.panels.indexOf(f)),s=fn({groupId:n.id}).getLayout(),l=Ie({delta:t,initialLayout:s,panelConstraints:r.derivedPanelConstraints,pivotIndices:u,prevLayout:s,trigger:"keyboard"}),c=he({layout:l,panelConstraints:r.derivedPanelConstraints});pe(s,c)||oe(n,{defaultLayoutDeferred:r.defaultLayoutDeferred,derivedPanelConstraints:r.derivedPanelConstraints,groupSize:r.groupSize,layout:c,separatorToPanels:r.separatorToPanels})}function Ft(e){if(e.defaultPrevented)return;const t=e.currentTarget,n=qe(t);if(!n.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),n.orientation==="vertical"&&fe(t,5);break}case"ArrowLeft":{e.preventDefault(),n.orientation==="horizontal"&&fe(t,-5);break}case"ArrowRight":{e.preventDefault(),n.orientation==="horizontal"&&fe(t,5);break}case"ArrowUp":{e.preventDefault(),n.orientation==="vertical"&&fe(t,-5);break}case"End":{e.preventDefault(),fe(t,100);break}case"Enter":{e.preventDefault();const r=qe(t),a=ce(r.id,!0),{derivedPanelConstraints:o,layout:u,separatorToPanels:s}=a,l=r.separators.find(m=>m.element===t);F(l,"Matching separator not found");const c=s.get(l);F(c,"Matching panels not found");const f=c[0],v=o.find(m=>m.panelId===f.id);if(F(v,"Panel metadata not found"),v.collapsible){const m=u[f.id],y=v.collapsedSize===m?r.mutableState.expandedPanelSizes[f.id]??v.minSize:v.collapsedSize;fe(t,y-m)}break}case"F6":{e.preventDefault();const r=qe(t).separators.map(u=>u.element),a=Array.from(r).findIndex(u=>u===e.currentTarget);F(a!==null,"Index not found");const o=e.shiftKey?a>0?a-1:r.length-1:a+1<r.length?a+1:0;r[o].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),fe(t,-100);break}}}let ze={cursorFlags:0,state:"inactive"};const ut=new ln;function me(){return ze}function io(e){return ut.addListener("change",e)}function so(e){const t=ze,n={...ze};n.cursorFlags=e,ze=n,ut.emit("change",{prev:t,next:n})}function ke(e){const t=ze;ze=e,ut.emit("change",{prev:t,next:e})}function At(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const t=ge(),n=ct(e,t),r=new Map;let a=!1;n.forEach(o=>{o.separator&&(a||(a=!0,o.separator.element.focus({preventScroll:!0})));const u=t.get(o.group);u&&r.set(o.group,u.layout)}),ke({cursorFlags:0,hitRegions:n,initialLayoutMap:r,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),n.length&&e.preventDefault()}const lo=e=>e,rt=()=>{},pn=1,hn=2,mn=4,gn=8,_t=3,Bt=12;let Ve;function Ht(){return Ve===void 0&&(Ve=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(Ve=!0)),Ve}function co({cursorFlags:e,groups:t,state:n}){let r=0,a=0;switch(n){case"active":case"hover":t.forEach(o=>{if(!o.mutableState.disableCursor)switch(o.orientation){case"horizontal":{r++;break}case"vertical":{a++;break}}})}if(!(r===0&&a===0)){switch(n){case"active":{if(e&&Ht()){const o=(e&pn)!==0,u=(e&hn)!==0,s=(e&mn)!==0,l=(e&gn)!==0;if(o)return s?"se-resize":l?"ne-resize":"e-resize";if(u)return s?"sw-resize":l?"nw-resize":"w-resize";if(s)return"s-resize";if(l)return"n-resize"}break}}return Ht()?r>0&&a>0?"move":r>0?"ew-resize":"ns-resize":r>0&&a>0?"grab":r>0?"col-resize":"row-resize"}}const Vt=new WeakMap;function dt(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=Vt.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&e.adoptedStyleSheets.push(n));const r=me();switch(r.state){case"active":case"hover":{const a=co({cursorFlags:r.cursorFlags,groups:r.hitRegions.map(u=>u.group),state:r.state}),o=`*, *:hover {cursor: ${a} !important; }`;if(t===o)return;t=o,a?n.cssRules.length===0?n.insertRule(o):n.replaceSync(o):n.cssRules.length===1&&n.deleteRule(0);break}case"inactive":{t=void 0,n.cssRules.length===1&&n.deleteRule(0);break}}Vt.set(e,{prevStyle:t,styleSheet:n})}function xn({document:e,event:t,hitRegions:n,initialLayoutMap:r,mountedGroups:a,pointerDownAtPoint:o,prevCursorFlags:u}){let s=0;n.forEach(c=>{const{group:f,groupSize:v}=c,{orientation:m,panels:y}=f,{disableCursor:j}=f.mutableState;let g=0;o?m==="horizontal"?g=(t.clientX-o.x)/v*100:g=(t.clientY-o.y)/v*100:m==="horizontal"?g=t.clientX<0?-100:100:g=t.clientY<0?-100:100;const w=r.get(f),b=a.get(f);if(!w||!b)return;const{defaultLayoutDeferred:h,derivedPanelConstraints:k,groupSize:S,layout:x,separatorToPanels:N}=b;if(k&&x&&N){const C=Ie({delta:g,initialLayout:w,panelConstraints:k,pivotIndices:c.panels.map(D=>y.indexOf(D)),prevLayout:x,trigger:"mouse-or-touch"});if(pe(C,x)){if(g!==0&&!j)switch(m){case"horizontal":{s|=g<0?pn:hn;break}case"vertical":{s|=g<0?mn:gn;break}}}else oe(c.group,{defaultLayoutDeferred:h,derivedPanelConstraints:k,groupSize:S,layout:C,separatorToPanels:N})}});let l=0;t.movementX===0?l|=u&_t:l|=s&_t,t.movementY===0?l|=u&Bt:l|=s&Bt,so(l),dt(e)}function qt(e){const t=ge(),n=me();switch(n.state){case"active":xn({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}}function Wt(e){if(e.defaultPrevented)return;const t=me(),n=ge();switch(t.state){case"active":{if(e.buttons===0){ke({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(r=>{const a=ce(r.group.id,!0);oe(r.group,a)});return}xn({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{const r=ct(e,n);r.length===0?t.state!=="inactive"&&ke({cursorFlags:0,state:"inactive"}):ke({cursorFlags:0,hitRegions:r,state:"hover"}),dt(e.currentTarget);break}}}function Ut(e){if(e.relatedTarget instanceof HTMLIFrameElement)switch(me().state){case"hover":ke({cursorFlags:0,state:"inactive"})}}function Gt(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const t=me();switch(t.state){case"active":ke({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(dt(e.currentTarget),t.hitRegions.forEach(n=>{const r=ce(n.group.id,!0);oe(n.group,r)}),e.preventDefault())}}function Kt(e){let t=0,n=0;const r={};for(const o of e)if(o.defaultSize!==void 0){t++;const u=G(o.defaultSize);n+=u,r[o.panelId]=u}else r[o.panelId]=void 0;const a=e.length-t;if(a!==0){const o=G((100-n)/a);for(const u of e)u.defaultSize===void 0&&(r[u.panelId]=o)}return r}function uo(e,t,n){if(!n[0])return;const r=e.panels.find(l=>l.element===t);if(!r||!r.onResize)return;const a=Ce({group:e}),o=e.orientation==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,u=r.mutableValues.prevSize,s={asPercentage:G(o/a*100),inPixels:o};r.mutableValues.prevSize=s,r.onResize(s,r.id,u)}function fo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function po({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:r}){if(n<=0||t<=0||n===t)return r;let a=0,o=0,u=!1;const s=new Map,l=[];for(const v of e.panels){const m=r[v.id]??0;switch(v.panelConstraints.groupResizeBehavior){case"preserve-pixel-size":{u=!0;const y=m/100*n,j=G(y/t*100);s.set(v.id,j),a+=j;break}case"preserve-relative-size":default:{l.push(v.id),o+=m;break}}}if(!u||l.length===0)return r;const c=100-a,f={...r};if(s.forEach((v,m)=>{f[m]=v}),o>0)for(const v of l){const m=r[v]??0;f[v]=G(m/o*c)}else{const v=G(c/l.length);for(const m of l)f[m]=v}return f}function ho(e,t){const n=e.map(a=>a.id),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n)if(!r.includes(a))return!1;return!0}const ye=new Map;function mo(e){let t=!0;F(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const n=e.element.ownerDocument.defaultView.ResizeObserver,r=new Set,a=new Set,o=new n(j=>{for(const g of j){const{borderBoxSize:w,target:b}=g;if(b===e.element){if(t){const h=Ce({group:e});if(h===0)return;const k=ce(e.id);if(!k)return;const S=at(e),x=k.defaultLayoutDeferred?Kt(S):k.layout,N=po({group:e,nextGroupSize:h,prevGroupSize:k.groupSize,prevLayout:x}),C=he({layout:N,panelConstraints:S});if(!k.defaultLayoutDeferred&&pe(k.layout,C)&&fo(k.derivedPanelConstraints,S)&&k.groupSize===h)return;oe(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:S,groupSize:h,layout:C,separatorToPanels:k.separatorToPanels})}}else uo(e,b,w)}});o.observe(e.element),e.panels.forEach(j=>{F(!r.has(j.id),`Panel ids must be unique; id "${j.id}" was used more than once`),r.add(j.id),j.onResize&&o.observe(j.element)});const u=Ce({group:e}),s=at(e),l=e.panels.map(({id:j})=>j).join(",");let c=e.mutableState.defaultLayout;c&&(ho(e.panels,c)||(c=void 0));const f=e.mutableState.layouts[l]??c??Kt(s),v=he({layout:f,panelConstraints:s}),m=e.element.ownerDocument;ye.set(m,(ye.get(m)??0)+1);const y=new Map;return sn(e).forEach(j=>{j.separator&&y.set(j.separator,j.panels)}),oe(e,{defaultLayoutDeferred:u===0,derivedPanelConstraints:s,groupSize:u,layout:v,separatorToPanels:y}),e.separators.forEach(j=>{F(!a.has(j.id),`Separator ids must be unique; id "${j.id}" was used more than once`),a.add(j.id),j.element.addEventListener("keydown",Ft)}),ye.get(m)===1&&(m.addEventListener("dblclick",Tt,!0),m.addEventListener("pointerdown",At,!0),m.addEventListener("pointerleave",qt),m.addEventListener("pointermove",Wt),m.addEventListener("pointerout",Ut),m.addEventListener("pointerup",Gt,!0)),function(){t=!1,ye.set(m,Math.max(0,(ye.get(m)??0)-1)),Qa(e),e.separators.forEach(j=>{j.element.removeEventListener("keydown",Ft)}),ye.get(m)||(m.removeEventListener("dblclick",Tt,!0),m.removeEventListener("pointerdown",At,!0),m.removeEventListener("pointerleave",qt),m.removeEventListener("pointermove",Wt),m.removeEventListener("pointerout",Ut),m.removeEventListener("pointerup",Gt,!0)),o.disconnect()}}function go(){const[e,t]=d.useState({}),n=d.useCallback(()=>t({}),[]);return[e,n]}function ft(e){const t=d.useId();return`${e??t}`}const xe=typeof window<"u"?d.useLayoutEffect:d.useEffect;function De(e){const t=d.useRef(e);return xe(()=>{t.current=e},[e]),d.useCallback((...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[t])}function pt(...e){return De(t=>{e.forEach(n=>{if(n)switch(typeof n){case"function":{n(t);break}case"object":{n.current=t;break}}})})}function ht(e){const t=d.useRef({...e});return xe(()=>{for(const n in e)t.current[n]=e[n]},[e]),t.current}const vn=d.createContext(null);function xo(e,t){const n=d.useRef({getLayout:()=>({}),setLayout:lo});d.useImperativeHandle(t,()=>n.current,[]),xe(()=>{Object.assign(n.current,fn({groupId:e}))})}function it({children:e,className:t,defaultLayout:n,disableCursor:r,disabled:a,elementRef:o,groupRef:u,id:s,onLayoutChange:l,onLayoutChanged:c,orientation:f="horizontal",resizeTargetMinimumSize:v={coarse:20,fine:10},style:m,...y}){const j=d.useRef({onLayoutChange:{},onLayoutChanged:{}}),g=De(M=>{pe(j.current.onLayoutChange,M)||(j.current.onLayoutChange=M,l==null||l(M))}),w=De(M=>{pe(j.current.onLayoutChanged,M)||(j.current.onLayoutChanged=M,c==null||c(M))}),b=ft(s),h=d.useRef(null),[k,S]=go(),x=d.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:v,separators:[]}),N=pt(h,o);xo(b,u);const C=De((M,E)=>{const T=me(),I=Ot(M),z=ce(M);if(z){let O=!1;switch(T.state){case"active":{O=T.hitRegions.some(q=>q.group===I);break}}return{flexGrow:z.layout[E]??1,pointerEvents:O?"none":void 0}}return{flexGrow:(n==null?void 0:n[E])??1}}),D=ht({defaultLayout:n,disableCursor:r}),_=d.useMemo(()=>({get disableCursor(){return!!D.disableCursor},getPanelStyles:C,id:b,orientation:f,registerPanel:M=>{const E=x.current;return E.panels=ot(f,[...E.panels,M]),S(),()=>{E.panels=E.panels.filter(T=>T!==M),S()}},registerSeparator:M=>{const E=x.current;return E.separators=ot(f,[...E.separators,M]),S(),()=>{E.separators=E.separators.filter(T=>T!==M),S()}},togglePanelDisabled:(M,E)=>{const T=x.current.panels.find(O=>O.id===M);T&&(T.panelConstraints.disabled=E);const I=Ot(b),z=ce(b);I&&z&&oe(I,{...z,derivedPanelConstraints:at(I)})},toggleSeparatorDisabled:(M,E)=>{const T=x.current.separators.find(I=>I.id===M);T&&(T.disabled=E)}}),[C,b,S,f,D]),L=d.useRef(null);return xe(()=>{const M=h.current;if(M===null)return;const E=x.current;let T;if(D.defaultLayout!==void 0&&Object.keys(D.defaultLayout).length===E.panels.length){T={};for(const W of E.panels){const R=D.defaultLayout[W.id];R!==void 0&&(T[W.id]=R)}}const I={disabled:!!a,element:M,id:b,mutableState:{defaultLayout:T,disableCursor:!!D.disableCursor,expandedPanelSizes:x.current.lastExpandedPanelSizes,layouts:x.current.layouts},orientation:f,panels:E.panels,resizeTargetMinimumSize:E.resizeTargetMinimumSize,separators:E.separators};L.current=I;const z=mo(I),{defaultLayoutDeferred:O,derivedPanelConstraints:q,layout:J}=ce(I.id,!0);!O&&q.length>0&&(g(J),w(J));const ee=lt(b,W=>{const{defaultLayoutDeferred:R,derivedPanelConstraints:$,layout:V}=W.next;if(R||$.length===0)return;const te=I.panels.map(({id:Z})=>Z).join(",");I.mutableState.layouts[te]=V,$.forEach(Z=>{if(Z.collapsible){const{layout:X}=W.prev??{};if(X){const Ne=U(Z.collapsedSize,V[Z.panelId]),ue=U(Z.collapsedSize,X[Z.panelId]);Ne&&!ue&&(I.mutableState.expandedPanelSizes[Z.panelId]=X[Z.panelId])}}});const K=me().state!=="active";g(V),K&&w(V)});return()=>{L.current=null,z(),ee()}},[a,b,w,g,f,k,D]),d.useEffect(()=>{const M=L.current;M&&(M.mutableState.defaultLayout=n,M.mutableState.disableCursor=!!r)}),i.jsx(vn.Provider,{value:_,children:i.jsx("div",{...y,className:t,"data-group":!0,"data-testid":b,id:b,ref:N,style:{height:"100%",width:"100%",overflow:"hidden",...m,display:"flex",flexDirection:f==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:f==="horizontal"?"pan-y":"pan-x"},children:e})})}it.displayName="Group";function mt(){const e=d.useContext(vn);return F(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function vo(e,t){const{id:n}=mt(),r=d.useRef({collapse:rt,expand:rt,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:rt});d.useImperativeHandle(t,()=>r.current,[]),xe(()=>{Object.assign(r.current,dn({groupId:n,panelId:e}))})}function be({children:e,className:t,collapsedSize:n="0%",collapsible:r=!1,defaultSize:a,disabled:o,elementRef:u,groupResizeBehavior:s="preserve-relative-size",id:l,maxSize:c="100%",minSize:f="0%",onResize:v,panelRef:m,style:y,...j}){const g=!!l,w=ft(l),b=ht({disabled:o}),h=d.useRef(null),k=pt(h,u),{getPanelStyles:S,id:x,orientation:N,registerPanel:C,togglePanelDisabled:D}=mt(),_=v!==null,L=De((E,T,I)=>{v==null||v(E,l,I)});xe(()=>{const E=h.current;if(E!==null){const T={element:E,id:w,idIsStable:g,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:_?L:void 0,panelConstraints:{groupResizeBehavior:s,collapsedSize:n,collapsible:r,defaultSize:a,disabled:b.disabled,maxSize:c,minSize:f}};return C(T)}},[s,n,r,a,_,w,g,c,f,L,C,b]),d.useEffect(()=>{D(w,!!o)},[o,w,D]),vo(w,m);const M=d.useSyncExternalStore(E=>lt(x,E),()=>JSON.stringify(S(x,w)),()=>JSON.stringify(S(x,w)));return i.jsx("div",{...j,"aria-disabled":o||void 0,"data-panel":!0,"data-testid":w,id:w,ref:k,style:{...yo,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...JSON.parse(M)},children:i.jsx("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...y,touchAction:N==="horizontal"?"pan-y":"pan-x"},children:e})})}be.displayName="Panel";const yo={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function bo({layout:e,panelConstraints:t,panelId:n,panelIndex:r}){let a,o;const u=e[n],s=t.find(l=>l.panelId===n);if(s){const l=s.maxSize,c=s.collapsible?s.collapsedSize:s.minSize,f=[r,r+1];o=he({layout:Ie({delta:c-u,initialLayout:e,panelConstraints:t,pivotIndices:f,prevLayout:e}),panelConstraints:t})[n],a=he({layout:Ie({delta:l-u,initialLayout:e,panelConstraints:t,pivotIndices:f,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:a,valueMin:o,valueNow:u}}function We({children:e,className:t,disabled:n,elementRef:r,id:a,style:o,...u}){const s=ft(a),l=ht({disabled:n}),[c,f]=d.useState({}),[v,m]=d.useState("inactive"),y=d.useRef(null),j=pt(y,r),{disableCursor:g,id:w,orientation:b,registerSeparator:h,toggleSeparatorDisabled:k}=mt(),S=b==="horizontal"?"vertical":"horizontal";xe(()=>{const N=y.current;if(N!==null){const C={disabled:l.disabled,element:N,id:s},D=h(C),_=io(M=>{m(M.next.state!=="inactive"&&M.next.hitRegions.some(E=>E.separator===C)?M.next.state:"inactive")}),L=lt(w,M=>{const{derivedPanelConstraints:E,layout:T,separatorToPanels:I}=M.next,z=I.get(C);if(z){const O=z[0],q=z.indexOf(O);f(bo({layout:T,panelConstraints:E,panelId:O.id,panelIndex:q}))}});return()=>{_(),L(),D()}}},[w,s,h,l]),d.useEffect(()=>{k(s,!!n)},[n,s,k]);let x;return n&&!g&&(x="not-allowed"),i.jsx("div",{...u,"aria-controls":c.valueControls,"aria-disabled":n||void 0,"aria-orientation":S,"aria-valuemax":c.valueMax,"aria-valuemin":c.valueMin,"aria-valuenow":c.valueNow,children:e,className:t,"data-separator":n?"disabled":v,"data-testid":s,id:s,ref:j,role:"separator",style:{flexBasis:"auto",cursor:x,...o,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:n?void 0:0})}We.displayName="Separator";const wo={ghost:"hover:bg-[#F8F4F0] text-[#36342E]",subtle:"hover:bg-[#ECEAE3] text-[#6B6960]"},jo={sm:"w-7 h-7",md:"w-8 h-8"},So={sm:14,md:16};function ie({icon:e,label:t,size:n="md",variant:r="ghost",onClick:a,className:o="",disabled:u=!1,title:s}){return i.jsx("button",{type:"button","aria-label":t,title:s,disabled:u,onClick:a,className:["inline-flex items-center justify-center rounded-btn transition-colors",wo[r],jo[n],u?"opacity-40 cursor-not-allowed":"",o].filter(Boolean).join(" "),children:i.jsx(e,{size:So[n]})})}function zo({x:e,y:t,items:n,onClose:r}){const[a,o]=d.useState(0),u=d.useRef(null),s=d.useRef([]);d.useEffect(()=>{var c;(c=s.current[0])==null||c.focus()},[]),d.useEffect(()=>{const c=f=>{u.current&&!u.current.contains(f.target)&&r()};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[r]);const l=d.useCallback(c=>{var f,v;switch(c.key){case"Escape":c.preventDefault(),r();break;case"ArrowDown":c.preventDefault(),o(m=>{var j;const y=(m+1)%n.length;return(j=s.current[y])==null||j.focus(),y});break;case"ArrowUp":c.preventDefault(),o(m=>{var j;const y=(m-1+n.length)%n.length;return(j=s.current[y])==null||j.focus(),y});break;case"Home":c.preventDefault(),o(0),(f=s.current[0])==null||f.focus();break;case"End":c.preventDefault(),o(n.length-1),(v=s.current[n.length-1])==null||v.focus();break}},[n.length,r]);return i.jsx("div",{ref:u,role:"menu",className:"bg-card border border-border rounded-card shadow-card-hover py-1 min-w-[160px]",style:{position:"fixed",left:e,top:t,zIndex:100},onKeyDown:l,children:n.map((c,f)=>{const v=c.icon,m=c.variant==="danger";return i.jsxs("button",{ref:y=>{s.current[f]=y},role:"menuitem",tabIndex:a===f?0:-1,onClick:()=>{c.onClick(),r()},className:["flex items-center gap-2 w-full text-left px-3 py-2 text-sm transition-colors",m?"text-danger hover:bg-danger/10":"text-ink hover:bg-hover"].join(" "),children:[i.jsx(v,{size:14}),c.label]},c.label)})})}function ko({sessionId:e,defaultMode:t}){const[n,r]=d.useState([]),[a,o]=d.useState(""),[u,s]=d.useState(t||"quick"),[l,c]=d.useState(!1),f=d.useRef(null),v=d.useRef(null);d.useEffect(()=>{f.current&&(f.current.scrollTop=f.current.scrollHeight)},[n]);const m=async()=>{var g;const y=a.trim();if(!y||l)return;const j={role:"user",content:y,timestamp:new Date().toISOString()};r(w=>[...w,j]),o(""),c(!0);try{const w=await Y.chatMessage(e,y,u),b={role:"system",content:w.output||"Done.",timestamp:new Date().toISOString(),filesChanged:w.files_changed};r(h=>[...h,b])}catch(w){const b={role:"system",content:`Error: ${w instanceof Error?w.message:"Request failed"}`,timestamp:new Date().toISOString()};r(h=>[...h,b])}finally{c(!1),(g=v.current)==null||g.focus()}};return i.jsxs("div",{className:"flex flex-col h-full",children:[i.jsxs("div",{ref:f,className:"flex-1 overflow-y-auto p-3 space-y-3 terminal-scroll",children:[n.length===0&&i.jsx("div",{className:"text-xs text-muted text-center py-8",children:"Send a message to iterate on your project."}),n.map((y,j)=>i.jsx("div",{className:`flex ${y.role==="user"?"justify-end":"justify-start"}`,children:i.jsxs("div",{className:`max-w-[80%] rounded-lg px-3 py-2 text-xs ${y.role==="user"?"bg-primary/10 text-ink":"bg-hover text-ink"}`,children:[i.jsx("p",{className:"whitespace-pre-wrap",children:y.content}),y.filesChanged&&y.filesChanged.length>0&&i.jsxs("div",{className:"mt-2 pt-2 border-t border-border",children:[i.jsx("span",{className:"text-[10px] text-muted font-semibold uppercase",children:"Files changed:"}),i.jsx("ul",{className:"mt-1 space-y-0.5",children:y.filesChanged.map((g,w)=>i.jsx("li",{className:"text-[10px] font-mono text-muted",children:g},w))})]})]})},j)),l&&i.jsx("div",{className:"flex justify-start",children:i.jsxs("div",{className:"bg-hover text-ink rounded-lg px-3 py-2 text-xs",children:["Building",i.jsx("span",{className:"animate-pulse",children:"..."})]})})]}),i.jsxs("div",{className:"border-t border-border p-2 flex-shrink-0",children:[i.jsx("div",{className:"flex items-center gap-1 mb-2",children:["quick","standard","max"].map(y=>i.jsx("button",{onClick:()=>s(y),className:`text-[10px] font-semibold px-2 py-0.5 rounded-btn transition-colors capitalize ${u===y?"bg-primary text-white":"text-muted hover:text-ink"}`,children:y},y))}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("input",{ref:v,type:"text",value:a,onChange:y=>o(y.target.value),onKeyDown:y=>{y.key==="Enter"&&!y.shiftKey&&(y.preventDefault(),m())},placeholder:"Ask AI to modify your project...",className:"flex-1 px-3 py-1.5 text-xs bg-card border border-border rounded-btn outline-none focus:border-primary transition-colors",disabled:l}),i.jsx(Fn,{size:"sm",icon:Sr,onClick:m,disabled:l||!a.trim(),"aria-label":"Send message",children:"Send"})]})]})]})}const Xt=[{id:"build",label:"Build Log",icon:Nr},{id:"agents",label:"Agents",icon:Gn},{id:"quality",label:"Quality",icon:kr},{id:"chat",label:"AI Chat",icon:yr}];function Co({status:e}){switch(e){case"pass":return i.jsx(_n,{size:12,className:"text-success"});case"fail":return i.jsx(Ue,{size:12,className:"text-danger"});default:return i.jsx(An,{size:12,className:"text-muted"})}}function No({agents:e}){return!e||e.length===0?i.jsx("div",{className:"p-4 text-xs text-muted",children:"No agents running."}):i.jsx("div",{className:"p-2 space-y-1 overflow-y-auto terminal-scroll",children:e.map(t=>i.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-btn bg-hover text-xs",children:[i.jsx("span",{className:"font-semibold text-ink truncate",children:t.name}),i.jsx("span",{className:"text-[10px] font-mono text-muted-accessible px-1.5 py-0.5 rounded-btn bg-card",children:t.type}),i.jsx("span",{className:`text-[10px] font-semibold ${t.status==="running"?"text-success":"text-muted"}`,children:t.status}),i.jsx("span",{className:"ml-auto text-[10px] text-muted-accessible font-mono truncate max-w-[200px]",children:t.task})]},t.id))})}function Mo({checklist:e}){return!e||!e.items||e.items.length===0?i.jsx("div",{className:"p-4 text-xs text-muted",children:"No quality gate data available."}):i.jsxs("div",{className:"p-2 space-y-1 overflow-y-auto terminal-scroll",children:[i.jsxs("div",{className:"flex items-center gap-3 px-3 py-1 text-[10px] text-muted-accessible font-semibold uppercase",children:[i.jsx("span",{children:"Gate"}),i.jsxs("span",{className:"ml-auto",children:[e.passed,"/",e.total," passed"]})]}),e.items.map(t=>i.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-btn hover:bg-hover text-xs",children:[i.jsx(Co,{status:t.status}),i.jsx("span",{className:"text-ink",children:t.label}),t.details&&i.jsx("span",{className:"ml-auto text-[10px] text-muted-accessible truncate max-w-[200px]",children:t.details})]},t.id))]})}function Po({logs:e,logsLoading:t,agents:n,checklist:r,sessionId:a,subscribe:o,buildMode:u}){var c;const[s,l]=d.useState("build");return i.jsxs("div",{className:"h-full flex flex-col bg-card",children:[i.jsx("div",{role:"tablist",className:"flex items-center border-b border-border px-2 flex-shrink-0",children:Xt.map(f=>{const v=f.icon,m=s===f.id;return i.jsxs("button",{role:"tab","aria-selected":m,onClick:()=>l(f.id),className:`flex items-center gap-1.5 px-3 py-2 text-xs font-medium transition-colors border-b-2 ${m?"border-primary text-primary":"border-transparent text-muted hover:text-ink"}`,children:[i.jsx(v,{size:14}),f.label]},f.id)})}),i.jsxs("div",{role:"tabpanel","aria-label":(c=Xt.find(f=>f.id===s))==null?void 0:c.label,className:"flex-1 min-h-0 overflow-hidden",children:[s==="build"&&i.jsx(In,{logs:e,loading:t,subscribe:o}),s==="agents"&&i.jsx(No,{agents:n}),s==="quality"&&i.jsx(Mo,{checklist:r}),s==="chat"&&i.jsx(ko,{sessionId:a,defaultMode:u})]})]})}function st(e,t,n){var o;if(t==="directory")return n?i.jsx(pr,{size:14}):i.jsx(xr,{size:14});const r=((o=e.split(".").pop())==null?void 0:o.toLowerCase())||"";return{js:i.jsx(ae,{size:14,className:"text-yellow-600"}),ts:i.jsx(ae,{size:14,className:"text-blue-500"}),tsx:i.jsx(ae,{size:14,className:"text-blue-400"}),jsx:i.jsx(ae,{size:14,className:"text-yellow-500"}),py:i.jsx(ae,{size:14,className:"text-green-600"}),html:i.jsx(rr,{size:14,className:"text-orange-500"}),css:i.jsx(cr,{size:14,className:"text-purple-500"}),json:i.jsx(er,{size:14,className:"text-green-500"}),md:i.jsx(sr,{size:14,className:"text-muted"}),go:i.jsx(ae,{size:14,className:"text-cyan-600"}),rs:i.jsx(ae,{size:14,className:"text-orange-600"}),rb:i.jsx(ae,{size:14,className:"text-red-500"}),sh:i.jsx(ae,{size:14,className:"text-green-600"})}[r]||i.jsx(dr,{size:14})}function Eo(e){var a;const t=((a=e.split(".").pop())==null?void 0:a.toLowerCase())||"",n={js:"javascript",jsx:"javascript",ts:"typescript",tsx:"typescript",py:"python",html:"html",htm:"html",css:"css",scss:"scss",less:"less",json:"json",md:"markdown",go:"go",rs:"rust",sh:"shell",bash:"shell",yml:"yaml",yaml:"yaml",xml:"xml",svg:"xml",sql:"sql",java:"java",kt:"kotlin",rb:"ruby",dockerfile:"dockerfile"},r=e.toLowerCase();return r==="dockerfile"?"dockerfile":r==="makefile"?"makefile":n[t]||"plaintext"}function yn(e){for(const t of e)if(t.type==="file"&&t.name.endsWith(".html")||t.children&&yn(t.children))return!0;return!1}function bn(e,t){for(const n of e){if(n.path===t)return n.size;if(n.children){const r=bn(n.children,t);if(r!==void 0)return r}}}function wn(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function jn({nodes:e,selectedPath:t,onSelect:n,onDelete:r,onContextMenu:a,depth:o=0}){const[u,s]=d.useState(()=>{const l=new Set;return o<2&&e.filter(c=>c.type==="directory").forEach(c=>l.add(c.path)),l});return i.jsx("div",{role:o===0?"tree":"group",children:e.map(l=>{const c=l.type==="directory",f=u.has(l.path),v=l.path===t;return i.jsxs("div",{className:"group/file",children:[i.jsxs("button",{role:"treeitem","aria-label":l.name,"aria-selected":v,...c?{"aria-expanded":f}:{},onContextMenu:m=>{m.preventDefault(),a==null||a(m,l.path,l.name,l.type)},onClick:()=>{c?s(m=>{const y=new Set(m);return y.has(l.path)?y.delete(l.path):y.add(l.path),y}):n(l.path,l.name)},className:`w-full text-left flex items-center gap-1.5 px-2 py-1 text-xs font-mono rounded transition-colors ${v?"bg-primary/10 text-primary":"text-ink/70 hover:bg-hover"}`,style:{paddingLeft:`${o*14+8}px`},children:[c?i.jsx("span",{className:"w-3 flex items-center justify-center flex-shrink-0 text-muted",children:f?i.jsx(Xn,{size:12}):i.jsx(Yn,{size:12})}):i.jsx("span",{className:"w-3 flex-shrink-0"}),i.jsx("span",{className:`w-5 flex items-center justify-center flex-shrink-0 ${c?"text-primary":""}`,children:st(l.name,l.type,f)}),i.jsxs("span",{className:"truncate",children:[l.name,c?"/":""]}),!c&&l.size!=null&&l.size>0&&i.jsx("span",{className:"text-[10px] text-muted/40 ml-auto flex-shrink-0",children:wn(l.size)}),!c&&r&&i.jsx("span",{role:"button",tabIndex:-1,onClick:m=>{m.stopPropagation(),r(l.path,l.name)},onKeyDown:m=>{m.key==="Enter"&&(m.stopPropagation(),r(l.path,l.name))},className:"text-muted/30 hover:text-danger ml-1 flex-shrink-0 opacity-0 group-hover/file:opacity-100 transition-opacity cursor-pointer",title:"Delete file",children:i.jsx(Ue,{size:12})})]}),c&&f&&l.children&&i.jsx(jn,{nodes:l.children,selectedPath:t,onSelect:n,onDelete:r,onContextMenu:a,depth:o+1})]},l.path)})})}function Sn(e,t=""){const n=[];for(const r of e)r.type==="file"&&n.push({path:r.path,name:r.name}),r.children&&n.push(...Sn(r.children,r.path+"/"));return n}function Lo({session:e,onClose:t}){var wt;const[n,r]=d.useState(null),[a,o]=d.useState(""),[u,s]=d.useState(null),[l,c]=d.useState(null),[f,v]=d.useState(!1),[m,y]=d.useState(!1),[j,g]=d.useState(!1),[w,b]=d.useState(!1),[h,k]=d.useState(e),S=d.useRef(null),[x,N]=d.useState([]),[C,D]=d.useState(!1),[_,L]=d.useState(""),M=d.useRef(null),E=d.useRef(null),[T,I]=d.useState(0),[z,O]=d.useState(null),[q,J]=d.useState("standard"),[ee,W]=d.useState(null),[R,$]=d.useState(!1),V=yn(h.files),te=`/api/sessions/${encodeURIComponent(h.id)}/preview/index.html`,[K,Z]=d.useState([te]),[X,Ne]=d.useState(0),ue=K[X]||te,[gt,xt]=d.useState(ue),ve=d.useCallback(async()=>{try{const p=await Y.getSessionDetail(h.id);k(p)}catch{}},[h.id]),zn=d.useCallback((p,P,A,B)=>{p.preventDefault(),O({x:p.clientX,y:p.clientY,path:P,name:A,type:B})},[]),kn=d.useCallback(()=>{X>0&&(Ne(p=>p-1),I(p=>p+1))},[X]),Cn=d.useCallback(()=>{X<K.length-1&&(Ne(p=>p+1),I(p=>p+1))},[X,K.length]),Nn=d.useCallback(p=>{Z(P=>[...P.slice(0,X+1),p]),Ne(P=>P+1),I(P=>P+1)},[X]);d.useEffect(()=>{xt(ue)},[ue]);const Fe=d.useCallback(async()=>{$(!0);try{const p=await Y.reviewProject(h.id);W(p.output)}catch(p){W(`Error: ${p instanceof Error?p.message:"Unknown"}`)}finally{$(!1)}},[h.id]),Ae=d.useCallback(async()=>{$(!0);try{const p=await Y.testProject(h.id);W(p.output)}catch(p){W(`Error: ${p instanceof Error?p.message:"Unknown"}`)}finally{$(!1)}},[h.id]),Xe=d.useCallback(async()=>{$(!0);try{const p=await Y.explainProject(h.id);W(p.output)}catch(p){W(`Error: ${p instanceof Error?p.message:"Unknown"}`)}finally{$(!1)}},[h.id]),Qe=d.useCallback(async(p,P)=>{if(window.confirm(`Delete "${P}"?`))try{await Y.deleteSessionFile(h.id,p),n===p&&(r(null),o(""),s(null),c(null),g(!1)),await ve()}catch(B){const de=B instanceof Error?B.message:"Unknown error";window.alert(`Delete failed: ${de}`)}},[h.id,n,ve]),Mn=d.useCallback(p=>p.type==="file"?[{label:"Review",icon:Je,onClick:()=>{Fe()}},{label:"Generate Tests",icon:Ze,onClick:()=>{Ae()}},{label:"Explain",icon:Ct,onClick:()=>{Xe()}},{label:"Delete",icon:Er,onClick:()=>{Qe(p.path,p.name)},variant:"danger"}]:[{label:"Review Project",icon:Je,onClick:()=>{Fe()}},{label:"Run Tests",icon:Ze,onClick:()=>{Ae()}}],[Fe,Ae,Xe,Qe]),Me=d.useCallback(async(p,P)=>{j&&n&&l!==null&&N(B=>B.map(de=>de.path===n?{...de,content:l,modified:!0}:de));const A=x.find(B=>B.path===p);if(A){r(p),o(P),s(A.content),c(A.content),g(A.modified);return}r(p),o(P),v(!0),g(!1);try{const B=h.id?await Y.getSessionFileContent(h.id,p):await Y.getFileContent(p);s(B.content),c(B.content),N(de=>[...de,{path:p,name:P,content:B.content,modified:!1}])}catch{s("[Error loading file]"),c("[Error loading file]")}finally{v(!1)}},[h.id,j,n,l,x]),Ye=d.useCallback(async()=>{var p;if(!(!n||l===null||!h.id)){b(!0);try{await Y.saveSessionFile(h.id,n,l),s(l),g(!1),N(A=>A.map(B=>B.path===n?{...B,content:l,modified:!1}:B));const P=((p=n.split(".").pop())==null?void 0:p.toLowerCase())||"";["html","css","js","jsx","ts","tsx"].includes(P)&&I(A=>A+1)}catch(P){const A=P instanceof Error?P.message:"Unknown error";window.alert(`Save failed: ${A}`)}finally{b(!1)}}},[n,l,h.id]),vt=d.useCallback(p=>{const P=x.find(A=>A.path===p);if(!(P!=null&&P.modified&&!window.confirm("Unsaved changes. Close anyway?"))&&(N(A=>A.filter(B=>B.path!==p)),n===p)){const A=x.filter(B=>B.path!==p);if(A.length>0){const B=A[A.length-1];r(B.path),o(B.name),s(B.content),c(B.content),g(B.modified)}else r(null),o(""),s(null),c(null),g(!1)}},[x,n]);d.useEffect(()=>{const p=P=>{(P.metaKey||P.ctrlKey)&&P.key==="s"&&(P.preventDefault(),j&&n&&Ye()),(P.metaKey||P.ctrlKey)&&P.key==="p"&&(P.preventDefault(),D(A=>!A),L("")),P.key==="Escape"&&C&&D(!1)};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[j,n,Ye,C]),d.useEffect(()=>{C&&M.current&&M.current.focus()},[C]);const yt=Sn(h.files),Pe=_?yt.filter(p=>p.path.toLowerCase().includes(_.toLowerCase())):yt;d.useEffect(()=>{const p=h.files.find(P=>P.name==="index.html"&&P.type==="file");p&&(Me(p.path,p.name),y(!0))},[]);const Pn=d.useCallback(p=>{p!==void 0&&(c(p),g(p!==u))},[u]),En=d.useCallback(p=>{S.current=p},[]),Ln=d.useCallback(async()=>{const p=window.prompt("New file name (e.g. src/utils.ts):");if(!(!p||!p.trim()))try{await Y.createSessionFile(h.id,p.trim()),await ve()}catch(P){const A=P instanceof Error?P.message:"Unknown error";window.alert(`Create file failed: ${A}`)}},[h.id,ve]),Rn=d.useCallback(async()=>{const p=window.prompt("New folder name (e.g. src/components):");if(!(!p||!p.trim()))try{await Y.createSessionDirectory(h.id,p.trim()),await ve()}catch(P){const A=P instanceof Error?P.message:"Unknown error";window.alert(`Create folder failed: ${A}`)}},[h.id,ve]),bt=n?bn(h.files,n):void 0,On=((wt=a.split(".").pop())==null?void 0:wt.toUpperCase())||"";return i.jsxs("div",{className:"flex flex-col h-full relative",children:[i.jsxs("div",{className:"bg-card px-3 py-2 flex items-center gap-3 flex-shrink-0 border-b border-border",children:[i.jsx("button",{onClick:()=>{j&&!window.confirm("Unsaved changes. Discard?")||t()},className:"text-xs font-medium px-3 py-1.5 rounded-btn border border-border text-muted hover:text-ink hover:bg-hover transition-colors",children:"Back"}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("h2",{className:"text-sm font-bold text-ink truncate",children:h.id}),i.jsx("p",{className:"text-[10px] font-mono text-muted-accessible truncate",children:h.path})]}),i.jsx("span",{className:`text-[10px] font-semibold px-2 py-0.5 rounded-full ${h.status==="completed"||h.status==="completion_promise_fulfilled"?"bg-success/10 text-success":"bg-muted/10 text-muted"}`,children:h.status}),i.jsx("div",{className:"flex rounded-btn border border-border overflow-hidden",children:["quick","standard","max"].map(p=>i.jsx("button",{onClick:()=>J(p),className:`px-3 py-1 text-xs font-medium transition-colors capitalize ${q===p?"bg-primary text-white":"text-secondary hover:bg-hover"}`,children:p},p))}),i.jsx(ie,{icon:Je,label:"Review project",size:"sm",onClick:Fe,disabled:R}),i.jsx(ie,{icon:Ze,label:"Run tests",size:"sm",onClick:Ae,disabled:R}),i.jsx(ie,{icon:Ct,label:"Explain project",size:"sm",onClick:Xe,disabled:R}),V&&i.jsx("button",{onClick:()=>y(!m),className:`text-xs font-medium px-3 py-1.5 rounded-btn border transition-colors ${m?"border-primary/40 bg-primary/10 text-primary":"border-border text-muted hover:text-ink hover:bg-hover"}`,children:m?"Hide Preview":"Preview"})]}),i.jsx("div",{className:"flex-1 min-h-0",children:i.jsxs(it,{orientation:"vertical",children:[i.jsx(be,{defaultSize:70,minSize:40,children:i.jsxs(it,{orientation:"horizontal",className:"h-full",children:[i.jsx(be,{defaultSize:20,minSize:15,children:i.jsxs("div",{className:"h-full flex flex-col border-r border-border bg-card",children:[i.jsxs("div",{className:"px-3 py-2 border-b border-border flex items-center gap-2",children:[i.jsx("span",{className:"text-[10px] text-muted-accessible uppercase tracking-wider font-semibold flex-1",children:"Files"}),i.jsxs("button",{onClick:Ln,title:"New File",className:"flex items-center gap-1 text-[10px] text-muted-accessible hover:text-primary px-1.5 py-0.5 rounded border border-border hover:border-primary/30 transition-colors",children:[i.jsx(or,{size:12})," New"]}),i.jsxs("button",{onClick:Rn,title:"New Folder",className:"flex items-center gap-1 text-[10px] text-muted-accessible hover:text-primary px-1.5 py-0.5 rounded border border-border hover:border-primary/30 transition-colors",children:[i.jsx(mr,{size:12})," New"]})]}),i.jsx("div",{className:"flex-1 overflow-y-auto terminal-scroll",children:h.files.length>0?i.jsx(jn,{nodes:h.files,selectedPath:n,onSelect:Me,onDelete:Qe,onContextMenu:zn}):i.jsx("div",{className:"p-4 text-xs text-muted",children:"No files"})})]})}),i.jsx(We,{className:"w-1 bg-border hover:bg-primary/30 transition-colors cursor-col-resize"}),i.jsx(be,{defaultSize:m?50:80,minSize:25,children:i.jsxs("div",{className:"h-full flex flex-col min-w-0",children:[x.length>0&&i.jsx("div",{className:"flex items-center border-b border-border bg-hover overflow-x-auto flex-shrink-0",children:x.map(p=>i.jsxs("button",{onClick:()=>Me(p.path,p.name),className:`flex items-center gap-1.5 px-3 py-1.5 text-[11px] font-mono border-r border-border whitespace-nowrap transition-colors ${p.path===n?"bg-card text-ink":"text-muted hover:text-ink hover:bg-card"}`,children:[i.jsx("span",{className:"w-4 flex items-center justify-center",children:st(p.name,"file")}),p.name,p.modified&&i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary"}),i.jsx("span",{role:"button",tabIndex:-1,onClick:P=>{P.stopPropagation(),vt(p.path)},onKeyDown:P=>{P.key==="Enter"&&(P.stopPropagation(),vt(p.path))},className:"text-muted/30 hover:text-danger ml-1 cursor-pointer",children:i.jsx(Ue,{size:12})})]},p.path))}),n?i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"px-4 py-1.5 border-b border-border flex items-center gap-2 flex-shrink-0 bg-hover",children:[i.jsx("span",{className:"text-xs font-mono text-ink/60 truncate",children:n}),w&&i.jsx("span",{className:"text-[10px] text-primary animate-pulse flex-shrink-0",children:"Saving..."}),i.jsx("span",{className:"ml-auto text-[10px] text-muted/50 font-mono",children:bt!=null?wn(bt):""}),i.jsx("span",{className:"text-[10px] text-muted/40 font-mono uppercase",children:On}),j&&i.jsx("button",{onClick:Ye,className:"text-[10px] font-medium px-2 py-0.5 rounded border border-primary/40 bg-primary/10 text-primary hover:bg-primary/20 transition-colors",children:"Save"})]}),i.jsx("div",{className:"flex-1 min-h-0",children:f?i.jsx("div",{className:"text-muted text-xs animate-pulse p-4",children:"Loading..."}):i.jsx(_a,{value:l??"",language:Eo(a),theme:"vs",onChange:Pn,onMount:En,options:{minimap:{enabled:!1},fontSize:13,lineNumbers:"on",wordWrap:"on",scrollBeyondLastLine:!1,automaticLayout:!0,padding:{top:8},renderLineHighlight:"line",smoothScrolling:!0,cursorBlinking:"smooth",folding:!0,bracketPairColorization:{enabled:!0}}})})]}):i.jsx("div",{className:"flex-1 flex items-center justify-center text-muted text-sm",children:"Select a file to view its contents"})]})}),m&&i.jsxs(i.Fragment,{children:[i.jsx(We,{className:"w-1 bg-border hover:bg-primary/30 transition-colors cursor-col-resize"}),i.jsx(be,{defaultSize:30,minSize:20,collapsible:!0,children:i.jsxs("div",{className:"h-full flex flex-col border-l border-border",children:[i.jsxs("div",{className:"px-3 py-1.5 border-b border-border flex items-center gap-2 bg-hover",children:[i.jsx(ie,{icon:Vn,label:"Back",size:"sm",onClick:kn,disabled:X<=0}),i.jsx(ie,{icon:Wn,label:"Forward",size:"sm",onClick:Cn,disabled:X>=K.length-1}),i.jsx(ie,{icon:wr,label:"Refresh",size:"sm",onClick:()=>I(p=>p+1)}),i.jsx("input",{value:gt,onChange:p=>xt(p.target.value),onKeyDown:p=>{p.key==="Enter"&&Nn(gt)},className:"flex-1 px-3 py-1 text-xs font-mono bg-card border border-border rounded-btn"}),i.jsx(ie,{icon:Bn,label:"Open in new tab",size:"sm",onClick:()=>window.open(ue,"_blank")})]}),i.jsx("div",{className:"flex-1 bg-white",children:i.jsx("iframe",{ref:E,src:ue,title:"Project Preview",className:"w-full h-full border-0",sandbox:"allow-scripts allow-same-origin allow-forms allow-popups"},T)})]})})]})]})}),i.jsx(We,{className:"h-1 bg-border hover:bg-primary/30 cursor-row-resize"}),i.jsx(be,{defaultSize:30,minSize:15,collapsible:!0,children:i.jsx(Po,{logs:null,logsLoading:!1,agents:null,checklist:null,sessionId:e.id,buildMode:q})})]})}),ee&&i.jsxs("div",{className:"absolute inset-x-0 bottom-0 z-20 bg-card border-t border-border p-4 max-h-64 overflow-y-auto",children:[i.jsxs("div",{className:"flex items-center justify-between mb-2",children:[i.jsx("span",{className:"text-xs font-semibold text-ink",children:"Action Output"}),i.jsx(ie,{icon:Ue,label:"Close",size:"sm",onClick:()=>W(null)})]}),i.jsx("pre",{className:"text-xs font-mono text-ink/80 whitespace-pre-wrap",children:ee})]}),z&&i.jsx(zo,{x:z.x,y:z.y,items:Mn(z),onClose:()=>O(null)}),C&&i.jsx("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",role:"dialog","aria-modal":"true","aria-label":"Quick open file search",onClick:()=>D(!1),children:i.jsxs("div",{className:"bg-card rounded-card shadow-2xl border border-border w-full max-w-lg",onClick:p=>p.stopPropagation(),children:[i.jsx("input",{ref:M,type:"text",value:_,onChange:p=>L(p.target.value),placeholder:"Search files by name...",className:"w-full px-4 py-3 text-sm font-mono border-b border-border outline-none rounded-t-card bg-transparent",onKeyDown:p=>{p.key==="Enter"&&Pe.length>0&&(Me(Pe[0].path,Pe[0].name),D(!1)),p.key==="Escape"&&D(!1)}}),i.jsxs("div",{className:"max-h-64 overflow-y-auto",children:[Pe.slice(0,20).map(p=>i.jsxs("button",{onClick:()=>{Me(p.path,p.name),D(!1)},className:"w-full text-left px-4 py-2 text-xs font-mono hover:bg-primary/5 flex items-center gap-2",children:[i.jsx("span",{className:"w-5 flex items-center justify-center",children:st(p.name,"file")}),i.jsx("span",{className:"text-ink",children:p.name}),i.jsx("span",{className:"text-muted/40 ml-auto truncate text-[10px]",children:p.path})]},p.path)),Pe.length===0&&i.jsx("div",{className:"px-4 py-3 text-xs text-muted",children:"No matching files"})]})]})})]})}function Fo(){const{sessionId:e}=Dn(),t=$n(),[n,r]=d.useState(null),[a,o]=d.useState(!0),[u,s]=d.useState(null);return d.useEffect(()=>{e&&(o(!0),s(null),Y.getSessionDetail(e).then(l=>{r(l),o(!1)}).catch(l=>{s(l instanceof Error?l.message:"Failed to load session"),o(!1)}))},[e]),a?i.jsx("div",{className:"h-screen bg-background flex items-center justify-center",children:i.jsxs("div",{className:"text-center",children:[i.jsx("div",{className:"text-muted animate-pulse text-sm",children:"Loading project..."}),i.jsx("div",{className:"text-[10px] font-mono text-muted/50 mt-2",children:e})]})}):u||!n?i.jsx("div",{className:"h-screen bg-background flex items-center justify-center",children:i.jsxs("div",{className:"text-center",children:[i.jsx("p",{className:"text-danger text-sm font-medium",children:"Project not found"}),i.jsx("p",{className:"text-xs text-muted mt-1",children:u||`Session ${e} does not exist`}),i.jsx("button",{onClick:()=>t("/"),className:"mt-4 px-4 py-2 rounded-btn text-sm font-semibold border border-primary/30 text-primary hover:bg-primary/5 transition-all",children:"Back to Home"})]})}):i.jsx("div",{className:"h-screen bg-background flex flex-col",children:i.jsx("div",{className:"flex-1 min-h-0",children:i.jsx(Tn,{name:"ProjectWorkspace",children:i.jsx(Lo,{session:n,onClose:()=>t("/")})})})})}export{Fo as default};
@@ -1,16 +0,0 @@
1
- import{c as f,r as c,j as e}from"./index-DwD8nlZM.js";/**
2
- * @license lucide-react v0.577.0 - ISC
3
- *
4
- * This source code is licensed under the ISC license.
5
- * See the LICENSE file in the root directory of this source tree.
6
- */const j=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],v=f("arrow-down",j);/**
7
- * @license lucide-react v0.577.0 - ISC
8
- *
9
- * This source code is licensed under the ISC license.
10
- * See the LICENSE file in the root directory of this source tree.
11
- */const y=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],N=f("lock",y);/**
12
- * @license lucide-react v0.577.0 - ISC
13
- *
14
- * This source code is licensed under the ISC license.
15
- * See the LICENSE file in the root directory of this source tree.
16
- */const E=[["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"}]],L=f("radio",E);class M extends c.Component{constructor(r){super(r),this.state={hasError:!1,error:null}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}componentDidCatch(r,d){console.error(`[${this.props.name||"Component"}] render error:`,r,d)}render(){var r;return this.state.hasError?this.props.fallback?this.props.fallback:e.jsxs("div",{className:"card p-4 rounded-card text-center",children:[e.jsx("p",{className:"text-sm text-danger font-medium",children:"Something went wrong"}),e.jsx("p",{className:"text-xs text-muted mt-1",children:((r=this.state.error)==null?void 0:r.message)||"Unknown error"}),e.jsx("button",{onClick:()=>this.setState({hasError:!1,error:null}),className:"mt-2 px-3 py-1 text-xs font-medium rounded-btn border border-primary/20 text-primary hover:bg-primary/5 transition-colors",children:"Retry"})]}):this.props.children}}const S={info:"text-info",error:"text-danger",warning:"text-warning",debug:"text-muted",critical:"text-danger font-bold"};function T(n){if(!n)return"";if(n.includes("T")||n.includes("-"))try{return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}catch{return n}return n}function _({logs:n,loading:r,subscribe:d}){const a=c.useRef(null),[i,h]=c.useState(!1),[g,k]=c.useState([]);c.useEffect(()=>d?d("log",o=>{const l=o;l!=null&&l.line&&k(u=>{const s=[...u,{message:l.line,timestamp:l.timestamp||""}];return s.length>500?s.slice(-500):s})}):void 0,[d]);const m=(()=>{const t=g.map(s=>{let x="info";const p=s.message.toLowerCase();return p.includes("error")||p.includes("fail")?x="error":p.includes("warn")?x="warning":p.includes("debug")&&(x="debug"),{timestamp:s.timestamp,level:x,message:s.message,source:"ws"}}),o=n||[];if(t.length===0)return o;if(o.length===0)return t;const l=new Set(t.map(s=>s.message));return[...o.filter(s=>!l.has(s.message)),...t]})();c.useEffect(()=>{!i&&a.current&&(a.current.scrollTop=a.current.scrollHeight)},[m,i]);const b=()=>{if(!a.current)return;const{scrollTop:t,scrollHeight:o,clientHeight:l}=a.current,u=o-t-l<50;h(!u)},w=()=>{var t;h(!1),(t=a.current)==null||t.scrollTo({top:a.current.scrollHeight,behavior:"smooth"})};return e.jsxs("div",{className:"card p-0 overflow-hidden flex flex-col h-full",children:[e.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border flex-shrink-0",children:[e.jsx("h3",{className:"text-sm font-semibold text-ink uppercase tracking-wider",children:"Terminal"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("span",{className:"font-mono text-xs text-muted",children:[m.length," lines"]}),e.jsxs("button",{onClick:i?w:()=>h(!0),className:`flex items-center gap-1.5 text-xs font-medium px-2.5 py-1 rounded-lg border transition-colors ${i?"border-warning/40 text-warning bg-warning/5 hover:bg-warning/10":"border-primary/20 text-primary hover:bg-primary/5"}`,title:i?"Scroll locked -- click to resume auto-scroll":"Auto-scrolling -- click to lock",children:[i?e.jsx(N,{size:12}):e.jsx(L,{size:12}),i?"Locked":"Live"]}),i&&e.jsxs("button",{onClick:w,className:"flex items-center gap-1.5 text-xs text-primary hover:text-primary transition-colors font-medium",children:[e.jsx(v,{size:12}),"Jump to bottom"]})]})]}),e.jsxs("div",{ref:a,onScroll:b,className:"flex-1 overflow-y-auto terminal-scroll bg-ink/[0.03] p-4 font-mono text-xs leading-relaxed",children:[r&&!n&&g.length===0&&e.jsx("div",{className:"text-muted animate-pulse",children:"Connecting to log stream..."}),m.length===0&&!r&&e.jsxs("div",{className:"text-muted/60",children:[e.jsx("p",{children:"No log output yet."}),e.jsx("p",{className:"mt-1",children:"Start a build to see terminal output here."})]}),m.map((t,o)=>e.jsxs("div",{className:"flex gap-2 hover:bg-hover rounded px-1 -mx-1",children:[e.jsx("span",{className:"text-muted/40 flex-shrink-0 select-none w-16 text-right",children:T(t.timestamp)}),e.jsx("span",{className:`flex-shrink-0 w-12 text-right uppercase text-[10px] font-semibold ${S[t.level]||"text-muted"}`,children:t.level}),e.jsx("span",{className:`flex-1 break-all ${t.level==="error"||t.level==="critical"?"text-danger":"text-ink/80"}`,children:t.message})]},o)),m.length>0&&e.jsx("div",{className:"terminal-cursor mt-1"})]})]})}export{M as E,_ as T};
@@ -1 +0,0 @@
1
- *,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,system-ui,-apple-system,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,Fira Code,Cascadia Code,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.terminal-scroll::-webkit-scrollbar{width:6px}.terminal-scroll::-webkit-scrollbar-track{background:transparent}.terminal-scroll::-webkit-scrollbar-thumb{background:#553de933;border-radius:3px}.terminal-scroll::-webkit-scrollbar-thumb:hover{background:#553de959}.card{background:#fff;border:1px solid #ECEAE3;border-radius:5px;box-shadow:0 1px 3px #0000000f}.card:hover,.card-hover:hover{box-shadow:0 5px 10px #00000014}.pattern-nodes{position:absolute;top:0;right:0;bottom:0;left:0;opacity:.04;pointer-events:none;background-image:radial-gradient(circle at 10% 20%,#553DE9 1px,transparent 1px),radial-gradient(circle at 30% 60%,#553DE9 1px,transparent 1px),radial-gradient(circle at 50% 40%,#553DE9 1px,transparent 1px),radial-gradient(circle at 70% 80%,#553DE9 1px,transparent 1px),radial-gradient(circle at 90% 30%,#553DE9 1px,transparent 1px);background-size:200px 200px}*:focus-visible{outline:2px solid #553DE9;outline-offset:2px}::-moz-selection{background:#e8e4fd;color:#201515}::selection{background:#e8e4fd;color:#201515}@media(prefers-reduced-motion:reduce){.phase-active{animation:none}}@keyframes phase-pulse{0%,to{opacity:1}50%{opacity:.5}}.phase-active{animation:phase-pulse 2s ease-in-out infinite}@keyframes cursor-blink{0%,to{opacity:1}50%{opacity:0}}.terminal-cursor:after{content:"";display:inline-block;width:8px;height:16px;background:#553de9;animation:cursor-blink 1s step-end infinite;margin-left:2px;vertical-align:text-bottom}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.bottom-0{bottom:0}.left-3{left:.75rem}.right-0{right:0}.top-1\/2{top:50%}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.col-span-3{grid-column:span 3 / span 3}.col-span-4{grid-column:span 4 / span 4}.col-span-5{grid-column:span 5 / span 5}.col-span-6{grid-column:span 6 / span 6}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-28{height:7rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.max-h-40{max-height:10rem}.max-h-64{max-height:16rem}.max-h-\[400px\]{max-height:400px}.min-h-0{min-height:0px}.min-h-\[280px\]{min-height:280px}.min-h-screen{min-height:100vh}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-28{width:7rem}.w-3{width:.75rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-56{width:14rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-\[160px\]{min-width:160px}.max-w-3xl{max-width:48rem}.max-w-\[1400px\]{max-width:1400px}.max-w-\[1920px\]{max-width:1920px}.max-w-\[200px\]{max-width:200px}.max-w-\[220px\]{max-width:220px}.max-w-\[80\%\]{max-width:80%}.max-w-\[800px\]{max-width:800px}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-col-resize{cursor:col-resize}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-row-resize{cursor:row-resize}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-\[3px\]{border-radius:3px}.rounded-\[5px\]{border-radius:5px}.rounded-btn{border-radius:4px}.rounded-card{border-radius:5px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-t-card{border-top-left-radius:5px;border-top-right-radius:5px}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-\[\#553DE9\]{--tw-border-opacity: 1;border-color:rgb(85 61 233 / var(--tw-border-opacity, 1))}.border-\[\#553DE9\]\/30{border-color:#553de94d}.border-\[\#C45B5B\]\/20{border-color:#c45b5b33}.border-\[\#ECEAE3\],.border-border{--tw-border-opacity: 1;border-color:rgb(236 234 227 / var(--tw-border-opacity, 1))}.border-border-light{--tw-border-opacity: 1;border-color:rgb(197 192 177 / var(--tw-border-opacity, 1))}.border-border\/50{border-color:#eceae380}.border-danger\/20{border-color:#c45b5b33}.border-muted\/20{border-color:#93908433}.border-primary{--tw-border-opacity: 1;border-color:rgb(85 61 233 / var(--tw-border-opacity, 1))}.border-primary\/20{border-color:#553de933}.border-primary\/30{border-color:#553de94d}.border-primary\/40{border-color:#553de966}.border-success\/20{border-color:#1fc5a833}.border-transparent{border-color:transparent}.border-warning\/10{border-color:#d4a03c1a}.border-warning\/20{border-color:#d4a03c33}.border-warning\/30{border-color:#d4a03c4d}.border-warning\/40{border-color:#d4a03c66}.border-t-transparent{border-top-color:transparent}.bg-\[\#1FC5A8\]{--tw-bg-opacity: 1;background-color:rgb(31 197 168 / var(--tw-bg-opacity, 1))}.bg-\[\#1FC5A8\]\/10{background-color:#1fc5a81a}.bg-\[\#553DE9\]{--tw-bg-opacity: 1;background-color:rgb(85 61 233 / var(--tw-bg-opacity, 1))}.bg-\[\#553DE9\]\/10{background-color:#553de91a}.bg-\[\#C45B5B\]{--tw-bg-opacity: 1;background-color:rgb(196 91 91 / var(--tw-bg-opacity, 1))}.bg-\[\#C45B5B\]\/10{background-color:#c45b5b1a}.bg-\[\#D4A03C\]\/10{background-color:#d4a03c1a}.bg-\[\#F8F4F0\]{--tw-bg-opacity: 1;background-color:rgb(248 244 240 / var(--tw-bg-opacity, 1))}.bg-\[\#FAF9F6\]{--tw-bg-opacity: 1;background-color:rgb(250 249 246 / var(--tw-bg-opacity, 1))}.bg-background{--tw-bg-opacity: 1;background-color:rgb(255 254 251 / var(--tw-bg-opacity, 1))}.bg-black\/30{background-color:#0000004d}.bg-black\/5{background-color:#0000000d}.bg-border{--tw-bg-opacity: 1;background-color:rgb(236 234 227 / var(--tw-bg-opacity, 1))}.bg-border\/30{background-color:#eceae34d}.bg-card{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-current{background-color:currentColor}.bg-danger{--tw-bg-opacity: 1;background-color:rgb(196 91 91 / var(--tw-bg-opacity, 1))}.bg-danger\/10{background-color:#c45b5b1a}.bg-hover{--tw-bg-opacity: 1;background-color:rgb(248 244 240 / var(--tw-bg-opacity, 1))}.bg-info{--tw-bg-opacity: 1;background-color:rgb(47 113 227 / var(--tw-bg-opacity, 1))}.bg-ink\/\[0\.03\]{background-color:#20151508}.bg-muted{--tw-bg-opacity: 1;background-color:rgb(147 144 132 / var(--tw-bg-opacity, 1))}.bg-muted\/10{background-color:#9390841a}.bg-muted\/30{background-color:#9390844d}.bg-muted\/40{background-color:#93908466}.bg-primary{--tw-bg-opacity: 1;background-color:rgb(85 61 233 / var(--tw-bg-opacity, 1))}.bg-primary\/10{background-color:#553de91a}.bg-success{--tw-bg-opacity: 1;background-color:rgb(31 197 168 / var(--tw-bg-opacity, 1))}.bg-success\/10{background-color:#1fc5a81a}.bg-transparent{background-color:transparent}.bg-warning{--tw-bg-opacity: 1;background-color:rgb(212 160 60 / var(--tw-bg-opacity, 1))}.bg-warning\/10{background-color:#d4a03c1a}.bg-warning\/5{background-color:#d4a03c0d}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.fill-ink{fill:#201515}.fill-primary{fill:#553de9}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2\.5{padding-bottom:.625rem}.pl-9{padding-left:2.25rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-\[20vh\]{padding-top:20vh}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-heading{font-family:DM Serif Display,Georgia,Times New Roman,serif}.font-mono{font-family:JetBrains Mono,Fira Code,Cascadia Code,monospace}.font-sans{font-family:Inter,system-ui,-apple-system,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[9px\]{font-size:9px}.text-base{font-size:1rem;line-height:1.5rem}.text-h1{font-size:2.5rem;line-height:1;letter-spacing:-.01em}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-\[\#1FC5A8\]{--tw-text-opacity: 1;color:rgb(31 197 168 / var(--tw-text-opacity, 1))}.text-\[\#36342E\]{--tw-text-opacity: 1;color:rgb(54 52 46 / var(--tw-text-opacity, 1))}.text-\[\#553DE9\]{--tw-text-opacity: 1;color:rgb(85 61 233 / var(--tw-text-opacity, 1))}.text-\[\#6B6960\]{--tw-text-opacity: 1;color:rgb(107 105 96 / var(--tw-text-opacity, 1))}.text-\[\#939084\]{--tw-text-opacity: 1;color:rgb(147 144 132 / var(--tw-text-opacity, 1))}.text-\[\#C45B5B\]{--tw-text-opacity: 1;color:rgb(196 91 91 / var(--tw-text-opacity, 1))}.text-\[\#D4A03C\]{--tw-text-opacity: 1;color:rgb(212 160 60 / var(--tw-text-opacity, 1))}.text-cyan-600{--tw-text-opacity: 1;color:rgb(8 145 178 / var(--tw-text-opacity, 1))}.text-danger{--tw-text-opacity: 1;color:rgb(196 91 91 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-info{--tw-text-opacity: 1;color:rgb(47 113 227 / var(--tw-text-opacity, 1))}.text-ink{--tw-text-opacity: 1;color:rgb(32 21 21 / var(--tw-text-opacity, 1))}.text-ink\/60{color:#20151599}.text-ink\/70{color:#201515b3}.text-ink\/80{color:#201515cc}.text-muted{--tw-text-opacity: 1;color:rgb(147 144 132 / var(--tw-text-opacity, 1))}.text-muted-accessible{--tw-text-opacity: 1;color:rgb(107 105 96 / var(--tw-text-opacity, 1))}.text-muted\/30{color:#9390844d}.text-muted\/40{color:#93908466}.text-muted\/50{color:#93908480}.text-muted\/60{color:#93908499}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.text-primary{--tw-text-opacity: 1;color:rgb(85 61 233 / var(--tw-text-opacity, 1))}.text-primary\/60{color:#553de999}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-secondary{--tw-text-opacity: 1;color:rgb(54 52 46 / var(--tw-text-opacity, 1))}.text-success{--tw-text-opacity: 1;color:rgb(31 197 168 / var(--tw-text-opacity, 1))}.text-warning{--tw-text-opacity: 1;color:rgb(212 160 60 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-button{--tw-shadow: 0 1px 3px rgba(0,0,0,.08);--tw-shadow-colored: 0 1px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-card{--tw-shadow: 0 1px 3px rgba(0,0,0,.06);--tw-shadow-colored: 0 1px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-card-hover{--tw-shadow: 0 5px 10px rgba(0,0,0,.08);--tw-shadow-colored: 0 5px 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[\#553DE9\]\/20{--tw-shadow-color: rgb(85 61 233 / .2);--tw-shadow: var(--tw-shadow-colored)}.shadow-card{--tw-shadow-color: #FFFFFF;--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-\[\#553DE9\]{--tw-ring-opacity: 1;--tw-ring-color: rgb(85 61 233 / var(--tw-ring-opacity, 1))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-500{transition-duration:.5s}.placeholder\:text-\[\#939084\]::-moz-placeholder{--tw-text-opacity: 1;color:rgb(147 144 132 / var(--tw-text-opacity, 1))}.placeholder\:text-\[\#939084\]::placeholder{--tw-text-opacity: 1;color:rgb(147 144 132 / var(--tw-text-opacity, 1))}.placeholder\:text-primary\/60::-moz-placeholder{color:#553de999}.placeholder\:text-primary\/60::placeholder{color:#553de999}.hover\:border-primary\/30:hover{border-color:#553de94d}.hover\:bg-\[\#4432c4\]:hover{--tw-bg-opacity: 1;background-color:rgb(68 50 196 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#553DE9\]\/5:hover{background-color:#553de90d}.hover\:bg-\[\#553DE9\]\/90:hover{background-color:#553de9e6}.hover\:bg-\[\#C45B5B\]\/20:hover{background-color:#c45b5b33}.hover\:bg-\[\#E8E4FD\]:hover{--tw-bg-opacity: 1;background-color:rgb(232 228 253 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#ECEAE3\]:hover{--tw-bg-opacity: 1;background-color:rgb(236 234 227 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#F8F4F0\]:hover{--tw-bg-opacity: 1;background-color:rgb(248 244 240 / var(--tw-bg-opacity, 1))}.hover\:bg-card:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.hover\:bg-danger\/10:hover{background-color:#c45b5b1a}.hover\:bg-danger\/20:hover{background-color:#c45b5b33}.hover\:bg-hover:hover{--tw-bg-opacity: 1;background-color:rgb(248 244 240 / var(--tw-bg-opacity, 1))}.hover\:bg-primary\/20:hover{background-color:#553de933}.hover\:bg-primary\/30:hover{background-color:#553de94d}.hover\:bg-primary\/5:hover{background-color:#553de90d}.hover\:bg-primary\/90:hover{background-color:#553de9e6}.hover\:bg-warning\/10:hover{background-color:#d4a03c1a}.hover\:text-\[\#36342E\]:hover{--tw-text-opacity: 1;color:rgb(54 52 46 / var(--tw-text-opacity, 1))}.hover\:text-danger:hover{--tw-text-opacity: 1;color:rgb(196 91 91 / var(--tw-text-opacity, 1))}.hover\:text-ink:hover{--tw-text-opacity: 1;color:rgb(32 21 21 / var(--tw-text-opacity, 1))}.hover\:text-primary:hover{--tw-text-opacity: 1;color:rgb(85 61 233 / var(--tw-text-opacity, 1))}.hover\:text-primary\/80:hover{color:#553de9cc}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow-card-hover:hover{--tw-shadow: 0 5px 10px rgba(0,0,0,.08);--tw-shadow-colored: 0 5px 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:not-sr-only:focus{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}.focus\:absolute:focus{position:absolute}.focus\:left-2:focus{left:.5rem}.focus\:top-2:focus{top:.5rem}.focus\:z-50:focus{z-index:50}.focus\:rounded-\[3px\]:focus{border-radius:3px}.focus\:border-\[\#553DE9\]:focus{--tw-border-opacity: 1;border-color:rgb(85 61 233 / var(--tw-border-opacity, 1))}.focus\:border-primary:focus{--tw-border-opacity: 1;border-color:rgb(85 61 233 / var(--tw-border-opacity, 1))}.focus\:border-primary\/30:focus{border-color:#553de94d}.focus\:bg-white:focus{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.focus\:px-4:focus{padding-left:1rem;padding-right:1rem}.focus\:py-2:focus{padding-top:.5rem;padding-bottom:.5rem}.focus\:text-\[\#553DE9\]:focus{--tw-text-opacity: 1;color:rgb(85 61 233 / var(--tw-text-opacity, 1))}.focus\:shadow-card:focus{--tw-shadow: 0 1px 3px rgba(0,0,0,.06);--tw-shadow-colored: 0 1px 3px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: #FFFFFF;--tw-shadow: var(--tw-shadow-colored)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-\[\#553DE9\]\/20:focus{--tw-ring-color: rgb(85 61 233 / .2)}.focus\:ring-primary\/20:focus{--tw-ring-color: rgb(85 61 233 / .2)}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:text-primary{--tw-text-opacity: 1;color:rgb(85 61 233 / var(--tw-text-opacity, 1))}.group\/file:hover .group-hover\/file\:opacity-100{opacity:1}@media(prefers-reduced-motion:reduce){.motion-reduce\:animate-none{animation:none}}@media(min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}