@a4ui/core 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,75 +1,75 @@
1
- import { clsx as ht } from "clsx";
2
- import { twMerge as bt } from "tailwind-merge";
3
- import { createSignal as j, createEffect as pe, untrack as He, onCleanup as _e, onMount as Xe, For as O, splitProps as L, createMemo as De, Show as $, ErrorBoundary as xt, Suspense as vt } from "solid-js";
4
- import { createComponent as r, memo as ae, template as d, spread as I, mergeProps as A, insert as a, effect as S, className as X, Portal as pt, setStyleProperty as le, use as Y, delegateEvents as ee, setAttribute as B, classList as $t, Dynamic as yt, addEventListener as wt } from "solid-js/web";
5
- import { Accordion as ce } from "@kobalte/core/accordion";
6
- import { CalendarDays as _t, ChevronLeft as qe, ChevronRight as Ue, X as Ke, UploadCloud as kt, CircleX as Ct, TriangleAlert as St, CircleCheck as Tt, Info as Mt, ChevronsUpDown as Et, Check as Ft, Satellite as Lt, Moon as It, Sun as At, Sparkles as Dt } from "lucide-solid";
7
- import { Dialog as F } from "@kobalte/core/dialog";
1
+ import { clsx as bt } from "clsx";
2
+ import { twMerge as xt } from "tailwind-merge";
3
+ import { createSignal as z, createEffect as pe, untrack as He, onCleanup as $e, onMount as Me, For as R, splitProps as E, createMemo as Re, Show as $, ErrorBoundary as vt, Suspense as pt } from "solid-js";
4
+ import { createComponent as r, memo as oe, template as u, spread as F, mergeProps as L, insert as i, effect as S, className as Y, Portal as $t, setStyleProperty as ne, use as N, delegateEvents as J, setAttribute as P, classList as yt, Dynamic as wt, addEventListener as _t } from "solid-js/web";
5
+ import { Accordion as ie } from "@kobalte/core/accordion";
6
+ import { CalendarDays as kt, ChevronLeft as qe, ChevronRight as Ue, X as Ke, UploadCloud as Ct, CircleX as St, TriangleAlert as Tt, CircleCheck as Mt, Info as Et, ChevronsUpDown as Ft, Check as Lt, Satellite as It, Moon as At, Sun as Dt, Sparkles as Rt } from "lucide-solid";
7
+ import { Dialog as M } from "@kobalte/core/dialog";
8
8
  import { DropdownMenu as de } from "@kobalte/core/dropdown-menu";
9
- import { Motion as Rt } from "solid-motionone";
10
- import { createVirtualizer as zt } from "@tanstack/solid-virtual";
11
- import { Tabs as se } from "@kobalte/core/tabs";
12
- import { Toast as oe, toaster as Ot } from "@kobalte/core/toast";
13
- import { Switch as ue } from "@kobalte/core/switch";
14
- import { RadioGroup as W } from "@kobalte/core/radio-group";
15
- import { Tooltip as ge } from "@kobalte/core/tooltip";
16
- import { Popover as fe } from "@kobalte/core/popover";
17
- import { HoverCard as me } from "@kobalte/core/hover-card";
18
- import { Alert as Pt } from "@kobalte/core/alert";
9
+ import { Motion as zt } from "solid-motionone";
10
+ import { createVirtualizer as Pt } from "@tanstack/solid-virtual";
11
+ import { Tabs as ce } from "@kobalte/core/tabs";
12
+ import { Toast as re, toaster as Ot } from "@kobalte/core/toast";
13
+ import { Switch as se } from "@kobalte/core/switch";
14
+ import { RadioGroup as Z } from "@kobalte/core/radio-group";
15
+ import { Tooltip as ue } from "@kobalte/core/tooltip";
16
+ import { Popover as ge } from "@kobalte/core/popover";
17
+ import { HoverCard as fe } from "@kobalte/core/hover-card";
18
+ import { Alert as jt } from "@kobalte/core/alert";
19
19
  import { Image as ke } from "@kobalte/core/image";
20
- import { Separator as jt } from "@kobalte/core/separator";
21
- import { Progress as he } from "@kobalte/core/progress";
22
- import { Meter as be } from "@kobalte/core/meter";
23
- import { Slider as Q } from "@kobalte/core/slider";
24
- import { NumberField as $e } from "@kobalte/core/number-field";
25
- import { ToggleButton as Bt } from "@kobalte/core/toggle-button";
26
- import { ToggleGroup as Re } from "@kobalte/core/toggle-group";
27
- import { SegmentedControl as xe } from "@kobalte/core/segmented-control";
20
+ import { Separator as Bt } from "@kobalte/core/separator";
21
+ import { Progress as me } from "@kobalte/core/progress";
22
+ import { Meter as he } from "@kobalte/core/meter";
23
+ import { Slider as W } from "@kobalte/core/slider";
24
+ import { NumberField as we } from "@kobalte/core/number-field";
25
+ import { ToggleButton as Nt } from "@kobalte/core/toggle-button";
26
+ import { ToggleGroup as ze } from "@kobalte/core/toggle-group";
27
+ import { SegmentedControl as be } from "@kobalte/core/segmented-control";
28
28
  import { Breadcrumbs as Ce } from "@kobalte/core/breadcrumbs";
