@viglet/viglet-design-system 2026.3.14 → 2026.3.16

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.
Files changed (55) hide show
  1. package/README.md +44 -8
  2. package/dist/bento/bento-data-table.d.ts +1 -1
  3. package/dist/bento/bento-data-table.d.ts.map +1 -1
  4. package/dist/bento/bento-entity-shell.d.ts +9 -1
  5. package/dist/bento/bento-entity-shell.d.ts.map +1 -1
  6. package/dist/bento/bento-form-hero.d.ts +1 -1
  7. package/dist/bento/bento-form-hero.d.ts.map +1 -1
  8. package/dist/bento/bento-hero.d.ts +14 -1
  9. package/dist/bento/bento-hero.d.ts.map +1 -1
  10. package/dist/bento/bento-list-page.d.ts +43 -11
  11. package/dist/bento/bento-list-page.d.ts.map +1 -1
  12. package/dist/bento/bento-nav-rail.d.ts +8 -2
  13. package/dist/bento/bento-nav-rail.d.ts.map +1 -1
  14. package/dist/bento/bento-nav.d.ts +7 -0
  15. package/dist/bento/bento-nav.d.ts.map +1 -1
  16. package/dist/bento/bento-shell.d.ts +5 -3
  17. package/dist/bento/bento-shell.d.ts.map +1 -1
  18. package/dist/bento/bento-trail.d.ts +27 -0
  19. package/dist/bento/bento-trail.d.ts.map +1 -0
  20. package/dist/bento/index.d.ts +1 -0
  21. package/dist/bento/index.d.ts.map +1 -1
  22. package/dist/bento.cjs +4 -4
  23. package/dist/bento.css +3 -3
  24. package/dist/bento.es.js +783 -655
  25. package/dist/catalogue.json +103 -19
  26. package/dist/components/ui/viglet-assistant.d.ts +7 -1
  27. package/dist/components/ui/viglet-assistant.d.ts.map +1 -1
  28. package/dist/exports.json +4 -1
  29. package/dist/i18n/index.d.ts +10 -0
  30. package/dist/i18n/index.d.ts.map +1 -1
  31. package/dist/i18n/locales/en/assistant.json.d.ts +2 -1
  32. package/dist/i18n/locales/en/bento.json.d.ts +6 -2
  33. package/dist/i18n/locales/pt/assistant.json.d.ts +2 -1
  34. package/dist/i18n/locales/pt/bento.json.d.ts +6 -2
  35. package/dist/i18n.cjs +1 -1
  36. package/dist/i18n.es.js +16 -6
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.es.js +1045 -1018
  39. package/dist/lib/corner-slot.d.ts +11 -0
  40. package/dist/lib/corner-slot.d.ts.map +1 -1
  41. package/dist/{user.context-D3kmD3_y.js → user.context-DUs2lT6D.js} +201 -197
  42. package/dist/user.context-uYif5Mp2.cjs +1 -0
  43. package/dist/viglet-design-system.css +1 -1
  44. package/docs/BENTO-AUTHORING.md +18 -10
  45. package/docs/reference/README.md +9 -1
  46. package/docs/reference/canvas.json +1 -1
  47. package/docs/reference/detail.dc.html +18 -22
  48. package/docs/reference/form-hero.dc.html +11 -14
  49. package/docs/reference/list.dc.html +74 -56
  50. package/docs/reference/page-anatomy.dc.html +10 -9
  51. package/docs/reference/panel.dc.html +8 -6
  52. package/docs/reference/shell.dc.html +7 -4
  53. package/docs/reference/split.dc.html +8 -13
  54. package/package.json +4 -1
  55. package/dist/user.context-gQvBxcwr.cjs +0 -1
package/dist/index.es.js CHANGED
@@ -1,38 +1,38 @@
1
1
  "use client";
2
2
  import { a as e, n as t, r as n, t as r } from "./utils-Fk5jmzzb.js";
3
- import { C as i, S as a, _ as o, a as s, b as c, c as l, d as u, f as d, g as f, h as p, i as m, l as h, m as g, n as _, o as v, p as y, r as ee, s as b, t as x, u as S, x as C } from "./badge-locale-Bx7m7tg2.js";
4
- import { A as w, B as T, C as te, D as ne, E, F as D, G as O, H as k, I as A, J as j, K as M, L as re, M as ie, N, O as P, P as F, R as ae, S as oe, T as se, U as ce, V as le, W as ue, X as de, Y as fe, _ as I, a as pe, b as me, c as L, d as he, f as ge, g as _e, h as ve, i as ye, j as be, k as xe, l as Se, m as Ce, n as we, o as Te, p as Ee, q as R, s as De, t as Oe, u as ke, v as Ae, w as je, x as Me, y as Ne, z as Pe } from "./user.context-D3kmD3_y.js";
5
- import { FloatingFormulasBg as Fe } from "./floating-formulas-bg.es.js";
6
- import { i as Ie, n as Le, r as Re } from "./products-Du9KB6Xl.js";
7
- import * as ze from "@radix-ui/react-accordion";
8
- import * as z from "react";
9
- import Be, { createContext as Ve, useCallback as He, useContext as Ue, useEffect as B, useMemo as We, useRef as V, useState as Ge } from "react";
10
- import { Fragment as Ke, jsx as H, jsxs as U } from "react/jsx-runtime";
11
- import * as qe from "@radix-ui/react-avatar";
12
- import { Slot as Je } from "@radix-ui/react-slot";
13
- import { cva as Ye } from "class-variance-authority";
14
- import { useTranslation as W } from "react-i18next";
15
- import * as G from "@radix-ui/react-dialog";
16
- import { Drawer as K } from "vaul";
3
+ import { C as i, S as a, _ as o, a as s, b as c, c as l, d as u, f as d, g as f, h as p, i as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C, x as w } from "./badge-locale-Bx7m7tg2.js";
4
+ import { A as T, B as ee, C as te, D as E, E as D, F as O, G as k, H as A, I as j, J as M, K as N, L as P, M as F, N as I, O as L, P as ne, Q as re, R as ie, S as ae, T as oe, U as se, V as R, W as ce, X as le, Y as z, Z as ue, _ as de, a as B, b as fe, c as pe, d as me, f as he, g as ge, h as _e, j as ve, k as ye, l as be, m as xe, n as Se, o as Ce, p as we, q as Te, s as Ee, t as De, u as Oe, v as ke, w as Ae, x as je, y as Me, z as Ne } from "./user.context-DUs2lT6D.js";
5
+ import { FloatingFormulasBg as Pe } from "./floating-formulas-bg.es.js";
6
+ import { i as Fe, n as Ie, r as Le } from "./products-Du9KB6Xl.js";
7
+ import * as Re from "@radix-ui/react-accordion";
8
+ import * as V from "react";
9
+ import ze, { createContext as Be, useCallback as Ve, useContext as He, useEffect as H, useMemo as Ue, useRef as U, useState as We } from "react";
10
+ import { Fragment as Ge, jsx as W, jsxs as G } from "react/jsx-runtime";
11
+ import * as Ke from "@radix-ui/react-avatar";
12
+ import { Slot as qe } from "@radix-ui/react-slot";
13
+ import { cva as Je } from "class-variance-authority";
14
+ import { useTranslation as K } from "react-i18next";
15
+ import * as q from "@radix-ui/react-dialog";
16
+ import { Drawer as Ye } from "vaul";
17
17
  import { Controller as Xe, FormProvider as Ze, useFormContext as Qe, useFormState as $e } from "react-hook-form";
18
18
  import * as et from "@radix-ui/react-label";
19
- import { IconAlertTriangle as tt, IconAlertTriangleFilled as nt, IconCheck as rt, IconCircleCheck as it, IconDeviceFloppy as at, IconLoader2 as ot, IconLogout as st, IconRefresh as ct, IconTrash as lt, IconUserCircle as ut, IconX as dt } from "@tabler/icons-react";
20
- import * as ft from "@radix-ui/react-switch";
21
- import * as pt from "@radix-ui/react-hover-card";
22
- import * as q from "@radix-ui/react-navigation-menu";
23
- import { Progress as mt } from "radix-ui";
19
+ import { IconAlertTriangle as tt, IconAlertTriangleFilled as nt, IconCheck as rt, IconCircleCheck as it, IconDeviceFloppy as at, IconLoader2 as ot, IconLogout as st, IconRefresh as ct, IconSettings as lt, IconTrash as ut, IconUserCircle as dt, IconX as ft } from "@tabler/icons-react";
20
+ import * as pt from "@radix-ui/react-switch";
21
+ import * as mt from "@radix-ui/react-hover-card";
22
+ import * as ht from "@radix-ui/react-navigation-menu";
23
+ import { Progress as gt } from "radix-ui";
24
24
  import * as J from "@radix-ui/react-select";
25
- import * as ht from "@radix-ui/react-separator";
26
- import * as gt from "@radix-ui/react-slider";
27
- import { ThemeProvider as _t, useTheme as vt } from "next-themes";
28
- import { useSonner as yt } from "sonner";
29
- import * as bt from "@radix-ui/react-toggle";
30
- import * as xt from "@radix-ui/react-toggle-group";
25
+ import * as _t from "@radix-ui/react-separator";
26
+ import * as vt from "@radix-ui/react-slider";
27
+ import { ThemeProvider as yt, useTheme as bt } from "next-themes";
28
+ import { useSonner as xt } from "sonner";
29
+ import * as St from "@radix-ui/react-toggle";
30
+ import * as Ct from "@radix-ui/react-toggle-group";
31
31
  import Y from "axios";
32
- import { enUS as St, ptBR as Ct } from "date-fns/locale";
33
- import * as wt from "xlsx";
32
+ import { enUS as wt, ptBR as Tt } from "date-fns/locale";
33
+ import * as Et from "xlsx";
34
34
  //#region node_modules/lucide-react/dist/esm/icons/book.mjs
35
- var Tt = {
35
+ var Dt = {
36
36
  name: "book",
37
37
  size: 24,
38
38
  node: [["path", {
@@ -40,8 +40,8 @@ var Tt = {
40
40
  key: "k3hazp"
41
41
  }]]
42
42
  };
43
- Tt.node;
44
- var Et = i(Tt), Dt = {
43
+ Dt.node;
44
+ var Ot = i(Dt), kt = {
45
45
  name: "chevron-down",
46
46
  size: 24,
47
47
  node: [["path", {
@@ -49,8 +49,8 @@ var Et = i(Tt), Dt = {
49
49
  key: "qrunsl"
50
50
  }]]
51
51
  };
52
- Dt.node;
53
- var Ot = i(Dt), kt = {
52
+ kt.node;
53
+ var At = i(kt), jt = {
54
54
  name: "chevron-left",
55
55
  size: 24,
56
56
  node: [["path", {
@@ -58,8 +58,8 @@ var Ot = i(Dt), kt = {
58
58
  key: "1wnfg3"
59
59
  }]]
60
60
  };
61
- kt.node;
62
- var At = i(kt), jt = {
61
+ jt.node;
62
+ var Mt = i(jt), Nt = {
63
63
  name: "chevron-up",
64
64
  size: 24,
65
65
  node: [["path", {
@@ -67,8 +67,8 @@ var At = i(kt), jt = {
67
67
  key: "153udz"
68
68
  }]]
69
69
  };
70
- jt.node;
71
- var Mt = i(jt), Nt = {
70
+ Nt.node;
71
+ var Pt = i(Nt), Ft = {
72
72
  name: "cloud",
73
73
  size: 24,
74
74
  node: [["path", {
@@ -76,8 +76,8 @@ var Mt = i(jt), Nt = {
76
76
  key: "p7xjir"
77
77
  }]]
78
78
  };
79
- Nt.node;
80
- var Pt = i(Nt), Ft = {
79
+ Ft.node;
80
+ var It = i(Ft), Lt = {
81
81
  name: "ellipsis",
82
82
  size: 24,
83
83
  node: [
@@ -102,8 +102,8 @@ var Pt = i(Nt), Ft = {
102
102
  ],
103
103
  aliases: ["more-horizontal"]
104
104
  };
105
- Ft.node;
106
- var It = i(Ft), Lt = {
105
+ Lt.node;
106
+ var Rt = i(Lt), zt = {
107
107
  name: "external-link",
108
108
  size: 24,
109
109
  node: [
@@ -121,8 +121,8 @@ var It = i(Ft), Lt = {
121
121
  }]
122
122
  ]
123
123
  };
124
- Lt.node;
125
- var Rt = i(Lt), zt = {
124
+ zt.node;
125
+ var Bt = i(zt), Vt = {
126
126
  name: "languages",
127
127
  size: 24,
128
128
  node: [
@@ -152,8 +152,8 @@ var Rt = i(Lt), zt = {
152
152
  }]
153
153
  ]
154
154
  };
155
- zt.node;
156
- var Bt = i(zt), Vt = {
155
+ Vt.node;
156
+ var Ht = i(Vt), Ut = {
157
157
  name: "layout-grid",
158
158
  size: 24,
159
159
  node: [
@@ -191,8 +191,8 @@ var Bt = i(zt), Vt = {
191
191
  }]
192
192
  ]
193
193
  };
194
- Vt.node;
195
- var Ht = i(Vt), Ut = {
194
+ Ut.node;
195
+ var Wt = i(Ut), Gt = {
196
196
  name: "menu",
197
197
  size: 24,
198
198
  node: [
@@ -210,8 +210,8 @@ var Ht = i(Vt), Ut = {
210
210
  }]
211
211
  ]
212
212
  };
213
- Ut.node;
214
- var Wt = i(Ut), Gt = {
213
+ Gt.node;
214
+ var Kt = i(Gt), qt = {
215
215
  name: "monitor",
216
216
  size: 24,
217
217
  node: [
@@ -239,8 +239,8 @@ var Wt = i(Ut), Gt = {
239
239
  }]
240
240
  ]
241
241
  };
242
- Gt.node;
243
- var Kt = i(Gt), qt = {
242
+ qt.node;
243
+ var Jt = i(qt), Yt = {
244
244
  name: "moon",
245
245
  size: 24,
246
246
  node: [["path", {
@@ -248,8 +248,8 @@ var Kt = i(Gt), qt = {
248
248
  key: "kfwtm"
249
249
  }]]
250
250
  };
251
- qt.node;
252
- var Jt = i(qt), Yt = {
251
+ Yt.node;
252
+ var Xt = i(Yt), Zt = {
253
253
  name: "panel-left",
254
254
  size: 24,
255
255
  node: [["rect", {
@@ -265,8 +265,8 @@ var Jt = i(qt), Yt = {
265
265
  }]],
266
266
  aliases: ["sidebar"]
267
267
  };
268
- Yt.node;
269
- var Xt = i(Yt), Zt = {
268
+ Zt.node;
269
+ var Qt = i(Zt), $t = {
270
270
  name: "sun",
271
271
  size: 24,
272
272
  node: [
@@ -310,51 +310,51 @@ var Xt = i(Yt), Zt = {
310
310
  }]
311
311
  ]
312
312
  };
313
- Zt.node;
314
- var Qt = i(Zt), $t = ze.Root, en = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ H(ze.Item, {
313
+ $t.node;
314
+ var en = i($t), tn = Re.Root, nn = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ W(Re.Item, {
315
315
  ref: n,
316
316
  className: r("border-b", e),
317
317
  ...t
318
318
  }));
319
- en.displayName = "AccordionItem";
320
- var tn = z.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ H(ze.Header, {
319
+ nn.displayName = "AccordionItem";
320
+ var rn = V.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ W(Re.Header, {
321
321
  className: "flex",
322
- children: /* @__PURE__ */ U(ze.Trigger, {
322
+ children: /* @__PURE__ */ G(Re.Trigger, {
323
323
  ref: i,
324
324
  className: r("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", e),
325
325
  ...n,
326
- children: [t, /* @__PURE__ */ H(Ot, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })]
326
+ children: [t, /* @__PURE__ */ W(At, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })]
327
327
  })
328
328
  }));
329
- tn.displayName = ze.Trigger.displayName;
330
- var nn = z.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ H(ze.Content, {
329
+ rn.displayName = Re.Trigger.displayName;
330
+ var an = V.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ W(Re.Content, {
331
331
  ref: i,
332
332
  className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
333
333
  ...n,
334
- children: /* @__PURE__ */ H("div", {
334
+ children: /* @__PURE__ */ W("div", {
335
335
  className: r("pb-4 pt-0", e),
336
336
  children: t
337
337
  })
338
338
  }));
339
- nn.displayName = ze.Content.displayName;
339
+ an.displayName = Re.Content.displayName;
340
340
  //#endregion
341
341
  //#region src/components/ui/avatar.tsx
342
- function rn({ className: e, ...t }) {
343
- return /* @__PURE__ */ H(qe.Root, {
342
+ function on({ className: e, ...t }) {
343
+ return /* @__PURE__ */ W(Ke.Root, {
344
344
  "data-slot": "avatar",
345
345
  className: r("relative flex size-8 shrink-0 overflow-hidden rounded-full", e),
346
346
  ...t
347
347
  });
348
348
  }
349
- function an({ className: e, ...t }) {
350
- return /* @__PURE__ */ H(qe.Image, {
349
+ function sn({ className: e, ...t }) {
350
+ return /* @__PURE__ */ W(Ke.Image, {
351
351
  "data-slot": "avatar-image",
352
352
  className: r("aspect-square size-full", e),
353
353
  ...t
354
354
  });
355
355
  }
356
- function on({ className: e, ...t }) {
357
- return /* @__PURE__ */ H(qe.Fallback, {
356
+ function cn({ className: e, ...t }) {
357
+ return /* @__PURE__ */ W(Ke.Fallback, {
358
358
  "data-slot": "avatar-fallback",
359
359
  className: r("bg-muted flex size-full items-center justify-center rounded-full", e),
360
360
  ...t
@@ -362,37 +362,37 @@ function on({ className: e, ...t }) {
362
362
  }
363
363
  //#endregion
364
364
  //#region src/components/ui/breadcrumb.tsx
365
- function sn({ ...e }) {
366
- let { t } = W();
367
- return /* @__PURE__ */ H("nav", {
365
+ function ln({ ...e }) {
366
+ let { t } = K();
367
+ return /* @__PURE__ */ W("nav", {
368
368
  "aria-label": t("common.breadcrumb", { defaultValue: "Breadcrumb" }),
369
369
  "data-slot": "breadcrumb",
370
370
  ...e
371
371
  });
372
372
  }
373
- function cn({ className: e, ...t }) {
374
- return /* @__PURE__ */ H("ol", {
373
+ function un({ className: e, ...t }) {
374
+ return /* @__PURE__ */ W("ol", {
375
375
  "data-slot": "breadcrumb-list",
376
376
  className: r("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5", e),
377
377
  ...t
378
378
  });
379
379
  }
380
- function ln({ className: e, ...t }) {
381
- return /* @__PURE__ */ H("li", {
380
+ function dn({ className: e, ...t }) {
381
+ return /* @__PURE__ */ W("li", {
382
382
  "data-slot": "breadcrumb-item",
383
383
  className: r("inline-flex items-center gap-1.5", e),
384
384
  ...t
385
385
  });
386
386
  }
387
- function un({ asChild: e, className: t, ...n }) {
388
- return /* @__PURE__ */ H(e ? Je : "a", {
387
+ function fn({ asChild: e, className: t, ...n }) {
388
+ return /* @__PURE__ */ W(e ? qe : "a", {
389
389
  "data-slot": "breadcrumb-link",
390
390
  className: r("hover:text-foreground transition-colors", t),
391
391
  ...n
392
392
  });
393
393
  }
394
- function dn({ className: e, ...t }) {
395
- return /* @__PURE__ */ H("span", {
394
+ function pn({ className: e, ...t }) {
395
+ return /* @__PURE__ */ W("span", {
396
396
  "data-slot": "breadcrumb-page",
397
397
  role: "link",
398
398
  "aria-disabled": "true",
@@ -401,25 +401,25 @@ function dn({ className: e, ...t }) {
401
401
  ...t
402
402
  });
403
403
  }
404
- function fn({ children: e, className: t, ...n }) {
405
- return /* @__PURE__ */ H("li", {
404
+ function mn({ children: e, className: t, ...n }) {
405
+ return /* @__PURE__ */ W("li", {
406
406
  "data-slot": "breadcrumb-separator",
407
407
  role: "presentation",
408
408
  "aria-hidden": "true",
409
409
  className: r("[&>svg]:size-3.5", t),
410
410
  ...n,
411
- children: e ?? /* @__PURE__ */ H(fe, {})
411
+ children: e ?? /* @__PURE__ */ W(ue, {})
412
412
  });
413
413
  }
414
- function pn({ className: e, ...t }) {
415
- let { t: n } = W();
416
- return /* @__PURE__ */ U("span", {
414
+ function hn({ className: e, ...t }) {
415
+ let { t: n } = K();
416
+ return /* @__PURE__ */ G("span", {
417
417
  "data-slot": "breadcrumb-ellipsis",
418
418
  role: "presentation",
419
419
  "aria-hidden": "true",
420
420
  className: r("flex size-9 items-center justify-center", e),
421
421
  ...t,
422
- children: [/* @__PURE__ */ H(It, { className: "size-4" }), /* @__PURE__ */ H("span", {
422
+ children: [/* @__PURE__ */ W(Rt, { className: "size-4" }), /* @__PURE__ */ W("span", {
423
423
  className: "sr-only",
424
424
  children: n("common.more", { defaultValue: "More" })
425
425
  })]
@@ -427,50 +427,50 @@ function pn({ className: e, ...t }) {
427
427
  }
428
428
  //#endregion
429
429
  //#region src/components/ui/card.tsx
430
- function mn({ className: e, ...t }) {
431
- return /* @__PURE__ */ H("div", {
430
+ function gn({ className: e, ...t }) {
431
+ return /* @__PURE__ */ W("div", {
432
432
  "data-slot": "card",
433
433
  className: r("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", e),
434
434
  ...t
435
435
  });
436
436
  }
437
- function hn({ className: e, ...t }) {
438
- return /* @__PURE__ */ H("div", {
437
+ function _n({ className: e, ...t }) {
438
+ return /* @__PURE__ */ W("div", {
439
439
  "data-slot": "card-header",
440
440
  className: r("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", e),
441
441
  ...t
442
442
  });
443
443
  }
444
- function gn({ className: e, ...t }) {
445
- return /* @__PURE__ */ H("div", {
444
+ function vn({ className: e, ...t }) {
445
+ return /* @__PURE__ */ W("div", {
446
446
  "data-slot": "card-title",
447
447
  className: r("leading-none font-semibold", e),
448
448
  ...t
449
449
  });
450
450
  }
451
- function _n({ className: e, ...t }) {
452
- return /* @__PURE__ */ H("div", {
451
+ function yn({ className: e, ...t }) {
452
+ return /* @__PURE__ */ W("div", {
453
453
  "data-slot": "card-description",
454
454
  className: r("text-muted-foreground text-sm", e),
455
455
  ...t
456
456
  });
457
457
  }
458
- function vn({ className: e, ...t }) {
459
- return /* @__PURE__ */ H("div", {
458
+ function bn({ className: e, ...t }) {
459
+ return /* @__PURE__ */ W("div", {
460
460
  "data-slot": "card-action",
461
461
  className: r("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
462
462
  ...t
463
463
  });
464
464
  }
465
- function yn({ className: e, ...t }) {
466
- return /* @__PURE__ */ H("div", {
465
+ function xn({ className: e, ...t }) {
466
+ return /* @__PURE__ */ W("div", {
467
467
  "data-slot": "card-content",
468
468
  className: r("px-6", e),
469
469
  ...t
470
470
  });
471
471
  }
472
- function bn({ className: e, ...t }) {
473
- return /* @__PURE__ */ H("div", {
472
+ function Sn({ className: e, ...t }) {
473
+ return /* @__PURE__ */ W("div", {
474
474
  "data-slot": "card-footer",
475
475
  className: r("flex items-center px-6 [.border-t]:pt-6", e),
476
476
  ...t
@@ -478,71 +478,71 @@ function bn({ className: e, ...t }) {
478
478
  }
479
479
  //#endregion
480
480
  //#region src/components/ui/drawer.tsx
481
- function xn({ ...e }) {
482
- return /* @__PURE__ */ H(K.Root, {
481
+ function Cn({ ...e }) {
482
+ return /* @__PURE__ */ W(Ye.Root, {
483
483
  "data-slot": "drawer",
484
484
  ...e
485
485
  });
486
486
  }
487
- function Sn({ ...e }) {
488
- return /* @__PURE__ */ H(K.Trigger, {
487
+ function wn({ ...e }) {
488
+ return /* @__PURE__ */ W(Ye.Trigger, {
489
489
  "data-slot": "drawer-trigger",
490
490
  ...e
491
491
  });
492
492
  }
493
- function Cn({ ...e }) {
494
- return /* @__PURE__ */ H(K.Portal, {
493
+ function Tn({ ...e }) {
494
+ return /* @__PURE__ */ W(Ye.Portal, {
495
495
  "data-slot": "drawer-portal",
496
496
  ...e
497
497
  });
498
498
  }
499
- function wn({ ...e }) {
500
- return /* @__PURE__ */ H(K.Close, {
499
+ function En({ ...e }) {
500
+ return /* @__PURE__ */ W(Ye.Close, {
501
501
  "data-slot": "drawer-close",
502
502
  ...e
503
503
  });
504
504
  }
505
- function Tn({ className: e, ...t }) {
506
- return /* @__PURE__ */ H(K.Overlay, {
505
+ function Dn({ className: e, ...t }) {
506
+ return /* @__PURE__ */ W(Ye.Overlay, {
507
507
  "data-slot": "drawer-overlay",
508
508
  className: r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
509
509
  ...t
510
510
  });
511
511
  }
512
- function En({ className: e, children: t, ...n }) {
513
- return /* @__PURE__ */ U(Cn, {
512
+ function On({ className: e, children: t, ...n }) {
513
+ return /* @__PURE__ */ G(Tn, {
514
514
  "data-slot": "drawer-portal",
515
- children: [/* @__PURE__ */ H(Tn, {}), /* @__PURE__ */ U(K.Content, {
515
+ children: [/* @__PURE__ */ W(Dn, {}), /* @__PURE__ */ G(Ye.Content, {
516
516
  "data-slot": "drawer-content",
517
517
  className: r("group/drawer-content bg-background fixed z-50 flex h-auto flex-col", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm", e),
518
518
  ...n,
519
- children: [/* @__PURE__ */ H("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), t]
519
+ children: [/* @__PURE__ */ W("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), t]
520
520
  })]
521
521
  });
522
522
  }
523
- function Dn({ className: e, ...t }) {
524
- return /* @__PURE__ */ H("div", {
523
+ function kn({ className: e, ...t }) {
524
+ return /* @__PURE__ */ W("div", {
525
525
  "data-slot": "drawer-header",
526
526
  className: r("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", e),
527
527
  ...t
528
528
  });
529
529
  }
530
- function On({ className: e, ...t }) {
531
- return /* @__PURE__ */ H("div", {
530
+ function An({ className: e, ...t }) {
531
+ return /* @__PURE__ */ W("div", {
532
532
  "data-slot": "drawer-footer",
533
533
  className: r("mt-auto flex flex-col gap-2 p-4", e),
534
534
  ...t
535
535
  });
536
536
  }
537
- function kn({ className: e, ...t }) {
538
- return /* @__PURE__ */ H(K.Title, {
537
+ function jn({ className: e, ...t }) {
538
+ return /* @__PURE__ */ W(Ye.Title, {
539
539
  "data-slot": "drawer-title",
540
540
  className: r("text-foreground font-semibold", e),
541
541
  ...t
542
542
  });
543
543
  }
544
- function An({ className: e, ...t }) {
545
- return /* @__PURE__ */ H(K.Description, {
544
+ function Mn({ className: e, ...t }) {
545
+ return /* @__PURE__ */ W(Ye.Description, {
546
546
  "data-slot": "drawer-description",
547
547
  className: r("text-muted-foreground text-sm", e),
548
548
  ...t
@@ -550,8 +550,8 @@ function An({ className: e, ...t }) {
550
550
  }
551
551
  //#endregion
552
552
  //#region src/components/ui/label.tsx
553
- function jn({ className: e, ...t }) {
554
- return /* @__PURE__ */ H(et.Root, {
553
+ function Nn({ className: e, ...t }) {
554
+ return /* @__PURE__ */ W(et.Root, {
555
555
  "data-slot": "label",
556
556
  className: r("flex items-center gap-2 text-sm leading-none font-medium text-foreground select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
557
557
  ...t
@@ -559,17 +559,17 @@ function jn({ className: e, ...t }) {
559
559
  }
560
560
  //#endregion
561
561
  //#region src/components/ui/form.tsx
562
- var Mn = Ze, Nn = z.createContext({}), Pn = ({ ...e }) => {
563
- let t = !!e.rules?.required, n = z.useMemo(() => ({
562
+ var Pn = Ze, Fn = V.createContext({}), In = ({ ...e }) => {
563
+ let t = !!e.rules?.required, n = V.useMemo(() => ({
564
564
  name: e.name,
565
565
  required: t
566
566
  }), [e.name, t]);
567
- return /* @__PURE__ */ H(Nn.Provider, {
567
+ return /* @__PURE__ */ W(Fn.Provider, {
568
568
  value: n,
569
- children: /* @__PURE__ */ H(Xe, { ...e })
569
+ children: /* @__PURE__ */ W(Xe, { ...e })
570
570
  });
571
- }, Fn = () => {
572
- let e = z.useContext(Nn), t = z.useContext(In), { getFieldState: n } = Qe(), r = $e({ name: e.name }), i = n(e.name, r);
571
+ }, Ln = () => {
572
+ let e = V.useContext(Fn), t = V.useContext(Rn), { getFieldState: n } = Qe(), r = $e({ name: e.name }), i = n(e.name, r);
573
573
  if (!e) throw Error("useFormField should be used within <FormField>");
574
574
  let { id: a } = t;
575
575
  return {
@@ -581,35 +581,35 @@ var Mn = Ze, Nn = z.createContext({}), Pn = ({ ...e }) => {
581
581
  formMessageId: `${a}-form-item-message`,
582
582
  ...i
583
583
  };
584
- }, In = z.createContext({});
585
- function Ln({ className: e, ...t }) {
586
- let n = z.useId(), i = z.useMemo(() => ({ id: n }), [n]);
587
- return /* @__PURE__ */ H(In.Provider, {
584
+ }, Rn = V.createContext({});
585
+ function zn({ className: e, ...t }) {
586
+ let n = V.useId(), i = V.useMemo(() => ({ id: n }), [n]);
587
+ return /* @__PURE__ */ W(Rn.Provider, {
588
588
  value: i,
589
- children: /* @__PURE__ */ H("div", {
589
+ children: /* @__PURE__ */ W("div", {
590
590
  "data-slot": "form-item",
591
591
  className: r("grid gap-2", e),
592
592
  ...t
593
593
  })
594
594
  });
595
595
  }
596
- function Rn({ className: e, children: t, ...n }) {
597
- let { error: i, formItemId: a, required: o } = Fn();
598
- return /* @__PURE__ */ U(jn, {
596
+ function Bn({ className: e, children: t, ...n }) {
597
+ let { error: i, formItemId: a, required: o } = Ln();
598
+ return /* @__PURE__ */ G(Nn, {
599
599
  "data-slot": "form-label",
600
600
  "data-error": !!i,
601
601
  className: r("data-[error=true]:text-destructive", e),
602
602
  htmlFor: a,
603
603
  ...n,
604
- children: [t, o ? /* @__PURE__ */ H("span", {
604
+ children: [t, o ? /* @__PURE__ */ W("span", {
605
605
  className: "text-destructive",
606
606
  children: " *"
607
607
  }) : null]
608
608
  });
609
609
  }
610
- function zn({ ...e }) {
611
- let { error: t, formItemId: n, formDescriptionId: r, formMessageId: i } = Fn();
612
- return /* @__PURE__ */ H(Je, {
610
+ function Vn({ ...e }) {
611
+ let { error: t, formItemId: n, formDescriptionId: r, formMessageId: i } = Ln();
612
+ return /* @__PURE__ */ W(qe, {
613
613
  "data-slot": "form-control",
614
614
  id: n,
615
615
  "aria-describedby": t ? `${r} ${i}` : `${r}`,
@@ -617,18 +617,18 @@ function zn({ ...e }) {
617
617
  ...e
618
618
  });
619
619
  }
620
- function Bn({ className: e, ...t }) {
621
- let { formDescriptionId: n } = Fn();
622
- return /* @__PURE__ */ H("p", {
620
+ function Hn({ className: e, ...t }) {
621
+ let { formDescriptionId: n } = Ln();
622
+ return /* @__PURE__ */ W("p", {
623
623
  "data-slot": "form-description",
624
624
  id: n,
625
625
  className: r("text-muted-foreground text-sm", e),
626
626
  ...t
627
627
  });
628
628
  }
629
- function Vn({ className: e, ...t }) {
630
- let { error: n, formMessageId: i } = Fn(), a = n ? String(n?.message ?? "") : t.children;
631
- return a ? /* @__PURE__ */ H("p", {
629
+ function Un({ className: e, ...t }) {
630
+ let { error: n, formMessageId: i } = Ln(), a = n ? String(n?.message ?? "") : t.children;
631
+ return a ? /* @__PURE__ */ W("p", {
632
632
  "data-slot": "form-message",
633
633
  id: i,
634
634
  className: r("text-destructive text-sm", e),
@@ -638,63 +638,63 @@ function Vn({ className: e, ...t }) {
638
638
  }
639
639
  //#endregion
640
640
  //#region src/components/ui/form-actions.tsx
641
- function Hn({ children: e, className: t }) {
642
- return /* @__PURE__ */ H("div", {
641
+ function Wn({ children: e, className: t }) {
642
+ return /* @__PURE__ */ W("div", {
643
643
  className: r("flex items-center justify-end gap-3 pt-4 border-t", t),
644
644
  children: e
645
645
  });
646
646
  }
647
- function Un({ onClick: e, children: t, className: n }) {
648
- let { t: r } = W();
649
- return /* @__PURE__ */ U(v, {
647
+ function Gn({ onClick: e, children: t, className: n }) {
648
+ let { t: r } = K();
649
+ return /* @__PURE__ */ G(v, {
650
650
  type: "button",
651
651
  variant: "outline",
652
652
  onClick: e,
653
653
  className: n,
654
- children: [/* @__PURE__ */ H(dt, { className: "size-4" }), t ?? r("forms.formActions.cancel")]
654
+ children: [/* @__PURE__ */ W(ft, { className: "size-4" }), t ?? r("forms.formActions.cancel")]
655
655
  });
656
656
  }
657
- function Wn({ loading: e, disabled: t, children: n, className: r }) {
658
- let { t: i } = W();
659
- return /* @__PURE__ */ U(v, {
657
+ function Kn({ loading: e, disabled: t, children: n, className: r }) {
658
+ let { t: i } = K();
659
+ return /* @__PURE__ */ G(v, {
660
660
  type: "submit",
661
661
  disabled: t || e,
662
662
  className: r,
663
- children: [e ? /* @__PURE__ */ H(ot, { className: "size-4 animate-spin" }) : /* @__PURE__ */ H(at, { className: "size-4" }), n ?? i("forms.formActions.saveChanges")]
663
+ children: [e ? /* @__PURE__ */ W(ot, { className: "size-4 animate-spin" }) : /* @__PURE__ */ W(at, { className: "size-4" }), n ?? i("forms.formActions.saveChanges")]
664
664
  });
665
665
  }
666
- function Gn({ onClick: e, children: t, className: n }) {
667
- let { t: i } = W();
668
- return /* @__PURE__ */ U(v, {
666
+ function qn({ onClick: e, children: t, className: n }) {
667
+ let { t: i } = K();
668
+ return /* @__PURE__ */ G(v, {
669
669
  type: "button",
670
670
  variant: "outline",
671
671
  onClick: e,
672
672
  className: r("md:hidden text-destructive border-destructive/30 hover:bg-destructive/10 mr-auto", n),
673
- children: [/* @__PURE__ */ H(lt, { className: "size-4" }), t ?? i("forms.formActions.delete")]
673
+ children: [/* @__PURE__ */ W(ut, { className: "size-4" }), t ?? i("forms.formActions.delete")]
674
674
  });
675
675
  }
676
- Hn.Cancel = Un, Hn.Submit = Wn, Hn.Delete = Gn;
677
- var Kn = Object.assign(({ className: e, ...t }) => /* @__PURE__ */ H(Ln, { children: /* @__PURE__ */ H("div", {
676
+ Wn.Cancel = Gn, Wn.Submit = Kn, Wn.Delete = qn;
677
+ var Jn = Object.assign(({ className: e, ...t }) => /* @__PURE__ */ W(zn, { children: /* @__PURE__ */ W("div", {
678
678
  className: r("flex w-full flex-row items-center gap-4", e),
679
679
  ...t
680
680
  }) }), {
681
- Left: ({ className: e, ...t }) => /* @__PURE__ */ H("div", {
681
+ Left: ({ className: e, ...t }) => /* @__PURE__ */ W("div", {
682
682
  className: r("flex w-1/2 flex-col gap-1", e),
683
683
  ...t
684
684
  }),
685
- Right: ({ className: e, ...t }) => /* @__PURE__ */ H("div", {
685
+ Right: ({ className: e, ...t }) => /* @__PURE__ */ W("div", {
686
686
  className: r("flex w-1/2 justify-end", e),
687
687
  ...t
688
688
  }),
689
- Label: ({ className: e, ...t }) => /* @__PURE__ */ H(Rn, {
689
+ Label: ({ className: e, ...t }) => /* @__PURE__ */ W(Bn, {
690
690
  className: r(e),
691
691
  ...t
692
692
  }),
693
- Description: ({ className: e, ...t }) => /* @__PURE__ */ H(Bn, {
693
+ Description: ({ className: e, ...t }) => /* @__PURE__ */ W(Hn, {
694
694
  className: r(e),
695
695
  ...t
696
696
  })
697
- }), qn = Ye("peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", {
697
+ }), Yn = Je("peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", {
698
698
  variants: { variant: {
699
699
  default: [
700
700
  "data-[state=checked]:bg-gradient-to-r data-[state=checked]:from-[var(--vg-accent-fill-from)] data-[state=checked]:to-[var(--vg-accent-fill-to)]",
@@ -729,12 +729,12 @@ var Kn = Object.assign(({ className: e, ...t }) => /* @__PURE__ */ H(Ln, { child
729
729
  } },
730
730
  defaultVariants: { variant: "default" }
731
731
  });
732
- function Jn({ className: e, variant: t, ...n }) {
733
- return /* @__PURE__ */ H(ft.Root, {
732
+ function Xn({ className: e, variant: t, ...n }) {
733
+ return /* @__PURE__ */ W(pt.Root, {
734
734
  "data-slot": "gradient-switch",
735
- className: r(qn({ variant: t }), e),
735
+ className: r(Yn({ variant: t }), e),
736
736
  ...n,
737
- children: /* @__PURE__ */ H(ft.Thumb, {
737
+ children: /* @__PURE__ */ W(pt.Thumb, {
738
738
  "data-slot": "gradient-switch-thumb",
739
739
  className: r("bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:bg-primary-foreground")
740
740
  })
@@ -742,11 +742,11 @@ function Jn({ className: e, variant: t, ...n }) {
742
742
  }
743
743
  //#endregion
744
744
  //#region src/components/ui/glass-card.tsx
745
- var Yn = "rounded-2xl p-6 sm:p-8";
746
- function Xn({ children: e, color: t, colorDark: n, className: i, style: a, ...o }) {
745
+ var Zn = "rounded-2xl p-6 sm:p-8";
746
+ function Qn({ children: e, color: t, colorDark: n, className: i, style: a, ...o }) {
747
747
  let s = {};
748
- return t && (s["--glass-card-color"] = t), n ? s["--glass-card-color-dark"] = n : t && (s["--glass-card-color-dark"] = t), /* @__PURE__ */ H("div", {
749
- className: r("vig-glass-card", Yn, i),
748
+ return t && (s["--glass-card-color"] = t), n ? s["--glass-card-color-dark"] = n : t && (s["--glass-card-color-dark"] = t), /* @__PURE__ */ W("div", {
749
+ className: r("vig-glass-card", Zn, i),
750
750
  style: {
751
751
  ...a ?? {},
752
752
  ...s
@@ -757,9 +757,9 @@ function Xn({ children: e, color: t, colorDark: n, className: i, style: a, ...o
757
757
  }
758
758
  //#endregion
759
759
  //#region src/components/ui/pulse-ring.tsx
760
- function Zn({ children: e, color: t, colorDark: n, paused: i, className: a, style: o, ...s }) {
760
+ function $n({ children: e, color: t, colorDark: n, paused: i, className: a, style: o, ...s }) {
761
761
  let c = {};
762
- return t && (c["--pulse-ring-color"] = t), n ? c["--pulse-ring-color-dark"] = n : t && (c["--pulse-ring-color-dark"] = t), /* @__PURE__ */ H("div", {
762
+ return t && (c["--pulse-ring-color"] = t), n ? c["--pulse-ring-color-dark"] = n : t && (c["--pulse-ring-color-dark"] = t), /* @__PURE__ */ W("div", {
763
763
  className: r("vig-pulse-ring", !i && "vig-pulse-ring--active", a),
764
764
  style: {
765
765
  ...o ?? {},
@@ -771,116 +771,116 @@ function Zn({ children: e, color: t, colorDark: n, paused: i, className: a, styl
771
771
  }
772
772
  //#endregion
773
773
  //#region src/components/ui/hover-card.tsx
774
- var Qn = pt.Root, $n = pt.Trigger, er = z.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...i }, a) => /* @__PURE__ */ H(pt.Content, {
774
+ var er = mt.Root, tr = mt.Trigger, nr = V.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...i }, a) => /* @__PURE__ */ W(mt.Content, {
775
775
  ref: a,
776
776
  align: t,
777
777
  sideOffset: n,
778
778
  className: r("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", e),
779
779
  ...i
780
780
  }));
781
- er.displayName = pt.Content.displayName;
781
+ nr.displayName = mt.Content.displayName;
782
782
  //#endregion
783
783
  //#region src/components/ui/navigation-menu.tsx
784
- function tr({ className: e, children: t, viewport: n = !0, ...i }) {
785
- let { t: a } = W();
786
- return /* @__PURE__ */ U(q.Root, {
784
+ function rr({ className: e, children: t, viewport: n = !0, ...i }) {
785
+ let { t: a } = K();
786
+ return /* @__PURE__ */ G(ht.Root, {
787
787
  "data-slot": "navigation-menu",
788
788
  "data-viewport": n,
789
789
  "aria-label": a("common.mainNavigation", { defaultValue: "Main navigation" }),
790
790
  className: r("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", e),
791
791
  ...i,
792
- children: [t, n && /* @__PURE__ */ H(sr, {})]
792
+ children: [t, n && /* @__PURE__ */ W(lr, {})]
793
793
  });
794
794
  }
795
- function nr({ className: e, ...t }) {
796
- return /* @__PURE__ */ H(q.List, {
795
+ function ir({ className: e, ...t }) {
796
+ return /* @__PURE__ */ W(ht.List, {
797
797
  "data-slot": "navigation-menu-list",
798
798
  className: r("group flex flex-1 list-none items-center justify-center gap-1", e),
799
799
  ...t
800
800
  });
801
801
  }
802
- function rr({ className: e, ...t }) {
803
- return /* @__PURE__ */ H(q.Item, {
802
+ function ar({ className: e, ...t }) {
803
+ return /* @__PURE__ */ W(ht.Item, {
804
804
  "data-slot": "navigation-menu-item",
805
805
  className: r("relative", e),
806
806
  ...t
807
807
  });
808
808
  }
809
- var ir = Ye("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");
810
- function ar({ className: e, children: t, ...n }) {
811
- return /* @__PURE__ */ U(q.Trigger, {
809
+ var or = Je("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");
810
+ function sr({ className: e, children: t, ...n }) {
811
+ return /* @__PURE__ */ G(ht.Trigger, {
812
812
  "data-slot": "navigation-menu-trigger",
813
- className: r(ir(), "group", e),
813
+ className: r(or(), "group", e),
814
814
  ...n,
815
815
  children: [
816
816
  t,
817
817
  " ",
818
- /* @__PURE__ */ H(Ot, {
818
+ /* @__PURE__ */ W(At, {
819
819
  className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
820
820
  "aria-hidden": "true"
821
821
  })
822
822
  ]
823
823
  });
824
824
  }
825
- function or({ className: e, ...t }) {
826
- return /* @__PURE__ */ H(q.Content, {
825
+ function cr({ className: e, ...t }) {
826
+ return /* @__PURE__ */ W(ht.Content, {
827
827
  "data-slot": "navigation-menu-content",
828
828
  className: r("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto", "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none", e),
829
829
  ...t
830
830
  });
831
831
  }
832
- function sr({ className: e, ...t }) {
833
- return /* @__PURE__ */ H("div", {
832
+ function lr({ className: e, ...t }) {
833
+ return /* @__PURE__ */ W("div", {
834
834
  className: r("absolute top-full left-0 isolate z-50 flex justify-center"),
835
- children: /* @__PURE__ */ H(q.Viewport, {
835
+ children: /* @__PURE__ */ W(ht.Viewport, {
836
836
  "data-slot": "navigation-menu-viewport",
837
837
  className: r("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]", e),
838
838
  ...t
839
839
  })
840
840
  });
841
841
  }
842
- function cr({ className: e, ...t }) {
843
- return /* @__PURE__ */ H(q.Link, {
842
+ function ur({ className: e, ...t }) {
843
+ return /* @__PURE__ */ W(ht.Link, {
844
844
  "data-slot": "navigation-menu-link",
845
845
  className: r("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4", e),
846
846
  ...t
847
847
  });
848
848
  }
849
- function lr({ className: e, ...t }) {
850
- return /* @__PURE__ */ H(q.Indicator, {
849
+ function dr({ className: e, ...t }) {
850
+ return /* @__PURE__ */ W(ht.Indicator, {
851
851
  "data-slot": "navigation-menu-indicator",
852
852
  className: r("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden", e),
853
853
  ...t,
854
- children: /* @__PURE__ */ H("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
854
+ children: /* @__PURE__ */ W("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
855
855
  });
856
856
  }
857
857
  //#endregion
858
858
  //#region src/components/ui/pagination.tsx
859
- function ur({ className: e, ...t }) {
860
- let { t: n } = W();
861
- return /* @__PURE__ */ H("nav", {
859
+ function fr({ className: e, ...t }) {
860
+ let { t: n } = K();
861
+ return /* @__PURE__ */ W("nav", {
862
862
  role: "navigation",
863
863
  "aria-label": n("common.pagination", { defaultValue: "Pagination" }),
864
864
  className: r("mx-auto flex w-full justify-center", e),
865
865
  ...t
866
866
  });
867
867
  }
868
- var dr = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ H("ol", {
868
+ var pr = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ W("ol", {
869
869
  ref: n,
870
870
  className: r("flex flex-row items-center gap-1", e),
871
871
  ...t
872
872
  }));
873
- dr.displayName = "PaginationContent";
874
- var fr = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ H("li", {
873
+ pr.displayName = "PaginationContent";
874
+ var mr = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ W("li", {
875
875
  ref: n,
876
876
  className: r("", e),
877
877
  ...t
878
878
  }));
879
- fr.displayName = "PaginationItem";
880
- function pr({ className: e, isActive: t, size: n = "icon", children: i, ...a }) {
881
- return /* @__PURE__ */ H("a", {
879
+ mr.displayName = "PaginationItem";
880
+ function hr({ className: e, isActive: t, size: n = "icon", children: i, ...a }) {
881
+ return /* @__PURE__ */ W("a", {
882
882
  "aria-current": t ? "page" : void 0,
883
- className: r(j({
883
+ className: r(le({
884
884
  variant: t ? "outline" : "ghost",
885
885
  size: n
886
886
  }), t && "bg-accent text-accent-foreground", e),
@@ -888,33 +888,33 @@ function pr({ className: e, isActive: t, size: n = "icon", children: i, ...a })
888
888
  children: i
889
889
  });
890
890
  }
891
- function mr({ className: e, ...t }) {
892
- let { t: n } = W();
893
- return /* @__PURE__ */ U(pr, {
891
+ function gr({ className: e, ...t }) {
892
+ let { t: n } = K();
893
+ return /* @__PURE__ */ G(hr, {
894
894
  "aria-label": n("common.goToPreviousPage", { defaultValue: "Go to previous page" }),
895
895
  size: "default",
896
896
  className: r("gap-1 pl-2.5", e),
897
897
  ...t,
898
- children: [/* @__PURE__ */ H(At, { className: "h-4 w-4" }), /* @__PURE__ */ H("span", { children: n("common.previous", { defaultValue: "Previous" }) })]
898
+ children: [/* @__PURE__ */ W(Mt, { className: "h-4 w-4" }), /* @__PURE__ */ W("span", { children: n("common.previous", { defaultValue: "Previous" }) })]
899
899
  });
900
900
  }
901
- function hr({ className: e, ...t }) {
902
- let { t: n } = W();
903
- return /* @__PURE__ */ U(pr, {
901
+ function _r({ className: e, ...t }) {
902
+ let { t: n } = K();
903
+ return /* @__PURE__ */ G(hr, {
904
904
  "aria-label": n("common.goToNextPage", { defaultValue: "Go to next page" }),
905
905
  size: "default",
906
906
  className: r("gap-1 pr-2.5", e),
907
907
  ...t,
908
- children: [/* @__PURE__ */ H("span", { children: n("common.next", { defaultValue: "Next" }) }), /* @__PURE__ */ H(fe, { className: "h-4 w-4" })]
908
+ children: [/* @__PURE__ */ W("span", { children: n("common.next", { defaultValue: "Next" }) }), /* @__PURE__ */ W(ue, { className: "h-4 w-4" })]
909
909
  });
910
910
  }
911
- function gr({ className: e, ...t }) {
912
- let { t: n } = W();
913
- return /* @__PURE__ */ U("span", {
911
+ function vr({ className: e, ...t }) {
912
+ let { t: n } = K();
913
+ return /* @__PURE__ */ G("span", {
914
914
  "aria-hidden": "true",
915
915
  className: r("flex h-9 w-9 items-center justify-center", e),
916
916
  ...t,
917
- children: [/* @__PURE__ */ H(It, { className: "h-4 w-4" }), /* @__PURE__ */ H("span", {
917
+ children: [/* @__PURE__ */ W(Rt, { className: "h-4 w-4" }), /* @__PURE__ */ W("span", {
918
918
  className: "sr-only",
919
919
  children: n("common.morePages", { defaultValue: "More pages" })
920
920
  })]
@@ -922,12 +922,12 @@ function gr({ className: e, ...t }) {
922
922
  }
923
923
  //#endregion
924
924
  //#region src/components/ui/progress.tsx
925
- function _r({ className: e, value: t, ...n }) {
926
- return /* @__PURE__ */ H(mt.Root, {
925
+ function yr({ className: e, value: t, ...n }) {
926
+ return /* @__PURE__ */ W(gt.Root, {
927
927
  "data-slot": "progress",
928
928
  className: r("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", e),
929
929
  ...n,
930
- children: /* @__PURE__ */ H(mt.Indicator, {
930
+ children: /* @__PURE__ */ W(gt.Indicator, {
931
931
  "data-slot": "progress-indicator",
932
932
  className: "h-full w-full flex-1 bg-primary transition-all",
933
933
  style: { transform: `translateX(-${100 - (t || 0)}%)` }
@@ -936,98 +936,98 @@ function _r({ className: e, value: t, ...n }) {
936
936
  }
937
937
  //#endregion
938
938
  //#region src/components/ui/select.tsx
939
- function vr({ ...e }) {
940
- return /* @__PURE__ */ H(J.Root, {
939
+ function br({ ...e }) {
940
+ return /* @__PURE__ */ W(J.Root, {
941
941
  "data-slot": "select",
942
942
  ...e
943
943
  });
944
944
  }
945
- function yr({ ...e }) {
946
- return /* @__PURE__ */ H(J.Group, {
945
+ function xr({ ...e }) {
946
+ return /* @__PURE__ */ W(J.Group, {
947
947
  "data-slot": "select-group",
948
948
  ...e
949
949
  });
950
950
  }
951
- function br({ ...e }) {
952
- return /* @__PURE__ */ H(J.Value, {
951
+ function Sr({ ...e }) {
952
+ return /* @__PURE__ */ W(J.Value, {
953
953
  "data-slot": "select-value",
954
954
  ...e
955
955
  });
956
956
  }
957
- function xr({ className: e, size: t = "default", children: n, ...i }) {
958
- return /* @__PURE__ */ U(J.Trigger, {
957
+ function Cr({ className: e, size: t = "default", children: n, ...i }) {
958
+ return /* @__PURE__ */ G(J.Trigger, {
959
959
  "data-slot": "select-trigger",
960
960
  "data-size": t,
961
961
  className: r("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
962
962
  ...i,
963
- children: [n, /* @__PURE__ */ H(J.Icon, {
963
+ children: [n, /* @__PURE__ */ W(J.Icon, {
964
964
  asChild: !0,
965
- children: /* @__PURE__ */ H(Ot, { className: "size-4 opacity-50" })
965
+ children: /* @__PURE__ */ W(At, { className: "size-4 opacity-50" })
966
966
  })]
967
967
  });
968
968
  }
969
- function Sr({ className: e, children: t, position: n = "popper", align: i = "center", ...a }) {
970
- return /* @__PURE__ */ H(J.Portal, { children: /* @__PURE__ */ U(J.Content, {
969
+ function wr({ className: e, children: t, position: n = "popper", align: i = "center", ...a }) {
970
+ return /* @__PURE__ */ W(J.Portal, { children: /* @__PURE__ */ G(J.Content, {
971
971
  "data-slot": "select-content",
972
972
  className: r("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", n === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", e),
973
973
  position: n,
974
974
  align: i,
975
975
  ...a,
976
976
  children: [
977
- /* @__PURE__ */ H(Er, {}),
978
- /* @__PURE__ */ H(J.Viewport, {
977
+ /* @__PURE__ */ W(Or, {}),
978
+ /* @__PURE__ */ W(J.Viewport, {
979
979
  className: r("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
980
980
  children: t
981
981
  }),
982
- /* @__PURE__ */ H(Dr, {})
982
+ /* @__PURE__ */ W(kr, {})
983
983
  ]
984
984
  }) });
985
985
  }
986
- function Cr({ className: e, ...t }) {
987
- return /* @__PURE__ */ H(J.Label, {
986
+ function Tr({ className: e, ...t }) {
987
+ return /* @__PURE__ */ W(J.Label, {
988
988
  "data-slot": "select-label",
989
989
  className: r("text-muted-foreground px-2 py-1.5 text-xs", e),
990
990
  ...t
991
991
  });
992
992
  }
993
- function wr({ className: e, children: t, ...n }) {
994
- return /* @__PURE__ */ U(J.Item, {
993
+ function Er({ className: e, children: t, ...n }) {
994
+ return /* @__PURE__ */ G(J.Item, {
995
995
  "data-slot": "select-item",
996
996
  className: r("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
997
997
  ...n,
998
- children: [/* @__PURE__ */ H("span", {
998
+ children: [/* @__PURE__ */ W("span", {
999
999
  className: "absolute right-2 flex size-3.5 items-center justify-center",
1000
- children: /* @__PURE__ */ H(J.ItemIndicator, { children: /* @__PURE__ */ H(de, { className: "size-4" }) })
1001
- }), /* @__PURE__ */ H(J.ItemText, { children: t })]
1000
+ children: /* @__PURE__ */ W(J.ItemIndicator, { children: /* @__PURE__ */ W(re, { className: "size-4" }) })
1001
+ }), /* @__PURE__ */ W(J.ItemText, { children: t })]
1002
1002
  });
1003
1003
  }
1004
- function Tr({ className: e, ...t }) {
1005
- return /* @__PURE__ */ H(J.Separator, {
1004
+ function Dr({ className: e, ...t }) {
1005
+ return /* @__PURE__ */ W(J.Separator, {
1006
1006
  "data-slot": "select-separator",
1007
1007
  className: r("bg-border pointer-events-none -mx-1 my-1 h-px", e),
1008
1008
  ...t
1009
1009
  });
1010
1010
  }
1011
- function Er({ className: e, ...t }) {
1012
- return /* @__PURE__ */ H(J.ScrollUpButton, {
1011
+ function Or({ className: e, ...t }) {
1012
+ return /* @__PURE__ */ W(J.ScrollUpButton, {
1013
1013
  "data-slot": "select-scroll-up-button",
1014
1014
  className: r("flex cursor-default items-center justify-center py-1", e),
1015
1015
  ...t,
1016
- children: /* @__PURE__ */ H(Mt, { className: "size-4" })
1016
+ children: /* @__PURE__ */ W(Pt, { className: "size-4" })
1017
1017
  });
1018
1018
  }
1019
- function Dr({ className: e, ...t }) {
1020
- return /* @__PURE__ */ H(J.ScrollDownButton, {
1019
+ function kr({ className: e, ...t }) {
1020
+ return /* @__PURE__ */ W(J.ScrollDownButton, {
1021
1021
  "data-slot": "select-scroll-down-button",
1022
1022
  className: r("flex cursor-default items-center justify-center py-1", e),
1023
1023
  ...t,
1024
- children: /* @__PURE__ */ H(Ot, { className: "size-4" })
1024
+ children: /* @__PURE__ */ W(At, { className: "size-4" })
1025
1025
  });
1026
1026
  }
1027
1027
  //#endregion
1028
1028
  //#region src/components/ui/separator.tsx
1029
- function Or({ className: e, orientation: t = "horizontal", decorative: n = !0, ...i }) {
1030
- return /* @__PURE__ */ H(ht.Root, {
1029
+ function Ar({ className: e, orientation: t = "horizontal", decorative: n = !0, ...i }) {
1030
+ return /* @__PURE__ */ W(_t.Root, {
1031
1031
  "data-slot": "separator",
1032
1032
  decorative: n,
1033
1033
  orientation: t,
@@ -1037,75 +1037,75 @@ function Or({ className: e, orientation: t = "horizontal", decorative: n = !0, .
1037
1037
  }
1038
1038
  //#endregion
1039
1039
  //#region src/components/ui/sheet.tsx
1040
- function kr({ ...e }) {
1041
- return /* @__PURE__ */ H(G.Root, {
1040
+ function jr({ ...e }) {
1041
+ return /* @__PURE__ */ W(q.Root, {
1042
1042
  "data-slot": "sheet",
1043
1043
  ...e
1044
1044
  });
1045
1045
  }
1046
- function Ar({ ...e }) {
1047
- return /* @__PURE__ */ H(G.Trigger, {
1046
+ function Mr({ ...e }) {
1047
+ return /* @__PURE__ */ W(q.Trigger, {
1048
1048
  "data-slot": "sheet-trigger",
1049
1049
  ...e
1050
1050
  });
1051
1051
  }
1052
- function jr({ ...e }) {
1053
- return /* @__PURE__ */ H(G.Close, {
1052
+ function Nr({ ...e }) {
1053
+ return /* @__PURE__ */ W(q.Close, {
1054
1054
  "data-slot": "sheet-close",
1055
1055
  ...e
1056
1056
  });
1057
1057
  }
1058
- function Mr({ ...e }) {
1059
- return /* @__PURE__ */ H(G.Portal, {
1058
+ function Pr({ ...e }) {
1059
+ return /* @__PURE__ */ W(q.Portal, {
1060
1060
  "data-slot": "sheet-portal",
1061
1061
  ...e
1062
1062
  });
1063
1063
  }
1064
- function Nr({ className: e, ...t }) {
1065
- return /* @__PURE__ */ H(G.Overlay, {
1064
+ function Fr({ className: e, ...t }) {
1065
+ return /* @__PURE__ */ W(q.Overlay, {
1066
1066
  "data-slot": "sheet-overlay",
1067
1067
  className: r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
1068
1068
  ...t
1069
1069
  });
1070
1070
  }
1071
- function Pr({ className: e, children: t, side: n = "right", ...i }) {
1072
- let { t: o } = W();
1073
- return /* @__PURE__ */ U(Mr, { children: [/* @__PURE__ */ H(Nr, {}), /* @__PURE__ */ U(G.Content, {
1071
+ function Ir({ className: e, children: t, side: n = "right", ...i }) {
1072
+ let { t: o } = K();
1073
+ return /* @__PURE__ */ G(Pr, { children: [/* @__PURE__ */ W(Fr, {}), /* @__PURE__ */ G(q.Content, {
1074
1074
  "data-slot": "sheet-content",
1075
1075
  className: r("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", n === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", n === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", e),
1076
1076
  ...i,
1077
- children: [t, /* @__PURE__ */ U(G.Close, {
1077
+ children: [t, /* @__PURE__ */ G(q.Close, {
1078
1078
  className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",
1079
- children: [/* @__PURE__ */ H(a, { className: "size-4" }), /* @__PURE__ */ H("span", {
1079
+ children: [/* @__PURE__ */ W(a, { className: "size-4" }), /* @__PURE__ */ W("span", {
1080
1080
  className: "sr-only",
1081
1081
  children: o("dialog.close", { defaultValue: "Close" })
1082
1082
  })]
1083
1083
  })]
1084
1084
  })] });
1085
1085
  }
1086
- function Fr({ className: e, ...t }) {
1087
- return /* @__PURE__ */ H("div", {
1086
+ function Lr({ className: e, ...t }) {
1087
+ return /* @__PURE__ */ W("div", {
1088
1088
  "data-slot": "sheet-header",
1089
1089
  className: r("flex flex-col gap-1.5 p-4", e),
1090
1090
  ...t
1091
1091
  });
1092
1092
  }
1093
- function Ir({ className: e, ...t }) {
1094
- return /* @__PURE__ */ H("div", {
1093
+ function Rr({ className: e, ...t }) {
1094
+ return /* @__PURE__ */ W("div", {
1095
1095
  "data-slot": "sheet-footer",
1096
1096
  className: r("mt-auto flex flex-col gap-2 p-4", e),
1097
1097
  ...t
1098
1098
  });
1099
1099
  }
1100
- function Lr({ className: e, ...t }) {
1101
- return /* @__PURE__ */ H(G.Title, {
1100
+ function zr({ className: e, ...t }) {
1101
+ return /* @__PURE__ */ W(q.Title, {
1102
1102
  "data-slot": "sheet-title",
1103
1103
  className: r("text-foreground font-semibold", e),
1104
1104
  ...t
1105
1105
  });
1106
1106
  }
1107
- function Rr({ className: e, ...t }) {
1108
- return /* @__PURE__ */ H(G.Description, {
1107
+ function Br({ className: e, ...t }) {
1108
+ return /* @__PURE__ */ W(q.Description, {
1109
1109
  "data-slot": "sheet-description",
1110
1110
  className: r("text-muted-foreground text-sm", e),
1111
1111
  ...t
@@ -1113,31 +1113,31 @@ function Rr({ className: e, ...t }) {
1113
1113
  }
1114
1114
  //#endregion
1115
1115
  //#region src/components/ui/sidebar.tsx
1116
- var zr = "sidebar_state", Br = 604800, Vr = "16rem", Hr = "18rem", Ur = "3rem", Wr = "b", Gr = z.createContext(null);
1117
- function Kr() {
1118
- let e = z.useContext(Gr);
1116
+ var Vr = "sidebar_state", Hr = 604800, Ur = "16rem", Wr = "18rem", Gr = "3rem", Kr = "b", qr = V.createContext(null);
1117
+ function Jr() {
1118
+ let e = V.useContext(qr);
1119
1119
  if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
1120
1120
  return e;
1121
1121
  }
1122
- function qr() {
1123
- return z.useContext(Gr);
1122
+ function Yr() {
1123
+ return V.useContext(qr);
1124
1124
  }
1125
- function Jr({ defaultOpen: e = !0, open: t, onOpenChange: n, className: i, style: a, children: o, ...s }) {
1126
- let c = Ee(), [l, u] = z.useState(!1), [d, f] = z.useState(e), p = t ?? d, m = z.useCallback((e) => {
1125
+ function Xr({ defaultOpen: e = !0, open: t, onOpenChange: n, className: i, style: a, children: o, ...s }) {
1126
+ let c = _e(), [l, u] = V.useState(!1), [d, f] = V.useState(e), p = t ?? d, m = V.useCallback((e) => {
1127
1127
  let t = typeof e == "function" ? e(p) : e;
1128
- n ? n(t) : f(t), document.cookie = `${zr}=${t}; path=/; max-age=${Br}`;
1129
- }, [n, p]), h = z.useCallback(() => c ? u((e) => !e) : m((e) => !e), [
1128
+ n ? n(t) : f(t), document.cookie = `${Vr}=${t}; path=/; max-age=${Hr}`;
1129
+ }, [n, p]), h = V.useCallback(() => c ? u((e) => !e) : m((e) => !e), [
1130
1130
  c,
1131
1131
  m,
1132
1132
  u
1133
1133
  ]);
1134
- z.useEffect(() => {
1134
+ V.useEffect(() => {
1135
1135
  let e = (e) => {
1136
- e.key === Wr && (e.metaKey || e.ctrlKey) && (e.preventDefault(), h());
1136
+ e.key === Kr && (e.metaKey || e.ctrlKey) && (e.preventDefault(), h());
1137
1137
  };
1138
1138
  return globalThis.addEventListener("keydown", e), () => globalThis.removeEventListener("keydown", e);
1139
1139
  }, [h]);
1140
- let g = p ? "expanded" : "collapsed", _ = z.useMemo(() => ({
1140
+ let g = p ? "expanded" : "collapsed", _ = V.useMemo(() => ({
1141
1141
  state: g,
1142
1142
  open: p,
1143
1143
  setOpen: m,
@@ -1154,15 +1154,15 @@ function Jr({ defaultOpen: e = !0, open: t, onOpenChange: n, className: i, style
1154
1154
  u,
1155
1155
  h
1156
1156
  ]);
1157
- return /* @__PURE__ */ H(Gr.Provider, {
1157
+ return /* @__PURE__ */ W(qr.Provider, {
1158
1158
  value: _,
1159
- children: /* @__PURE__ */ H(_e, {
1159
+ children: /* @__PURE__ */ W(ke, {
1160
1160
  delayDuration: 0,
1161
- children: /* @__PURE__ */ H("div", {
1161
+ children: /* @__PURE__ */ W("div", {
1162
1162
  "data-slot": "sidebar-wrapper",
1163
1163
  style: {
1164
- "--sidebar-width": Vr,
1165
- "--sidebar-width-icon": Ur,
1164
+ "--sidebar-width": Ur,
1165
+ "--sidebar-width-icon": Gr,
1166
1166
  ...a
1167
1167
  },
1168
1168
  className: r("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", i),
@@ -1172,9 +1172,9 @@ function Jr({ defaultOpen: e = !0, open: t, onOpenChange: n, className: i, style
1172
1172
  })
1173
1173
  });
1174
1174
  }
1175
- function Yr({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", position: i = "fixed", className: a, children: o, ...s }) {
1176
- let { isMobile: c, state: l, openMobile: u, setOpenMobile: d } = Kr(), { t: f } = W();
1177
- if (n === "none") return /* @__PURE__ */ H("div", {
1175
+ function Zr({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", position: i = "fixed", className: a, children: o, ...s }) {
1176
+ let { isMobile: c, state: l, openMobile: u, setOpenMobile: d } = Jr(), { t: f } = K();
1177
+ if (n === "none") return /* @__PURE__ */ W("div", {
1178
1178
  "data-slot": "sidebar",
1179
1179
  className: r("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", a),
1180
1180
  ...s,
@@ -1182,10 +1182,10 @@ function Yr({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
1182
1182
  });
1183
1183
  if (c) {
1184
1184
  let { style: t, ...n } = s;
1185
- return /* @__PURE__ */ H(kr, {
1185
+ return /* @__PURE__ */ W(jr, {
1186
1186
  open: u,
1187
1187
  onOpenChange: d,
1188
- children: /* @__PURE__ */ U(Pr, {
1188
+ children: /* @__PURE__ */ G(Ir, {
1189
1189
  "data-sidebar": "sidebar",
1190
1190
  "data-slot": "sidebar",
1191
1191
  "data-mobile": "true",
@@ -1193,34 +1193,34 @@ function Yr({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
1193
1193
  ...n,
1194
1194
  className: r("bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden", a),
1195
1195
  style: {
1196
- "--sidebar-width": Hr,
1196
+ "--sidebar-width": Wr,
1197
1197
  ...t
1198
1198
  },
1199
- children: [/* @__PURE__ */ U(Fr, {
1199
+ children: [/* @__PURE__ */ G(Lr, {
1200
1200
  className: "sr-only",
1201
- children: [/* @__PURE__ */ H(Lr, { children: f("sidebar.title", { defaultValue: "Sidebar" }) }), /* @__PURE__ */ H(Rr, { children: f("sidebar.description", { defaultValue: "Displays the mobile sidebar." }) })]
1202
- }), /* @__PURE__ */ H("div", {
1201
+ children: [/* @__PURE__ */ W(zr, { children: f("sidebar.title", { defaultValue: "Sidebar" }) }), /* @__PURE__ */ W(Br, { children: f("sidebar.description", { defaultValue: "Displays the mobile sidebar." }) })]
1202
+ }), /* @__PURE__ */ W("div", {
1203
1203
  className: "flex h-full w-full flex-col",
1204
1204
  children: o
1205
1205
  })]
1206
1206
  })
1207
1207
  });
1208
1208
  }
1209
- return /* @__PURE__ */ U("div", {
1209
+ return /* @__PURE__ */ G("div", {
1210
1210
  className: r("group peer text-sidebar-foreground hidden md:block", i === "absolute" && "relative"),
1211
1211
  "data-state": l,
1212
1212
  "data-collapsible": l === "collapsed" ? n : "",
1213
1213
  "data-variant": t,
1214
1214
  "data-side": e,
1215
1215
  "data-slot": "sidebar",
1216
- children: [/* @__PURE__ */ H("div", {
1216
+ children: [/* @__PURE__ */ W("div", {
1217
1217
  "data-slot": "sidebar-gap",
1218
1218
  className: r("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", t === "floating" || t === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
1219
- }), /* @__PURE__ */ H("div", {
1219
+ }), /* @__PURE__ */ W("div", {
1220
1220
  "data-slot": "sidebar-container",
1221
1221
  className: r("inset-y-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex", i === "absolute" ? "h-full" : "h-svh", i === "absolute" ? "absolute" : "fixed", e === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]", t === "floating" || t === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", a),
1222
1222
  ...s,
1223
- children: /* @__PURE__ */ H("div", {
1223
+ children: /* @__PURE__ */ W("div", {
1224
1224
  "data-sidebar": "sidebar",
1225
1225
  "data-slot": "sidebar-inner",
1226
1226
  className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",
@@ -1229,11 +1229,11 @@ function Yr({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
1229
1229
  })]
1230
1230
  });
1231
1231
  }
1232
- function Xr({ className: e, onClick: t, ...n }) {
1233
- let i = qr(), { t: a } = W();
1232
+ function Qr({ className: e, onClick: t, ...n }) {
1233
+ let i = Yr(), { t: a } = K();
1234
1234
  if (!i) return null;
1235
1235
  let { toggleSidebar: o, isMobile: s } = i;
1236
- return /* @__PURE__ */ U(v, {
1236
+ return /* @__PURE__ */ G(v, {
1237
1237
  "data-sidebar": "trigger",
1238
1238
  "data-slot": "sidebar-trigger",
1239
1239
  variant: "ghost",
@@ -1243,15 +1243,15 @@ function Xr({ className: e, onClick: t, ...n }) {
1243
1243
  t?.(e), o();
1244
1244
  },
1245
1245
  ...n,
1246
- children: [H(s ? Wt : Xt, {}), /* @__PURE__ */ H("span", {
1246
+ children: [W(s ? Kt : Qt, {}), /* @__PURE__ */ W("span", {
1247
1247
  className: "sr-only",
1248
1248
  children: a("sidebar.toggle", { defaultValue: "Toggle Sidebar" })
1249
1249
  })]
1250
1250
  });
1251
1251
  }
1252
- function Zr({ className: e, ...t }) {
1253
- let { toggleSidebar: n } = Kr(), { t: i } = W(), a = i("sidebar.toggle", { defaultValue: "Toggle Sidebar" });
1254
- return /* @__PURE__ */ H("button", {
1252
+ function $r({ className: e, ...t }) {
1253
+ let { toggleSidebar: n } = Jr(), { t: i } = K(), a = i("sidebar.toggle", { defaultValue: "Toggle Sidebar" });
1254
+ return /* @__PURE__ */ W("button", {
1255
1255
  "data-sidebar": "rail",
1256
1256
  "data-slot": "sidebar-rail",
1257
1257
  "aria-label": a,
@@ -1262,102 +1262,102 @@ function Zr({ className: e, ...t }) {
1262
1262
  ...t
1263
1263
  });
1264
1264
  }
1265
- function Qr({ className: e, ...t }) {
1266
- return /* @__PURE__ */ H("main", {
1265
+ function ei({ className: e, ...t }) {
1266
+ return /* @__PURE__ */ W("main", {
1267
1267
  "data-slot": "sidebar-inset",
1268
1268
  className: r("bg-background relative flex w-full flex-1 flex-col", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", e),
1269
1269
  ...t
1270
1270
  });
1271
1271
  }
1272
- function $r({ className: e, ...t }) {
1273
- return /* @__PURE__ */ H(s, {
1272
+ function ti({ className: e, ...t }) {
1273
+ return /* @__PURE__ */ W(s, {
1274
1274
  "data-slot": "sidebar-input",
1275
1275
  "data-sidebar": "input",
1276
1276
  className: r("bg-background h-8 w-full shadow-none", e),
1277
1277
  ...t
1278
1278
  });
1279
1279
  }
1280
- function ei({ className: e, ...t }) {
1281
- return /* @__PURE__ */ H("div", {
1280
+ function ni({ className: e, ...t }) {
1281
+ return /* @__PURE__ */ W("div", {
1282
1282
  "data-slot": "sidebar-header",
1283
1283
  "data-sidebar": "header",
1284
1284
  className: r("flex flex-col gap-2 p-2", e),
1285
1285
  ...t
1286
1286
  });
1287
1287
  }
1288
- function ti({ className: e, ...t }) {
1289
- return /* @__PURE__ */ H("div", {
1288
+ function ri({ className: e, ...t }) {
1289
+ return /* @__PURE__ */ W("div", {
1290
1290
  "data-slot": "sidebar-footer",
1291
1291
  "data-sidebar": "footer",
1292
1292
  className: r("flex flex-col gap-2 p-2", e),
1293
1293
  ...t
1294
1294
  });
1295
1295
  }
1296
- function ni({ className: e, ...t }) {
1297
- return /* @__PURE__ */ H(Or, {
1296
+ function ii({ className: e, ...t }) {
1297
+ return /* @__PURE__ */ W(Ar, {
1298
1298
  "data-slot": "sidebar-separator",
1299
1299
  "data-sidebar": "separator",
1300
1300
  className: r("bg-sidebar-border mx-2 w-auto", e),
1301
1301
  ...t
1302
1302
  });
1303
1303
  }
1304
- function ri({ className: e, ...t }) {
1305
- return /* @__PURE__ */ H("div", {
1304
+ function ai({ className: e, ...t }) {
1305
+ return /* @__PURE__ */ W("div", {
1306
1306
  "data-slot": "sidebar-content",
1307
1307
  "data-sidebar": "content",
1308
1308
  className: r("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", e),
1309
1309
  ...t
1310
1310
  });
1311
1311
  }
1312
- function ii({ className: e, ...t }) {
1313
- return /* @__PURE__ */ H("div", {
1312
+ function oi({ className: e, ...t }) {
1313
+ return /* @__PURE__ */ W("div", {
1314
1314
  "data-slot": "sidebar-group",
1315
1315
  "data-sidebar": "group",
1316
1316
  className: r("relative flex w-full min-w-0 flex-col p-2", e),
1317
1317
  ...t
1318
1318
  });
1319
1319
  }
1320
- function ai({ className: e, asChild: t = !1, ...n }) {
1321
- return /* @__PURE__ */ H(t ? Je : "div", {
1320
+ function si({ className: e, asChild: t = !1, ...n }) {
1321
+ return /* @__PURE__ */ W(t ? qe : "div", {
1322
1322
  "data-slot": "sidebar-group-label",
1323
1323
  "data-sidebar": "group-label",
1324
1324
  className: r("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", e),
1325
1325
  ...n
1326
1326
  });
1327
1327
  }
1328
- function oi({ className: e, asChild: t = !1, ...n }) {
1329
- return /* @__PURE__ */ H(t ? Je : "button", {
1328
+ function ci({ className: e, asChild: t = !1, ...n }) {
1329
+ return /* @__PURE__ */ W(t ? qe : "button", {
1330
1330
  "data-slot": "sidebar-group-action",
1331
1331
  "data-sidebar": "group-action",
1332
1332
  className: r("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "group-data-[collapsible=icon]:hidden", e),
1333
1333
  ...n
1334
1334
  });
1335
1335
  }
1336
- function si({ className: e, ...t }) {
1337
- return /* @__PURE__ */ H("div", {
1336
+ function li({ className: e, ...t }) {
1337
+ return /* @__PURE__ */ W("div", {
1338
1338
  "data-slot": "sidebar-group-content",
1339
1339
  "data-sidebar": "group-content",
1340
1340
  className: r("w-full text-sm", e),
1341
1341
  ...t
1342
1342
  });
1343
1343
  }
1344
- function ci({ className: e, ...t }) {
1345
- return /* @__PURE__ */ H("ul", {
1344
+ function ui({ className: e, ...t }) {
1345
+ return /* @__PURE__ */ W("ul", {
1346
1346
  "data-slot": "sidebar-menu",
1347
1347
  "data-sidebar": "menu",
1348
1348
  className: r("flex w-full min-w-0 flex-col gap-1", e),
1349
1349
  ...t
1350
1350
  });
1351
1351
  }
1352
- function li({ className: e, ...t }) {
1353
- return /* @__PURE__ */ H("li", {
1352
+ function di({ className: e, ...t }) {
1353
+ return /* @__PURE__ */ W("li", {
1354
1354
  "data-slot": "sidebar-menu-item",
1355
1355
  "data-sidebar": "menu-item",
1356
1356
  className: r("group/menu-item relative", e),
1357
1357
  ...t
1358
1358
  });
1359
1359
  }
1360
- var ui = Ye("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
1360
+ var fi = Je("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
1361
1361
  variants: {
1362
1362
  variant: {
1363
1363
  default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
@@ -1374,84 +1374,84 @@ var ui = Ye("peer/menu-button flex w-full items-center gap-2 overflow-hidden rou
1374
1374
  size: "default"
1375
1375
  }
1376
1376
  });
1377
- function di({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: i = "default", tooltip: a, className: o, ...s }) {
1378
- let c = e ? Je : "button", { isMobile: l, state: u } = Kr(), d = /* @__PURE__ */ H(c, {
1377
+ function pi({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: i = "default", tooltip: a, className: o, ...s }) {
1378
+ let c = e ? qe : "button", { isMobile: l, state: u } = Jr(), d = /* @__PURE__ */ W(c, {
1379
1379
  "data-slot": "sidebar-menu-button",
1380
1380
  "data-sidebar": "menu-button",
1381
1381
  "data-size": i,
1382
1382
  "data-active": t,
1383
- className: r(ui({
1383
+ className: r(fi({
1384
1384
  variant: n,
1385
1385
  size: i
1386
1386
  }), o),
1387
1387
  ...s
1388
1388
  });
1389
- return a ? (typeof a == "string" && (a = { children: a }), /* @__PURE__ */ U(Ce, { children: [/* @__PURE__ */ H(I, {
1389
+ return a ? (typeof a == "string" && (a = { children: a }), /* @__PURE__ */ G(ge, { children: [/* @__PURE__ */ W(Me, {
1390
1390
  asChild: !0,
1391
1391
  children: d
1392
- }), /* @__PURE__ */ H(ve, {
1392
+ }), /* @__PURE__ */ W(de, {
1393
1393
  side: "right",
1394
1394
  align: "center",
1395
1395
  hidden: u !== "collapsed" || l,
1396
1396
  ...a
1397
1397
  })] })) : d;
1398
1398
  }
1399
- function fi({ className: e, asChild: t = !1, showOnHover: n = !1, ...i }) {
1400
- return /* @__PURE__ */ H(t ? Je : "button", {
1399
+ function mi({ className: e, asChild: t = !1, showOnHover: n = !1, ...i }) {
1400
+ return /* @__PURE__ */ W(t ? qe : "button", {
1401
1401
  "data-slot": "sidebar-menu-action",
1402
1402
  "data-sidebar": "menu-action",
1403
1403
  className: r("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", n && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0", e),
1404
1404
  ...i
1405
1405
  });
1406
1406
  }
1407
- function pi({ className: e, ...t }) {
1408
- return /* @__PURE__ */ H("div", {
1407
+ function hi({ className: e, ...t }) {
1408
+ return /* @__PURE__ */ W("div", {
1409
1409
  "data-slot": "sidebar-menu-badge",
1410
1410
  "data-sidebar": "menu-badge",
1411
1411
  className: r("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", e),
1412
1412
  ...t
1413
1413
  });
1414
1414
  }
1415
- function mi(e) {
1415
+ function gi(e) {
1416
1416
  let t = 0;
1417
1417
  for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) | 0;
1418
1418
  return Math.abs(t);
1419
1419
  }
1420
- function hi({ className: e, showIcon: t = !1, ...n }) {
1421
- let i = `${50 + mi(z.useId()) % 40}%`;
1422
- return /* @__PURE__ */ U("div", {
1420
+ function _i({ className: e, showIcon: t = !1, ...n }) {
1421
+ let i = `${50 + gi(V.useId()) % 40}%`;
1422
+ return /* @__PURE__ */ G("div", {
1423
1423
  "data-slot": "sidebar-menu-skeleton",
1424
1424
  "data-sidebar": "menu-skeleton",
1425
1425
  className: r("flex h-8 items-center gap-2 rounded-md px-2", e),
1426
1426
  ...n,
1427
- children: [t && /* @__PURE__ */ H(m, {
1427
+ children: [t && /* @__PURE__ */ W(m, {
1428
1428
  className: "size-4 rounded-md",
1429
1429
  "data-sidebar": "menu-skeleton-icon"
1430
- }), /* @__PURE__ */ H(m, {
1430
+ }), /* @__PURE__ */ W(m, {
1431
1431
  className: "h-4 max-w-(--skeleton-width) flex-1",
1432
1432
  "data-sidebar": "menu-skeleton-text",
1433
1433
  style: { "--skeleton-width": i }
1434
1434
  })]
1435
1435
  });
1436
1436
  }
1437
- function gi({ className: e, ...t }) {
1438
- return /* @__PURE__ */ H("ul", {
1437
+ function vi({ className: e, ...t }) {
1438
+ return /* @__PURE__ */ W("ul", {
1439
1439
  "data-slot": "sidebar-menu-sub",
1440
1440
  "data-sidebar": "menu-sub",
1441
1441
  className: r("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5", "group-data-[collapsible=icon]:hidden", e),
1442
1442
  ...t
1443
1443
  });
1444
1444
  }
1445
- function _i({ className: e, ...t }) {
1446
- return /* @__PURE__ */ H("li", {
1445
+ function yi({ className: e, ...t }) {
1446
+ return /* @__PURE__ */ W("li", {
1447
1447
  "data-slot": "sidebar-menu-sub-item",
1448
1448
  "data-sidebar": "menu-sub-item",
1449
1449
  className: r("group/menu-sub-item relative", e),
1450
1450
  ...t
1451
1451
  });
1452
1452
  }
1453
- function vi({ asChild: e = !1, size: t = "md", isActive: n = !1, className: i, ...a }) {
1454
- return /* @__PURE__ */ H(e ? Je : "a", {
1453
+ function bi({ asChild: e = !1, size: t = "md", isActive: n = !1, className: i, ...a }) {
1454
+ return /* @__PURE__ */ W(e ? qe : "a", {
1455
1455
  "data-slot": "sidebar-menu-sub-button",
1456
1456
  "data-sidebar": "menu-sub-button",
1457
1457
  "data-size": t,
@@ -1462,61 +1462,61 @@ function vi({ asChild: e = !1, size: t = "md", isActive: n = !1, className: i, .
1462
1462
  }
1463
1463
  //#endregion
1464
1464
  //#region src/components/ui/sticky-save-bar.tsx
1465
- var yi = {
1465
+ var xi = {
1466
1466
  gray: "bg-gray-50 dark:bg-gray-950/30",
1467
1467
  blue: "bg-blue-50 dark:bg-blue-950/30",
1468
1468
  orange: "bg-orange-50 dark:bg-orange-950/30",
1469
1469
  green: "bg-green-50 dark:bg-green-950/30"
1470
1470
  };
1471
- function bi({ title: e, badges: t, actions: n, onCancel: r, loading: i, disabled: a, variant: o = "gray" }) {
1472
- let { t: s } = W();
1473
- return /* @__PURE__ */ U("div", {
1474
- className: `sticky top-0 z-10 border rounded-lg px-4 py-3 flex items-center justify-between gap-4 ${yi[o]}`,
1475
- children: [/* @__PURE__ */ U("div", {
1471
+ function Si({ title: e, badges: t, actions: n, onCancel: r, loading: i, disabled: a, variant: o = "gray" }) {
1472
+ let { t: s } = K();
1473
+ return /* @__PURE__ */ G("div", {
1474
+ className: `sticky top-0 z-10 border rounded-lg px-4 py-3 flex items-center justify-between gap-4 ${xi[o]}`,
1475
+ children: [/* @__PURE__ */ G("div", {
1476
1476
  className: "flex items-center gap-3 min-w-0",
1477
- children: [/* @__PURE__ */ H("h3", {
1477
+ children: [/* @__PURE__ */ W("h3", {
1478
1478
  className: "text-lg font-semibold text-foreground truncate",
1479
1479
  children: e
1480
- }), t && /* @__PURE__ */ H("div", {
1480
+ }), t && /* @__PURE__ */ W("div", {
1481
1481
  className: "flex items-center gap-1.5 shrink-0",
1482
1482
  children: t
1483
1483
  })]
1484
- }), /* @__PURE__ */ H("div", {
1484
+ }), /* @__PURE__ */ W("div", {
1485
1485
  className: "flex gap-2 shrink-0",
1486
- children: n ?? /* @__PURE__ */ U(Ke, { children: [/* @__PURE__ */ U(v, {
1486
+ children: n ?? /* @__PURE__ */ G(Ge, { children: [/* @__PURE__ */ G(v, {
1487
1487
  type: "submit",
1488
1488
  size: "sm",
1489
1489
  loading: i,
1490
1490
  disabled: a,
1491
- children: [/* @__PURE__ */ H(at, { className: "size-4" }), s("forms.formActions.saveChanges")]
1492
- }), r && /* @__PURE__ */ U(v, {
1491
+ children: [/* @__PURE__ */ W(at, { className: "size-4" }), s("forms.formActions.saveChanges")]
1492
+ }), r && /* @__PURE__ */ G(v, {
1493
1493
  type: "button",
1494
1494
  variant: "outline",
1495
1495
  size: "sm",
1496
1496
  onClick: r,
1497
- children: [/* @__PURE__ */ H(dt, { className: "size-4" }), s("forms.formActions.cancel")]
1497
+ children: [/* @__PURE__ */ W(ft, { className: "size-4" }), s("forms.formActions.cancel")]
1498
1498
  })] })
1499
1499
  })]
1500
1500
  });
1501
1501
  }
1502
- function xi({ children: e }) {
1503
- return /* @__PURE__ */ H(c, {
1502
+ function Ci({ children: e }) {
1503
+ return /* @__PURE__ */ W(c, {
1504
1504
  variant: "outline",
1505
1505
  className: "text-xs",
1506
1506
  children: e
1507
1507
  });
1508
1508
  }
1509
- bi.Badge = xi;
1509
+ Si.Badge = Ci;
1510
1510
  //#endregion
1511
1511
  //#region src/components/ui/slider.tsx
1512
- function Si({ className: e, defaultValue: t, value: n, min: i = 0, max: a = 100, "aria-label": o, "aria-labelledby": s, ...c }) {
1513
- let l = z.useMemo(() => Array.isArray(n) ? n : Array.isArray(t) ? t : [i, a], [
1512
+ function wi({ className: e, defaultValue: t, value: n, min: i = 0, max: a = 100, "aria-label": o, "aria-labelledby": s, ...c }) {
1513
+ let l = V.useMemo(() => Array.isArray(n) ? n : Array.isArray(t) ? t : [i, a], [
1514
1514
  n,
1515
1515
  t,
1516
1516
  i,
1517
1517
  a
1518
1518
  ]);
1519
- return /* @__PURE__ */ U(gt.Root, {
1519
+ return /* @__PURE__ */ G(vt.Root, {
1520
1520
  "data-slot": "slider",
1521
1521
  defaultValue: t,
1522
1522
  value: n,
@@ -1524,14 +1524,14 @@ function Si({ className: e, defaultValue: t, value: n, min: i = 0, max: a = 100,
1524
1524
  max: a,
1525
1525
  className: r("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", e),
1526
1526
  ...c,
1527
- children: [/* @__PURE__ */ H(gt.Track, {
1527
+ children: [/* @__PURE__ */ W(vt.Track, {
1528
1528
  "data-slot": "slider-track",
1529
1529
  className: r("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),
1530
- children: /* @__PURE__ */ H(gt.Range, {
1530
+ children: /* @__PURE__ */ W(vt.Range, {
1531
1531
  "data-slot": "slider-range",
1532
1532
  className: r("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
1533
1533
  })
1534
- }), Array.from({ length: l.length }, (e, t) => /* @__PURE__ */ H(gt.Thumb, {
1534
+ }), Array.from({ length: l.length }, (e, t) => /* @__PURE__ */ W(vt.Thumb, {
1535
1535
  "data-slot": "slider-thumb",
1536
1536
  "aria-label": o && l.length > 1 ? `${o} ${t + 1}` : o,
1537
1537
  "aria-labelledby": s,
@@ -1541,59 +1541,59 @@ function Si({ className: e, defaultValue: t, value: n, min: i = 0, max: a = 100,
1541
1541
  }
1542
1542
  //#endregion
1543
1543
  //#region src/components/ui/tree.tsx
1544
- var Ci = "/";
1545
- function wi(e, t) {
1546
- return e === "" ? t : `${e}${Ci}${t}`;
1544
+ var Ti = "/";
1545
+ function Ei(e, t) {
1546
+ return e === "" ? t : `${e}${Ti}${t}`;
1547
1547
  }
1548
- function Ti(e) {
1548
+ function Di(e) {
1549
1549
  return e.children !== void 0 && e.children.length > 0;
1550
1550
  }
1551
- function Ei(e, t, n) {
1552
- if (!n || !Ti(e)) return {
1551
+ function Oi(e, t, n) {
1552
+ if (!n || !Di(e)) return {
1553
1553
  node: e,
1554
1554
  ids: t
1555
1555
  };
1556
1556
  let r = e.children?.length === 1 ? e.children[0] : void 0;
1557
- return r === void 0 || !Ti(r) ? {
1557
+ return r === void 0 || !Di(r) ? {
1558
1558
  node: e,
1559
1559
  ids: t
1560
- } : Ei(r, [...t, r.id], n);
1560
+ } : Oi(r, [...t, r.id], n);
1561
1561
  }
1562
- function Di(e, t, n, r = "", i = 1) {
1562
+ function ki(e, t, n, r = "", i = 1) {
1563
1563
  let a = [];
1564
1564
  for (let o of e) {
1565
- let e = Ei(o, [o.id], n), s = e.ids.reduce((e, t) => wi(e, t), r), c = Ti(e.node);
1565
+ let e = Oi(o, [o.id], n), s = e.ids.reduce((e, t) => Ei(e, t), r), c = Di(e.node);
1566
1566
  a.push({
1567
1567
  key: s,
1568
1568
  node: e.node,
1569
1569
  ids: e.ids,
1570
1570
  level: i,
1571
1571
  hasChildren: c
1572
- }), c && t.has(s) && a.push(...Di(e.node.children ?? [], t, n, s, i + 1));
1572
+ }), c && t.has(s) && a.push(...ki(e.node.children ?? [], t, n, s, i + 1));
1573
1573
  }
1574
1574
  return a;
1575
1575
  }
1576
- function Oi(e) {
1577
- return e.ids.length > 1 ? e.ids.join(Ci) : e.node.label;
1576
+ function Ai(e) {
1577
+ return e.ids.length > 1 ? e.ids.join(Ti) : e.node.label;
1578
1578
  }
1579
- function ki({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedChange: a, selected: o, onSelect: s, renderAfter: c, compact: l = !0, className: u, ...d }) {
1580
- let [f, p] = z.useState(i ?? []), m = z.useMemo(() => new Set(n ?? f), [n, f]), h = z.useMemo(() => Di(e, m, l), [
1579
+ function ji({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedChange: a, selected: o, onSelect: s, renderAfter: c, compact: l = !0, className: u, ...d }) {
1580
+ let [f, p] = V.useState(i ?? []), m = V.useMemo(() => new Set(n ?? f), [n, f]), h = V.useMemo(() => ki(e, m, l), [
1581
1581
  e,
1582
1582
  m,
1583
1583
  l
1584
- ]), [g, _] = z.useState(null), v = h.some((e) => e.key === g) ? g : h[0]?.key ?? null, y = z.useRef(null), ee = z.useCallback((e) => {
1584
+ ]), [g, _] = V.useState(null), v = h.some((e) => e.key === g) ? g : h[0]?.key ?? null, y = V.useRef(null), b = V.useCallback((e) => {
1585
1585
  n === void 0 && p(e), a?.(e);
1586
- }, [n, a]), b = z.useCallback((e, t) => {
1586
+ }, [n, a]), x = V.useCallback((e, t) => {
1587
1587
  let n = [...m];
1588
- t !== m.has(e) && ee(t ? [...n, e] : n.filter((t) => t !== e));
1589
- }, [m, ee]), x = z.useCallback((e) => {
1588
+ t !== m.has(e) && b(t ? [...n, e] : n.filter((t) => t !== e));
1589
+ }, [m, b]), S = V.useCallback((e) => {
1590
1590
  _(e), (y.current?.querySelector(`[data-tree-key="${CSS.escape(e)}"]`))?.focus();
1591
- }, []), S = z.useCallback((e) => {
1591
+ }, []), C = V.useCallback((e) => {
1592
1592
  let t = h.findIndex((e) => e.key === v), n = h[t];
1593
1593
  if (n === void 0) return;
1594
1594
  let r = (e) => {
1595
1595
  let t = h[e];
1596
- t !== void 0 && x(t.key);
1596
+ t !== void 0 && S(t.key);
1597
1597
  };
1598
1598
  switch (e.key) {
1599
1599
  case "ArrowDown":
@@ -1609,24 +1609,24 @@ function ki({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedCha
1609
1609
  e.preventDefault(), r(h.length - 1);
1610
1610
  return;
1611
1611
  case "ArrowRight":
1612
- e.preventDefault(), n.hasChildren && !m.has(n.key) ? b(n.key, !0) : n.hasChildren && r(t + 1);
1612
+ e.preventDefault(), n.hasChildren && !m.has(n.key) ? x(n.key, !0) : n.hasChildren && r(t + 1);
1613
1613
  return;
1614
1614
  case "ArrowLeft":
1615
1615
  if (e.preventDefault(), n.hasChildren && m.has(n.key)) {
1616
- b(n.key, !1);
1616
+ x(n.key, !1);
1617
1617
  return;
1618
1618
  }
1619
1619
  for (let e = t - 1; e >= 0; --e) {
1620
1620
  let t = h[e];
1621
1621
  if (t !== void 0 && t.level < n.level) {
1622
- x(t.key);
1622
+ S(t.key);
1623
1623
  return;
1624
1624
  }
1625
1625
  }
1626
1626
  return;
1627
1627
  case "Enter":
1628
1628
  case " ":
1629
- e.preventDefault(), n.hasChildren && b(n.key, !m.has(n.key)), s?.(n.key, n.node);
1629
+ e.preventDefault(), n.hasChildren && x(n.key, !m.has(n.key)), s?.(n.key, n.node);
1630
1630
  return;
1631
1631
  default: return;
1632
1632
  }
@@ -1634,20 +1634,20 @@ function ki({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedCha
1634
1634
  h,
1635
1635
  v,
1636
1636
  m,
1637
- b,
1638
1637
  x,
1638
+ S,
1639
1639
  s
1640
1640
  ]);
1641
- return /* @__PURE__ */ H("div", {
1641
+ return /* @__PURE__ */ W("div", {
1642
1642
  ref: y,
1643
1643
  role: "tree",
1644
1644
  "aria-label": t,
1645
1645
  className: r("flex flex-col text-sm", u),
1646
- onKeyDown: S,
1646
+ onKeyDown: C,
1647
1647
  ...d,
1648
1648
  children: h.map((e) => {
1649
1649
  let t = e.hasChildren && m.has(e.key);
1650
- return /* @__PURE__ */ U("div", {
1650
+ return /* @__PURE__ */ G("div", {
1651
1651
  role: "treeitem",
1652
1652
  "data-tree-key": e.key,
1653
1653
  "aria-level": e.level,
@@ -1660,16 +1660,16 @@ function ki({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedCha
1660
1660
  _(e.key);
1661
1661
  },
1662
1662
  onClick: () => {
1663
- e.hasChildren && b(e.key, !t), s?.(e.key, e.node);
1663
+ e.hasChildren && x(e.key, !t), s?.(e.key, e.node);
1664
1664
  },
1665
1665
  children: [
1666
- /* @__PURE__ */ H(fe, {
1666
+ /* @__PURE__ */ W(ue, {
1667
1667
  "aria-hidden": "true",
1668
1668
  className: r("size-3.5 shrink-0 transition-transform", e.hasChildren ? "opacity-70" : "opacity-0", t && "rotate-90")
1669
1669
  }),
1670
- /* @__PURE__ */ H("span", {
1670
+ /* @__PURE__ */ W("span", {
1671
1671
  className: "min-w-0 truncate",
1672
- children: Oi(e)
1672
+ children: Ai(e)
1673
1673
  }),
1674
1674
  c?.(e.node, e.key)
1675
1675
  ]
@@ -1677,8 +1677,8 @@ function ki({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedCha
1677
1677
  })
1678
1678
  });
1679
1679
  }
1680
- function Ai(e, t = {}) {
1681
- let n = t.separator ?? Ci, r = [], i = /* @__PURE__ */ new Map();
1680
+ function Mi(e, t = {}) {
1681
+ let n = t.separator ?? Ti, r = [], i = /* @__PURE__ */ new Map();
1682
1682
  for (let t of e) {
1683
1683
  let e = t.split(n).filter((e) => e !== ""), a = r, o = "";
1684
1684
  for (let t of e) {
@@ -1695,64 +1695,64 @@ function Ai(e, t = {}) {
1695
1695
  }
1696
1696
  //#endregion
1697
1697
  //#region src/components/ui/stepper.tsx
1698
- var ji = Ve({
1698
+ var Ni = Be({
1699
1699
  completedSteps: [],
1700
1700
  allDone: !1
1701
1701
  });
1702
- function Mi({ completedSteps: e, children: t, className: n }) {
1702
+ function Pi({ completedSteps: e, children: t, className: n }) {
1703
1703
  let i = e.length > 0 && e.every(Boolean);
1704
- return /* @__PURE__ */ H(ji.Provider, {
1704
+ return /* @__PURE__ */ W(Ni.Provider, {
1705
1705
  value: {
1706
1706
  completedSteps: e,
1707
1707
  allDone: i
1708
1708
  },
1709
- children: /* @__PURE__ */ U("div", {
1709
+ children: /* @__PURE__ */ G("div", {
1710
1710
  className: r("relative", n),
1711
- children: [/* @__PURE__ */ H("div", { className: "stepper-line absolute left-3.75 top-4 bottom-4 w-0.5 rounded-full" }), t]
1711
+ children: [/* @__PURE__ */ W("div", { className: "stepper-line absolute left-3.75 top-4 bottom-4 w-0.5 rounded-full" }), t]
1712
1712
  })
1713
1713
  });
1714
1714
  }
1715
- function Ni({ index: e, children: t, className: n }) {
1716
- let { completedSteps: i } = Ue(ji), a = i[e] ?? !1, o = e + 1;
1717
- return /* @__PURE__ */ U("div", {
1715
+ function Fi({ index: e, children: t, className: n }) {
1716
+ let { completedSteps: i } = He(Ni), a = i[e] ?? !1, o = e + 1;
1717
+ return /* @__PURE__ */ G("div", {
1718
1718
  className: r("relative flex items-start gap-4 pb-8", n),
1719
- children: [/* @__PURE__ */ H("div", {
1719
+ children: [/* @__PURE__ */ W("div", {
1720
1720
  className: "flex flex-col items-center",
1721
- children: /* @__PURE__ */ H("div", {
1721
+ children: /* @__PURE__ */ W("div", {
1722
1722
  className: r("relative z-10 flex h-8 w-8 items-center justify-center rounded-full text-xs font-bold transition-all duration-500", a ? "bg-emerald-500 text-white shadow-md shadow-emerald-500/30 scale-105" : "bg-primary text-primary-foreground"),
1723
- children: a ? /* @__PURE__ */ H(rt, { className: "h-4 w-4" }) : o
1723
+ children: a ? /* @__PURE__ */ W(rt, { className: "h-4 w-4" }) : o
1724
1724
  })
1725
- }), /* @__PURE__ */ H("div", {
1725
+ }), /* @__PURE__ */ W("div", {
1726
1726
  className: "flex-1 pt-0.5",
1727
1727
  children: t
1728
1728
  })]
1729
1729
  });
1730
1730
  }
1731
- function Pi({ readyLabel: e, pendingLabel: t, className: n }) {
1732
- let { allDone: i } = Ue(ji), { t: a } = W(), o = e ?? a("common.readyToSubmit"), s = t ?? a("common.completeAllSteps");
1733
- return /* @__PURE__ */ U("div", {
1731
+ function Ii({ readyLabel: e, pendingLabel: t, className: n }) {
1732
+ let { allDone: i } = He(Ni), { t: a } = K(), o = e ?? a("common.readyToSubmit"), s = t ?? a("common.completeAllSteps");
1733
+ return /* @__PURE__ */ G("div", {
1734
1734
  className: r("relative flex items-center gap-4", n),
1735
- children: [/* @__PURE__ */ H("div", {
1735
+ children: [/* @__PURE__ */ W("div", {
1736
1736
  className: "flex flex-col items-center",
1737
- children: /* @__PURE__ */ H("div", {
1737
+ children: /* @__PURE__ */ W("div", {
1738
1738
  className: r("relative z-10 flex h-8 w-8 items-center justify-center rounded-full transition-all duration-700", i ? "stepper-ready bg-emerald-500 text-white shadow-lg shadow-emerald-500/40 scale-110" : "bg-muted text-muted-foreground/40"),
1739
- children: /* @__PURE__ */ H(it, { className: "h-5 w-5" })
1739
+ children: /* @__PURE__ */ W(it, { className: "h-5 w-5" })
1740
1740
  })
1741
- }), /* @__PURE__ */ H("span", {
1741
+ }), /* @__PURE__ */ W("span", {
1742
1742
  className: r("text-sm font-medium transition-all duration-500", i ? "text-emerald-700 dark:text-emerald-400" : "text-muted-foreground"),
1743
1743
  children: i ? o : s
1744
1744
  })]
1745
1745
  });
1746
1746
  }
1747
- Mi.Step = Ni, Mi.Completion = Pi;
1747
+ Pi.Step = Fi, Pi.Completion = Ii;
1748
1748
  //#endregion
1749
1749
  //#region src/components/ui/switch.tsx
1750
- function Fi({ className: e, ...t }) {
1751
- return /* @__PURE__ */ H(ft.Root, {
1750
+ function Li({ className: e, ...t }) {
1751
+ return /* @__PURE__ */ W(pt.Root, {
1752
1752
  "data-slot": "switch",
1753
1753
  className: r("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", e),
1754
1754
  ...t,
1755
- children: /* @__PURE__ */ H(ft.Thumb, {
1755
+ children: /* @__PURE__ */ W(pt.Thumb, {
1756
1756
  "data-slot": "switch-thumb",
1757
1757
  className: r("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")
1758
1758
  })
@@ -1760,61 +1760,61 @@ function Fi({ className: e, ...t }) {
1760
1760
  }
1761
1761
  //#endregion
1762
1762
  //#region src/components/ui/table.tsx
1763
- function Ii({ className: e, ...t }) {
1764
- return /* @__PURE__ */ H("div", {
1763
+ function Ri({ className: e, ...t }) {
1764
+ return /* @__PURE__ */ W("div", {
1765
1765
  "data-slot": "table-container",
1766
1766
  className: "relative w-full overflow-x-auto",
1767
- children: /* @__PURE__ */ H("table", {
1767
+ children: /* @__PURE__ */ W("table", {
1768
1768
  "data-slot": "table",
1769
1769
  className: r("w-full caption-bottom text-sm", e),
1770
1770
  ...t
1771
1771
  })
1772
1772
  });
1773
1773
  }
1774
- function Li({ className: e, ...t }) {
1775
- return /* @__PURE__ */ H("thead", {
1774
+ function zi({ className: e, ...t }) {
1775
+ return /* @__PURE__ */ W("thead", {
1776
1776
  "data-slot": "table-header",
1777
1777
  className: r("[&_tr]:border-b", e),
1778
1778
  ...t
1779
1779
  });
1780
1780
  }
1781
- function Ri({ className: e, ...t }) {
1782
- return /* @__PURE__ */ H("tbody", {
1781
+ function Bi({ className: e, ...t }) {
1782
+ return /* @__PURE__ */ W("tbody", {
1783
1783
  "data-slot": "table-body",
1784
1784
  className: r("[&_tr:last-child]:border-0", e),
1785
1785
  ...t
1786
1786
  });
1787
1787
  }
1788
- function zi({ className: e, ...t }) {
1789
- return /* @__PURE__ */ H("tfoot", {
1788
+ function Vi({ className: e, ...t }) {
1789
+ return /* @__PURE__ */ W("tfoot", {
1790
1790
  "data-slot": "table-footer",
1791
1791
  className: r("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", e),
1792
1792
  ...t
1793
1793
  });
1794
1794
  }
1795
- function Bi({ className: e, ...t }) {
1796
- return /* @__PURE__ */ H("tr", {
1795
+ function Hi({ className: e, ...t }) {
1796
+ return /* @__PURE__ */ W("tr", {
1797
1797
  "data-slot": "table-row",
1798
1798
  className: r("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", e),
1799
1799
  ...t
1800
1800
  });
1801
1801
  }
1802
- function Vi({ className: e, ...t }) {
1803
- return /* @__PURE__ */ H("th", {
1802
+ function Ui({ className: e, ...t }) {
1803
+ return /* @__PURE__ */ W("th", {
1804
1804
  "data-slot": "table-head",
1805
1805
  className: r("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", e),
1806
1806
  ...t
1807
1807
  });
1808
1808
  }
1809
- function Hi({ className: e, ...t }) {
1810
- return /* @__PURE__ */ H("td", {
1809
+ function Wi({ className: e, ...t }) {
1810
+ return /* @__PURE__ */ W("td", {
1811
1811
  "data-slot": "table-cell",
1812
1812
  className: r("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", e),
1813
1813
  ...t
1814
1814
  });
1815
1815
  }
1816
- function Ui({ className: e, ...t }) {
1817
- return /* @__PURE__ */ H("caption", {
1816
+ function Gi({ className: e, ...t }) {
1817
+ return /* @__PURE__ */ W("caption", {
1818
1818
  "data-slot": "table-caption",
1819
1819
  className: r("text-muted-foreground mt-4 text-sm", e),
1820
1820
  ...t
@@ -1822,8 +1822,8 @@ function Ui({ className: e, ...t }) {
1822
1822
  }
1823
1823
  //#endregion
1824
1824
  //#region src/components/ui/textarea.tsx
1825
- function Wi({ className: e, ...t }) {
1826
- return /* @__PURE__ */ H("textarea", {
1825
+ function Ki({ className: e, ...t }) {
1826
+ return /* @__PURE__ */ W("textarea", {
1827
1827
  "data-slot": "textarea",
1828
1828
  className: r("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", e),
1829
1829
  ...t
@@ -1831,7 +1831,7 @@ function Wi({ className: e, ...t }) {
1831
1831
  }
1832
1832
  //#endregion
1833
1833
  //#region src/components/ui/toggle.tsx
1834
- var Gi = Ye("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
1834
+ var qi = Je("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
1835
1835
  variants: {
1836
1836
  variant: {
1837
1837
  default: "bg-transparent",
@@ -1848,10 +1848,10 @@ var Gi = Ye("inline-flex items-center justify-center gap-2 rounded-md text-sm fo
1848
1848
  size: "default"
1849
1849
  }
1850
1850
  });
1851
- function Ki({ className: e, variant: t, size: n, ...i }) {
1852
- return /* @__PURE__ */ H(bt.Root, {
1851
+ function Ji({ className: e, variant: t, size: n, ...i }) {
1852
+ return /* @__PURE__ */ W(St.Root, {
1853
1853
  "data-slot": "toggle",
1854
- className: r(Gi({
1854
+ className: r(qi({
1855
1855
  variant: t,
1856
1856
  size: n,
1857
1857
  className: e
@@ -1861,13 +1861,13 @@ function Ki({ className: e, variant: t, size: n, ...i }) {
1861
1861
  }
1862
1862
  //#endregion
1863
1863
  //#region src/components/ui/toggle-group.tsx
1864
- var qi = z.createContext({
1864
+ var Yi = V.createContext({
1865
1865
  size: "default",
1866
1866
  variant: "default",
1867
1867
  spacing: 0
1868
1868
  });
1869
- function Ji({ className: e, variant: t, size: n, spacing: i = 0, children: a, ...o }) {
1870
- return /* @__PURE__ */ H(xt.Root, {
1869
+ function Xi({ className: e, variant: t, size: n, spacing: i = 0, children: a, ...o }) {
1870
+ return /* @__PURE__ */ W(Ct.Root, {
1871
1871
  "data-slot": "toggle-group",
1872
1872
  "data-variant": t,
1873
1873
  "data-size": n,
@@ -1875,7 +1875,7 @@ function Ji({ className: e, variant: t, size: n, spacing: i = 0, children: a, ..
1875
1875
  style: { "--gap": i },
1876
1876
  className: r("group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs", e),
1877
1877
  ...o,
1878
- children: /* @__PURE__ */ H(qi.Provider, {
1878
+ children: /* @__PURE__ */ W(Yi.Provider, {
1879
1879
  value: {
1880
1880
  variant: t,
1881
1881
  size: n,
@@ -1885,14 +1885,14 @@ function Ji({ className: e, variant: t, size: n, spacing: i = 0, children: a, ..
1885
1885
  })
1886
1886
  });
1887
1887
  }
1888
- function Yi({ className: e, children: t, variant: n, size: i, ...a }) {
1889
- let o = z.useContext(qi);
1890
- return /* @__PURE__ */ H(xt.Item, {
1888
+ function Zi({ className: e, children: t, variant: n, size: i, ...a }) {
1889
+ let o = V.useContext(Yi);
1890
+ return /* @__PURE__ */ W(Ct.Item, {
1891
1891
  "data-slot": "toggle-group-item",
1892
1892
  "data-variant": o.variant || n,
1893
1893
  "data-size": o.size || i,
1894
1894
  "data-spacing": o.spacing,
1895
- className: r(Gi({
1895
+ className: r(qi({
1896
1896
  variant: o.variant || n,
1897
1897
  size: o.size || i
1898
1898
  }), "w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10", "data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l", e),
@@ -1902,11 +1902,11 @@ function Yi({ className: e, children: t, variant: n, size: i, ...a }) {
1902
1902
  }
1903
1903
  //#endregion
1904
1904
  //#region src/components/ui/viglet-avatar.tsx
1905
- var Xi = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4, Zi = (e) => e <= .0031308 ? 12.92 * e : 1.055 * e ** (1 / 2.4) - .055, X = (e) => [
1906
- Xi((e >> 16 & 255) / 255),
1907
- Xi((e >> 8 & 255) / 255),
1908
- Xi((e & 255) / 255)
1909
- ], Qi = {
1905
+ var Qi = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4, $i = (e) => e <= .0031308 ? 12.92 * e : 1.055 * e ** (1 / 2.4) - .055, X = (e) => [
1906
+ Qi((e >> 16 & 255) / 255),
1907
+ Qi((e >> 8 & 255) / 255),
1908
+ Qi((e & 255) / 255)
1909
+ ], ea = {
1910
1910
  idle: {
1911
1911
  center: X(14916170),
1912
1912
  rim: X(11022874),
@@ -1932,8 +1932,8 @@ var Xi = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4, Zi = (e)
1932
1932
  rim: X(11812382),
1933
1933
  glow: .42
1934
1934
  }
1935
- }, $i = 2;
1936
- function ea(e) {
1935
+ }, ta = 2;
1936
+ function na(e) {
1937
1937
  let t = (1 + Math.sqrt(5)) / 2, n = [
1938
1938
  -1,
1939
1939
  t,
@@ -2069,12 +2069,12 @@ function ea(e) {
2069
2069
  count: u
2070
2070
  };
2071
2071
  }
2072
- var ta = ea($i), na = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Z = (e, t, n) => e + (t - e) * n;
2073
- function ra(e, t, n) {
2074
- let r = na((n - e) / (t - e));
2072
+ var ra = na(ta), ia = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Z = (e, t, n) => e + (t - e) * n;
2073
+ function aa(e, t, n) {
2074
+ let r = ia((n - e) / (t - e));
2075
2075
  return r * r * (3 - 2 * r);
2076
2076
  }
2077
- var ia = .78, aa = [
2077
+ var oa = .78, sa = [
2078
2078
  [
2079
2079
  .59719,
2080
2080
  .35458,
@@ -2090,7 +2090,7 @@ var ia = .78, aa = [
2090
2090
  .13383,
2091
2091
  .83777
2092
2092
  ]
2093
- ], oa = [
2093
+ ], ca = [
2094
2094
  [
2095
2095
  1.60475,
2096
2096
  -.53108,
@@ -2106,182 +2106,182 @@ var ia = .78, aa = [
2106
2106
  -.07276,
2107
2107
  1.07602
2108
2108
  ]
2109
- ], sa = (e) => (e * (e + .0245786) - 90537e-9) / (e * (.983729 * e + .432951) + .238081);
2110
- function ca(e, t, n, r) {
2111
- let i = t * ia, a = n * ia, o = r * ia;
2109
+ ], la = (e) => (e * (e + .0245786) - 90537e-9) / (e * (.983729 * e + .432951) + .238081);
2110
+ function ua(e, t, n, r) {
2111
+ let i = t * oa, a = n * oa, o = r * oa;
2112
2112
  for (let t = 0; t < 3; t += 1) {
2113
- let [n, r, s] = aa[t];
2114
- e[t] = sa(n * i + r * a + s * o);
2113
+ let [n, r, s] = sa[t];
2114
+ e[t] = la(n * i + r * a + s * o);
2115
2115
  }
2116
2116
  let [s, c, l] = e;
2117
2117
  for (let t = 0; t < 3; t += 1) {
2118
- let [n, r, i] = oa[t];
2119
- e[t] = Math.round(Zi(na(n * s + r * c + i * l)) * 255);
2118
+ let [n, r, i] = ca[t];
2119
+ e[t] = Math.round($i(ia(n * s + r * c + i * l)) * 255);
2120
2120
  }
2121
2121
  }
2122
2122
  function Q(e) {
2123
- let t = e * ia;
2124
- return Math.round(Zi(na(sa(t))) * 255);
2123
+ let t = e * oa;
2124
+ return Math.round($i(ia(la(t))) * 255);
2125
2125
  }
2126
- var la = 60, ua = "rgba(255,214,150,0.34)";
2127
- function da(e) {
2126
+ var da = 60, fa = "rgba(255,214,150,0.34)";
2127
+ function pa(e) {
2128
2128
  let t = Math.abs(Math.trunc(e)) % 2147483646 + 1;
2129
2129
  return () => (t = t * 16807 % 2147483647, (t - 1) / 2147483646);
2130
2130
  }
2131
- var fa = 1618033;
2132
- function pa({ state: e = "idle", size: t = 128, compact: n = !1, activity: r = 0, unread: i = !1, paused: a = !1, seed: o = fa, className: s, style: c }) {
2133
- let l = V(null), u = V(e), d = V(0), f = V(n), p = V(i), m = V(a), h = V(-Infinity), g = V(null);
2134
- return B(() => {
2131
+ var ma = 1618033;
2132
+ function ha({ state: e = "idle", size: t = 128, compact: n = !1, activity: r = 0, unread: i = !1, paused: a = !1, seed: o = ma, className: s, style: c }) {
2133
+ let l = U(null), u = U(e), d = U(0), f = U(n), p = U(i), m = U(a), h = U(-Infinity), g = U(null);
2134
+ return H(() => {
2135
2135
  u.current = e, d.current = typeof performance > "u" ? 0 : performance.now(), g.current?.();
2136
- }, [e]), B(() => {
2136
+ }, [e]), H(() => {
2137
2137
  f.current = n, g.current?.();
2138
- }, [n]), B(() => {
2138
+ }, [n]), H(() => {
2139
2139
  p.current = i, g.current?.();
2140
- }, [i]), B(() => {
2140
+ }, [i]), H(() => {
2141
2141
  m.current = a, g.current?.();
2142
- }, [a]), B(() => {
2142
+ }, [a]), H(() => {
2143
2143
  r && (h.current = performance.now(), g.current?.());
2144
- }, [r]), B(() => {
2144
+ }, [r]), H(() => {
2145
2145
  let r = l.current;
2146
2146
  if (!r) return;
2147
2147
  let i = r.getContext("2d");
2148
2148
  if (!i) return;
2149
2149
  let a = i, s = typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, c = Math.min(window.devicePixelRatio || 1, 2);
2150
2150
  r.width = Math.round(t * c), r.height = Math.round(t * c), a.scale(c, c);
2151
- let _ = t / 2, v = t / 2, y = da(o), ee = Array.from({ length: 34 }, () => ({
2151
+ let _ = t / 2, v = t / 2, y = pa(o), b = Array.from({ length: 34 }, () => ({
2152
2152
  x: (y() - .5) * 1.9,
2153
2153
  y: y() * 2.8 - .4,
2154
2154
  z: (y() - .5) * 1.9,
2155
2155
  speed: .05 + y() * .09
2156
- })), b = {
2157
- center: [...Qi[e].center],
2158
- rim: [...Qi[e].rim],
2159
- glow: Qi[e].glow
2160
- }, x = 0, S = la, C = 0, w = 0, T = performance.now(), te = 0, ne = .34, E = n ? 7.4 : 9, D = -Infinity, O = {
2156
+ })), x = {
2157
+ center: [...ea[e].center],
2158
+ rim: [...ea[e].rim],
2159
+ glow: ea[e].glow
2160
+ }, S = 0, C = da, w = 0, T = 0, ee = performance.now(), te = 0, E = .34, D = n ? 7.4 : 9, O = -Infinity, k = {
2161
2161
  x: 0,
2162
2162
  y: 0
2163
- }, k = {
2163
+ }, A = {
2164
2164
  x: 0,
2165
2165
  y: 0
2166
- }, A = (e) => {
2167
- O.x = e.clientX / window.innerWidth * 2 - 1, O.y = -(e.clientY / window.innerHeight * 2 - 1), D = performance.now(), S = la, x ||= requestAnimationFrame(F);
2168
- }, j = t * (n ? .27 : .24), M = (e, t, n, r) => {
2169
- let i = E / (E - n * r);
2170
- return [_ + e * r * i * j, v - t * r * i * j];
2166
+ }, j = (e) => {
2167
+ k.x = e.clientX / window.innerWidth * 2 - 1, k.y = -(e.clientY / window.innerHeight * 2 - 1), O = performance.now(), C = da, S ||= requestAnimationFrame(ne);
2168
+ }, M = t * (n ? .27 : .24), N = (e, t, n, r) => {
2169
+ let i = D / (D - n * r);
2170
+ return [_ + e * r * i * M, v - t * r * i * M];
2171
2171
  };
2172
- function re(e, t, n, r) {
2172
+ function P(e, t, n, r) {
2173
2173
  let i = a.createRadialGradient(e, t, 0, e, t, Math.max(n, .01));
2174
2174
  for (let [e, t] of r) i.addColorStop(e, t);
2175
2175
  return i;
2176
2176
  }
2177
- function ie(e, t, n, r, i, o) {
2177
+ function F(e, t, n, r, i, o) {
2178
2178
  if (i <= .002) return;
2179
2179
  a.save(), a.globalCompositeOperation = "lighter", a.strokeStyle = r, a.lineWidth = n, a.lineCap = "round", a.beginPath();
2180
2180
  let s = !1;
2181
2181
  for (let n = 0; n <= 96; n += 1) {
2182
- let r = n / 96 * Math.PI * 2, i = Math.cos(r) * t, c = Math.sin(r) * t, l = c * Math.cos(ne), u = c * Math.sin(ne), d = u >= 0 ? 1 : -1, f = !o || r >= o[0] && r <= o[1];
2182
+ let r = n / 96 * Math.PI * 2, i = Math.cos(r) * t, c = Math.sin(r) * t, l = c * Math.cos(E), u = c * Math.sin(E), d = u >= 0 ? 1 : -1, f = !o || r >= o[0] && r <= o[1];
2183
2183
  if (d !== e || !f) {
2184
2184
  s = !1;
2185
2185
  continue;
2186
2186
  }
2187
- let [p, m] = M(i, l, u, 1);
2187
+ let [p, m] = N(i, l, u, 1);
2188
2188
  s ? a.lineTo(p, m) : (a.moveTo(p, m), s = !0);
2189
2189
  }
2190
2190
  a.globalAlpha = e === -1 ? i * .32 : i, a.stroke(), a.restore();
2191
2191
  }
2192
- let N = new Float64Array(ta.points.length), P = [
2192
+ let I = new Float64Array(ra.points.length), L = [
2193
2193
  0,
2194
2194
  0,
2195
2195
  0
2196
2196
  ];
2197
- function F(e) {
2198
- x = 0;
2199
- let n = a, r = Math.min((e - T) / 1e3, .05);
2200
- T = e;
2201
- let i = u.current, o = Qi[i], c = f.current, l = m.current || s, g = l ? 0 : e / 1e3, A = l ? 0 : (e - d.current) / 1e3, ae = l ? Infinity : (e - h.current) / 1e3, oe = !l && e - D < 1200;
2202
- w = l ? 0 : Z(w, +!!oe, oe ? .05 : .02), l || (C += r * (.25 + w * .75));
2203
- let se = c ? 7.4 : 9, ce = !l && Math.abs(E - se) > .01;
2204
- E = l ? se : Z(E, se, .12), (i !== "idle" || ae < 2.2 || p.current || w > .004 || ce) && (S = la);
2205
- let le = l ? 1 : .06;
2206
- for (let e = 0; e < 3; e += 1) b.center[e] = Z(b.center[e], o.center[e], le), b.rim[e] = Z(b.rim[e], o.rim[e], le);
2207
- let ue = o.glow, de = 1;
2208
- ue += Math.sin(C * .9) * .05 * w;
2209
- let fe = ae < 1.8 ? Math.sin(na(ae / 1.8) * Math.PI) * .14 : 0;
2210
- if (ue += fe, i === "working" && (ue += Math.sin(g * 2.2) * .06), i === "success") {
2211
- let e = na(A / 1.4);
2212
- de = 1 + Math.sin((1 - (1 - e) ** 3) * Math.PI) * .06, A > 1.4 && (ue = Z(o.glow, Qi.idle.glow + .25, na((A - 1.4) / 2)));
2197
+ function ne(e) {
2198
+ S = 0;
2199
+ let n = a, r = Math.min((e - ee) / 1e3, .05);
2200
+ ee = e;
2201
+ let i = u.current, o = ea[i], c = f.current, l = m.current || s, g = l ? 0 : e / 1e3, j = l ? 0 : (e - d.current) / 1e3, re = l ? Infinity : (e - h.current) / 1e3, ie = !l && e - O < 1200;
2202
+ T = l ? 0 : Z(T, +!!ie, ie ? .05 : .02), l || (w += r * (.25 + T * .75));
2203
+ let ae = c ? 7.4 : 9, oe = !l && Math.abs(D - ae) > .01;
2204
+ D = l ? ae : Z(D, ae, .12), (i !== "idle" || re < 2.2 || p.current || T > .004 || oe) && (C = da);
2205
+ let se = l ? 1 : .06;
2206
+ for (let e = 0; e < 3; e += 1) x.center[e] = Z(x.center[e], o.center[e], se), x.rim[e] = Z(x.rim[e], o.rim[e], se);
2207
+ let R = o.glow, ce = 1;
2208
+ R += Math.sin(w * .9) * .05 * T;
2209
+ let le = re < 1.8 ? Math.sin(ia(re / 1.8) * Math.PI) * .14 : 0;
2210
+ if (R += le, i === "working" && (R += Math.sin(g * 2.2) * .06), i === "success") {
2211
+ let e = ia(j / 1.4);
2212
+ ce = 1 + Math.sin((1 - (1 - e) ** 3) * Math.PI) * .06, j > 1.4 && (R = Z(o.glow, ea.idle.glow + .25, ia((j - 1.4) / 2)));
2213
2213
  }
2214
- i === "error" && (de = .94), b.glow = Z(b.glow, ue, l ? 1 : .08);
2215
- let I = b.glow;
2216
- l || (te += r * (.06 + w * .1), ne = .34 + Math.sin(C * .6) * .12, k.x = Z(k.x, O.x, .02), k.y = Z(k.y, O.y, .02));
2217
- let pe = l ? 0 : Math.sin(C * .35) * .05 + k.x * .12, me = l ? 0 : -k.y * .08, L = de * (1 + fe * .08);
2218
- n.clearRect(0, 0, t, t), n.fillStyle = re(_, v, j * 1.95, [
2214
+ i === "error" && (ce = .94), x.glow = Z(x.glow, R, l ? 1 : .08);
2215
+ let z = x.glow;
2216
+ l || (te += r * (.06 + T * .1), E = .34 + Math.sin(w * .6) * .12, A.x = Z(A.x, k.x, .02), A.y = Z(A.y, k.y, .02));
2217
+ let ue = l ? 0 : Math.sin(w * .35) * .05 + A.x * .12, de = l ? 0 : -A.y * .08, B = ce * (1 + le * .08);
2218
+ n.clearRect(0, 0, t, t), n.fillStyle = P(_, v, M * 1.95, [
2219
2219
  [0, "rgba(9,11,15,0.5)"],
2220
2220
  [.52, "rgba(9,11,15,0.3)"],
2221
2221
  [.8, "rgba(9,11,15,0.08)"],
2222
2222
  [1, "rgba(9,11,15,0)"]
2223
2223
  ]), n.fillRect(0, 0, t, t), n.save(), n.globalCompositeOperation = "lighter";
2224
- let he = j * (1.5 + I * .5) * L, ge = .06 + I * .24;
2225
- n.fillStyle = re(_, v, he, [
2226
- [0, `rgba(${Q(b.center[0])},${Q(b.center[1])},${Q(b.center[2])},${ge * .5})`],
2227
- [.34, `rgba(${Q(b.rim[0] * 1.4)},${Q(b.rim[1] * 1.4)},${Q(b.rim[2] * 1.4)},${ge * .2})`],
2224
+ let fe = M * (1.5 + z * .5) * B, pe = .06 + z * .24;
2225
+ n.fillStyle = P(_, v, fe, [
2226
+ [0, `rgba(${Q(x.center[0])},${Q(x.center[1])},${Q(x.center[2])},${pe * .5})`],
2227
+ [.34, `rgba(${Q(x.rim[0] * 1.4)},${Q(x.rim[1] * 1.4)},${Q(x.rim[2] * 1.4)},${pe * .2})`],
2228
2228
  [1, "rgba(160,50,10,0)"]
2229
2229
  ]), n.fillRect(0, 0, t, t), n.restore();
2230
- let _e = i === "working" ? .55 : p.current ? .26 + Math.sin(g * .8) * .07 : 0, ve = g * 1.6 % (Math.PI * 2), ye = 1.5 * L, be = Math.max(1, t * .007), xe = Math.max(1, t * .011), Se = (e) => {
2231
- ie(e, ye, be, "rgba(255,224,160,1)", _e * .45), i === "working" && ie(e, ye, xe, "rgba(255,236,190,1)", .75, [ve, ve + 1.1]);
2230
+ let me = i === "working" ? .55 : p.current ? .26 + Math.sin(g * .8) * .07 : 0, he = g * 1.6 % (Math.PI * 2), ge = 1.5 * B, _e = Math.max(1, t * .007), ve = Math.max(1, t * .011), ye = (e) => {
2231
+ F(e, ge, _e, "rgba(255,224,160,1)", me * .45), i === "working" && F(e, ge, ve, "rgba(255,236,190,1)", .75, [he, he + 1.1]);
2232
2232
  };
2233
- Se(-1), n.save(), n.globalCompositeOperation = "lighter";
2234
- let Ce = l ? 0 : i === "success" || i === "attention" ? 1 : Math.max(w, .12), we = .08 + I * .4;
2235
- n.fillStyle = `rgba(${Q(b.center[0])},${Q(b.center[1])},${Q(b.center[2])},${we})`;
2236
- for (let e of ee) {
2237
- e.y += e.speed * r * (.4 + I) * Ce, e.y > 2.4 && (e.y = -.4, e.x = (y() - .5) * 1.9, e.z = (y() - .5) * 1.9);
2238
- let [i, a] = M(e.x, e.y, e.z, 1), o = Math.max(t * .005, 1) * (e.z > 0 ? 1 : .7);
2233
+ ye(-1), n.save(), n.globalCompositeOperation = "lighter";
2234
+ let be = l ? 0 : i === "success" || i === "attention" ? 1 : Math.max(T, .12), xe = .08 + z * .4;
2235
+ n.fillStyle = `rgba(${Q(x.center[0])},${Q(x.center[1])},${Q(x.center[2])},${xe})`;
2236
+ for (let e of b) {
2237
+ e.y += e.speed * r * (.4 + z) * be, e.y > 2.4 && (e.y = -.4, e.x = (y() - .5) * 1.9, e.z = (y() - .5) * 1.9);
2238
+ let [i, a] = N(e.x, e.y, e.z, 1), o = Math.max(t * .005, 1) * (e.z > 0 ? 1 : .7);
2239
2239
  n.beginPath(), n.arc(i, a, o, 0, Math.PI * 2), n.fill();
2240
2240
  }
2241
2241
  n.restore();
2242
- let Te = Math.cos(te + pe), Ee = Math.sin(te + pe), R = Math.cos(.32 + me), De = Math.sin(.32 + me), { points: Oe, grain: ke, count: Ae } = ta;
2243
- for (let e = 0; e < Oe.length; e += 3) {
2244
- let t = Oe[e], n = Oe[e + 1], r = Oe[e + 2], i = t * Te + r * Ee, a = -t * Ee + r * Te, o = n * R - a * De, s = n * De + a * R;
2245
- N[e] = i, N[e + 1] = o, N[e + 2] = s;
2242
+ let Se = Math.cos(te + ue), Ce = Math.sin(te + ue), we = Math.cos(.32 + de), Te = Math.sin(.32 + de), { points: Ee, grain: De, count: Oe } = ra;
2243
+ for (let e = 0; e < Ee.length; e += 3) {
2244
+ let t = Ee[e], n = Ee[e + 1], r = Ee[e + 2], i = t * Se + r * Ce, a = -t * Ce + r * Se, o = n * we - a * Te, s = n * Te + a * we;
2245
+ I[e] = i, I[e + 1] = o, I[e + 2] = s;
2246
2246
  }
2247
- for (let e = 0; e < Ae; e += 1) {
2248
- let t = e * 9, r = t + 3, i = t + 6, a = N[r] - N[t], o = N[r + 1] - N[t + 1], s = N[r + 2] - N[t + 2], c = N[i] - N[t], l = N[i + 1] - N[t + 1], u = N[i + 2] - N[t + 2], d = o * u - s * l, f = s * c - a * u, p = a * l - o * c;
2247
+ for (let e = 0; e < Oe; e += 1) {
2248
+ let t = e * 9, r = t + 3, i = t + 6, a = I[r] - I[t], o = I[r + 1] - I[t + 1], s = I[r + 2] - I[t + 2], c = I[i] - I[t], l = I[i + 1] - I[t + 1], u = I[i + 2] - I[t + 2], d = o * u - s * l, f = s * c - a * u, p = a * l - o * c;
2249
2249
  if (p <= 0) continue;
2250
- let m = 1 - p / Math.hypot(d, f, p), h = ke[e], g = .9 + .14 * h + .06 * Math.sin(C * .8 + h * 6.28), _ = ra(.08, .82, m), v = ra(.66, 0, m) * I * .62, y = 1 - .18 * ra(.82, 1, m);
2251
- ca(P, (Z(b.center[0], b.rim[0], _) * g + v) * y, (Z(b.center[1], b.rim[1], _) * g + v * .72) * y, (Z(b.center[2], b.rim[2], _) * g + v * .3) * y);
2252
- let ee = `rgb(${P[0]},${P[1]},${P[2]})`, [x, S] = M(N[t], N[t + 1], N[t + 2], L), [w, T] = M(N[r], N[r + 1], N[r + 2], L), [te, ne] = M(N[i], N[i + 1], N[i + 2], L);
2253
- n.beginPath(), n.moveTo(x, S), n.lineTo(w, T), n.lineTo(te, ne), n.closePath(), n.fillStyle = ee, n.fill(), n.strokeStyle = ua, n.lineWidth = 1, n.stroke();
2250
+ let m = 1 - p / Math.hypot(d, f, p), h = De[e], g = .9 + .14 * h + .06 * Math.sin(w * .8 + h * 6.28), _ = aa(.08, .82, m), v = aa(.66, 0, m) * z * .62, y = 1 - .18 * aa(.82, 1, m);
2251
+ ua(L, (Z(x.center[0], x.rim[0], _) * g + v) * y, (Z(x.center[1], x.rim[1], _) * g + v * .72) * y, (Z(x.center[2], x.rim[2], _) * g + v * .3) * y);
2252
+ let b = `rgb(${L[0]},${L[1]},${L[2]})`, [S, C] = N(I[t], I[t + 1], I[t + 2], B), [T, ee] = N(I[r], I[r + 1], I[r + 2], B), [te, E] = N(I[i], I[i + 1], I[i + 2], B);
2253
+ n.beginPath(), n.moveTo(S, C), n.lineTo(T, ee), n.lineTo(te, E), n.closePath(), n.fillStyle = b, n.fill(), n.strokeStyle = fa, n.lineWidth = 1, n.stroke();
2254
2254
  }
2255
- Se(1), n.save(), n.globalCompositeOperation = "lighter";
2256
- let je = j * .34 * L;
2257
- if (n.fillStyle = re(_ - j * .38 * L, v - j * .44 * L, je, [
2258
- [0, `rgba(255,246,228,${.05 + I * .09})`],
2259
- [.5, `rgba(255,240,214,${.015 + I * .03})`],
2255
+ ye(1), n.save(), n.globalCompositeOperation = "lighter";
2256
+ let ke = M * .34 * B;
2257
+ if (n.fillStyle = P(_ - M * .38 * B, v - M * .44 * B, ke, [
2258
+ [0, `rgba(255,246,228,${.05 + z * .09})`],
2259
+ [.5, `rgba(255,240,214,${.015 + z * .03})`],
2260
2260
  [1, "rgba(255,240,214,0)"]
2261
- ]), n.fillRect(0, 0, t, t), i === "success" && A < 2.6) {
2262
- let e = A / 2.6, n = 1.05 + e * 1.5, r = Math.max(1, t * .009), i = .65 * (1 - e);
2263
- ie(-1, n, r, "rgba(255,241,192,1)", i), ie(1, n, r, "rgba(255,241,192,1)", i);
2261
+ ]), n.fillRect(0, 0, t, t), i === "success" && j < 2.6) {
2262
+ let e = j / 2.6, n = 1.05 + e * 1.5, r = Math.max(1, t * .009), i = .65 * (1 - e);
2263
+ F(-1, n, r, "rgba(255,241,192,1)", i), F(1, n, r, "rgba(255,241,192,1)", i);
2264
2264
  }
2265
2265
  if (n.restore(), i === "attention") {
2266
- let e = na(A / 2.4), r = Z(-1.9, .25, 1 - (1 - e) ** 2), i = e < 1 ? .7 : .7 * Math.max(0, 1 - (A - 2.4) / 2.5);
2266
+ let e = ia(j / 2.4), r = Z(-1.9, .25, 1 - (1 - e) ** 2), i = e < 1 ? .7 : .7 * Math.max(0, 1 - (j - 2.4) / 2.5);
2267
2267
  if (i > .002) {
2268
2268
  n.save(), n.globalCompositeOperation = "lighter", n.globalAlpha = i, n.strokeStyle = "rgba(255,230,160,1)", n.lineWidth = Math.max(1, t * .009);
2269
- let [, e] = M(0, r, 0, 1);
2270
- n.beginPath(), n.ellipse(_, e, j * 1.6, j * .42, 0, 0, Math.PI * 2), n.stroke(), n.restore();
2269
+ let [, e] = N(0, r, 0, 1);
2270
+ n.beginPath(), n.ellipse(_, e, M * 1.6, M * .42, 0, 0, Math.PI * 2), n.stroke(), n.restore();
2271
2271
  }
2272
2272
  }
2273
2273
  if (!c) {
2274
- let e = v + j * 1.5;
2275
- n.save(), n.globalCompositeOperation = "lighter", n.fillStyle = re(_, e, j * 1.5, [[0, `rgba(220,140,60,${.1 + I * .2})`], [1, "rgba(220,140,60,0)"]]), n.fillRect(0, 0, t, t), n.restore();
2274
+ let e = v + M * 1.5;
2275
+ n.save(), n.globalCompositeOperation = "lighter", n.fillStyle = P(_, e, M * 1.5, [[0, `rgba(220,140,60,${.1 + z * .2})`], [1, "rgba(220,140,60,0)"]]), n.fillRect(0, 0, t, t), n.restore();
2276
2276
  }
2277
- l || (--S, S > 0 && (x = requestAnimationFrame(F)));
2277
+ l || (--C, C > 0 && (S = requestAnimationFrame(ne)));
2278
2278
  }
2279
2279
  return g.current = () => {
2280
- S = la, T = performance.now(), x ||= requestAnimationFrame(F);
2281
- }, s || window.addEventListener("mousemove", A, { passive: !0 }), F(performance.now()), () => {
2282
- g.current = null, x && cancelAnimationFrame(x), window.removeEventListener("mousemove", A);
2280
+ C = da, ee = performance.now(), S ||= requestAnimationFrame(ne);
2281
+ }, s || window.addEventListener("mousemove", j, { passive: !0 }), ne(performance.now()), () => {
2282
+ g.current = null, S && cancelAnimationFrame(S), window.removeEventListener("mousemove", j);
2283
2283
  };
2284
- }, [t, o]), /* @__PURE__ */ H("canvas", {
2284
+ }, [t, o]), /* @__PURE__ */ W("canvas", {
2285
2285
  ref: l,
2286
2286
  "aria-hidden": "true",
2287
2287
  "data-state": e,
@@ -2296,15 +2296,15 @@ function pa({ state: e = "idle", size: t = 128, compact: n = !1, activity: r = 0
2296
2296
  }
2297
2297
  //#endregion
2298
2298
  //#region src/components/ui/viglet-assistant.tsx
2299
- var ma = {
2299
+ var ga = {
2300
2300
  sm: 44,
2301
2301
  md: 88,
2302
2302
  lg: 132
2303
- }, ha = 76;
2304
- function ga(e) {
2305
- return typeof e == "number" ? Math.max(24, Math.round(e)) : ma[e];
2303
+ }, _a = 76;
2304
+ function va(e) {
2305
+ return typeof e == "number" ? Math.max(24, Math.round(e)) : ga[e];
2306
2306
  }
2307
- function _a(e) {
2307
+ function ya(e) {
2308
2308
  let t = Math.round(e * .88 + 8);
2309
2309
  return {
2310
2310
  captionRight: t,
@@ -2313,31 +2313,31 @@ function _a(e) {
2313
2313
  badgeInset: Math.round(e * .2) - 8
2314
2314
  };
2315
2315
  }
2316
- var va = {
2316
+ var ba = {
2317
2317
  idle: "assistant.idle",
2318
2318
  working: "assistant.working",
2319
2319
  success: "assistant.success",
2320
2320
  error: "assistant.error",
2321
2321
  attention: "assistant.attention"
2322
- }, ya = {
2322
+ }, xa = {
2323
2323
  idle: "text-muted-foreground",
2324
2324
  working: "text-amber-700 dark:text-amber-400",
2325
2325
  success: "text-emerald-700 dark:text-emerald-400",
2326
2326
  error: "text-destructive",
2327
2327
  attention: "text-amber-800 dark:text-amber-300"
2328
- }, ba = 3;
2329
- function xa(e) {
2328
+ }, Sa = 3;
2329
+ function Ca(e) {
2330
2330
  return e.role === "report";
2331
2331
  }
2332
- function Sa() {
2332
+ function wa() {
2333
2333
  return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
2334
2334
  }
2335
- function Ca({ text: e, still: t = !1, className: n, style: r }) {
2336
- let [i, a] = Ge(0);
2337
- return B(() => {
2335
+ function Ta({ text: e, still: t = !1, className: n, style: r }) {
2336
+ let [i, a] = We(0);
2337
+ return H(() => {
2338
2338
  let n = e.length;
2339
2339
  if (n === 0) return;
2340
- if (t || Sa()) {
2340
+ if (t || wa()) {
2341
2341
  let e = setTimeout(() => a(n), 0);
2342
2342
  return () => clearTimeout(e);
2343
2343
  }
@@ -2345,185 +2345,212 @@ function Ca({ text: e, still: t = !1, className: n, style: r }) {
2345
2345
  a((e) => e >= n ? (clearInterval(i), e) : e + 1);
2346
2346
  }, r);
2347
2347
  return () => clearInterval(i);
2348
- }, [e, t]), /* @__PURE__ */ H("span", {
2348
+ }, [e, t]), /* @__PURE__ */ W("span", {
2349
2349
  className: n,
2350
2350
  style: r,
2351
- children: /* @__PURE__ */ U("span", {
2351
+ children: /* @__PURE__ */ G("span", {
2352
2352
  "aria-hidden": "true",
2353
- children: [e.slice(0, i), i < e.length && /* @__PURE__ */ H("span", { className: "ml-px inline-block h-[0.95em] w-px translate-y-[0.15em] bg-current align-baseline motion-safe:animate-pulse" })]
2353
+ children: [e.slice(0, i), i < e.length && /* @__PURE__ */ W("span", { className: "ml-px inline-block h-[0.95em] w-px translate-y-[0.15em] bg-current align-baseline motion-safe:animate-pulse" })]
2354
2354
  })
2355
2355
  });
2356
2356
  }
2357
- function wa({ at: e, locale: t }) {
2357
+ function Ea({ at: e, locale: t }) {
2358
2358
  let n = new Date(e);
2359
2359
  if (Number.isNaN(n.getTime())) return null;
2360
2360
  let r = n.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), i = new Intl.DateTimeFormat(t, r ? { timeStyle: "short" } : {
2361
2361
  dateStyle: "short",
2362
2362
  timeStyle: "short"
2363
2363
  }).format(n);
2364
- return /* @__PURE__ */ H("time", {
2364
+ return /* @__PURE__ */ W("time", {
2365
2365
  dateTime: n.toISOString(),
2366
2366
  className: "text-muted-foreground",
2367
2367
  children: i
2368
2368
  });
2369
2369
  }
2370
- function Ta({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open: a, defaultOpen: o = !1, onOpenChange: c, unread: l, onRead: u, onDismiss: d, activity: f = 0, inline: p = !1, paused: m = !1, size: h = "sm", className: g }) {
2371
- let _ = ga(h), v = _a(_), { t: y, i18n: ee } = W(), b = ye(), [x, S] = Ge(o), [C, w] = Ge(""), T = V(null), te = n ?? [], ne = te.filter(xa), E = ne.filter((e) => !e.read), D = E[E.length - 1], O = a ?? x, k = typeof i == "function", A = e ?? D?.tone ?? "idle", j = t === void 0 ? D?.text ?? null : t, M = typeof l == "number" ? l : E.length, re = l === !0 || M > 0, [ie, N] = Ge({
2372
- source: j,
2373
- text: O ? "" : j ?? ""
2370
+ function Da({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open: a, defaultOpen: o = !1, onOpenChange: c, unread: l, onRead: u, onDismiss: d, onOpenSettings: f, activity: p = 0, inline: m = !1, paused: h = !1, size: g = "sm", className: _ }) {
2371
+ let v = Ce(), y = B(), b = v ? y : "corner", x = va(g), S = b === "corner" ? x : Math.min(x, ga.sm), C = ya(S), { t: w, i18n: T } = K(), [ee, te] = We(o), [E, D] = We(""), O = U(null), k = n ?? [], A = k.filter(Ca), j = A.filter((e) => !e.read), M = j[j.length - 1], N = a ?? ee, P = typeof i == "function", F = e ?? M?.tone ?? "idle", I = t === void 0 ? M?.text ?? null : t, L = typeof l == "number" ? l : j.length, ne = l === !0 || L > 0, [re, ie] = We({
2372
+ source: I,
2373
+ text: N ? "" : I ?? ""
2374
2374
  });
2375
- ie.source !== j && N({
2376
- source: j,
2377
- text: O ? "" : j ?? ""
2375
+ re.source !== I && ie({
2376
+ source: I,
2377
+ text: N ? "" : I ?? ""
2378
2378
  });
2379
- let P = (e) => {
2380
- if (e !== O) for (let e of E) u?.(e.id);
2381
- a === void 0 && S(e), c?.(e);
2379
+ let ae = (e) => {
2380
+ if (e !== N) for (let e of j) u?.(e.id);
2381
+ a === void 0 && te(e), c?.(e);
2382
2382
  };
2383
- B(() => {
2384
- let e = T.current;
2383
+ H(() => {
2384
+ let e = O.current;
2385
2385
  e && (e.scrollTop = e.scrollHeight);
2386
2386
  }, [n, r]);
2387
- let F = () => {
2388
- let e = C.trim();
2389
- !e || r || !i || (i(e), w(""));
2390
- }, ae = O ? y("assistant.collapse") : [y("assistant.open"), M > 0 ? y("assistant.unreadCount", { count: M }) : null].filter(Boolean).join(", ");
2391
- return /* @__PURE__ */ U("div", {
2387
+ let oe = () => {
2388
+ let e = E.trim();
2389
+ !e || r || !i || (i(e), D(""));
2390
+ }, se = N ? w("assistant.collapse") : [w("assistant.open"), L > 0 ? w("assistant.unreadCount", { count: L }) : null].filter(Boolean).join(", "), R = b === "header" && N, ce = b === "rail" ? {
2391
+ left: C.captionRight,
2392
+ bottom: C.captionBottom,
2393
+ maxWidth: C.captionMaxWidth
2394
+ } : b === "header" ? {
2395
+ right: 0,
2396
+ top: S + 8,
2397
+ maxWidth: C.captionMaxWidth
2398
+ } : {
2399
+ right: C.captionRight,
2400
+ bottom: C.captionBottom,
2401
+ maxWidth: C.captionMaxWidth
2402
+ };
2403
+ return /* @__PURE__ */ G(Ge, { children: [R && /* @__PURE__ */ W("span", {
2404
+ "aria-hidden": "true",
2405
+ className: "block flex-none",
2406
+ style: {
2407
+ width: S,
2408
+ height: S
2409
+ }
2410
+ }), /* @__PURE__ */ G("div", {
2411
+ "data-dock-edge": v ? b : void 0,
2392
2412
  className: [
2393
- p || b ? "relative" : "fixed bottom-5 right-5 z-50",
2394
- b ? "pointer-events-auto" : "",
2413
+ R ? "absolute right-0 top-0 z-50" : m || v ? "relative" : "fixed bottom-5 right-5 z-50",
2414
+ v ? "pointer-events-auto" : "",
2395
2415
  "flex flex-col",
2396
- O ? "w-[min(22.5rem,calc(100vw-2.5rem))] rounded-2xl border border-border bg-popover p-4 text-popover-foreground shadow-2xl" : "w-[var(--vg-assistant-orb)] items-end",
2397
- g ?? ""
2416
+ N ? "w-[min(22.5rem,calc(100vw-2.5rem))] rounded-2xl border border-border bg-popover p-4 text-popover-foreground shadow-2xl" : `w-[var(--vg-assistant-orb)] ${b === "rail" ? "items-start" : "items-end"}`,
2417
+ _ ?? ""
2398
2418
  ].join(" "),
2399
- style: { "--vg-assistant-orb": `${_}px` },
2419
+ style: { "--vg-assistant-orb": `${S}px` },
2400
2420
  onKeyDown: (e) => {
2401
- e.key === "Escape" && O && P(!1);
2421
+ e.key === "Escape" && N && ae(!1);
2402
2422
  },
2403
2423
  children: [
2404
- /* @__PURE__ */ H("span", {
2424
+ /* @__PURE__ */ W("span", {
2405
2425
  role: "status",
2406
2426
  "aria-live": "polite",
2407
2427
  className: "sr-only",
2408
- children: ie.text
2428
+ children: re.text
2409
2429
  }),
2410
- !O && j && /* @__PURE__ */ H(Ca, {
2411
- text: j,
2412
- still: m,
2413
- style: {
2414
- right: v.captionRight,
2415
- bottom: v.captionBottom,
2416
- maxWidth: v.captionMaxWidth
2417
- },
2418
- className: "pointer-events-none absolute w-max text-right text-sm font-semibold leading-snug text-foreground drop-shadow-sm"
2419
- }, j),
2420
- /* @__PURE__ */ U("div", {
2430
+ !N && I && /* @__PURE__ */ W(Ta, {
2431
+ text: I,
2432
+ still: h,
2433
+ style: ce,
2434
+ className: `pointer-events-none absolute w-max ${b === "rail" ? "text-left" : "text-right"} text-sm font-semibold leading-snug text-foreground drop-shadow-sm`
2435
+ }, I),
2436
+ /* @__PURE__ */ G("div", {
2421
2437
  className: "flex flex-none items-center gap-3",
2422
2438
  children: [
2423
- /* @__PURE__ */ U("button", {
2439
+ /* @__PURE__ */ G("button", {
2424
2440
  type: "button",
2425
- "aria-label": ae,
2426
- "aria-expanded": O,
2427
- onClick: () => P(!O),
2441
+ "aria-label": se,
2442
+ "aria-expanded": N,
2443
+ onClick: () => ae(!N),
2428
2444
  className: "relative flex-none rounded-full focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",
2429
- children: [/* @__PURE__ */ H(pa, {
2430
- state: A,
2431
- compact: !O,
2432
- unread: re,
2433
- activity: f,
2434
- paused: m,
2435
- size: O ? ha : _
2436
- }), !O && M > 0 && /* @__PURE__ */ H("span", {
2445
+ children: [/* @__PURE__ */ W(ha, {
2446
+ state: F,
2447
+ compact: !N,
2448
+ unread: ne,
2449
+ activity: p,
2450
+ paused: h,
2451
+ size: N ? _a : S
2452
+ }), !N && L > 0 && /* @__PURE__ */ W("span", {
2437
2453
  "aria-hidden": "true",
2438
2454
  style: {
2439
- right: v.badgeInset,
2440
- top: v.badgeInset
2455
+ right: C.badgeInset,
2456
+ top: C.badgeInset
2441
2457
  },
2442
2458
  className: "absolute grid h-5 min-w-5 place-items-center rounded-full bg-primary px-1 text-[0.6875rem] font-semibold leading-none text-primary-foreground",
2443
- children: M
2459
+ children: L
2444
2460
  })]
2445
2461
  }),
2446
- O && /* @__PURE__ */ U("div", {
2462
+ N && /* @__PURE__ */ G("div", {
2447
2463
  className: "flex min-w-0 flex-1 flex-col gap-0.5",
2448
2464
  children: [
2449
- /* @__PURE__ */ H("span", {
2465
+ /* @__PURE__ */ W("span", {
2450
2466
  className: "text-xs text-muted-foreground",
2451
- children: y("assistant.state")
2467
+ children: w("assistant.state")
2452
2468
  }),
2453
- /* @__PURE__ */ H("span", {
2454
- className: `text-sm font-semibold ${ya[A]}`,
2455
- children: y(va[A])
2469
+ /* @__PURE__ */ W("span", {
2470
+ className: `text-sm font-semibold ${xa[F]}`,
2471
+ children: w(ba[F])
2456
2472
  }),
2457
- j && /* @__PURE__ */ H(Ca, {
2458
- text: j,
2459
- still: m,
2473
+ I && /* @__PURE__ */ W(Ta, {
2474
+ text: I,
2475
+ still: h,
2460
2476
  className: "text-xs leading-snug text-muted-foreground"
2461
- }, j)
2477
+ }, I)
2462
2478
  ]
2463
2479
  }),
2464
- O && /* @__PURE__ */ H(R, {
2480
+ N && f && /* @__PURE__ */ W(z, {
2481
+ variant: "ghost",
2482
+ size: "icon",
2483
+ className: "size-8 flex-none self-start",
2484
+ "aria-label": w("assistant.settings"),
2485
+ onClick: f,
2486
+ children: /* @__PURE__ */ W(lt, {
2487
+ "aria-hidden": "true",
2488
+ size: 16
2489
+ })
2490
+ }),
2491
+ N && /* @__PURE__ */ W(z, {
2465
2492
  variant: "ghost",
2466
2493
  size: "sm",
2467
2494
  className: "flex-none self-start",
2468
- onClick: () => P(!1),
2469
- children: y("assistant.collapseAction")
2495
+ onClick: () => ae(!1),
2496
+ children: w("assistant.collapseAction")
2470
2497
  })
2471
2498
  ]
2472
2499
  }),
2473
- O && (k || ne.length > 0) && /* @__PURE__ */ U("div", {
2474
- ref: T,
2500
+ N && (P || A.length > 0) && /* @__PURE__ */ G("div", {
2501
+ ref: O,
2475
2502
  role: "log",
2476
- "aria-label": y("assistant.transcript"),
2503
+ "aria-label": w("assistant.transcript"),
2477
2504
  "aria-busy": r,
2478
2505
  className: "mt-3 flex max-h-96 min-h-32 flex-1 flex-col gap-2.5 overflow-y-auto pr-1",
2479
2506
  children: [
2480
- te.length === 0 && !r && /* @__PURE__ */ H("p", {
2507
+ k.length === 0 && !r && /* @__PURE__ */ W("p", {
2481
2508
  className: "m-auto max-w-52 text-center text-xs leading-relaxed text-muted-foreground",
2482
- children: y("assistant.empty")
2509
+ children: w("assistant.empty")
2483
2510
  }),
2484
- te.map((e, t) => xa(e) ? /* @__PURE__ */ U("div", {
2511
+ k.map((e, t) => Ca(e) ? /* @__PURE__ */ G("div", {
2485
2512
  "data-kind": "report",
2486
2513
  className: `w-full rounded-lg border px-3 py-2 text-sm ${e.read ? "border-border/60" : "border-border bg-muted/50"}`,
2487
2514
  children: [
2488
- /* @__PURE__ */ U("div", {
2515
+ /* @__PURE__ */ G("div", {
2489
2516
  className: "flex items-center gap-2 text-xs",
2490
2517
  children: [
2491
- /* @__PURE__ */ H("span", {
2518
+ /* @__PURE__ */ W("span", {
2492
2519
  "aria-hidden": "true",
2493
- className: `size-2 flex-none rounded-full bg-current ${ya[e.tone]}`
2520
+ className: `size-2 flex-none rounded-full bg-current ${xa[e.tone]}`
2494
2521
  }),
2495
- /* @__PURE__ */ H("span", {
2522
+ /* @__PURE__ */ W("span", {
2496
2523
  className: "font-semibold",
2497
- children: y(va[e.tone])
2524
+ children: w(ba[e.tone])
2498
2525
  }),
2499
- /* @__PURE__ */ H(wa, {
2526
+ /* @__PURE__ */ W(Ea, {
2500
2527
  at: e.at,
2501
- locale: ee?.resolvedLanguage
2528
+ locale: T?.resolvedLanguage
2502
2529
  }),
2503
- !e.read && /* @__PURE__ */ H("span", {
2530
+ !e.read && /* @__PURE__ */ W("span", {
2504
2531
  className: "rounded-full border border-border px-1.5 leading-4",
2505
- children: y("assistant.new")
2532
+ children: w("assistant.new")
2506
2533
  }),
2507
- d && /* @__PURE__ */ H(R, {
2534
+ d && /* @__PURE__ */ W(z, {
2508
2535
  variant: "ghost",
2509
2536
  size: "icon",
2510
2537
  className: "ml-auto size-6",
2511
- "aria-label": y("assistant.dismiss"),
2538
+ "aria-label": w("assistant.dismiss"),
2512
2539
  onClick: () => d(e.id),
2513
- children: /* @__PURE__ */ H(dt, {
2540
+ children: /* @__PURE__ */ W(ft, {
2514
2541
  "aria-hidden": "true",
2515
2542
  size: 14
2516
2543
  })
2517
2544
  })
2518
2545
  ]
2519
2546
  }),
2520
- /* @__PURE__ */ H("p", {
2547
+ /* @__PURE__ */ W("p", {
2521
2548
  className: "m-0 mt-1 whitespace-pre-wrap leading-snug",
2522
2549
  children: e.text
2523
2550
  }),
2524
- e.actions && e.actions.length > 0 && /* @__PURE__ */ H("div", {
2551
+ e.actions && e.actions.length > 0 && /* @__PURE__ */ W("div", {
2525
2552
  className: "mt-2 flex flex-wrap gap-2",
2526
- children: e.actions.slice(0, ba).map((e) => /* @__PURE__ */ H(R, {
2553
+ children: e.actions.slice(0, Sa).map((e) => /* @__PURE__ */ W(z, {
2527
2554
  variant: "outline",
2528
2555
  size: "sm",
2529
2556
  onClick: e.onSelect,
@@ -2531,13 +2558,13 @@ function Ta({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open:
2531
2558
  }, e.label))
2532
2559
  })
2533
2560
  ]
2534
- }, e.id) : /* @__PURE__ */ U("div", {
2561
+ }, e.id) : /* @__PURE__ */ G("div", {
2535
2562
  "data-kind": e.role,
2536
2563
  className: e.role === "user" ? "max-w-[92%] self-end rounded-xl rounded-br-sm bg-accent px-3 py-2 text-sm text-accent-foreground" : "max-w-[92%] self-start rounded-xl rounded-bl-sm border border-border px-3 py-2 text-sm",
2537
- children: [/* @__PURE__ */ H("p", {
2564
+ children: [/* @__PURE__ */ W("p", {
2538
2565
  className: "m-0 whitespace-pre-wrap leading-snug",
2539
2566
  children: e.text
2540
- }), e.action && /* @__PURE__ */ H(R, {
2567
+ }), e.action && /* @__PURE__ */ W(z, {
2541
2568
  variant: "link",
2542
2569
  size: "sm",
2543
2570
  className: "mt-1 h-auto whitespace-normal p-0 text-left",
@@ -2545,44 +2572,44 @@ function Ta({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open:
2545
2572
  children: e.action.label
2546
2573
  })]
2547
2574
  }, e.id ?? t)),
2548
- r && /* @__PURE__ */ H("p", {
2575
+ r && /* @__PURE__ */ W("p", {
2549
2576
  className: "m-0 self-start px-3 py-2 text-sm text-muted-foreground",
2550
- children: y("assistant.thinking")
2577
+ children: w("assistant.thinking")
2551
2578
  })
2552
2579
  ]
2553
2580
  }),
2554
- O && k && /* @__PURE__ */ U("div", {
2581
+ N && P && /* @__PURE__ */ G("div", {
2555
2582
  className: "mt-3 flex flex-none gap-2",
2556
- children: [/* @__PURE__ */ H(s, {
2557
- value: C,
2583
+ children: [/* @__PURE__ */ W(s, {
2584
+ value: E,
2558
2585
  disabled: r,
2559
- placeholder: y("assistant.placeholder"),
2560
- "aria-label": y("assistant.placeholder"),
2561
- onChange: (e) => w(e.target.value),
2586
+ placeholder: w("assistant.placeholder"),
2587
+ "aria-label": w("assistant.placeholder"),
2588
+ onChange: (e) => D(e.target.value),
2562
2589
  onKeyDown: (e) => {
2563
- e.key === "Enter" && (e.preventDefault(), F());
2590
+ e.key === "Enter" && (e.preventDefault(), oe());
2564
2591
  }
2565
- }), /* @__PURE__ */ H(R, {
2592
+ }), /* @__PURE__ */ W(z, {
2566
2593
  variant: "outline",
2567
- disabled: r || C.trim().length === 0,
2568
- onClick: F,
2569
- children: y("assistant.send")
2594
+ disabled: r || E.trim().length === 0,
2595
+ onClick: oe,
2596
+ children: w("assistant.send")
2570
2597
  })]
2571
2598
  })
2572
2599
  ]
2573
- });
2600
+ })] });
2574
2601
  }
2575
2602
  //#endregion
2576
2603
  //#region src/components/ui/user-menu.tsx
2577
- function Ea({ user: e, onAccount: t, onSignOut: n, extraItems: i, className: a, align: o = "end" }) {
2578
- let { t: s } = W(), c = `${e.firstName ?? ""} ${e.lastName ?? ""}`.trim() || e.username || "";
2579
- return /* @__PURE__ */ U(be, { children: [/* @__PURE__ */ H(O, {
2604
+ function Oa({ user: e, onAccount: t, onSignOut: n, extraItems: i, className: a, align: o = "end" }) {
2605
+ let { t: s } = K(), c = `${e.firstName ?? ""} ${e.lastName ?? ""}`.trim() || e.username || "";
2606
+ return /* @__PURE__ */ G(I, { children: [/* @__PURE__ */ W(Te, {
2580
2607
  asChild: !0,
2581
- children: /* @__PURE__ */ H("button", {
2608
+ children: /* @__PURE__ */ W("button", {
2582
2609
  type: "button",
2583
2610
  title: c || e.username,
2584
2611
  className: r("cursor-pointer rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring", a),
2585
- children: /* @__PURE__ */ H(pe, {
2612
+ children: /* @__PURE__ */ W(Ee, {
2586
2613
  givenName: e.firstName,
2587
2614
  familyName: e.lastName,
2588
2615
  name: c || e.username,
@@ -2591,52 +2618,52 @@ function Ea({ user: e, onAccount: t, onSignOut: n, extraItems: i, className: a,
2591
2618
  className: "hover:ring-2 hover:ring-border transition-all"
2592
2619
  })
2593
2620
  })
2594
- }), /* @__PURE__ */ U(N, {
2621
+ }), /* @__PURE__ */ G(O, {
2595
2622
  className: "min-w-56 rounded-lg",
2596
2623
  align: o,
2597
2624
  sideOffset: 8,
2598
2625
  children: [
2599
- /* @__PURE__ */ H(A, {
2626
+ /* @__PURE__ */ W(ie, {
2600
2627
  className: "p-0 font-normal",
2601
- children: /* @__PURE__ */ U("div", {
2628
+ children: /* @__PURE__ */ G("div", {
2602
2629
  className: "flex items-center gap-2 px-1 py-1.5 text-left text-sm",
2603
- children: [/* @__PURE__ */ H(pe, {
2630
+ children: [/* @__PURE__ */ W(Ee, {
2604
2631
  givenName: e.firstName,
2605
2632
  familyName: e.lastName,
2606
2633
  name: c || e.username,
2607
2634
  src: e.avatarUrl || void 0,
2608
2635
  alt: e.username
2609
- }), /* @__PURE__ */ U("div", {
2636
+ }), /* @__PURE__ */ G("div", {
2610
2637
  className: "grid flex-1 text-left text-sm leading-tight",
2611
- children: [c && /* @__PURE__ */ H("span", {
2638
+ children: [c && /* @__PURE__ */ W("span", {
2612
2639
  className: "truncate font-medium",
2613
2640
  children: c
2614
- }), e.email && /* @__PURE__ */ H("span", {
2641
+ }), e.email && /* @__PURE__ */ W("span", {
2615
2642
  className: "text-muted-foreground truncate text-xs",
2616
2643
  children: e.email
2617
2644
  })]
2618
2645
  })]
2619
2646
  })
2620
2647
  }),
2621
- /* @__PURE__ */ H(T, {}),
2622
- /* @__PURE__ */ U(F, { children: [t && /* @__PURE__ */ U(D, {
2648
+ /* @__PURE__ */ W(A, {}),
2649
+ /* @__PURE__ */ G(j, { children: [t && /* @__PURE__ */ G(P, {
2623
2650
  onSelect: t,
2624
2651
  className: "cursor-pointer",
2625
- children: [/* @__PURE__ */ H(ut, {}), s("nav.account")]
2652
+ children: [/* @__PURE__ */ W(dt, {}), s("nav.account")]
2626
2653
  }), i] }),
2627
- (t || i) && /* @__PURE__ */ H(T, {}),
2628
- n && /* @__PURE__ */ U(D, {
2654
+ (t || i) && /* @__PURE__ */ W(A, {}),
2655
+ n && /* @__PURE__ */ G(P, {
2629
2656
  onSelect: n,
2630
2657
  className: "cursor-pointer text-red-500 focus:text-red-500 focus:bg-red-50 dark:focus:bg-red-950",
2631
- children: [/* @__PURE__ */ H(st, {}), s("nav.logOut")]
2658
+ children: [/* @__PURE__ */ W(st, {}), s("nav.logOut")]
2632
2659
  })
2633
2660
  ]
2634
2661
  })] });
2635
2662
  }
2636
2663
  //#endregion
2637
2664
  //#region src/components/login/login.tsx
2638
- var Da = Ve({});
2639
- function Oa(e) {
2665
+ var ka = Be({});
2666
+ function Aa(e) {
2640
2667
  if (!e) return null;
2641
2668
  let t = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(e.trim());
2642
2669
  if (t) {
@@ -2650,18 +2677,18 @@ function Oa(e) {
2650
2677
  }
2651
2678
  return null;
2652
2679
  }
2653
- function ka({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
2680
+ function ja({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
2654
2681
  let s = {};
2655
2682
  e && (s["--ff-color"] = e), t ? s["--ff-color-dark"] = t : e && (s["--ff-color-dark"] = e);
2656
- let c = Oa(e);
2683
+ let c = Aa(e);
2657
2684
  c && (s["--ff-color-rgb"] = c);
2658
- let l = Oa(t) ?? c;
2659
- return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ H(Da.Provider, {
2685
+ let l = Aa(t) ?? c;
2686
+ return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ W(ka.Provider, {
2660
2687
  value: {
2661
2688
  color: e,
2662
2689
  colorDark: t
2663
2690
  },
2664
- children: /* @__PURE__ */ H("div", {
2691
+ children: /* @__PURE__ */ W("div", {
2665
2692
  className: r("vig-login relative min-h-svh flex items-center justify-center overflow-hidden bg-slate-50 dark:bg-slate-900", i),
2666
2693
  style: {
2667
2694
  ...a ?? {},
@@ -2672,108 +2699,108 @@ function ka({ color: e, colorDark: t, children: n, className: i, style: a, ...o
2672
2699
  })
2673
2700
  });
2674
2701
  }
2675
- function Aa(e) {
2676
- let { color: t, colorDark: n } = Ue(Da);
2677
- return /* @__PURE__ */ H(Fe, {
2702
+ function Ma(e) {
2703
+ let { color: t, colorDark: n } = He(ka);
2704
+ return /* @__PURE__ */ W(Pe, {
2678
2705
  color: t,
2679
2706
  colorDark: n,
2680
2707
  ...e
2681
2708
  });
2682
2709
  }
2683
- function ja({ children: e, className: t, ...n }) {
2684
- return /* @__PURE__ */ H("div", {
2710
+ function Na({ children: e, className: t, ...n }) {
2711
+ return /* @__PURE__ */ W("div", {
2685
2712
  className: r("absolute top-4 right-4 z-30 flex items-center gap-2", t),
2686
2713
  ...n,
2687
2714
  children: e
2688
2715
  });
2689
2716
  }
2690
- function Ma({ children: e, className: t, ...n }) {
2691
- return /* @__PURE__ */ H("div", {
2717
+ function Pa({ children: e, className: t, ...n }) {
2718
+ return /* @__PURE__ */ W("div", {
2692
2719
  className: r("relative z-20 flex flex-col items-center w-full max-w-md px-6 py-4", t),
2693
2720
  ...n,
2694
2721
  children: e
2695
2722
  });
2696
2723
  }
2697
- function Na({ children: e, pulsePaused: t, className: n, ...i }) {
2698
- return /* @__PURE__ */ H("div", {
2724
+ function Fa({ children: e, pulsePaused: t, className: n, ...i }) {
2725
+ return /* @__PURE__ */ W("div", {
2699
2726
  className: r("vig-login__fade-in mb-3", n),
2700
2727
  ...i,
2701
- children: /* @__PURE__ */ H(Zn, {
2728
+ children: /* @__PURE__ */ W($n, {
2702
2729
  paused: t,
2703
- children: /* @__PURE__ */ H("div", {
2730
+ children: /* @__PURE__ */ W("div", {
2704
2731
  className: "flex h-16 w-16 items-center justify-center rounded-2xl bg-white/80 dark:bg-slate-800/80 backdrop-blur-sm shadow-lg ring-1 ring-[rgba(var(--ff-color-rgb,37,99,235),0.2)] dark:ring-[rgba(var(--ff-color-dark-rgb,96,165,250),0.2)]",
2705
2732
  children: e
2706
2733
  })
2707
2734
  })
2708
2735
  });
2709
2736
  }
2710
- function Pa({ children: e, className: t, ...n }) {
2711
- return /* @__PURE__ */ H("div", {
2737
+ function Ia({ children: e, className: t, ...n }) {
2738
+ return /* @__PURE__ */ W("div", {
2712
2739
  className: "vig-login__fade-in-d1 text-center mb-1",
2713
- children: /* @__PURE__ */ H("h1", {
2740
+ children: /* @__PURE__ */ W("h1", {
2714
2741
  className: r("text-2xl font-bold tracking-tight bg-clip-text text-transparent vig-login__title-gradient", t),
2715
2742
  ...n,
2716
2743
  children: e
2717
2744
  })
2718
2745
  });
2719
2746
  }
2720
- function Fa({ children: e, className: t, ...n }) {
2721
- return /* @__PURE__ */ H("div", {
2747
+ function La({ children: e, className: t, ...n }) {
2748
+ return /* @__PURE__ */ W("div", {
2722
2749
  className: "vig-login__fade-in-d1 text-center mb-4",
2723
- children: /* @__PURE__ */ H("p", {
2750
+ children: /* @__PURE__ */ W("p", {
2724
2751
  className: r("text-sm text-slate-500 dark:text-slate-400 max-w-xs leading-relaxed", t),
2725
2752
  ...n,
2726
2753
  children: e
2727
2754
  })
2728
2755
  });
2729
2756
  }
2730
- function Ia({ children: e, className: t, ...n }) {
2731
- return /* @__PURE__ */ H("div", {
2757
+ function Ra({ children: e, className: t, ...n }) {
2758
+ return /* @__PURE__ */ W("div", {
2732
2759
  className: r("vig-login__fade-in-d2 flex flex-wrap justify-center gap-2 mb-5", t),
2733
2760
  ...n,
2734
2761
  children: e
2735
2762
  });
2736
2763
  }
2737
- function La({ icon: e, children: t, className: n, ...i }) {
2738
- return /* @__PURE__ */ U("div", {
2764
+ function za({ icon: e, children: t, className: n, ...i }) {
2765
+ return /* @__PURE__ */ G("div", {
2739
2766
  className: r("vig-login__feature-pill flex items-center gap-1.5 rounded-full px-3 py-1", n),
2740
2767
  ...i,
2741
- children: [e, /* @__PURE__ */ H("span", {
2768
+ children: [e, /* @__PURE__ */ W("span", {
2742
2769
  className: "text-xs font-medium text-slate-600 dark:text-slate-300",
2743
2770
  children: t
2744
2771
  })]
2745
2772
  });
2746
2773
  }
2747
- function Ra({ children: e, className: t, ...n }) {
2748
- return /* @__PURE__ */ H("div", {
2774
+ function Ba({ children: e, className: t, ...n }) {
2775
+ return /* @__PURE__ */ W("div", {
2749
2776
  className: r("vig-login__fade-in-d3 w-full", t),
2750
2777
  ...n,
2751
- children: /* @__PURE__ */ H(Xn, { children: e })
2778
+ children: /* @__PURE__ */ W(Qn, { children: e })
2752
2779
  });
2753
2780
  }
2754
- function za({ children: e, className: t, ...n }) {
2755
- return /* @__PURE__ */ H("div", {
2781
+ function Va({ children: e, className: t, ...n }) {
2782
+ return /* @__PURE__ */ W("div", {
2756
2783
  className: "vig-login__fade-in-d3 mt-4 text-center",
2757
- children: /* @__PURE__ */ H("p", {
2784
+ children: /* @__PURE__ */ W("p", {
2758
2785
  className: r("text-xs text-slate-400 dark:text-slate-500", t),
2759
2786
  ...n,
2760
2787
  children: e
2761
2788
  })
2762
2789
  });
2763
2790
  }
2764
- var Ba = Object.assign(ka, {
2765
- Background: Aa,
2766
- Settings: ja,
2767
- Content: Ma,
2768
- Logo: Na,
2769
- Title: Pa,
2770
- Tagline: Fa,
2771
- Features: Ia,
2772
- FeaturePill: La,
2773
- Card: Ra,
2774
- Footer: za
2775
- }), Va = Ve({});
2776
- function Ha(e) {
2791
+ var Ha = Object.assign(ja, {
2792
+ Background: Ma,
2793
+ Settings: Na,
2794
+ Content: Pa,
2795
+ Logo: Fa,
2796
+ Title: Ia,
2797
+ Tagline: La,
2798
+ Features: Ra,
2799
+ FeaturePill: za,
2800
+ Card: Ba,
2801
+ Footer: Va
2802
+ }), Ua = Be({});
2803
+ function Wa(e) {
2777
2804
  if (!e) return null;
2778
2805
  let t = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(e.trim());
2779
2806
  if (t) {
@@ -2787,18 +2814,18 @@ function Ha(e) {
2787
2814
  }
2788
2815
  return null;
2789
2816
  }
2790
- function Ua({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
2817
+ function Ga({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
2791
2818
  let s = {};
2792
2819
  e && (s["--ff-color"] = e), t ? s["--ff-color-dark"] = t : e && (s["--ff-color-dark"] = e);
2793
- let c = Ha(e);
2820
+ let c = Wa(e);
2794
2821
  c && (s["--ff-color-rgb"] = c);
2795
- let l = Ha(t) ?? c;
2796
- return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ H(Va.Provider, {
2822
+ let l = Wa(t) ?? c;
2823
+ return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ W(Ua.Provider, {
2797
2824
  value: {
2798
2825
  color: e,
2799
2826
  colorDark: t
2800
2827
  },
2801
- children: /* @__PURE__ */ H("div", {
2828
+ children: /* @__PURE__ */ W("div", {
2802
2829
  className: r("vig-sf relative min-h-svh flex items-center justify-center overflow-hidden bg-slate-50 dark:bg-slate-950", i),
2803
2830
  style: {
2804
2831
  ...a ?? {},
@@ -2809,24 +2836,24 @@ function Ua({ color: e, colorDark: t, children: n, className: i, style: a, ...o
2809
2836
  })
2810
2837
  });
2811
2838
  }
2812
- function Wa(e) {
2813
- let { color: t, colorDark: n } = Ue(Va);
2814
- return /* @__PURE__ */ H(Fe, {
2839
+ function Ka(e) {
2840
+ let { color: t, colorDark: n } = He(Ua);
2841
+ return /* @__PURE__ */ W(Pe, {
2815
2842
  color: t,
2816
2843
  colorDark: n,
2817
2844
  ...e
2818
2845
  });
2819
2846
  }
2820
- function Ga({ children: e, className: t, ...n }) {
2821
- return /* @__PURE__ */ H("div", {
2847
+ function qa({ children: e, className: t, ...n }) {
2848
+ return /* @__PURE__ */ W("div", {
2822
2849
  className: r("relative z-20 flex flex-col items-center w-full max-w-lg px-6 py-6", t),
2823
2850
  ...n,
2824
2851
  children: e
2825
2852
  });
2826
2853
  }
2827
- function Ka({ current: e, total: t, className: n, ...i }) {
2828
- let { t: a } = W();
2829
- return /* @__PURE__ */ H("div", {
2854
+ function Ja({ current: e, total: t, className: n, ...i }) {
2855
+ let { t: a } = K();
2856
+ return /* @__PURE__ */ W("div", {
2830
2857
  className: r("vig-sf__fade-in flex items-center gap-2 mb-4", n),
2831
2858
  role: "group",
2832
2859
  "aria-label": a("common.stepOf", {
@@ -2835,20 +2862,20 @@ function Ka({ current: e, total: t, className: n, ...i }) {
2835
2862
  defaultValue: "Step {{index}} of {{count}}"
2836
2863
  }),
2837
2864
  ...i,
2838
- children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ H("span", {
2865
+ children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ W("span", {
2839
2866
  className: n + 1 <= e ? "vig-sf__step vig-sf__step--active" : "vig-sf__step",
2840
2867
  "aria-current": n + 1 === e ? "step" : void 0
2841
2868
  }, `step-${n + 1}`))
2842
2869
  });
2843
2870
  }
2844
- function qa({ children: e, pulsePaused: t, size: n = 80, className: i, style: a, ...o }) {
2845
- return /* @__PURE__ */ H("div", {
2871
+ function Ya({ children: e, pulsePaused: t, size: n = 80, className: i, style: a, ...o }) {
2872
+ return /* @__PURE__ */ W("div", {
2846
2873
  className: r("vig-sf__fade-in mb-4", i),
2847
2874
  style: a,
2848
2875
  ...o,
2849
- children: /* @__PURE__ */ H(Zn, {
2876
+ children: /* @__PURE__ */ W($n, {
2850
2877
  paused: t,
2851
- children: /* @__PURE__ */ H("div", {
2878
+ children: /* @__PURE__ */ W("div", {
2852
2879
  className: "flex items-center justify-center rounded-3xl bg-white/80 dark:bg-slate-800/80 backdrop-blur-sm shadow-xl ring-1 ring-[rgba(var(--ff-color-rgb,37,99,235),0.2)] dark:ring-[rgba(var(--ff-color-dark-rgb,96,165,250),0.2)]",
2853
2880
  style: {
2854
2881
  width: n,
@@ -2859,87 +2886,87 @@ function qa({ children: e, pulsePaused: t, size: n = 80, className: i, style: a,
2859
2886
  })
2860
2887
  });
2861
2888
  }
2862
- function Ja({ children: e, className: t, ...n }) {
2863
- return /* @__PURE__ */ H("div", {
2889
+ function Xa({ children: e, className: t, ...n }) {
2890
+ return /* @__PURE__ */ W("div", {
2864
2891
  className: "vig-sf__fade-in-d1 text-center mb-2",
2865
- children: /* @__PURE__ */ H("h1", {
2892
+ children: /* @__PURE__ */ W("h1", {
2866
2893
  className: r("text-3xl font-bold tracking-tight bg-clip-text text-transparent vig-sf__title-gradient", t),
2867
2894
  ...n,
2868
2895
  children: e
2869
2896
  })
2870
2897
  });
2871
2898
  }
2872
- function Ya({ children: e, className: t, ...n }) {
2873
- return /* @__PURE__ */ H("div", {
2899
+ function Za({ children: e, className: t, ...n }) {
2900
+ return /* @__PURE__ */ W("div", {
2874
2901
  className: "vig-sf__fade-in-d1 text-center mb-5",
2875
- children: /* @__PURE__ */ H("p", {
2902
+ children: /* @__PURE__ */ W("p", {
2876
2903
  className: r("text-sm text-slate-500 dark:text-slate-400 max-w-md leading-relaxed", t),
2877
2904
  ...n,
2878
2905
  children: e
2879
2906
  })
2880
2907
  });
2881
2908
  }
2882
- function Xa({ children: e, className: t, ...n }) {
2883
- return /* @__PURE__ */ H("div", {
2909
+ function Qa({ children: e, className: t, ...n }) {
2910
+ return /* @__PURE__ */ W("div", {
2884
2911
  className: r("vig-sf__fade-in-d2 w-full", t),
2885
2912
  ...n,
2886
- children: /* @__PURE__ */ H(Xn, { children: e })
2913
+ children: /* @__PURE__ */ W(Qn, { children: e })
2887
2914
  });
2888
2915
  }
2889
- function Za({ children: e, className: t, ...n }) {
2890
- return /* @__PURE__ */ H("div", {
2916
+ function $a({ children: e, className: t, ...n }) {
2917
+ return /* @__PURE__ */ W("div", {
2891
2918
  className: r("vig-sf__fade-in-d3 w-full mt-4 flex items-center justify-between gap-3", t),
2892
2919
  ...n,
2893
2920
  children: e
2894
2921
  });
2895
2922
  }
2896
- function Qa({ children: e, className: t, ...n }) {
2897
- return /* @__PURE__ */ H("div", {
2923
+ function eo({ children: e, className: t, ...n }) {
2924
+ return /* @__PURE__ */ W("div", {
2898
2925
  className: "vig-sf__fade-in-d3 mt-6 text-center",
2899
- children: /* @__PURE__ */ H("p", {
2926
+ children: /* @__PURE__ */ W("p", {
2900
2927
  className: r("text-xs text-slate-400 dark:text-slate-500", t),
2901
2928
  ...n,
2902
2929
  children: e
2903
2930
  })
2904
2931
  });
2905
2932
  }
2906
- function $a({ icon: e, children: t, className: n, ...i }) {
2907
- return /* @__PURE__ */ U("div", {
2933
+ function to({ icon: e, children: t, className: n, ...i }) {
2934
+ return /* @__PURE__ */ G("div", {
2908
2935
  className: r("vig-sf__hint flex items-start gap-2 rounded-lg px-3 py-2 text-xs text-slate-600 dark:text-slate-300", n),
2909
2936
  ...i,
2910
- children: [e, /* @__PURE__ */ H("span", { children: t })]
2911
- });
2912
- }
2913
- var eo = Object.assign(Ua, {
2914
- Background: Wa,
2915
- Content: Ga,
2916
- Steps: Ka,
2917
- Logo: qa,
2918
- Title: Ja,
2919
- Description: Ya,
2920
- Card: Xa,
2921
- Actions: Za,
2922
- Footer: Qa,
2923
- Hint: $a
2937
+ children: [e, /* @__PURE__ */ W("span", { children: t })]
2938
+ });
2939
+ }
2940
+ var no = Object.assign(Ga, {
2941
+ Background: Ka,
2942
+ Content: qa,
2943
+ Steps: Ja,
2944
+ Logo: Ya,
2945
+ Title: Xa,
2946
+ Description: Za,
2947
+ Card: Qa,
2948
+ Actions: $a,
2949
+ Footer: eo,
2950
+ Hint: to
2924
2951
  });
2925
2952
  //#endregion
2926
2953
  //#region src/components/app-footer.tsx
2927
- function to({ logo: e, productName: t, version: n, links: r = [] }) {
2928
- return /* @__PURE__ */ U("footer", {
2954
+ function ro({ logo: e, productName: t, version: n, links: r = [] }) {
2955
+ return /* @__PURE__ */ G("footer", {
2929
2956
  className: "mt-auto",
2930
- children: [/* @__PURE__ */ H("div", { className: "mx-6 border-t" }), /* @__PURE__ */ U("div", {
2957
+ children: [/* @__PURE__ */ W("div", { className: "mx-6 border-t" }), /* @__PURE__ */ G("div", {
2931
2958
  className: "px-6 py-3 flex items-center justify-center gap-2 flex-wrap",
2932
2959
  children: [
2933
2960
  e,
2934
- /* @__PURE__ */ U("span", {
2961
+ /* @__PURE__ */ G("span", {
2935
2962
  className: "text-xs text-muted-foreground",
2936
2963
  children: [t, n ? ` ${n}` : ""]
2937
2964
  }),
2938
- r.map((e) => /* @__PURE__ */ U(Be.Fragment, { children: [/* @__PURE__ */ H("span", {
2965
+ r.map((e) => /* @__PURE__ */ G(ze.Fragment, { children: [/* @__PURE__ */ W("span", {
2939
2966
  "aria-hidden": "true",
2940
2967
  className: "text-xs text-muted-foreground/40",
2941
2968
  children: "·"
2942
- }), /* @__PURE__ */ H("a", {
2969
+ }), /* @__PURE__ */ W("a", {
2943
2970
  href: e.href,
2944
2971
  target: "_blank",
2945
2972
  rel: "noopener noreferrer",
@@ -2952,32 +2979,32 @@ function to({ logo: e, productName: t, version: n, links: r = [] }) {
2952
2979
  }
2953
2980
  //#endregion
2954
2981
  //#region src/components/app-switcher.tsx
2955
- function no({ open: e, onToggle: t, apps: n, triggerTitle: r, closeLabel: i, showTrigger: a = !0, headerHeight: o = 56 }) {
2956
- let { t: s } = W(), c = r ?? s("common.apps"), l = i ?? s("common.closeAppSwitcher"), u = {
2982
+ function io({ open: e, onToggle: t, apps: n, triggerTitle: r, closeLabel: i, showTrigger: a = !0, headerHeight: o = 56 }) {
2983
+ let { t: s } = K(), c = r ?? s("common.apps"), l = i ?? s("common.closeAppSwitcher"), u = {
2957
2984
  top: `${o}px`,
2958
2985
  height: `calc(100vh - ${o}px)`
2959
2986
  };
2960
- return /* @__PURE__ */ U(Ke, { children: [
2961
- a && /* @__PURE__ */ H("button", {
2987
+ return /* @__PURE__ */ G(Ge, { children: [
2988
+ a && /* @__PURE__ */ W("button", {
2962
2989
  type: "button",
2963
2990
  title: c,
2964
2991
  onClick: t,
2965
2992
  className: `inline-flex items-center justify-center rounded-full w-9 h-9 transition-colors ${e ? "text-foreground bg-accent" : "text-muted-foreground hover:text-foreground hover:bg-accent"}`,
2966
- children: /* @__PURE__ */ H(Ht, { className: "h-5 w-5" })
2993
+ children: /* @__PURE__ */ W(Wt, { className: "h-5 w-5" })
2967
2994
  }),
2968
- e && /* @__PURE__ */ H("button", {
2995
+ e && /* @__PURE__ */ W("button", {
2969
2996
  type: "button",
2970
2997
  className: "fixed inset-0 z-40 cursor-default bg-transparent border-none",
2971
2998
  onClick: t,
2972
2999
  onKeyDown: (e) => e.key === "Escape" && t(),
2973
3000
  "aria-label": l
2974
3001
  }),
2975
- e && /* @__PURE__ */ H("div", {
3002
+ e && /* @__PURE__ */ W("div", {
2976
3003
  className: "vg-app-switcher-panel fixed right-0 z-50 w-72 border-l border-border bg-card shadow-xl overflow-y-auto",
2977
3004
  style: u,
2978
- children: /* @__PURE__ */ H("div", {
3005
+ children: /* @__PURE__ */ W("div", {
2979
3006
  className: "p-4",
2980
- children: n.map((e) => /* @__PURE__ */ H(ro, {
3007
+ children: n.map((e) => /* @__PURE__ */ W(ao, {
2981
3008
  app: e,
2982
3009
  onToggle: t
2983
3010
  }, e.id))
@@ -2985,37 +3012,37 @@ function no({ open: e, onToggle: t, apps: n, triggerTitle: r, closeLabel: i, sho
2985
3012
  })
2986
3013
  ] });
2987
3014
  }
2988
- function ro({ app: e, onToggle: t }) {
2989
- let { t: n } = W(), r = e.name.includes(".") ? n(e.name, { defaultValue: e.name }) : e.name;
2990
- return /* @__PURE__ */ U("a", {
3015
+ function ao({ app: e, onToggle: t }) {
3016
+ let { t: n } = K(), r = e.name.includes(".") ? n(e.name, { defaultValue: e.name }) : e.name;
3017
+ return /* @__PURE__ */ G("a", {
2991
3018
  href: e.href,
2992
3019
  target: e.external ? "_blank" : void 0,
2993
3020
  rel: e.external ? "noopener noreferrer" : void 0,
2994
3021
  onClick: t,
2995
3022
  className: `flex items-center gap-3 px-3 py-2.5 rounded-lg transition-colors ${e.active ? "bg-accent font-medium" : "hover:bg-accent"}`,
2996
3023
  children: [
2997
- e.active && /* @__PURE__ */ H(de, { className: "h-4 w-4 text-[var(--vg-brand,#C2410C)] shrink-0" }),
2998
- e.image ? /* @__PURE__ */ H("img", {
3024
+ e.active && /* @__PURE__ */ W(re, { className: "h-4 w-4 text-[var(--vg-brand,#C2410C)] shrink-0" }),
3025
+ e.image ? /* @__PURE__ */ W("img", {
2999
3026
  src: e.image,
3000
3027
  alt: "",
3001
3028
  "aria-hidden": "true",
3002
3029
  className: `${e.active ? "" : "ml-7"} shrink-0 w-7 h-7 object-contain`
3003
- }) : /* @__PURE__ */ H("div", {
3030
+ }) : /* @__PURE__ */ W("div", {
3004
3031
  className: `${e.active ? "" : "ml-7"} shrink-0 w-7 h-7 rounded-[18%] bg-[#f5deb3] dark:bg-amber-900/40 p-0.5`,
3005
- children: /* @__PURE__ */ H("div", {
3032
+ children: /* @__PURE__ */ W("div", {
3006
3033
  className: `w-full h-full rounded-[14%] ${e.iconBg ?? "bg-muted"} flex items-center justify-center text-white`,
3007
3034
  children: e.icon
3008
3035
  })
3009
3036
  }),
3010
- /* @__PURE__ */ H("span", {
3037
+ /* @__PURE__ */ W("span", {
3011
3038
  className: "text-sm flex-1",
3012
3039
  children: r
3013
3040
  }),
3014
- e.external && /* @__PURE__ */ H(Rt, { className: "h-3.5 w-3.5 text-muted-foreground" })
3041
+ e.external && /* @__PURE__ */ W(Bt, { className: "h-3.5 w-3.5 text-muted-foreground" })
3015
3042
  ]
3016
3043
  });
3017
3044
  }
3018
- var io = new class {
3045
+ var oo = new class {
3019
3046
  status = "online";
3020
3047
  listeners = /* @__PURE__ */ new Set();
3021
3048
  get current() {
@@ -3030,30 +3057,30 @@ var io = new class {
3030
3057
  };
3031
3058
  }
3032
3059
  }();
3033
- function ao() {
3034
- io.set("offline");
3035
- }
3036
- function oo() {
3037
- io.set("online");
3060
+ function so() {
3061
+ oo.set("offline");
3038
3062
  }
3039
- var so = Ve(null);
3040
3063
  function co() {
3041
- let e = Ue(so);
3064
+ oo.set("online");
3065
+ }
3066
+ var lo = Be(null);
3067
+ function uo() {
3068
+ let e = He(lo);
3042
3069
  if (!e) throw Error("useBackendStatus must be used inside <BackendStatusProvider>");
3043
3070
  return e;
3044
3071
  }
3045
- function lo({ healthEndpoint: e = "/api/v2/ping", pollInterval: t = 5e3, showBanner: n = !0, children: r }) {
3046
- let [i, a] = Ge(io.current);
3047
- B(() => io.subscribe(a), []);
3048
- let o = He(async () => {
3049
- io.set("checking");
3072
+ function fo({ healthEndpoint: e = "/api/v2/ping", pollInterval: t = 5e3, showBanner: n = !0, children: r }) {
3073
+ let [i, a] = We(oo.current);
3074
+ H(() => oo.subscribe(a), []);
3075
+ let o = Ve(async () => {
3076
+ oo.set("checking");
3050
3077
  try {
3051
- await Y.get(e, { timeout: 4e3 }), io.set("online");
3078
+ await Y.get(e, { timeout: 4e3 }), oo.set("online");
3052
3079
  } catch {
3053
- io.set("offline");
3080
+ oo.set("offline");
3054
3081
  }
3055
3082
  }, [e]);
3056
- return B(() => {
3083
+ return H(() => {
3057
3084
  if (i === "online") return;
3058
3085
  let e = setInterval(o, t);
3059
3086
  return () => clearInterval(e);
@@ -3061,38 +3088,38 @@ function lo({ healthEndpoint: e = "/api/v2/ping", pollInterval: t = 5e3, showBan
3061
3088
  i,
3062
3089
  t,
3063
3090
  o
3064
- ]), /* @__PURE__ */ U(so.Provider, {
3091
+ ]), /* @__PURE__ */ G(lo.Provider, {
3065
3092
  value: {
3066
3093
  status: i,
3067
3094
  retry: o
3068
3095
  },
3069
- children: [n && /* @__PURE__ */ H(uo, {}), r]
3096
+ children: [n && /* @__PURE__ */ W(po, {}), r]
3070
3097
  });
3071
3098
  }
3072
- function uo() {
3073
- let { status: e, retry: t } = co(), { t: n } = W();
3099
+ function po() {
3100
+ let { status: e, retry: t } = uo(), { t: n } = K();
3074
3101
  if (e === "online") return null;
3075
3102
  let r = e === "checking";
3076
- return /* @__PURE__ */ H("div", {
3103
+ return /* @__PURE__ */ W("div", {
3077
3104
  role: "status",
3078
3105
  "aria-live": "polite",
3079
3106
  className: "sticky top-0 z-50 w-full border-b border-amber-500/30 bg-amber-500/10 backdrop-blur supports-[backdrop-filter]:bg-amber-500/15 text-amber-900 dark:text-amber-100",
3080
- children: /* @__PURE__ */ U("div", {
3107
+ children: /* @__PURE__ */ G("div", {
3081
3108
  className: "flex items-center gap-3 px-4 py-2 text-sm",
3082
3109
  children: [
3083
- r ? /* @__PURE__ */ H(ot, { className: "size-4 animate-spin shrink-0" }) : /* @__PURE__ */ H(tt, { className: "size-4 shrink-0" }),
3084
- /* @__PURE__ */ H("span", {
3110
+ r ? /* @__PURE__ */ W(ot, { className: "size-4 animate-spin shrink-0" }) : /* @__PURE__ */ W(tt, { className: "size-4 shrink-0" }),
3111
+ /* @__PURE__ */ W("span", {
3085
3112
  className: "flex-1",
3086
3113
  children: n(r ? "backendStatus.checking" : "backendStatus.offline", r ? "Reconnecting to the server..." : "Server unavailable. Retrying...")
3087
3114
  }),
3088
- /* @__PURE__ */ U(v, {
3115
+ /* @__PURE__ */ G(v, {
3089
3116
  type: "button",
3090
3117
  variant: "ghost",
3091
3118
  size: "sm",
3092
3119
  onClick: t,
3093
3120
  disabled: r,
3094
3121
  className: "text-amber-900 dark:text-amber-100 hover:bg-amber-500/20",
3095
- children: [/* @__PURE__ */ H(ct, { className: `size-4 ${r ? "animate-spin" : ""}` }), n("backendStatus.retry", "Retry now")]
3122
+ children: [/* @__PURE__ */ W(ct, { className: `size-4 ${r ? "animate-spin" : ""}` }), n("backendStatus.retry", "Retry now")]
3096
3123
  })
3097
3124
  ]
3098
3125
  })
@@ -3100,7 +3127,7 @@ function uo() {
3100
3127
  }
3101
3128
  //#endregion
3102
3129
  //#region src/components/error-boundary.tsx
3103
- var fo = class extends Be.Component {
3130
+ var mo = class extends ze.Component {
3104
3131
  state = { hasError: !1 };
3105
3132
  static getDerivedStateFromError(e) {
3106
3133
  return {
@@ -3123,49 +3150,49 @@ var fo = class extends Be.Component {
3123
3150
  return this.props.fallback ? this.props.fallback({
3124
3151
  error: e,
3125
3152
  reset: this.reset
3126
- }) : /* @__PURE__ */ H(po, { error: e });
3153
+ }) : /* @__PURE__ */ W(ho, { error: e });
3127
3154
  }
3128
3155
  };
3129
- function po({ error: e }) {
3130
- let { t } = W();
3131
- return /* @__PURE__ */ H("div", {
3156
+ function ho({ error: e }) {
3157
+ let { t } = K();
3158
+ return /* @__PURE__ */ W("div", {
3132
3159
  className: "flex items-center justify-center min-h-[80vh] px-6 py-16",
3133
- children: /* @__PURE__ */ H("div", {
3160
+ children: /* @__PURE__ */ W("div", {
3134
3161
  className: "relative w-full max-w-md overflow-hidden rounded-2xl border border-border/50 bg-card/80 backdrop-blur-sm shadow-xl",
3135
- children: /* @__PURE__ */ U("div", {
3162
+ children: /* @__PURE__ */ G("div", {
3136
3163
  className: "relative flex flex-col items-center text-center px-8 py-12 space-y-6",
3137
3164
  children: [
3138
- /* @__PURE__ */ U("div", {
3165
+ /* @__PURE__ */ G("div", {
3139
3166
  className: "relative",
3140
- children: [/* @__PURE__ */ H("div", { className: "absolute inset-0 rounded-2xl bg-gradient-to-br from-red-500/20 to-rose-500/20 blur-xl animate-pulse" }), /* @__PURE__ */ H("div", {
3167
+ children: [/* @__PURE__ */ W("div", { className: "absolute inset-0 rounded-2xl bg-gradient-to-br from-red-500/20 to-rose-500/20 blur-xl animate-pulse" }), /* @__PURE__ */ W("div", {
3141
3168
  className: "relative inline-flex h-16 w-16 items-center justify-center rounded-2xl bg-gradient-to-br from-red-600 to-rose-600 shadow-lg shadow-red-500/25 ring-4 ring-red-500/10",
3142
- children: /* @__PURE__ */ H(nt, {
3169
+ children: /* @__PURE__ */ W(nt, {
3143
3170
  className: "text-white",
3144
3171
  size: 30
3145
3172
  })
3146
3173
  })]
3147
3174
  }),
3148
- /* @__PURE__ */ U("div", {
3175
+ /* @__PURE__ */ G("div", {
3149
3176
  className: "space-y-2",
3150
3177
  children: [
3151
- /* @__PURE__ */ H("h2", {
3178
+ /* @__PURE__ */ W("h2", {
3152
3179
  className: "text-xl font-semibold tracking-tight",
3153
3180
  children: t("errorBoundary.title", "Something went wrong")
3154
3181
  }),
3155
- /* @__PURE__ */ H("p", {
3182
+ /* @__PURE__ */ W("p", {
3156
3183
  className: "text-sm text-muted-foreground leading-relaxed max-w-xs mx-auto",
3157
3184
  children: t("errorBoundary.description", "An unexpected error occurred. Try reloading the page.")
3158
3185
  }),
3159
- e.message && /* @__PURE__ */ H("pre", {
3186
+ e.message && /* @__PURE__ */ W("pre", {
3160
3187
  className: "mt-3 text-xs text-left text-muted-foreground bg-muted/40 rounded-md p-3 max-h-32 overflow-auto whitespace-pre-wrap break-words",
3161
3188
  children: e.message
3162
3189
  })
3163
3190
  ]
3164
3191
  }),
3165
- /* @__PURE__ */ U(v, {
3192
+ /* @__PURE__ */ G(v, {
3166
3193
  size: "lg",
3167
3194
  onClick: () => window.location.reload(),
3168
- children: [/* @__PURE__ */ H(ct, { className: "size-4" }), t("errorBoundary.reload", "Reload page")]
3195
+ children: [/* @__PURE__ */ W(ct, { className: "size-4" }), t("errorBoundary.reload", "Reload page")]
3169
3196
  })
3170
3197
  ]
3171
3198
  })
@@ -3174,8 +3201,8 @@ function po({ error: e }) {
3174
3201
  }
3175
3202
  //#endregion
3176
3203
  //#region src/components/language-select.tsx
3177
- function mo({ value: e, onValueChange: t, locales: n, extraLocaleValues: r = [], placeholder: i, className: a }) {
3178
- let { t: o } = W(), s = i ?? o("forms.common.chooseLanguage"), c = /* @__PURE__ */ new Map();
3204
+ function go({ value: e, onValueChange: t, locales: n, extraLocaleValues: r = [], placeholder: i, className: a }) {
3205
+ let { t: o } = K(), s = i ?? o("forms.common.chooseLanguage"), c = /* @__PURE__ */ new Map();
3179
3206
  n.forEach((e) => {
3180
3207
  c.set(e.initials, {
3181
3208
  name: e.en,
@@ -3192,34 +3219,34 @@ function mo({ value: e, onValueChange: t, locales: n, extraLocaleValues: r = [],
3192
3219
  name: t.name,
3193
3220
  label: t.label
3194
3221
  })), u = l.find((t) => t.value === e);
3195
- return /* @__PURE__ */ U(vr, {
3222
+ return /* @__PURE__ */ G(br, {
3196
3223
  value: e,
3197
3224
  onValueChange: t,
3198
- children: [/* @__PURE__ */ H(xr, {
3225
+ children: [/* @__PURE__ */ W(Cr, {
3199
3226
  className: a,
3200
3227
  "aria-label": s,
3201
- children: u ? /* @__PURE__ */ U("div", {
3228
+ children: u ? /* @__PURE__ */ G("div", {
3202
3229
  className: "flex items-center gap-2 truncate",
3203
- children: [/* @__PURE__ */ H(x, { locale: u.value }), /* @__PURE__ */ H("span", {
3230
+ children: [/* @__PURE__ */ W(S, { locale: u.value }), /* @__PURE__ */ W("span", {
3204
3231
  className: "truncate",
3205
3232
  children: u.label
3206
3233
  })]
3207
- }) : /* @__PURE__ */ H("span", {
3234
+ }) : /* @__PURE__ */ W("span", {
3208
3235
  className: "text-muted-foreground",
3209
3236
  children: s
3210
3237
  })
3211
- }), /* @__PURE__ */ H(Sr, { children: l.map((e) => /* @__PURE__ */ H(wr, {
3238
+ }), /* @__PURE__ */ W(wr, { children: l.map((e) => /* @__PURE__ */ W(Er, {
3212
3239
  value: e.value,
3213
- children: /* @__PURE__ */ U("div", {
3240
+ children: /* @__PURE__ */ G("div", {
3214
3241
  className: "flex items-center gap-2",
3215
- children: [/* @__PURE__ */ H(x, { locale: e.value }), /* @__PURE__ */ H("span", { children: e.label })]
3242
+ children: [/* @__PURE__ */ W(S, { locale: e.value }), /* @__PURE__ */ W("span", { children: e.label })]
3216
3243
  })
3217
3244
  }, e.value)) })]
3218
3245
  });
3219
3246
  }
3220
3247
  //#endregion
3221
3248
  //#region src/components/language-switcher.tsx
3222
- var ho = [{
3249
+ var _o = [{
3223
3250
  code: "en",
3224
3251
  label: "English",
3225
3252
  flag: "🇺🇸"
@@ -3228,24 +3255,24 @@ var ho = [{
3228
3255
  label: "Português",
3229
3256
  flag: "🇧🇷"
3230
3257
  }];
3231
- function go({ languages: e = ho }) {
3232
- let { i18n: t, t: n } = W();
3233
- return /* @__PURE__ */ U(be, { children: [/* @__PURE__ */ H(O, {
3258
+ function vo({ languages: e = _o }) {
3259
+ let { i18n: t, t: n } = K();
3260
+ return /* @__PURE__ */ G(I, { children: [/* @__PURE__ */ W(Te, {
3234
3261
  asChild: !0,
3235
- children: /* @__PURE__ */ U(v, {
3262
+ children: /* @__PURE__ */ G(v, {
3236
3263
  variant: "outline",
3237
3264
  size: "sm",
3238
- children: [/* @__PURE__ */ H(Bt, { className: "h-[1.2rem] w-[1.2rem]" }), /* @__PURE__ */ H("span", {
3265
+ children: [/* @__PURE__ */ W(Ht, { className: "h-[1.2rem] w-[1.2rem]" }), /* @__PURE__ */ W("span", {
3239
3266
  className: "sr-only",
3240
3267
  children: n("language.toggle")
3241
3268
  })]
3242
3269
  })
3243
- }), /* @__PURE__ */ H(N, {
3270
+ }), /* @__PURE__ */ W(O, {
3244
3271
  align: "end",
3245
- children: e.map((e) => /* @__PURE__ */ U(D, {
3272
+ children: e.map((e) => /* @__PURE__ */ G(P, {
3246
3273
  onClick: () => t.changeLanguage(e.code),
3247
3274
  className: t.language === e.code ? "font-semibold bg-accent" : "",
3248
- children: [e.flag && /* @__PURE__ */ H("span", {
3275
+ children: [e.flag && /* @__PURE__ */ W("span", {
3249
3276
  className: "mr-2",
3250
3277
  children: e.flag
3251
3278
  }), e.label]
@@ -3254,8 +3281,8 @@ function go({ languages: e = ho }) {
3254
3281
  }
3255
3282
  //#endregion
3256
3283
  //#region src/components/theme-provider.tsx
3257
- function _o({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-theme", ...r }) {
3258
- return /* @__PURE__ */ H(_t, {
3284
+ function yo({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-theme", ...r }) {
3285
+ return /* @__PURE__ */ W(yt, {
3259
3286
  attribute: "class",
3260
3287
  enableSystem: !0,
3261
3288
  defaultTheme: t,
@@ -3264,8 +3291,8 @@ function _o({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-
3264
3291
  children: e
3265
3292
  });
3266
3293
  }
3267
- var vo = () => {
3268
- let { theme: e, setTheme: t } = vt();
3294
+ var bo = () => {
3295
+ let { theme: e, setTheme: t } = bt();
3269
3296
  return {
3270
3297
  theme: e ?? "system",
3271
3298
  setTheme: t
@@ -3273,104 +3300,104 @@ var vo = () => {
3273
3300
  };
3274
3301
  //#endregion
3275
3302
  //#region src/components/mode-toggle.tsx
3276
- function yo() {
3277
- let { setTheme: e } = vo(), { t } = W();
3278
- return /* @__PURE__ */ U(be, { children: [/* @__PURE__ */ H(O, {
3303
+ function xo() {
3304
+ let { setTheme: e } = bo(), { t } = K();
3305
+ return /* @__PURE__ */ G(I, { children: [/* @__PURE__ */ W(Te, {
3279
3306
  asChild: !0,
3280
- children: /* @__PURE__ */ U(v, {
3307
+ children: /* @__PURE__ */ G(v, {
3281
3308
  variant: "outline",
3282
3309
  size: "sm",
3283
3310
  children: [
3284
- /* @__PURE__ */ H(Qt, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
3285
- /* @__PURE__ */ H(Jt, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
3286
- /* @__PURE__ */ H("span", {
3311
+ /* @__PURE__ */ W(en, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
3312
+ /* @__PURE__ */ W(Xt, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
3313
+ /* @__PURE__ */ W("span", {
3287
3314
  className: "sr-only",
3288
3315
  children: t("theme.toggle")
3289
3316
  })
3290
3317
  ]
3291
3318
  })
3292
- }), /* @__PURE__ */ U(N, {
3319
+ }), /* @__PURE__ */ G(O, {
3293
3320
  align: "end",
3294
3321
  children: [
3295
- /* @__PURE__ */ H(D, {
3322
+ /* @__PURE__ */ W(P, {
3296
3323
  onClick: () => e("light"),
3297
3324
  children: t("theme.light")
3298
3325
  }),
3299
- /* @__PURE__ */ H(D, {
3326
+ /* @__PURE__ */ W(P, {
3300
3327
  onClick: () => e("dark"),
3301
3328
  children: t("theme.dark")
3302
3329
  }),
3303
- /* @__PURE__ */ H(D, {
3330
+ /* @__PURE__ */ W(P, {
3304
3331
  onClick: () => e("system"),
3305
3332
  children: t("theme.system")
3306
3333
  })
3307
3334
  ]
3308
3335
  })] });
3309
3336
  }
3310
- var bo = [
3337
+ var So = [
3311
3338
  {
3312
3339
  value: "light",
3313
3340
  labelKey: "theme.light",
3314
- icon: Qt
3341
+ icon: en
3315
3342
  },
3316
3343
  {
3317
3344
  value: "dark",
3318
3345
  labelKey: "theme.dark",
3319
- icon: Jt
3346
+ icon: Xt
3320
3347
  },
3321
3348
  {
3322
3349
  value: "system",
3323
3350
  labelKey: "theme.system",
3324
- icon: Kt
3351
+ icon: Jt
3325
3352
  }
3326
3353
  ];
3327
- function xo() {
3328
- let { theme: e, setTheme: t } = vo(), { t: n } = W(), r = bo.find((t) => t.value === e) ?? bo[2];
3354
+ function Co() {
3355
+ let { theme: e, setTheme: t } = bo(), { t: n } = K(), r = So.find((t) => t.value === e) ?? So[2];
3329
3356
  function i() {
3330
- let n = bo[(bo.findIndex((t) => t.value === e) + 1) % bo.length];
3357
+ let n = So[(So.findIndex((t) => t.value === e) + 1) % So.length];
3331
3358
  t(n.value);
3332
3359
  }
3333
3360
  let a = r.icon;
3334
- return /* @__PURE__ */ U("button", {
3361
+ return /* @__PURE__ */ G("button", {
3335
3362
  type: "button",
3336
3363
  title: n("theme.toggle"),
3337
3364
  onClick: i,
3338
3365
  className: "md:hidden flex items-center gap-3 rounded-lg px-3 py-2 text-sm text-sidebar-foreground hover:bg-sidebar-accent transition-colors w-full",
3339
- children: [/* @__PURE__ */ H(a, { className: "size-4 shrink-0" }), /* @__PURE__ */ H("span", { children: n("theme.modeLabel", { mode: n(r.labelKey) }) })]
3366
+ children: [/* @__PURE__ */ W(a, { className: "size-4 shrink-0" }), /* @__PURE__ */ W("span", { children: n("theme.modeLabel", { mode: n(r.labelKey) }) })]
3340
3367
  });
3341
3368
  }
3342
3369
  //#endregion
3343
3370
  //#region src/components/nav-secondary.tsx
3344
- function So({ items: e, ...t }) {
3345
- return /* @__PURE__ */ H(ii, {
3371
+ function wo({ items: e, ...t }) {
3372
+ return /* @__PURE__ */ W(oi, {
3346
3373
  ...t,
3347
- children: /* @__PURE__ */ H(si, { children: /* @__PURE__ */ H(ci, { children: e.map((e) => /* @__PURE__ */ H(li, { children: /* @__PURE__ */ H(di, {
3374
+ children: /* @__PURE__ */ W(li, { children: /* @__PURE__ */ W(ui, { children: e.map((e) => /* @__PURE__ */ W(di, { children: /* @__PURE__ */ W(pi, {
3348
3375
  asChild: !0,
3349
- children: /* @__PURE__ */ U("a", {
3376
+ children: /* @__PURE__ */ G("a", {
3350
3377
  href: e.url,
3351
- children: [/* @__PURE__ */ H(e.icon, {}), /* @__PURE__ */ H("span", { children: e.title })]
3378
+ children: [/* @__PURE__ */ W(e.icon, {}), /* @__PURE__ */ W("span", { children: e.title })]
3352
3379
  })
3353
3380
  }) }, e.title)) }) })
3354
3381
  });
3355
3382
  }
3356
3383
  //#endregion
3357
3384
  //#region src/components/viglet-app-switcher.tsx
3358
- var Co = {
3385
+ var To = {
3359
3386
  cloud: "https://console.viglet.cloud",
3360
3387
  turing: "https://turing.viglet.cloud",
3361
3388
  shio: "https://shio.viglet.cloud",
3362
3389
  dumont: "https://dumont.viglet.cloud",
3363
3390
  docs: "https://docs.viglet.org"
3364
3391
  };
3365
- function wo({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i, closeLabel: a, headerHeight: o = 56 }) {
3366
- let { t: s } = W(), c = {
3367
- ...Co,
3392
+ function Eo({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i, closeLabel: a, headerHeight: o = 56 }) {
3393
+ let { t: s } = K(), c = {
3394
+ ...To,
3368
3395
  ...r
3369
3396
  }, l = [
3370
3397
  {
3371
3398
  id: "cloud",
3372
3399
  name: "Viglet Cloud",
3373
- icon: /* @__PURE__ */ H(Pt, { className: "h-4 w-4" }),
3400
+ icon: /* @__PURE__ */ W(It, { className: "h-4 w-4" }),
3374
3401
  iconBg: "bg-linear-to-br from-[#C2410C] to-[#F97316]",
3375
3402
  href: n === "cloud" ? "/" : c.cloud,
3376
3403
  external: n !== "cloud",
@@ -3379,7 +3406,7 @@ function wo({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3379
3406
  {
3380
3407
  id: "turing",
3381
3408
  name: "Turing ES",
3382
- image: Ie,
3409
+ image: Fe,
3383
3410
  href: n === "turing" ? "/" : c.turing,
3384
3411
  external: n !== "turing",
3385
3412
  active: n === "turing"
@@ -3387,7 +3414,7 @@ function wo({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3387
3414
  {
3388
3415
  id: "shio",
3389
3416
  name: "Shio CMS",
3390
- image: Re,
3417
+ image: Le,
3391
3418
  href: n === "shio" ? "/" : c.shio,
3392
3419
  external: n !== "shio",
3393
3420
  active: n === "shio"
@@ -3395,7 +3422,7 @@ function wo({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3395
3422
  {
3396
3423
  id: "dumont",
3397
3424
  name: "Dumont DEP",
3398
- image: Le,
3425
+ image: Ie,
3399
3426
  href: n === "dumont" ? "/" : c.dumont,
3400
3427
  external: n !== "dumont",
3401
3428
  active: n === "dumont"
@@ -3403,13 +3430,13 @@ function wo({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3403
3430
  {
3404
3431
  id: "docs",
3405
3432
  name: s("common.docs", { defaultValue: "Documentation" }),
3406
- icon: /* @__PURE__ */ H(Et, { className: "h-4 w-4" }),
3433
+ icon: /* @__PURE__ */ W(Ot, { className: "h-4 w-4" }),
3407
3434
  iconBg: "bg-linear-to-br from-violet-500 to-purple-600",
3408
3435
  href: c.docs,
3409
3436
  external: !0
3410
3437
  }
3411
3438
  ], u = i ?? s("common.apps", { defaultValue: "Apps" });
3412
- return /* @__PURE__ */ H(no, {
3439
+ return /* @__PURE__ */ W(io, {
3413
3440
  open: e,
3414
3441
  onToggle: t,
3415
3442
  apps: l,
@@ -3420,19 +3447,19 @@ function wo({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3420
3447
  }
3421
3448
  //#endregion
3422
3449
  //#region src/hooks/use-date-locale.ts
3423
- var To = {
3424
- en: St,
3425
- pt: Ct
3450
+ var Do = {
3451
+ en: wt,
3452
+ pt: Tt
3426
3453
  };
3427
- function Eo() {
3428
- let { i18n: e } = W();
3429
- return We(() => To[e.language?.substring(0, 2)] ?? St, [e.language]);
3454
+ function Oo() {
3455
+ let { i18n: e } = K();
3456
+ return Ue(() => Do[e.language?.substring(0, 2)] ?? wt, [e.language]);
3430
3457
  }
3431
3458
  //#endregion
3432
3459
  //#region src/hooks/use-grid-adapter.ts
3433
- function Do(e, t) {
3460
+ function ko(e, t) {
3434
3461
  let { id: n, name: r, description: i, url: a, icon: o } = t;
3435
- return We(() => {
3462
+ return Ue(() => {
3436
3463
  if (!Array.isArray(e) || e.length === 0) return [];
3437
3464
  let t = (e, t) => {
3438
3465
  if (typeof t == "function") return t(e);
@@ -3463,15 +3490,15 @@ function Do(e, t) {
3463
3490
  }
3464
3491
  //#endregion
3465
3492
  //#region src/contexts/breadcrumb.context.tsx
3466
- var Oo = Ve(void 0);
3467
- function ko({ children: e }) {
3468
- let [t, n] = Ge([]), r = He((e) => {
3493
+ var Ao = Be(void 0);
3494
+ function jo({ children: e }) {
3495
+ let [t, n] = We([]), r = Ve((e) => {
3469
3496
  n((t) => t.length > 0 && t[t.length - 1].label === e.label ? t : [...t, e]);
3470
- }, []), i = He(() => {
3497
+ }, []), i = Ve(() => {
3471
3498
  n((e) => e.slice(0, -1));
3472
- }, []), a = He((e = []) => {
3499
+ }, []), a = Ve((e = []) => {
3473
3500
  n(e);
3474
- }, []), o = We(() => ({
3501
+ }, []), o = Ue(() => ({
3475
3502
  items: t,
3476
3503
  setItems: n,
3477
3504
  pushItem: r,
@@ -3483,21 +3510,21 @@ function ko({ children: e }) {
3483
3510
  i,
3484
3511
  a
3485
3512
  ]);
3486
- return /* @__PURE__ */ H(Oo.Provider, {
3513
+ return /* @__PURE__ */ W(Ao.Provider, {
3487
3514
  value: o,
3488
3515
  children: e
3489
3516
  });
3490
3517
  }
3491
- var Ao = () => {
3492
- let e = Ue(Oo);
3518
+ var Mo = () => {
3519
+ let e = He(Ao);
3493
3520
  if (!e) throw Error("useBreadcrumb must be used within Provider");
3494
3521
  return e;
3495
- }, jo = () => Ue(Oo);
3522
+ }, No = () => He(Ao);
3496
3523
  //#endregion
3497
3524
  //#region src/hooks/use-sub-page-breadcrumb.ts
3498
- function Mo(e) {
3499
- let t = jo()?.setItems, n = V([]);
3500
- B(() => {
3525
+ function Po(e) {
3526
+ let t = No()?.setItems, n = U([]);
3527
+ H(() => {
3501
3528
  if (e === void 0 || !t) return;
3502
3529
  let r = typeof e == "string" ? [{ label: e }] : Array.isArray(e) ? e : [e], i = n.current;
3503
3530
  i.length === r.length && i.every((e, t) => e.label === r[t].label && e.href === r[t].href) || t((e) => {
@@ -3513,7 +3540,7 @@ function Mo(e) {
3513
3540
  ...o
3514
3541
  ];
3515
3542
  });
3516
- }, [e, t]), B(() => () => {
3543
+ }, [e, t]), H(() => () => {
3517
3544
  let e = n.current;
3518
3545
  e.length > 0 && t && t((t) => {
3519
3546
  let n = t.indexOf(e[0]);
@@ -3523,28 +3550,28 @@ function Mo(e) {
3523
3550
  }
3524
3551
  //#endregion
3525
3552
  //#region src/hooks/use-assistant-notifications.ts
3526
- var No = {
3553
+ var Fo = {
3527
3554
  loading: "working",
3528
3555
  success: "success",
3529
3556
  error: "error",
3530
3557
  warning: "attention",
3531
3558
  info: "attention"
3532
- }, Po = [
3559
+ }, Io = [
3533
3560
  "working",
3534
3561
  "error",
3535
3562
  "attention",
3536
3563
  "success"
3537
3564
  ];
3538
- function Fo(e) {
3565
+ function Lo(e) {
3539
3566
  let { title: t } = e;
3540
3567
  return typeof t == "string" ? t : typeof t == "number" ? String(t) : null;
3541
3568
  }
3542
- function Io() {
3543
- let { toasts: e } = yt(), t = e.filter((e) => !e.delete), n = "idle", r = null;
3544
- for (let e of Po) {
3545
- let i = t.find((t) => No[t.type ?? ""] === e);
3569
+ function Ro() {
3570
+ let { toasts: e } = xt(), t = e.filter((e) => !e.delete), n = "idle", r = null;
3571
+ for (let e of Io) {
3572
+ let i = t.find((t) => Fo[t.type ?? ""] === e);
3546
3573
  if (i) {
3547
- n = e, r = Fo(i);
3574
+ n = e, r = Lo(i);
3548
3575
  break;
3549
3576
  }
3550
3577
  }
@@ -3556,8 +3583,8 @@ function Io() {
3556
3583
  }
3557
3584
  //#endregion
3558
3585
  //#region src/lib/axios.ts
3559
- var Lo = "X-XSRF-TOKEN", Ro = "/csrf", $ = null, zo = Y.create({ withCredentials: !0 });
3560
- function Bo(e) {
3586
+ var zo = "X-XSRF-TOKEN", Bo = "/csrf", $ = null, Vo = Y.create({ withCredentials: !0 });
3587
+ function Ho(e) {
3561
3588
  return [
3562
3589
  "post",
3563
3590
  "put",
@@ -3565,58 +3592,58 @@ function Bo(e) {
3565
3592
  "patch"
3566
3593
  ].includes(e?.toLowerCase() || "");
3567
3594
  }
3568
- function Vo(e) {
3569
- return e ? typeof e == "object" && e && "get" in e && typeof e.get == "function" ? e.get(Lo) || null : typeof e == "object" && e && e[Lo.toLowerCase()] || null : null;
3595
+ function Uo(e) {
3596
+ return e ? typeof e == "object" && e && "get" in e && typeof e.get == "function" ? e.get(zo) || null : typeof e == "object" && e && e[zo.toLowerCase()] || null : null;
3570
3597
  }
3571
- function Ho(e, t) {
3598
+ function Wo(e, t) {
3572
3599
  if (typeof e.headers == "object" && e.headers !== null && "set" in e.headers && typeof e.headers.set == "function") {
3573
- e.headers.set(Lo, t);
3600
+ e.headers.set(zo, t);
3574
3601
  return;
3575
3602
  }
3576
3603
  let n = e.headers || {};
3577
- n[Lo] = t, e.headers = n;
3604
+ n[zo] = t, e.headers = n;
3578
3605
  }
3579
- function Uo() {
3580
- $ = null, Go = null;
3606
+ function Go() {
3607
+ $ = null, qo = null;
3581
3608
  }
3582
- function Wo() {
3609
+ function Ko() {
3583
3610
  let e = /(?:^|;\s*)XSRF-TOKEN=([^;]+)/.exec(globalThis.document.cookie);
3584
3611
  return e ? decodeURIComponent(e[1]) : null;
3585
3612
  }
3586
- var Go = null;
3587
- async function Ko() {
3588
- zo.defaults.baseURL = Y.defaults.baseURL;
3589
- let e = await zo.get(Ro), t = Vo(e.headers), n = typeof e.data == "object" && e.data !== null ? e.data.token : void 0, r = Wo();
3613
+ var qo = null;
3614
+ async function Jo() {
3615
+ Vo.defaults.baseURL = Y.defaults.baseURL;
3616
+ let e = await Vo.get(Bo), t = Uo(e.headers), n = typeof e.data == "object" && e.data !== null ? e.data.token : void 0, r = Ko();
3590
3617
  $ = t || n || r || null;
3591
3618
  }
3592
- async function qo() {
3619
+ async function Yo() {
3593
3620
  if (!$) {
3594
- if (!Go) {
3595
- let e = Ko().finally(() => {
3596
- Go === e && (Go = null);
3621
+ if (!qo) {
3622
+ let e = Jo().finally(() => {
3623
+ qo === e && (qo = null);
3597
3624
  });
3598
- Go = e;
3625
+ qo = e;
3599
3626
  }
3600
- await Go;
3627
+ await qo;
3601
3628
  }
3602
3629
  }
3603
- function Jo(e = {}) {
3630
+ function Xo(e = {}) {
3604
3631
  let t = e.loginPath ?? "/login";
3605
- e.baseURL && (Y.defaults.baseURL = e.baseURL), Y.defaults.withCredentials = !0, Y.defaults.xsrfCookieName = "XSRF-TOKEN", Y.defaults.xsrfHeaderName = Lo, Y.interceptors.request.use(async (e) => {
3632
+ e.baseURL && (Y.defaults.baseURL = e.baseURL), Y.defaults.withCredentials = !0, Y.defaults.xsrfCookieName = "XSRF-TOKEN", Y.defaults.xsrfHeaderName = zo, Y.interceptors.request.use(async (e) => {
3606
3633
  let t = e.url || "", n = e.baseURL || Y.defaults.baseURL;
3607
- if (zo.defaults.baseURL = n, t.includes(Ro) || !Bo(e.method)) return e;
3608
- if ($ || await qo(), !$) throw Error("Unable to obtain CSRF token for mutating request.");
3609
- return Ho(e, $), e;
3634
+ if (Vo.defaults.baseURL = n, t.includes(Bo) || !Ho(e.method)) return e;
3635
+ if ($ || await Yo(), !$) throw Error("Unable to obtain CSRF token for mutating request.");
3636
+ return Wo(e, $), e;
3610
3637
  }, (e) => Promise.reject(e)), Y.interceptors.response.use((e) => {
3611
- let t = Vo(e.headers);
3638
+ let t = Uo(e.headers);
3612
3639
  return t && ($ = t), e;
3613
3640
  }, async (e) => {
3614
- let n = Vo(e.response?.headers);
3641
+ let n = Uo(e.response?.headers);
3615
3642
  n && ($ = n);
3616
3643
  let r = e.config;
3617
- if (e.response?.status === 403 && r && !r._csrfRetried && Bo(r.method)) {
3618
- if (r._csrfRetried = !0, Uo(), zo.defaults.baseURL = r.baseURL || Y.defaults.baseURL, await qo(), !$) throw e;
3619
- return Ho(r, $), Y.request(r);
3644
+ if (e.response?.status === 403 && r && !r._csrfRetried && Ho(r.method)) {
3645
+ if (r._csrfRetried = !0, Go(), Vo.defaults.baseURL = r.baseURL || Y.defaults.baseURL, await Yo(), !$) throw e;
3646
+ return Wo(r, $), Y.request(r);
3620
3647
  }
3621
3648
  if (e.response?.status === 401 && !globalThis.location.pathname.startsWith(t)) {
3622
3649
  let e = globalThis.location.pathname + globalThis.location.search;
@@ -3627,15 +3654,15 @@ function Jo(e = {}) {
3627
3654
  }
3628
3655
  //#endregion
3629
3656
  //#region src/lib/export-xlsx.ts
3630
- var Yo = /[[\]:*?/\\]/g, Xo = 31;
3631
- function Zo(e) {
3632
- return e.replace(Yo, " ").trim().slice(0, Xo) || "Sheet1";
3657
+ var Zo = /[[\]:*?/\\]/g, Qo = 31;
3658
+ function $o(e) {
3659
+ return e.replace(Zo, " ").trim().slice(0, Qo) || "Sheet1";
3633
3660
  }
3634
- function Qo(e) {
3661
+ function es(e) {
3635
3662
  return Array.isArray(e) ? e.join(", ") : e instanceof Date ? e.toISOString() : e;
3636
3663
  }
3637
- function $o(e, t, n, r) {
3638
- let i = t.map((e) => e.label), a = e.map((e) => t.map((t) => Qo(e[t.key]))), o = wt.utils.aoa_to_sheet([i, ...a]);
3664
+ function ts(e, t, n, r) {
3665
+ let i = t.map((e) => e.label), a = e.map((e) => t.map((t) => es(e[t.key]))), o = Et.utils.aoa_to_sheet([i, ...a]);
3639
3666
  o["!cols"] = t.map((e, t) => {
3640
3667
  let n = e.label.length;
3641
3668
  for (let e of a) {
@@ -3644,8 +3671,8 @@ function $o(e, t, n, r) {
3644
3671
  }
3645
3672
  return { wch: Math.min(Math.max(n + 2, 12), 60) };
3646
3673
  });
3647
- let s = wt.utils.book_new();
3648
- wt.utils.book_append_sheet(s, o, Zo(r ?? n)), wt.writeFile(s, `${n}.xlsx`);
3674
+ let s = Et.utils.book_new();
3675
+ Et.utils.book_append_sheet(s, o, $o(r ?? n)), Et.writeFile(s, `${n}.xlsx`);
3649
3676
  }
3650
3677
  //#endregion
3651
- export { $t as Accordion, nn as AccordionContent, en as AccordionItem, tn as AccordionTrigger, to as AppFooter, no as AppSwitcher, rn as Avatar, on as AvatarFallback, an as AvatarImage, uo as BackendStatusBanner, lo as BackendStatusProvider, c as Badge, ee as BadgeColorful, x as BadgeLocale, sn as Breadcrumb, pn as BreadcrumbEllipsis, ln as BreadcrumbItem, un as BreadcrumbLink, cn as BreadcrumbList, dn as BreadcrumbPage, ko as BreadcrumbProvider, fn as BreadcrumbSeparator, R as Button, mn as Card, vn as CardAction, yn as CardContent, _n as CardDescription, bn as CardFooter, hn as CardHeader, gn as CardTitle, M as Checkbox, l as Dialog, h as DialogClose, S as DialogContent, u as DialogDescription, d as DialogFooter, y as DialogHeader, g as DialogOverlay, p as DialogPortal, f as DialogTitle, o as DialogTrigger, xn as Drawer, wn as DrawerClose, En as DrawerContent, An as DrawerDescription, On as DrawerFooter, Dn as DrawerHeader, Tn as DrawerOverlay, Cn as DrawerPortal, kn as DrawerTitle, Sn as DrawerTrigger, be as DropdownMenu, ie as DropdownMenuCheckboxItem, N as DropdownMenuContent, F as DropdownMenuGroup, D as DropdownMenuItem, A as DropdownMenuLabel, re as DropdownMenuPortal, ae as DropdownMenuRadioGroup, Pe as DropdownMenuRadioItem, T as DropdownMenuSeparator, le as DropdownMenuShortcut, k as DropdownMenuSub, ce as DropdownMenuSubContent, ue as DropdownMenuSubTrigger, O as DropdownMenuTrigger, fo as ErrorBoundary, Fe as FloatingFormulasBg, Mn as Form, Hn as FormActions, zn as FormControl, Bn as FormDescription, Pn as FormField, Ln as FormItem, Kn as FormItemTwoColumns, Rn as FormLabel, Vn as FormMessage, Xn as GlassCard, v as GradientButton, Jn as GradientSwitch, Qn as HoverCard, er as HoverCardContent, $n as HoverCardTrigger, w as IconPickerDialog, s as Input, jn as Label, mo as LanguageSelect, go as LanguageSwitcher, Ba as Login, yo as ModeToggle, xo as ModeToggleSidebar, So as NavSecondary, tr as NavigationMenu, or as NavigationMenuContent, lr as NavigationMenuIndicator, rr as NavigationMenuItem, cr as NavigationMenuLink, nr as NavigationMenuList, ar as NavigationMenuTrigger, sr as NavigationMenuViewport, ur as Pagination, dr as PaginationContent, gr as PaginationEllipsis, fr as PaginationItem, pr as PaginationLink, hr as PaginationNext, mr as PaginationPrevious, te as Popover, je as PopoverAnchor, se as PopoverContent, E as PopoverDescription, ne as PopoverHeader, P as PopoverTitle, xe as PopoverTrigger, _r as Progress, Zn as PulseRing, me as ResizableHandle, Me as ResizablePanel, oe as ResizablePanelGroup, Ae as SectionCard, vr as Select, Sr as SelectContent, yr as SelectGroup, wr as SelectItem, Cr as SelectLabel, Dr as SelectScrollDownButton, Er as SelectScrollUpButton, Tr as SelectSeparator, xr as SelectTrigger, br as SelectValue, Or as Separator, kr as Sheet, jr as SheetClose, Pr as SheetContent, Rr as SheetDescription, Ir as SheetFooter, Fr as SheetHeader, Lr as SheetTitle, Ar as SheetTrigger, Yr as Sidebar, ri as SidebarContent, ti as SidebarFooter, ii as SidebarGroup, oi as SidebarGroupAction, si as SidebarGroupContent, ai as SidebarGroupLabel, ei as SidebarHeader, $r as SidebarInput, Qr as SidebarInset, ci as SidebarMenu, fi as SidebarMenuAction, pi as SidebarMenuBadge, di as SidebarMenuButton, li as SidebarMenuItem, hi as SidebarMenuSkeleton, gi as SidebarMenuSub, vi as SidebarMenuSubButton, _i as SidebarMenuSubItem, Jr as SidebarProvider, Zr as SidebarRail, ni as SidebarSeparator, Xr as SidebarTrigger, m as Skeleton, Si as Slider, eo as StartupFirst, Mi as Stepper, bi as StickySaveBar, Fi as Switch, Ii as Table, Ri as TableBody, Ui as TableCaption, Hi as TableCell, zi as TableFooter, Vi as TableHead, Li as TableHeader, Bi as TableRow, De as Tabs, L as TabsContent, Se as TabsList, ke as TabsTrigger, Wi as Textarea, _o as ThemeProvider, he as Toaster, Ki as Toggle, Ji as ToggleGroup, Yi as ToggleGroupItem, Ce as Tooltip, ve as TooltipContent, _e as TooltipProvider, I as TooltipTrigger, ki as Tree, pe as UserAvatar, Ea as UserMenu, Oe as UserProvider, ma as VIGLET_ASSISTANT_SIZES, wo as VigletAppSwitcher, Ta as VigletAssistant, pa as VigletAvatar, C as badgeVariants, j as buttonVariants, r as cn, $o as exportToXlsx, t as getFlagEmoji, n as getHashedColor, _ as getLocaleCountryCode, Te as getUserInitials, b as gradientButtonVariants, qn as gradientSwitchVariants, ir as navigationMenuTriggerStyle, ao as reportBackendOffline, oo as reportBackendOnline, Ne as sectionCardColorVariants, Jo as setupAxiosInterceptors, ge as toast, Gi as toggleVariants, Ai as treeFromPaths, e as truncateMiddle, Io as useAssistantNotifications, co as useBackendStatus, Ao as useBreadcrumb, jo as useBreadcrumbOptional, we as useCurrentUser, Eo as useDateLocale, Fn as useFormField, Do as useGridAdapter, Ee as useIsMobile, Kr as useSidebar, qr as useSidebarOptional, Mo as useSubPageBreadcrumb, vo as useTheme };
3678
+ export { tn as Accordion, an as AccordionContent, nn as AccordionItem, rn as AccordionTrigger, ro as AppFooter, io as AppSwitcher, on as Avatar, cn as AvatarFallback, sn as AvatarImage, po as BackendStatusBanner, fo as BackendStatusProvider, c as Badge, b as BadgeColorful, S as BadgeLocale, ln as Breadcrumb, hn as BreadcrumbEllipsis, dn as BreadcrumbItem, fn as BreadcrumbLink, un as BreadcrumbList, pn as BreadcrumbPage, jo as BreadcrumbProvider, mn as BreadcrumbSeparator, z as Button, gn as Card, bn as CardAction, xn as CardContent, yn as CardDescription, Sn as CardFooter, _n as CardHeader, vn as CardTitle, M as Checkbox, l as Dialog, h as DialogClose, C as DialogContent, u as DialogDescription, d as DialogFooter, y as DialogHeader, g as DialogOverlay, p as DialogPortal, f as DialogTitle, o as DialogTrigger, Cn as Drawer, En as DrawerClose, On as DrawerContent, Mn as DrawerDescription, An as DrawerFooter, kn as DrawerHeader, Dn as DrawerOverlay, Tn as DrawerPortal, jn as DrawerTitle, wn as DrawerTrigger, I as DropdownMenu, ne as DropdownMenuCheckboxItem, O as DropdownMenuContent, j as DropdownMenuGroup, P as DropdownMenuItem, ie as DropdownMenuLabel, Ne as DropdownMenuPortal, ee as DropdownMenuRadioGroup, R as DropdownMenuRadioItem, A as DropdownMenuSeparator, se as DropdownMenuShortcut, ce as DropdownMenuSub, k as DropdownMenuSubContent, N as DropdownMenuSubTrigger, Te as DropdownMenuTrigger, mo as ErrorBoundary, Pe as FloatingFormulasBg, Pn as Form, Wn as FormActions, Vn as FormControl, Hn as FormDescription, In as FormField, zn as FormItem, Jn as FormItemTwoColumns, Bn as FormLabel, Un as FormMessage, Qn as GlassCard, v as GradientButton, Xn as GradientSwitch, er as HoverCard, nr as HoverCardContent, tr as HoverCardTrigger, F as IconPickerDialog, s as Input, Nn as Label, go as LanguageSelect, vo as LanguageSwitcher, Ha as Login, xo as ModeToggle, Co as ModeToggleSidebar, wo as NavSecondary, rr as NavigationMenu, cr as NavigationMenuContent, dr as NavigationMenuIndicator, ar as NavigationMenuItem, ur as NavigationMenuLink, ir as NavigationMenuList, sr as NavigationMenuTrigger, lr as NavigationMenuViewport, fr as Pagination, pr as PaginationContent, vr as PaginationEllipsis, mr as PaginationItem, hr as PaginationLink, _r as PaginationNext, gr as PaginationPrevious, oe as Popover, D as PopoverAnchor, E as PopoverContent, L as PopoverDescription, ye as PopoverHeader, T as PopoverTitle, ve as PopoverTrigger, yr as Progress, $n as PulseRing, ae as ResizableHandle, te as ResizablePanel, Ae as ResizablePanelGroup, fe as SectionCard, br as Select, wr as SelectContent, xr as SelectGroup, Er as SelectItem, Tr as SelectLabel, kr as SelectScrollDownButton, Or as SelectScrollUpButton, Dr as SelectSeparator, Cr as SelectTrigger, Sr as SelectValue, Ar as Separator, jr as Sheet, Nr as SheetClose, Ir as SheetContent, Br as SheetDescription, Rr as SheetFooter, Lr as SheetHeader, zr as SheetTitle, Mr as SheetTrigger, Zr as Sidebar, ai as SidebarContent, ri as SidebarFooter, oi as SidebarGroup, ci as SidebarGroupAction, li as SidebarGroupContent, si as SidebarGroupLabel, ni as SidebarHeader, ti as SidebarInput, ei as SidebarInset, ui as SidebarMenu, mi as SidebarMenuAction, hi as SidebarMenuBadge, pi as SidebarMenuButton, di as SidebarMenuItem, _i as SidebarMenuSkeleton, vi as SidebarMenuSub, bi as SidebarMenuSubButton, yi as SidebarMenuSubItem, Xr as SidebarProvider, $r as SidebarRail, ii as SidebarSeparator, Qr as SidebarTrigger, m as Skeleton, wi as Slider, no as StartupFirst, Pi as Stepper, Si as StickySaveBar, Li as Switch, Ri as Table, Bi as TableBody, Gi as TableCaption, Wi as TableCell, Vi as TableFooter, Ui as TableHead, zi as TableHeader, Hi as TableRow, be as Tabs, Oe as TabsContent, me as TabsList, he as TabsTrigger, Ki as Textarea, yo as ThemeProvider, we as Toaster, Ji as Toggle, Xi as ToggleGroup, Zi as ToggleGroupItem, ge as Tooltip, de as TooltipContent, ke as TooltipProvider, Me as TooltipTrigger, ji as Tree, Ee as UserAvatar, Oa as UserMenu, De as UserProvider, ga as VIGLET_ASSISTANT_SIZES, Eo as VigletAppSwitcher, Da as VigletAssistant, ha as VigletAvatar, w as badgeVariants, le as buttonVariants, r as cn, ts as exportToXlsx, t as getFlagEmoji, n as getHashedColor, _ as getLocaleCountryCode, pe as getUserInitials, x as gradientButtonVariants, Yn as gradientSwitchVariants, or as navigationMenuTriggerStyle, so as reportBackendOffline, co as reportBackendOnline, je as sectionCardColorVariants, Xo as setupAxiosInterceptors, xe as toast, qi as toggleVariants, Mi as treeFromPaths, e as truncateMiddle, Ro as useAssistantNotifications, uo as useBackendStatus, Mo as useBreadcrumb, No as useBreadcrumbOptional, Se as useCurrentUser, Oo as useDateLocale, Ln as useFormField, ko as useGridAdapter, _e as useIsMobile, Jr as useSidebar, Yr as useSidebarOptional, Po as useSubPageBreadcrumb, bo as useTheme };