29
- import { AlertDialog as ne } from "@kobalte/core/alert-dialog";
30
- import { ContextMenu as ve } from "@kobalte/core/context-menu";
31
- import { Combobox as N } from "@kobalte/core/combobox";
32
- import { Transition as Nt } from "solid-transition-group";
33
- function g(...e) {
34
- return bt(ht(e));
29
+ import { AlertDialog as te } from "@kobalte/core/alert-dialog";
30
+ import { ContextMenu as xe } from "@kobalte/core/context-menu";
31
+ import { Combobox as B } from "@kobalte/core/combobox";
32
+ import { Transition as Vt } from "solid-transition-group";
33
+ function f(...e) {
34
+ return xt(bt(e));
35
35
  }
36
36
  const Ze = "a4ui-theme";
37
- function Vt(e) {
37
+ function Yt(e) {
38
38
  return e === "dark" || e === "light";
39
39
  }
40
- function Je() {
40
+ function We() {
41
41
  try {
42
42
  return window.localStorage;
43
43
  } catch {
44
44
  return null;
45
45
  }
46
46
  }
47
- function Yt() {
47
+ function Gt() {
48
48
  var t;
49
- const e = ((t = Je()) == null ? void 0 : t.getItem(Ze)) ?? null;
50
- return Vt(e) ? e : "dark";
49
+ const e = ((t = We()) == null ? void 0 : t.getItem(Ze)) ?? null;
50
+ return Yt(e) ? e : "dark";
51
51
  }
52
- function We(e) {
52
+ function Je(e) {
53
53
  if (typeof document > "u") return;
54
54
  const t = document.documentElement;
55
55
  e === "light" ? t.setAttribute("data-theme", "light") : t.removeAttribute("data-theme");
56
56
  }
57
- function Gt(e) {
57
+ function Xt(e) {
58
58
  var t;
59
- (t = Je()) == null || t.setItem(Ze, e), We(e);
59
+ (t = We()) == null || t.setItem(Ze, e), Je(e);
60
60
  }
61
61
  function Ht(e) {
62
62
  return e === "dark" ? "light" : "dark";
63
63
  }
64
- const Qe = Yt();
65
- We(Qe);
66
- const [et, Xt] = j(Qe);
64
+ const Qe = Gt();
65
+ Je(Qe);
66
+ const [et, qt] = z(Qe);
67
67
  function tt() {
68
68
  return et;
69
69
  }
70
- function qt() {
70
+ function Ut() {
71
71
  const e = Ht(et());
72
- Gt(e), Xt(e);
72
+ Xt(e), qt(e);
73
73
  }
74
74
  const rt = "a4ui-effects";
75
75
  function nt() {
@@ -79,7 +79,7 @@ function nt() {
79
79
  return null;
80
80
  }
81
81
  }
82
- function Ut() {
82
+ function Kt() {
83
83
  var t;
84
84
  try {
85
85
  if (new URLSearchParams(window.location.search).get("calm") === "1") return !1;
@@ -91,85 +91,85 @@ function Ut() {
91
91
  function ot(e) {
92
92
  typeof document > "u" || document.documentElement.classList.toggle("calm", !e);
93
93
  }
94
- const lt = Ut();
94
+ const lt = Kt();
95
95
  ot(lt);
96
- const [at, Kt] = j(lt);
97
- function Zt() {
96
+ const [at, Zt] = z(lt);
97
+ function Wt() {
98
98
  return at;
99
99
  }
100
100
  function Jt() {
101
101
  return !at();
102
102
  }
103
- function Wt(e) {
103
+ function Qt(e) {
104
104
  var t;
105
- (t = nt()) == null || t.setItem(rt, e ? "1" : "0"), ot(e), Kt(e);
105
+ (t = nt()) == null || t.setItem(rt, e ? "1" : "0"), ot(e), Zt(e);
106
106
  }
107
- const Qt = "(prefers-reduced-motion: reduce)";
107
+ const er = "(prefers-reduced-motion: reduce)";
108
108
  function it() {
109
- return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(Qt).matches;
109
+ return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(er).matches;
110
110
  }
111
- const ct = "a4ui-motion-forced";
112
- function dt() {
111
+ const dt = "a4ui-motion-forced";
112
+ function ct() {
113
113
  try {
114
114
  return window.localStorage;
115
115
  } catch {
116
116
  return null;
117
117
  }
118
118
  }
119
- var Ge;
120
- const [Me, er] = j(((Ge = dt()) == null ? void 0 : Ge.getItem(ct)) === "1");
121
- typeof document < "u" && document.documentElement.classList.toggle("force-motion", He(Me));
122
- function _o() {
123
- return Me;
119
+ var Xe;
120
+ const [Ee, tr] = z(((Xe = ct()) == null ? void 0 : Xe.getItem(dt)) === "1");
121
+ typeof document < "u" && document.documentElement.classList.toggle("force-motion", He(Ee));
122
+ function Co() {
123
+ return Ee;
124
124
  }
125
- function ko(e) {
125
+ function So(e) {
126
126
  var t;
127
- (t = dt()) == null || t.setItem(ct, e ? "1" : "0"), typeof document < "u" && document.documentElement.classList.toggle("force-motion", e), er(e);
127
+ (t = ct()) == null || t.setItem(dt, e ? "1" : "0"), typeof document < "u" && document.documentElement.classList.toggle("force-motion", e), tr(e);
128
128
  }
129
- function we() {
130
- return Jt() || it() && !Me();
129
+ function ve() {
130
+ return Jt() || it() && !Ee();
131
131
  }
132
- const tr = (e) => 1 - (1 - e) ** 3;
133
- function rr(e, t = 600) {
134
- const [o, n] = j(0);
132
+ const rr = (e) => 1 - (1 - e) ** 3;
133
+ function nr(e, t = 600) {
134
+ const [o, n] = z(0);
135
135
  let l;
136
136
  return pe(() => {
137
- const i = e();
138
- if (we()) {
139
- l !== void 0 && cancelAnimationFrame(l), n(i);
137
+ const a = e();
138
+ if (ve()) {
139
+ l !== void 0 && cancelAnimationFrame(l), n(a);
140
140
  return;
141
141
  }
142
- const c = He(o);
143
- if (c === i) return;
142
+ const d = He(o);
143
+ if (d === a) return;
144
144
  l !== void 0 && cancelAnimationFrame(l);
145
- const u = performance.now(), m = (s) => {
146
- const b = s - u, y = Math.min(1, b / t);
147
- n(c + (i - c) * tr(y)), l = y < 1 ? requestAnimationFrame(m) : void 0;
145
+ const c = performance.now(), g = (s) => {
146
+ const m = s - c, h = Math.min(1, m / t);
147
+ n(d + (a - d) * rr(h)), l = h < 1 ? requestAnimationFrame(g) : void 0;
148
148
  };
149
- l = requestAnimationFrame(m);
150
- }), _e(() => {
149
+ l = requestAnimationFrame(g);
150
+ }), $e(() => {
151
151
  l !== void 0 && cancelAnimationFrame(l);
152
152
  }), o;
153
153
  }
154
- function Co(e) {
155
- const t = typeof window < "u" ? window.matchMedia(e) : null, [o, n] = j(t ? t.matches : !1);
154
+ function To(e) {
155
+ const t = typeof window < "u" ? window.matchMedia(e) : null, [o, n] = z(t ? t.matches : !1);
156
156
  if (t) {
157
- const l = (i) => n(i.matches);
158
- t.addEventListener("change", l), _e(() => t.removeEventListener("change", l));
157
+ const l = (a) => n(a.matches);
158
+ t.addEventListener("change", l), $e(() => t.removeEventListener("change", l));
159
159
  }
160
160
  return o;
161
161
  }
162
- function nr(e, t) {
163
- Xe(() => {
162
+ function or(e, t) {
163
+ Me(() => {
164
164
  requestAnimationFrame(() => {
165
165
  const o = e();
166
166
  o && (t(void 0), t(o));
167
167
  });
168
168
  });
169
169
  }
170
- var or = /* @__PURE__ */ d('<svg class="h-3.5 w-3.5 shrink-0 transition-transform duration-200"viewBox="0 0 20 20"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M7 5l6 5-6 5">');
171
- function So(e) {
172
- return r(ce, {
170
+ var lr = /* @__PURE__ */ u('<svg class="h-3.5 w-3.5 shrink-0 transition-transform duration-200"viewBox="0 0 20 20"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M7 5l6 5-6 5">');
171
+ function Mo(e) {
172
+ return r(ie, {
173
173
  get multiple() {
174
174
  return e.multiple ?? !1;
175
175
  },
@@ -177,26 +177,26 @@ function So(e) {
177
177
  return e.class;
178
178
  },
179
179
  get children() {
180
- return r(O, {
180
+ return r(R, {
181
181
  get each() {
182
182
  return e.items;
183
183
  },
184
- children: (t) => r(ce.Item, {
184
+ children: (t) => r(ie.Item, {
185
185
  get value() {
186
186
  return t.value;
187
187
  },
188
188
  class: "border-b border-border",
189
189
  get children() {
190
- return [r(ce.Header, {
190
+ return [r(ie.Header, {
191
191
  get children() {
192
- return r(ce.Trigger, {
192
+ return r(ie.Trigger, {
193
193
  class: "flex w-full items-center justify-between py-3 text-sm font-medium text-foreground [&[data-expanded]>svg]:rotate-90",
194
194
  get children() {
195
- return [ae(() => t.title), or()];
195
+ return [oe(() => t.title), lr()];
196
196
  }
197
197
  });
198
198
  }
199
- }), r(ce.Content, {
199
+ }), r(ie.Content, {
200
200
  class: "pb-3 text-sm text-muted-foreground",
201
201
  get children() {
202
202
  return t.content;
@@ -208,219 +208,219 @@ function So(e) {
208
208
  }
209
209
  });
210
210
  }
211
- var lr = /* @__PURE__ */ d("<span>");
212
- const ar = {
211
+ var ar = /* @__PURE__ */ u("<span>");
212
+ const ir = {
213
213
  neutral: "bg-muted text-muted-foreground ring-border",
214
214
  success: "bg-emerald-500/15 text-emerald-600 ring-emerald-500/30",
215
215
  warning: "bg-amber-500/15 text-amber-600 ring-amber-500/30",
216
216
  danger: "bg-rose-500/15 text-rose-600 ring-rose-500/30",
217
217
  info: "bg-sky-500/15 text-sky-600 ring-sky-500/30"
218
- }, ir = "badge inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-semibold ring-1 ring-inset whitespace-nowrap";
219
- function To(e) {
220
- const [t, o] = L(e, ["tone", "class", "children"]);
218
+ }, dr = "badge inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-semibold ring-1 ring-inset whitespace-nowrap";
219
+ function Eo(e) {
220
+ const [t, o] = E(e, ["tone", "class", "children"]);
221
221
  return (() => {
222
- var n = lr();
223
- return I(n, A({
222
+ var n = ar();
223
+ return F(n, L({
224
224
  get class() {
225
- return g(ir, ar[t.tone ?? "neutral"], t.class);
225
+ return f(dr, ir[t.tone ?? "neutral"], t.class);
226
226
  }
227
- }, o), !1, !0), a(n, () => t.children), n;
227
+ }, o), !1, !0), i(n, () => t.children), n;
228
228
  })();
229
229
  }
230
- var cr = /* @__PURE__ */ d("<button>");
231
- const dr = {
230
+ var cr = /* @__PURE__ */ u("<button>");
231
+ const sr = {
232
232
  primary: "bg-primary text-primary-foreground hover:bg-primary/90",
233
233
  secondary: "bg-muted text-foreground hover:bg-muted/70",
234
234
  outline: "border border-border bg-transparent text-foreground hover:bg-muted",
235
235
  ghost: "bg-transparent text-foreground hover:bg-muted"
236
- }, sr = "inline-flex items-center justify-center rounded-md px-3 py-2 text-sm font-medium transition-[color,background-color,transform] duration-150 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none disabled:opacity-50";
237
- function ze(e) {
238
- const [t, o] = L(e, ["variant", "class", "type", "children"]);
236
+ }, ur = "inline-flex items-center justify-center rounded-md px-3 py-2 text-sm font-medium transition-[color,background-color,transform] duration-150 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none disabled:opacity-50";
237
+ function Pe(e) {
238
+ const [t, o] = E(e, ["variant", "class", "type", "children"]);
239
239
  return (() => {
240
240
  var n = cr();
241
- return I(n, A({
241
+ return F(n, L({
242
242
  get type() {
243
243
  return t.type ?? "button";
244
244
  },
245
245
  get class() {
246
- return g(sr, dr[t.variant ?? "primary"], t.class);
246
+ return f(ur, sr[t.variant ?? "primary"], t.class);
247
247
  }
248
- }, o), !1, !0), a(n, () => t.children), n;
248
+ }, o), !1, !0), i(n, () => t.children), n;
249
249
  })();
250
250
  }
251
- var Ee = /* @__PURE__ */ d("<div>"), ur = /* @__PURE__ */ d("<h2>");
252
- function gr(e) {
253
- const [t, o] = L(e, ["class", "children", "glass", "glow"]), n = () => (t.glow ?? t.glass) === !0;
251
+ var Fe = /* @__PURE__ */ u("<div>"), gr = /* @__PURE__ */ u("<h2>");
252
+ function fr(e) {
253
+ const [t, o] = E(e, ["class", "children", "glass", "glow"]), n = () => (t.glow ?? t.glass) === !0;
254
254
  return (() => {
255
- var l = Ee();
256
- return I(l, A({
255
+ var l = Fe();
256
+ return F(l, L({
257
257
  get class() {
258
- return g(t.glass ? "card rounded-xl text-card-foreground" : "rounded-xl border border-border bg-card text-card-foreground shadow-sm", n() && "glow-edge", t.class);
258
+ return f(t.glass ? "card rounded-xl text-card-foreground" : "rounded-xl border border-border bg-card text-card-foreground shadow-sm", n() && "glow-edge", t.class);
259
259
  }
260
- }, o), !1, !0), a(l, () => t.children), l;
260
+ }, o), !1, !0), i(l, () => t.children), l;
261
261
  })();
262
262
  }
263
- function Mo(e) {
264
- const [t, o] = L(e, ["class", "children"]);
263
+ function Fo(e) {
264
+ const [t, o] = E(e, ["class", "children"]);
265
265
  return (() => {
266
- var n = Ee();
267
- return I(n, A({
266
+ var n = Fe();
267
+ return F(n, L({
268
268
  get class() {
269
- return g("flex flex-col space-y-1.5 p-6", t.class);
269
+ return f("flex flex-col space-y-1.5 p-6", t.class);
270
270
  }
271
- }, o), !1, !0), a(n, () => t.children), n;
271
+ }, o), !1, !0), i(n, () => t.children), n;
272
272
  })();
273
273
  }
274
- function Eo(e) {
275
- const [t, o] = L(e, ["class", "children"]);
274
+ function Lo(e) {
275
+ const [t, o] = E(e, ["class", "children"]);
276
276
  return (() => {
277
- var n = ur();
278
- return I(n, A({
277
+ var n = gr();
278
+ return F(n, L({
279
279
  get class() {
280
- return g("text-lg font-semibold leading-none tracking-tight", t.class);
280
+ return f("text-lg font-semibold leading-none tracking-tight", t.class);
281
281
  }
282
- }, o), !1, !0), a(n, () => t.children), n;
282
+ }, o), !1, !0), i(n, () => t.children), n;
283
283
  })();
284
284
  }
285
- function fr(e) {
286
- const [t, o] = L(e, ["class", "children"]);
285
+ function mr(e) {
286
+ const [t, o] = E(e, ["class", "children"]);
287
287
  return (() => {
288
- var n = Ee();
289
- return I(n, A({
288
+ var n = Fe();
289
+ return F(n, L({
290
290
  get class() {
291
- return g("p-6 pt-0", t.class);
291
+ return f("p-6 pt-0", t.class);
292
292
  }
293
- }, o), !1, !0), a(n, () => t.children), n;
293
+ }, o), !1, !0), i(n, () => t.children), n;
294
294
  })();
295
295
  }
296
- var mr = /* @__PURE__ */ d('<label><input type=checkbox class="h-4 w-4 rounded border-input">');
297
- function Fo(e) {
296
+ var hr = /* @__PURE__ */ u('<label><input type=checkbox class="h-4 w-4 rounded border-input">');
297
+ function Io(e) {
298
298
  return (() => {
299
- var t = mr(), o = t.firstChild;
300
- return o.addEventListener("change", (n) => e.onChange(n.currentTarget.checked)), a(t, () => e.label, null), S(() => X(t, g("inline-flex items-center gap-2 text-sm text-foreground", e.class))), S(() => o.checked = e.checked), t;
299
+ var t = hr(), o = t.firstChild;
300
+ return o.addEventListener("change", (n) => e.onChange(n.currentTarget.checked)), i(t, () => e.label, null), S(() => Y(t, f("inline-flex items-center gap-2 text-sm text-foreground", e.class))), S(() => o.checked = e.checked), t;
301
301
  })();
302
302
  }
303
- var hr = /* @__PURE__ */ d('<div class="z-50 w-72 rounded-lg border border-border bg-card p-3 text-card-foreground shadow-lg"style=position:fixed><div class="mb-2 flex items-center justify-between"><button type=button aria-label="Previous month"class="rounded-md p-1 text-foreground transition-colors hover:bg-muted"></button><span class="text-sm font-medium capitalize text-foreground"> </span><button type=button aria-label="Next month"class="rounded-md p-1 text-foreground transition-colors hover:bg-muted"></button></div><div class="mb-1 grid grid-cols-7 gap-0.5 text-center text-[11px] font-medium text-muted-foreground"></div><div class="grid grid-cols-7 gap-0.5">'), br = /* @__PURE__ */ d('<div><button type=button class="flex w-full items-center justify-between gap-2 rounded-md border border-input bg-background px-3 py-2 text-left text-sm text-foreground outline-none transition-colors focus:border-ring focus:ring-2 focus:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50"><span>'), xr = /* @__PURE__ */ d("<span>"), vr = /* @__PURE__ */ d("<button type=button>");
304
- const pr = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], Se = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
305
- function $r(e) {
303
+ var br = /* @__PURE__ */ u('<div class="z-50 w-72 rounded-lg border border-border bg-card p-3 text-card-foreground shadow-lg"style=position:fixed><div class="mb-2 flex items-center justify-between"><button type=button aria-label="Previous month"class="rounded-md p-1 text-foreground transition-colors hover:bg-muted"></button><span class="text-sm font-medium capitalize text-foreground"> </span><button type=button aria-label="Next month"class="rounded-md p-1 text-foreground transition-colors hover:bg-muted"></button></div><div class="mb-1 grid grid-cols-7 gap-0.5 text-center text-[11px] font-medium text-muted-foreground"></div><div class="grid grid-cols-7 gap-0.5">'), xr = /* @__PURE__ */ u('<div><button type=button class="flex w-full items-center justify-between gap-2 rounded-md border border-input bg-background px-3 py-2 text-left text-sm text-foreground outline-none transition-colors focus:border-ring focus:ring-2 focus:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50"><span>'), vr = /* @__PURE__ */ u("<span>"), pr = /* @__PURE__ */ u("<button type=button>");
304
+ const $r = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"], Se = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
305
+ function yr(e) {
306
306
  const t = e.getFullYear(), o = `${e.getMonth() + 1}`.padStart(2, "0"), n = `${e.getDate()}`.padStart(2, "0");
307
307
  return `${t}-${o}-${n}`;
308
308
  }
309
- function ye(e) {
309
+ function _e(e) {
310
310
  const t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
311
311
  return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3])) : null;
312
312
  }
313
313
  function Oe(e, t) {
314
- const o = ye(e);
314
+ const o = _e(e);
315
315
  return o ? `${o.getDate()} ${t[o.getMonth()].slice(0, 3)} ${o.getFullYear()}` : null;
316
316
  }
317
- function Pe(e, t) {
317
+ function je(e, t) {
318
318
  return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
319
319
  }
320
- function Lo(e) {
321
- const [t, o] = j(!1), n = ye(e.value) ?? /* @__PURE__ */ new Date(), [l, i] = j(n.getFullYear()), [c, u] = j(n.getMonth());
322
- let m, s, b;
323
- const [y, M] = j({
320
+ function Ao(e) {
321
+ const [t, o] = z(!1), n = _e(e.value) ?? /* @__PURE__ */ new Date(), [l, a] = z(n.getFullYear()), [d, c] = z(n.getMonth());
322
+ let g, s, m;
323
+ const [h, w] = z({
324
324
  top: 0,
325
325
  left: 0
326
- }), k = 288, E = () => {
326
+ }), v = 288, _ = () => {
327
327
  if (!s) return;
328
- const f = s.getBoundingClientRect(), C = Math.max(8, Math.min(f.left, window.innerWidth - k - 8));
329
- M({
330
- top: f.bottom + 4,
328
+ const x = s.getBoundingClientRect(), C = Math.max(8, Math.min(x.left, window.innerWidth - v - 8));
329
+ w({
330
+ top: x.bottom + 4,
331
331
  left: C
332
332
  });
333
- }, P = () => {
333
+ }, T = () => {
334
334
  if (e.disabled) return;
335
- const f = ye(e.value) ?? /* @__PURE__ */ new Date();
336
- i(f.getFullYear()), u(f.getMonth()), E(), o(!0);
337
- }, V = () => o(!1), h = (f) => {
338
- const C = f.target;
339
- m && !m.contains(C) && b && !b.contains(C) && V();
340
- }, w = (f) => {
341
- f.key === "Escape" && V();
342
- }, v = (f) => {
343
- f ? (document.addEventListener("mousedown", h), document.addEventListener("keydown", w), window.addEventListener("scroll", V, !0), window.addEventListener("resize", V)) : (document.removeEventListener("mousedown", h), document.removeEventListener("keydown", w), window.removeEventListener("scroll", V, !0), window.removeEventListener("resize", V));
335
+ const x = _e(e.value) ?? /* @__PURE__ */ new Date();
336
+ a(x.getFullYear()), c(x.getMonth()), _(), o(!0);
337
+ }, I = () => o(!1), b = (x) => {
338
+ const C = x.target;
339
+ g && !g.contains(C) && m && !m.contains(C) && I();
340
+ }, y = (x) => {
341
+ x.key === "Escape" && I();
342
+ }, p = (x) => {
343
+ x ? (document.addEventListener("mousedown", b), document.addEventListener("keydown", y), window.addEventListener("scroll", I, !0), window.addEventListener("resize", I)) : (document.removeEventListener("mousedown", b), document.removeEventListener("keydown", y), window.removeEventListener("scroll", I, !0), window.removeEventListener("resize", I));
344
344
  };
345
- pe(() => v(t())), _e(() => v(!1));
346
- const x = () => {
347
- const f = c();
348
- f === 0 ? (u(11), i(l() - 1)) : u(f - 1);
349
- }, _ = () => {
350
- const f = c();
351
- f === 11 ? (u(0), i(l() + 1)) : u(f + 1);
352
- }, T = De(() => {
353
- const C = (new Date(l(), c(), 1).getDay() + 6) % 7, R = new Date(l(), c(), 1 - C), U = [];
354
- for (let te = 0; te < 42; te++)
355
- U.push(new Date(R.getFullYear(), R.getMonth(), R.getDate() + te));
356
- return U;
357
- }), p = De(() => ye(e.value)), G = /* @__PURE__ */ new Date(), q = (f) => {
358
- e.onChange($r(f)), V();
345
+ pe(() => p(t())), $e(() => p(!1));
346
+ const O = () => {
347
+ const x = d();
348
+ x === 0 ? (c(11), a(l() - 1)) : c(x - 1);
349
+ }, G = () => {
350
+ const x = d();
351
+ x === 11 ? (c(0), a(l() + 1)) : c(x + 1);
352
+ }, X = Re(() => {
353
+ const C = (new Date(l(), d(), 1).getDay() + 6) % 7, j = new Date(l(), d(), 1 - C), H = [];
354
+ for (let Q = 0; Q < 42; Q++)
355
+ H.push(new Date(j.getFullYear(), j.getMonth(), j.getDate() + Q));
356
+ return H;
357
+ }), k = Re(() => _e(e.value)), le = /* @__PURE__ */ new Date(), ye = (x) => {
358
+ e.onChange(yr(x)), I();
359
359
  };
360
360
  return (() => {
361
- var f = br(), C = f.firstChild, R = C.firstChild, U = m;
362
- typeof U == "function" ? Y(U, f) : m = f, C.$$click = () => t() ? V() : P();
363
- var te = s;
364
- return typeof te == "function" ? Y(te, C) : s = C, a(R, () => Oe(e.value, e.months ?? Se) ?? e.label ?? "Select date"), a(C, r(_t, {
361
+ var x = xr(), C = x.firstChild, j = C.firstChild, H = g;
362
+ typeof H == "function" ? N(H, x) : g = x, C.$$click = () => t() ? I() : T();
363
+ var Q = s;
364
+ return typeof Q == "function" ? N(Q, C) : s = C, i(j, () => Oe(e.value, e.months ?? Se) ?? e.label ?? "Select date"), i(C, r(kt, {
365
365
  class: "h-4 w-4 shrink-0 text-muted-foreground"
366
- }), null), a(f, r($, {
366
+ }), null), i(x, r($, {
367
367
  get when() {
368
368
  return t();
369
369
  },
370
370
  get children() {
371
- return r(pt, {
371
+ return r($t, {
372
372
  get children() {
373
- var D = hr(), ie = D.firstChild, re = ie.firstChild, K = re.nextSibling, gt = K.firstChild, Le = K.nextSibling, Ie = ie.nextSibling, ft = Ie.nextSibling, Ae = b;
374
- return typeof Ae == "function" ? Y(Ae, D) : b = D, re.$$click = x, a(re, r(qe, {
373
+ var A = br(), ae = A.firstChild, ee = ae.firstChild, q = ee.nextSibling, ft = q.firstChild, Ie = q.nextSibling, Ae = ae.nextSibling, mt = Ae.nextSibling, De = m;
374
+ return typeof De == "function" ? N(De, A) : m = A, ee.$$click = O, i(ee, r(qe, {
375
375
  class: "h-4 w-4"
376
- })), a(K, () => (e.months ?? Se)[c()], gt), a(K, l, null), Le.$$click = _, a(Le, r(Ue, {
376
+ })), i(q, () => (e.months ?? Se)[d()], ft), i(q, l, null), Ie.$$click = G, i(Ie, r(Ue, {
377
377
  class: "h-4 w-4"
378
- })), a(Ie, r(O, {
378
+ })), i(Ae, r(R, {
379
379
  get each() {
380
- return e.weekdays ?? pr;
380
+ return e.weekdays ?? $r;
381
381
  },
382
- children: (z) => (() => {
383
- var H = xr();
384
- return a(H, z), H;
382
+ children: (D) => (() => {
383
+ var V = vr();
384
+ return i(V, D), V;
385
385
  })()
386
- })), a(ft, r(O, {
386
+ })), i(mt, r(R, {
387
387
  get each() {
388
- return T();
388
+ return X();
389
389
  },
390
- children: (z) => {
391
- const H = z.getMonth() === c(), Z = () => {
392
- const J = p();
393
- return J ? Pe(J, z) : !1;
394
- }, mt = Pe(G, z);
390
+ children: (D) => {
391
+ const V = D.getMonth() === d(), U = () => {
392
+ const K = k();
393
+ return K ? je(K, D) : !1;
394
+ }, ht = je(le, D);
395
395
  return (() => {
396
- var J = vr();
397
- return J.$$click = () => q(z), a(J, () => z.getDate()), S(() => X(J, g("flex h-8 items-center justify-center rounded-md text-sm transition-colors", Z() ? "bg-primary font-semibold text-primary-foreground" : "hover:bg-muted", !Z() && !H && "text-muted-foreground/50", !Z() && H && "text-foreground", !Z() && mt && "ring-1 ring-inset ring-ring"))), J;
396
+ var K = pr();
397
+ return K.$$click = () => ye(D), i(K, () => D.getDate()), S(() => Y(K, f("flex h-8 items-center justify-center rounded-md text-sm transition-colors", U() ? "bg-primary font-semibold text-primary-foreground" : "hover:bg-muted", !U() && !V && "text-muted-foreground/50", !U() && V && "text-foreground", !U() && ht && "ring-1 ring-inset ring-ring"))), K;
398
398
  })();
399
399
  }
400
- })), S((z) => {
401
- var H = `${y().top}px`, Z = `${y().left}px`;
402
- return H !== z.e && le(D, "top", z.e = H), Z !== z.t && le(D, "left", z.t = Z), z;
400
+ })), S((D) => {
401
+ var V = `${h().top}px`, U = `${h().left}px`;
402
+ return V !== D.e && ne(A, "top", D.e = V), U !== D.t && ne(A, "left", D.t = U), D;
403
403
  }, {
404
404
  e: void 0,
405
405
  t: void 0
406
- }), D;
406
+ }), A;
407
407
  }
408
408
  });
409
409
  }
410
- }), null), S((D) => {
411
- var ie = g("relative", e.class), re = e.disabled, K = Oe(e.value, e.months ?? Se) ? "" : "text-muted-foreground";
412
- return ie !== D.e && X(f, D.e = ie), re !== D.t && (C.disabled = D.t = re), K !== D.a && X(R, D.a = K), D;
410
+ }), null), S((A) => {
411
+ var ae = f("relative", e.class), ee = e.disabled, q = Oe(e.value, e.months ?? Se) ? "" : "text-muted-foreground";
412
+ return ae !== A.e && Y(x, A.e = ae), ee !== A.t && (C.disabled = A.t = ee), q !== A.a && Y(j, A.a = q), A;
413
413
  }, {
414
414
  e: void 0,
415
415
  t: void 0,
416
416
  a: void 0
417
- }), f;
417
+ }), x;
418
418
  })();
419
419
  }
420
- ee(["click"]);
421
- var yr = /* @__PURE__ */ d('<p class="text-[12px] text-muted-foreground">'), wr = /* @__PURE__ */ d('<div class="sticky top-0 z-10 flex items-center justify-between border-b border-border bg-background/90 px-5 py-4 backdrop-blur"><div>'), _r = /* @__PURE__ */ d('<div class="fixed inset-0 z-50 flex justify-end">');
422
- function Io(e) {
423
- return r(F, {
420
+ J(["click"]);
421
+ var wr = /* @__PURE__ */ u('<p class="text-[12px] text-muted-foreground">'), _r = /* @__PURE__ */ u('<div class="sticky top-0 z-10 flex items-center justify-between border-b border-border bg-background/90 px-5 py-4 backdrop-blur"><div>'), kr = /* @__PURE__ */ u('<div class="fixed inset-0 z-50 flex justify-end">');
422
+ function Do(e) {
423
+ return r(M, {
424
424
  get open() {
425
425
  return e.open;
426
426
  },
@@ -428,15 +428,15 @@ function Io(e) {
428
428
  return e.onOpenChange;
429
429
  },
430
430
  get children() {
431
- return r(F.Portal, {
431
+ return r(M.Portal, {
432
432
  get children() {
433
- return [r(F.Overlay, {
433
+ return [r(M.Overlay, {
434
434
  class: "modal-overlay fixed inset-0 z-40 bg-black/50 backdrop-blur-[2px]"
435
435
  }), (() => {
436
- var t = _r();
437
- return a(t, r(F.Content, {
436
+ var t = kr();
437
+ return i(t, r(M.Content, {
438
438
  get class() {
439
- return g("drawer-content flex h-full w-full max-w-[520px] flex-col overflow-y-auto border-l border-border bg-glass shadow-2xl", e.class);
439
+ return f("drawer-content flex h-full w-full max-w-[520px] flex-col overflow-y-auto border-l border-border bg-glass shadow-2xl", e.class);
440
440
  },
441
441
  get children() {
442
442
  return [r($, {
@@ -444,21 +444,21 @@ function Io(e) {
444
444
  return e.title;
445
445
  },
446
446
  get children() {
447
- var o = wr(), n = o.firstChild;
448
- return a(n, r(F.Title, {
447
+ var o = _r(), n = o.firstChild;
448
+ return i(n, r(M.Title, {
449
449
  class: "text-[16px] font-bold leading-tight",
450
450
  get children() {
451
451
  return e.title;
452
452
  }
453
- }), null), a(n, r($, {
453
+ }), null), i(n, r($, {
454
454
  get when() {
455
455
  return e.subtitle;
456
456
  },
457
457
  get children() {
458
- var l = yr();
459
- return a(l, () => e.subtitle), l;
458
+ var l = wr();
459
+ return i(l, () => e.subtitle), l;
460
460
  }
461
- }), null), a(o, r(F.CloseButton, {
461
+ }), null), i(o, r(M.CloseButton, {
462
462
  class: "grid h-9 w-9 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground",
463
463
  get "aria-label"() {
464
464
  return e.closeLabel ?? "Close";
@@ -470,7 +470,7 @@ function Io(e) {
470
470
  }
471
471
  }), null), o;
472
472
  }
473
- }), ae(() => e.children)];
473
+ }), oe(() => e.children)];
474
474
  }
475
475
  })), t;
476
476
  })()];
@@ -479,7 +479,7 @@ function Io(e) {
479
479
  }
480
480
  });
481
481
  }
482
- function Ao(e) {
482
+ function Ro(e) {
483
483
  return (
484
484
  // preventScroll defaults to true in Kobalte's menu — that locks page scroll
485
485
  // (body overflow:hidden + scrollbar-width compensation) while the menu is
@@ -490,7 +490,7 @@ function Ao(e) {
490
490
  get children() {
491
491
  return [r(de.Trigger, {
492
492
  get class() {
493
- return g("inline-flex", e.class);
493
+ return f("inline-flex", e.class);
494
494
  },
495
495
  get "aria-label"() {
496
496
  return e.label;
@@ -503,13 +503,13 @@ function Ao(e) {
503
503
  return r(de.Content, {
504
504
  class: "z-50 min-w-[10rem] overflow-hidden rounded-md border border-border bg-card p-1 text-card-foreground shadow-sm",
505
505
  get children() {
506
- return r(O, {
506
+ return r(R, {
507
507
  get each() {
508
508
  return e.items;
509
509
  },
510
510
  children: (t) => r(de.Item, {
511
511
  get class() {
512
- return g("cursor-pointer select-none rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-muted data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t.destructive && "text-destructive");
512
+ return f("cursor-pointer select-none rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-muted data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t.destructive && "text-destructive");
513
513
  },
514
514
  get disabled() {
515
515
  return t.disabled;
@@ -530,45 +530,45 @@ function Ao(e) {
530
530
  })
531
531
  );
532
532
  }
533
- var kr = /* @__PURE__ */ d('<p class="text-xs text-muted-foreground">'), Cr = /* @__PURE__ */ d('<div role=button class="flex cursor-pointer flex-col items-center justify-center gap-2 rounded-xl border-2 border-dashed px-6 py-10 text-center transition"><p class="text-sm font-medium text-foreground"></p><input type=file class=hidden>');
534
- function Do(e) {
535
- const [t, o] = j(!1);
533
+ var Cr = /* @__PURE__ */ u('<p class="text-xs text-muted-foreground">'), Sr = /* @__PURE__ */ u('<div role=button class="flex cursor-pointer flex-col items-center justify-center gap-2 rounded-xl border-2 border-dashed px-6 py-10 text-center transition"><p class="text-sm font-medium text-foreground"></p><input type=file class=hidden>');
534
+ function zo(e) {
535
+ const [t, o] = z(!1);
536
536
  let n;
537
- const l = (i) => {
538
- if (e.disabled || !i) return;
539
- const c = Array.from(i);
540
- c.length && e.onFiles(c);
537
+ const l = (a) => {
538
+ if (e.disabled || !a) return;
539
+ const d = Array.from(a);
540
+ d.length && e.onFiles(d);
541
541
  };
542
542
  return (() => {
543
- var i = Cr(), c = i.firstChild, u = c.nextSibling;
544
- i.addEventListener("drop", (s) => {
545
- var b;
546
- s.preventDefault(), o(!1), l((b = s.dataTransfer) == null ? void 0 : b.files);
547
- }), i.addEventListener("dragleave", () => o(!1)), i.addEventListener("dragover", (s) => {
543
+ var a = Sr(), d = a.firstChild, c = d.nextSibling;
544
+ a.addEventListener("drop", (s) => {
545
+ var m;
546
+ s.preventDefault(), o(!1), l((m = s.dataTransfer) == null ? void 0 : m.files);
547
+ }), a.addEventListener("dragleave", () => o(!1)), a.addEventListener("dragover", (s) => {
548
548
  e.disabled || (s.preventDefault(), o(!0));
549
- }), i.$$keydown = (s) => {
549
+ }), a.$$keydown = (s) => {
550
550
  e.disabled || (s.key === "Enter" || s.key === " ") && (s.preventDefault(), n == null || n.click());
551
- }, i.$$click = () => !e.disabled && (n == null ? void 0 : n.click()), a(i, r(kt, {
551
+ }, a.$$click = () => !e.disabled && (n == null ? void 0 : n.click()), i(a, r(Ct, {
552
552
  class: "h-8 w-8 text-muted-foreground"
553
- }), c), a(c, () => e.label ?? "Drag files here or click to browse"), a(i, r($, {
553
+ }), d), i(d, () => e.label ?? "Drag files here or click to browse"), i(a, r($, {
554
554
  get when() {
555
555
  return e.hint;
556
556
  },
557
557
  get children() {
558
- var s = kr();
559
- return a(s, () => e.hint), s;
558
+ var s = Cr();
559
+ return i(s, () => e.hint), s;
560
560
  }
561
- }), u), u.addEventListener("change", (s) => {
561
+ }), c), c.addEventListener("change", (s) => {
562
562
  l(s.currentTarget.files), s.currentTarget.value = "";
563
563
  });
564
- var m = n;
565
- return typeof m == "function" ? Y(m, u) : n = u, S((s) => {
566
- var b = e.disabled ? -1 : 0, y = e.disabled, M = {
564
+ var g = n;
565
+ return typeof g == "function" ? N(g, c) : n = c, S((s) => {
566
+ var m = e.disabled ? -1 : 0, h = e.disabled, w = {
567
567
  "border-ring bg-primary/5": t(),
568
568
  "border-border bg-glass hover:border-ring/60": !t() && !e.disabled,
569
569
  "cursor-not-allowed opacity-60": e.disabled
570
- }, k = e.accept, E = e.multiple, P = e.disabled;
571
- return b !== s.e && B(i, "tabindex", s.e = b), y !== s.t && B(i, "aria-disabled", s.t = y), s.a = $t(i, M, s.a), k !== s.o && B(u, "accept", s.o = k), E !== s.i && (u.multiple = s.i = E), P !== s.n && (u.disabled = s.n = P), s;
570
+ }, v = e.accept, _ = e.multiple, T = e.disabled;
571
+ return m !== s.e && P(a, "tabindex", s.e = m), h !== s.t && P(a, "aria-disabled", s.t = h), s.a = yt(a, w, s.a), v !== s.o && P(c, "accept", s.o = v), _ !== s.i && (c.multiple = s.i = _), T !== s.n && (c.disabled = s.n = T), s;
572
572
  }, {
573
573
  e: void 0,
574
574
  t: void 0,
@@ -576,19 +576,19 @@ function Do(e) {
576
576
  o: void 0,
577
577
  i: void 0,
578
578
  n: void 0
579
- }), i;
579
+ }), a;
580
580
  })();
581
581
  }
582
- ee(["click", "keydown"]);
583
- var Sr = /* @__PURE__ */ d("<input>");
584
- const Tr = "w-full rounded-md border border-input bg-background text-foreground placeholder:text-muted-foreground px-3 py-2 text-sm outline-none transition-colors focus:border-ring focus:ring-2 focus:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50";
585
- function Ro(e) {
586
- const [t, o] = L(e, ["value", "onInput", "class"]);
582
+ J(["click", "keydown"]);
583
+ var Tr = /* @__PURE__ */ u("<input>");
584
+ const Mr = "w-full rounded-md border border-input bg-background text-foreground placeholder:text-muted-foreground px-3 py-2 text-sm outline-none transition-colors focus:border-ring focus:ring-2 focus:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50";
585
+ function Po(e) {
586
+ const [t, o] = E(e, ["value", "onInput", "class"]);
587
587
  return (() => {
588
- var n = Sr();
589
- return n.$$input = (l) => t.onInput(l.currentTarget.value), I(n, A({
588
+ var n = Tr();
589
+ return n.$$input = (l) => t.onInput(l.currentTarget.value), F(n, L({
590
590
  get class() {
591
- return g(Tr, t.class);
591
+ return f(Mr, t.class);
592
592
  },
593
593
  get value() {
594
594
  return t.value;
@@ -596,11 +596,11 @@ function Ro(e) {
596
596
  }, o), !1, !1), n;
597
597
  })();
598
598
  }
599
- ee(["input"]);
600
- var Mr = /* @__PURE__ */ d('<div class="flex items-center justify-between border-b border-border p-6 pb-4">'), je = /* @__PURE__ */ d('<div class="p-6 pt-4">'), Er = /* @__PURE__ */ d('<div class="fixed inset-0 z-50 flex items-center justify-center p-4">'), Fr = /* @__PURE__ */ d('<div class="sticky top-0 z-10 flex items-center justify-between border-b border-border bg-background/85 px-6 py-4 backdrop-blur">'), Lr = /* @__PURE__ */ d('<div class="fixed inset-0 z-50 flex justify-end">');
601
- function zo(e) {
599
+ J(["input"]);
600
+ var Er = /* @__PURE__ */ u('<div class="flex items-center justify-between border-b border-border p-6 pb-4">'), Be = /* @__PURE__ */ u('<div class="p-6 pt-4">'), Fr = /* @__PURE__ */ u('<div class="fixed inset-0 z-50 flex items-center justify-center p-4">'), Lr = /* @__PURE__ */ u('<div class="sticky top-0 z-10 flex items-center justify-between border-b border-border bg-background/85 px-6 py-4 backdrop-blur">'), Ir = /* @__PURE__ */ u('<div class="fixed inset-0 z-50 flex justify-end">');
601
+ function Oo(e) {
602
602
  const t = () => e.variant === "center";
603
- return r(F, {
603
+ return r(M, {
604
604
  get open() {
605
605
  return e.open;
606
606
  },
@@ -608,9 +608,9 @@ function zo(e) {
608
608
  return e.onOpenChange;
609
609
  },
610
610
  get children() {
611
- return r(F.Portal, {
611
+ return r(M.Portal, {
612
612
  get children() {
613
- return [r(F.Overlay, {
613
+ return [r(M.Overlay, {
614
614
  class: "modal-overlay fixed inset-0 z-40 bg-background/80 backdrop-blur-sm"
615
615
  }), r($, {
616
616
  get when() {
@@ -618,10 +618,10 @@ function zo(e) {
618
618
  },
619
619
  get fallback() {
620
620
  return (() => {
621
- var o = Lr();
622
- return a(o, r(F.Content, {
621
+ var o = Ir();
622
+ return i(o, r(M.Content, {
623
623
  get class() {
624
- return g("drawer-content bg-glass flex h-full w-full max-w-[520px] flex-col overflow-y-auto border-l border-border text-card-foreground shadow-2xl", e.class);
624
+ return f("drawer-content bg-glass flex h-full w-full max-w-[520px] flex-col overflow-y-auto border-l border-border text-card-foreground shadow-2xl", e.class);
625
625
  },
626
626
  get children() {
627
627
  return [r($, {
@@ -629,13 +629,13 @@ function zo(e) {
629
629
  return e.title;
630
630
  },
631
631
  get children() {
632
- var n = Fr();
633
- return a(n, r(F.Title, {
632
+ var n = Lr();
633
+ return i(n, r(M.Title, {
634
634
  class: "text-lg font-semibold leading-none tracking-tight",
635
635
  get children() {
636
636
  return e.title;
637
637
  }
638
- }), null), a(n, r(F.CloseButton, {
638
+ }), null), i(n, r(M.CloseButton, {
639
639
  class: "grid h-8 w-8 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground",
640
640
  get "aria-label"() {
641
641
  return e.closeLabel ?? "Close";
@@ -648,18 +648,18 @@ function zo(e) {
648
648
  }), null), n;
649
649
  }
650
650
  }), (() => {
651
- var n = je();
652
- return a(n, () => e.children), n;
651
+ var n = Be();
652
+ return i(n, () => e.children), n;
653
653
  })()];
654
654
  }
655
655
  })), o;
656
656
  })();
657
657
  },
658
658
  get children() {
659
- var o = Er();
660
- return a(o, r(F.Content, {
659
+ var o = Fr();
660
+ return i(o, r(M.Content, {
661
661
  get class() {
662
- return g("modal-content w-full max-w-lg rounded-xl border border-border bg-card text-card-foreground shadow-sm", e.class);
662
+ return f("modal-content w-full max-w-lg rounded-xl border border-border bg-card text-card-foreground shadow-sm", e.class);
663
663
  },
664
664
  get children() {
665
665
  return [r($, {
@@ -667,13 +667,13 @@ function zo(e) {
667
667
  return e.title;
668
668
  },
669
669
  get children() {
670
- var n = Mr();
671
- return a(n, r(F.Title, {
670
+ var n = Er();
671
+ return i(n, r(M.Title, {
672
672
  class: "text-lg font-semibold leading-none tracking-tight",
673
673
  get children() {
674
674
  return e.title;
675
675
  }
676
- }), null), a(n, r(F.CloseButton, {
676
+ }), null), i(n, r(M.CloseButton, {
677
677
  class: "text-muted-foreground hover:text-foreground",
678
678
  get "aria-label"() {
679
679
  return e.closeLabel ?? "Close";
@@ -682,8 +682,8 @@ function zo(e) {
682
682
  }), null), n;
683
683
  }
684
684
  }), (() => {
685
- var n = je();
686
- return a(n, () => e.children), n;
685
+ var n = Be();
686
+ return i(n, () => e.children), n;
687
687
  })()];
688
688
  }
689
689
  })), o;
@@ -694,71 +694,71 @@ function zo(e) {
694
694
  }
695
695
  });
696
696
  }
697
- var Ir = /* @__PURE__ */ d('<div class="flex items-center gap-2 text-[12px] text-muted-foreground">'), Ar = /* @__PURE__ */ d('<p class="mt-0.5 text-[13px] text-muted-foreground">'), Dr = /* @__PURE__ */ d('<div class="flex items-center gap-2">'), Rr = /* @__PURE__ */ d('<div class="flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between"><div><h1 class="mt-1 text-2xl font-bold tracking-tight">'), zr = /* @__PURE__ */ d("<span class=text-muted-foreground/60>/"), Or = /* @__PURE__ */ d("<span>");
698
- function Oo(e) {
697
+ var Ar = /* @__PURE__ */ u('<div class="flex items-center gap-2 text-[12px] text-muted-foreground">'), Dr = /* @__PURE__ */ u('<p class="mt-0.5 text-[13px] text-muted-foreground">'), Rr = /* @__PURE__ */ u('<div class="flex items-center gap-2">'), zr = /* @__PURE__ */ u('<div class="flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between"><div><h1 class="mt-1 text-2xl font-bold tracking-tight">'), Pr = /* @__PURE__ */ u("<span class=text-muted-foreground/60>/"), Or = /* @__PURE__ */ u("<span>");
698
+ function jo(e) {
699
699
  return (() => {
700
- var t = Rr(), o = t.firstChild, n = o.firstChild;
701
- return a(o, r($, {
700
+ var t = zr(), o = t.firstChild, n = o.firstChild;
701
+ return i(o, r($, {
702
702
  get when() {
703
703
  var l;
704
704
  return (l = e.breadcrumb) == null ? void 0 : l.length;
705
705
  },
706
706
  get children() {
707
- var l = Ir();
708
- return a(l, r(O, {
707
+ var l = Ar();
708
+ return i(l, r(R, {
709
709
  get each() {
710
710
  return e.breadcrumb;
711
711
  },
712
- children: (i, c) => [r($, {
712
+ children: (a, d) => [r($, {
713
713
  get when() {
714
- return c() > 0;
714
+ return d() > 0;
715
715
  },
716
716
  get children() {
717
- return zr();
717
+ return Pr();
718
718
  }
719
719
  }), (() => {
720
- var u = Or();
721
- return a(u, i), S(() => {
722
- var m;
723
- return u.classList.toggle("text-foreground", c() === (((m = e.breadcrumb) == null ? void 0 : m.length) ?? 0) - 1);
724
- }), u;
720
+ var c = Or();
721
+ return i(c, a), S(() => {
722
+ var g;
723
+ return c.classList.toggle("text-foreground", d() === (((g = e.breadcrumb) == null ? void 0 : g.length) ?? 0) - 1);
724
+ }), c;
725
725
  })()]
726
726
  })), l;
727
727
  }
728
- }), n), a(n, () => e.title), a(o, r($, {
728
+ }), n), i(n, () => e.title), i(o, r($, {
729
729
  get when() {
730
730
  return e.subtitle;
731
731
  },
732
732
  get children() {
733
- var l = Ar();
734
- return a(l, () => e.subtitle), l;
733
+ var l = Dr();
734
+ return i(l, () => e.subtitle), l;
735
735
  }
736
- }), null), a(t, r($, {
736
+ }), null), i(t, r($, {
737
737
  get when() {
738
738
  return e.actions;
739
739
  },
740
740
  get children() {
741
- var l = Dr();
742
- return a(l, () => e.actions), l;
741
+ var l = Rr();
742
+ return i(l, () => e.actions), l;
743
743
  }
744
744
  }), null), t;
745
745
  })();
746
746
  }
747
- var Pr = /* @__PURE__ */ d('<div class="flex flex-col gap-3 border-t border-border p-3 sm:flex-row sm:items-center sm:justify-between"><div class="text-[12px] text-muted-foreground"></div><div class="flex items-center gap-1"><button type=button class="grid h-8 w-8 place-items-center rounded-lg border border-input transition hover:bg-muted disabled:pointer-events-none disabled:opacity-40"></button><span class="px-2 font-mono text-[12px] tabular-nums"></span><button type=button class="grid h-8 w-8 place-items-center rounded-lg border border-input transition hover:bg-muted disabled:pointer-events-none disabled:opacity-40">');
748
- function Po(e) {
747
+ var jr = /* @__PURE__ */ u('<div class="flex flex-col gap-3 border-t border-border p-3 sm:flex-row sm:items-center sm:justify-between"><div class="text-[12px] text-muted-foreground"></div><div class="flex items-center gap-1"><button type=button class="grid h-8 w-8 place-items-center rounded-lg border border-input transition hover:bg-muted disabled:pointer-events-none disabled:opacity-40"></button><span class="px-2 font-mono text-[12px] tabular-nums"></span><button type=button class="grid h-8 w-8 place-items-center rounded-lg border border-input transition hover:bg-muted disabled:pointer-events-none disabled:opacity-40">');
748
+ function Bo(e) {
749
749
  return (() => {
750
- var t = Pr(), o = t.firstChild, n = o.nextSibling, l = n.firstChild, i = l.nextSibling, c = i.nextSibling;
751
- return a(o, () => e.summary), l.$$click = () => e.onChange(e.page - 1), a(l, r(qe, {
750
+ var t = jr(), o = t.firstChild, n = o.nextSibling, l = n.firstChild, a = l.nextSibling, d = a.nextSibling;
751
+ return i(o, () => e.summary), l.$$click = () => e.onChange(e.page - 1), i(l, r(qe, {
752
752
  class: "h-4 w-4"
753
- })), a(i, () => {
754
- var u;
755
- return (((u = e.labels) == null ? void 0 : u.page) ?? ((m, s) => `Page ${m} of ${s}`))(e.page, e.totalPages);
756
- }), c.$$click = () => e.onChange(e.page + 1), a(c, r(Ue, {
753
+ })), i(a, () => {
754
+ var c;
755
+ return (((c = e.labels) == null ? void 0 : c.page) ?? ((g, s) => `Page ${g} of ${s}`))(e.page, e.totalPages);
756
+ }), d.$$click = () => e.onChange(e.page + 1), i(d, r(Ue, {
757
757
  class: "h-4 w-4"
758
- })), S((u) => {
759
- var M, k;
760
- var m = e.page <= 1, s = ((M = e.labels) == null ? void 0 : M.previous) ?? "Previous page", b = e.page >= e.totalPages, y = ((k = e.labels) == null ? void 0 : k.next) ?? "Next page";
761
- return m !== u.e && (l.disabled = u.e = m), s !== u.t && B(l, "aria-label", u.t = s), b !== u.a && (c.disabled = u.a = b), y !== u.o && B(c, "aria-label", u.o = y), u;
758
+ })), S((c) => {
759
+ var w, v;
760
+ var g = e.page <= 1, s = ((w = e.labels) == null ? void 0 : w.previous) ?? "Previous page", m = e.page >= e.totalPages, h = ((v = e.labels) == null ? void 0 : v.next) ?? "Next page";
761
+ return g !== c.e && (l.disabled = c.e = g), s !== c.t && P(l, "aria-label", c.t = s), m !== c.a && (d.disabled = c.a = m), h !== c.o && P(d, "aria-label", c.o = h), c;
762
762
  }, {
763
763
  e: void 0,
764
764
  t: void 0,
@@ -767,52 +767,52 @@ function Po(e) {
767
767
  }), t;
768
768
  })();
769
769
  }
770
- ee(["click"]);
771
- var jr = /* @__PURE__ */ d("<select>");
772
- const Br = "w-full rounded-md border border-input bg-background text-foreground px-3 py-2 text-sm outline-none transition-colors focus:border-ring focus:ring-2 focus:ring-ring/30";
773
- function jo(e) {
774
- const [t, o] = L(e, ["value", "onChange", "class", "children"]);
770
+ J(["click"]);
771
+ var Br = /* @__PURE__ */ u("<select>");
772
+ const Nr = "w-full rounded-md border border-input bg-background text-foreground px-3 py-2 text-sm outline-none transition-colors focus:border-ring focus:ring-2 focus:ring-ring/30";
773
+ function No(e) {
774
+ const [t, o] = E(e, ["value", "onChange", "class", "children"]);
775
775
  let n;
776
776
  return pe(() => {
777
777
  const l = t.value ?? "";
778
778
  t.children, n && n.value !== l && (n.value = l);
779
779
  }), (() => {
780
- var l = jr();
781
- l.addEventListener("change", (c) => t.onChange(c.currentTarget.value));
782
- var i = n;
783
- return typeof i == "function" ? Y(i, l) : n = l, I(l, A({
780
+ var l = Br();
781
+ l.addEventListener("change", (d) => t.onChange(d.currentTarget.value));
782
+ var a = n;
783
+ return typeof a == "function" ? N(a, l) : n = l, F(l, L({
784
784
  get class() {
785
- return g(Br, t.class);
785
+ return f(Nr, t.class);
786
786
  },
787
787
  get value() {
788
788
  return t.value;
789
789
  }
790
- }, o), !1, !0), a(l, () => t.children), l;
790
+ }, o), !1, !0), i(l, () => t.children), l;
791
791
  })();
792
792
  }
793
- var Nr = /* @__PURE__ */ d('<svg viewBox="0 0 24 24"fill=none role=status><circle class=opacity-25 cx=12 cy=12 r=10 stroke=currentColor stroke-width=4></circle><path class=opacity-75 fill=currentColor d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z">');
794
- function Vr(e) {
793
+ var Vr = /* @__PURE__ */ u('<svg viewBox="0 0 24 24"fill=none role=status><circle class=opacity-25 cx=12 cy=12 r=10 stroke=currentColor stroke-width=4></circle><path class=opacity-75 fill=currentColor d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z">');
794
+ function Yr(e) {
795
795
  return (() => {
796
- var t = Nr();
796
+ var t = Vr();
797
797
  return S((o) => {
798
- var n = g("h-5 w-5 animate-spin text-muted-foreground", e.class), l = e.label ?? "Loading";
799
- return n !== o.e && B(t, "class", o.e = n), l !== o.t && B(t, "aria-label", o.t = l), o;
798
+ var n = f("h-5 w-5 animate-spin text-muted-foreground", e.class), l = e.label ?? "Loading";
799
+ return n !== o.e && P(t, "class", o.e = n), l !== o.t && P(t, "aria-label", o.t = l), o;
800
800
  }, {
801
801
  e: void 0,
802
802
  t: void 0
803
803
  }), t;
804
804
  })();
805
805
  }
806
- var Yr = /* @__PURE__ */ d("<div>"), Gr = /* @__PURE__ */ d('<div class=min-w-0><p class="truncate text-sm text-muted-foreground"></p><p class="truncate text-xl font-semibold tabular-nums text-foreground">');
806
+ var Gr = /* @__PURE__ */ u("<div>"), Xr = /* @__PURE__ */ u('<div class=min-w-0><p class="truncate text-sm text-muted-foreground"></p><p class="truncate text-xl font-semibold tabular-nums text-foreground">');
807
807
  const Hr = {
808
808
  primary: "bg-primary/15 text-primary",
809
809
  success: "bg-emerald-500/15 text-emerald-600",
810
810
  danger: "bg-rose-500/15 text-rose-600",
811
811
  neutral: "bg-muted text-muted-foreground"
812
812
  };
813
- function Bo(e) {
814
- const t = it(), o = rr(() => e.value), n = () => (e.format ?? ((l) => String(Math.round(l))))(o());
815
- return r(Rt.div, {
813
+ function Vo(e) {
814
+ const t = it(), o = nr(() => e.value), n = () => (e.format ?? ((l) => String(Math.round(l))))(o());
815
+ return r(zt.div, {
816
816
  initial: t ? !1 : {
817
817
  opacity: 0,
818
818
  y: 8
@@ -829,14 +829,14 @@ function Bo(e) {
829
829
  };
830
830
  },
831
831
  get children() {
832
- return r(gr, {
832
+ return r(fr, {
833
833
  glass: !0,
834
834
  glow: !0,
835
835
  get class() {
836
836
  return e.class;
837
837
  },
838
838
  get children() {
839
- return r(fr, {
839
+ return r(mr, {
840
840
  class: "flex items-center gap-4 p-5",
841
841
  get children() {
842
842
  return [r($, {
@@ -844,12 +844,12 @@ function Bo(e) {
844
844
  return e.icon;
845
845
  },
846
846
  get children() {
847
- var l = Yr();
848
- return a(l, () => e.icon), S(() => X(l, g("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg", Hr[e.tone ?? "neutral"]))), l;
847
+ var l = Gr();
848
+ return i(l, () => e.icon), S(() => Y(l, f("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg", Hr[e.tone ?? "neutral"]))), l;
849
849
  }
850
850
  }), (() => {
851
- var l = Gr(), i = l.firstChild, c = i.nextSibling;
852
- return a(i, () => e.label), a(c, n), l;
851
+ var l = Xr(), a = l.firstChild, d = a.nextSibling;
852
+ return i(a, () => e.label), i(d, n), l;
853
853
  })()];
854
854
  }
855
855
  });
@@ -858,76 +858,76 @@ function Bo(e) {
858
858
  }
859
859
  });
860
860
  }
861
- var Xr = /* @__PURE__ */ d('<div class="w-full overflow-x-auto"><table>'), qr = /* @__PURE__ */ d("<thead>"), Ur = /* @__PURE__ */ d("<tbody>"), Kr = /* @__PURE__ */ d("<tr>"), Zr = /* @__PURE__ */ d("<th>"), Jr = /* @__PURE__ */ d("<td>");
862
- function No(e) {
863
- const [t, o] = L(e, ["class", "children"]);
861
+ var qr = /* @__PURE__ */ u('<div class="w-full overflow-x-auto"><table>'), Ur = /* @__PURE__ */ u("<thead>"), Kr = /* @__PURE__ */ u("<tbody>"), Zr = /* @__PURE__ */ u("<tr>"), Wr = /* @__PURE__ */ u("<th>"), Jr = /* @__PURE__ */ u("<td>");
862
+ function Yo(e) {
863
+ const [t, o] = E(e, ["class", "children"]);
864
864
  return (() => {
865
- var n = Xr(), l = n.firstChild;
866
- return I(l, A({
865
+ var n = qr(), l = n.firstChild;
866
+ return F(l, L({
867
867
  get class() {
868
- return g("w-full border-collapse text-sm", t.class);
868
+ return f("w-full border-collapse text-sm", t.class);
869
869
  }
870
- }, o), !1, !0), a(l, () => t.children), n;
870
+ }, o), !1, !0), i(l, () => t.children), n;
871
871
  })();
872
872
  }
873
- function Vo(e) {
874
- const [t, o] = L(e, ["class", "children"]);
873
+ function Go(e) {
874
+ const [t, o] = E(e, ["class", "children"]);
875
875
  return (() => {
876
- var n = qr();
877
- return I(n, A({
876
+ var n = Ur();
877
+ return F(n, L({
878
878
  get class() {
879
- return g("border-b border-border text-left text-muted-foreground", t.class);
879
+ return f("border-b border-border text-left text-muted-foreground", t.class);
880
880
  }
881
- }, o), !1, !0), a(n, () => t.children), n;
881
+ }, o), !1, !0), i(n, () => t.children), n;
882
882
  })();
883
883
  }
884
- function Yo(e) {
885
- const [t, o] = L(e, ["class", "children"]);
884
+ function Xo(e) {
885
+ const [t, o] = E(e, ["class", "children"]);
886
886
  return (() => {
887
- var n = Ur();
888
- return I(n, A({
887
+ var n = Kr();
888
+ return F(n, L({
889
889
  get class() {
890
890
  return t.class;
891
891
  }
892
- }, o), !1, !0), a(n, () => t.children), n;
892
+ }, o), !1, !0), i(n, () => t.children), n;
893
893
  })();
894
894
  }
895
- function Go(e) {
896
- const [t, o] = L(e, ["class", "children"]);
895
+ function Ho(e) {
896
+ const [t, o] = E(e, ["class", "children"]);
897
897
  return (() => {
898
- var n = Kr();
899
- return I(n, A({
898
+ var n = Zr();
899
+ return F(n, L({
900
900
  get class() {
901
- return g("border-b border-border last:border-0 hover:bg-muted/40", t.class);
901
+ return f("border-b border-border last:border-0 hover:bg-muted/40", t.class);
902
902
  }
903
- }, o), !1, !0), a(n, () => t.children), n;
903
+ }, o), !1, !0), i(n, () => t.children), n;
904
904
  })();
905
905
  }
906
- function Ho(e) {
907
- const [t, o] = L(e, ["class", "children"]);
906
+ function qo(e) {
907
+ const [t, o] = E(e, ["class", "children"]);
908
908
  return (() => {
909
- var n = Zr();
910
- return I(n, A({
909
+ var n = Wr();
910
+ return F(n, L({
911
911
  get class() {
912
- return g("px-3 py-2 text-xs font-semibold uppercase tracking-wide", t.class);
912
+ return f("px-3 py-2 text-xs font-semibold uppercase tracking-wide", t.class);
913
913
  }
914
- }, o), !1, !0), a(n, () => t.children), n;
914
+ }, o), !1, !0), i(n, () => t.children), n;
915
915
  })();
916
916
  }
917
- function Xo(e) {
918
- const [t, o] = L(e, ["class", "children"]);
917
+ function Uo(e) {
918
+ const [t, o] = E(e, ["class", "children"]);
919
919
  return (() => {
920
920
  var n = Jr();
921
- return I(n, A({
921
+ return F(n, L({
922
922
  get class() {
923
- return g("px-3 py-2 align-middle", t.class);
923
+ return f("px-3 py-2 align-middle", t.class);
924
924
  }
925
- }, o), !1, !0), a(n, () => t.children), n;
925
+ }, o), !1, !0), i(n, () => t.children), n;
926
926
  })();
927
927
  }
928
- var Wr = /* @__PURE__ */ d("<div><div style=position:relative;width:100%>"), Qr = /* @__PURE__ */ d("<div style=position:absolute;top:0;left:0;width:100%>");
929
- function qo(e) {
930
- const [t, o] = j(), n = zt({
928
+ var Qr = /* @__PURE__ */ u("<div><div style=position:relative;width:100%>"), en = /* @__PURE__ */ u("<div style=position:absolute;top:0;left:0;width:100%>");
929
+ function Ko(e) {
930
+ const [t, o] = z(), n = Pt({
931
931
  get count() {
932
932
  return e.each.length;
933
933
  },
@@ -937,33 +937,33 @@ function qo(e) {
937
937
  return e.overscan ?? 10;
938
938
  }
939
939
  });
940
- return nr(t, o), (() => {
941
- var l = Wr(), i = l.firstChild;
942
- return Y(o, l), a(i, r(O, {
940
+ return or(t, o), (() => {
941
+ var l = Qr(), a = l.firstChild;
942
+ return N(o, l), i(a, r(R, {
943
943
  get each() {
944
944
  return n.getVirtualItems();
945
945
  },
946
- children: (c) => (() => {
947
- var u = Qr();
948
- return a(u, () => e.children(e.each[c.index], () => c.index)), S((m) => {
949
- var s = `${c.size}px`, b = `translateY(${c.start}px)`;
950
- return s !== m.e && le(u, "height", m.e = s), b !== m.t && le(u, "transform", m.t = b), m;
946
+ children: (d) => (() => {
947
+ var c = en();
948
+ return i(c, () => e.children(e.each[d.index], () => d.index)), S((g) => {
949
+ var s = `${d.size}px`, m = `translateY(${d.start}px)`;
950
+ return s !== g.e && ne(c, "height", g.e = s), m !== g.t && ne(c, "transform", g.t = m), g;
951
951
  }, {
952
952
  e: void 0,
953
953
  t: void 0
954
- }), u;
954
+ }), c;
955
955
  })()
956
- })), S((c) => {
957
- var u = g("overflow-auto", e.class), m = `${n.getTotalSize()}px`;
958
- return u !== c.e && X(l, c.e = u), m !== c.t && le(i, "height", c.t = m), c;
956
+ })), S((d) => {
957
+ var c = f("overflow-auto", e.class), g = `${n.getTotalSize()}px`;
958
+ return c !== d.e && Y(l, d.e = c), g !== d.t && ne(a, "height", d.t = g), d;
959
959
  }, {
960
960
  e: void 0,
961
961
  t: void 0
962
962
  }), l;
963
963
  })();
964
964
  }
965
- function Uo(e) {
966
- return r(se, {
965
+ function Zo(e) {
966
+ return r(ce, {
967
967
  get value() {
968
968
  return e.value;
969
969
  },
@@ -974,33 +974,33 @@ function Uo(e) {
974
974
  return e.class;
975
975
  },
976
976
  get children() {
977
- return [r(se.List, {
977
+ return [r(ce.List, {
978
978
  class: "flex gap-1 border-b border-border",
979
979
  get children() {
980
- return [r(O, {
980
+ return [r(R, {
981
981
  get each() {
982
982
  return e.items;
983
983
  },
984
- children: (t) => r(se.Trigger, {
984
+ children: (t) => r(ce.Trigger, {
985
985
  get value() {
986
986
  return t.value;
987
987
  },
988
988
  get class() {
989
- return g("px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground", "data-[selected]:text-foreground");
989
+ return f("px-3 py-2 text-sm font-medium text-muted-foreground transition-colors hover:text-foreground", "data-[selected]:text-foreground");
990
990
  },
991
991
  get children() {
992
992
  return t.label;
993
993
  }
994
994
  })
995
- }), r(se.Indicator, {
995
+ }), r(ce.Indicator, {
996
996
  class: "absolute bottom-0 h-0.5 bg-primary transition-all"
997
997
  })];
998
998
  }
999
- }), r(O, {
999
+ }), r(R, {
1000
1000
  get each() {
1001
1001
  return e.items;
1002
1002
  },
1003
- children: (t) => r(se.Content, {
1003
+ children: (t) => r(ce.Content, {
1004
1004
  get value() {
1005
1005
  return t.value;
1006
1006
  },
@@ -1013,42 +1013,42 @@ function Uo(e) {
1013
1013
  }
1014
1014
  });
1015
1015
  }
1016
- var en = /* @__PURE__ */ d("<div class=flex-1>");
1017
- const tn = {
1016
+ var tn = /* @__PURE__ */ u("<div class=flex-1>");
1017
+ const rn = {
1018
1018
  success: "border-emerald-500/30 bg-emerald-500/10",
1019
1019
  error: "border-destructive/30 bg-destructive/10",
1020
1020
  info: "border-sky-500/30 bg-sky-500/10"
1021
1021
  };
1022
1022
  function Te(e, t, o) {
1023
- Ot.show((n) => r(oe, {
1023
+ Ot.show((n) => r(re, {
1024
1024
  get toastId() {
1025
1025
  return n.toastId;
1026
1026
  },
1027
1027
  get class() {
1028
- return g(
1028
+ return f(
1029
1029
  // toast-item drives the slide+fade keyframes in styles.css, keyed off
1030
1030
  // Kobalte's data-opened/data-closed presence (same animationend-only
1031
1031
  // mechanism as Modal).
1032
1032
  "toast-item flex w-full items-start gap-2 rounded-md border bg-card p-3 text-sm text-card-foreground shadow-sm ring-1 ring-border",
1033
- tn[e]
1033
+ rn[e]
1034
1034
  );
1035
1035
  },
1036
1036
  get children() {
1037
1037
  return [(() => {
1038
- var l = en();
1039
- return a(l, r(oe.Title, {
1038
+ var l = tn();
1039
+ return i(l, r(re.Title, {
1040
1040
  class: "font-semibold",
1041
1041
  children: t
1042
- }), null), a(l, r($, {
1042
+ }), null), i(l, r($, {
1043
1043
  when: o,
1044
1044
  get children() {
1045
- return r(oe.Description, {
1045
+ return r(re.Description, {
1046
1046
  class: "text-muted-foreground",
1047
1047
  children: o
1048
1048
  });
1049
1049
  }
1050
1050
  }), null), l;
1051
- })(), r(oe.CloseButton, {
1051
+ })(), r(re.CloseButton, {
1052
1052
  class: "text-muted-foreground hover:text-foreground",
1053
1053
  "aria-label": "Close",
1054
1054
  children: "✕"
@@ -1056,24 +1056,24 @@ function Te(e, t, o) {
1056
1056
  }
1057
1057
  }));
1058
1058
  }
1059
- const Ko = {
1059
+ const Wo = {
1060
1060
  success: (e, t) => Te("success", e, t),
1061
1061
  error: (e, t) => Te("error", e, t),
1062
1062
  info: (e, t) => Te("info", e, t)
1063
1063
  };
1064
- function Zo() {
1065
- return r(oe.Region, {
1064
+ function Jo() {
1065
+ return r(re.Region, {
1066
1066
  duration: 5e3,
1067
1067
  swipeDirection: "right",
1068
1068
  get children() {
1069
- return r(oe.List, {
1069
+ return r(re.List, {
1070
1070
  class: "fixed bottom-4 right-4 z-50 flex w-80 flex-col gap-2 outline-none"
1071
1071
  });
1072
1072
  }
1073
1073
  });
1074
1074
  }
1075
- function Jo(e) {
1076
- return r(ue, {
1075
+ function Qo(e) {
1076
+ return r(se, {
1077
1077
  get checked() {
1078
1078
  return e.checked;
1079
1079
  },
@@ -1084,13 +1084,13 @@ function Jo(e) {
1084
1084
  return e.disabled;
1085
1085
  },
1086
1086
  get class() {
1087
- return g("inline-flex items-center gap-2", e.class);
1087
+ return f("inline-flex items-center gap-2", e.class);
1088
1088
  },
1089
1089
  get children() {
1090
- return [r(ue.Input, {}), r(ue.Control, {
1090
+ return [r(se.Input, {}), r(se.Control, {
1091
1091
  class: "inline-flex h-5 w-9 shrink-0 items-center rounded-full bg-input px-0.5 transition-colors data-[checked]:bg-primary data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
1092
1092
  get children() {
1093
- return r(ue.Thumb, {
1093
+ return r(se.Thumb, {
1094
1094
  class: "h-4 w-4 rounded-full bg-white shadow-sm transition-transform data-[checked]:translate-x-4"
1095
1095
  });
1096
1096
  }
@@ -1099,7 +1099,7 @@ function Jo(e) {
1099
1099
  return e.label;
1100
1100
  },
1101
1101
  get children() {
1102
- return r(ue.Label, {
1102
+ return r(se.Label, {
1103
1103
  class: "text-sm text-foreground",
1104
1104
  get children() {
1105
1105
  return e.label;
@@ -1110,8 +1110,8 @@ function Jo(e) {
1110
1110
  }
1111
1111
  });
1112
1112
  }
1113
- function Wo(e) {
1114
- return r(W, {
1113
+ function el(e) {
1114
+ return r(Z, {
1115
1115
  get value() {
1116
1116
  return e.value;
1117
1117
  },
@@ -1119,7 +1119,7 @@ function Wo(e) {
1119
1119
  return e.onChange;
1120
1120
  },
1121
1121
  get class() {
1122
- return g("flex flex-col gap-2", e.class);
1122
+ return f("flex flex-col gap-2", e.class);
1123
1123
  },
1124
1124
  get children() {
1125
1125
  return [r($, {
@@ -1127,18 +1127,18 @@ function Wo(e) {
1127
1127
  return e.label;
1128
1128
  },
1129
1129
  get children() {
1130
- return r(W.Label, {
1130
+ return r(Z.Label, {
1131
1131
  class: "text-sm font-medium text-foreground",
1132
1132
  get children() {
1133
1133
  return e.label;
1134
1134
  }
1135
1135
  });
1136
1136
  }
1137
- }), r(O, {
1137
+ }), r(R, {
1138
1138
  get each() {
1139
1139
  return e.options;
1140
1140
  },
1141
- children: (t) => r(W.Item, {
1141
+ children: (t) => r(Z.Item, {
1142
1142
  get value() {
1143
1143
  return t.value;
1144
1144
  },
@@ -1147,14 +1147,14 @@ function Wo(e) {
1147
1147
  },
1148
1148
  class: "flex items-center gap-2 text-sm text-foreground data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50",
1149
1149
  get children() {
1150
- return [r(W.ItemInput, {}), r(W.ItemControl, {
1150
+ return [r(Z.ItemInput, {}), r(Z.ItemControl, {
1151
1151
  class: "grid h-4 w-4 place-items-center rounded-full border border-input transition-colors data-[checked]:border-primary",
1152
1152
  get children() {
1153
- return r(W.ItemIndicator, {
1153
+ return r(Z.ItemIndicator, {
1154
1154
  class: "h-2 w-2 rounded-full bg-primary"
1155
1155
  });
1156
1156
  }
1157
- }), r(W.ItemLabel, {
1157
+ }), r(Z.ItemLabel, {
1158
1158
  get children() {
1159
1159
  return t.label;
1160
1160
  }
@@ -1165,15 +1165,15 @@ function Wo(e) {
1165
1165
  }
1166
1166
  });
1167
1167
  }
1168
- var rn = /* @__PURE__ */ d("<textarea>");
1169
- const nn = "w-full min-h-[80px] resize-y rounded-md border border-input bg-background text-foreground placeholder:text-muted-foreground px-3 py-2 text-sm outline-none transition-colors focus:border-ring focus:ring-2 focus:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50";
1170
- function Qo(e) {
1171
- const [t, o] = L(e, ["value", "onInput", "class"]);
1168
+ var nn = /* @__PURE__ */ u("<textarea>");
1169
+ const on = "w-full min-h-[80px] resize-y rounded-md border border-input bg-background text-foreground placeholder:text-muted-foreground px-3 py-2 text-sm outline-none transition-colors focus:border-ring focus:ring-2 focus:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50";
1170
+ function tl(e) {
1171
+ const [t, o] = E(e, ["value", "onInput", "class"]);
1172
1172
  return (() => {
1173
- var n = rn();
1174
- return n.$$input = (l) => t.onInput(l.currentTarget.value), I(n, A({
1173
+ var n = nn();
1174
+ return n.$$input = (l) => t.onInput(l.currentTarget.value), F(n, L({
1175
1175
  get class() {
1176
- return g(nn, t.class);
1176
+ return f(on, t.class);
1177
1177
  },
1178
1178
  get value() {
1179
1179
  return t.value;
@@ -1181,23 +1181,23 @@ function Qo(e) {
1181
1181
  }, o), !1, !1), n;
1182
1182
  })();
1183
1183
  }
1184
- ee(["input"]);
1185
- function el(e) {
1186
- return r(ge, {
1184
+ J(["input"]);
1185
+ function rl(e) {
1186
+ return r(ue, {
1187
1187
  get children() {
1188
- return [r(ge.Trigger, {
1188
+ return [r(ue.Trigger, {
1189
1189
  class: "inline-flex",
1190
1190
  get children() {
1191
1191
  return e.children;
1192
1192
  }
1193
- }), r(ge.Portal, {
1193
+ }), r(ue.Portal, {
1194
1194
  get children() {
1195
- return r(ge.Content, {
1195
+ return r(ue.Content, {
1196
1196
  get class() {
1197
- return g("z-50 rounded-md border border-border bg-card px-2.5 py-1.5 text-xs text-card-foreground shadow-md", e.class);
1197
+ return f("z-50 rounded-md border border-border bg-card px-2.5 py-1.5 text-xs text-card-foreground shadow-md", e.class);
1198
1198
  },
1199
1199
  get children() {
1200
- return [r(ge.Arrow, {}), ae(() => e.content)];
1200
+ return [r(ue.Arrow, {}), oe(() => e.content)];
1201
1201
  }
1202
1202
  });
1203
1203
  }
@@ -1205,22 +1205,22 @@ function el(e) {
1205
1205
  }
1206
1206
  });
1207
1207
  }
1208
- function tl(e) {
1209
- return r(fe, {
1208
+ function nl(e) {
1209
+ return r(ge, {
1210
1210
  get children() {
1211
- return [r(fe.Trigger, {
1211
+ return [r(ge.Trigger, {
1212
1212
  class: "inline-flex",
1213
1213
  get children() {
1214
1214
  return e.trigger;
1215
1215
  }
1216
- }), r(fe.Portal, {
1216
+ }), r(ge.Portal, {
1217
1217
  get children() {
1218
- return r(fe.Content, {
1218
+ return r(ge.Content, {
1219
1219
  get class() {
1220
- return g("bg-glass z-50 rounded-lg border border-border p-4 text-card-foreground shadow-lg", e.class);
1220
+ return f("bg-glass z-50 rounded-lg border border-border p-4 text-card-foreground shadow-lg", e.class);
1221
1221
  },
1222
1222
  get children() {
1223
- return [r(fe.Arrow, {}), ae(() => e.children)];
1223
+ return [r(ge.Arrow, {}), oe(() => e.children)];
1224
1224
  }
1225
1225
  });
1226
1226
  }
@@ -1228,22 +1228,22 @@ function tl(e) {
1228
1228
  }
1229
1229
  });
1230
1230
  }
1231
- function rl(e) {
1232
- return r(me, {
1231
+ function ol(e) {
1232
+ return r(fe, {
1233
1233
  get children() {
1234
- return [r(me.Trigger, {
1234
+ return [r(fe.Trigger, {
1235
1235
  class: "inline-flex",
1236
1236
  get children() {
1237
1237
  return e.trigger;
1238
1238
  }
1239
- }), r(me.Portal, {
1239
+ }), r(fe.Portal, {
1240
1240
  get children() {
1241
- return r(me.Content, {
1241
+ return r(fe.Content, {
1242
1242
  get class() {
1243
- return g("bg-glass z-50 rounded-lg border border-border p-4 text-card-foreground shadow-lg", e.class);
1243
+ return f("bg-glass z-50 rounded-lg border border-border p-4 text-card-foreground shadow-lg", e.class);
1244
1244
  },
1245
1245
  get children() {
1246
- return [r(me.Arrow, {}), ae(() => e.children)];
1246
+ return [r(fe.Arrow, {}), oe(() => e.children)];
1247
1247
  }
1248
1248
  });
1249
1249
  }
@@ -1251,62 +1251,62 @@ function rl(e) {
1251
1251
  }
1252
1252
  });
1253
1253
  }
1254
- var on = /* @__PURE__ */ d("<p class=font-semibold>"), ln = /* @__PURE__ */ d("<div class=flex-1><div class=text-muted-foreground>");
1255
- const an = {
1254
+ var ln = /* @__PURE__ */ u("<p class=font-semibold>"), an = /* @__PURE__ */ u("<div class=flex-1><div class=text-muted-foreground>");
1255
+ const dn = {
1256
1256
  info: {
1257
1257
  wrap: "border-sky-500/30 bg-sky-500/10",
1258
1258
  icon: "text-sky-500",
1259
- Icon: Mt
1259
+ Icon: Et
1260
1260
  },
1261
1261
  success: {
1262
1262
  wrap: "border-emerald-500/30 bg-emerald-500/10",
1263
1263
  icon: "text-emerald-500",
1264
- Icon: Tt
1264
+ Icon: Mt
1265
1265
  },
1266
1266
  warning: {
1267
1267
  wrap: "border-amber-500/30 bg-amber-500/10",
1268
1268
  icon: "text-amber-500",
1269
- Icon: St
1269
+ Icon: Tt
1270
1270
  },
1271
1271
  danger: {
1272
1272
  wrap: "border-rose-500/30 bg-rose-500/10",
1273
1273
  icon: "text-rose-500",
1274
- Icon: Ct
1274
+ Icon: St
1275
1275
  }
1276
1276
  };
1277
- function nl(e) {
1278
- const t = () => an[e.tone ?? "info"];
1279
- return r(Pt, {
1277
+ function ll(e) {
1278
+ const t = () => dn[e.tone ?? "info"];
1279
+ return r(jt, {
1280
1280
  get class() {
1281
- return g("flex gap-3 rounded-lg border p-3 text-sm text-foreground", t().wrap, e.class);
1281
+ return f("flex gap-3 rounded-lg border p-3 text-sm text-foreground", t().wrap, e.class);
1282
1282
  },
1283
1283
  get children() {
1284
- return [r(yt, {
1284
+ return [r(wt, {
1285
1285
  get component() {
1286
1286
  return t().Icon;
1287
1287
  },
1288
1288
  get class() {
1289
- return g("mt-0.5 h-4 w-4 shrink-0", t().icon);
1289
+ return f("mt-0.5 h-4 w-4 shrink-0", t().icon);
1290
1290
  }
1291
1291
  }), (() => {
1292
- var o = ln(), n = o.firstChild;
1293
- return a(o, r($, {
1292
+ var o = an(), n = o.firstChild;
1293
+ return i(o, r($, {
1294
1294
  get when() {
1295
1295
  return e.title;
1296
1296
  },
1297
1297
  get children() {
1298
- var l = on();
1299
- return a(l, () => e.title), l;
1298
+ var l = ln();
1299
+ return i(l, () => e.title), l;
1300
1300
  }
1301
- }), n), a(n, () => e.children), o;
1301
+ }), n), i(n, () => e.children), o;
1302
1302
  })()];
1303
1303
  }
1304
1304
  });
1305
1305
  }
1306
- function ol(e) {
1306
+ function al(e) {
1307
1307
  return r(ke, {
1308
1308
  get class() {
1309
- return g("inline-flex h-9 w-9 shrink-0 overflow-hidden rounded-full bg-muted", e.class);
1309
+ return f("inline-flex h-9 w-9 shrink-0 overflow-hidden rounded-full bg-muted", e.class);
1310
1310
  },
1311
1311
  get children() {
1312
1312
  return [r(ke.Img, {
@@ -1326,27 +1326,27 @@ function ol(e) {
1326
1326
  }
1327
1327
  });
1328
1328
  }
1329
- var cn = /* @__PURE__ */ d("<div>");
1330
- function ll(e) {
1329
+ var cn = /* @__PURE__ */ u("<div>");
1330
+ function il(e) {
1331
1331
  return (() => {
1332
1332
  var t = cn();
1333
- return S(() => X(t, g("animate-pulse rounded-md bg-muted", e.class))), t;
1333
+ return S(() => Y(t, f("animate-pulse rounded-md bg-muted", e.class))), t;
1334
1334
  })();
1335
1335
  }
1336
- function al(e) {
1336
+ function dl(e) {
1337
1337
  const t = () => e.orientation ?? "horizontal";
1338
- return r(jt, {
1338
+ return r(Bt, {
1339
1339
  get orientation() {
1340
1340
  return t();
1341
1341
  },
1342
1342
  get class() {
1343
- return g("bg-border", t() === "vertical" ? "w-px self-stretch" : "h-px w-full", e.class);
1343
+ return f("bg-border", t() === "vertical" ? "w-px self-stretch" : "h-px w-full", e.class);
1344
1344
  }
1345
1345
  });
1346
1346
  }
1347
- var dn = /* @__PURE__ */ d('<div class="flex items-center justify-between text-sm text-foreground">');
1348
- function il(e) {
1349
- return r(he, {
1347
+ var sn = /* @__PURE__ */ u('<div class="flex items-center justify-between text-sm text-foreground">');
1348
+ function cl(e) {
1349
+ return r(me, {
1350
1350
  get value() {
1351
1351
  return e.value;
1352
1352
  },
@@ -1355,7 +1355,7 @@ function il(e) {
1355
1355
  return e.max ?? 100;
1356
1356
  },
1357
1357
  get class() {
1358
- return g("flex flex-col gap-1.5", e.class);
1358
+ return f("flex flex-col gap-1.5", e.class);
1359
1359
  },
1360
1360
  get children() {
1361
1361
  return [r($, {
@@ -1363,19 +1363,19 @@ function il(e) {
1363
1363
  return e.label;
1364
1364
  },
1365
1365
  get children() {
1366
- var t = dn();
1367
- return a(t, r(he.Label, {
1366
+ var t = sn();
1367
+ return i(t, r(me.Label, {
1368
1368
  get children() {
1369
1369
  return e.label;
1370
1370
  }
1371
- }), null), a(t, r(he.ValueLabel, {
1371
+ }), null), i(t, r(me.ValueLabel, {
1372
1372
  class: "text-muted-foreground"
1373
1373
  }), null), t;
1374
1374
  }
1375
- }), r(he.Track, {
1375
+ }), r(me.Track, {
1376
1376
  class: "h-2 overflow-hidden rounded-full bg-muted",
1377
1377
  get children() {
1378
- return r(he.Fill, {
1378
+ return r(me.Fill, {
1379
1379
  class: "h-full rounded-full bg-primary transition-all"
1380
1380
  });
1381
1381
  }
@@ -1383,9 +1383,9 @@ function il(e) {
1383
1383
  }
1384
1384
  });
1385
1385
  }
1386
- var sn = /* @__PURE__ */ d('<div class="flex items-center justify-between text-sm text-foreground">');
1387
- function cl(e) {
1388
- return r(be, {
1386
+ var un = /* @__PURE__ */ u('<div class="flex items-center justify-between text-sm text-foreground">');
1387
+ function sl(e) {
1388
+ return r(he, {
1389
1389
  get value() {
1390
1390
  return e.value;
1391
1391
  },
@@ -1394,7 +1394,7 @@ function cl(e) {
1394
1394
  return e.max ?? 100;
1395
1395
  },
1396
1396
  get class() {
1397
- return g("flex flex-col gap-1.5", e.class);
1397
+ return f("flex flex-col gap-1.5", e.class);
1398
1398
  },
1399
1399
  get children() {
1400
1400
  return [r($, {
@@ -1402,19 +1402,19 @@ function cl(e) {
1402
1402
  return e.label;
1403
1403
  },
1404
1404
  get children() {
1405
- var t = sn();
1406
- return a(t, r(be.Label, {
1405
+ var t = un();
1406
+ return i(t, r(he.Label, {
1407
1407
  get children() {
1408
1408
  return e.label;
1409
1409
  }
1410
- }), null), a(t, r(be.ValueLabel, {
1410
+ }), null), i(t, r(he.ValueLabel, {
1411
1411
  class: "text-muted-foreground"
1412
1412
  }), null), t;
1413
1413
  }
1414
- }), r(be.Track, {
1414
+ }), r(he.Track, {
1415
1415
  class: "h-2 overflow-hidden rounded-full bg-muted",
1416
1416
  get children() {
1417
- return r(be.Fill, {
1417
+ return r(he.Fill, {
1418
1418
  class: "h-full rounded-full bg-primary transition-all"
1419
1419
  });
1420
1420
  }
@@ -1422,9 +1422,9 @@ function cl(e) {
1422
1422
  }
1423
1423
  });
1424
1424
  }
1425
- var un = /* @__PURE__ */ d('<div class="flex items-center justify-between text-sm text-foreground">');
1426
- function dl(e) {
1427
- return r(Q, {
1425
+ var gn = /* @__PURE__ */ u('<div class="flex items-center justify-between text-sm text-foreground">');
1426
+ function ul(e) {
1427
+ return r(W, {
1428
1428
  get value() {
1429
1429
  return [e.value];
1430
1430
  },
@@ -1439,7 +1439,7 @@ function dl(e) {
1439
1439
  return e.step ?? 1;
1440
1440
  },
1441
1441
  get class() {
1442
- return g("flex flex-col gap-2", e.class);
1442
+ return f("flex flex-col gap-2", e.class);
1443
1443
  },
1444
1444
  get children() {
1445
1445
  return [r($, {
@@ -1447,24 +1447,24 @@ function dl(e) {
1447
1447
  return e.label;
1448
1448
  },
1449
1449
  get children() {
1450
- var t = un();
1451
- return a(t, r(Q.Label, {
1450
+ var t = gn();
1451
+ return i(t, r(W.Label, {
1452
1452
  get children() {
1453
1453
  return e.label;
1454
1454
  }
1455
- }), null), a(t, r(Q.ValueLabel, {
1455
+ }), null), i(t, r(W.ValueLabel, {
1456
1456
  class: "text-muted-foreground"
1457
1457
  }), null), t;
1458
1458
  }
1459
- }), r(Q.Track, {
1459
+ }), r(W.Track, {
1460
1460
  class: "relative h-1.5 w-full rounded-full bg-muted",
1461
1461
  get children() {
1462
- return [r(Q.Fill, {
1462
+ return [r(W.Fill, {
1463
1463
  class: "absolute h-full rounded-full bg-primary"
1464
- }), r(Q.Thumb, {
1464
+ }), r(W.Thumb, {
1465
1465
  class: "-top-1.5 block h-4 w-4 rounded-full bg-primary outline-none focus:ring-2 focus:ring-ring/40",
1466
1466
  get children() {
1467
- return r(Q.Input, {});
1467
+ return r(W.Input, {});
1468
1468
  }
1469
1469
  })];
1470
1470
  }
@@ -1472,9 +1472,9 @@ function dl(e) {
1472
1472
  }
1473
1473
  });
1474
1474
  }
1475
- const Be = "grid h-9 w-9 shrink-0 place-items-center border border-input bg-background text-foreground transition-colors hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50";
1476
- function sl(e) {
1477
- return r($e, {
1475
+ const Ne = "grid h-9 w-9 shrink-0 place-items-center border border-input bg-background text-foreground transition-colors hover:bg-muted disabled:cursor-not-allowed disabled:opacity-50";
1476
+ function gl(e) {
1477
+ return r(we, {
1478
1478
  get rawValue() {
1479
1479
  return e.value;
1480
1480
  },
@@ -1486,20 +1486,20 @@ function sl(e) {
1486
1486
  return e.max;
1487
1487
  },
1488
1488
  get class() {
1489
- return g("inline-flex items-stretch", e.class);
1489
+ return f("inline-flex items-stretch", e.class);
1490
1490
  },
1491
1491
  get children() {
1492
- return [r($e.DecrementTrigger, {
1492
+ return [r(we.DecrementTrigger, {
1493
1493
  get class() {
1494
- return g(Be, "rounded-l-md");
1494
+ return f(Ne, "rounded-l-md");
1495
1495
  },
1496
1496
  "aria-label": "Decrement",
1497
1497
  children: "−"
1498
- }), r($e.Input, {
1498
+ }), r(we.Input, {
1499
1499
  class: "w-16 border-y border-input bg-background px-3 py-2 text-center text-sm text-foreground outline-none transition-colors focus:border-ring focus:ring-2 focus:ring-ring/30"
1500
- }), r($e.IncrementTrigger, {
1500
+ }), r(we.IncrementTrigger, {
1501
1501
  get class() {
1502
- return g(Be, "rounded-r-md");
1502
+ return f(Ne, "rounded-r-md");
1503
1503
  },
1504
1504
  "aria-label": "Increment",
1505
1505
  children: "+"
@@ -1507,8 +1507,8 @@ function sl(e) {
1507
1507
  }
1508
1508
  });
1509
1509
  }
1510
- function ul(e) {
1511
- return r(Bt, {
1510
+ function fl(e) {
1511
+ return r(Nt, {
1512
1512
  get pressed() {
1513
1513
  return e.pressed;
1514
1514
  },
@@ -1516,7 +1516,7 @@ function ul(e) {
1516
1516
  return e.onChange;
1517
1517
  },
1518
1518
  get class() {
1519
- return g(
1519
+ return f(
1520
1520
  // Outlined at rest so it reads as a button; filled primary when pressed
1521
1521
  // so the "on" state is unmistakable (the resting muted look alone made it
1522
1522
  // look like stray text).
@@ -1529,8 +1529,8 @@ function ul(e) {
1529
1529
  }
1530
1530
  });
1531
1531
  }
1532
- function gl(e) {
1533
- return r(Re, {
1532
+ function ml(e) {
1533
+ return r(ze, {
1534
1534
  get value() {
1535
1535
  return e.value;
1536
1536
  },
@@ -1538,14 +1538,14 @@ function gl(e) {
1538
1538
  return e.onChange;
1539
1539
  },
1540
1540
  get class() {
1541
- return g("inline-flex gap-1 rounded-md border border-border bg-card p-1", e.class);
1541
+ return f("inline-flex gap-1 rounded-md border border-border bg-card p-1", e.class);
1542
1542
  },
1543
1543
  get children() {
1544
- return r(O, {
1544
+ return r(R, {
1545
1545
  get each() {
1546
1546
  return e.options;
1547
1547
  },
1548
- children: (t) => r(Re.Item, {
1548
+ children: (t) => r(ze.Item, {
1549
1549
  get value() {
1550
1550
  return t.value;
1551
1551
  },
@@ -1558,8 +1558,8 @@ function gl(e) {
1558
1558
  }
1559
1559
  });
1560
1560
  }
1561
- function fl(e) {
1562
- return r(xe, {
1561
+ function hl(e) {
1562
+ return r(be, {
1563
1563
  get value() {
1564
1564
  return e.value;
1565
1565
  },
@@ -1567,22 +1567,22 @@ function fl(e) {
1567
1567
  return e.onChange;
1568
1568
  },
1569
1569
  get class() {
1570
- return g("relative inline-flex rounded-md border border-border bg-card p-1", e.class);
1570
+ return f("relative inline-flex rounded-md border border-border bg-card p-1", e.class);
1571
1571
  },
1572
1572
  get children() {
1573
- return [r(xe.Indicator, {
1573
+ return [r(be.Indicator, {
1574
1574
  class: "absolute rounded-sm bg-primary shadow-sm transition-all"
1575
- }), r(O, {
1575
+ }), r(R, {
1576
1576
  get each() {
1577
1577
  return e.options;
1578
1578
  },
1579
- children: (t) => r(xe.Item, {
1579
+ children: (t) => r(be.Item, {
1580
1580
  get value() {
1581
1581
  return t.value;
1582
1582
  },
1583
1583
  class: "relative z-10 flex cursor-pointer items-center px-3 py-1.5 text-sm font-medium text-muted-foreground transition-colors data-[selected]:text-primary-foreground",
1584
1584
  get children() {
1585
- return [r(xe.ItemInput, {}), r(xe.ItemLabel, {
1585
+ return [r(be.ItemInput, {}), r(be.ItemLabel, {
1586
1586
  get children() {
1587
1587
  return t.label;
1588
1588
  }
@@ -1593,30 +1593,30 @@ function fl(e) {
1593
1593
  }
1594
1594
  });
1595
1595
  }
1596
- var gn = /* @__PURE__ */ d('<ol class="flex items-center gap-2 text-muted-foreground">'), fn = /* @__PURE__ */ d('<li class="flex items-center gap-2">'), mn = /* @__PURE__ */ d("<span>");
1597
- function ml(e) {
1596
+ var fn = /* @__PURE__ */ u('<ol class="flex items-center gap-2 text-muted-foreground">'), mn = /* @__PURE__ */ u('<li class="flex items-center gap-2">'), hn = /* @__PURE__ */ u("<span>");
1597
+ function bl(e) {
1598
1598
  return r(Ce, {
1599
1599
  get class() {
1600
- return g("text-sm", e.class);
1600
+ return f("text-sm", e.class);
1601
1601
  },
1602
1602
  get children() {
1603
- var t = gn();
1604
- return a(t, r(O, {
1603
+ var t = fn();
1604
+ return i(t, r(R, {
1605
1605
  get each() {
1606
1606
  return e.items;
1607
1607
  },
1608
1608
  children: (o, n) => {
1609
1609
  const l = () => n() === e.items.length - 1;
1610
1610
  return (() => {
1611
- var i = fn();
1612
- return a(i, r($, {
1611
+ var a = mn();
1612
+ return i(a, r($, {
1613
1613
  get when() {
1614
- return ae(() => !!o.href)() && !l();
1614
+ return oe(() => !!o.href)() && !l();
1615
1615
  },
1616
1616
  get fallback() {
1617
1617
  return (() => {
1618
- var c = mn();
1619
- return a(c, () => o.label), S(() => X(c, l() ? "font-medium text-foreground" : void 0)), c;
1618
+ var d = hn();
1619
+ return i(d, () => o.label), S(() => Y(d, l() ? "font-medium text-foreground" : void 0)), d;
1620
1620
  })();
1621
1621
  },
1622
1622
  get children() {
@@ -1630,7 +1630,7 @@ function ml(e) {
1630
1630
  }
1631
1631
  });
1632
1632
  }
1633
- }), null), a(i, r($, {
1633
+ }), null), i(a, r($, {
1634
1634
  get when() {
1635
1635
  return !l();
1636
1636
  },
@@ -1639,16 +1639,16 @@ function ml(e) {
1639
1639
  class: "text-muted-foreground/60"
1640
1640
  });
1641
1641
  }
1642
- }), null), i;
1642
+ }), null), a;
1643
1643
  })();
1644
1644
  }
1645
1645
  })), t;
1646
1646
  }
1647
1647
  });
1648
1648
  }
1649
- var hn = /* @__PURE__ */ d("<div class=p-6>"), bn = /* @__PURE__ */ d('<div class="fixed inset-0 z-50 flex items-center justify-center p-4">');
1650
- function hl(e) {
1651
- return r(ne, {
1649
+ var bn = /* @__PURE__ */ u("<div class=p-6>"), xn = /* @__PURE__ */ u('<div class="fixed inset-0 z-50 flex items-center justify-center p-4">');
1650
+ function xl(e) {
1651
+ return r(te, {
1652
1652
  get open() {
1653
1653
  return e.open;
1654
1654
  },
@@ -1656,31 +1656,31 @@ function hl(e) {
1656
1656
  return e.onOpenChange;
1657
1657
  },
1658
1658
  get children() {
1659
- return r(ne.Portal, {
1659
+ return r(te.Portal, {
1660
1660
  get children() {
1661
- return [r(ne.Overlay, {
1661
+ return [r(te.Overlay, {
1662
1662
  class: "modal-overlay fixed inset-0 z-40 bg-background/80 backdrop-blur-sm"
1663
1663
  }), (() => {
1664
- var t = bn();
1665
- return a(t, r(ne.Content, {
1664
+ var t = xn();
1665
+ return i(t, r(te.Content, {
1666
1666
  get class() {
1667
- return g("modal-content w-full max-w-md rounded-xl border border-border bg-card text-card-foreground shadow-sm", e.class);
1667
+ return f("modal-content w-full max-w-md rounded-xl border border-border bg-card text-card-foreground shadow-sm", e.class);
1668
1668
  },
1669
1669
  get children() {
1670
- var o = hn();
1671
- return a(o, r($, {
1670
+ var o = bn();
1671
+ return i(o, r($, {
1672
1672
  get when() {
1673
1673
  return e.title;
1674
1674
  },
1675
1675
  get children() {
1676
- return r(ne.Title, {
1676
+ return r(te.Title, {
1677
1677
  class: "text-lg font-semibold leading-none tracking-tight",
1678
1678
  get children() {
1679
1679
  return e.title;
1680
1680
  }
1681
1681
  });
1682
1682
  }
1683
- }), null), a(o, r(ne.Description, {
1683
+ }), null), i(o, r(te.Description, {
1684
1684
  class: "mt-3 text-sm text-muted-foreground",
1685
1685
  get children() {
1686
1686
  return e.children;
@@ -1694,28 +1694,28 @@ function hl(e) {
1694
1694
  }
1695
1695
  });
1696
1696
  }
1697
- function bl(e) {
1698
- return r(ve, {
1697
+ function vl(e) {
1698
+ return r(xe, {
1699
1699
  get children() {
1700
- return [r(ve.Trigger, {
1700
+ return [r(xe.Trigger, {
1701
1701
  get class() {
1702
- return g("inline-flex", e.class);
1702
+ return f("inline-flex", e.class);
1703
1703
  },
1704
1704
  get children() {
1705
1705
  return e.children;
1706
1706
  }
1707
- }), r(ve.Portal, {
1707
+ }), r(xe.Portal, {
1708
1708
  get children() {
1709
- return r(ve.Content, {
1709
+ return r(xe.Content, {
1710
1710
  class: "z-50 min-w-[10rem] overflow-hidden rounded-md border border-border bg-card p-1 text-card-foreground shadow-sm",
1711
1711
  get children() {
1712
- return r(O, {
1712
+ return r(R, {
1713
1713
  get each() {
1714
1714
  return e.items;
1715
1715
  },
1716
- children: (t) => r(ve.Item, {
1716
+ children: (t) => r(xe.Item, {
1717
1717
  get class() {
1718
- return g("cursor-pointer select-none rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-muted data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t.destructive && "text-destructive");
1718
+ return f("cursor-pointer select-none rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-muted data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t.destructive && "text-destructive");
1719
1719
  },
1720
1720
  get disabled() {
1721
1721
  return t.disabled;
@@ -1735,8 +1735,8 @@ function bl(e) {
1735
1735
  }
1736
1736
  });
1737
1737
  }
1738
- function xl(e) {
1739
- return r(N, {
1738
+ function pl(e) {
1739
+ return r(B, {
1740
1740
  get options() {
1741
1741
  return e.options;
1742
1742
  },
@@ -1748,21 +1748,21 @@ function xl(e) {
1748
1748
  return e.placeholder;
1749
1749
  },
1750
1750
  get class() {
1751
- return g("w-full", e.class);
1751
+ return f("w-full", e.class);
1752
1752
  },
1753
- itemComponent: (t) => r(N.Item, {
1753
+ itemComponent: (t) => r(B.Item, {
1754
1754
  get item() {
1755
1755
  return t.item;
1756
1756
  },
1757
1757
  class: "flex cursor-pointer select-none items-center justify-between rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-muted",
1758
1758
  get children() {
1759
- return [r(N.ItemLabel, {
1759
+ return [r(B.ItemLabel, {
1760
1760
  get children() {
1761
1761
  return t.item.rawValue;
1762
1762
  }
1763
- }), r(N.ItemIndicator, {
1763
+ }), r(B.ItemIndicator, {
1764
1764
  get children() {
1765
- return r(Ft, {
1765
+ return r(Lt, {
1766
1766
  class: "h-4 w-4"
1767
1767
  });
1768
1768
  }
@@ -1770,17 +1770,17 @@ function xl(e) {
1770
1770
  }
1771
1771
  }),
1772
1772
  get children() {
1773
- return [r(N.Control, {
1773
+ return [r(B.Control, {
1774
1774
  class: "flex w-full items-center rounded-md border border-input bg-background text-foreground transition-colors focus-within:border-ring focus-within:ring-2 focus-within:ring-ring/30",
1775
1775
  get children() {
1776
- return [r(N.Input, {
1776
+ return [r(B.Input, {
1777
1777
  class: "w-full bg-transparent px-3 py-2 text-sm outline-none placeholder:text-muted-foreground"
1778
- }), r(N.Trigger, {
1778
+ }), r(B.Trigger, {
1779
1779
  class: "grid h-9 w-9 shrink-0 place-items-center text-muted-foreground",
1780
1780
  get children() {
1781
- return r(N.Icon, {
1781
+ return r(B.Icon, {
1782
1782
  get children() {
1783
- return r(Et, {
1783
+ return r(Ft, {
1784
1784
  class: "h-4 w-4"
1785
1785
  });
1786
1786
  }
@@ -1788,12 +1788,12 @@ function xl(e) {
1788
1788
  }
1789
1789
  })];
1790
1790
  }
1791
- }), r(N.Portal, {
1791
+ }), r(B.Portal, {
1792
1792
  get children() {
1793
- return r(N.Content, {
1793
+ return r(B.Content, {
1794
1794
  class: "z-50 overflow-hidden rounded-md border border-border bg-card p-1 text-card-foreground shadow-sm",
1795
1795
  get children() {
1796
- return r(N.Listbox, {
1796
+ return r(B.Listbox, {
1797
1797
  class: "max-h-60 overflow-y-auto"
1798
1798
  });
1799
1799
  }
@@ -1803,8 +1803,33 @@ function xl(e) {
1803
1803
  }
1804
1804
  });
1805
1805
  }
1806
- var xn = /* @__PURE__ */ d('<div id=space aria-hidden=true><div class=sky></div><div class=aurora></div><div id=starfield></div><svg class=constellation viewBox="0 0 260 170"style=position:absolute;top:6%;left:58%;width:260px;height:170px><g class=cline fill=none stroke="color-mix(in srgb, hsl(var(--accent)) 65%, white)"stroke-width=2><line x1=12 y1=120 x2=70 y2=60></line><line x1=70 y1=60 x2=140 y2=80></line><line x1=140 y1=80 x2=205 y2=30></line><line x1=140 y1=80 x2=170 y2=140></line></g><g class=cdot fill=hsl(var(--foreground))><circle cx=12 cy=120 r=3.6></circle><circle cx=70 cy=60 r=4.2></circle><circle cx=140 cy=80 r=3.6></circle><circle cx=205 cy=30 r=3.8></circle><circle cx=170 cy=140 r=3.4></circle></g></svg><svg class=constellation viewBox="0 0 200 130"style=position:absolute;bottom:8%;left:10%;width:200px;height:130px><g class=cline fill=none stroke="color-mix(in srgb, hsl(var(--accent)) 65%, white)"stroke-width=2><line x1=10 y1=20 x2=60 y2=55></line><line x1=60 y1=55 x2=120 y2=40></line><line x1=120 y1=40 x2=180 y2=90></line></g><g class=cdot fill=hsl(var(--foreground))><circle cx=10 cy=20 r=3.4></circle><circle cx=60 cy=55 r=4></circle><circle cx=120 cy=40 r=3.6></circle><circle cx=180 cy=90 r=3.8></circle></g></svg><div class="floaty slow"style=position:absolute;top:88px;right:-30px><div class=planet style="width:120px;height:120px;background:radial-gradient(circle at 32% 28%, color-mix(in srgb, hsl(var(--primary)) 78%, white), hsl(var(--primary)) 70%, color-mix(in srgb, hsl(var(--primary)) 68%, black));opacity:.7;box-shadow:0 0 60px hsl(var(--primary) / .35)"></div></div><div class=floaty style=position:absolute;bottom:60px;left:-24px><div class=planet-glow style="width:72px;height:72px;background:radial-gradient(circle at 36% 30%, color-mix(in srgb, hsl(var(--accent)) 75%, white), hsl(var(--accent)) 72%, color-mix(in srgb, hsl(var(--accent)) 66%, black));opacity:.6;box-shadow:0 0 44px hsl(var(--accent) / .4)"></div></div><div class="floaty slow"style=position:absolute;top:52%;right:6%><div class=planet-glow style="width:26px;height:26px;background:radial-gradient(circle at 35% 30%, hsl(199 60% 90%), hsl(210 30% 62%));opacity:.5"></div></div><div id=cursorGlow style="position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle, hsl(var(--primary) / .10), transparent 70%);transform:translate(-50%,-50%);opacity:0;transition:opacity .4s ease"></div><div id=satellite style="position:absolute;top:14%;left:-6%;transform:rotate(-18deg);filter:drop-shadow(0 0 4px hsl(var(--accent) / .8))">');
1807
- const Ne = [{
1806
+ function st(e) {
1807
+ const t = e.querySelector("#cursorGlow"), o = (a) => {
1808
+ var s, m;
1809
+ t && (t.style.opacity = "1", t.style.left = `${a.clientX}px`, t.style.top = `${a.clientY}px`);
1810
+ const d = a.target, c = (s = d == null ? void 0 : d.closest) == null ? void 0 : s.call(d, ".magnetic");
1811
+ if (c) {
1812
+ const h = c.getBoundingClientRect(), w = (a.clientX - (h.left + h.width / 2)) / h.width, v = (a.clientY - (h.top + h.height / 2)) / h.height;
1813
+ c.style.transform = `translate(${(w * 7).toFixed(1)}px, ${(v * 7).toFixed(1)}px)`;
1814
+ }
1815
+ const g = (m = d == null ? void 0 : d.closest) == null ? void 0 : m.call(d, ".glow-edge");
1816
+ if (g) {
1817
+ const h = g.getBoundingClientRect();
1818
+ g.style.setProperty("--mx", `${a.clientX - h.left}px`), g.style.setProperty("--my", `${a.clientY - h.top}px`);
1819
+ }
1820
+ }, n = () => {
1821
+ t && (t.style.opacity = "0");
1822
+ }, l = (a) => {
1823
+ var c, g;
1824
+ const d = (g = (c = a.target) == null ? void 0 : c.closest) == null ? void 0 : g.call(c, ".magnetic");
1825
+ d && (d.style.transform = "");
1826
+ };
1827
+ return document.addEventListener("pointermove", o), window.addEventListener("pointerleave", n), document.addEventListener("pointerout", l), () => {
1828
+ document.removeEventListener("pointermove", o), window.removeEventListener("pointerleave", n), document.removeEventListener("pointerout", l);
1829
+ };
1830
+ }
1831
+ var vn = /* @__PURE__ */ u('<div id=space aria-hidden=true><div class=sky></div><div class=aurora></div><div id=starfield></div><svg class=constellation viewBox="0 0 260 170"style=position:absolute;top:6%;left:58%;width:260px;height:170px><g class=cline fill=none stroke="color-mix(in srgb, hsl(var(--accent)) 65%, white)"stroke-width=2><line x1=12 y1=120 x2=70 y2=60></line><line x1=70 y1=60 x2=140 y2=80></line><line x1=140 y1=80 x2=205 y2=30></line><line x1=140 y1=80 x2=170 y2=140></line></g><g class=cdot fill=hsl(var(--foreground))><circle cx=12 cy=120 r=3.6></circle><circle cx=70 cy=60 r=4.2></circle><circle cx=140 cy=80 r=3.6></circle><circle cx=205 cy=30 r=3.8></circle><circle cx=170 cy=140 r=3.4></circle></g></svg><svg class=constellation viewBox="0 0 200 130"style=position:absolute;bottom:8%;left:10%;width:200px;height:130px><g class=cline fill=none stroke="color-mix(in srgb, hsl(var(--accent)) 65%, white)"stroke-width=2><line x1=10 y1=20 x2=60 y2=55></line><line x1=60 y1=55 x2=120 y2=40></line><line x1=120 y1=40 x2=180 y2=90></line></g><g class=cdot fill=hsl(var(--foreground))><circle cx=10 cy=20 r=3.4></circle><circle cx=60 cy=55 r=4></circle><circle cx=120 cy=40 r=3.6></circle><circle cx=180 cy=90 r=3.8></circle></g></svg><div class="floaty slow"style=position:absolute;top:88px;right:-30px><div class=planet style="width:120px;height:120px;background:radial-gradient(circle at 32% 28%, color-mix(in srgb, hsl(var(--primary)) 78%, white), hsl(var(--primary)) 70%, color-mix(in srgb, hsl(var(--primary)) 68%, black));opacity:.7;box-shadow:0 0 60px hsl(var(--primary) / .35)"></div></div><div class=floaty style=position:absolute;bottom:60px;left:-24px><div class=planet-glow style="width:72px;height:72px;background:radial-gradient(circle at 36% 30%, color-mix(in srgb, hsl(var(--accent)) 75%, white), hsl(var(--accent)) 72%, color-mix(in srgb, hsl(var(--accent)) 66%, black));opacity:.6;box-shadow:0 0 44px hsl(var(--accent) / .4)"></div></div><div class="floaty slow"style=position:absolute;top:52%;right:6%><div class=planet-glow style="width:26px;height:26px;background:radial-gradient(circle at 35% 30%, hsl(199 60% 90%), hsl(210 30% 62%));opacity:.5"></div></div><div id=cursorGlow style="position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle, hsl(var(--primary) / .10), transparent 70%);transform:translate(-50%,-50%);opacity:0;transition:opacity .4s ease"></div><div id=satellite style="position:absolute;top:14%;left:-6%;transform:rotate(-18deg);filter:drop-shadow(0 0 4px hsl(var(--accent) / .8))">');
1832
+ const Ve = [{
1808
1833
  angle: 22,
1809
1834
  x: [0, 32],
1810
1835
  y: [-6, 18]
@@ -1820,7 +1845,7 @@ const Ne = [{
1820
1845
  angle: 202,
1821
1846
  x: [62, 96],
1822
1847
  y: [52, 80]
1823
- }], vn = ["255,255,255", "180,210,255", "255,228,170", "210,185,255", "165,230,255"], pn = ["198,146,28", "176,120,18", "214,162,46", "160,110,28", "190,134,34"], $n = `<svg viewBox="0 0 24 82" width="100%" height="100%" style="display:block;overflow:visible">
1848
+ }], pn = ["255,255,255", "180,210,255", "255,228,170", "210,185,255", "165,230,255"], $n = ["198,146,28", "176,120,18", "214,162,46", "160,110,28", "190,134,34"], yn = `<svg viewBox="0 0 24 82" width="100%" height="100%" style="display:block;overflow:visible">
1824
1849
  <g class="rk-flame">
1825
1850
  <path d="M8.5 31 C 8 50, 11 70, 12 80 C 13 70, 16 50, 15.5 31 Z" fill="#ff6a00" opacity="0.8"/>
1826
1851
  <path d="M9.6 31 C 9.4 47, 11.2 60, 12 70 C 12.8 60, 14.6 47, 14.4 31 Z" fill="#ffb020" opacity="0.95"/>
@@ -1831,161 +1856,140 @@ const Ne = [{
1831
1856
  <path d="M9 26 L 4.6 34 L 9 31 Z" fill="#ef5a3a"/>
1832
1857
  <path d="M15 26 L 19.4 34 L 15 31 Z" fill="#ef5a3a"/>
1833
1858
  <circle cx="12" cy="19" r="2.3" fill="#8fd0ff" stroke="#2f6aa8" stroke-width="1"/>
1834
- </svg>`, yn = 66, wn = 7;
1835
- function _n(e) {
1859
+ </svg>`, wn = 66, _n = 7;
1860
+ function kn(e) {
1836
1861
  const t = Math.random, o = () => e[Math.floor(t() * e.length)];
1837
1862
  let n = "";
1838
- for (let l = 0; l < yn; l++) {
1839
- const i = t() < 0.12, c = i ? 3 + t() * 1.8 : 1.2 + t() * 1.8, u = i ? 0.85 + t() * 0.15 : 0.3 + t() * 0.55, m = i ? 6 + t() * 8 : 1.5 + t() * 4, s = o(), b = t() < 0.4 ? `animation:twinkle ${(2.6 + t() * 3.5).toFixed(1)}s ease-in-out ${(t() * 4).toFixed(1)}s infinite;` : "";
1840
- n += `<span style="position:absolute;left:${(t() * 100).toFixed(2)}%;top:${(t() * 100).toFixed(2)}%;width:${c.toFixed(1)}px;height:${c.toFixed(1)}px;border-radius:50%;background:rgba(${s},${u.toFixed(2)});box-shadow:0 0 ${m.toFixed(1)}px rgba(${s},${(u * 0.8).toFixed(2)});${b}"></span>`;
1841
- }
1842
1863
  for (let l = 0; l < wn; l++) {
1843
- const i = o(), c = (1.8 + t() * 1.8).toFixed(1), u = (0.7 + t() * 0.3).toFixed(2), m = (4 + t() * 6).toFixed(1), s = (4 + t() * 86).toFixed(1), b = t() < 0.5, y = b ? "106%" : "-6%", M = b ? "-118vw" : "118vw", k = `${((t() * 2 - 1) * 16).toFixed(1)}vh`, E = 34 + t() * 34, P = (-t() * E).toFixed(1);
1844
- n += `<span style="position:absolute;left:${y};top:${s}%;width:${c}px;height:${c}px;border-radius:50%;background:rgba(${i},${u});box-shadow:0 0 ${m}px rgba(${i},${(Number(u) * 0.8).toFixed(2)});--dx:${M};--dy:${k};animation:starDrift ${E.toFixed(1)}s linear ${P}s infinite;"></span>`;
1864
+ const a = t() < 0.12, d = a ? 3 + t() * 1.8 : 1.2 + t() * 1.8, c = a ? 0.85 + t() * 0.15 : 0.3 + t() * 0.55, g = a ? 6 + t() * 8 : 1.5 + t() * 4, s = o(), m = t() < 0.4 ? `animation:twinkle ${(2.6 + t() * 3.5).toFixed(1)}s ease-in-out ${(t() * 4).toFixed(1)}s infinite;` : "";
1865
+ n += `<span style="position:absolute;left:${(t() * 100).toFixed(2)}%;top:${(t() * 100).toFixed(2)}%;width:${d.toFixed(1)}px;height:${d.toFixed(1)}px;border-radius:50%;background:rgba(${s},${c.toFixed(2)});box-shadow:0 0 ${g.toFixed(1)}px rgba(${s},${(c * 0.8).toFixed(2)});${m}"></span>`;
1866
+ }
1867
+ for (let l = 0; l < _n; l++) {
1868
+ const a = o(), d = (1.8 + t() * 1.8).toFixed(1), c = (0.7 + t() * 0.3).toFixed(2), g = (4 + t() * 6).toFixed(1), s = (4 + t() * 86).toFixed(1), m = t() < 0.5, h = m ? "106%" : "-6%", w = m ? "-118vw" : "118vw", v = `${((t() * 2 - 1) * 16).toFixed(1)}vh`, _ = 34 + t() * 34, T = (-t() * _).toFixed(1);
1869
+ n += `<span style="position:absolute;left:${h};top:${s}%;width:${d}px;height:${d}px;border-radius:50%;background:rgba(${a},${c});box-shadow:0 0 ${g}px rgba(${a},${(Number(c) * 0.8).toFixed(2)});--dx:${w};--dy:${v};animation:starDrift ${_.toFixed(1)}s linear ${T}s infinite;"></span>`;
1845
1870
  }
1846
1871
  return n;
1847
1872
  }
1848
- function kn() {
1873
+ function Cn() {
1849
1874
  let e, t;
1850
1875
  const o = tt();
1851
1876
  return pe(() => {
1852
- const n = o() === "light" ? pn : vn;
1853
- t && (t.innerHTML = _n(n));
1854
- }), Xe(() => {
1855
- const n = [], l = [], i = (h, w, v, x) => {
1856
- h.addEventListener(w, v, x), n.push(() => h.removeEventListener(w, v, x));
1877
+ const n = o() === "light" ? $n : pn;
1878
+ t && (t.innerHTML = kn(n));
1879
+ }), Me(() => {
1880
+ const n = [], l = [], a = (b, y, p, O) => {
1881
+ b.addEventListener(y, p, O), n.push(() => b.removeEventListener(y, p, O));
1857
1882
  };
1858
- let c = 0, u = 0, m = 0;
1883
+ let d = 0, c = 0, g = 0;
1859
1884
  const s = () => {
1860
- c = 0, t && (t.style.transform = `translate3d(${u.toFixed(1)}px, ${m.toFixed(1)}px, 0)`), e.querySelectorAll(".constellation").forEach((h) => {
1861
- h.style.transform = `translate3d(${(u * 1.8).toFixed(1)}px, ${(m * 1.8).toFixed(1)}px, 0)`;
1885
+ d = 0, t && (t.style.transform = `translate3d(${c.toFixed(1)}px, ${g.toFixed(1)}px, 0)`), e.querySelectorAll(".constellation").forEach((b) => {
1886
+ b.style.transform = `translate3d(${(c * 1.8).toFixed(1)}px, ${(g * 1.8).toFixed(1)}px, 0)`;
1862
1887
  });
1863
1888
  };
1864
- let b = null, y = null;
1865
- const M = (h) => {
1866
- if (we() || h.gamma == null || h.beta == null) return;
1867
- b === null && (b = h.gamma, y = h.beta);
1868
- const w = Math.max(-25, Math.min(25, h.gamma - b)), v = Math.max(-25, Math.min(25, h.beta - (y ?? 0)));
1869
- u = w / 25 * 16, m = v / 25 * 16, c || (c = requestAnimationFrame(s));
1870
- }, k = window.DeviceOrientationEvent;
1871
- if (k)
1872
- if (typeof k.requestPermission == "function") {
1873
- let h = !1;
1874
- const w = () => {
1875
- var v;
1876
- h || (v = k.requestPermission) == null || v.call(k).then((x) => {
1877
- x === "granted" && (h = !0, i(window, "deviceorientation", M));
1889
+ let m = null, h = null;
1890
+ const w = (b) => {
1891
+ if (ve() || b.gamma == null || b.beta == null) return;
1892
+ m === null && (m = b.gamma, h = b.beta);
1893
+ const y = Math.max(-25, Math.min(25, b.gamma - m)), p = Math.max(-25, Math.min(25, b.beta - (h ?? 0)));
1894
+ c = y / 25 * 16, g = p / 25 * 16, d || (d = requestAnimationFrame(s));
1895
+ }, v = window.DeviceOrientationEvent;
1896
+ if (v)
1897
+ if (typeof v.requestPermission == "function") {
1898
+ let b = !1;
1899
+ const y = () => {
1900
+ var p;
1901
+ b || (p = v.requestPermission) == null || p.call(v).then((O) => {
1902
+ O === "granted" && (b = !0, a(window, "deviceorientation", w));
1878
1903
  }).catch(() => {
1879
1904
  });
1880
1905
  };
1881
- i(window, "click", w), i(window, "touchend", w);
1906
+ a(window, "click", y), a(window, "touchend", y);
1882
1907
  } else
1883
- i(window, "deviceorientation", M);
1908
+ a(window, "deviceorientation", w);
1884
1909
  n.push(() => {
1885
- c && cancelAnimationFrame(c);
1910
+ d && cancelAnimationFrame(d);
1886
1911
  });
1887
- const E = (h, w, v, x, _, T) => {
1888
- const p = document.createElement("div");
1889
- p.className = "shooter", p.style.width = `${x}px`, p.style.left = h, p.style.top = w, e.appendChild(p);
1890
- const G = p.animate([{
1912
+ const _ = (b, y, p, O, G, X) => {
1913
+ const k = document.createElement("div");
1914
+ k.className = "shooter", k.style.width = `${O}px`, k.style.left = b, k.style.top = y, e.appendChild(k);
1915
+ const le = k.animate([{
1891
1916
  opacity: 0,
1892
- transform: `rotate(${v}deg) translateX(0px) scaleX(.4)`
1917
+ transform: `rotate(${p}deg) translateX(0px) scaleX(.4)`
1893
1918
  }, {
1894
1919
  opacity: 1,
1895
- transform: `rotate(${v}deg) translateX(${_ * 0.35}px) scaleX(1)`,
1920
+ transform: `rotate(${p}deg) translateX(${G * 0.35}px) scaleX(1)`,
1896
1921
  offset: 0.5
1897
1922
  }, {
1898
1923
  opacity: 0,
1899
- transform: `rotate(${v}deg) translateX(${_}px) scaleX(1)`
1924
+ transform: `rotate(${p}deg) translateX(${G}px) scaleX(1)`
1900
1925
  }], {
1901
- duration: T,
1926
+ duration: X,
1902
1927
  easing: "cubic-bezier(.3,0,.15,1)",
1903
1928
  fill: "forwards"
1904
1929
  });
1905
- G.onfinish = () => p.remove(), l.push(window.setTimeout(() => p.remove(), T + 250));
1906
- }, P = (h, w, v, x, _, T) => {
1907
- const p = document.createElement("div"), G = x * (82 / 24);
1908
- p.style.cssText = `position:absolute;left:${h};top:${w};width:${x.toFixed(0)}px;height:${G.toFixed(0)}px;pointer-events:none;filter:drop-shadow(0 0 5px rgba(255,170,80,.55));`, p.innerHTML = $n, e.appendChild(p);
1909
- const q = v * Math.PI / 180, f = Math.cos(q) * _, C = Math.sin(q) * _, R = v + 90, U = p.animate([{
1930
+ le.onfinish = () => k.remove(), l.push(window.setTimeout(() => k.remove(), X + 250));
1931
+ }, T = (b, y, p, O, G, X) => {
1932
+ const k = document.createElement("div"), le = O * (82 / 24);
1933
+ k.style.cssText = `position:absolute;left:${b};top:${y};width:${O.toFixed(0)}px;height:${le.toFixed(0)}px;pointer-events:none;filter:drop-shadow(0 0 5px rgba(255,170,80,.55));`, k.innerHTML = yn, e.appendChild(k);
1934
+ const ye = p * Math.PI / 180, x = Math.cos(ye) * G, C = Math.sin(ye) * G, j = p + 90, H = k.animate([{
1910
1935
  opacity: 0,
1911
- transform: `translate(0px,0px) rotate(${R}deg) scale(.5)`
1936
+ transform: `translate(0px,0px) rotate(${j}deg) scale(.5)`
1912
1937
  }, {
1913
1938
  opacity: 1,
1914
- transform: `translate(${(f * 0.12).toFixed(0)}px,${(C * 0.12).toFixed(0)}px) rotate(${R}deg) scale(1)`,
1939
+ transform: `translate(${(x * 0.12).toFixed(0)}px,${(C * 0.12).toFixed(0)}px) rotate(${j}deg) scale(1)`,
1915
1940
  offset: 0.14
1916
1941
  }, {
1917
1942
  opacity: 1,
1918
- transform: `translate(${(f * 0.82).toFixed(0)}px,${(C * 0.82).toFixed(0)}px) rotate(${R}deg) scale(1)`,
1943
+ transform: `translate(${(x * 0.82).toFixed(0)}px,${(C * 0.82).toFixed(0)}px) rotate(${j}deg) scale(1)`,
1919
1944
  offset: 0.82
1920
1945
  }, {
1921
1946
  opacity: 0,
1922
- transform: `translate(${f.toFixed(0)}px,${C.toFixed(0)}px) rotate(${R}deg) scale(.85)`
1947
+ transform: `translate(${x.toFixed(0)}px,${C.toFixed(0)}px) rotate(${j}deg) scale(.85)`
1923
1948
  }], {
1924
- duration: T,
1949
+ duration: X,
1925
1950
  easing: "cubic-bezier(.25,0,.2,1)",
1926
1951
  fill: "forwards"
1927
1952
  });
1928
- U.onfinish = () => p.remove(), l.push(window.setTimeout(() => p.remove(), T + 250));
1929
- }, V = 'a, button, input, select, textarea, label, [role="button"], [role="tab"], [role="menuitem"], [role="dialog"], [contenteditable]';
1930
- if (i(document, "click", ((h) => {
1931
- var w, v;
1932
- (v = (w = h.target) == null ? void 0 : w.closest) != null && v.call(w, V) || (o() === "light" ? P(
1933
- `${h.clientX}px`,
1934
- `${h.clientY}px`,
1953
+ H.onfinish = () => k.remove(), l.push(window.setTimeout(() => k.remove(), X + 250));
1954
+ }, I = 'a, button, input, select, textarea, label, [role="button"], [role="tab"], [role="menuitem"], [role="dialog"], [contenteditable]';
1955
+ if (a(document, "click", ((b) => {
1956
+ var y, p;
1957
+ (p = (y = b.target) == null ? void 0 : y.closest) != null && p.call(y, I) || (o() === "light" ? T(
1958
+ `${b.clientX}px`,
1959
+ `${b.clientY}px`,
1935
1960
  -90 + (Math.random() * 80 - 40),
1936
1961
  // up-and-out from the click
1937
1962
  16 + Math.random() * 10,
1938
1963
  260 + Math.random() * 280,
1939
1964
  950 + Math.random() * 700
1940
- ) : E(`${h.clientX}px`, `${h.clientY}px`, Math.random() * 360, 80 + Math.random() * 120, 300 + Math.random() * 380, 700 + Math.random() * 700));
1941
- })), !we()) {
1942
- const h = () => {
1965
+ ) : _(`${b.clientX}px`, `${b.clientY}px`, Math.random() * 360, 80 + Math.random() * 120, 300 + Math.random() * 380, 700 + Math.random() * 700));
1966
+ })), !ve()) {
1967
+ const b = () => {
1943
1968
  if (o() === "light") {
1944
- P(`${(5 + Math.random() * 90).toFixed(0)}vw`, "104vh", -90 + (Math.random() * 30 - 15), 13 + Math.random() * 9, window.innerHeight * (1.1 + Math.random() * 0.35), 5200 + Math.random() * 3500);
1969
+ T(`${(5 + Math.random() * 90).toFixed(0)}vw`, "104vh", -90 + (Math.random() * 30 - 15), 13 + Math.random() * 9, window.innerHeight * (1.1 + Math.random() * 0.35), 5200 + Math.random() * 3500);
1945
1970
  return;
1946
1971
  }
1947
- const x = Ne[Math.floor(Math.random() * Ne.length)];
1948
- E(`${x.x[0] + Math.random() * (x.x[1] - x.x[0])}vw`, `${x.y[0] + Math.random() * (x.y[1] - x.y[0])}vh`, x.angle + (Math.random() * 16 - 8), 90 + Math.random() * 90, 380 + Math.random() * 300, 850 + Math.random() * 550);
1949
- }, w = () => {
1950
- h(), l.push(window.setTimeout(w, 4500 + Math.random() * 6e3));
1972
+ const p = Ve[Math.floor(Math.random() * Ve.length)];
1973
+ _(`${p.x[0] + Math.random() * (p.x[1] - p.x[0])}vw`, `${p.y[0] + Math.random() * (p.y[1] - p.y[0])}vh`, p.angle + (Math.random() * 16 - 8), 90 + Math.random() * 90, 380 + Math.random() * 300, 850 + Math.random() * 550);
1974
+ }, y = () => {
1975
+ b(), l.push(window.setTimeout(y, 4500 + Math.random() * 6e3));
1951
1976
  };
1952
- l.push(window.setTimeout(w, 1500));
1953
- const v = e.querySelector("#cursorGlow");
1954
- i(document, "pointermove", ((x) => {
1955
- var G, q;
1956
- v && (v.style.opacity = "1", v.style.left = `${x.clientX}px`, v.style.top = `${x.clientY}px`);
1957
- const _ = x.target, T = (G = _ == null ? void 0 : _.closest) == null ? void 0 : G.call(_, ".magnetic");
1958
- if (T) {
1959
- const f = T.getBoundingClientRect(), C = (x.clientX - (f.left + f.width / 2)) / f.width, R = (x.clientY - (f.top + f.height / 2)) / f.height;
1960
- T.style.transform = `translate(${(C * 7).toFixed(1)}px, ${(R * 7).toFixed(1)}px)`;
1961
- }
1962
- const p = (q = _ == null ? void 0 : _.closest) == null ? void 0 : q.call(_, ".glow-edge");
1963
- if (p) {
1964
- const f = p.getBoundingClientRect();
1965
- p.style.setProperty("--mx", `${x.clientX - f.left}px`), p.style.setProperty("--my", `${x.clientY - f.top}px`);
1966
- }
1967
- })), i(window, "pointerleave", (() => {
1968
- v && (v.style.opacity = "0");
1969
- })), i(document, "pointerout", ((x) => {
1970
- var T, p;
1971
- const _ = (p = (T = x.target) == null ? void 0 : T.closest) == null ? void 0 : p.call(T, ".magnetic");
1972
- _ && (_.style.transform = "");
1973
- }));
1977
+ l.push(window.setTimeout(y, 1500)), n.push(st(e));
1974
1978
  }
1975
- _e(() => {
1976
- n.forEach((h) => h()), l.forEach((h) => clearTimeout(h));
1979
+ $e(() => {
1980
+ n.forEach((b) => b()), l.forEach((b) => clearTimeout(b));
1977
1981
  });
1978
1982
  }), (() => {
1979
- var n = xn(), l = n.firstChild, i = l.nextSibling, c = i.nextSibling, u = c.nextSibling, m = u.nextSibling, s = m.nextSibling;
1983
+ var n = vn(), l = n.firstChild, a = l.nextSibling, d = a.nextSibling, c = d.nextSibling, g = c.nextSibling, s = g.nextSibling;
1980
1984
  s.firstChild;
1981
- var b = s.nextSibling;
1982
- b.firstChild;
1983
- var y = b.nextSibling;
1984
- y.firstChild;
1985
- var M = y.nextSibling, k = M.nextSibling, E = e;
1986
- typeof E == "function" ? Y(E, n) : e = n;
1987
- var P = t;
1988
- return typeof P == "function" ? Y(P, c) : t = c, a(k, r(Lt, {
1985
+ var m = s.nextSibling;
1986
+ m.firstChild;
1987
+ var h = m.nextSibling;
1988
+ h.firstChild;
1989
+ var w = h.nextSibling, v = w.nextSibling, _ = e;
1990
+ typeof _ == "function" ? N(_, n) : e = n;
1991
+ var T = t;
1992
+ return typeof T == "function" ? N(T, d) : t = d, i(v, r(It, {
1989
1993
  style: {
1990
1994
  width: "28px",
1991
1995
  height: "28px",
@@ -1995,44 +1999,44 @@ function kn() {
1995
1999
  })), n;
1996
2000
  })();
1997
2001
  }
1998
- var Cn = /* @__PURE__ */ d('<div class="mx-auto max-w-md py-20 text-center"><p class="text-lg font-semibold">Something went wrong loading this page</p><p class="mt-1 break-words text-sm text-muted-foreground"></p><div class="mt-4 flex justify-center gap-2">'), Sn = /* @__PURE__ */ d('<div class="relative min-h-screen"><div class="relative z-10 flex min-h-screen"><div class="flex min-w-0 flex-1 flex-col"><main class="mx-auto w-full min-w-0 flex-1 px-4 py-6 sm:px-6">'), Tn = /* @__PURE__ */ d('<div class="flex justify-center py-24 text-muted-foreground">');
1999
- function Mn(e, t) {
2002
+ var Sn = /* @__PURE__ */ u('<div class="mx-auto max-w-md py-20 text-center"><p class="text-lg font-semibold">Something went wrong loading this page</p><p class="mt-1 break-words text-sm text-muted-foreground"></p><div class="mt-4 flex justify-center gap-2">'), Tn = /* @__PURE__ */ u('<div class="relative min-h-screen"><div class="relative z-10 flex min-h-screen"><div class="flex min-w-0 flex-1 flex-col"><main class="mx-auto w-full min-w-0 flex-1 px-4 py-6 sm:px-6">'), Mn = /* @__PURE__ */ u('<div class="flex justify-center py-24 text-muted-foreground">');
2003
+ function En(e, t) {
2000
2004
  return (() => {
2001
- var o = Cn(), n = o.firstChild, l = n.nextSibling, i = l.nextSibling;
2002
- return a(l, () => String((e == null ? void 0 : e.message) ?? e)), a(i, r(ze, {
2005
+ var o = Sn(), n = o.firstChild, l = n.nextSibling, a = l.nextSibling;
2006
+ return i(l, () => String((e == null ? void 0 : e.message) ?? e)), i(a, r(Pe, {
2003
2007
  variant: "outline",
2004
2008
  onClick: t,
2005
2009
  children: "Retry"
2006
- }), null), a(i, r(ze, {
2010
+ }), null), i(a, r(Pe, {
2007
2011
  onClick: () => window.location.reload(),
2008
2012
  children: "Reload"
2009
2013
  }), null), o;
2010
2014
  })();
2011
2015
  }
2012
- function vl(e) {
2013
- const t = (o, n) => (e.errorFallback ?? Mn)(o, n);
2016
+ function $l(e) {
2017
+ const t = (o, n) => (e.errorFallback ?? En)(o, n);
2014
2018
  return (() => {
2015
- var o = Sn(), n = o.firstChild, l = n.firstChild, i = l.firstChild;
2016
- return a(o, r($, {
2019
+ var o = Tn(), n = o.firstChild, l = n.firstChild, a = l.firstChild;
2020
+ return i(o, r($, {
2017
2021
  get when() {
2018
2022
  return e.background !== null;
2019
2023
  },
2020
2024
  fallback: null,
2021
2025
  get children() {
2022
- return e.background ?? r(kn, {});
2026
+ return e.background ?? r(Cn, {});
2023
2027
  }
2024
- }), n), a(n, () => e.sidebar, l), a(l, () => e.banner, i), a(l, () => e.topbar, i), a(i, r(xt, {
2028
+ }), n), i(n, () => e.sidebar, l), i(l, () => e.banner, a), i(l, () => e.topbar, a), i(a, r(vt, {
2025
2029
  fallback: t,
2026
2030
  get children() {
2027
- return r(vt, {
2031
+ return r(pt, {
2028
2032
  get fallback() {
2029
2033
  return (() => {
2030
- var c = Tn();
2031
- return a(c, r(Vr, {})), c;
2034
+ var d = Mn();
2035
+ return i(d, r(Yr, {})), d;
2032
2036
  })();
2033
2037
  },
2034
2038
  get children() {
2035
- return r(Nt, {
2039
+ return r(Vt, {
2036
2040
  name: "page",
2037
2041
  get children() {
2038
2042
  return e.children;
@@ -2041,67 +2045,113 @@ function vl(e) {
2041
2045
  }
2042
2046
  });
2043
2047
  }
2044
- })), S((c) => le(i, "max-width", e.maxWidth ?? "1400px")), o;
2048
+ })), S((d) => ne(a, "max-width", e.maxWidth ?? "1400px")), o;
2045
2049
  })();
2046
2050
  }
2047
- var En = /* @__PURE__ */ d('<div id=scenery aria-hidden=true><div class=themed-sky></div><div class="absolute inset-0">');
2048
- function Fn(e, t, o) {
2051
+ var Fn = /* @__PURE__ */ u('<div id=scenery aria-hidden=true><div class=themed-sky></div><div class="absolute inset-0"></div><div id=cursorGlow style="position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle, hsl(var(--primary) / 0.1), transparent 70%);transform:translate(-50%,-50%);opacity:0;transition:opacity .4s ease">');
2052
+ function Ln(e, t, o) {
2049
2053
  const n = Math.random, l = () => e[Math.floor(n() * e.length)];
2050
- let i = "";
2051
- for (let c = 0; c < t; c++) {
2052
- const u = 22 + n() * 40, m = 0.08 + n() * 0.16, s = (n() * 100).toFixed(2), b = (n() * 100).toFixed(2), y = (n() * 40 - 20).toFixed(1), M = (6 + n() * 8).toFixed(1), k = (-n() * 8).toFixed(1), E = o ? `--r:${y}deg;--dur:${M}s;--delay:${k}s;` : `transform:rotate(${y}deg);animation:none;`;
2053
- i += `<span class="motif" style="left:${s}%;top:${b}%;font-size:${u.toFixed(0)}px;opacity:${m.toFixed(2)};${E}">${l()}</span>`;
2054
+ let a = "";
2055
+ for (let d = 0; d < t; d++) {
2056
+ const c = 22 + n() * 40, g = 0.08 + n() * 0.16, s = (n() * 100).toFixed(2), m = (n() * 100).toFixed(2), h = (n() * 40 - 20).toFixed(1), w = (6 + n() * 8).toFixed(1), v = (-n() * 8).toFixed(1), _ = o ? `--r:${h}deg;--dur:${w}s;--delay:${v}s;` : `transform:rotate(${h}deg);animation:none;`;
2057
+ a += `<span class="motif" style="left:${s}%;top:${m}%;font-size:${c.toFixed(0)}px;opacity:${g.toFixed(2)};${_}">${l()}</span>`;
2054
2058
  }
2055
- return i;
2059
+ return a;
2056
2060
  }
2057
- function pl(e) {
2058
- let t;
2061
+ const In = 'a, button, input, select, textarea, label, [role="button"], [role="tab"], [role="menuitem"], [role="dialog"], [contenteditable]';
2062
+ function yl(e) {
2063
+ let t, o;
2059
2064
  return pe(() => {
2060
- t.innerHTML = Fn(e.motifs, e.count ?? 16, !we());
2065
+ o.innerHTML = Ln(e.motifs, e.count ?? 16, !ve());
2066
+ }), Me(() => {
2067
+ const n = [], l = [], a = (c, g, s, m, h, w) => {
2068
+ const v = document.createElement("span");
2069
+ v.textContent = e.motifs[Math.floor(Math.random() * e.motifs.length)], v.style.cssText = `position:absolute;left:${c};top:${g};font-size:${w.toFixed(0)}px;pointer-events:none;filter:drop-shadow(0 0 6px hsl(var(--primary) / 0.5));`, t.appendChild(v);
2070
+ const _ = s * Math.PI / 180, T = Math.cos(_) * m, I = Math.sin(_) * m, b = v.animate([{
2071
+ opacity: 0,
2072
+ transform: "translate(0,0) rotate(0deg) scale(.6)"
2073
+ }, {
2074
+ opacity: 1,
2075
+ transform: `translate(${(T * 0.15).toFixed(0)}px,${(I * 0.15).toFixed(0)}px) rotate(18deg) scale(1)`,
2076
+ offset: 0.15
2077
+ }, {
2078
+ opacity: 1,
2079
+ transform: `translate(${(T * 0.85).toFixed(0)}px,${(I * 0.85).toFixed(0)}px) rotate(-14deg) scale(1)`,
2080
+ offset: 0.85
2081
+ }, {
2082
+ opacity: 0,
2083
+ transform: `translate(${T.toFixed(0)}px,${I.toFixed(0)}px) rotate(8deg) scale(.8)`
2084
+ }], {
2085
+ duration: h,
2086
+ easing: "cubic-bezier(.25,0,.2,1)",
2087
+ fill: "forwards"
2088
+ });
2089
+ b.onfinish = () => v.remove(), l.push(window.setTimeout(() => v.remove(), h + 300));
2090
+ }, d = (c) => {
2091
+ var g, s;
2092
+ (s = (g = c.target) == null ? void 0 : g.closest) != null && s.call(g, In) || a(`${c.clientX}px`, `${c.clientY}px`, -90 + (Math.random() * 80 - 40), 260 + Math.random() * 260, 950 + Math.random() * 700, 22 + Math.random() * 14);
2093
+ };
2094
+ if (document.addEventListener("click", d), n.push(() => document.removeEventListener("click", d)), !ve()) {
2095
+ n.push(st(t));
2096
+ const c = () => {
2097
+ const s = Math.random() < 0.5;
2098
+ a(s ? "104vw" : "-6vw", `${(8 + Math.random() * 70).toFixed(0)}vh`, (s ? 180 : 0) + (Math.random() * 16 - 8), window.innerWidth * (1.1 + Math.random() * 0.3), 6e3 + Math.random() * 4e3, 20 + Math.random() * 16);
2099
+ }, g = () => {
2100
+ c(), l.push(window.setTimeout(g, 5e3 + Math.random() * 6e3));
2101
+ };
2102
+ l.push(window.setTimeout(g, 1800));
2103
+ }
2104
+ $e(() => {
2105
+ n.forEach((c) => c()), l.forEach((c) => clearTimeout(c));
2106
+ });
2061
2107
  }), (() => {
2062
- var o = En(), n = o.firstChild, l = n.nextSibling, i = t;
2063
- return typeof i == "function" ? Y(i, l) : t = l, o;
2108
+ var n = Fn(), l = n.firstChild, a = l.nextSibling;
2109
+ a.nextSibling;
2110
+ var d = t;
2111
+ typeof d == "function" ? N(d, n) : t = n;
2112
+ var c = o;
2113
+ return typeof c == "function" ? N(c, a) : o = a, n;
2064
2114
  })();
2065
2115
  }
2066
- var Ln = /* @__PURE__ */ d('<button type=button class="grid h-9 w-9 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground">');
2067
- function $l(e) {
2116
+ var An = /* @__PURE__ */ u('<button type=button class="grid h-9 w-9 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground">');
2117
+ function wl(e) {
2068
2118
  const t = tt();
2069
2119
  return (() => {
2070
- var o = Ln();
2071
- return wt(o, "click", qt, !0), a(o, r($, {
2120
+ var o = An();
2121
+ return _t(o, "click", Ut, !0), i(o, r($, {
2072
2122
  get when() {
2073
2123
  return t() === "dark";
2074
2124
  },
2075
2125
  get fallback() {
2076
- return r(At, {
2126
+ return r(Dt, {
2077
2127
  class: "h-[18px] w-[18px]"
2078
2128
  });
2079
2129
  },
2080
2130
  get children() {
2081
- return r(It, {
2131
+ return r(At, {
2082
2132
  class: "h-[18px] w-[18px]"
2083
2133
  });
2084
2134
  }
2085
2135
  })), S((n) => {
2086
- var l = e.label ?? "Toggle theme", i = e.label ?? "Toggle theme";
2087
- return l !== n.e && B(o, "aria-label", n.e = l), i !== n.t && B(o, "title", n.t = i), n;
2136
+ var l = e.label ?? "Toggle theme", a = e.label ?? "Toggle theme";
2137
+ return l !== n.e && P(o, "aria-label", n.e = l), a !== n.t && P(o, "title", n.t = a), n;
2088
2138
  }, {
2089
2139
  e: void 0,
2090
2140
  t: void 0
2091
2141
  }), o;
2092
2142
  })();
2093
2143
  }
2094
- ee(["click"]);
2095
- var In = /* @__PURE__ */ d('<button type=button class="grid h-9 w-9 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground aria-pressed:text-primary">');
2096
- function yl(e) {
2097
- const t = Zt();
2144
+ J(["click"]);
2145
+ var Dn = /* @__PURE__ */ u('<button type=button class="grid h-9 w-9 place-items-center rounded-lg text-muted-foreground transition hover:bg-muted hover:text-foreground aria-pressed:text-primary">');
2146
+ function _l(e) {
2147
+ const t = Wt();
2098
2148
  return (() => {
2099
- var o = In();
2100
- return o.$$click = () => Wt(!t()), a(o, r(Dt, {
2149
+ var o = Dn();
2150
+ return o.$$click = () => Qt(!t()), i(o, r(Rt, {
2101
2151
  class: "h-[18px] w-[18px]"
2102
2152
  })), S((n) => {
2103
- var l = t(), i = e.label ?? "Visual effects", c = t() ? "Visual effects on — click for calm mode" : "Calm mode — click to enable effects";
2104
- return l !== n.e && B(o, "aria-pressed", n.e = l), i !== n.t && B(o, "aria-label", n.t = i), c !== n.a && B(o, "title", n.a = c), n;
2153
+ var l = t(), a = e.label ?? "Visual effects", d = t() ? "Visual effects on — click for calm mode" : "Calm mode — click to enable effects";
2154
+ return l !== n.e && P(o, "aria-pressed", n.e = l), a !== n.t && P(o, "aria-label", n.t = a), d !== n.a && P(o, "title", n.a = d), n;
2105
2155
  }, {
2106
2156
  e: void 0,
2107
2157
  t: void 0,
@@ -2109,15 +2159,15 @@ function yl(e) {
2109
2159
  }), o;
2110
2160
  })();
2111
2161
  }
2112
- ee(["click"]);
2113
- var An = /* @__PURE__ */ d('<details open class=group><summary class="mt-3 flex cursor-pointer list-none select-none items-center justify-between rounded-md px-3 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground transition-colors hover:bg-muted hover:text-foreground [&amp;::-webkit-details-marker]:hidden"><span></span><svg class="h-3.5 w-3.5 shrink-0 transition-transform duration-200 group-[[open]]:rotate-90"viewBox="0 0 20 20"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M7 5l6 5-6 5"></path></svg></summary><div class="ml-4 mt-1 space-y-0.5 border-l border-border pl-2">');
2114
- function wl(e) {
2162
+ J(["click"]);
2163
+ var Rn = /* @__PURE__ */ u('<details open class=group><summary class="mt-3 flex cursor-pointer list-none select-none items-center justify-between rounded-md px-3 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground transition-colors hover:bg-muted hover:text-foreground [&amp;::-webkit-details-marker]:hidden"><span></span><svg class="h-3.5 w-3.5 shrink-0 transition-transform duration-200 group-[[open]]:rotate-90"viewBox="0 0 20 20"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M7 5l6 5-6 5"></path></svg></summary><div class="ml-4 mt-1 space-y-0.5 border-l border-border pl-2">');
2164
+ function kl(e) {
2115
2165
  return (() => {
2116
- var t = An(), o = t.firstChild, n = o.firstChild, l = o.nextSibling;
2117
- return a(n, () => e.title), a(l, () => e.children), t;
2166
+ var t = Rn(), o = t.firstChild, n = o.firstChild, l = o.nextSibling;
2167
+ return i(n, () => e.title), i(l, () => e.children), t;
2118
2168
  })();
2119
2169
  }
2120
- const Dn = [
2170
+ const zn = [
2121
2171
  "background",
2122
2172
  "foreground",
2123
2173
  "card",
@@ -2133,7 +2183,7 @@ const Dn = [
2133
2183
  "ring",
2134
2184
  "destructive",
2135
2185
  "destructive-foreground"
2136
- ], Fe = {
2186
+ ], Le = {
2137
2187
  name: "space",
2138
2188
  label: "Space",
2139
2189
  description: "The signature spatial-glass look: deep night sky and electric blue.",
@@ -2172,7 +2222,7 @@ const Dn = [
2172
2222
  destructive: "0 72% 50%",
2173
2223
  "destructive-foreground": "0 0% 100%"
2174
2224
  }
2175
- }, Rn = {
2225
+ }, Pn = {
2176
2226
  name: "dino",
2177
2227
  label: "Dino",
2178
2228
  description: "Jurassic jungle: mossy greens with a warm amber accent.",
@@ -2212,7 +2262,7 @@ const Dn = [
2212
2262
  destructive: "0 72% 48%",
2213
2263
  "destructive-foreground": "0 0% 100%"
2214
2264
  }
2215
- }, zn = {
2265
+ }, On = {
2216
2266
  name: "doctor",
2217
2267
  label: "Doctor",
2218
2268
  description: "Clinical and calm: teal and clean blues on crisp white.",
@@ -2252,7 +2302,7 @@ const Dn = [
2252
2302
  destructive: "0 72% 48%",
2253
2303
  "destructive-foreground": "0 0% 100%"
2254
2304
  }
2255
- }, On = {
2305
+ }, jn = {
2256
2306
  name: "scientist",
2257
2307
  label: "Scientist",
2258
2308
  description: "Lab-grade violet with a bright cyan reaction accent.",
@@ -2292,7 +2342,7 @@ const Dn = [
2292
2342
  destructive: "0 72% 48%",
2293
2343
  "destructive-foreground": "0 0% 100%"
2294
2344
  }
2295
- }, Pn = {
2345
+ }, Bn = {
2296
2346
  name: "soccer",
2297
2347
  label: "Soccer",
2298
2348
  description: "Match-day pitch: vivid grass green and fresh lime.",
@@ -2332,135 +2382,135 @@ const Dn = [
2332
2382
  destructive: "0 72% 48%",
2333
2383
  "destructive-foreground": "0 0% 100%"
2334
2384
  }
2335
- }, jn = [Fe, Rn, zn, On, Pn], st = "a4ui-theme-name", Ve = "a4ui-theme", ut = (e) => jn.find((t) => t.name === e);
2336
- function Ye(e) {
2337
- return Dn.map((t) => ` --${t}: ${e[t]};`).join(`
2385
+ }, Nn = [Le, Pn, On, jn, Bn], ut = "a4ui-theme-name", Ye = "a4ui-theme", gt = (e) => Nn.find((t) => t.name === e);
2386
+ function Ge(e) {
2387
+ return zn.map((t) => ` --${t}: ${e[t]};`).join(`
2338
2388
  `);
2339
2389
  }
2340
- function Bn(e) {
2390
+ function Vn(e) {
2341
2391
  return `:root {
2342
- ${Ye(e.dark)}
2392
+ ${Ge(e.dark)}
2343
2393
  }
2344
2394
 
2345
2395
  :root[data-theme='light'] {
2346
- ${Ye(e.light)}
2396
+ ${Ge(e.light)}
2347
2397
  }`;
2348
2398
  }
2349
- function _l(e) {
2399
+ function Cl(e) {
2350
2400
  return { dark: e.dark, light: e.light };
2351
2401
  }
2352
- const [kl, Nn] = j(Fe);
2353
- function Vn(e) {
2402
+ const [Sl, Yn] = z(Le);
2403
+ function Gn(e) {
2354
2404
  if (typeof document > "u") return;
2355
- let t = document.getElementById(Ve);
2356
- t || (t = document.createElement("style"), t.id = Ve, document.head.appendChild(t)), t.textContent = Bn(e);
2405
+ let t = document.getElementById(Ye);
2406
+ t || (t = document.createElement("style"), t.id = Ye, document.head.appendChild(t)), t.textContent = Vn(e);
2357
2407
  }
2358
- function Yn(e) {
2359
- const t = typeof e == "string" ? ut(e) : e;
2360
- if (t && (Vn(t), Nn(t), typeof localStorage < "u"))
2408
+ function Xn(e) {
2409
+ const t = typeof e == "string" ? gt(e) : e;
2410
+ if (t && (Gn(t), Yn(t), typeof localStorage < "u"))
2361
2411
  try {
2362
- localStorage.setItem(st, t.name);
2412
+ localStorage.setItem(ut, t.name);
2363
2413
  } catch {
2364
2414
  }
2365
2415
  }
2366
- function Cl() {
2416
+ function Tl() {
2367
2417
  if (typeof document > "u") return;
2368
2418
  let e = null;
2369
2419
  if (typeof localStorage < "u")
2370
2420
  try {
2371
- e = localStorage.getItem(st);
2421
+ e = localStorage.getItem(ut);
2372
2422
  } catch {
2373
2423
  e = null;
2374
2424
  }
2375
- Yn(e && ut(e) || Fe);
2425
+ Xn(e && gt(e) || Le);
2376
2426
  }
2377
- const Sl = "0.4.0";
2427
+ const Ml = "0.4.1";
2378
2428
  export {
2379
- Sl as A4UI_VERSION,
2380
- So as Accordion,
2381
- nl as Alert,
2382
- hl as AlertDialog,
2383
- vl as AppShell,
2384
- ol as Avatar,
2385
- To as Badge,
2386
- ml as Breadcrumb,
2387
- ze as Button,
2388
- gr as Card,
2389
- fr as CardContent,
2390
- Mo as CardHeader,
2391
- Eo as CardTitle,
2392
- Fo as Checkbox,
2393
- xl as Combobox,
2394
- bl as ContextMenu,
2395
- Lo as DateField,
2396
- Io as Drawer,
2397
- Ao as Dropdown,
2398
- Do as Dropzone,
2399
- yl as EffectsToggle,
2400
- rl as HoverCard,
2401
- Ro as Input,
2402
- cl as Meter,
2403
- zo as Modal,
2404
- wl as NavGroup,
2405
- sl as NumberInput,
2406
- Oo as PageHeader,
2407
- Po as Pagination,
2408
- tl as Popover,
2409
- il as Progress,
2410
- Wo as RadioGroup,
2411
- fl as SegmentedControl,
2412
- jo as Select,
2413
- al as Separator,
2414
- ll as Skeleton,
2415
- dl as Slider,
2416
- kn as SpaceBackground,
2417
- Vr as Spinner,
2418
- Bo as Stat,
2419
- Jo as Switch,
2420
- Dn as TOKEN_ORDER,
2421
- No as Table,
2422
- Yo as TableBody,
2423
- Xo as TableCell,
2424
- Vo as TableHead,
2425
- Ho as TableHeadCell,
2426
- Go as TableRow,
2427
- Uo as Tabs,
2428
- Qo as Textarea,
2429
- $l as ThemeToggle,
2430
- pl as ThemedScenery,
2431
- Zo as Toaster,
2432
- ul as Toggle,
2433
- gl as ToggleGroup,
2434
- el as Tooltip,
2435
- qo as VirtualList,
2436
- kl as activeTheme,
2437
- We as applyTheme,
2438
- Vn as applyThemeDefinition,
2439
- g as cn,
2440
- rr as createCountUp,
2441
- Rn as dino,
2442
- zn as doctor,
2443
- Cl as initTheme,
2429
+ Ml as A4UI_VERSION,
2430
+ Mo as Accordion,
2431
+ ll as Alert,
2432
+ xl as AlertDialog,
2433
+ $l as AppShell,
2434
+ al as Avatar,
2435
+ Eo as Badge,
2436
+ bl as Breadcrumb,
2437
+ Pe as Button,
2438
+ fr as Card,
2439
+ mr as CardContent,
2440
+ Fo as CardHeader,
2441
+ Lo as CardTitle,
2442
+ Io as Checkbox,
2443
+ pl as Combobox,
2444
+ vl as ContextMenu,
2445
+ Ao as DateField,
2446
+ Do as Drawer,
2447
+ Ro as Dropdown,
2448
+ zo as Dropzone,
2449
+ _l as EffectsToggle,
2450
+ ol as HoverCard,
2451
+ Po as Input,
2452
+ sl as Meter,
2453
+ Oo as Modal,
2454
+ kl as NavGroup,
2455
+ gl as NumberInput,
2456
+ jo as PageHeader,
2457
+ Bo as Pagination,
2458
+ nl as Popover,
2459
+ cl as Progress,
2460
+ el as RadioGroup,
2461
+ hl as SegmentedControl,
2462
+ No as Select,
2463
+ dl as Separator,
2464
+ il as Skeleton,
2465
+ ul as Slider,
2466
+ Cn as SpaceBackground,
2467
+ Yr as Spinner,
2468
+ Vo as Stat,
2469
+ Qo as Switch,
2470
+ zn as TOKEN_ORDER,
2471
+ Yo as Table,
2472
+ Xo as TableBody,
2473
+ Uo as TableCell,
2474
+ Go as TableHead,
2475
+ qo as TableHeadCell,
2476
+ Ho as TableRow,
2477
+ Zo as Tabs,
2478
+ tl as Textarea,
2479
+ wl as ThemeToggle,
2480
+ yl as ThemedScenery,
2481
+ Jo as Toaster,
2482
+ fl as Toggle,
2483
+ ml as ToggleGroup,
2484
+ rl as Tooltip,
2485
+ Ko as VirtualList,
2486
+ Sl as activeTheme,
2487
+ Je as applyTheme,
2488
+ Gn as applyThemeDefinition,
2489
+ f as cn,
2490
+ nr as createCountUp,
2491
+ Pn as dino,
2492
+ On as doctor,
2493
+ Tl as initTheme,
2444
2494
  Jt as isCalm,
2445
- we as motionReduced,
2495
+ ve as motionReduced,
2446
2496
  it as prefersReducedMotion,
2447
- nr as remeasureAfterLayout,
2448
- On as scientist,
2449
- Yn as selectTheme,
2450
- Wt as setEffects,
2451
- ko as setMotionForced,
2452
- Gt as setTheme,
2453
- Pn as soccer,
2454
- Fe as space,
2455
- Yt as storedTheme,
2456
- Bn as themeToCss,
2457
- _l as themeToJson,
2458
- jn as themes,
2459
- Ko as toast,
2460
- qt as toggleTheme,
2497
+ or as remeasureAfterLayout,
2498
+ jn as scientist,
2499
+ Xn as selectTheme,
2500
+ Qt as setEffects,
2501
+ So as setMotionForced,
2502
+ Xt as setTheme,
2503
+ Bn as soccer,
2504
+ Le as space,
2505
+ Gt as storedTheme,
2506
+ Vn as themeToCss,
2507
+ Cl as themeToJson,
2508
+ Nn as themes,
2509
+ Wo as toast,
2510
+ Ut as toggleTheme,
2461
2511
  Ht as toggled,
2462
- Zt as useEffects,
2463
- Co as useMediaQuery,
2464
- _o as useMotionForced,
2512
+ Wt as useEffects,
2513
+ To as useMediaQuery,
2514
+ Co as useMotionForced,
2465
2515
  tt as useTheme
2466
2516
  };